/* ==========================================================
   Noche Tropical — paleta de marca Pachitos (balanceada)
   Azul #2554A7 · Vino #83282C · Oro #EAA234 · Celeste #4DA3D8

   Reparto aproximado:
   ~60% crema / blanco  → hero, promesa, novedades, historia, dónde comprar
   ~25% azul noche      → vitrina de sabores y footer (anclas)
   ~15% acentos         → oro (botones, CTA), vino (énfasis, marquesina),
                          celeste y azul solo en detalles pequeños
   ========================================================== */
.theme-c {
  /* Marca */
  --blue: #2554a7;
  --wine: #83282c;
  --gold: #eaa234;
  --sky: #4da3d8;

  /* Neutros */
  --night: #0d1b3d;        /* azul noche: solo para las secciones ancla */
  --cream: #f6f3ee;
  --sand: #efe8dc;
  --coco: #ffffff;

  /* Tokens que usa styles.css */
  --ink: var(--night);     /* titulares y fondos oscuros */
  --mango: var(--gold);
  --mango-2: #d68d1c;
  --guava: var(--wine);    /* énfasis sobre claro */
  --palm: var(--wine);     /* eyebrows sobre claro */
  --lime: var(--sky);      /* eyebrows sobre oscuro */
  --text: #1d2333;         /* texto neutro, no azul */
  --muted: #5d6272;

  --radius: 22px;
  --shadow: 0 30px 60px -30px rgba(13, 27, 61, 0.35);
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;
}
.theme-c body { background: var(--cream); color: var(--text); }

/* ---------- Tipografía grotesca ---------- */
.theme-c .h2,
.theme-c .hero__title {
  font-variation-settings: "opsz" 96, "wdth" 85;
  font-weight: 700;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}
.theme-c .hero__title { font-size: clamp(3rem, 8vw, 7.4rem); line-height: 0.86; }
.theme-c .h2 { font-size: clamp(2.2rem, 5vw, 4.4rem); line-height: 0.9; max-width: 14ch; }
.theme-c .h2 i, .theme-c .hero__title i { font-style: normal; font-variation-settings: "opsz" 96, "wdth" 85; }
.theme-c .hero__title-em { padding-left: 0; }
.theme-c .dot { background: var(--gold); box-shadow: 0 0 0 4px rgba(234, 162, 52, 0.22); }
.theme-c .pillar h3, .theme-c .timeline h3, .theme-c .card h3, .theme-c .flavor h3 { font-weight: 600; letter-spacing: -0.02em; }
.theme-c .tile h3, .theme-c .cta__box h2, .theme-c .footer__word { font-weight: 700; letter-spacing: -0.03em; text-transform: uppercase; }
.theme-c .pillar__n, .theme-c .timeline__year { font-style: normal; font-family: var(--font-body); font-weight: 700; }

/* ---------- Botones ---------- */
.theme-c .btn--ink { background: var(--gold); color: var(--night); box-shadow: 0 14px 30px -16px rgba(214, 141, 28, 0.8); }
.theme-c .btn--ink:hover { background: var(--night); color: var(--coco); }
.theme-c .btn--ghost:hover { background: var(--coco); }
.theme-c .btn--mango:hover { background: var(--night); color: var(--coco); }
.theme-c .nav__word em { color: var(--wine); }

/* ---------- Hero claro ---------- */
.theme-c .hero {
  background:
    radial-gradient(900px 520px at 85% 15%, rgba(234, 162, 52, 0.16), transparent 60%),
    radial-gradient(700px 460px at 5% 95%, rgba(77, 163, 216, 0.12), transparent 60%),
    var(--cream);
}
.theme-c .hero__facts strong { color: var(--blue); }
.theme-c .arch {
  border-radius: 32px;
  transform: rotate(3deg);
  background: var(--sand);
  box-shadow: var(--shadow), 0 0 0 10px var(--coco);
}
.theme-c .seal { background: var(--sky); }
.theme-c .seal text { fill: var(--night); }
.theme-c .seal__core { color: var(--night); }
.theme-c .blob--mango { background: var(--gold); opacity: 0.22; }
.theme-c .blob--guava { background: var(--sky); opacity: 0.16; }
.theme-c .wave path { fill: var(--wine); }

/* ---------- Marquesina vino (calidez) ---------- */
.theme-c .marquee { background: var(--wine); color: var(--cream); }
.theme-c .marquee__track { font-style: normal; font-weight: 700; text-transform: uppercase; letter-spacing: -0.02em; }
.theme-c .marquee__track i { color: var(--gold); }

/* ---------- Promesa ---------- */
.theme-c .pillar::before { background: var(--gold); }
.theme-c .pillar:nth-child(2)::before { background: var(--wine); }
.theme-c .pillar:nth-child(3)::before { background: var(--sky); }
.theme-c .pillar__n { color: var(--blue); }

/* ---------- Vitrina de sabores: el bloque azul noche ---------- */
.theme-c .flavors { background: var(--night); border-radius: 48px; margin: 0 12px; }
.theme-c .filter.is-active { background: var(--gold); color: var(--night); }

.theme-c .flavor {
  background: var(--coco);
  color: var(--night);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.theme-c .flavor::after { display: none; }
.theme-c .flavor:hover { transform: translateY(-6px); box-shadow: 0 26px 44px -24px rgba(0, 0, 0, 0.6); }
/* un solo fondo para todos los sabores (sin efecto multicolor) */
.theme-c .flavor__img { background: var(--cream); border-radius: 16px; }
.theme-c .flavor--dark { color: var(--night); }
/* tarjetas alineadas: nombre, nombre en español (línea reservada) y etiqueta abajo */
.theme-c .flavor { display: flex; flex-direction: column; }
.theme-c .flavor__meta { flex: 1; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 12px; }
.theme-c .flavor__tag { margin-top: auto; }
.theme-c .flavor__es { font-family: var(--font-body); font-style: normal; color: var(--muted); opacity: 1; }
.theme-c .flavor__tag,
.theme-c .flavor--dark .flavor__tag { background: rgba(234, 162, 52, 0.16); color: #8a5a10; }
.theme-c .flavor[data-type="classic"] .flavor__tag { background: rgba(131, 40, 44, 0.08); color: var(--wine); }

/* ---------- Novedades ---------- */
.theme-c .tile { background: var(--sand); }
.theme-c .tile::before { background: linear-gradient(180deg, transparent 35%, rgba(13, 27, 61, 0.8)); }
.theme-c .tile--color { background: var(--gold); color: var(--night); }
.theme-c .tag { background: var(--coco); color: var(--night); }
.theme-c .tag--light { background: var(--night); color: var(--coco); }

/* ---------- Historia (arena cálida) ---------- */
.theme-c .story { background: linear-gradient(180deg, var(--cream), var(--sand)); }
.theme-c .story__figure { border-radius: 32px; }
.theme-c .story__more { margin: -12px 0 32px; }
.theme-c .timeline::before { background: linear-gradient(var(--gold), var(--wine)); }
.theme-c .timeline li::after,
.theme-c .timeline li:nth-child(n)::after { background: var(--cream); border-color: var(--gold); }
.theme-c .timeline li:last-child::after { background: var(--wine); border-color: var(--wine); }

/* ---------- Dónde comprar (blanco) ---------- */
.theme-c .card { background: var(--cream); border-color: rgba(13, 27, 61, 0.06); }
.theme-c .card__icon svg { stroke: var(--wine); }
.theme-c .card--accent { background: var(--night); }
.theme-c .card--accent .card__go { color: var(--gold); }
.theme-c .card--accent .card__icon svg { stroke: var(--gold); }

/* ---------- CTA distribuidores en oro ---------- */
.theme-c .cta__box { background: var(--gold); color: var(--night); }
.theme-c .cta__box p { opacity: 0.85; }
.theme-c .cta .btn--mango { background: var(--night); color: var(--coco); }
.theme-c .cta .btn--mango:hover { background: var(--wine); }

/* ---------- Footer azul noche ---------- */
.theme-c .footer { background: var(--night); }
.theme-c .footer__giant { font-style: normal; font-weight: 800; text-transform: uppercase; -webkit-text-stroke: 1px rgba(234, 162, 52, 0.3); letter-spacing: -0.06em; }

@media (max-width: 640px) {
  .theme-c .flavors { margin: 0 6px; border-radius: 32px; }
}

/* ==========================================================
   Pachitos + Snowing: la conexión entre las dos marcas
   ========================================================== */

/* Línea de marcas bajo el párrafo de la portada */
.theme-c .hero__brands {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px;
  margin: -10px 0 30px; font-size: 0.92rem; font-weight: 700; color: var(--ink);
}
.theme-c .hero__brands span {
  padding: 7px 15px; border-radius: 999px; background: var(--coco);
  border: 1px solid rgba(13, 27, 61, 0.1);
}
.theme-c .hero__brands i { font-style: normal; font-weight: 800; color: var(--wine); }
.theme-c .hero__brands em { font-style: normal; font-weight: 600; color: var(--muted); margin-left: 4px; }

/* Sección "Dos marcas, una familia" */
.theme-c .brands { padding: 120px 0 0; }
.theme-c .brands__head { display: flex; flex-direction: column; margin-bottom: 56px; }
.theme-c .brands__grid { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
/* hilo de color que une las dos tarjetas a través del logo */
.theme-c .brands__grid::before {
  content: ""; position: absolute; left: 12%; right: 12%; top: 50%; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--gold), var(--wine)); z-index: 0;
}
.theme-c .brand-card {
  position: relative; z-index: 1; background: var(--coco);
  border: 1px solid rgba(13, 27, 61, 0.07); border-radius: var(--radius);
  padding: 40px 38px 42px; box-shadow: 0 1px 2px rgba(13, 27, 61, 0.04);
}
.theme-c .brand-card__year {
  display: block; font-family: var(--font-display); font-variation-settings: "opsz" 96, "wdth" 85;
  font-size: clamp(3rem, 5vw, 4.4rem); font-weight: 700; line-height: 0.9; letter-spacing: -0.045em;
  color: var(--blue);
}
.theme-c .brand-card--alt .brand-card__year { color: var(--wine); }
.theme-c .brand-card h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; font-size: 1.7rem; color: var(--ink); margin: 18px 0 10px; }
.theme-c .brand-card p { margin: 0; color: var(--muted); }
.theme-c .brands__bridge { position: relative; z-index: 2; width: 210px; margin: 0 -22px; display: grid; place-items: center; }
.theme-c .brands__bridge img { width: 100%; height: auto; filter: drop-shadow(0 18px 24px rgba(13, 27, 61, 0.22)); }
.theme-c .brands__foot { text-align: center; margin: 52px auto 0; max-width: 62ch; }
.theme-c .brands__foot p { margin: 0 0 26px; color: var(--muted); font-size: 1.05rem; }

/* Pie de página: logo de las dos marcas */
.theme-c .footer__logo { display: block; width: 124px; height: auto; margin: 0 0 16px; }
.theme-c .footer__brands { font-size: 0.85rem; opacity: 0.8; }

@media (max-width: 900px) {
  .theme-c .brands { padding-top: 90px; }
  .theme-c .brands__grid { grid-template-columns: 1fr; gap: 0; justify-items: center; }
  .theme-c .brands__grid::before { left: 50%; right: auto; top: 12%; bottom: 12%; width: 3px; height: auto; background: linear-gradient(180deg, var(--gold), var(--wine)); }
  .theme-c .brand-card { width: 100%; }
  .theme-c .brands__bridge { width: 170px; margin: -18px 0; }
}
@media (max-width: 640px) {
  .theme-c .hero__brands { font-size: 0.8rem; gap: 8px; }
  .theme-c .hero__brands span { padding: 6px 11px; }
  .theme-c .hero__brands em { flex-basis: 100%; margin: 2px 0 0; }
}

/* ==========================================================
   Hero con video de borde a borde (solo la home)
   ========================================================== */
.theme-c .hero--video {
  padding: 0; min-height: 100vh; min-height: max(100svh, 560px);
  display: flex; align-items: flex-end;
  background: var(--night); color: var(--coco);
}
.theme-c .hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 40%; z-index: -2;
}
/* capa oscura suave: arriba para el menú, abajo para el texto */
.theme-c .hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(13, 27, 61, 0.55) 0%, rgba(13, 27, 61, 0) 24%, rgba(13, 27, 61, 0) 38%, rgba(13, 27, 61, 0.82) 100%);
}
.theme-c .hero--video .hero__inner { display: block; width: min(1200px, 100% - 48px); padding: 0 0 150px; }
.theme-c .hero--video .hero__copy { max-width: 660px; }
.theme-c .hero--video .eyebrow { color: var(--gold); }
.theme-c .hero--video .hero__title { color: var(--coco); font-size: clamp(2.6rem, 6vw, 5.2rem); margin: 16px 0 18px; }
.theme-c .hero--video .hero__title i { color: var(--gold); }
.theme-c .hero--video .hero__lede { color: rgba(255, 255, 255, 0.9); max-width: 50ch; margin-bottom: 22px; }
.theme-c .hero--video .hero__brands { margin-top: 0; }
.theme-c .hero--video .hero__brands span { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.3); color: var(--coco); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.theme-c .hero--video .hero__brands i { color: var(--gold); }
.theme-c .hero--video .hero__brands em { color: rgba(255, 255, 255, 0.8); }
.theme-c .hero--video .btn--ink:hover { background: var(--coco); color: var(--night); }
.theme-c .hero--video .btn--ghost { color: var(--coco); border-color: rgba(255, 255, 255, 0.55); }
.theme-c .hero--video .btn--ghost:hover { background: rgba(255, 255, 255, 0.14); border-color: var(--coco); }

/* menú sobre el video: claro hasta que se hace scroll */
.theme-c.has-video-hero .nav:not(.is-scrolled) .nav__word,
.theme-c.has-video-hero .nav:not(.is-scrolled) .nav__links a { color: var(--coco); }
.theme-c.has-video-hero .nav:not(.is-scrolled) .nav__word em { color: var(--gold); }
.theme-c.has-video-hero .nav:not(.is-scrolled) .nav__burger { border-color: rgba(255, 255, 255, 0.45); }
.theme-c.has-video-hero .nav:not(.is-scrolled) .nav__burger span { background: var(--coco); }
@media (max-width: 900px) {
  /* el panel del menú móvil es claro: sus enlaces siguen oscuros */
  .theme-c.has-video-hero .nav:not(.is-scrolled) .nav__links a { color: var(--ink); }
  .theme-c .hero--video .hero__inner { padding-bottom: 120px; }
}
@media (max-width: 640px) {
  .theme-c .hero--video .hero__lede { font-size: 1rem; }
}

/* el fondo desenfocado solo existe en pantallas horizontales */
.theme-c .hero__fill { display: none; }

/* ----------------------------------------------------------
   Pantalla horizontal: video vertical completo + fondo desenfocado
   (el video es 9:16; recortarlo a 16:9 lo dejaba sin pingüino ni helado)
   ---------------------------------------------------------- */
@media (min-aspect-ratio: 1/1) {
  .theme-c .hero__fill {
    display: block; position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; z-index: -3;
    filter: blur(38px) saturate(1.15) brightness(0.72); transform: scale(1.14);
  }
  .theme-c .hero--video .hero__video {
    inset: auto; top: 104px; right: clamp(24px, 7vw, 140px);
    height: calc(100% - 188px); width: auto; aspect-ratio: 9 / 16;
    object-fit: cover; border-radius: 28px; z-index: -2;
    box-shadow: 0 34px 80px -24px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.14);
  }
  /* el texto nunca invade la columna del video */
  .theme-c .hero--video .hero__copy {
    max-width: min(620px, calc(100vw - 48px - (100vh - 188px) * 0.5625 - 10vw));
  }
}

/* ==========================================================
   Motivos de marca (reemplazan las palmas)
   - Anillo: el óvalo dorado del logo, en contorno y cortado por el borde.
   Reglas: uno por sección, muy tenue y nunca detrás del texto.
   ========================================================== */
.theme-c .motif { position: absolute; pointer-events: none; z-index: -1; }
.theme-c .m-thick { fill: none; stroke: var(--gold); stroke-width: 18; opacity: 0.16; }
.theme-c .m-thin { fill: none; stroke: var(--gold); stroke-width: 2; opacity: 0.45; }

/* Historia: solo asoma el borde inferior del anillo en la esquina superior derecha */
.theme-c .motif--story { width: 560px; right: -110px; top: -340px; }
/* Bloque dorado: anillo blanco en la esquina inferior derecha */
.theme-c .motif--cta { width: 440px; right: -150px; bottom: -190px; }
.theme-c .motif--cta .m-thick { stroke: var(--coco); opacity: 0.28; }
.theme-c .motif--cta .m-thin { stroke: var(--coco); opacity: 0.6; }
@media (max-width: 900px) {
  .theme-c .motif--story { width: 420px; right: -150px; top: -270px; }
  .theme-c .motif--cta { width: 340px; right: -130px; bottom: -150px; }
}

/* Títulos de sección en dos líneas (el salto de línea va en el HTML) */
.theme-c .h2--2l { max-width: none; text-wrap: balance; }

/* Filtro de sabores: ".theme-c .flavor { display: flex }" tapaba a ".is-hidden", por eso nada se ocultaba */
.theme-c .flavor.is-hidden { display: none; }

/* Pie de página: logo enlazado y bloque de contacto */
.theme-c .footer__logo-link { display: inline-block; }
.theme-c .footer__contact strong { color: var(--coco); font-weight: 700; }
.theme-c .footer__contact p { margin: 0 0 12px; }
.theme-c .footer__contact a[href^="tel"] { white-space: nowrap; }

/* Frase del llamado a la acción de la home: una sola línea en pantallas amplias (en celular se ajusta sola) */
.theme-c .cta__box .cta__line { max-width: none; text-wrap: balance; }

/* ==========================================================
   Selector de idioma: menú desplegable
   ========================================================== */
.theme-c .langmenu { position: relative; }
.theme-c .langmenu__btn {
  display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 13px 0 12px;
  border-radius: 999px; border: 1.5px solid rgba(15, 42, 92, 0.18); background: rgba(255, 255, 255, 0.4);
  color: var(--ink); font: 700 0.8rem/1 var(--font-body); letter-spacing: 0.05em; cursor: pointer;
  transition: background 0.25s, border-color 0.25s, box-shadow 0.35s var(--ease), color 0.25s;
}
.theme-c .langmenu__btn:hover,
.theme-c .langmenu.is-open .langmenu__btn { background: #fff; border-color: rgba(15, 42, 92, 0.32); box-shadow: 0 12px 26px -16px rgba(13, 27, 61, 0.6); }
.theme-c .langmenu__btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.theme-c .langmenu__globe { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.theme-c .langmenu__chev { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.4s var(--ease); }
.theme-c .langmenu.is-open .langmenu__chev { transform: rotate(180deg); }

/* panel: vidrio esmerilado que cae desde el botón (oculto hasta abrir) */
.theme-c .langmenu__list {
  position: absolute; right: 0; top: calc(100% + 12px); z-index: 60;
  min-width: 190px; margin: 0; padding: 6px; list-style: none;
  background: rgba(255, 255, 255, 0.88); -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.75); border-radius: 18px;
  box-shadow: 0 26px 54px -22px rgba(13, 27, 61, 0.5), 0 0 0 1px rgba(13, 27, 61, 0.06);
  opacity: 0; visibility: hidden; transform: translateY(-10px) scale(0.95); transform-origin: top right;
  transition: opacity 0.25s ease, transform 0.4s var(--ease), visibility 0s linear 0.4s;
}
.theme-c .langmenu.is-open .langmenu__list { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.theme-c .langmenu__list button {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 11px 12px 11px 14px; border: 0; border-radius: 12px; background: transparent;
  color: var(--ink); font: 600 0.95rem/1.1 var(--font-body); text-align: left; cursor: pointer;
  opacity: 0; transform: translateY(-5px);
  transition: background 0.2s, opacity 0.3s ease var(--d, 0s), transform 0.4s var(--ease) var(--d, 0s);
}
.theme-c .langmenu.is-open .langmenu__list button { opacity: 1; transform: none; }
.theme-c .langmenu__list li:nth-child(2) button { --d: 0.06s; }
.theme-c .langmenu__list button:hover,
.theme-c .langmenu__list button:focus-visible { background: rgba(15, 42, 92, 0.07); outline: none; }
.theme-c .langmenu__code { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; color: var(--muted); padding: 4px 9px; border-radius: 999px; }
.theme-c .langmenu__list button[aria-checked="true"] .langmenu__code { background: var(--gold); color: var(--night); }

/* sobre el video de la home, antes de hacer scroll: botón claro */
.theme-c.has-video-hero .nav:not(.is-scrolled) .langmenu__btn { color: var(--coco); border-color: rgba(255, 255, 255, 0.45); background: rgba(255, 255, 255, 0.1); }
.theme-c.has-video-hero .nav:not(.is-scrolled) .langmenu__btn:hover { background: rgba(255, 255, 255, 0.2); }
.theme-c.has-video-hero .nav:not(.is-scrolled) .langmenu.is-open .langmenu__btn { color: var(--ink); background: #fff; border-color: #fff; }

/* Encuadre de las fotos de "Beyond the scoop": se priorizan los rostros y el producto */
.theme-c .tile--xl img { object-position: center 28%; }
.theme-c .tile--tall img { object-position: 22% 38%; }
.theme-c .tile--img img { object-position: 30% center; }
/* foto de la sección de historia: más grande (home y Our Story) */
@media (min-width: 901px) { .theme-c .story__inner { grid-template-columns: 1.05fr 0.95fr; gap: 64px; } }
.theme-c .story__figure { max-width: none; aspect-ratio: 4 / 4.6; }
.theme-c .story__lede { max-width: 46ch; }
@media (max-width: 900px) { .theme-c .story__figure { aspect-ratio: 4 / 3.6; } }
.theme-c .h2--1l { max-width: none; white-space: nowrap; font-size: clamp(1.7rem, 4.4vw, 3.6rem); }
.theme-c .story__lede--2l { max-width: none; text-wrap: balance; }
/* la foto llega hasta donde termina la línea de tiempo */
@media (min-width: 901px) {
  .theme-c .story__inner { align-items: stretch; }
  .theme-c .story__intro { position: static; display: flex; flex-direction: column; }
  .theme-c .story__figure { flex: 1; aspect-ratio: auto; min-height: 320px; }
}
/* la línea de tiempo termina donde acaba el último hito (sin cola) */
.theme-c .timeline::before { bottom: 0; }
.theme-c .timeline li:last-child { padding-bottom: 0; }
/* la altura de la fila la define la línea de tiempo; la foto solo rellena el espacio */
@media (min-width: 901px) {
  .theme-c .story__figure { position: relative; flex: 1 1 0; min-height: 280px; }
  .theme-c .story__figure img { position: absolute; inset: 0; width: 100%; height: 100%; }
}
/* Home · historia: el anillo se ve completo y pasa por detrás de las tarjetas de arriba */
#treats { position: relative; z-index: 1; }
#story { overflow-x: clip; overflow-y: visible; }
/* Dos marcas: sin logo central, solo las dos tarjetas */
.theme-c .brands__grid { grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; }
.theme-c .brands__grid::before { display: none; }
@media (max-width: 900px) { .theme-c .brands__grid { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- Tarjetas de sabor: se pueden abrir ---------- */
.theme-c .flavor { cursor: pointer; }
.theme-c .flavor__foot { margin-top: auto; width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.theme-c .flavor__more { font-size: 0.8rem; font-weight: 700; color: var(--blue); display: inline-flex; align-items: center; gap: 6px; }
.theme-c .flavor__more::after { content: "→"; transition: transform 0.2s; }
.theme-c .flavor:hover .flavor__more::after { transform: translateX(4px); }

/* ---------- Ventana del sabor ---------- */
.fmodal {
  width: min(960px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 32px;
  background: var(--cream); color: var(--ink); overflow: hidden; box-shadow: 0 40px 90px -30px rgba(5, 12, 35, 0.7);
}
.fmodal[open] { animation: fmIn 0.28s cubic-bezier(0.2, 0.8, 0.2, 1); }
.fmodal::backdrop { background: rgba(8, 17, 44, 0.66); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
@keyframes fmIn { from { opacity: 0; transform: translateY(18px) scale(0.98); } to { opacity: 1; transform: none; } }
.fmodal__scroll { position: relative; max-height: calc(100vh - 32px); overflow-y: auto; overscroll-behavior: contain; }
.fmodal__close {
  position: absolute; top: 14px; right: 14px; z-index: 3; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(13, 27, 61, 0.14); background: var(--coco); display: grid; place-items: center; cursor: pointer; transition: transform 0.2s, background 0.2s;
}
.fmodal__close:hover { background: var(--gold); transform: rotate(90deg); }
.fmodal__close svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; }
.fmodal__body { display: grid; grid-template-columns: 0.82fr 1.18fr; }
.fmodal__side {
  position: relative; padding: 44px 32px; color: var(--coco); text-align: center; align-self: stretch;
  background: radial-gradient(420px 320px at 50% 0, rgba(234, 162, 52, 0.3), transparent 70%), var(--night);
}
.fmodal__side img { width: 100%; max-width: 300px; height: auto; border-radius: 22px; background: var(--cream); box-shadow: 0 24px 40px -22px rgba(0, 0, 0, 0.6); }
.fmodal__tag { margin: 22px 0 6px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.fmodal__side h2 {
  margin: 0; font-family: var(--font-display); font-variation-settings: "opsz" 96, "wdth" 85; font-weight: 700;
  text-transform: uppercase; letter-spacing: -0.035em; line-height: 0.95; font-size: clamp(1.9rem, 3.4vw, 2.7rem);
}
.fmodal__contains { margin: 18px 0 0; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); font-size: 0.85rem; }
.fmodal__contains span { opacity: 0.75; }
.fmodal__main { padding: 44px 40px 36px; display: grid; gap: 22px; align-content: start; }

/* tabla nutricional */
.nfacts { background: var(--coco); border: 1px solid rgba(13, 27, 61, 0.1); border-radius: 22px; padding: 22px 24px 20px; }
.nfacts h3 { margin: 0; font-family: var(--font-display); font-variation-settings: "opsz" 96, "wdth" 85; font-weight: 800; font-size: 1.9rem; letter-spacing: -0.03em; line-height: 1; }
.nfacts__head { padding-bottom: 12px; border-bottom: 8px solid var(--ink); }
.nfacts__head p { margin: 8px 0 0; font-size: 0.9rem; color: var(--muted); line-height: 1.4; }
.nfacts__head b { color: var(--ink); }
.nfacts__cal { display: flex; align-items: flex-end; justify-content: space-between; padding: 10px 0 8px; border-bottom: 4px solid var(--ink); }
.nfacts__cal span { font-weight: 700; font-size: 1.05rem; }
.nfacts__cal strong { font-family: var(--font-display); font-variation-settings: "opsz" 96, "wdth" 85; font-size: 3rem; line-height: 0.9; color: var(--wine); }
.nf-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid rgba(13, 27, 61, 0.14); font-size: 0.95rem; }
.nf-row--head { padding: 6px 0; border-bottom: 1px solid var(--ink); font-size: 0.78rem; font-weight: 700; }
.nf-row__l b { font-weight: 600; margin-left: 4px; color: var(--muted); }
.nf-row--b .nf-row__l { font-weight: 700; }
.nf-row--b .nf-row__l b { color: var(--ink); font-weight: 500; }
.nf-row--sub .nf-row__l { padding-left: 18px; }
.nf-row--sub2 .nf-row__l { padding-left: 36px; }
.nf-row__dv { font-weight: 700; }
.nf-minis { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 22px; padding: 12px 0 4px; border-top: 4px solid var(--ink); margin-top: 0; }
.nf-mini { display: flex; justify-content: space-between; gap: 10px; font-size: 0.88rem; padding: 3px 0; border-bottom: 1px dotted rgba(13, 27, 61, 0.2); }
.nf-mini b { font-weight: 600; color: var(--muted); }
.nfacts__foot { margin: 12px 0 0; font-size: 0.74rem; line-height: 1.45; color: var(--muted); }
.nfacts--soon p { margin: 10px 0 0; color: var(--muted); }

.fmodal__ing h3 { margin: 0 0 8px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--wine); }
.fmodal__ing p { margin: 0; font-size: 0.93rem; line-height: 1.6; color: var(--muted); }
.fmodal__ing small { display: block; margin-top: 8px; font-size: 0.78rem; color: var(--muted); }

.fmodal__allergen {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 18px;
  background: rgba(234, 162, 52, 0.16); border: 1px solid rgba(234, 162, 52, 0.55);
}
.fmodal__allergen svg { flex: none; width: 26px; height: 26px; fill: var(--gold); stroke: var(--night); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.fmodal__allergen p { margin: 0; font-size: 0.92rem; font-weight: 600; line-height: 1.5; color: var(--ink); }

@media (max-width: 820px) {
  .fmodal { width: 100vw; max-width: 100vw; max-height: 94vh; margin: auto 0 0; border-radius: 28px 28px 0 0; }
  .fmodal__scroll { max-height: 94vh; }
  .fmodal__body { grid-template-columns: 1fr; }
  .fmodal__side { padding: 34px 24px 26px; display: grid; grid-template-columns: 110px 1fr; column-gap: 18px; text-align: left; align-items: center; }
  .fmodal__side img { grid-row: 1 / span 3; max-width: none; border-radius: 16px; }
  .fmodal__tag { margin: 0 0 4px; align-self: end; }
  .fmodal__side h2 { font-size: 1.8rem; }
  .fmodal__contains { margin-top: 10px; justify-self: start; }
  .fmodal__main { padding: 24px 20px 28px; }
}
@media (prefers-reduced-motion: reduce) { .fmodal[open] { animation: none; } .fmodal__close:hover { transform: none; } }
.theme-c .story__img--shell { object-position: center 78%; }

/* Tarjeta de sabor: el nombre es un botón real y su área cubre toda la tarjeta */
.theme-c .flavor { position: relative; }
.theme-c .flavor__open {
  all: unset; box-sizing: border-box; cursor: pointer; font: inherit; color: inherit; letter-spacing: inherit;
}
.theme-c .flavor__open::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.theme-c .flavor:has(.flavor__open:focus-visible) { outline: 3px solid var(--gold); outline-offset: 3px; }
.theme-c .flavor__open:focus-visible { outline: none; }
.theme-c .flavor__meta { position: static; z-index: auto; }
