* {
  box-sizing: border-box;
}

    /* ===== GENERAL ===== */
    body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background-image: url("img/FONDOCIELO.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}


    /* ===== HEADER PRO ===== */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(5, 10, 30, 0.85);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  z-index: 2000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 25px;
  display: grid;
  grid-template-columns: auto 1fr auto; /* logo | buscador | menú */
  align-items: center;
  gap: 20px;
}
/* Logo + nombre */
.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  width: 95px;
}

.brand {
  color: white;
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 1px;
}

/* Menú */
.menu {
  display: flex;
  gap: 30px;
}

.menu a {
  color: #ddd;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: 0.3s;
}

/* Línea animada debajo */
.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background: #ffb347;
  transition: 0.3s;
}

.menu a:hover {
  color: white;
}

.menu a:hover::after {
  width: 100%;
}

    /* ===== PRODUCTOS ===== */
    main {
      max-width: 1200px;
      margin: 30px auto;
      padding: 20px;
    }

    .productos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

    .producto {
      position: relative;
      background: white;
      padding: 15px;
      border-radius: 12px;
      text-align: center;
      box-shadow: 0 6px 15px rgba(0,0,0,0.15);
    }

    .producto img.principal {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #fff;
  padding: 10px;
  border-radius: 8px;
}

    .miniaturas {
      display: flex;
      justify-content: center;
      gap: 6px;
      margin: 8px 0;
    }

    .miniaturas img {
      width: 45px;
      height: 45px;
      object-fit: cover;
      border-radius: 6px;
      cursor: pointer;
    }

    .precio {
      font-weight: bold;
      font-size: 18px;
    }

    .btn-carrito {
      background: linear-gradient(135deg, #ff7a18, #f09b25);
      color: white;
      border: none;
      padding: 10px;
      width: 100%;
      border-radius: 10px;
      font-weight: bold;
      cursor: pointer;
      margin-top: 8px;
    }

    /* ===== CARRITO FLOTANTE ===== */
    #carritoFlotante {
      position: fixed;
      bottom: 20px;
      right: 20px;
      width: 280px;
      background: white;
      border-radius: 16px;
      padding: 15px;
      box-shadow: 0 10px 25px rgba(0,0,0,0.3);
      z-index: 1000;
    }

    #listaCarrito li {
      background: #f7f7f7;
      margin-bottom: 6px;
      padding: 6px;
      border-radius: 8px;
      font-size: 14px;
    }

    #listaCarrito button {
      margin: 0 2px;
      border: none;
      border-radius: 50%;
      width: 24px;
      height: 24px;
      cursor: pointer;
    }

    .menos { background: #ccc; }
    .mas { background: #4caf50; color: white; }
    .eliminar { background: #ff4d4d; color: white; }

    /* BOTÓN FINALIZAR PEDIDO PRO */
.finalizar {
  background: linear-gradient(135deg, #25D366, #1ebe5d);
  color: white;
  border: none;
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* EFECTO HOVER */
.finalizar:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* EFECTO AL HACER CLICK */
.finalizar:active {
  transform: scale(0.97);
}

/* BRILLO ANIMADO */
.finalizar::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: rgba(255,255,255,0.25);
  transform: skewX(-25deg);
  transition: 0.7s;
}

.finalizar:hover::after {
  left: 130%;
}
    /* ===== INICIO ===== */
.inicio {
  min-height: 75vh;
  background-image: url("img/FONDOCIELO.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
}

.inicio-overlay {
  background: rgba(0, 0, 0, 0.6);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.inicio-contenido {
  text-align: center;
  color: white;
  padding: 40px 20px;
  max-width: 780px;
}

.inicio h1 {
  font-size: 46px;
  margin-bottom: 20px;
}

.inicio p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
}

.btn-principal {
  background: linear-gradient(135deg, #ff7a18, #e99c30);
  color: white;
  padding: 14px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: 0.3s;
}

.btn-principal:hover {
  transform: scale(1.05);
}

/* ===== BENEFICIOS ===== */
.beneficios {
  margin-top: 120px;
  padding: 50px 20px;
  background: #ffffff;
}

.beneficios-container {
  max-width: 1200px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
}

.beneficio {
  background: #f9f9f9;
  padding: 30px 25px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.beneficio:hover {
  transform: translateY(-6px);
}

.icono {
  font-size: 42px;
  margin-bottom: 15px;
}

.beneficio h3 {
  margin-bottom: 8px;
}
body {
  padding-top: 90px;
}
.footer {
  background: #0e0438;
  color: white;
  text-align: center;
  padding: 25px 10px;
  margin-top: 50px;
  font-size: 14px;
}
.producto {
  transition: 0.3s;
}

.producto:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.2);
}
.btn-carrito {
  position: relative;
  overflow: hidden;
}

.btn-carrito::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 100%;
  left: 0;
  top: 0;
  background: rgba(255,255,255,0.2);
  transition: 0.4s;
}

.btn-carrito:hover::after {
  width: 100%;
}
html, body {
  margin: 0;
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  width: 100%;
}

.footer {
  background: linear-gradient(135deg, #031f38, #0e0438);
  color: white;
  text-align: center;
  padding: 30px 15px;
  font-size: 14px;
  letter-spacing: 0.5px;
}

.footer p {
  margin: 6px 0;
  opacity: 0.9;
}

.footer {
  border-top: 2px solid #ffb347;
}
/* ===== BUSCADOR ===== */
.buscador {
  text-align: center;
  margin-bottom: 25px;
}

.buscador input {
  width: 60%;
  max-width: 400px;
  padding: 12px 18px;
  border-radius: 30px;
  border: 2px solid #ddd;
  font-size: 16px;
  outline: none;
  transition: 0.3s;
}

.buscador input:focus {
  border-color: #ff7a18;
  box-shadow: 0 0 8px rgba(255,122,24,0.4);
}

/* ===== BUSCADOR HEADER PRO ===== */
.search-box {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.search-box input {
  width: 100%;
  padding: 10px 40px 10px 18px;
  border-radius: 25px;
  border: none;
  outline: none;
  font-size: 14px;
  background: rgba(255,255,255,0.95);
  transition: 0.3s;
}

.search-box input:focus {
  box-shadow: 0 0 8px rgba(255,179,71,0.8);
}


/* ===== DETALLE PRODUCTO ===== */


.imagen-grande {
  width: 100%;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.info-producto h2 {
  font-size: 32px;
  margin-bottom: 10px;
}

.info-producto p {
  font-size: 18px;
  margin-bottom: 10px;
}

.miniaturas-detalle {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.miniaturas-detalle img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: 0.3s;
}

.miniaturas-detalle img:hover {
  border-color: #ff7a18;
  transform: scale(1.05);
}

/* ===== BOTÓN FLOTANTE CARRITO ===== */
#carritoBoton {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 65px;
  height: 65px;
  background: linear-gradient(135deg, #ff7a18, #ffb347);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 26px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  cursor: pointer;
  z-index: 3000;
  transition: 0.3s;
}

#carritoBoton:hover {
  transform: scale(1.1);
}

/* CONTADOR */
#contadorCarrito {
  position: absolute;
  top: 5px;
  right: 5px;
  background: red;
  color: white;
  font-size: 12px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#carritoPanel.abierto {
  right: 0;
}

.carrito-footer {
  position: sticky;
  bottom: 0;
  background: white;
  padding-top: 10px;
}

.carrito-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.carrito-header button {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
}

.carrito-total {
  margin-top: auto;
  font-size: 18px;
}
#carritoPanel {
  position: fixed;
  right: -350px;
  bottom: 0;
  width: 320px;
  height: 100%;
  background: white;
  box-shadow: -5px 0 20px rgba(0,0,0,0.3);
  padding: 15px;
  z-index: 2999;
  transition: right 0.4s ease;
  display: flex;
  flex-direction: column;
}

#listaCarrito {
  flex: 1;
  overflow-y: auto;
  margin: 15px 0;
  padding-right: 5px;
}

#carritoPanel.abierto {
  right: 0;
}
/* ===== CONTACTO ===== */
.contacto {
  padding: 70px 20px;
  background: #f9f9f9;
  text-align: center;
}

.contacto h2 {
  font-size: 32px;
  margin-bottom: 10px;
}

.contacto-sub {
  margin-bottom: 40px;
  color: #555;
}

.contacto-contenedor {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  text-align: left;
}

.contacto-info h3 {
  margin-top: 15px;
  color: #0e0438;
}

.redes {
  margin-top: 8px;
}

.redes a {
  margin-right: 10px;
  font-size: 18px;
  color: #0e0438;
  transition: 0.3s;
}

.redes a:hover {
  color: #ff7a18;
}

.contacto-form form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contacto-form input,
.contacto-form textarea {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 14px;
}

.contacto-form textarea {
  min-height: 120px;
  resize: none;
}

.contacto-form button {
  background: linear-gradient(135deg, #ff7a18, #ffb347);
  color: white;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.contacto-form button:hover {
  transform: scale(1.05);
}

.producto img.principal {
  transition: transform 0.4s ease;
}

.producto:hover img.principal {
  transform: scale(1.08);
}
.testimonios {
  padding: 60px 20px;
  background: white;
  text-align: center;
}

.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.testi {
  background: #f7f7f7;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}
.redes a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: #000;
  color: white;
  border-radius: 50%;
  font-size: 20px;
  transition: 0.3s;
}

.redes a:hover {
  transform: scale(1.1);
  background: #ff0050; /* color tipo TikTok */
}
.carrito-total {
  margin-top: auto;
  font-size: 18px;
  margin-bottom: 10px;
  text-align: center;
}

.carrito-total::before {
  content: "Listo para pedir 🚀";
  display: block;
  font-size: 13px;
  color: #666;
  margin-bottom: 5px;
}
/* Animación cuando se agrega al carrito */
@keyframes agregarCarritoAnim {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.15); }
  100% { transform: scale(1); }
}
/* ===== LAYOUT PRODUCTO PRO ===== */
.detalle-producto {
  max-width: 1200px;
  margin: 120px auto 60px;
  padding: 30px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  gap: 40px;
  align-items: start;
  background: white;
  border-radius: 18px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* IMAGEN */
.galeria {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.imagen-grande {
  width: 100%;
  height: 350px;            /* 🔥 tamaño tipo tienda */
  object-fit: contain;      /* evita que se deforme */
  background: #fff;         /* fondo blanco elegante */
  border-radius: 15px;
  padding: 20px;            /* espacio interno pro */
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* MINIATURAS */
.miniaturas-detalle {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.miniaturas-detalle img {
  width: 75px;
  height: 75px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: 0.3s;
}

.miniaturas-detalle img:hover {
  border-color: #ff7a18;
  transform: scale(1.05);
}

/* INFO PRODUCTO */
.info-producto h2 {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #222;
}

.precio {
  font-size: 22px;
  font-weight: bold;
  color: #249573;
  margin: 15px 0;
}

.stock {
  color: #131a45;
  font-weight: bold;
  margin-bottom: 15px;
}

.descripcion {
  font-size: 15px;
  color: #444;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* BOTÓN PRINCIPAL */
.btn-comprar {
  background: linear-gradient(135deg, #020533, #ff7a18);
  color: white;
  border: none;
  width: 100%;
  padding: 16px;
  border-radius: 12px;
  font-size: 17px;
  font-weight: bold;
  cursor: pointer;
  margin-bottom: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

.btn-comprar:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(0,0,0,0.25);
}

.btn-comprar:active {
  transform: scale(0.98);
}

/* COLUMNA DERECHA */
.info-extra {
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-radius: 12px;
}

.caja-info {
  background: #f9f9f9;
  padding: 15px;
  border-radius: 12px;
  font-size: 14px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}
.info-producto {
  border-left: 1px solid #eee;
  padding-left: 30px;
}
.info-extra {
  border: 3px solid rgb(219, 220, 229);
}
.caja-info h4 i {
  margin-right: 10px;
  padding: 10px;
  border-radius: 50%;
  color: white;
  font-size: 16px;
}
/* SOPORTE */
.info-extra .caja-info:nth-child(1) h4 i {
  background: linear-gradient(135deg, #00c6ff, #0072ff);
}

/* CALIDAD / PRODUCTO */
.info-extra .caja-info:nth-child(2) h4 i {
  background: linear-gradient(135deg, #aa16a3, #ffd200);
}

/* GARANTÍA */
.info-extra .caja-info:nth-child(3) h4 i {
  background: linear-gradient(135deg, #00b09b, #96c93d);
}

.caja-info:hover i {
  transform: scale(1.15) rotate(8deg);
  transition: 0.3s;
}

/* ===== FOOTER PAGOS PRODUCTO ===== */
.footer-producto {
  background: linear-gradient(135deg, #031f38, #000);
  color: white;
  text-align: center;
  padding: 35px 15px;
  margin-top: 60px;
  border-top: 2px solid #ffb347;
}

.titulo-pagos {
  font-weight: bold;
  letter-spacing: 1px;
  margin-bottom: 20px;
  font-size: 16px;
  opacity: 0.9;
}

/* Cada método */
.pago-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  opacity: 0.9;
  transition: 0.3s;
}

.pago-item img {
  height: 38px;
  object-fit: contain;
}

.pago-item i {
  font-size: 40px;
  color: #1a1f71; /* color Visa */
}

.pago-item:hover {
  transform: translateY(-4px);
  opacity: 1;
}
@media (max-width: 900px) {
  .beneficios-container {
    grid-template-columns: 1fr;
  }

  .inicio h1 {
    font-size: 34px;
  }

  .inicio p {
    font-size: 16px;
  }
}

/* ===== GRID DE MÉTODOS DE PAGO ===== */
.pagos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 30px;
  justify-items: center;
  align-items: start;
  margin-top: 20px;
}

/* ===== ITEM INDIVIDUAL ===== */
.pago-item {
  text-align: center;
  font-size: 16px;
  color: white;
}

/* ===== CONTENEDOR DEL LOGO ===== */
.pago-hover {
  position: relative;
  cursor: pointer;
  display: inline-block;
}

/* 🔹 SOLO el logo principal del banco (NO el QR) */
/* SOLO logos de bancos */
.pago-hover > img {
  height: 60px;
  object-fit: contain;
  transition: 0.3s;
}

/* ===== TARJETA EMERGENTE DE INFORMACIÓN ===== */
.info-pago {
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  background: white;
  color: black;
  padding: 20px;
  border-radius: 12px;
  width: 280px; /* más ancho para que quepa el QR grande */
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
  z-index: 10;
  text-align: center;
}

/* ===== GRID DE PAGOS ===== */
.pagos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 30px;
  justify-items: center;
  align-items: start;
  margin-top: 20px;
}

/* ITEM */
.pago-item {
  text-align: center;
  font-size: 16px;
  color: white;
}

/* CONTENEDOR HOVER */
.pago-hover {
  position: relative;
  cursor: pointer;
}

/* LOGOS DE BANCOS (NO CAMBIAN DE TAMAÑO) */
/* SOLO logos de bancos */
.pago-hover > img {
  height: 40px;
  object-fit: contain;
  transition: 0.3s;
}

/* TARJETA BLANCA DE INFORMACIÓN */
.info-pago {
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  background: white;
  color: black;
  padding: 20px 15px;
  border-radius: 12px;
  width: 260px; /* MÁS ANCHA PARA QR GRANDE */
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
  z-index: 10;
  text-align: center;
}

/* QR MÁS GRANDE */
.qr {
  width: 220px;   /* tamaño grande del QR */
  height: auto;
  margin-bottom: 10px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* MOSTRAR TARJETA AL PASAR EL MOUSE */
.pago-hover:hover .info-pago {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.pago-hover:hover img {
  transform: scale(1.1);
}

/* VISA ICONO */
.pago-item i {
  font-size: 42px;
  color: #1a1f71;
  margin-bottom: 8px;
}

.btn-video {
  display: inline-block;
  margin-top: 10px;
  background: linear-gradient(135deg, #000, #ff0050);
  color: white;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.btn-video:hover {
  transform: scale(1.05);
}

.btn-video:hover i {
  transform: scale(1.2);
  transition: 0.3s;
}

/* BOTÓN WHATSAPP EN INDEX */
.btn-whatsapp-index {
  display: inline-block;
  background: linear-gradient(135deg, #010313, #00ff2a);
  color: white;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: bold;
  text-decoration: none;
}

/* BOTÓN WHATSAPP EN PRODUCTO */
.btn-whatsapp-producto {
  display: inline-block;
  margin-top: 5px;
  padding: 10px 45px;
  background: linear-gradient(135deg, #010313, #00ff2a);
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  border: none;
  cursor: pointer;
  font-size: 16px; /* más grande */
}

.btn-whatsapp-producto i {
  margin-right: 8px;
  transition: transform 0.3s;
}

.btn-whatsapp-producto:hover i {
  transform: scale(1.2);
}

.btn-whatsapp-producto:hover,
.btn-whatsapp-index:hover,
.btn-video:hover {
  transform: scale(1.05);
  transition: 0.3s;
}

@media (max-width: 768px) {

  /* GRID PRODUCTOS: 2 POR FILA */
  .productos {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .producto img.principal {
    height: 120px;
    object-fit: contain;
  }

  .producto h3 {
    font-size: 13px;
  }

  .producto p {
    font-size: 12px;
  }

  .precio {
    font-size: 14px;
  }

  .btn-carrito {
    font-size: 13px;
    padding: 8px;
  }

  /* HEADER REAL */
  .menu {
    display: none;
  }

  .nav-container {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px;
  }

  .logo {
    width: 65px;
  }

  .search-box input {
    max-width: 100%;
  }

  /* TESTIMONIOS */
  .testi-grid {
    grid-template-columns: 1fr;
  }

  /* CONTACTO */
  .contacto-contenedor {
    grid-template-columns: 1fr;
  }

}

body {
  overflow-x: hidden;
}

@media (max-width: 768px) {

  .detalle-producto {
    grid-template-columns: 1fr;
    padding: 20px;
    margin-top: 100px;
  }

  .info-producto {
    border-left: none;
    padding-left: 0;
  }

}

@media (max-width: 768px) {
  body {
    background-attachment: scroll;
  }
}

body {
  overflow-x: hidden;
}

@media (max-width: 768px) {

  /* deja ver el fondo en móvil */
  .producto,
  .detalle-producto,
  .contacto,
  .beneficios {
    background: rgba(255, 255, 255, 0.92);
  }

}

/* FIX fondo en celulares */
@media (max-width: 768px) {
  body {
    background-attachment: scroll;
  }
}

/* BADGE MÁS VENDIDO */
.badge-vendido {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, #ff0000, #ff7a18);
  color: white;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: bold;
  border-radius: 8px;
  z-index: 10;
}

.badge-vendido {
  animation: pulse 1.4s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.categorias {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.categorias button {
  padding: 8px 15px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  background: #eee;
  transition: 0.3s;
}

.categorias button:hover {
  background: #ff7a18;
  color: white;
}

.paginacion {
  text-align: center;
  margin: 30px 0;
}

.paginacion button {
  margin: 5px;
  padding: 8px 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.seccion-categorias {
  padding: 80px 20px;
  text-align: center;
  background: white;
}

.grid-categorias {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.card-categoria {
  position: relative;
  height: 200px;
  background: linear-gradient(135deg, #031f38, #ff7a18);
  border-radius: 15px;
  text-decoration: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: bold;
  transition: 0.3s;
}

.card-categoria:hover {
  transform: scale(1.05);
}

/* ===== CATEGORIA PRO ===== */

.contenedor-categoria {
  max-width: 1200px;
  margin: 120px auto 60px;
  padding: 20px;
  background: white;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.titulo-categoria {
  font-size: 32px;
  margin: 10px 0;
  color: #031f38;
}

.resultado-info {
  color: #666;
  margin-bottom: 30px;
}

.breadcrumb {
  font-size: 14px;
  color: #888;
}

.breadcrumb a {
  text-decoration: none;
  color: #ff7a18;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* ===== CATEGORÍAS PREMIUM ===== */

.seccion-categorias {
  padding: 100px 8%;
  background: #f8f9fa;
}

.seccion-categorias h2 {
  text-align: center;
  font-size: 42px;
  margin-bottom: 60px;
  font-weight: 700;
}

.grid-categorias {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.card-categoria {
  position: relative;
  height: 240px;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  display: block;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card-categoria img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.card-categoria:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

.card-categoria:hover img {
  transform: scale(1.1);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  display: flex;
  align-items: flex-end;
  padding: 25px;
}

.card-overlay h3 {
  color: white;
  font-size: 24px;
  font-weight: 700;
}

.search-box {
  position: relative;
}

.search-box i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
}

.search-box input {
  padding: 10px 15px 10px 35px;
  border-radius: 30px;
  border: 1px solid #ddd;
  transition: all 0.3s ease;
}

.search-box input:focus {
  border-color: #ff7a18;
  box-shadow: 0 0 8px rgba(255,122,24,0.4);
  outline: none;
}

section {
  padding: 90px 8%;
}

html {
  scroll-behavior: smooth;
}

.seccion-categorias {
  scroll-margin-top: 120px;
}