/* =========================================================
   Bongi Bombón — hoja de estilos principal (mobile first)
   Tokens → base → layout → componentes → páginas
   ========================================================= */

@font-face { font-family: "Fredoka"; src: url("/assets/fonts/fredoka.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/assets/fonts/nunito.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; }

:root {
  /* Paleta de marca (se mantienen los colores históricos del sitio) */
  --frutilla: #ef476f;
  --frutilla-oscura: #c41e4a;   /* texto/acciones sobre claro: contraste AA */
  --naranja: #ff6b35;
  --banana: #ffd166;
  --menta: #06d6a0;
  --cacao: #3b1f2b;             /* texto principal: chocolate amargo */
  --cacao-suave: #6b4a55;
  --leche: #fff3f5;             /* fondo: leche de frutilla */
  --crema: #fffaf2;
  --blanco: #ffffff;

  --font-display: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: clamp(.875rem, .85rem + .1vw, .95rem);
  --step-0: clamp(1rem, .97rem + .15vw, 1.1rem);
  --step-1: clamp(1.2rem, 1.1rem + .4vw, 1.45rem);
  --step-2: clamp(1.5rem, 1.3rem + .9vw, 2.1rem);
  --step-3: clamp(1.9rem, 1.5rem + 1.8vw, 3rem);
  --step-4: clamp(2.8rem, 1.8rem + 5vw, 6.2rem);

  --gutter: 16px;
  --max: 1180px;
  --radius-s: 12px;
  --radius-m: 20px;
  --radius-l: 32px;
  --shadow-candy: 0 6px 0 rgb(59 31 43 / .12), 0 14px 30px -10px rgb(59 31 43 / .25);
  --ease-pop: cubic-bezier(.34, 1.56, .64, 1);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light;
}

@media (min-width: 700px) { :root { --gutter: 28px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--leche); color: var(--cacao);
  font: 400 var(--step-0)/1.6 var(--font-body);
  overflow-x: clip; padding-bottom: 76px; /* espacio para la barra móvil */
}
@media (min-width: 900px) { body { padding-bottom: 0; } }
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.01em; text-wrap: balance; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--frutilla-oscura); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { text-decoration-thickness: .14em; }
:focus-visible { outline: 3px solid var(--cacao); outline-offset: 3px; border-radius: 6px; }
.section--cacao :focus-visible, .site-footer :focus-visible { outline-color: var(--banana); }
button { font: inherit; color: inherit; cursor: pointer; }
address { font-style: normal; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -100px; z-index: 200; background: var(--cacao); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 8px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.measure { max-width: 64ch; }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--frutilla-oscura); --fg: #fff; --edge: #8f1235;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: .75em 1.4em; border: 0; border-radius: 999px;
  background: var(--bg); color: var(--fg); text-decoration: none;
  font: 700 var(--step-0)/1.1 var(--font-display); letter-spacing: .01em;
  box-shadow: 0 5px 0 var(--edge); transform: translateY(0);
  transition: transform .18s var(--ease-pop), box-shadow .18s var(--ease-pop), background-color .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 1.3em; height: 1.3em; flex: none; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--edge); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--edge); }
.btn--wa { --bg: var(--menta); --fg: var(--cacao); --edge: #04936e; }
.btn--light { --bg: #fff; --fg: var(--cacao); --edge: rgb(59 31 43 / .25); }
.btn--banana { --bg: var(--banana); --fg: var(--cacao); --edge: #d9a326; }
.btn--sm { min-height: 44px; padding: .55em 1.1em; font-size: var(--step--1); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 243 245 / .88); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 2px solid rgb(239 71 111 / .14);
}
.site-header__inner { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; display: flex; align-items: center; gap: 12px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--cacao); margin-right: auto; }
.logo__mark { width: 42px; height: 42px; transition: transform .5s var(--ease-pop); }
.logo:hover .logo__mark { transform: rotate(-14deg) scale(1.08); }
.logo__word { font: 700 1.35rem/1 var(--font-display); letter-spacing: -.01em; }
.logo__word span { color: var(--frutilla-oscura); }
.nav-toggle { width: 48px; height: 48px; border: 0; background: var(--blanco); border-radius: 14px; display: grid; place-items: center; box-shadow: 0 3px 0 rgb(59 31 43 / .15); }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 22px; height: 3px; border-radius: 3px; background: var(--cacao); transition: transform .25s var(--ease-out), opacity .2s; }
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -7px; } .nav-toggle__bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }
.nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--leche); padding: 8px var(--gutter) 20px; border-bottom: 2px solid rgb(239 71 111 / .14); display: none; }
.nav.is-open { display: block; animation: drop .28s var(--ease-out); }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }
.nav ul { list-style: none; margin: 0 0 14px; padding: 0; }
.nav li a { display: block; padding: 14px 4px; font: 600 1.25rem var(--font-display); color: var(--cacao); text-decoration: none; border-bottom: 2px dashed rgb(59 31 43 / .1); }
.nav a[aria-current="page"] { color: var(--frutilla-oscura); }
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav { position: static; display: flex !important; align-items: center; gap: 8px; padding: 0; background: none; border: 0; animation: none; }
  .nav ul { display: flex; gap: 2px; margin: 0; }
  .nav li a { border: 0; font-size: 1.02rem; padding: 10px 14px; border-radius: 999px; transition: background-color .2s; }
  .nav li a:hover, .nav a[aria-current="page"] { background: rgb(239 71 111 / .12); }
}

/* ---------- Divisor "envoltorio" (borde dentado de envoltorio de caramelo) ---------- */
.wrapper-twist { height: 18px; background: inherit; position: relative; }
.wrapper-twist, .section-edge {
  --c: var(--leche);
  height: 16px; background:
    linear-gradient(135deg, var(--c) 50%, transparent 0) 0 0 / 16px 16px repeat-x,
    linear-gradient(-135deg, var(--c) 50%, transparent 0) 0 0 / 16px 16px repeat-x;
}

/* ---------- Secciones ---------- */
.section { padding-block: clamp(56px, 8vw, 110px); position: relative; }
.section--banana { background: var(--banana); }
.section--blanco { background: var(--blanco); }
.section--cacao { background: var(--cacao); color: #fff; }
.section--cacao a:not(.btn):not(.game-card) { color: var(--banana); }
.section-head { margin-bottom: clamp(28px, 4vw, 48px); max-width: 60ch; }
.section-head p { font-size: var(--step-1); color: var(--cacao-suave); margin: 0; }
.section--cacao .section-head p { color: #f6dbe3; }
.section--banana .section-head p { color: var(--cacao); }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(180deg, #f2577c 0%, var(--frutilla) 45%, #c41e4a 100%); color: #fff; min-height: min(88svh, 820px); display: grid; align-items: end; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; touch-action: pan-y; }
.hero__inner { position: relative; z-index: 1; }
.hero__inner { padding-block: 120px 44px; }
.status-pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 999px; background: rgb(59 31 43 / .82); color: #fff; font-weight: 700; font-size: var(--step--1); margin-bottom: 18px; }
.status-pill__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--banana); box-shadow: 0 0 0 4px rgb(255 255 255 / .18); }
.status-pill[data-state="open"] .status-pill__dot { background: var(--menta); animation: beat 1.8s ease-in-out infinite; }
.status-pill[data-state="closed"] .status-pill__dot { background: #ff8fa8; }
@keyframes beat { 50% { box-shadow: 0 0 0 8px rgb(6 214 160 / 0); transform: scale(1.15); } }
.hero h1 { font-size: var(--step-4); line-height: .88; margin: 0 0 .2em; letter-spacing: -.035em; text-shadow: 0 4px 0 rgb(59 31 43 / .25); }
.hero h1 .hero__line { display: block; }
.hero h1 .hero__sub { display: block; font-size: .36em; letter-spacing: 0; line-height: 1.1; margin-top: .35em; color: var(--banana); text-shadow: 0 3px 0 rgb(59 31 43 / .3); }
.hero__copy { font-size: var(--step-1); max-width: 36ch; font-weight: 600; margin-bottom: 24px; text-shadow: 0 1px 2px rgb(59 31 43 / .3); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.hero__chips a { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border-radius: 999px; background: rgb(255 255 255 / .2); color: #fff; text-decoration: none; font-weight: 700; font-size: var(--step--1); border: 2px solid rgb(255 255 255 / .45); transition: background-color .2s, transform .2s var(--ease-pop); }
.hero__chips a:hover { background: rgb(255 255 255 / .34); transform: translateY(-2px); }
.hero__hint { font-size: var(--step--1); opacity: .9; margin: 18px 0 0; }
.hero__jar { display: none; }
@media (max-width: 899px) {
  .hero { min-height: calc(100svh - 64px - 76px); }
  .hero__inner { padding-block: 72px 28px; }
  .hero__copy { font-size: 1.1rem; font-weight: 700; }
  .hero__hint { display: none; }
}
@media (min-width: 900px) {
  .hero { align-items: center; }
  .hero__inner { padding-block: 110px; }
  .hero__inner > * { max-width: 560px; }
  .hero__jar { display: block; position: absolute; right: max(2vw, calc((100vw - var(--max)) / 2 - 20px)); bottom: -24px; width: min(40vw, 470px); z-index: 0; pointer-events: none; }
  .hero__jar img { width: 100%; filter: drop-shadow(0 30px 40px rgb(59 31 43 / .35)); }
  .hero__jar-label { position: absolute; left: 50%; top: 60.5%; translate: -50% -50%; rotate: -4deg; width: 40%; padding: .5em .4em; text-align: center; background: var(--leche); border: 4px solid var(--cacao); border-radius: 18px; font: 700 clamp(1.1rem, 2.1vw, 1.9rem)/1.02 var(--font-display); color: var(--frutilla-oscura); box-shadow: 0 6px 0 rgb(59 31 43 / .25); }
  .hero__jar-label b { color: var(--cacao); font-weight: 700; }
}
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .hero__jar { animation: jarDrop 1.1s var(--ease-pop) .25s both; transform-origin: 50% 100%; }
}
@keyframes jarDrop { 0% { transform: translateY(-120%) rotate(8deg); opacity: 0; } 60% { transform: translateY(0) rotate(-3deg); opacity: 1; } 80% { transform: rotate(1.5deg); } 100% { transform: none; } }
/* Entrada orquestada única del hero */
@media (prefers-reduced-motion: no-preference) {
  .hero__inner > * { animation: rise .7s var(--ease-pop) both; }
  .hero__inner > :nth-child(2) { animation-delay: .08s; }
  .hero__inner > :nth-child(3) { animation-delay: .16s; }
  .hero__inner > :nth-child(4) { animation-delay: .24s; }
  .hero__inner > :nth-child(5) { animation-delay: .32s; }
  .hero__inner > :nth-child(6) { animation-delay: .4s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(26px) scale(.98); } }

/* ---------- Cinta de promo ---------- */
.ribbon { background: var(--cacao); color: var(--banana); overflow: hidden; padding: 14px 0; font: 600 var(--step-1) var(--font-display); }
.ribbon__track { display: flex; gap: 2.5rem; width: max-content; animation: ribbon 38s linear infinite; }
.ribbon__track span { white-space: nowrap; display: inline-flex; align-items: center; gap: 2.5rem; }
.ribbon__track span::after { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--frutilla); box-shadow: 22px 0 0 var(--menta), 44px 0 0 var(--naranja); margin-right: 44px; }
@keyframes ribbon { to { transform: translateX(-50%); } }
.ribbon:hover .ribbon__track { animation-play-state: paused; }

/* ---------- Vidriera de categorías ---------- */
.shelf { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; list-style: none; padding: 0; margin: 0; }
@media (min-width: 640px) { .shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1000px) { .shelf { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.jar { position: relative; background: var(--blanco); border-radius: var(--radius-m); overflow: hidden; box-shadow: var(--shadow-candy); transition: transform .35s var(--ease-pop), box-shadow .35s; }
.jar__img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; background: #f6e3e8; }
.jar__body { padding: 12px 14px 14px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 8px; }
.jar__name { font: 600 var(--step-1)/1.1 var(--font-display); margin: 0; }
.jar__name a { color: inherit; text-decoration: none; }
.jar__name a::after { content: ""; position: absolute; inset: 0; } /* toda la tarjeta clickeable */
.jar__tag { font-size: .78rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: rgb(239 71 111 / .12); color: var(--frutilla-oscura); white-space: nowrap; }
.jar__tag--salado { background: rgb(255 107 53 / .16); color: #a33a0f; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .jar:hover { transform: translateY(-6px) rotate(-1.2deg); box-shadow: 0 10px 0 rgb(59 31 43 / .12), 0 24px 40px -14px rgb(59 31 43 / .35); }
  .jar:nth-child(even):hover { transform: translateY(-6px) rotate(1.2deg); }
}
/* Aparición tipo "caen del frasco": escalonada, solo una vez */
@media (prefers-reduced-motion: no-preference) {
  .js .pop-in > * { opacity: 0; transform: translateY(30px) scale(.92) rotate(var(--r, -3deg)); }
  .js .pop-in.is-in > * { opacity: 1; transform: none; transition: opacity .5s ease, transform .7s var(--ease-pop); transition-delay: calc(var(--i, 0) * 55ms); }
  .js .pop-in > :nth-child(even) { --r: 3deg; }
}

/* ---------- Cómo comprar (secuencia real: 3 pasos) ---------- */
.steps { display: grid; gap: 16px; counter-reset: paso; list-style: none; padding: 0; margin: 0; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.steps li { counter-increment: paso; background: var(--blanco); border-radius: var(--radius-m); padding: 22px 22px 20px 78px; position: relative; box-shadow: var(--shadow-candy); }
.steps li::before { content: counter(paso); position: absolute; left: 18px; top: 20px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 700 1.4rem var(--font-display); background: var(--frutilla); color: #fff; box-shadow: inset 0 -4px 0 rgb(0 0 0 / .15); }
.steps h3 { margin-bottom: .3em; }
.steps p { margin: 0; color: var(--cacao-suave); }

/* ---------- Juegos (teaser y tarjetas) ---------- */
.games-teaser { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .games-teaser { grid-template-columns: 1fr 1.15fr; } }
.game-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 0; }
@media (min-width: 640px) { .game-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 900px) { .game-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .game-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.game-card { position: relative; border-radius: var(--radius-m); padding: 16px; min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; color: var(--cacao); text-decoration: none; background: var(--bg, var(--banana)); box-shadow: 0 6px 0 rgb(0 0 0 / .25); transition: transform .3s var(--ease-pop); overflow: hidden; }
.game-card svg, .game-card__icon { width: 56px; height: 56px; transition: transform .45s var(--ease-pop); }
.game-card__icon svg { width: 100%; height: 100%; }
.game-card strong { font: 600 1.15rem/1.1 var(--font-display); display: block; }
.game-card span { font-size: .85rem; font-weight: 700; opacity: .85; }
.game-card:hover { transform: translateY(-4px) rotate(-1deg); }
.game-card:hover .game-card__icon { transform: rotate(-16deg) scale(1.15); }

/* ---------- El local ---------- */
.local { display: grid; gap: 24px; }
@media (min-width: 900px) { .local { grid-template-columns: 1fr 1.2fr; align-items: stretch; } }
.info-card { background: var(--blanco); border-radius: var(--radius-l); padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow-candy); }
.info-list { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 16px; }
.info-list li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; }
.info-list svg { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: rgb(239 71 111 / .12); color: var(--frutilla-oscura); }
.info-list strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }
.hours { width: 100%; border-collapse: collapse; margin-top: 4px; font-size: var(--step--1); }
.hours td { padding: 3px 0; border-bottom: 1px dashed rgb(59 31 43 / .15); }
.hours td + td { text-align: right; font-weight: 700; }
.hours tr.is-today td { color: var(--frutilla-oscura); font-weight: 800; }
.map-facade { position: relative; min-height: 340px; border-radius: var(--radius-l); overflow: hidden; background: #f9d5de; box-shadow: var(--shadow-candy); display: grid; place-items: center; text-align: center; padding: 24px; }
.map-facade__art { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-facade > div { position: relative; background: rgb(255 255 255 / .92); border-radius: var(--radius-m); padding: 18px 20px; max-width: 320px; }
.map-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.chips-inline { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 10px 0 0; }
.chips-inline li { padding: 4px 12px; border-radius: 999px; background: rgb(59 31 43 / .07); font-weight: 700; font-size: var(--step--1); }

/* ---------- Reseñas ---------- */
.reviews { display: grid; gap: 16px; list-style: none; padding: 0; margin: 0; }
@media (min-width: 760px) { .reviews { grid-template-columns: repeat(2, 1fr); } }
.review { background: var(--blanco); border-radius: var(--radius-m) var(--radius-m) var(--radius-m) 6px; padding: 22px; box-shadow: var(--shadow-candy); margin: 0; }
.review blockquote { margin: 0 0 10px; font-size: var(--step-1); font-weight: 600; line-height: 1.4; }
.review figcaption { font-weight: 800; color: var(--cacao-suave); font-size: var(--step--1); }

/* ---------- Preguntas frecuentes ---------- */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details { background: var(--blanco); border-radius: var(--radius-m); box-shadow: 0 4px 0 rgb(59 31 43 / .1); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 20px; font: 600 var(--step-1)/1.25 var(--font-display); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 16px; top: 50%; translate: 0 -50%; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--banana); font-size: 1.4rem; transition: rotate .3s var(--ease-pop); }
.faq details[open] summary::after { rotate: 45deg; }
.faq details > div { padding: 0 20px 18px; color: var(--cacao-suave); }
.faq details > div p:last-child { margin: 0; }

/* ---------- Blog ---------- */
.cards { display: grid; gap: 18px; list-style: none; padding: 0; margin: 0; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { position: relative; background: var(--blanco); border-radius: var(--radius-m); padding: 22px; box-shadow: var(--shadow-candy); display: flex; flex-direction: column; gap: 6px; }
.card :is(h2, h3) { margin: 0; font-size: var(--step-1); }
.card :is(h2, h3) a { color: var(--cacao); text-decoration: none; }
.card :is(h2, h3) a::after { content: ""; position: absolute; inset: 0; }
.card p { margin: 0; color: var(--cacao-suave); }
.card__kicker { font-weight: 800; font-size: var(--step--1); color: var(--frutilla-oscura); }

.article { padding-block: clamp(32px, 6vw, 72px) 40px; }
.article header { margin-bottom: 28px; }
.article h1 { font-size: var(--step-3); }
.article h2 { font-size: var(--step-2); margin-top: 1.6em; }
.article .lead { font-size: var(--step-1); color: var(--cacao-suave); }
.article ul, .article ol { padding-left: 1.2em; }
.article li { margin-bottom: .4em; }
.article table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; background: #fff; border-radius: var(--radius-s); overflow: hidden; font-size: var(--step--1); }
.article th, .article td { text-align: left; padding: 10px 12px; border-bottom: 1px solid rgb(59 31 43 / .1); vertical-align: top; }
.article th { background: var(--banana); }
.callout { background: var(--blanco); border-left: 6px solid var(--menta); padding: 18px 20px; border-radius: 0 var(--radius-m) var(--radius-m) 0; margin: 1.5em 0; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 18px; font-size: var(--step--1); font-weight: 700; }
.breadcrumbs li + li::before { content: "›"; margin-right: 6px; color: var(--cacao-suave); }
.breadcrumbs a { color: var(--cacao-suave); }
.byline { font-size: var(--step--1); color: var(--cacao-suave); font-weight: 700; }

/* Calculadora de mesa dulce */
.calc { background: var(--blanco); border-radius: var(--radius-l); padding: clamp(20px, 4vw, 32px); box-shadow: var(--shadow-candy); margin: 1.5em 0; }
.calc__row { display: grid; gap: 14px; }
@media (min-width: 640px) { .calc__row { grid-template-columns: repeat(2, 1fr); } }
.field { display: grid; gap: 6px; font-weight: 700; }
.field input, .field select { min-height: 48px; padding: 8px 12px; border-radius: 12px; border: 2px solid rgb(59 31 43 / .2); font: inherit; background: var(--crema); color: var(--cacao); }
.calc output { display: block; margin-top: 16px; }
.calc__result { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.calc__result li { background: var(--leche); border-radius: 14px; padding: 10px 12px; }
.calc__result b { display: block; font: 700 1.5rem var(--font-display); color: var(--frutilla-oscura); }

/* ---------- Catálogo ---------- */
.page-hero { background: var(--banana); padding-block: clamp(36px, 6vw, 72px) clamp(30px, 5vw, 56px); }
.page-hero h1 { font-size: var(--step-3); }
.page-hero p { font-size: var(--step-1); max-width: 56ch; margin: 0; }
.filters { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; margin: 0 0 18px; scrollbar-width: none; position: sticky; top: 64px; z-index: 5; background: var(--leche); }
.filters::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 2px solid rgb(59 31 43 / .15); background: var(--blanco); font-weight: 800; color: var(--cacao); transition: background-color .2s, border-color .2s, transform .2s var(--ease-pop); }
.chip[aria-pressed="true"] { background: var(--cacao); color: #fff; border-color: var(--cacao); }
.chip:active { transform: scale(.95); }
.jar__fav { position: absolute; top: 10px; right: 10px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgb(255 255 255 / .92); color: var(--frutilla-oscura); display: grid; place-items: center; box-shadow: 0 3px 8px rgb(0 0 0 / .15); }
.jar__fav svg { width: 24px; height: 24px; }
.jar__fav[aria-pressed="true"] { background: var(--frutilla); color: #fff; }
.jar__fav.is-bump { animation: bump .45s var(--ease-pop); }
@keyframes bump { 40% { transform: scale(1.3); } }
.jar__actions { padding: 0 14px 14px; position: relative; z-index: 2; }
.jar__actions a { font-weight: 800; font-size: var(--step--1); }
.list-bar { position: fixed; left: 50%; bottom: 88px; translate: -50% 0; z-index: 60; background: var(--cacao); color: #fff; border-radius: 999px; padding: 8px 8px 8px 20px; display: flex; align-items: center; gap: 12px; box-shadow: 0 10px 30px rgb(0 0 0 / .3); width: max-content; max-width: calc(100% - 2 * var(--gutter)); }
.list-bar[hidden] { display: none; }
@media (min-width: 900px) { .list-bar { bottom: 24px; } }
.empty { padding: 28px; text-align: center; background: var(--blanco); border-radius: var(--radius-m); }

/* ---------- Footer ---------- */
.site-footer { background: var(--cacao); color: #f6dbe3; margin-top: 0; }
.site-footer .wrapper-twist { --c: var(--leche); background-color: var(--cacao); }
.site-footer__grid { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; display: grid; gap: 28px; padding-block: 48px 24px; }
@media (min-width: 800px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer a { color: #fff; }
.site-footer__brand { font: 700 2rem var(--font-display); color: #fff; margin-bottom: .3em; }
.site-footer__title { font-size: 1.2rem; color: var(--banana); }
.site-footer__links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer__social { display: flex; gap: 16px; flex-wrap: wrap; }
.site-footer__social a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.site-footer__social svg { width: 22px; height: 22px; }
.site-footer__legal { width: min(100% - 2 * var(--gutter), var(--max)); margin: 0 auto; padding: 18px 0 28px; border-top: 1px solid rgb(255 255 255 / .12); font-size: .85rem; color: #d9b9c4; }

/* ---------- Barra de acciones móvil ---------- */
.action-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 6px; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); background: rgb(255 255 255 / .96); backdrop-filter: blur(8px); border-top: 2px solid rgb(239 71 111 / .15); }
.action-bar__btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 54px; border-radius: 14px; text-decoration: none; color: var(--cacao); font-weight: 800; font-size: .8rem; }
.action-bar__btn svg { width: 24px; height: 24px; }
.action-bar__btn--wa { background: var(--menta); flex-direction: row; gap: 8px; font-size: .95rem; }
@media (min-width: 900px) { .action-bar { display: none; } }
.game-page .action-bar { display: none; }
.game-page { padding-bottom: 0; }

/* ---------- Utilidades ---------- */
.center { text-align: center; }
.mt-l { margin-top: clamp(28px, 4vw, 44px); }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.muted { color: var(--cacao-suave); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .ribbon__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
}

/* ---------- Aviso de consentimiento (solo si hay analítica configurada) ---------- */
.consent { position: fixed; z-index: 90; left: 12px; right: 12px; bottom: 88px; max-width: 460px; margin-inline: auto; background: #fff; border-radius: var(--radius-m); padding: 18px; box-shadow: 0 16px 40px rgb(0 0 0 / .25); }
@media (min-width: 900px) { .consent { bottom: 20px; left: auto; right: 20px; } }
