/* ==========================================
   MATCHALAB — Design System
   ========================================== */

/* --- FONTS --- */
@font-face {
  font-family: 'MatchaSerif';
  src: url('../fonts/matcha-serif.woff') format('woff'),
       url('../fonts/matcha-serif.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'InstrumentSerif';
  src: url('../fonts/InstrumentSerif-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'InstrumentSerif';
  src: url('../fonts/InstrumentSerif-Italic.ttf') format('truetype');
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'InstrumentSans';
  src: url('../fonts/InstrumentSans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'InstrumentSans';
  src: url('../fonts/InstrumentSans-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'GeistMono';
  src: url('../fonts/GeistMono-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* --- CUSTOM PROPERTIES --- */
:root {
  /* Brand Colors */
  --color-verde: #3D6B4F;
  --color-verde-oscuro: #2a4d3a;
  --color-verde-claro: #4a7c2f;
  --color-matcha: #7cb518;
  --color-cream: #F5F0E8;
  --color-offwhite: #FAF8F4;
  --color-sweetblack: #1a1a1a;
  --color-pink: #E8A0B0;
  --color-pink-light: #f5c8d4;
  --color-white: #ffffff;

  /* Typography */
  --font-hero: 'MatchaSerif', 'Georgia', serif;
  --font-heading: 'InstrumentSerif', 'Georgia', serif;
  --font-body: 'InstrumentSans', 'system-ui', sans-serif;
  --font-mono: 'GeistMono', 'Courier New', monospace;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  /* Borders */
  --radius-rheal: 24px 4px 24px 4px;
  --radius-rheal-alt: 4px 24px 4px 24px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 32px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.16);

  /* Transitions */
  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);

  /* Nav height */
  --nav-height: 80px;
  --banner-height: 36px;
}
@media (max-width: 767px) {
  :root {
    --nav-height: 60px;
  }
}

/* --- RESET --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
html, body {
  /* `clip` en vez de `hidden`: en moviles `overflow-x: hidden` solo en <body>
     no clipea y ensancha el layout viewport, lo que empuja los elementos
     `position: fixed` (drawer del carrito) fuera de la pantalla. `clip` no
     crea scroll container, asi que no rompe los `position: sticky`. */
  overflow-x: hidden;
  overflow-x: clip;
  max-width: 100%;
}
body {
  font-family: var(--font-body);
  color: var(--color-sweetblack);
  background: var(--color-offwhite);
  line-height: 1.6;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* --- TYPOGRAPHY --- */
h1 { font-family: var(--font-hero); font-size: clamp(2.5rem, 6vw, 5rem); line-height: 1.05; font-weight: normal; }
h2 { font-family: var(--font-heading); font-size: clamp(1.75rem, 4vw, 3rem); line-height: 1.15; font-weight: normal; }
h3 { font-family: var(--font-heading); font-size: clamp(1.25rem, 2.5vw, 1.75rem); line-height: 1.25; font-weight: normal; }
h4 { font-family: var(--font-body); font-size: 1.125rem; font-weight: 700; }
p { font-size: 1rem; line-height: 1.7; }

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  /* justify-content centra el contenido cuando el boton es mas ancho que su
     texto (width:100%, grid stretch): sin esto el label queda pegado al borde. */
  justify-content: center;
  text-align: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9375rem;
  border-radius: var(--radius-rheal);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  letter-spacing: 0.01em;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--color-verde); color: var(--color-cream); }
.btn-primary:hover { background: var(--color-verde-oscuro); }
.btn-secondary { background: var(--color-cream); color: var(--color-verde); border: 2px solid var(--color-verde); }
.btn-secondary:hover { background: var(--color-verde); color: var(--color-cream); }
.btn-pink { background: var(--color-pink); color: var(--color-sweetblack); }
.btn-pink:hover { background: var(--color-pink-light); }
.btn-outline-white { border: 2px solid var(--color-white); color: var(--color-white); border-radius: var(--radius-rheal); padding: 0.875rem 1.75rem; font-weight: 700; transition: background var(--transition); display: inline-flex; align-items: center; gap: 0.5rem; }
.btn-outline-white:hover { background: rgba(255,255,255,0.15); }
.btn-sm { padding: 0.625rem 1.25rem; font-size: 0.875rem; }
.btn-lg { padding: 1.125rem 2.25rem; font-size: 1.0625rem; }

/* --- CONTAINER --- */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 768px) { .container { padding: 0 2rem; } }
@media (min-width: 1024px) { .container { padding: 0 2.5rem; } }

/* --- PROMO BANNER --- */
.promo-banner {
  background: var(--color-pink);
  color: var(--color-sweetblack);
  text-align: center;
  padding: 0 3rem;
  height: var(--banner-height);
  font-size: 0.8125rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1001;
  overflow: hidden;
  transition: transform 0.3s ease;
}
@media (max-width: 767px) {
  .promo-banner { font-size: 0.75rem; padding: 0 2.5rem; gap: 0.5rem; }
}
.promo-banner-link {
  text-decoration: underline;
  color: var(--color-sweetblack);
  white-space: nowrap;
}

/* --- NAV --- */
.nav {
  position: fixed;
  top: var(--banner-height); left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: var(--color-offwhite);
  border-bottom: 1px solid rgba(45,80,22,0.1);
  transition: transform 0.3s ease, background var(--transition), box-shadow var(--transition);
}
/* El banner y el nav quedan fijos: no se esconden ni cambian de alto al
   scrollear. El logo es mas alto que el nav, asi que cualquier movimiento lo
   dejaba rozando el borde de la pantalla o obligaba a achicarlo. Manteniendo
   la barra quieta el scroll se ve limpio y el logo se ve grande siempre.
   Lo unico que cambia al scrollear es la sombra de .nav.scrolled. */
.nav.scrolled {
  background: var(--color-offwhite);
  box-shadow: 0 2px 16px rgba(45,80,22,0.12);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.nav-logo { display: flex; align-items: center; }
.nav-logo-img { height: 84px; width: auto; display: block; transform: translateY(8px); }
@media (max-width: 640px) { .nav-logo-img { height: 66px; transform: translateY(5px); } }
@media (max-width: 640px) { .nav-logo { margin-left: -0.625rem; } }
.nav-menu {
  display: none;
  align-items: center;
  gap: 0.25rem;
}
@media (min-width: 1024px) { .nav-menu { display: flex; } }
.nav-link {
  color: var(--color-verde-oscuro);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
  position: relative;
}
.nav-link:hover { background: rgba(45,80,22,0.08); }
.nav-link.active { color: var(--color-matcha); }

/* Dropdown */
.nav-item { position: relative; }
.nav-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-verde-oscuro);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  min-width: 200px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown { opacity: 1; visibility: visible; }
.nav-dropdown a {
  display: block;
  color: var(--color-cream);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.875rem;
  transition: background var(--transition);
}
.nav-dropdown a:hover { background: rgba(255,255,255,0.1); }

.nav-cta { margin-left: 0.75rem; }

/* Hamburger (estilo Matchaflix: líneas alineadas a la izquierda, la inferior más corta) */
.nav-toggle {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  padding: 0.5rem;
  cursor: pointer;
}
@media (min-width: 1024px) { .nav-toggle { display: none; } }
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-verde-oscuro);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle span:last-child { width: 15px; }

/* Nav mobile: hamburguesa izquierda · logo centrado · carrito derecha (setup Matchaflix) */
@media (max-width: 1023px) {
  .nav-inner { position: relative; }
  /* Las barras de la hamburguesa son un bloque solido y de borde recto, asi
     que a la misma distancia matematica se leen con mas margen que el trazo
     fino del carrito. Se corre 3px hacia el borde para igualar el aire optico. */
  .nav-toggle { order: -1; margin-left: -3px; }
  .cart-btn { order: 3; }
  .nav-inner .nav-cta { display: none; }
  .nav-logo {
    position: absolute; left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
  }
}

/* Mobile menu */
/* Cubre el viewport completo. Antes se anclaba con top:banner+nav y sin
   altura propia: media lo que media su contenido (se veia la pagina debajo)
   y el panel quedaba desalineado del nav mientras este se
   quedaba en su top fijo, desprendiendose de la barra blanca.
   Con inset:0 el panel ya no depende de donde este el nav. */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  height: 100vh;
  height: 100dvh;
  background: var(--color-verde-oscuro);
  padding: calc(var(--banner-height) + var(--nav-height) + 1.25rem) 1.25rem 2rem;
  flex-direction: column;
  z-index: 999;
  overflow-y: auto;
  overscroll-behavior: contain;
}
/* El nav (z-index 1000) queda por encima del panel: si el banner ya se
   oculto, el contenido empieza mas arriba para no dejar un hueco. */
.nav-mobile.open { display: flex; }
/* Red de seguridad: en desktop el panel nunca debe quedar visible. Sin esto,
   pasar de mobile a desktop con el menu abierto deja la pantalla cubierta. */
@media (min-width: 1024px) { .nav-mobile, .nav-mobile.open { display: none; } }

/* Con el menu abierto el fondo no debe scrollear. */
body.nav-open { overflow: hidden; }

/* Level 1 & 2 containers */
.nav-mobile-l1,
.nav-mobile-l2 {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  width: 100%;
}
.nav-mobile-l1.hidden { display: none; }
.nav-mobile-l2 { display: none; }
.nav-mobile-l2.active { display: flex; }

/* Parent items with chevron */
.nav-mobile-parent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--color-cream);
  padding: 0.875rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.125rem;
  font-family: var(--font-heading);
  background: transparent;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: background 0.15s;
}
.nav-mobile-parent:hover { background: rgba(255,255,255,0.07); }
.nav-mobile-chevron {
  font-size: 1.4rem;
  line-height: 1;
  opacity: 0.55;
  font-family: sans-serif;
}

/* Regular links */
.nav-mobile-link {
  display: block;
  color: var(--color-cream);
  padding: 0.875rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.125rem;
  font-family: var(--font-heading);
  transition: background 0.15s;
}
.nav-mobile-link:hover { background: rgba(255,255,255,0.07); }

/* Sub-category "Ver todos" link */
.nav-mobile-link-cat {
  color: var(--color-matcha);
  font-size: 0.8rem;
  font-family: var(--font-mono);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.5rem 1rem 0.75rem;
  opacity: 0.9;
}

/* Back button */
.nav-mobile-back {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-matcha);
  padding: 0.25rem 1rem 1rem;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.nav-mobile-back span { font-size: 1.1rem; line-height: 1; }

/* Coming soon */
.nav-mobile-coming {
  display: block;
  color: var(--color-cream);
  opacity: 0.35;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-family: var(--font-mono);
}

/* --- HERO --- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--banner-height));
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-verde-oscuro);
  padding-top: calc(var(--banner-height) + var(--nav-height) + var(--space-md));
  padding-bottom: var(--space-lg);
}
@media (max-width: 767px) {
  .hero { min-height: auto; padding-top: calc(var(--banner-height) + var(--nav-height) + var(--space-lg)); }
  .hero h1 { font-size: clamp(2rem, 8vw, 3rem); }
  .hero-desc { font-size: 1rem; }
}
.hero-video,
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,48,9,0.52) 0%, rgba(26,48,9,0.18) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  color: var(--color-cream);
  max-width: 680px;
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #E8A0B0;
  margin-bottom: var(--space-sm);
}
.hero h1 { color: var(--color-cream); margin-bottom: var(--space-md); font-size: clamp(2rem, 4.5vw, 3.25rem); line-height: 1.1; }
/* Nombre de producto en páginas de detalle — mismo tamaño que el título del hero */
#product-heading { font-size: clamp(2rem, 4.5vw, 3.25rem); line-height: 1.1; }
.hero-desc { font-size: 1.125rem; line-height: 1.65; margin-bottom: var(--space-lg); opacity: 0.9; max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.hero-actions .btn-primary { background: var(--color-cream); color: var(--color-verde); }
.hero-actions .btn-primary:hover { background: var(--color-offwhite); color: var(--color-verde-oscuro); }
.hero-actions .btn-outline-white { background: transparent; color: var(--color-cream); border-color: var(--color-cream); }
.hero-actions .btn-outline-white:hover { background: rgba(255,255,255,0.1); color: var(--color-cream); border-color: var(--color-cream); }

/* Hero centered variant */
.hero-center .hero-content { max-width: 100%; text-align: center; }
.hero-center .hero-actions { justify-content: center; }
.hero-center .hero-desc { margin-left: auto; margin-right: auto; }

/* Hero — centrado en mobile en todas las páginas (igual que el index) */
@media (max-width: 767px) {
  .hero-content { text-align: center; margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
}

/* --- SECTION LAYOUT --- */
.section { padding: var(--space-xl) 0; }
/* El nav (fijo) tapa el borde superior de cualquier seccion a la que se
   salta por #anchor (ej. dropdown de Mayorista, CTAs "Cotiza Ahora") si no
   se compensa su altura — el contenido aparece cortado justo debajo del nav. */
.section[id] { scroll-margin-top: calc(var(--banner-height) + var(--nav-height) + 1rem); }
.section-sm { padding: var(--space-lg) 0; }
.section-xl { padding: var(--space-2xl) 0; }
.section-verde { background: var(--color-verde); color: var(--color-cream); }
.section-verde-oscuro { background: var(--color-verde-oscuro); color: var(--color-cream); }
.section-cream { background: var(--color-cream); }
.section-offwhite { background: var(--color-offwhite); }
.section-sweetblack { background: var(--color-sweetblack); color: var(--color-cream); }
.section-pink { background: var(--color-pink-light); }

.section-header { text-align: center; margin-bottom: var(--space-lg); max-width: 640px; margin-left: auto; margin-right: auto; }
.section-header h2 { margin-bottom: 0.75rem; }
.section-header p { font-size: 1.0625rem; opacity: 0.85; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-matcha);
  margin-bottom: 0.5rem;
  display: block;
}
.section-verde .eyebrow,
.section-verde-oscuro .eyebrow,
.section-sweetblack .eyebrow { color: var(--color-pink); }

/* --- GRID --- */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.grid-5 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
@media (max-width: 767px) { .grid-5 > :last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (min-width: 640px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .grid-5 { grid-template-columns: repeat(5, 1fr); }
}

/* --- CARDS --- */
.card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.card-body { padding: 1.25rem; }
.card-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-matcha);
  margin-bottom: 0.5rem;
}

/* Product card */
.product-card {
  background: var(--color-cream);
  border-radius: var(--radius-md);
  padding: 0;
  overflow: hidden;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.product-card-img {
  width: 100%;
  max-width: 100%;
  margin: 0;
  display: block;
  aspect-ratio: 3/4;
  object-fit: cover;
}
.product-card-flavor {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-verde);
  margin-bottom: 0.375rem;
  padding: 1rem 1.25rem 0;
}
.product-card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; padding: 0 1.25rem; }
.product-card > p:not(.product-card-flavor) { font-size: 0.9rem; opacity: 0.75; margin-bottom: 1rem; padding: 0 1.25rem; }
/* margin-top:auto ancla el CTA al fondo de la card, asi todas las cards de
   la fila alinean el boton aunque las descripciones tengan distinto largo. */
.product-card .btn { margin: auto 1.25rem 1.25rem; }

/* Pie de card: precio + CTA anclados abajo, separados de la descripcion.
   margin-top:auto empuja el bloque al fondo y alinea el pie de todas las
   cards de la fila aunque las descripciones tengan distinto largo. */
.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding: 1.25rem 1.25rem 1.5rem;
}
.product-card-footer .btn { margin: 0; white-space: nowrap; }
/* En mobile la card mide media pantalla: precio y boton uno al lado del otro
   no caben y el CTA quedaba cortado. Se apilan y el boton toma el ancho
   completo de la card. */
@media (max-width: 640px) {
  .product-card-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 0.625rem;
    padding: 1rem 1rem 1.25rem;
    text-align: center;
  }
  .product-card-footer .btn { width: 100%; }
}
.product-card-price {
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1;
  color: var(--color-verde);
}

/* Rheal-shape card */
.rheal-card {
  border-radius: var(--radius-rheal);
  overflow: hidden;
}
.rheal-img {
  border-radius: var(--radius-rheal);
}

/* --- BENEFITS / ICONS --- */
.benefit-item { display: flex; gap: 1rem; align-items: flex-start; }
.benefit-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--color-matcha);
  border-radius: var(--radius-rheal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

/* --- SOCIAL PROOF (Rheal style) --- */
.social-proof {
  background: var(--color-sweetblack);
  color: var(--color-cream);
  overflow: hidden;
  padding: var(--space-md) 0 var(--space-xl);
}
.social-proof-grid {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 0.75rem;
  padding: 0 1rem 0.75rem;
  scrollbar-width: none;
  max-width: 1400px;
  margin: 0 auto;
}
.social-proof-grid::-webkit-scrollbar { display: none; }
.social-proof-grid .social-proof-item {
  flex: 0 0 88vw;
  width: 88vw;
  max-width: 88vw;
  scroll-snap-align: center;
}
@media (min-width: 640px) {
  .social-proof-grid .social-proof-item { flex: 0 0 45vw; width: 45vw; max-width: 45vw; scroll-snap-align: start; }
}
@media (min-width: 1024px) {
  .social-proof-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
    padding: 0 1rem;
    overflow-x: visible;
    scroll-snap-type: none;
  }
  .social-proof-grid .social-proof-item { flex: unset; width: auto; max-width: unset; }
}
.social-proof-item { position: relative; aspect-ratio: 3/5; overflow: hidden; border-radius: 16px; }
.social-proof-item img,
.social-proof-item video {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  filter: grayscale(20%);
}
.social-proof-item:hover img { transform: scale(1.05); filter: grayscale(0%); }
.social-proof-item-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
  padding: 1rem 0.75rem 0.75rem;
  opacity: 0;
  transition: opacity var(--transition);
}
.social-proof-item:hover .social-proof-item-overlay { opacity: 1; }
.social-proof-item-overlay p { font-size: 0.8rem; font-weight: 600; }

.social-proof-header { text-align: center; padding: var(--space-md) 0 var(--space-md); color: var(--color-cream); }
.social-proof-header h2 { font-size: clamp(2rem, 5vw, 3.5rem); }
.social-proof-header h2 em { font-style: italic; color: var(--color-pink); }

/* --- TESTIMONIALS --- */
.testimonial-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}
.testimonial-stars { color: var(--color-matcha); font-size: 1rem; margin-bottom: 0.75rem; letter-spacing: 0.1em; }
.testimonial-text { font-size: 1rem; line-height: 1.65; margin-bottom: 1rem; opacity: 0.9; }
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.testimonial-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--color-matcha);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.875rem; color: var(--color-cream);
  flex-shrink: 0;
}
.testimonial-name { font-weight: 700; font-size: 0.9rem; }
.testimonial-meta { font-size: 0.8rem; opacity: 0.65; }
.testimonial-card-light {
  background: #fff;
  border: 1px solid rgba(26,48,9,0.1);
  color: var(--color-sweetblack);
}
.testimonial-card-light .testimonial-stars { color: var(--color-verde-oscuro); }
.testimonial-card-light .testimonial-avatar { background: var(--color-verde-oscuro); }
.testimonial-card-light .testimonial-name { color: var(--color-sweetblack); }
.testimonial-card-light .testimonial-meta { color: var(--color-sweetblack); }

/* --- Reviews carrusel mobile --- */
.testimonial-carousel {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 0;
  padding: 0 1.25rem 0.75rem;
  scroll-padding-left: 1.25rem;
  touch-action: pan-x;
  scrollbar-width: none;
  width: 100%;
}
@media (min-width: 768px) {
  .testimonial-carousel { padding: 0 2rem 0.75rem; scroll-padding-left: 2rem; }
}
.testimonial-carousel::-webkit-scrollbar { display: none; }
.testimonial-carousel .testimonial-card {
  flex: 0 0 calc(100vw - 2.5rem);
  width: calc(100vw - 2.5rem);
  max-width: calc(100vw - 2.5rem);
  margin-right: 1rem;
  scroll-snap-align: start;
  overflow: hidden;
  touch-action: none;
  pointer-events: none;
}
.testimonial-carousel .testimonial-card a,
.testimonial-carousel .testimonial-card button {
  pointer-events: auto;
}
@media (min-width: 900px) {
  .testimonial-carousel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow-x: visible;
    scroll-snap-type: none;
    padding: 0 2.5rem;
    max-width: 1280px;
    margin: 0 auto;
    gap: 1.5rem;
  }
  .testimonial-carousel .testimonial-card {
    flex: unset;
    width: auto;
    max-width: unset;
  }
}

/* --- MARQUEE / TICKER --- */
.marquee-wrapper { overflow: hidden; background: var(--color-matcha); padding: 0.75rem 0; }
.marquee-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marquee 25s linear infinite;
}
.marquee-item {
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-verde-oscuro);
  font-weight: 700;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* --- FAQ --- */
/* ── Comunidad Videos ────────────────────────── */
.video-community-grid {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 0.75rem;
  padding: 0 1rem 0.75rem;
  scrollbar-width: none;
}
.video-community-grid::-webkit-scrollbar { display: none; }
.video-community-grid .vid-card {
  flex: 0 0 75vw;
  width: 75vw;
  max-width: 75vw;
  scroll-snap-align: start;
}
@media (min-width: 900px) {
  .video-community-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.75rem;
    padding: 0;
    overflow-x: visible;
    scroll-snap-type: none;
  }
  .video-community-grid .vid-card {
    flex: unset;
    max-width: unset;
  }
}
.vid-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 9/16;
  cursor: pointer;
  background: var(--color-sweetblack);
}
.vid-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.vid-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.28);
  transition: opacity .25s;
  pointer-events: none;
}
.vid-card-overlay svg {
  width: 40px;
  height: 40px;
  fill: #fff;
  opacity: 0.85;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}
.vid-card:hover .vid-card-overlay { opacity: 0; }

/* ── Delivery channel cards ──────────────────── */
.delivery-channels {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2rem;
}
.delivery-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.delivery-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }
.delivery-card-verde { background: var(--color-sweetblack); color: var(--color-pink); }
.delivery-card-verde span { color: var(--color-pink); }
.delivery-card-pink  { background: var(--color-pink);  color: var(--color-verde); }
.delivery-card-pink span { color: var(--color-verde); }
/* ── /Comunidad Videos ───────────────────────── */

/* ── Fidelización ─────────────────────────────── */
.fidel-track {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  position: relative;
  margin: 2.5rem auto 0;
  max-width: 680px;
}
.fidel-line {
  position: absolute;
  top: 28px;
  left: calc(12.5% + 24px);
  right: calc(12.5% + 24px);
  height: 3px;
  background: rgba(0,0,0,0.1);
  z-index: 0;
}
.fidel-track[data-animated] .fidel-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-verde);
  transform-origin: left;
  animation: fidel-line-grow 1.2s cubic-bezier(.4,0,.2,1) forwards;
}
@keyframes fidel-line-grow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
.fidel-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
}
.fidel-dot {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(0,0,0,0.3);
  transition: border-color .4s, color .4s, background .4s, transform .4s;
}
.fidel-track[data-animated] .fidel-step[data-step="1"] .fidel-dot,
.fidel-track[data-animated] .fidel-step[data-step="2"] .fidel-dot,
.fidel-track[data-animated] .fidel-step[data-step="3"] .fidel-dot {
  border-color: var(--color-verde);
  color: var(--color-verde);
  animation: fidel-dot-pop .4s ease forwards;
}
.fidel-track[data-animated] .fidel-step[data-step="2"] .fidel-dot { animation-delay: .3s; }
.fidel-track[data-animated] .fidel-step[data-step="3"] .fidel-dot { animation-delay: .6s; }
.fidel-dot-reward {
  background: var(--color-verde) !important;
  border-color: var(--color-verde) !important;
  color: #fff !important;
}
.fidel-track[data-animated] .fidel-dot-reward {
  animation: fidel-dot-pop .5s .9s ease both;
}
@keyframes fidel-dot-pop {
  0%   { transform: scale(.7); opacity: .4; }
  60%  { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}
.fidel-label {
  text-align: center;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.8125rem;
}
.fidel-label strong { font-weight: 700; }
.fidel-label span { opacity: 0.55; font-size: 0.75rem; }
.fidel-card {
  background: #f1f8e9;
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  border: 1px solid rgba(0,0,0,0.07);
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.fidel-card h4 { margin: 0.75rem 0 0.5rem; color: var(--color-sweetblack); }
.fidel-card p  { opacity: .7; font-size: .9rem; margin: 0; color: var(--color-sweetblack); }
.fidel-card-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-verde);
  color: #fff;
  font-family: var(--font-hero);
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}
/* ── /Fidelización ────────────────────────────── */

.faq-item {
  border-bottom: 1px solid rgba(0,0,0,0.1);
}
.section-verde .faq-item,
.section-verde-oscuro .faq-item,
.section-sweetblack .faq-item {
  border-color: rgba(255,255,255,0.12);
}
.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: normal;
  color: inherit;
  transition: color var(--transition);
}
.faq-question:hover { color: var(--color-matcha); }
.faq-icon {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border: 2px solid currentColor;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: transform var(--transition);
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { overflow: hidden; max-height: 0; transition: max-height 0.35s ease; }
.faq-answer-inner { padding-bottom: 1.25rem; opacity: 0.85; line-height: 1.7; }

/* --- BLOG FEATURED (index) --- */
.blog-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--radius-rheal);
  overflow: hidden;
  margin-bottom: 3rem;
  background: var(--color-sweetblack);
  color: var(--color-cream);
  text-decoration: none;
  min-height: 400px;
}
@media (max-width: 767px) { .blog-featured { grid-template-columns: 1fr; } }
.blog-featured-img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; display: block; }
.blog-featured-body {
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}
.blog-featured-body h2 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); color: var(--color-cream); margin: 0; line-height: 1.25; }
.blog-featured-body p { opacity: 0.72; color: var(--color-cream); font-size: 0.9375rem; margin: 0; line-height: 1.65; }
.blog-featured-meta { font-size: 0.75rem; opacity: 0.5; font-family: var(--font-mono); letter-spacing: 0.05em; }

/* Category badge pill */
.blog-cat-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  color: var(--color-cream);
  background: var(--color-matcha);
  line-height: 1.6;
}
.blog-cat-badge.cat-educacion { background: var(--color-verde); }
.blog-cat-badge.cat-comparativa { background: var(--color-matcha); }
.blog-cat-badge.cat-salud { background: #4a9e6b; }
.blog-cat-badge.cat-recetas { background: #c26a2a; }
.blog-cat-badge.cat-b2b { background: var(--color-verde-oscuro); }
.blog-cat-badge.cat-ranking { background: #7a5fa0; }
.blog-cat-badge.cat-marca { background: #2d7faf; }

/* --- BLOG CARDS --- */
.blog-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blog-card-img { width: 100%; aspect-ratio: 16/11; object-fit: cover; display: block; }
.blog-card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }
.blog-card-cat {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-matcha);
}
.blog-card-meta { font-size: 0.75rem; opacity: 0.5; font-family: var(--font-mono); }
.blog-card h3 { font-size: 1.05rem; margin: 0; line-height: 1.35; }
.blog-card p { font-size: 0.875rem; opacity: 0.7; flex: 1; margin: 0; }
.blog-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 0.75rem; border-top: 1px solid rgba(0,0,0,0.06); }
.blog-read-more { font-size: 0.875rem; font-weight: 700; color: var(--color-verde); text-decoration: none; }

/* --- STAT ITEMS --- */
.stat-item { text-align: center; }
.stat-number { font-family: var(--font-hero); font-size: clamp(2.5rem, 5vw, 4rem); color: var(--color-cream); line-height: 1; }
.stat-label { font-size: 0.9rem; opacity: 0.8; margin-top: 0.25rem; }

/* --- SPLIT SECTION --- */
.split { display: grid; grid-template-columns: 1fr; gap: var(--space-lg); align-items: center; }
@media (min-width: 768px) { .split { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .split { gap: var(--space-xl); } }
.split-reverse .split-img { order: -1; }
@media (min-width: 768px) { .split-reverse .split-img { order: 0; } }

.split-img {
  border-radius: var(--radius-rheal);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.split-img img { width: 100%; height: 100%; object-fit: cover; }

/* --- DELIVERY TABS --- */
.tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.tab-btn {
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.875rem;
  border: 2px solid var(--color-verde);
  color: var(--color-verde);
  background: transparent;
  transition: background var(--transition), color var(--transition);
}
.tab-btn.active, .tab-btn:hover { background: var(--color-verde); color: var(--color-cream); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* --- BREADCRUMB --- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.65);
  padding: 1rem 0;
}
.breadcrumb a { color: rgba(255,255,255,0.65); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--color-cream); }
.breadcrumb-sep { opacity: 0.45; }
.breadcrumb-light { color: rgba(0,0,0,0.45); }
.breadcrumb-light a { color: rgba(0,0,0,0.45); }
.breadcrumb-light a:hover { color: var(--color-verde); }

/* --- FORM --- */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-weight: 600; font-size: 0.875rem; margin-bottom: 0.375rem; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid rgba(0,0,0,0.12);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  background: var(--color-white);
  transition: border-color var(--transition);
  color: var(--color-sweetblack);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--color-verde);
}
.form-textarea { resize: vertical; min-height: 120px; }

/* --- FOOTER --- */
.footer {
  background: var(--color-verde-oscuro);
  color: var(--color-cream);
  padding: var(--space-xl) 0 var(--space-md);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-brand img { height: 96px; margin-bottom: 0; margin-top: -16px; }
.footer-grid { align-items: start; }
.footer-tagline { font-size: 0.9rem; opacity: 0.7; line-height: 1.6; max-width: 280px; margin-top: -8px; }
.footer-col h4 { font-size: 0.8rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-cream); margin-bottom: 1rem; }
.footer-col a { display: block; font-size: 0.9rem; opacity: 0.75; margin-bottom: 0.5rem; transition: opacity var(--transition); }
.footer-col a:hover { opacity: 1; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-md);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  opacity: 0.6;
}
.footer-social { display: flex; gap: 0.75rem; }
.footer-social a {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.875rem;
  opacity: 0.8;
  transition: opacity var(--transition), border-color var(--transition);
}
.footer-social a:hover { opacity: 1; border-color: var(--color-matcha); }

/* --- BLOG ARTICLE HEADER --- */
.article-title-block { padding: var(--space-md) 0 var(--space-sm); }
.article-title-block h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); line-height: 1.15; margin: 0.75rem 0; }
.article-title-block .article-summary { font-size: 1.0625rem; opacity: 0.75; line-height: 1.65; max-width: 700px; margin: 0; }
.article-meta-row { display: flex; align-items: center; gap: 0.6rem; font-size: 0.8rem; opacity: 0.55; font-family: var(--font-mono); flex-wrap: wrap; margin-top: 1rem; }
.article-meta-dot { opacity: 0.4; }
.article-hero-img {
  width: 100%;
  aspect-ratio: 16/8;
  object-fit: cover;
  border-radius: var(--radius-md);
  display: block;
  margin-top: 0.5rem;
}

/* Article content wrapper */
.article-content-wrap { background: var(--color-offwhite); padding: calc(var(--banner-height) + var(--nav-height)) 0 var(--space-xl); }

/* Breadcrumb row — full width, centered, above the grid */
.article-breadcrumb-row {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2.5rem 1.25rem;
  text-align: center;
}
.article-breadcrumb-row .breadcrumb {
  justify-content: center;
  display: flex;
  flex-wrap: wrap;
}
@media (max-width: 900px) {
  .article-breadcrumb-row { padding: 0 1.25rem 1rem; }
}

/* Scroll offset for anchor links — compensate for fixed nav + banner */
.article-body h2[id],
.article-body h3[id] {
  scroll-margin-top: calc(var(--banner-height) + var(--nav-height) + 1.5rem);
}
.article-content-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2.5rem;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3.5rem;
  align-items: start;
}
.article-main { min-width: 0; }

/* Sidebar — sticky from top, starts at same level as title */
.article-sidebar { position: sticky; top: calc(var(--banner-height) + var(--nav-height) + 1.5rem); display: flex; flex-direction: column; gap: 1.5rem; }
.article-sidebar-cta {
  background: var(--color-verde);
  color: var(--color-cream);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}
.article-sidebar-cta h4 { color: var(--color-cream); margin-bottom: 0.5rem; font-size: 1rem; }
.article-sidebar-cta p { font-size: 0.875rem; opacity: 0.85; margin-bottom: 0; }

/* Inline TOC below hero image — always visible */
.article-toc-inline {
  margin: 1.5rem 0 2rem;
}

/* On desktop, hide inline TOC (sidebar covers it); on mobile show it */
@media (min-width: 901px) { .article-toc-inline { display: none; } }

@media (max-width: 900px) {
  .article-content-inner { grid-template-columns: 1fr; gap: 0; padding: 0 1.25rem; }
  .article-sidebar { position: static; margin-top: 2rem; }
  .article-sidebar .article-toc { display: none; }
}
@media (min-width: 768px) and (max-width: 900px) {
  .article-content-inner { padding: 0 2rem; }
}

/* Share buttons */
.article-share {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(0,0,0,0.08);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  margin: 0 0 2rem;
}
.article-share-label { font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-sweetblack); margin-right: 0.25rem; }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(0,0,0,0.14);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--color-sweetblack);
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.share-btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.share-btn:hover { background: var(--color-sweetblack); color: white; border-color: transparent; }
.share-btn:hover svg { fill: white; }

/* Related articles 2-col */
.related-articles { margin-top: 3rem; }
.related-articles h3 { margin-bottom: 1.5rem; font-size: 1.25rem; }
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .related-grid { grid-template-columns: 1fr; } }
.related-card {
  background: var(--color-cream);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: box-shadow var(--transition), transform var(--transition);
}
.related-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.related-card h4 { font-size: 1rem; line-height: 1.4; margin: 0; }
.related-card-meta { font-size: 0.75rem; opacity: 0.5; font-family: var(--font-mono); margin-top: auto; padding-top: 0.5rem; }

/* --- BLOG ARTICLE --- */
.article-toc {
  background: var(--color-cream);
  border-left: 4px solid var(--color-matcha);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.25rem 1.5rem;
}
.article-toc h4 { font-size: 0.8rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-verde); margin-bottom: 0.75rem; }
.article-toc ol { padding-left: 1.25rem; list-style: decimal; }
.article-toc li { margin-bottom: 0.35rem; }
.article-toc a { font-size: 0.9rem; color: var(--color-verde); font-weight: 600; }
.article-toc a:hover { color: var(--color-matcha); }

.article-body h2 { margin: 2.5rem 0 1rem; }
.article-body h3 { margin: 2rem 0 0.75rem; }
.article-body p { margin-bottom: 1.25rem; }
.article-body ul, .article-body ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.article-body li { margin-bottom: 0.4rem; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }

.callout {
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  border-left: 4px solid;
}
.callout-green { background: #e8f4e8; border-color: var(--color-verde); color: var(--color-verde-oscuro); }
.callout-pink { background: #fce8ee; border-color: var(--color-pink); }
.callout-yellow { background: #fef9e7; border-color: #f0c040; }
.callout-title { font-weight: 700; margin-bottom: 0.375rem; }

.comparison-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.9rem; }
/* En movil el ancho minimo de las columnas supera el viewport: la volvemos
   scrolleable en vez de dejar que empuje la pagina. */
@media (max-width: 767px) {
  .comparison-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .comparison-table th, .comparison-table td { white-space: nowrap; }
}
.comparison-table th { background: var(--color-verde); color: var(--color-cream); padding: 0.75rem 1rem; text-align: left; }
.comparison-table td { padding: 0.65rem 1rem; border-bottom: 1px solid rgba(0,0,0,0.08); }
.comparison-table tr:nth-child(even) td { background: var(--color-cream); }
.comparison-table .highlight { color: var(--color-verde); font-weight: 700; }

.author-card {
  background: var(--color-cream);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin: 2.5rem 0;
}
.author-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-name { font-weight: 700; margin-bottom: 0.25rem; }
.author-role { font-size: 0.8rem; color: var(--color-matcha); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.5rem; }
.author-bio { font-size: 0.875rem; opacity: 0.8; }

.article-cta-box {
  background: var(--color-verde);
  color: var(--color-cream);
  border-radius: var(--radius-rheal);
  padding: 2rem;
  text-align: center;
  margin: 2.5rem 0;
}
.article-cta-box h3 { margin-bottom: 0.75rem; }
.article-cta-box p { margin-bottom: 1.25rem; opacity: 0.9; }

/* --- MAYORISTA SECTION CARDS --- */
.mayori-card {
  background: var(--color-cream);
  border: 1px solid rgba(61,107,79,0.15);
  border-radius: var(--radius-rheal);
  padding: 2rem;
  transition: background var(--transition);
}
.mayori-card:hover { background: var(--color-offwhite); }
.mayori-card-icon { font-size: 2rem; margin-bottom: 1rem; }
.mayori-card h3 { margin-bottom: 0.75rem; color: var(--color-verde-oscuro) !important; }
.mayori-card ul { list-style: none; }
.mayori-card ul li { padding: 0.35rem 0; font-size: 0.9rem; color: var(--color-sweetblack); opacity: 0.85; }
.mayori-card ul li::before { content: "✓ "; color: var(--color-verde); font-weight: 700; }

/* --- WHERE TO BUY --- */
.platform-card {
  background: var(--color-cream);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  transition: transform var(--transition), box-shadow var(--transition);
}
.platform-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.platform-card-logo { height: 48px; object-fit: contain; }

/* --- WHERE TO BUY — RESPONSIVE GRIDS --- */
.donde-channels {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 960px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .donde-channels { grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
}

.donde-platform-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.donde-label {
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  opacity: 0.5;
}

.donde-regiones-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
  background: var(--color-verde);
  border-radius: var(--radius-rheal);
  color: var(--color-cream);
}

.donde-communes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 2.75rem;
}
@media (min-width: 480px) {
  .donde-communes-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 768px) {
  .donde-communes-grid { grid-template-columns: repeat(4, 1fr); gap: 0.875rem; }
}
@media (min-width: 1024px) {
  .donde-communes-grid { grid-template-columns: repeat(6, 1fr); }
}

.donde-commune-card {
  background: rgba(245,240,232,0.07);
  border: 1px solid rgba(245,240,232,0.14);
  border-radius: var(--radius-rheal);
  padding: 1.1rem 0.75rem;
  text-align: center;
}
.donde-commune-card p { margin: 0; }
.donde-commune-label {
  font-size: 0.6rem;
  font-family: var(--font-mono);
  color: var(--color-matcha);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.4rem !important;
}
.donde-commune-name {
  color: var(--color-cream);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.2rem !important;
}
.donde-commune-time {
  color: var(--color-matcha);
  font-size: 0.75rem;
  font-family: var(--font-mono);
}

/* --- BADGES --- */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}
.badge-green { background: var(--color-matcha); color: var(--color-cream); }
.badge-pink { background: var(--color-pink); color: var(--color-sweetblack); }
.badge-cream { background: var(--color-cream); color: var(--color-verde); }
.badge-soon { background: var(--color-sweetblack); color: var(--color-cream); opacity: 0.7; }

/* --- UTILITY --- */
.text-center { text-align: center; }
.text-green { color: var(--color-verde); }
.text-matcha { color: var(--color-matcha); }
.text-cream { color: var(--color-cream); }
.text-pink { color: var(--color-pink); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.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; }

/* --- CHECKLIST --- */
.checklist { display: flex; flex-direction: column; gap: 0.5rem; }
.checklist-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; }
.check { color: var(--color-matcha); font-weight: 700; flex-shrink: 0; }
.check-pink { color: var(--color-pink); font-weight: 700; flex-shrink: 0; }

/* --- LAYOUT UTILITIES --- */
.flex-col-gap { display: flex; flex-direction: column; gap: 1rem; }
.flex-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* --- GEO TAGS --- */
.geo-tag {
  background: rgba(245,240,232,0.09);
  border: 1px solid rgba(245,240,232,0.15);
  color: var(--color-cream);
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-family: var(--font-mono);
}
.geo-tag-matcha {
  background: rgba(124,181,24,0.2);
  border: 1px solid rgba(124,181,24,0.35);
  color: var(--color-matcha);
}

/* --- SCROLL REVEAL --- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-reveal].revealed { opacity: 1; transform: translateY(0); }
[data-reveal="right"] { transform: translateX(24px); }
[data-reveal="right"].revealed { transform: translateX(0); }
[data-reveal="left"] { transform: translateX(-24px); }
[data-reveal="left"].revealed { transform: translateX(0); }
/* En movil el desplazamiento lateral de 24px es mas ancho que el gutter (20px)
   y asoma 4px fuera del viewport. La entrada vertical se ve igual de bien y no
   desborda. */
@media (max-width: 767px) {
  [data-reveal="right"], [data-reveal="left"] { transform: translateY(24px); }
  [data-reveal="right"].revealed, [data-reveal="left"].revealed { transform: translateY(0); }
}

/* --- RESPONSIVE HELPERS --- */
.hide-mobile { display: none; }
@media (min-width: 768px) { .hide-mobile { display: block; } }
.hide-desktop { display: block; }
@media (min-width: 768px) { .hide-desktop { display: none; } }

/* ==========================================
   PRODUCT PAGE SECTIONS — v2
   ========================================== */

/* --- PROD DETAILS (split: story left, accordions right) --- */
.prod-details {
  padding: var(--space-xl) 0;
  background: var(--color-offwhite);
}
.prod-details-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}
@media (min-width: 960px) {
  .prod-details-inner { grid-template-columns: 1fr 1fr; }
}
.prod-details-story h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: 1rem;
  line-height: 1.2;
}
.prod-details-story p { opacity: 0.8; line-height: 1.75; margin-bottom: 1.5rem; }
.prod-cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  border: 2px solid var(--color-verde);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-verde);
  margin-top: 0.5rem;
}
.prod-cert-badge svg { flex-shrink: 0; }

/* Accordions always-open variant */
.prod-accordion-list { border-top: 1px solid rgba(0,0,0,0.12); }
.prod-accordion-item { border-bottom: 1px solid rgba(0,0,0,0.12); }
.prod-accordion-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.125rem 0;
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  cursor: pointer;
  user-select: none;
  gap: 1rem;
}
.prod-accordion-head .acc-icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border: 1.5px solid var(--color-sweetblack);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  transition: transform var(--transition), background var(--transition);
}
.prod-accordion-item.open .acc-icon {
  background: var(--color-verde);
  border-color: var(--color-verde);
  color: var(--color-cream);
  transform: rotate(45deg);
}
.prod-accordion-body {
  display: none;
  padding-bottom: 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  opacity: 0.8;
}
.prod-accordion-item.open .prod-accordion-body { display: block; }
.prod-accordion-body ul { padding-left: 1.25rem; list-style: disc; }
.prod-accordion-body ul li { margin-bottom: 0.4rem; }

.prod-trustpilot {
  margin-top: 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  font-weight: 700;
}
.prod-trustpilot-stars { display: flex; gap: 3px; }
.prod-trustpilot-star {
  width: 22px; height: 22px;
  background: #00b67a;
  display: flex; align-items: center; justify-content: center;
}
.prod-trustpilot-star svg { fill: #fff; width: 14px; height: 14px; }

/* --- PROD BENEFITS (full-width bg image) --- */
.prod-benefits {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-verde-oscuro);
}
@media (max-width: 767px) { .prod-benefits { min-height: 360px; } }
.prod-benefits-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}
.prod-benefits-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.28) 100%);
}
.prod-benefits-content {
  position: relative;
  z-index: 1;
  color: var(--color-cream);
  max-width: 680px;
  padding: var(--space-xl) 0;
}
.prod-benefits-content .eyebrow { color: var(--color-pink); }
.prod-benefits-content h2 { color: var(--color-cream); margin-bottom: 1.75rem; }
.prod-benefit-list { display: flex; flex-direction: column; gap: 1rem; }
.prod-benefit-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.prod-benefit-check {
  flex-shrink: 0;
  width: 24px; height: 24px;
  background: var(--color-matcha);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  color: #fff;
  font-weight: 900;
  margin-top: 2px;
}
.prod-benefit-row h4 { font-size: 1rem; font-weight: 700; color: var(--color-cream); margin-bottom: 0.25rem; }
.prod-benefit-row p { font-size: 0.9rem; opacity: 0.8; }

/* --- PROD CAROUSEL (blog links) --- */
.prod-carousel {
  padding: var(--space-xl) 0;
  background: var(--color-cream);
  overflow: hidden;
}
.prod-carousel-header { text-align: center; margin-bottom: var(--space-lg); }
.prod-carousel-track {
  position: relative;
  overflow: hidden;
}
.prod-carousel-slides {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.4,0,0.2,1);
}
.prod-carousel-slide {
  min-width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  padding: 0 1rem;
}
@media (min-width: 768px) {
  .prod-carousel-slide { grid-template-columns: 1fr 1fr; padding: 0; }
}
.prod-carousel-slide-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-rheal);
}
.prod-carousel-slide-content .eyebrow { color: var(--color-matcha); }
.prod-carousel-slide-content h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  margin-bottom: 0.75rem;
  line-height: 1.25;
}
.prod-carousel-slide-content p { font-size: 0.9375rem; opacity: 0.8; margin-bottom: 1.25rem; }
.prod-carousel-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2rem;
}
.prod-carousel-tabs {
  display: flex;
  gap: 0;
  border-top: 2px solid rgba(0,0,0,0.1);
  flex: 1;
}
.prod-carousel-tab {
  flex: 1;
  text-align: center;
  padding: 0.75rem 0.5rem 0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(0,0,0,0.35);
  cursor: pointer;
  border-top: 2px solid transparent;
  margin-top: -2px;
  transition: color var(--transition), border-color var(--transition);
}
.prod-carousel-tab.active { color: var(--color-sweetblack); border-color: var(--color-sweetblack); }
.prod-carousel-arrows {
  display: flex;
  gap: 0.5rem;
  padding-left: 1rem;
  flex-shrink: 0;
}
@media (max-width: 767px) {
  .prod-carousel-nav { flex-wrap: wrap; gap: 0.75rem; }
  .prod-carousel-arrows { order: -1; padding-left: 0; width: 100%; justify-content: flex-end; }
  .prod-carousel-tabs { order: 0; width: 100%; }
}
.prod-carousel-arrow {
  width: 40px; height: 40px;
  border: 1.5px solid rgba(0,0,0,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
  font-size: 1rem;
  background: transparent;
}
.prod-carousel-arrow:hover { background: var(--color-verde); border-color: var(--color-verde); color: var(--color-cream); }

/* --- PROD NAV GRID (category + blog links) --- */
.prod-nav-grid {
  padding: var(--space-xl) 0;
  background: var(--color-offwhite);
}
.prod-nav-grid-header { text-align: center; margin-bottom: var(--space-lg); }
.prod-nav-grid-header .eyebrow { margin-bottom: 0.5rem; }
.prod-nav-grid-header h2 { font-size: clamp(1.25rem, 2.5vw, 2rem); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 639px) { .prod-nav-grid-header h2 { white-space: normal; font-size: clamp(1.1rem, 4vw, 1.5rem); } }
.prod-nav-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
@media (min-width: 640px) { .prod-nav-cards { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px) { .prod-nav-cards-4 { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 639px) { .prod-nav-cards-4 { grid-template-columns: repeat(2, 1fr); } }
.prod-nav-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-rheal);
  aspect-ratio: 3/4;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  color: var(--color-cream);
}
@media (min-width: 640px) { .prod-nav-card { aspect-ratio: 3/2; } }
.prod-nav-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.prod-nav-card:hover .prod-nav-card-img { transform: scale(1.04); }
.prod-nav-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,48,9,0.85) 0%, rgba(26,48,9,0.15) 60%);
}
.prod-nav-card-body {
  position: relative;
  z-index: 1;
  padding: 1.5rem;
  width: 100%;
}
.prod-nav-card-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-matcha);
  display: block;
  margin-bottom: 0.35rem;
}
.prod-nav-card-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  line-height: 1.2;
}
.prod-nav-blog-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.75rem 2rem;
  border-radius: var(--radius-rheal-alt);
  color: var(--color-cream);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  overflow: hidden;
  min-height: 90px;
  background: var(--color-verde-oscuro);
}
.prod-nav-blog-link-bg {
  position: absolute;
  inset: 0;
  background-image: url('/img/canned-matcha-hero.jpg');
  background-size: cover;
  background-position: center;
  filter: brightness(0.3);
  transition: transform 0.5s ease;
}
.prod-nav-blog-link:hover .prod-nav-blog-link-bg { transform: scale(1.03); }
.prod-nav-blog-link-body { position: relative; z-index: 1; }
.prod-nav-blog-link-body span { font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-matcha); display: block; margin-bottom: 0.35rem; }
.prod-nav-blog-link-body strong { font-family: var(--font-heading); font-size: 1.2rem; color: var(--color-cream); }
.prod-nav-blog-link-arrow { position: relative; z-index: 1; font-size: 1.5rem; color: var(--color-matcha); }

/* --- PRODUCT GALLERY --- */
.prod-gallery { display: flex; flex-direction: column; gap: 0.75rem; height: 100%; }
.prod-gallery-main {
  flex: 1;
  min-height: 420px;
  border-radius: var(--radius-rheal);
  overflow: hidden;
  background: var(--color-offwhite);
}
.prod-gallery-main img {
  width: 100%; height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}
.prod-gallery-main img:hover { transform: scale(1.03); }
.prod-gallery-thumbs {
  display: flex;
  gap: 0.5rem;
  /* Hay paginas con 5-6 miniaturas: sin scroll las ultimas quedaban fuera
     del viewport en lugar de ser alcanzables. */
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.prod-gallery-thumbs::-webkit-scrollbar { display: none; }
.prod-gallery-thumb {
  flex: 0 0 calc((100% - 1.5rem) / 4);
  scroll-snap-align: start;
  aspect-ratio: 1/1;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  background: none;
  transition: border-color 0.2s;
}
.prod-gallery-thumb.active { border-color: var(--color-verde); }
.prod-gallery-thumb:hover { border-color: var(--color-matcha); }
.prod-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prod-gallery-main { position: relative; }
.prod-gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.88);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 2px 10px rgba(0,0,0,0.14);
  transition: background 0.18s, transform 0.18s;
  color: var(--color-sweetblack);
}
.prod-gallery-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.prod-gallery-prev { left: 0.75rem; }
.prod-gallery-next { right: 0.75rem; }

@media (max-width: 767px) {
  .prod-section {
    padding-top: calc(var(--banner-height) + var(--nav-height)) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .prod-section > .container {
    padding-left: 0;
    padding-right: 0;
  }
  .prod-section .split {
    gap: 0;
  }
  .prod-gallery-main {
    border-radius: 0;
    min-height: 360px;
    width: 100%;
  }
  .prod-gallery-thumbs {
    padding: 0 1.25rem;
  }
  .prod-section .split > div:last-child {
    padding: 1.25rem;
  }
}

/* --- SOCIAL PROOF COMPACT --- */
.social-proof-compact {
  padding: var(--space-xl) 0;
  background: var(--color-sweetblack);
  color: var(--color-cream);
}
.social-proof-compact-header { text-align: center; padding: 0 1rem var(--space-md); }
.social-proof-compact-header h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); color: var(--color-cream); }
.social-proof-compact-header h2 em { font-style: italic; color: var(--color-pink); }
.social-proof-compact-grid {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 0.75rem;
  padding: 0 1rem 0.75rem;
  scrollbar-width: none;
  max-width: 1200px;
  margin: 0 auto;
}
.social-proof-compact-grid::-webkit-scrollbar { display: none; }
.social-proof-compact-grid .social-proof-item {
  flex: 0 0 88vw;
  width: 88vw;
  max-width: 88vw;
  scroll-snap-align: center;
}
@media (min-width: 900px) {
  .social-proof-compact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 0 1.5rem;
    overflow-x: visible;
    scroll-snap-type: none;
  }
  .social-proof-compact-grid .social-proof-item {
    flex: unset;
    max-width: unset;
  }
}

/* --- HOW TO PREPARE --- */
.prod-prepare {
  padding: var(--space-xl) 0;
  background: var(--color-cream);
  color: var(--color-sweetblack);
}
.prod-prepare-step h4 { color: var(--color-sweetblack); margin-bottom: 0.5rem; }
.prod-prepare-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: var(--space-lg);
}
@media (min-width: 640px) { .prod-prepare-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .prod-prepare-steps { grid-template-columns: repeat(4, 1fr); } }
.prod-prepare-step { text-align: center; }
.prod-prepare-step-num {
  font-family: var(--font-hero);
  font-size: 3.5rem;
  color: var(--color-matcha);
  line-height: 1;
  margin-bottom: 0.75rem;
}
.prod-prepare-step p { font-size: 0.9rem; opacity: 0.75; }

/* ============================================================
   CARRITO
   ============================================================ */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.45);
  z-index: 1100;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.cart-overlay.open { opacity: 1; visibility: visible; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%);
  background: var(--color-white); z-index: 1101;
  display: flex; flex-direction: column;
  transform: translate3d(100%, 0, 0);
  transition: transform 0.34s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-lg);
  contain: layout paint;
}
.cart-drawer.open { transform: translate3d(0, 0, 0); }
.cart-head {
  position: relative; display: flex; align-items: center; justify-content: center;
  padding: 1.25rem 1.5rem; border-bottom: 1px solid rgba(0,0,0,0.08);
}
.cart-head h3 { font-family: var(--font-heading); font-size: 1.4rem; margin: 0; text-align: center; }
.cart-close {
  position: absolute; top: 50%; right: 0.75rem; transform: translateY(-50%);
  background: none; border: none; font-size: 2rem; line-height: 1;
  cursor: pointer; color: var(--color-sweetblack); padding: 0;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
}
.cart-body { flex: 1; overflow-y: auto; padding: 1rem 1.5rem; }
.cart-empty { opacity: .6; text-align: center; padding: 3rem 0; }
.cart-item {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 1rem;
  align-items: start; padding: 1rem 0; border-bottom: 1px solid rgba(0,0,0,0.07);
}
.cart-item img {
  width: 64px; height: 64px; object-fit: cover;
  border-radius: var(--radius-sm); background: var(--color-cream);
}
.cart-item-info strong { display: block; font-size: .95rem; }
.cart-item-info span { font-size: .8rem; opacity: .6; }
.cart-item-price { font-weight: 600; white-space: nowrap; }
.cart-qty { display: flex; align-items: center; gap: .5rem; margin-top: .5rem; }
.cart-qty button {
  width: 26px; height: 26px; border: 1px solid rgba(0,0,0,0.15);
  background: var(--color-white); border-radius: 50%; cursor: pointer;
  font-size: 1rem; line-height: 1; display: grid; place-items: center;
}
.cart-qty button:hover { background: var(--color-cream); }
.cart-remove {
  width: auto !important; border: none !important; border-radius: 0 !important;
  font-size: .75rem !important; opacity: .55; text-decoration: underline;
  margin-left: .35rem; padding: 0 !important;
}
.cart-foot { padding: 1.25rem 1.5rem; border-top: 1px solid rgba(0,0,0,0.08); }
.cart-total {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 1.15rem; margin-bottom: .35rem;
}
.cart-total strong { font-size: 1.4rem; color: var(--color-verde); }
.cart-note { font-size: .78rem; opacity: .55; margin: 0 0 1rem; }
.cart-checkout { width: 100%; justify-content: center; }

.cart-progress {
  background: var(--color-cream);
  padding: 1rem 1.5rem 1.25rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.cart-progress-msg {
  text-align: center; font-size: .9rem; margin: 0 0 1.1rem;
  color: var(--color-verde);
}
.cart-progress-msg strong { color: var(--color-verde); font-weight: 700; }
.cart-progress-track {
  position: relative; height: 28px; margin-bottom: 1.35rem;
}
.cart-progress-line {
  position: absolute; left: 14px; right: 14px; top: 13px; height: 3px;
  background: rgba(61,107,79,0.18); border-radius: 999px; overflow: hidden;
}
.cart-progress-fill {
  display: block; height: 100%;
  background: var(--color-matcha); border-radius: 999px;
  transition: width 0.45s cubic-bezier(0.22,0.61,0.36,1);
}
.cart-progress-node {
  position: absolute; top: 0;
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; z-index: 1;
}
.cart-progress-start {
  left: 0; background: var(--color-matcha); color: #fff;
}
.cart-progress-end {
  right: 0; background: var(--color-white); color: rgba(61,107,79,0.4);
  border: 2px solid rgba(61,107,79,0.25);
}
.cart-progress-end.done {
  background: var(--color-matcha); color: #fff; border-color: var(--color-matcha);
}
.cart-progress-endlabel {
  position: absolute; top: 32px; right: 14px; transform: translateX(50%);
  font-size: .7rem; font-weight: 600; color: var(--color-verde);
  white-space: nowrap;
}

/* Badge del nav */
/* Mismo padding que .nav-toggle: son los dos extremos del nav en mobile y con
   paddings distintos quedaban a distinta distancia del borde de la pantalla. */
.cart-btn { position: relative; background: none; border: none; cursor: pointer; padding: 0.5rem; }
[data-cart-count] {
  position: absolute; top: -2px; right: -4px; min-width: 18px; height: 18px;
  background: var(--color-verde); color: #fff; border-radius: 999px;
  font-size: .68rem; font-weight: 700; display: grid; place-items: center;
  padding: 0 5px;
}

/* Checkout */
.checkout-grid {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 2.5rem; align-items: start;
}
@media (max-width: 860px) { .checkout-grid { grid-template-columns: 1fr; } }
.checkout-summary {
  background: var(--color-cream); border-radius: var(--radius-md); padding: 1.5rem;
  position: sticky; top: calc(var(--nav-height) + 1rem);
}
.checkout-line {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .55rem 0; font-size: .92rem;
}
.checkout-line.total {
  border-top: 1px solid rgba(0,0,0,.12); margin-top: .5rem; padding-top: .9rem;
  font-size: 1.15rem; font-weight: 700;
}
.checkout-line.total span:last-child { color: var(--color-verde); }

/* --- GRIDS DE NOSOTROS (antes inline y por eso inalcanzables por media queries) --- */
.info-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 600px) { .info-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .info-grid { grid-template-columns: repeat(4, 1fr); } }

.space-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
@media (min-width: 640px) { .space-gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .space-gallery { grid-template-columns: repeat(5, 1fr); } }
.space-gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-rheal);
}
@media (max-width: 639px) { .space-gallery img { height: 130px; } }

/* Caja blanca de "Datos Útiles": el padding de 2rem se come el ancho en pantallas chicas */
.info-card { background: #fff; border-radius: var(--radius-rheal); padding: 2rem; }
@media (max-width: 479px) { .info-card { padding: 1.25rem; } }

/* --- RED DE SEGURIDAD RESPONSIVA --- */
/* Los items de grid/flex traen min-width:auto, que impide encogerse por debajo del
   contenido mínimo y provoca desbordes horizontales. */
.grid-2 > *, .grid-3 > *, .grid-4 > *, .grid-5 > *,
.info-grid > *, .split > * { min-width: 0; }

/* Palabras largas (URLs, emails, nombres compuestos) no deben empujar el layout */
h1, h2, h3, h4, p, li, td, th, a { overflow-wrap: break-word; }

/* --- PAGINAS LEGALES (terminos, devoluciones) --- */
.legal { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 0.5rem; }
.legal h2 {
  font-size: 1.25rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--color-verde-oscuro);
}
.legal p { margin-bottom: 1rem; line-height: 1.7; }
.legal a { color: var(--color-verde); text-decoration: underline; }
.legal .callout { margin: 1.5rem 0 0.5rem; }
.legal .callout p { margin-bottom: 0; }
.legal-updated { font-size: 0.875rem; opacity: 0.6; margin-bottom: 0.5rem; }
.legal-list { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.legal-list li { margin-bottom: 0.5rem; line-height: 1.7; }
/* Es un item mas de .footer-bottom, que ya centra con align-items:center.
   Cualquier margin vertical aca lo desalinea respecto al copyright. */
.footer-legal { display: flex; flex-wrap: wrap; gap: 0.35rem 1.25rem; align-items: center; margin: 0; }
/* El padre .footer-bottom ya aplica opacity 0.6; un 0.7 aca se multiplica
   a 0.42 y los enlaces quedan mas apagados que el texto vecino. */
.footer-legal a { text-decoration: underline; }
/* opacity:1 aqui no haria nada: el hijo no puede aclararse mas que su
   padre con opacity 0.6. El feedback va por el subrayado. */
.footer-legal a:hover { text-decoration-thickness: 2px; }

/* ==========================================
   COTIZADOR MAYORISTA (marca blanca / kilo)
   Layout compacto: config angosta izq, simulacion+foto der.
   ========================================== */
.quoter { display: grid; grid-template-columns: 300px 1fr; gap: 1.75rem; align-items: start; }
@media (max-width: 860px) {
  /* minmax(0, 1fr) en vez de 1fr: sin esto el track toma el min-content del
     contenido (460px) y desborda el viewport en moviles. */
  .quoter { grid-template-columns: minmax(0, 1fr); }
}
/* Permite que los hijos se encojan por debajo de su min-content. */
.quoter-config, .quoter-sim, .sim-top, .qactions { min-width: 0; }

.quoter-config {
  background: var(--color-white); border-radius: var(--radius-md);
  padding: 1.4rem; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 1.25rem;
  position: sticky; top: calc(var(--banner-height) + var(--nav-height) + 1rem);
}
@media (max-width: 860px) { .quoter-config { position: static; } }
.qc-label { font-family: var(--font-mono); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--color-verde-oscuro); opacity: 0.6; margin-bottom: 0.6rem; }
.qc-pills { display: flex; flex-direction: column; gap: 0.55rem; }
.qc-pill {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  width: 100%; padding: 0.8rem 1rem; border: 2px solid var(--color-offwhite); border-radius: var(--radius-sm);
  cursor: pointer; background: var(--color-offwhite); transition: all var(--transition); text-align: left;
  position: relative;
}
.qc-pill::before {
  content: ''; width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid rgba(0,0,0,0.18); transition: all var(--transition); margin-right: 0.15rem;
}
.qc-pill-body { display: flex; flex-direction: column; flex: 1; }
.qc-pill:hover { border-color: var(--color-verde); background: var(--color-white); }
.qc-pill.active {
  border-color: var(--color-verde-oscuro); background: var(--color-verde-oscuro);
  box-shadow: var(--shadow-sm);
}
.qc-pill.active::before { border-color: var(--color-matcha); background: var(--color-matcha); box-shadow: inset 0 0 0 3px var(--color-verde-oscuro); }
.qc-pill-main { font-weight: 700; font-size: 0.95rem; color: var(--color-sweetblack); }
.qc-pill.active .qc-pill-main { color: var(--color-cream); }
.qc-pill-sub { font-size: 0.72rem; color: var(--color-sweetblack); opacity: 0.55; }
.qc-pill.active .qc-pill-sub { color: var(--color-cream); opacity: 0.65; }

select.qc-select {
  width: 100%; padding: 0.7rem 2.2rem 0.7rem 0.85rem; border: 2px solid rgba(0,0,0,0.1);
  border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 0.88rem;
  color: var(--color-sweetblack); background: var(--color-offwhite); cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231a1a1a' stroke-width='1.5' fill='none' stroke-linecap='round' opacity='0.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
select.qc-select:focus { outline: none; border-color: var(--color-verde); }

.qc-toggle {
  display: flex; align-items: flex-start; gap: 0.6rem; padding: 0.75rem; width: 100%;
  border: 2px solid rgba(0,0,0,0.1); border-radius: var(--radius-sm); cursor: pointer;
  background: var(--color-offwhite); transition: border-color var(--transition); text-align: left;
}
.qc-toggle:hover { border-color: var(--color-verde); }
.qc-toggle.checked { border-color: var(--color-verde-oscuro); background: #f1f8e9; }
.qc-chk { width: 18px; height: 18px; min-width: 18px; border: 2px solid var(--color-verde); border-radius: 5px; background: var(--color-white); display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.qc-toggle.checked .qc-chk { background: var(--color-verde-oscuro); border-color: var(--color-verde-oscuro); }
.qc-chk-mark { color: var(--color-cream); font-size: 0.7rem; font-weight: 700; opacity: 0; }
.qc-toggle.checked .qc-chk-mark { opacity: 1; }
.qc-toggle-text strong { display: block; font-size: 0.82rem; line-height: 1.3; }
.qc-toggle-text span { font-size: 0.72rem; opacity: 0.6; line-height: 1.3; display: block; margin-top: 0.15rem; }
.qc-toggle-price { font-family: var(--font-heading); font-size: 0.95rem; color: var(--color-verde-oscuro); font-weight: 700; margin-top: 0.35rem; display: block; }

.qc-syrup-row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.55rem 0; border-bottom: 1px solid rgba(0,0,0,0.06); }
.qc-syrup-row:last-of-type { border-bottom: none; }
.qc-syrup-name { font-size: 0.86rem; font-weight: 600; color: var(--color-sweetblack); }
.qc-counter { display: flex; align-items: center; gap: 0.6rem; }
.qc-counter-btn {
  width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--color-verde);
  background: var(--color-white); color: var(--color-verde-oscuro); font-size: 1rem; line-height: 1;
  display: flex; align-items: center; justify-content: center; transition: background var(--transition), color var(--transition);
}
.qc-counter-btn:hover { background: var(--color-verde); color: var(--color-cream); }
.qc-counter-btn:focus-visible { outline: 2px solid var(--color-verde); outline-offset: 2px; }
.qc-counter-val { min-width: 1.4rem; text-align: center; font-weight: 700; font-size: 0.92rem; font-variant-numeric: tabular-nums; }
.qc-syrup-note { font-size: 0.7rem; opacity: 0.5; margin-top: 0.5rem; }

.quoter-sim { display: flex; flex-direction: column; gap: 1.5rem; }

/* La foto del producto vive DENTRO de la card de resultado, superpuesta al
   header verde como una vitrina — no es una columna aparte al lado. Esto es
   lo que hace que foto + cotización se lean como un solo objeto, no dos. */
.sim-top { position: relative; border-radius: var(--radius-md); box-shadow: var(--shadow-md); overflow: visible; }
.quote-card { background: var(--color-white); border-radius: var(--radius-md); overflow: hidden; display: flex; flex-direction: column; }

.quote-hd {
  background: var(--color-verde-oscuro); padding: 1.1rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  min-height: 108px;
}
.quote-hd-text { display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-start; flex: 1; min-width: 0; }
.quote-hd-title { font-family: var(--font-heading); font-size: 1.05rem; color: var(--color-cream); line-height: 1.25; }
.quote-badge { background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.26); border-radius: var(--radius-pill); padding: 0.28rem 0.8rem; font-size: 0.7rem; color: var(--color-cream); font-weight: 600; white-space: nowrap; }

/* Vitrina: la lata "flota" fuera del header verde, apoyada sobre la card blanca. */
.sim-photo {
  flex-shrink: 0; width: 132px; height: 132px; align-self: flex-end;
  display: flex; align-items: center; justify-content: center;
  transform: translateY(28px);
}
.sim-photo img {
  width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,0.28));
  transition: opacity 0.28s ease, transform 0.28s ease;
}
.sim-photo img.swap { opacity: 0; transform: translateY(8px) scale(0.94); }
.sim-photo.kilo-visual {
  width: 108px; height: 108px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #3a6b46, #1a3323 72%);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3), 0 0 0 5px var(--color-white);
}
.kilo-badge { font-family: var(--font-hero); color: var(--color-cream); text-align: center; }
.kilo-badge .kg-num { font-size: 1.9rem; line-height: 1; display: block; }
.kilo-badge .kg-unit { font-family: var(--font-mono); font-size: 0.5rem; letter-spacing: 0.1em; opacity: 0.7; display: block; margin-top: 0.15rem; }

@media (max-width: 520px) {
  .quote-hd { min-height: 84px; padding: 1rem; }
  .sim-photo { width: 84px; height: 84px; transform: translateY(20px); }
  .sim-photo.kilo-visual { width: 72px; height: 72px; }
  .kilo-badge .kg-num { font-size: 1.4rem; }
}


.price-hl { padding: 1.6rem 1.2rem 1.2rem; display: grid; grid-template-columns: 1fr auto 1fr auto; gap: 0.9rem; align-items: center; border-bottom: 1px solid rgba(0,0,0,0.08); }
@media (max-width: 520px) { .price-hl { padding-top: 1.3rem; grid-template-columns: 1fr 1fr; row-gap: 0.8rem; } .price-hl .tier-tag { grid-column: 1/-1; justify-self: start; } .price-hl .pdiv { display: none; } }
.pbox { text-align: center; }
.pbox-label { font-family: var(--font-mono); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-sweetblack); opacity: 0.5; margin-bottom: 0.3rem; }
.pbox-val { font-family: var(--font-heading); font-size: 1.7rem; font-weight: 400; color: var(--color-verde-oscuro); line-height: 1; font-variant-numeric: tabular-nums; }
.pbox-val.muted { opacity: 0.55; font-size: 1.2rem; }
.pdiv { width: 1px; height: 40px; background: rgba(0,0,0,0.1); }
.tier-tag { background: #f1f8e9; border: 1px solid var(--color-verde); border-radius: var(--radius-pill); padding: 0.3rem 0.85rem; font-size: 0.68rem; color: var(--color-verde-oscuro); font-weight: 700; white-space: nowrap; }

.qtable-wrap { overflow-x: auto; }
table.qtable { width: 100%; border-collapse: collapse; min-width: 460px; }
.qtable th { padding: 0.6rem 0.9rem; text-align: left; font-family: var(--font-mono); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-sweetblack); opacity: 0.5; background: var(--color-offwhite); border-bottom: 1px solid rgba(0,0,0,0.08); }
.qtable th:nth-child(n+4) { text-align: right; }
.qtable td { padding: 0.6rem 0.9rem 0.6rem 0.75rem; font-size: 0.82rem; vertical-align: middle; font-variant-numeric: tabular-nums; }
.qtable td:nth-child(n+4) { text-align: right; }

/* Filas de tramo = control primario de selección. Cada fila se comporta
   como un botón grande: hover claro, tramo activo "anclado" con borde
   lateral + fondo, foco de teclado visible, feedback táctil en :active. */
.qtable tbody tr.tier-row {
  cursor: pointer;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  border-left: 3px solid transparent;
  transition: background var(--transition), border-color var(--transition);
}
.qtable tbody tr:last-child td { border-bottom: none; }
.qtable tbody tr.tier-row:hover { background: rgba(124,181,24,0.1); }
.qtable tbody tr.tier-row:active { background: rgba(124,181,24,0.16); }
.qtable tbody tr.tier-row.active {
  background: #f1f8e9;
  border-left-color: var(--color-verde);
  box-shadow: inset 0 0 0 1px rgba(61,107,79,0.12);
}
.qtable tbody tr.tier-row.active:hover { background: #eaf5db; }
.qtable tbody tr.tier-row:focus-visible {
  outline: 2px solid var(--color-verde);
  outline-offset: -2px;
  background: rgba(124,181,24,0.12);
}
.t-id { font-weight: 700; color: var(--color-sweetblack); opacity: 0.5; font-size: 0.74rem; font-family: var(--font-mono); }
.qtable tr.active .t-id { color: var(--color-verde-oscuro); opacity: 1; }
.disc-badge { display: inline-block; padding: 0.12rem 0.5rem; background: var(--color-offwhite); border-radius: var(--radius-pill); font-size: 0.68rem; font-weight: 700; color: var(--color-sweetblack); opacity: 0.55; }
.disc-badge.on { background: var(--color-verde-oscuro); color: var(--color-cream); opacity: 1; }
.t-total { font-weight: 700; color: var(--color-verde-oscuro); font-family: var(--font-heading); font-size: 1rem; }

.qfooter { padding: 1rem 1.25rem; background: var(--color-verde-oscuro); display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap; }
.qfooter-lbl { font-size: 0.74rem; color: var(--color-cream); opacity: 0.68; font-weight: 600; }
.qfooter-addon { font-size: 0.72rem; color: var(--color-cream); opacity: 0.5; margin-top: 0.2rem; }
.total-wrap { text-align: right; }
.total-neto-lbl { font-family: var(--font-heading); font-size: 0.88rem; color: var(--color-cream); opacity: 0.72; }
.total-big { font-family: var(--font-heading); font-size: 1.7rem; font-weight: 400; color: var(--color-cream); line-height: 1.1; font-variant-numeric: tabular-nums; }

.qactions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
.qactions .btn,
.qactions .btn-outline-dark { flex: 1 1 260px; justify-content: center; text-align: center; max-width: 320px; }
@media (max-width: 480px) { .qactions .btn, .qactions .btn-outline-dark { flex-basis: 100%; max-width: 100%; } }
.btn-outline-dark { border: 2px solid var(--color-verde-oscuro); color: var(--color-verde-oscuro); border-radius: var(--radius-rheal); padding: 0.875rem 1.75rem; font-weight: 700; font-family: var(--font-body); font-size: 0.9375rem; display: inline-flex; align-items: center; gap: 0.5rem; transition: background var(--transition), color var(--transition); background: transparent; }
.btn-outline-dark:hover { background: var(--color-verde-oscuro); color: var(--color-cream); }

.mkt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 700px) { .mkt-grid { grid-template-columns: 1fr; gap: 0.85rem; } }
.mkt-card { background: var(--color-white); border-radius: var(--radius-md); padding: 1.1rem 1.25rem; box-shadow: var(--shadow-sm); }
.mkt-card.hl { background: var(--color-verde-oscuro); }
.mkt-label { font-family: var(--font-mono); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-sweetblack); opacity: 0.5; margin-bottom: 0.45rem; }
.mkt-card.hl .mkt-label { color: var(--color-cream); opacity: 0.6; }
.mkt-val { font-family: var(--font-heading); font-size: 1.35rem; color: var(--color-sweetblack); margin-bottom: 0.25rem; font-variant-numeric: tabular-nums; }
.mkt-card.hl .mkt-val { color: var(--color-cream); }
.mkt-val.pop { color: var(--color-verde-oscuro); font-size: 1.6rem; }
.mkt-sub { font-size: 0.74rem; opacity: 0.58; }
.mkt-card.hl .mkt-sub { color: var(--color-cream); opacity: 0.55; }
.bar-wrap { margin-top: 0.75rem; }
.bar-lbl { font-size: 0.66rem; opacity: 0.5; margin-bottom: 0.25rem; display: flex; justify-content: space-between; }
.bar-bg { height: 5px; background: rgba(0,0,0,0.08); border-radius: 3px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--color-matcha); border-radius: 3px; transition: width 0.5s ease; }

.notes-box { background: #f1f8e9; border-left: 3px solid var(--color-verde); border-radius: var(--radius-sm); padding: 0.9rem 1.15rem; font-size: 0.78rem; color: var(--color-verde-oscuro); line-height: 1.7; margin-top: 1.5rem; }

/* ---- Modal: enviar cotización (WhatsApp o email) ---- */
.mb-modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 1200;
  background: rgba(26,26,26,0.55); backdrop-filter: blur(2px);
  align-items: center; justify-content: center; padding: 1.25rem;
}
.mb-modal-overlay.open { display: flex; }
.mb-modal {
  background: var(--color-white); border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  width: 100%; max-width: 440px; padding: 2rem; position: relative;
  max-height: 90vh; overflow-y: auto;
}
.mb-modal-close {
  position: absolute; top: 1rem; right: 1rem; width: 32px; height: 32px;
  border-radius: 50%; background: var(--color-offwhite); color: var(--color-sweetblack);
  font-size: 0.95rem; display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.mb-modal-close:hover { background: var(--color-cream); }
.mb-modal h3 { margin: 0.3rem 0 1rem; font-size: 1.5rem; }
.mb-modal-summary { font-family: var(--font-mono); font-size: 0.78rem; color: var(--color-sweetblack); opacity: 0.6; margin-bottom: 0.2rem; }
.mb-modal-total { font-family: var(--font-heading); font-size: 1.5rem; color: var(--color-verde-oscuro); margin-bottom: 1.5rem; }
.mb-modal-actions { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1.25rem; }
.mb-modal-actions .btn { width: 100%; justify-content: center; }
.mb-modal-whatsapp { background: #25D366; color: #fff; }
.mb-modal-whatsapp:hover { background: #1fb959; }
.mb-modal-whatsapp[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }
.mb-modal-status { text-align: center; font-size: 0.82rem; margin-top: 0.9rem; min-height: 1.2em; }
.mb-modal-status.error { color: #a12626; }
.mb-modal-status.success { color: var(--color-verde-oscuro); font-weight: 600; }

/* ---- Activación de marca (mayorista/eventos.html) ---- */
.ev-activation-box {
  background: #f1f8e9; border: 1.5px dashed var(--color-verde); border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem; margin-bottom: 1.25rem;
}
.ev-checkbox-row {
  display: flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0;
  font-size: 0.92rem; color: var(--color-sweetblack); cursor: pointer;
}
.ev-checkbox-row input[type="checkbox"] {
  width: 18px; height: 18px; accent-color: var(--color-verde-oscuro); cursor: pointer; flex-shrink: 0;
}

/* Mobile: flujo continuo, sin huecos entre foto/tarjeta/acciones/mercado. */
@media (max-width: 640px) {
  .quoter-sim { gap: 1.1rem; }
  .qactions { gap: 0.65rem; }
}

/* Foco de teclado visible en cualquier control nuevo del cotizador. */
.qc-pill:focus-visible,
.qc-toggle:focus-visible,
.btn-outline-dark:focus-visible,
.qactions .btn:focus-visible {
  outline: 2px solid var(--color-verde);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .sim-photo img,
  .bar-fill,
  .qtable tbody tr.tier-row,
  .qc-pill,
  .qc-toggle,
  .btn-outline-dark,
  .qactions .btn {
    transition-duration: 0.01ms !important;
  }
  .sim-photo img.swap { transform: none; }
}

/* ============================================================
   Botón flotante de WhatsApp (inyectado por js/components.js)
   z-index por debajo del nav (1000) y del menú móvil (999) para
   que nunca tape el menú abierto.
   ============================================================ */
.wa-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 998;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: #25D366;
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.wa-float:hover,
.wa-float:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  color: #fff;
}
@media (max-width: 768px) {
  .wa-float {
    right: 1rem;
    bottom: 1rem;
    padding: 0.8rem;
  }
  .wa-float-label { display: none; }
}
