:root {
  --yellow: #ffbf00;
  --red: #ff0c12;
  --ink: #000000;
  --paper: #f6f4ef;
  --white: #fff;
  --muted: #6c6a65;
  --line: rgba(23, 23, 23, 0.15);
  --green: #1f8f4e;
  --uber: #06c167;
  --facebook: #1877f2;

  /* TIPOGRAFÍAS OFICIALES LEX POP */
  --font-titulos: "Caprasimo", serif;
  --font-subtitulos: "Yellowtail", cursive;
  --font-texto: "Glacial Indifference", "DM Sans", sans-serif;

  --max: 1280px;
  --header: 100px !important;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header);
  overflow-x: hidden;
}
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-texto);
  line-height: 1.55;
  overflow-x: hidden; /* <-- Asegura que esto esté aquí */
  max-width: 100vw; /* <-- Frena cualquier desbordamiento */
}
body.cart-open {
  overflow: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
}
button {
  color: inherit;
}
img {
  display: block;
  max-width: 100%;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 10000;
  background: #fff;
  padding: 10px;
  transform: translateY(-160%);
}
.skip-link:focus {
  transform: none;
}
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--header);
  background: var(--ink);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px);
  transition: 0.3s;
}
.site-header.scrolled {
  border-color: var(--line);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}
.header-inner {
  width: min(calc(100% - 32px), var(--max));
  height: 100%;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
}
.brand img {
  display: block;
}
.header-logo {
  height: 70px;
  width: auto;
}
.footer-logo {
  max-width: 220px;
  height: auto;
}

.mrpop-nav {
  position: absolute;
  top: -15px;
  right: 0;
  width: 60px;
  max-width: 60px;
  height: auto;
  z-index: 998;
  pointer-events: none;
  transform: none;
}

.main-nav {
  display: none;
  gap: 30px;
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
}

.main-nav a,
.footer-grid a {
  position: relative;
}
.main-nav a:after,
.footer-grid a:after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -4px;
  height: 1px;
  background: currentColor;
  transition: 0.25s;
}
.main-nav a:hover:after,
.footer-grid a:hover:after {
  right: 0;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}
.cart-btn,
.menu-toggle {
  border: 0;
  background: none;
  cursor: pointer;
}
.cart-btn {
  position: relative;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
}
.bag-icon {
  width: 18px;
  height: 20px;
  border: 1.8px solid var(--white);
  border-radius: 1px;
  position: relative;
}
.bag-icon:before {
  content: "";
  position: absolute;
  width: 8px;
  height: 5px;
  border: 1.8px solid var(--white);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  left: 3px;
  top: -7px;
}
.cart-count {
  position: absolute;
  right: 0;
  top: 0;
  background: var(--red);
  color: white;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 0.68rem;
  display: grid;
  place-items: center;
}
.hidden {
  display: none !important;
}
.menu-toggle {
  width: 30px;
  height: 30px;
  display: grid;
  align-content: center;
  gap: 6px;
}
.menu-toggle span {
  display: block;
  height: 1px;
  background: var(--white);
  transition: 0.25s;
}
.menu-toggle.open span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}
.menu-toggle.open span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}
.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--paper);
  padding: 18px 24px 28px;
  display: grid;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  transform: scaleY(0);
  transform-origin: top;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s;
}
.mobile-menu.open {
  transform: scaleY(1);
  opacity: 1;
  pointer-events: auto;
}
.hero {
  padding-top: var(--header);
  min-height: calc(100svh - var(--header));
  height: auto; /* ¡LA CLAVE! Permite que el contenido crezca hacia abajo sin desbordarse */
  
  display: grid;
  grid-template-columns: 1fr; /* 1 columna en móviles */
  grid-template-rows: auto auto auto; /* 3 bloques que se ajustan a su contenido */
  gap: 15px; /* Un pequeño respiro entre secciones */
  
  background: var(--yellow);
  /* Asegúrate de no tener "overflow: hidden;" aquí */
}
.hero-copy {
  padding: clamp(20px, 4vw, 50px) 24px 0; /* Quitamos algo de padding inferior para que el slider suba un poco */
  justify-content: center;
  align-self: center;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.eyebrow {
  font-family: var(--font-texto);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 auto 18px auto; /* <-- 'auto' a los lados lo centra */
  text-align: center; /* <-- Asegura el centrado interno */
}
.hero h1,
.section-heading h2,
.intro h2,
.season h2,
.contact h2,
.catalog-download h2 {
  font-family: var(--font-titulos); /* <- CAMBIAR AQUÍ */
  font-weight: 400; /* <- CAMBIAR A 400 */
  letter-spacing: 0;
  line-height: 0.98;
  margin: 0;
}
.hero h1 {
  font-size: clamp(4rem, 11vw, 8.5rem);
  max-width: 900px;
  margin: 0 auto; /* <-- 'auto' reparte el espacio equitativamente */
  text-align: center;
  line-height: 0.98;
}
.hero-lead {
  max-width: 650px;
  font-size: 1.5rem;
  margin: 24px auto 32px auto; /* <-- Arriba 24px, Auto a los lados, Abajo 32px */
  text-align: center;
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center; /* <-- Esto centra los botones horizontalmente */
  flex-wrap: wrap;
  gap: 22px;
  width: 100%; /* Asegura que tome todo el espacio disponible para centrarse bien */
}
.button {
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    transform 0.25s,
    box-shadow 0.25s,
    background 0.25s;
}
.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.16);
}
.button-dark {
  background: var(--ink);
  color: white;
}
.button-light {
  background: white;
  color: var(--ink);
}
.text-link {
  font-weight: 700;
  font-size: 0.83rem;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
}
.text-link span {
  margin-left: 6px;
}
.hero-trust {
  list-style: none;
  padding: 0;
  margin: 34px 0 0;
  display: flex;
  justify-content: center; /* <-- Esto centra la lista de iconos horizontalmente */
  flex-wrap: wrap;
  gap: 10px 24px;
  font-size: 0.76rem;
  width: 100%;
}
.hero-trust li {
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-trust .bi-shop {
  color: var(--ink);
}
.hero-trust .bi-facebook {
  color: var(--facebook);
}
.hero-trust .bi-truck {
  color: var(--uber);
}
.brand-btn-uber {
  background: var(--uber);
  color: #fff;
}
.brand-btn-uber:hover {
  background: #059e56 !important;
  color: #fff !important;
}
.brand-btn-facebook {
  background: var(--facebook);
  color: #fff;
}
.brand-btn-facebook:hover {
  background: #1461c2 !important;
  color: #fff !important;
}
.contact-links .bi-truck,
.footer-grid .bi-truck {
  color: var(--uber);
  font-size: 1.1rem;
}
.contact-links .bi-facebook,
.footer-grid .bi-facebook {
  color: var(--facebook);
  font-size: 1.1rem;
}
.contact-links a:has(.bi-truck) .bi-truck,
.contact-links a:has(.bi-facebook) .bi-facebook {
  margin-right: 6px;
}

/* Flechas de navegación */
.slider-arrow {
  position: absolute;
  top: 60%;
  transform: translateY(-60%);
  background: rgba(0, 0, 0, 0.4);
  color: var(--white);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  display: grid;
  place-items: center;
  transition: background 0.2s;
}
.slider-arrow:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* Posición default para celulares */
.slider-prev {
  left: 16px;
}
.slider-next {
  right: 16px;
}

/* Acercamos las flechas a la foto en pantallas grandes */
@media (min-width: 1025px) {
  .slider-prev {
    left: 15%;
  }
  .slider-next {
    right: 15%;
  }
}

/* BOLITAS INDICADORAS */
.slider-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}
.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(
    0,
    0,
    0,
    0.15
  ); /* Gris transparente para contrastar con el amarillo */
  border: none;
  cursor: pointer;
  padding: 0;
}
.slider-dot.active {
  background: var(--ink); /* Bolita activa color negro oscuro */
  transform: scale(1.15);
}

.hero-media {
  margin: 0; /* ¡ADIÓS DESFASE! Borra el margen invisible del <figure> */
  position: relative;
  overflow: hidden;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  
  width: 100%;
  height: 380px; /* Altura ideal y controlada para celular */
}

.hero-media .slide {
  position: absolute;
  width: 100%;
  height: 100%; /* Obliga a tomar el área del hero */
  object-fit: contain; /* ¡LA CLAVE! Evita cualquier tipo de recorte */
  object-position: center; /* Mantiene la imagen perfectamente centrada */
  opacity: 0;
  z-index: 0;
  transition: opacity 0.4s ease; /* Transición suave para tu slider */
}

.hero-media .slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-note {
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  border-top: 1px solid rgba(0, 0, 0, 0.22);
}
.hero-note p {
  margin: 0;
  font-family: var(--serif);
  font-size: 1rem;
}
.hero-note p:first-child {
  text-align: left;
}
.slogan {
  font-family: var(--font-subtitulos) !important;
  font-size: clamp(2rem, 3.5vw, 3.5rem) !important;
  font-weight: 400;
  color: var(--red);
  text-align: center; /* Centramos el texto en su nueva columna */
  
  /* LA MAGIA: auto arriba empuja el texto al fondo del contenedor */
  margin: auto auto 0 auto !important; 
  
  max-width: 100%;
  line-height: 1.2;
}
.placeholder-media {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  text-align: center;
  background: repeating-linear-gradient(
    135deg,
    #e3dfd5 0,
    #e3dfd5 1px,
    #eeece6 1px,
    #eeece6 18px
  );
  color: #4d4b46;
  min-height: 280px;
}
.placeholder-media:before {
  content: attr(data-placeholder) "\A" attr(data-specs);
  white-space: pre;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  line-height: 2;
}
.placeholder-media:after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(0, 0, 0, 0.18);
}
.marquee {
  background: var(--ink);
  color: white;
  overflow: hidden;
  padding: 13px 0;
  font-size: 0.9rem;
  letter-spacing: 5px;
  white-space: nowrap;
}
.marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: marquee 1000s linear infinite;
}
@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
.section,
.section-pad {
  width: min(100%, var(--max));
  margin: auto;
}
.section-pad {
  padding: 82px 24px;
}
.intro {
  padding: 90px 24px;
  display: grid;
  gap: 36px;
  align-items: start;
}
.section-kicker {
  display: flex;
  gap: 14px;
  font-size: 0.72rem;
  text-transform: uppercase;
}
.section-kicker p {
  margin: 0;
}
.intro h2,
.section-heading h2,
.catalog-download h2 {
  font-size: clamp(2.4rem, 7vw, 5.4rem);
}

/* === MARCA GTO SUPERPUESTO (Corregido para rodear el texto) === */
.intro-copy {
  position: relative;
}

/* Preparamos el botón para que las imágenes puedan colgar por fuera */
.btn-catalogo {
  position: relative;
  overflow: visible !important; /* CRÍTICO: Evita que el botón ampute a Mr. Pop */
}

/* Estilo base para los dos Mr. Pop */
.mrpop-catalogo-normal,
.mrpop-catalogo-hover {
  position: absolute;
  top: 100%; /* Los empuja justo debajo del borde del botón */
  right: 20px; /* Los alinea a la derecha (puedes cambiarlo a 'left: 20px' si prefieres) */
  width: 75px; /* Tamaño del monito, ajústalo si lo ves muy grande/chico */
  height: auto;
  margin-top: -4px; /* Lo sube un poquito para que parezca que está agarrando el botón */
  pointer-events: none; /* Evita que el monito bloquee el clic del botón */
  transition: opacity 0.3s ease-in-out; /* Una transición suave y elegante */
  filter: drop-shadow(
    0 10px 15px rgba(0, 0, 0, 0.25)
  ); /* Sombra para darle profundidad */
}

/* ESTADO INICIAL: Ocultamos el monito #2 */
.mrpop-catalogo-hover {
  opacity: 0;
}
.mrpop-catalogo-normal {
  opacity: 1;
}

/* ESTADO HOVER (Cuando el mouse pasa sobre el botón): Se intercambian */
.btn-catalogo:hover .mrpop-catalogo-normal {
  opacity: 0;
}
.btn-catalogo:hover .mrpop-catalogo-hover {
  opacity: 1;
}

/* Ajuste sutil para celulares */
@media (max-width: 699px) {
  .mrpop-catalogo-normal,
  .mrpop-catalogo-hover {
    width: 65px;
    right: 15px;
  }
}
.mrpop-intro {
  display: block;
  width: 280px; /* Tamaño grande y obvio */
  max-width: 100%;
  height: auto;
  margin: 30px auto 0 0; /* Lo alinea a la izquierda, separándolo del título */
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.18));
}

.marca-gto-superpuesto {
  /* CAMBIO CLAVE: Usamos float para que el texto lo esquive */
  float: right;
  width: 210px;
  height: auto;

  /* Usamos márgenes negativos para empujarlo hacia la esquina de arriba y derecha */
  margin-top: -45px;
  margin-right: -10px;

  /* Este margen empuja el texto para que no quede pegado al logo */
  margin-left: 20px;
  margin-bottom: 10px;

  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.25));
}

/* Ajuste fino para celulares */
@media (max-width: 699px) {
  .marca-gto-superpuesto {
    width: 85px;
    margin-top: -15px;
    margin-right: -5px;
    margin-left: 15px;
  }

  .mrpop-intro {
    width: 180px;
    margin: 20px auto 0 0;
  }
}

.intro-copy p {
  color: var(--muted);
  margin: 0 0 24px;
}
.values {
  border-top: 1px solid var(--line);
}
.section-heading {
  margin-bottom: 42px;
}
.section-heading > p:last-child,
.section-heading.split > p {
  color: var(--muted);
  max-width: 470px;
}
.value-grid {
  border-top: 1px solid var(--line);
}
.value-item {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.value-item h3 {
  font-family: var(--serif);
  font-size: 1.8rem;
  margin: 0;
}
.value-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.catalog {
  background: rgba(255, 255, 255, 0);
  max-width: none;
}
.catalog > .section-heading,
.catalog > .filters,
.catalog > .product-grid {
  width: min(calc(100% - 48px), var(--max));
  margin-left: auto;
  margin-right: auto;
}

/* === DROPDOWN DE PERFILES DE SABOR === */
.filters {
  flex-direction: column; /* Apila los botones y el dropdown de arriba hacia abajo */
  align-items: center;
  gap: 20px; /* Separación entre los botones y el dropdown */
}

.flavor-filter-container {
  position: relative;
  width: 100%;
  max-width: 260px; /* Tamaño ideal para que parezca un botón largo */
}

.flavor-select {
  width: 100%;
  appearance: none; /* Borra el estilo por defecto del navegador */
  -webkit-appearance: none;
  background: white;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 10px 40px 10px 20px; /* Espacio extra a la derecha para la flecha */
  font-size: 0.8rem;
  font-family: var(--font-texto); /* Usa tu tipografía oficial */
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

/* Efecto al darle clic (Acento rojo Lex Pop) */
.flavor-select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(217, 45, 39, 0.1); /* Aura roja suave */
}

.select-icon {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none; /* Para que los clics pasen a través del icono hacia el select */
  color: var(--muted);
  font-size: 0.9rem;
}

/* ==========================================================
   SISTEMA DE FILTROS 100% RESPONSIVO (IPHONE 14 PRO MAX & MÓVIL)
   ========================================================== */

.filters {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 40px 0 20px; /* Espacio extra arriba para que la mascota quepa en la fila de arriba si salta */
  overflow: visible;
}

.filters-track {
  position: relative;
  z-index: 1; /* CRÍTICO: Crea el límite para que Mr. Pop no se hunda detrás del fondo blanco de la página entera */
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 8px;
  max-width: 100%;
  padding: 0 16px;
  overflow: visible;
}

.filter {
  position: relative !important;
  z-index: 10 !important;
  white-space: nowrap;
  border: 1px solid var(--line);
  background: white;
  padding: 9px 16px;
  border-radius: 30px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  transition:
    background 0.2s,
    color 0.2s;
}

.filter:hover,
.filter.active {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
/* EL PADRE: Forzamos un mínimo de 2 columnas en pantallas medianas y grandes */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 20px;
}
/* Desktop */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

/* Tablet y móvil */
@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}
.product-card {
  position: relative;
  display: flex;
  flex-direction: row !important; /* Mantiene la imagen a la izquierda SIEMPRE */
  align-items: stretch;
  width: 100%;
  min-height: 190px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 8px;
  overflow: hidden;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}
/* ESPACIO DE LA FOTO */
.product-visual {
  width: 38%; /* Porcentaje fijo para que no aplaste el texto en celulares */
  min-width: 125px;
  max-width: 180px;
  flex-shrink: 0;
  position: relative;
  border-right: 1px solid var(--line);
  background: transparent;
}
.product-visual.demo-img::before {
  display: none !important;
}
.product-visual.demo-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover !important; /* Rellena el 100% de la caja, cero huecos */
  transition: transform 0.45s;
}
.product-card:hover .product-visual.demo-img img {
  transform: scale(1.05);
}
@media (min-width: 800px) {
  .product-visual {
    width: 180px;
  }
}

.product-info {
  flex: 1;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.product-info h3 {
  font-size: 1.1rem;
  margin: 0 0 4px;
}
.product-info p {
  font-size: 0.75rem;
  line-height: 1.25;
  margin: 0 0 6px;
  color: var(--muted);
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (min-width: 800px) {
  .product-info {
    padding: 20px;
  }
  .product-info h3 {
    font-size: 1.3rem;
  }
  .product-controls {
    grid-template-columns: 1fr 90px;
    gap: 8px;
  }
  .product-controls select,
  .qty-mini {
    height: 40px;
    font-size: 0.8rem;
  }
  .add-btn {
    min-height: 42px;
    font-size: 0.75rem;
  }
}
@media (max-width: 768px) {
  /* 1. Pasa a 1 sola columna */
  .product-grid {
    grid-template-columns: 1fr !important;
  }

  /* 3. La foto toma todo el ancho del celular */
  .product-visual {
    width: 100%;
    max-width: none;
    height: 280px; /* Altura controlada para que luzca la bolsa */
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  /* 4. Ajuste del listón SEP para el formato vertical */
  .product-card[data-sep="true"] {
    padding-top: 36px;
  }

  .product-card[data-sep="true"] .product-visual {
    margin-top: 0;
    height: 100%;
  }

  .product-card[data-sep="true"] .product-info {
    margin-top: 0;
  }
}

@media (max-width: 480px) {
  .product-visual {
    width: 135px;
    min-width: 135px;
    max-width: 135px;
    height: auto;
    border-right: 1px solid var(--line);
    border-bottom: none;
  }

  .product-info {
    padding: 10px;
  }

  .product-info h3 {
    font-size: 1.05rem;
    line-height: 1.2;
  }

  .product-info p {
    font-size: 0.82rem;
  }

  .product-controls {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .qty-mini {
    width: 100%;
  }

  .add-btn {
    white-space: nowrap;
    font-size: 0.78rem;
    min-height: 40px;
  }
}
.intensity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  margin: 10px 0;
  flex-shrink: 0;
}
.dots {
  display: flex;
  gap: 4px;
  align-items: center;
}
.dots i {
  font-size: 1.1rem;
  color: var(--product-color);
}
.dots i.empty {
  color: #d5d2ca;
}
.product-controls {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 75px;
  gap: 6px;
}
.product-controls select,
.qty-mini {
  height: 34px;
  font-size: 0.75rem;
  padding: 0 4px;
}
.qty-mini {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.qty-mini button {
  border: 0;
  background: none;
  cursor: pointer;
  font-size: 1.1rem;
}
.add-btn {
  width: 100%;
  margin-top: auto;
  background: var(--ink);
  color: white;
  flex-shrink: 0;
}
.product-card[hidden] {
  display: none;
}
.season {
  max-width: none;
  background: var(--red);
  color: white;
  display: grid;
  padding: 0;
}
.season-media {
  position: relative;
  overflow: hidden;
  min-height: 520px;
}
.season-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.season-copy {
  padding: 70px 24px;
}
.season-copy h2 {
  font-size: clamp(3rem, 9vw, 6rem);
}
.season-copy > p:not(.eyebrow) {
  max-width: 500px;
  color: rgba(255, 255, 255, 0.78);
}
.flavor-meter {
  margin: 28px 0;
  max-width: 340px;
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
}
.flavor-meter div {
  display: flex;
  gap: 6px;
}
.flavor-meter i {
  width: 10px;
  height: 10px;
  background: white;
  border-radius: 50%;
}
.flavor-meter i.empty {
  background: rgba(255, 255, 255, 0.28);
}
.promo-grid {
  display: grid;
  gap: 16px;
}
.promo-card {
  min-height: 250px;
  padding: 28px;
  background: var(--yellow);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.promo-card p {
  font-size: 0.68rem;
  letter-spacing: 1px;
}
.promo-card h3 {
  font-family: var(--serif);
  font-size: 2rem;
  margin: 0 0 10px;
}
.promo-card span {
  font-size: 0.82rem;
}
.promo-dark {
  background: var(--ink);
  color: white;
}
.services {
  border-top: 1px solid var(--line);
}
.service-grid {
  display: grid;
  border-top: 1px solid var(--line);
}
.service-card {
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.service-card h3 {
  font-family: var(--serif);
  font-size: 2rem;
  margin: 20px 0 8px;
}
.service-card p {
  color: var(--muted);
  max-width: 360px;
}
.service-card a {
  font-weight: 700;
  font-size: 0.78rem;
}
.combos {
  border-top: 1px solid var(--line);
}
.combo-grid {
  display: grid;
  gap: 20px;
}
.combo-card {
  padding: 32px 24px;
  border: 1px solid var(--line);
  background: white;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.combo-icon {
  font-size: 2rem;
  line-height: 1;
}
.combo-card h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  margin: 0;
}
.combo-card p {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0;
}
.combo-price {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--muted);
}
.mayoreo {
  border-top: 1px solid var(--line);
}
.mayoreo-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: grid;
  gap: 16px;
}
.mayoreo-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
}
.mayoreo-list i {
  color: var(--yellow);
  font-size: 1.2rem;
  flex-shrink: 0;
}
.eventos {
  border-top: 1px solid var(--line);
}
.evento-grid {
  display: grid;
  gap: 16px;
}
.evento-card {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  align-items: end;
  justify-items: stretch;
  padding: 24px;
}
.evento-card > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.evento-info {
  position: relative;
  z-index: 2;
  color: var(--ink);
  background: rgba(246, 244, 239, 0.92);
  padding: 18px;
  border-radius: 4px;
}
.evento-info h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  margin: 0 0 6px;
}
.evento-info p {
  margin: 0;
  font-size: 0.82rem;
}
.evento-cta {
  margin-top: 24px;
  text-align: center;
}
.payment-grid,
.shipping-grid {
  display: grid;
  gap: 20px;
}
.payment-item,
.shipping-item {
  padding: 32px 24px;
  border: 1px solid var(--line);
  background: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}
.payment-item i,
.shipping-item i {
  font-size: 2.2rem;
  line-height: 1;
}
.payment-item h3,
.shipping-item h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  margin: 0;
}
.payment-item p,
.shipping-item p {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0;
  max-width: 280px;
}
.product-ingredients {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 4px 0;
  display: flex;
  align-items: center;
  gap: 5px;
}
.product-ingredients i {
  font-size: 0.85rem;
  flex-shrink: 0;
}
.product-nutrition {
  font-size: 0.7rem;
  color: var(--red);
  margin: 2px 0 6px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
}
.product-nutrition i {
  font-size: 0.8rem;
}
.collection-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: 0;
  text-align: left;
  font: inherit;
  color: inherit;
  width: 100%;
}
.collection-card > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-grid {
  display: grid;
  gap: 12px;
}
.gallery-grid > div {
  min-height: 350px;
}
.video-block {
  max-width: none;
  background: var(--yellow);
}
.video-wrapper {
  max-width: 960px;
  margin: 0 auto;
}
.video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}
.video-container video {
  width: 100%;
  height: 100%;
  display: block;
}
.testimonial-grid {
  display: grid;
  border-top: 1px solid var(--line);
}
blockquote {
  margin: 0;
  padding: 35px 0;
  border-bottom: 1px solid var(--line);
}
.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 20px;
  border: 2px solid var(--red);
  flex-shrink: 0;
}
.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
blockquote p {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 5vw, 2.8rem);
  margin: 0 0 30px;
}
blockquote footer {
  font-size: 0.7rem;
  letter-spacing: 1px;
}
.location {
  max-width: none;
  background: var(--ink);
  color: white;
}
.location > .section-heading,
.location > .map-container,
.location > .coverage {
  width: min(calc(100% - 48px), var(--max));
  margin-left: auto;
  margin-right: auto;
}
.section-heading.light > p {
  color: rgba(255, 255, 255, 0.6);
}
.map-container {
  background: white;
  color: var(--ink);
  display: grid;
  min-height: 590px;
}

.custom-map-pin {
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.2));
}
.store-list {
  max-height: 260px;
  overflow: auto;
}
.sucursal-item {
  width: 100%;
  padding: 22px;
  text-align: left;
  background: white;
  border: 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.sucursal-item.active {
  background: var(--yellow);
}
.sucursal-item h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  margin: 0 0 7px;
}
.sucursal-item p {
  font-size: 0.78rem;
  margin: 0;
  color: var(--muted);
}
.sucursal-item small {
  display: block;
  margin-top: 10px;
}
.map-view {
  min-height: 400px;
  background: #ddd;
  z-index: 1;
}
.coverage {
  padding-top: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 28px !important;
}
.coverage p {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  max-width: 600px;
}
.findus-grid {
  display: grid;
  gap: 20px;
}
.findus-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}
.findus-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}
.findus-icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
  line-height: 1;
}
.findus-card h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  margin: 0 0 10px;
}
.findus-card p {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0 0 20px;
  flex: 1;
}
.findus-card .button {
  margin-top: auto;
}
@media (min-width: 700px) {
  .findus-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}
.catalog-download {
  display: grid;
  gap: 28px;
  align-items: end;
}
.catalog-download p:last-child {
  color: var(--muted);
}
.faq {
  border-top: 1px solid var(--line);
}
.faq-list {
  border-top: 1px solid var(--line);
}
details {
  border-bottom: 1px solid var(--line);
}
summary {
  list-style: none;
  padding: 24px 0;
  font-family: var(--serif);
  font-size: 1.3rem;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
}
summary::-webkit-details-marker {
  display: none;
}
summary span {
  font-family: var(--sans);
  transition: 0.2s;
}
details[open] summary span {
  transform: rotate(45deg);
}
details p {
  color: var(--muted);
  max-width: 700px;
  margin: 0;
  padding: 0 0 26px;
}
.contact {
  background-color: var(--yellow);
  background-repeat: repeat;
  background-size: 250px;
  background-blend-mode: overlay;
  max-width: none;
  background: var(--yellow);
  display: grid;
  gap: 40px;
}
.contact h2 {
  font-size: clamp(3rem, 9vw, 7rem);
  max-width: 900px;
}
.contact-links {
  display: grid;
  align-content: end;
  gap: 16px;
}
.contact-links a,
.contact-links > span {
  border-bottom: 1px solid rgba(0, 0, 0, 0.25);
  padding-bottom: 12px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
}
.site-footer {
  background-color: var(--ink); /* Tu fondo negro base */
  color: white;
  padding: 70px 24px 24px;

  /* Necesario para que el pseudo-elemento funcione bien */
  position: relative;
  z-index: 1;
}
.footer-top,
.footer-grid,
.footer-bottom {
  width: min(100%, var(--max));
  margin: auto;
}
.footer-top {
  display: grid;
  gap: 45px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.17);
}
.footer-brand p {
  font-size: 0.65rem;
  letter-spacing: 2px;
}
.footer-grid {
  padding: 55px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.footer-grid > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
}
.footer-grid h3 {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #888;
}
.footer-grid a,
.footer-grid span {
  font-size: 0.8rem;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.17);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.7rem;
  color: #999;
}
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
}
.cart-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cart-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(100%, 520px);
  background: var(--paper);
  z-index: 1200;
  transform: translateX(100%);
  transition: 0.35s;
  display: flex;
  flex-direction: column;
}
.cart-drawer.open {
  transform: none;
}
.cart-header {
  padding: 22px;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.cart-header h2 {
  font-family: var(--serif);
  font-size: 2rem;
  margin: 0;
}
.cart-header button {
  border: 0;
  background: none;
  font-size: 2rem;
  cursor: pointer;
}
.cart-items {
  padding: 0 22px;
  overflow: auto;
  flex: 1;
}
.empty-cart {
  padding: 50px 0;
  text-align: center;
  color: var(--muted);
}
.cart-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 15px;
}
.cart-item h4 {
  margin: 0;
}
.cart-item p {
  margin: 4px 0;
  color: var(--muted);
  font-size: 0.78rem;
}
.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cart-item-actions button {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  background: white;
  cursor: pointer;
}
.cart-item-actions .remove {
  color: var(--red);
  border: 0;
  background: none;
}
.cart-footer {
  padding: 22px;
  border-top: 1px solid var(--line);
  max-height: 56%;
  overflow: auto;
}
.cart-footer h3 {
  font-family: var(--serif);
  margin: 0 0 15px;
}
.cart-footer label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  margin: 11px 0 5px;
}
.cart-footer input {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  background: white;
  padding: 0 10px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.total-row {
  display: flex;
  justify-content: space-between;
  margin: 20px 0;
}
.whatsapp-checkout {
  width: 100%;
  background: var(--green);
  color: white;
}
.cart-footer small {
  display: block;
  color: var(--muted);
  margin-top: 9px;
}
.whatsapp-fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 950;
  background: var(--green);
  color: white;
  min-height: 48px;
  padding: 0 10px 0 18px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
  transition: 0.25s;
}
.whatsapp-fab:hover {
  transform: translateY(-3px);
}
.whatsapp-fab i {
  font-size: 1.35rem;
  line-height: 1;
}
.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}
.gallery-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.gallery-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
}

/* --- CONFIGURACIÓN BASE DEL PANEL --- */
.gallery-modal-panel{
    position:relative;

    width:min(95vw,520px);
    max-width:520px;

    max-height:95vh;

    background:var(--paper);

    display:flex;
    flex-direction:column;

    border-radius:8px;

    overflow:hidden;

    transform:scale(.92) translateY(20px);
    transition:transform .35s cubic-bezier(.22,1,.36,1);
}

.gallery-modal-head{
    display:flex;
    align-items:center;
    gap:12px;

    padding:16px 22px;

    border-bottom:1px solid var(--line);

    flex-shrink:0;
}

.gallery-modal-label{
    flex:1;

    font-family:var(--font-titulos);
    font-size:1.4rem;
    font-weight:400;

    line-height:1;
}
.gallery-counter{
    font-size:.82rem;
    color:var(--muted);
    white-space:nowrap;
}
.gallery-modal-close{
    border:0;
    background:none;

    font-size:2rem;

    width:40px;
    height:40px;

    display:grid;
    place-items:center;

    cursor:pointer;

    color:var(--muted);

    transition:.2s;
}

.gallery-modal-close:hover {
  color: var(--ink);
}



.gallery-modal-view img{
    display:block;
    max-width:100%;
    max-height:calc(90vh - 120px);
    object-fit:contain;
    margin:auto;
}

.gallery-modal-view video{
    display:block;

    width:100%;
    max-width:420px;

    height:auto;

    max-height:calc(90vh - 120px);

    aspect-ratio:9/16;

    object-fit:contain;

    margin:auto;

    background:#000;

    border-radius:10px;
}

.gallery-modal-view iframe{
    display:block;
    width:100%;
    max-width:420px;
    aspect-ratio:9/16;
    margin:auto;
    border:0;
}

.gallery-modal-view .gallery-placeholder {
  text-align: center;
  padding: 60px 24px;
  color: var(--muted);
  font-size: 0.9rem;
}
.gallery-modal-view .gallery-placeholder i {
  font-size: 3rem;
  display: block;
  margin-bottom: 16px;
  color: var(--line);
}
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  z-index: 2;
  line-height: 1;
}
.gallery-nav:hover {
  background: white;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}
.gallery-nav-prev {
  left: 12px;
}
.gallery-nav-next {
  right: 12px;
}
.gallery-modal-foot {
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
}
.gallery-caption {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
}
.gallery-nav-hidden {
  display: none;
}
@media (max-width: 699px) {
  .gallery-modal-panel {
    width: calc(100% - 16px);
    max-height: calc(100vh - 16px);
    border-radius: 2px;
  }
  .gallery-nav {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
  }
  .gallery-nav-prev {
    left: 6px;
  }
  .gallery-nav-next {
    right: 6px;
  }
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 1400;
  background: var(--ink);
  color: white;
  padding: 12px 18px;
  font-size: 0.78rem;

  /* --- LA MAGIA PARA ESCONDERLO DEFINITIVAMENTE --- */
  transform: translate(
    -50%,
    100px
  ); /* Lo empujamos 100px fijos hacia abajo (fuera de la pantalla) */
  opacity: 0; /* Lo hacemos 100% transparente */
  visibility: hidden; /* Lo desaparecemos del mapa para que no estorbe ni se pueda clickear */

  /* Animación fluida para cuando reaparezca */
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.toast.show {
  transform: translate(-50%, 0); /* Sube a su posición normal */
  opacity: 1; /* Se hace visible */
  visibility: visible; /* Se activa en la pantalla */
}
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.75s ease,
    transform 0.75s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
@media (min-width: 700px) {
  .mrpop-nav {
    position: absolute !important;
    top: 25px !important;
    right: -10px !important;
    width: 60px !important;
    max-width: 60px !important;
    height: auto !important;
    z-index: 998 !important;
    pointer-events: none !important;
    transform: none !important;
  }

  .section-pad {
    padding: 110px 40px;
  }
  .intro {
    padding: 120px 40px;
    grid-template-columns: 120px 1.3fr 1fr;
  }
  .intro .section-kicker,
  .intro .intro-main {
    position: sticky;
    top: calc(var(--header) + 24px);
    align-self: start;
  }
  .value-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
  .value-item {
    padding: 30px 24px;
    border-right: 1px solid var(--line);
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .promo-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
  .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .combo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .evento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .payment-grid,
  .shipping-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .mayoreo-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .service-card {
    padding: 28px;
    border-right: 1px solid var(--line);
  }
  .gallery-grid {
    grid-template-columns: 1.1fr 1fr;
    grid-template-rows: 1fr 1fr;
  }
  .gallery-grid .tall {
    grid-row: 1/3;
    min-height: 720px;
  }
  .testimonial-grid {
    grid-template-columns: 1fr 1fr;
  }
  blockquote {
    padding: 40px;
  }
  blockquote:first-child {
    border-right: 1px solid var(--line);
  }
  .map-container {
    grid-template-columns: 320px 1fr;
  }
  .store-list {
    max-height: 590px;
  }
  .catalog-download {
    grid-template-columns: 1fr auto;
  }
  .contact {
    grid-template-columns: 1.5fr 0.7fr;
    padding-left: max(40px, calc((100vw - var(--max)) / 2));
    padding-right: max(40px, calc((100vw - var(--max)) / 2));
  }
  .footer-top {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-brand p {
    justify-content: center;
  }
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .section-heading.split {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 30px;
  }
}
@media (min-width: 1025px) {
  .mrpop-nav {
    position: absolute !important;
    top: 25px !important;
    right: 0px !important;
    width: 40px !important;
    max-width: 60px !important;
    height: auto !important;
    z-index: 998 !important;
    pointer-events: none !important;
    transform: none !important;
  }

  .main-nav {
    display: flex;
  }
  .menu-toggle,
  .mobile-menu {
    display: none;
  }
  .hero {
    grid-template-columns: 56% 44%; /* Vuelven las 2 columnas en PC */
    grid-template-rows: 1fr auto; 
    gap: 0; /* Quitamos el gap que le pusimos al móvil */
  }
  .hero-copy {
    min-height: auto; /* Quitamos el candado que forzaba el scroll */
    padding-top: 40px;
    padding-bottom: 40px;
  }
  .hero-media {
    grid-column: 2;
    grid-row: 1 / 3;
    min-height: auto; /* Quitamos el candado que forzaba el scroll */
    height: 100%;
    max-height: calc(100svh - var(--header)); /* Límite estricto: no pasará del borde de la pantalla */
  }
  .hero-note {
    grid-column: 1; /* <-- Mantiene el eslogan a la izquierda */
    grid-row: 2; /* <-- Lo asegura en la fila de abajo */
    display: flex;
  }
  .season {
    grid-template-columns: 1fr 1fr;
  }
  .season-copy {
    padding: 100px 7vw;
  }
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 430px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  .hero-actions .button {
    width: 100%;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .whatsapp-fab span {
    display: none;
  }
  .whatsapp-fab {
    padding: 8px;
  }
}

/*
===========================================
RED ACCENTS — Identidad visual equilibrada
Acentos estratégicos de rojo para representar
los cuatro colores de la marca sin abrumar.
===========================================
*/
.filter.active {
  box-shadow: inset 0 -3px 0 var(--red);
}
.service-card a {
  color: var(--red);
}
.service-card a:hover {
  opacity: 0.7;
}
.evento-cta .text-link {
  color: var(--red);
}
.gallery-nav:hover {
  background: var(--red);
  color: white;
}
.collection-card > div {
  border-top: 3px solid var(--red);
}
.contact-links a:hover {
  color: var(--red);
  border-bottom-color: var(--red);
}
.findus-icon .bi-shop {
  color: var(--red) !important;
}
.combo-price {
  color: var(--red);
}
.text-link:hover {
  color: var(--red);
}
.intensity span {
  color: var(--red);
  font-weight: 600;
}
.promo-card {
  border-left: 4px solid var(--red);
}
.evento-card .evento-info {
  border-top: 3px solid var(--red);
}
.cart-item-actions .remove {
  color: var(--red);
}
.product-nutrition i {
  color: var(--red);
}

/* Evita que opciones largas modifiquen el ancho de las columnas del catálogo. */
.product-grid {
  grid-template-columns: minmax(0, 1fr);
}
.product-card {
  min-width: 0;
}
.product-controls select,
.qty-mini {
  min-width: 0;
  width: 100%;
}
@media (min-width: 700px) {
  .product-grid {
    grid-template-columns: repeat(
      1,
      minmax(0, 1fr)
    ); /* 1 columna tipo lista en tablets */
  }
}
@media (min-width: 980px) {
  .product-grid {
    grid-template-columns: repeat(
      2,
      minmax(0, 1fr)
    ); /* 2 columnas en computadoras */
  }
}

/* ==========================================================
   ESCALA COMPACTA PARA LAPTOP Y ESCRITORIO
   Mantiene cada bloque legible al 100% de zoom.
   ========================================================== */
:root {
  --max: 1180px;
  --header: 64px;
}
.header-inner {
  width: min(calc(100% - 40px), var(--max));
}
.site-header {
  height: var(--header);
}
.hero {
  min-height: 0;
  height: auto;
  grid-template-rows: auto;
}
.hero-copy {
  padding-top: 54px;
  padding-bottom: 46px;
}
.hero h1 {
  font-size: clamp(3rem, 5.2vw, 5.25rem);
  max-width: 650px;
}
.hero-lead {
  margin: 18px 0 24px;
}
.hero-trust {
  margin-top: 24px;
}
.hero-note {
  display: flex;
  width: 100%;
}
.hero-media {
  min-height: 500px;
}
.section-pad {
  padding-top: 72px;
  padding-bottom: 72px;
}
.intro {
  padding-top: 76px;
  padding-bottom: 76px;
}
.intro h2,
.section-heading h2,
.catalog-download h2 {
  font-size: clamp(2.15rem, 4vw, 3.8rem);
}
.section-heading {
  margin-bottom: 30px;
}
.compact-heading {
  text-align: center;
}
.compact-heading h2 {
  font-size: clamp(2rem, 3.2vw, 3rem);
}
.compact-heading > p:last-child {
  margin: 12px auto 0;
  max-width: 590px;
}
.eyebrow {
  margin-bottom: 10px;
}
.value-item {
  padding-top: 22px;
  padding-bottom: 22px;
}
.value-item h3 {
  font-size: 1.55rem;
}
.season-media {
  min-height: 430px;
}
.season-copy {
  padding-top: 64px;
  padding-bottom: 64px;
}
.season-copy h2 {
  font-size: clamp(2.7rem, 5vw, 4.5rem);
}
.product-grid {
  gap: 18px;
}
.product-visual {
  aspect-ratio: 1/1;
}
.product-info {
  padding: 16px;
}
.product-info h3 {
  font-size: 1.25rem;
}
.product-info p {
  font-size: 0.78rem;
  min-height: 0;
  margin: 0 0 6px;
}
.intensity {
  margin: 8px 0;
}
.product-controls {
  grid-template-columns: minmax(0, 1fr) 82px;
}
.product-controls select,
.qty-mini {
  height: 38px;
}
.add-btn {
  min-height: 42px;
  padding: 0 12px;
}
.product-card:hover {
  transform: translateY(-4px);
}
.promo-card {
  min-height: 210px;
}
.service-card h3 {
  font-size: 1.65rem;
}
.map-container {
  min-height: 500px;
}
.map-view {
  min-height: 500px;
}
.gallery-grid {
  grid-template-columns: 1fr;
  grid-template-rows: none;
  gap: 20px;
}
.gallery-grid .collection-card {
  min-height: 420px;
  border-radius: 6px;
  align-items: end;
  justify-items: stretch;
  padding: 24px;
}
.collection-card > div {
  position: relative;
  z-index: 2;
  color: var(--ink);
  background: rgba(246, 244, 239, 0.92);
  padding: 18px;
  border-radius: 4px;
  text-align: left;
}
.collection-card h3 {
  font-family: var(--serif);
  font-size: 1.55rem;
  margin: 0 0 4px;
}
.collection-card p {
  margin: 0 0 12px;
  font-size: 0.82rem;
}
.collection-card a {
  font-size: 0.76rem;
  font-weight: 700;
}
.gallery-grid .tall {
  grid-row: auto;
  min-height: 420px;
}

@media (min-width: 680px) {
  .mrpop-nav {
    width: 50px !important;
    max-width: 40px !important;
    top: 24px !important;
    right: -1px !important;
  }

  .gallery-grid .collection-card {
    min-height: 460px;
  }
}

@media (min-width: 430px) {
  .mrpop-nav {
    width: 50px !important;
    max-width: 40px !important;
    top: 24px !important;
    right: -1px !important;
  }

  .gallery-grid .collection-card {
    min-height: 500px;
  }
}

@media (min-width: 700px) {
  .section-pad {
    padding-top: 78px;
    padding-bottom: 78px;
  }
  .intro {
    padding-top: 84px;
    padding-bottom: 84px;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 980px) {
  .hero {
    grid-template-columns: 56% 44%;
    grid-template-rows: auto;
  }
  .hero-copy {
    min-height: 600px;
    padding-top: 50px;
    padding-bottom: 50px;
  }
  .hero-media {
    grid-column: 2;
    grid-row: 1;
    min-height: 600px;
  }
  .hero-note {
    display: flex;
  }
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1180px) {
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-height: 760px) and (min-width: 980px) {
  .hero-copy,
  .hero-media {
    min-height: 540px;
  }
  .hero h1 {
    font-size: clamp(3rem, 4.5vw, 4.5rem);
  }
  .hero-copy {
    padding-top: 36px;
    padding-bottom: 36px;
  }
}
@media (max-width: 699px) {
  .hero-copy {
    padding: 34px 24px 30px;
  }
  .hero h1 {
    font-size: 2.55rem;
    line-height: 1.02;
  }
  .hero-lead {
    font-size: 0.96rem;
  }
  .hero-media {
    min-height: 320px;
  }
  .section-pad {
    padding-top: 56px;
    padding-bottom: 56px;
  }
  .intro {
    padding-top: 60px;
    padding-bottom: 60px;
  }
  .gallery-grid .collection-card {
    min-height: 340px;
  }
  .video-placeholder {
    min-height: 300px;
  }
  .compact-heading h2 {
    font-size: 2.15rem;
  }
  .mrpop-products {
    width: 55px !important;
    max-width: 55px !important;
    margin-top: auto !important;
  }
}

/* =======================================================
   CORRECCIÓN EXCLUSIVA PARA TABLETS Y CELULARES
   (No afecta tu diseño de escritorio)
   ======================================================= */

@media (max-width: 980px) {
  /* 1. Pasamos la tarjeta a formato vertical (foto arriba, texto abajo) */
  .product-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
  }

  .product-card {
    flex-direction: row !important;
    height: 190px !important;
    min-height: 190px !important;
  }
  /* 2. Le damos a la foto el 100% del ancho y una altura fija */
  .product-visual {
    width: 220px !important;
    height: 100% !important; /* Altura ideal para que la bolsa luzca */
    border-right: 1px solid var(--line) !important;
    border-bottom: none !important;
  }

  /* 3. EVITAMOS EL RECORTE: object-fit contain es la clave */
  .product-visual.demo-img img {
    inset: 0 !important; /* Margen para que la bolsa respire */
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* Muestra el empaque completo */
  }

  /* 4. El texto toma todo el ancho de la tarjeta */
  .product-info {
    width: calc(100% - 220px) !important;
    padding: 12px !important;
  }
}

/* Forzamos 1 sola columna en celulares (Iphone) */
@media (max-width: 650px) {
  .product-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ===========================================
   IDENTIDAD VISUAL LEX POP (VERSI�N DEFINITIVA)
   Sello Marca GTO e integraciones f�sicas de MR. POP
   =========================================== */

/* === Marca GTO === */
.marca-gto-hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  width: 100%;
  text-align: center;
}
.marca-gto-badge {
  display: block;
  height: auto;
  width: 260px;
  max-width: 100%;
  flex-shrink: 0;
}
.footer-gto {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}
.footer-gto .marca-gto-badge {
  width: 80px;
  max-width: 80px;
}


/* ==========================================================
   DESTAQUE "AVALADO POR LA SEP" (ESCUELAS)
   ========================================================== */

/* 1. Botón de filtro animado (Pulso verde) */
.filter.sep-filter {
  background: white;
  color: var(--red);
  border: 2px solid var(--red);
  animation: pulse-red 2s infinite;
}

.filter.sep-filter:hover,
.filter.sep-filter.active {
  background: var(--red) !important;
  color: white !important;
  border-color: var(--red) !important;
  animation: none;
}

@keyframes pulse-red {
  0% {
    box-shadow: 0 0 0 0 rgba(31, 143, 78, 0.4);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(31, 143, 78, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(31, 143, 78, 0);
  }
}

/* 2. Listón superior y borde en las tarjetas SEP */
/* LISTÓN SEP CORREGIDO */
.product-card[data-sep="true"] {
  padding-top: 28px; /* Ajuste para que el contenido no quede tapado por el listón */
}

.product-card[data-sep="true"]::before {
  content: "✓ AVALADA POR LA SEP";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;

  height: 36px;

  display: flex;
  justify-content: center;
  align-items: center;

  background: var(--red);
  color: #fff;
  font-weight: 800;
  font-size: 0.78rem;

  z-index: 20;
}

/* --- ESTILO BASE DE MR. POP --- */
.mrpop-products {
  position: absolute !important;
  pointer-events: none;
  width: 60px !important;
  max-width: 60px !important;
  height: auto !important;

  /* Centrado horizontal */
  left: 50%;
  margin-left: 0 !important;

  /* AQUÍ LA SOLUCIÓN: margin-top hace el ajuste fino del borde */
  margin-top: 2px !important;

  transform: translateX(-50%) translateY(0);
  z-index: 11 !important;
  opacity: 1;
  transition:
    transform 0.2s ease-in-out,
    opacity 0.2s ease-in-out !important;
}

/* --- ESTADO 1: ESCONDIDO (Baja y se hace invisible) --- */
.mrpop-products.escondido {
  transform: translateX(-50%) translateY(20px); /* Baja 20px */
  opacity: 0; /* Desaparece */
  z-index: 2 !important; /* Aseguramos que baje por detrás */
}

/* --- ESTADO 2: MODO TELETRANSPORTE --- */
.mrpop-products.teleporting {
  transition: none !important; /* Apaga la animación para moverse de golpe estando invisible */
}

.mrpop-products.is-hidden {
  opacity: 0;
  transform: translateY(10px); /* Baja en línea recta */
}

/* --- RESPONSIVO UNIVERSAL (Laptops pequeñas, Tablets y Celulares) --- */
@media (max-width: 700px) {
  .mrpop-products {
    width: 55px !important;
    max-width: 55px !important;

    /* Al ser un poco más pequeño el monito, reducimos el margen para que las manos sigan tocando el botón */
    margin-top: 3px !important;
  }
}

@media (max-width: 360px) {
  .mrpop-products {
    width: 50px !important;
    margin-left: 0 !important; /* Mitad de su width (50px) */
    margin-top: -2px !important; /* Ajuste fino del borde */
  }
}

/* === MR. POP Temporada (Discreto, detrás de la etiqueta) === */
.mrpop-season {
  position: absolute;
  top: -12px;
  right: -30px;
  width: 75px;
  max-width: 75px;
  height: auto;
  z-index: 1;
  pointer-events: none;
}
.season-copy .eyebrow {
  position: relative;
}

/* === MR. POP � Mayoreo (Sujetando bot�n CTA) === */
.mayoreo-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 32px;
  position: relative;
}
.mrpop-mayoreo {
  display: block;
  width: 95px;
  max-width: 95px;
  height: auto;
  position: absolute;
  right: 10%;
  bottom: -10px;
  z-index: 2;
}

/* === MR. POP � Footer (Detr�s del borde superior) === */
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;

  /* 1. CORRECCIÓN DE RUTA: Ahora termina en .jpg */
  background-image: url("assets/Resources/MARCAS_DE_AGUA_LEX_POP/MARCA_DE_AGUA_BLANCO.svg");

  background-repeat: repeat;
  background-size: 1200px; /* Un poco más grande para que luzcan los íconos */

  /* 2. LA MAGIA: 'screen' elimina el fondo negro del JPG */
  mix-blend-mode: screen;

  /* 3. Ajusta la intensidad (0.3 a 0.6 es ideal para que no robe atención) */
  opacity: 0.4;
}
.mrpop-footer {
  position: absolute !important;
  left: 50% !important;
  top: -59px !important;
  transform: translateX(-50%) !important;
  width: 450px !important;
  max-width: 150px !important;
  height: auto !important;
  z-index: -1 !important;
  pointer-events: none !important;
}

@media (max-width: 430px) {
  /* El monito del footer en versión móvil */
  .mrpop-footer {
    position: absolute !important;
    left: 50% !important; /* Esto lo regresa al centro */
    top: -31px !important; /* Esto hace que se asome justo arriba de la línea amarilla */
    transform: translateX(
      -50%
    ) !important; /* Lo centra perfectamente a la mitad */
    width: 80px !important; /* Un tamaño adecuado para celular */
    max-width: 80px !important;
    height: auto !important;
    z-index: 1 !important;
    pointer-events: none !important;
  }

  .mrpop-nav {
    width: 50px !important;
    max-width: 40px !important;
    top: 24px !important;
    right: -1px !important;
  }
  .filters {
    gap: 8px;
    padding: 10px 0;
  }

  /* Etiqueta especial para escuelas (Verde) */

  .mrpop-products {
    width: 55px !important;
    max-width: 55px !important;
    margin-top: 3px !important;
    /* BORRAMOS el top y margin-left de aquí para que JS pueda moverlo a la 2da fila libremente */
  }
  .mrpop-mayoreo {
    width: 60px !important;
    max-width: 60px !important;
    margin-right: -40px !important;
    top: -20px !important;
  }
  .marca-gto-badge {
    width: 90px !important;
    max-width: 90px !important;
  }
  .footer-gto .marca-gto-badge {
    width: 70px !important;
    max-width: 70px !important;
  }
}

/* =======================================================
   AJUSTE DE SEGURIDAD PARA QUE EL BOTÓN NO SE CORTE
   ======================================================= */

/* =======================================================
   REPARACIÓN FINAL: PRIORIDAD AL BOTÓN Y RESPONSIVE
   ======================================================= */

@media (max-width: 980px) {
  /* 1. Aseguramos que la tarjeta no tenga altura fija que esconda cosas */
  .product-card {
    height: auto !important;
    min-height: 220px !important;
  }

  /* 2. REESTRUCTURACIÓN DE LA INFORMACIÓN */
  .product-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Empuja el botón al fondo */
    padding: 10px !important;
  }

  /* 3. CONTROLES: Apilamiento inteligente */
  .product-controls {
    display: flex;
    flex-direction: column; /* Apila selector y contador */
    gap: 4px;
    margin-top: 5px;
  }

  /* 4. EL BOTÓN: Prioridad absoluta, siempre visible abajo */
  .add-btn {
    width: 100% !important; /* Fuerza ancho completo */
    min-height: 38px !important;
    margin-top: 8px !important;
    position: relative;
    order: 2; /* Se asegura de ir al final */
  }

  /* Ajuste de selectores para que no se vean gigantes */
  .product-controls select,
  .qty-mini {
    height: 30px !important;
    font-size: 0.75rem !important;
  }
}

/* ==========================================================
   SECCIONES OCULTAS
   Para volver a mostrarlas simplemente eliminar la clase
   feature-hidden desde JavaScript.
   ========================================================== */

.feature-hidden{
    display:none !important;
}