/* Epulora — página de presentación. Misma paleta y tipografías que la app. */

@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-var.woff2") format("woff2"); font-weight: 500 800; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("../fonts/dmsans-var.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("../fonts/caveat-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --bg: #FBF7F1; --bg-deep: #F4EDE2; --surface: #FFFFFF; --surface-2: #F8F3EC; --surface-3: #F0E8DC;
  --text: #2A1A12; --text-soft: #5B4538; --muted: #7A6353; --border: #EEE5D8; --border-strong: #DCCEBB;
  --brand: #F5CF4E; --brand-soft: #FBE8A6; --brand-wash: #FEF6DD; --brand-deep: #8A5F0B;
  --espresso: #2E1D14; --cream: #FBF7F1; --ink: #1C120C;
  --accent: #DE5530; --accent-soft: #FCE2D8; --ok: #3C7536; --ok-soft: #E5EFDF; --sage: #EAF2E3; --peach: #FDEAE0; --lilac: #F0E7F6; --sky: #E2EFF4;
  --shadow-xs: 0 1px 2px rgba(46, 29, 20, .06);
  --shadow: 0 1px 2px rgba(46, 29, 20, .04), 0 8px 22px -8px rgba(46, 29, 20, .14);
  --shadow-md: 0 2px 6px rgba(46, 29, 20, .05), 0 22px 44px -16px rgba(46, 29, 20, .26);
  --shadow-lg: 0 50px 90px -34px rgba(46, 29, 20, .5);
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-hand: "Caveat", "Segoe Print", cursive;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --wrap: 1200px;
  --gutter: 20px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17110D; --bg-deep: #1E1611; --surface: #221913; --surface-2: #2A2018; --surface-3: #33281F;
    --text: #F6EDE1; --text-soft: #DCCBB6; --muted: #B29C86; --border: #3A2D23; --border-strong: #4F3F31;
    --brand-soft: #4A3B17; --brand-wash: #2B2316; --brand-deep: #F5CF4E;
    --accent: #F07A52; --accent-soft: #44241A; --ok: #8DC47C; --ok-soft: #1F2E1B; --sage: #1F2A1B; --peach: #34211A; --lilac: #2A2233; --sky: #1B2A30;
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 22px -8px rgba(0, 0, 0, .5);
    --shadow-md: 0 2px 6px rgba(0, 0, 0, .3), 0 22px 44px -16px rgba(0, 0, 0, .65);
    --shadow-lg: 0 50px 90px -34px rgba(0, 0, 0, .85);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #17110D; --bg-deep: #1E1611; --surface: #221913; --surface-2: #2A2018; --surface-3: #33281F;
  --text: #F6EDE1; --text-soft: #DCCBB6; --muted: #B29C86; --border: #3A2D23; --border-strong: #4F3F31;
  --brand-soft: #4A3B17; --brand-wash: #2B2316; --brand-deep: #F5CF4E;
  --accent: #F07A52; --accent-soft: #44241A; --ok: #8DC47C; --ok-soft: #1F2E1B; --sage: #1F2A1B; --peach: #34211A; --lilac: #2A2233; --sky: #1B2A30;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 22px -8px rgba(0, 0, 0, .5);
  --shadow-md: 0 2px 6px rgba(0, 0, 0, .3), 0 22px 44px -16px rgba(0, 0, 0, .65);
  --shadow-lg: 0 50px 90px -34px rgba(0, 0, 0, .85);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 650; letter-spacing: -.03em; line-height: 1.05; margin: 0; }
h2 em, h1 em { font-style: italic; font-weight: 500; }
p { margin: 0; }
.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; }
.ic { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
/* En una columna, ningún contenido largo (palabras sin cortar, carruseles) puede ensanchar la rejilla */
.hero-grid, .medida-grid, .story-grid, .faq-grid, .pricing, .inst, .steps, .xg, .foot-top { grid-template-columns: minmax(0, 1fr); }
.hero-grid > *, .medida-grid > *, .story-grid > * { min-width: 0; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 75%, transparent); outline-offset: 3px; border-radius: 8px; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid transparent; font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer; white-space: nowrap; transition: transform .2s var(--ease), box-shadow .2s, background .2s, border-color .2s; }
.btn:active { transform: scale(.97); }
.btn.sm { min-height: 40px; padding: 0 16px; font-size: .9rem; }
.btn.lg { min-height: 56px; padding: 0 26px; font-size: 1.04rem; }
.btn.primary { background: var(--brand); color: #2A1A12; box-shadow: 0 12px 26px -12px rgba(184, 136, 18, .9), inset 0 -3px 0 rgba(0, 0, 0, .08); }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 18px 32px -14px rgba(184, 136, 18, .95), inset 0 -3px 0 rgba(0, 0, 0, .08); }
.btn.primary .ic { transition: transform .25s var(--ease); }
.btn.primary:hover .ic { transform: translateX(3px); }
.btn.dark { background: var(--espresso); color: var(--cream); }
.btn.dark:hover { box-shadow: var(--shadow-md); }
.btn.ghost { background: var(--surface); border-color: var(--border); color: var(--text); box-shadow: var(--shadow-xs); }
.btn.ghost:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.btn.glass { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .22); color: #FFF8EE; backdrop-filter: blur(8px); }
.btn.glass:hover { background: rgba(255, 255, 255, .18); }
.btn .play { display: grid; place-items: center; width: 28px; height: 28px; margin-left: -8px; border-radius: 50%; background: var(--espresso); color: var(--cream); }
.btn .play .ic { width: 12px; height: 12px; fill: currentColor; stroke: none; }
:root[data-theme="dark"] .btn.dark, :root[data-theme="dark"] .btn .play { background: var(--cream); color: var(--espresso); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.dark, :root:not([data-theme="light"]) .btn .play { background: var(--cream); color: var(--espresso); } }

/* Cabecera */
.top { position: sticky; top: 0; z-index: 50; transition: background .3s, box-shadow .3s, border-color .3s; border-bottom: 1px solid transparent; }
.top.scrolled { background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px); border-bottom-color: var(--border); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; letter-spacing: -.03em; }
.logo img { border-radius: 11px; box-shadow: var(--shadow); }
.top nav { display: none; gap: 4px; margin: 0 auto; }
.top nav a { padding: 8px 12px; border-radius: 999px; font-size: .93rem; font-weight: 600; color: var(--text-soft); transition: background .2s, color .2s; }
.top nav a:hover { background: var(--surface); color: var(--text); }
.top .cta { display: flex; gap: 8px; margin-left: auto; }
.top .login { display: none; }
@media (min-width: 560px) { .top .login { display: inline-flex; } }
@media (min-width: 980px) { .top nav { display: flex; } .top .cta { margin-left: 0; } }
.gift-bar { padding: 10px var(--gutter); background: var(--espresso); color: var(--cream); text-align: center; font-size: .9rem; font-weight: 600; }

/* ---------- Portada ---------- */
.hero { position: relative; padding: 18px 0 60px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.blob.b1 { width: 520px; height: 520px; right: -120px; top: -80px; background: #F5CF4E; opacity: .38; }
.blob.b2 { width: 420px; height: 420px; right: 280px; top: 320px; background: #F6B494; opacity: .3; }
.blob.b3 { width: 380px; height: 380px; left: -160px; top: 120px; background: #CFE3BE; opacity: .35; }
:root[data-theme="dark"] .blob { opacity: .14 !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .blob { opacity: .14 !important; } }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1000px) { .hero { padding: 30px 0 90px; } .hero-grid { grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 30px; } }
.news { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); font-size: .86rem; font-weight: 600; color: var(--text-soft); transition: transform .2s var(--ease); }
.news:hover { transform: translateY(-2px); }
.news b { padding: 4px 10px; border-radius: 999px; background: var(--espresso); color: var(--brand); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.news span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news .ic { width: 14px; height: 14px; }
:root[data-theme="dark"] .news b { background: var(--brand); color: #2A1A12; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .news b { background: var(--brand); color: #2A1A12; } }
.hero h1 { margin: 22px 0 22px; font-size: clamp(2.7rem, 8.4vw, 5.1rem); line-height: .98; letter-spacing: -.045em; }
.rot { display: inline-grid; justify-items: start; vertical-align: bottom; color: var(--accent); font-style: italic; font-weight: 500; transition: width .5s var(--ease); }
.rot > span { grid-area: 1 / 1; width: max-content; white-space: nowrap; opacity: 0; transform: translateY(.45em); transition: opacity .45s, transform .6s var(--ease); }
.rot > span.on { opacity: 1; transform: none; }
.rot > span.out { opacity: 0; transform: translateY(-.45em); }
.hero h1 .done { position: relative; display: inline-block; color: var(--brand-deep); }
.scribble { position: absolute; left: -2%; bottom: -.12em; width: 104%; height: .32em; overflow: visible; }
.scribble path { fill: none; stroke: var(--brand); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 340; stroke-dashoffset: 340; animation: draw 1.1s .6s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.lede { max-width: 34em; font-size: clamp(1.05rem, 2.2vw, 1.22rem); line-height: 1.6; color: var(--text-soft); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.proof { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 26px 0 0; padding: 0; list-style: none; font-size: .9rem; font-weight: 600; color: var(--text-soft); }
.proof li { display: inline-flex; align-items: center; gap: 7px; }
.proof .ic { width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); stroke-width: 3; }

/* Escena de la portada */
.hero-art { position: relative; height: 600px; display: grid; place-items: center; }
@media (max-width: 999px) { .hero-art { height: 560px; margin: 0 -10px; } }
@media (max-width: 520px) { .hero-art { height: 520px; } }
.sun { position: absolute; width: 440px; height: 440px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FDE58B, #F5CF4E 60%, #EDBA2E); box-shadow: 0 40px 80px -30px rgba(184, 136, 18, .7); animation: breathe 9s ease-in-out infinite; }
@media (max-width: 520px) { .sun { width: 330px; height: 330px; } }
@keyframes breathe { 50% { transform: scale(1.04); } }
.plate { position: absolute; z-index: 1; border-radius: 50%; padding: 7px; background: radial-gradient(circle, #FFFDF8 64%, #EADFCB 66%, #FFFCF5 70%); box-shadow: 0 22px 40px -16px rgba(46, 29, 20, .55); transition: translate .6s var(--ease); animation: bob 7s ease-in-out infinite; }
.plate img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.plate.p1 { width: 150px; height: 150px; left: 2%; top: 9%; animation-delay: -1s; }
.plate.p2 { width: 124px; height: 124px; right: 1%; top: 3%; animation-delay: -3s; }
.plate.p3 { width: 136px; height: 136px; left: 0; bottom: 14%; animation-delay: -2s; }
.plate.p4 { width: 158px; height: 158px; right: -2%; bottom: 8%; animation-delay: -4s; }
.plate.p5 { width: 96px; height: 96px; left: 18%; bottom: -1%; animation-delay: -5s; }
@keyframes bob { 50% { transform: translateY(-12px) rotate(6deg); } }
@media (max-width: 520px) {
  .plate.p1 { width: 104px; height: 104px; left: -4%; top: 10%; } .plate.p2 { width: 92px; height: 92px; right: -3%; top: 4%; }
  .plate.p3 { width: 96px; height: 96px; left: -6%; bottom: 18%; } .plate.p4 { width: 112px; height: 112px; right: -6%; bottom: 10%; }
  .plate.p5 { display: none; }
}
.hero-phone { position: relative; z-index: 2; transform: rotate(-4deg); animation: rise 1s .1s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: rotate(-4deg) translateY(40px); } }
.float { position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 18px; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: var(--shadow-md); animation: bob 8s ease-in-out infinite; }
.float b { display: block; font-size: .86rem; line-height: 1.2; }
.float small { display: flex; align-items: center; gap: 6px; font-size: .74rem; color: var(--muted); }
.fi { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; font-weight: 800; flex: none; }
.fi.y { background: var(--brand); color: #2A1A12; } .fi.g { background: var(--ok-soft); color: var(--ok); } .fi.r { background: var(--accent-soft); }
.f1 { left: 4%; top: 40%; animation-delay: -2s; } .f2 { right: 0; top: 30%; animation-delay: -5s; } .f3 { right: 6%; bottom: 3%; animation-delay: -3.5s; }
.mini-bar { display: inline-block; width: 40px; height: 5px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.mini-bar i { display: block; width: 74%; height: 100%; background: var(--ok); }
@media (max-width: 520px) { .f1 { left: -2%; top: 46%; } .f2 { right: -3%; top: 34%; } .f3 { display: none; } .float { padding: 8px 10px 8px 8px; } .float b { font-size: .78rem; } .fi { width: 30px; height: 30px; } }
.note { position: absolute; z-index: 3; left: -1%; top: 55%; font-family: var(--font-hand); font-size: 1.7rem; color: var(--accent); transform: rotate(-8deg); }
.note svg { position: absolute; left: 70%; top: 70%; width: 70px; height: 44px; fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; }
@media (max-width: 520px) { .note { display: none; } }

/* ---------- Móvil de muestra (todo en em: se escala cambiando el font-size) ---------- */
.phone { --pf: 10px; font-size: var(--pf); position: relative; width: 29em; height: 60em; padding: .9em; border-radius: 4.6em; background: #1C120C; box-shadow: var(--shadow-lg), inset 0 0 0 .2em #3A2A20, inset 0 0 0 .5em #120B07; flex: none; }
@media (max-width: 520px) { .phone { --pf: 8.6px; } }
.ph-screen { position: relative; height: 100%; overflow: hidden; border-radius: 3.8em; background: #FBF7F1; color: #2A1A12; font-family: var(--font); line-height: 1.3; }
.ph-status { display: flex; align-items: center; justify-content: space-between; height: 3.8em; padding: 0 2.4em; font-size: 1.15em; font-weight: 700; }
.ph-island { width: 8.4em; height: 2.3em; border-radius: 2em; background: #000; }
.ph-sys { display: flex; gap: .25em; align-items: flex-end; }
.ph-sys i { width: .35em; border-radius: .1em; background: #2A1A12; height: .6em; } .ph-sys i + i { height: .8em; } .ph-sys i + i + i { height: 1em; }
.ph-top, .ph-title { display: flex; align-items: center; justify-content: space-between; padding: .4em 1.5em .6em; }
.ph-title { font-family: var(--font-display); font-weight: 650; font-size: 2em; letter-spacing: -.03em; padding: .2em .75em .3em; }
.ph-logo { display: flex; align-items: center; gap: .5em; font-family: var(--font-display); font-weight: 700; font-size: 1.7em; letter-spacing: -.03em; }
.ph-logo img { width: 1.6em; height: 1.6em; border-radius: .45em; }
.ph-av { display: grid; place-items: center; width: 3.2em; height: 3.2em; border-radius: 50%; background: #F5CF4E; font-size: 1.05em; font-weight: 800; box-shadow: 0 0 0 .2em #FBF7F1, 0 0 0 .4em rgba(245, 207, 78, .7); }
.ph-av.sm { width: 1.7em; height: 1.7em; font-size: .5em; font-family: var(--font); letter-spacing: 0; }
.ph-pad { padding: 0 1.5em; }
.ph-date { font-size: 1.05em; font-weight: 600; color: #7A6353; }
.ph-hello { margin: .2em 0 .8em; font-family: var(--font-display); font-weight: 650; font-size: 2.2em; letter-spacing: -.035em; }
.ph-hello em { color: #8A5F0B; font-weight: 500; }
.ph-hero { position: relative; height: 21em; border-radius: 2.4em; overflow: hidden; background: #2E1D14; color: #FFF8EE; box-shadow: 0 1.4em 2.4em -1.2em rgba(46, 29, 20, .6); }
.ph-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 25%, rgba(20, 12, 8, .6) 55%, rgba(20, 12, 8, .94)); }
.ph-hero-b { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; display: grid; gap: .45em; padding: 1.5em; }
.ph-tag { justify-self: start; padding: .3em .9em; border-radius: 1em; background: rgba(255, 253, 248, .92); color: #2A1A12; font-size: .85em; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.ph-hero-b b { font-family: var(--font-display); font-size: 1.85em; line-height: 1.05; letter-spacing: -.03em; }
.ph-meta { font-size: 1em; opacity: .85; }
.ph-hint { justify-self: start; padding: .4em .8em; border-radius: .8em; background: rgba(245, 207, 78, .2); color: #F9DC80; font-size: .92em; font-weight: 600; }
.ph-btns { display: flex; gap: .6em; margin-top: .2em; }
.ph-btns i { padding: .6em 1.2em; border-radius: 2em; background: #F5CF4E; color: #2A1A12; font-style: normal; font-weight: 800; font-size: 1em; }
.ph-btns i.g { background: rgba(255, 255, 255, .14); color: #FFF8EE; border: 1px solid rgba(255, 255, 255, .25); }
.ph-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6em; margin: 1em 0; }
.ph-quick span { display: grid; justify-items: center; gap: .4em; padding: .8em .2em .7em; border-radius: 1.6em; font-size: .85em; font-weight: 700; text-align: center; }
.ph-quick i { position: relative; display: grid; place-items: center; width: 2.6em; height: 2.6em; border-radius: .9em; background: #fff; font-style: normal; font-size: 1.5em; box-shadow: 0 .5em 1em -.6em rgba(46, 29, 20, .5); }
.ph-quick em { position: absolute; top: -.4em; right: -.6em; padding: .1em .35em; border-radius: 1em; background: #DE5530; color: #fff; font-style: normal; font-size: .45em; font-weight: 800; }
.ph-quick .q1 { background: #FEF6DD; } .ph-quick .q2 { background: #EAF2E3; } .ph-quick .q3 { background: #FDEAE0; } .ph-quick .q4 { background: #E4EEF5; }
.ph-card { padding: 1em 1.1em; border-radius: 1.8em; background: #fff; border: 1px solid #EEE5D8; }
.ph-card small { display: block; margin-bottom: .5em; font-size: .78em; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #8A5F0B; }
.ph-tl { display: flex; align-items: center; gap: .8em; padding: .35em .4em; border-radius: 1.2em; font-size: 1.05em; }
.ph-tl span { width: 3em; font-size: .85em; font-weight: 700; color: #7A6353; }
.ph-tl img { width: 2.6em; height: 2.6em; border-radius: 50%; object-fit: cover; }
.ph-tl b { flex: 1; font-weight: 650; }
.ph-tl i { display: grid; place-items: center; width: 1.5em; height: 1.5em; border-radius: 50%; background: #E5EFDF; color: #3C7536; font-style: normal; font-size: .8em; font-weight: 800; }
.ph-tl.done img, .ph-tl.done b { opacity: .55; }
.ph-tl.next { background: #FEF6DD; }
.ph-tl.next img { box-shadow: 0 0 0 .2em #fff, 0 0 0 .35em #F5CF4E; }
.ph-nav { position: absolute; left: 1.2em; right: 1.2em; bottom: 1.4em; display: flex; align-items: center; gap: .4em; height: 5.2em; padding: .5em; border-radius: 2em; background: #2E1D14; color: rgba(251, 247, 241, .6); }
.ph-nav span { flex: 1; display: flex; align-items: center; justify-content: center; gap: .4em; height: 100%; border-radius: 1.5em; font-size: 1em; font-weight: 800; }
.ph-nav span.on { flex: 2.2; background: #F5CF4E; color: #2A1A12; }
.ph-nav .ic { width: 1.8em; height: 1.8em; }

/* Pantallas del recorrido */
.ph-week-head { display: flex; align-items: center; justify-content: space-between; margin: .4em 0 .8em; }
.ph-week-head b { font-family: var(--font-display); font-size: 1.6em; letter-spacing: -.02em; }
.ph-pill { padding: .45em .9em; border-radius: 2em; background: #F5CF4E; font-size: .95em; font-weight: 800; }
.ph-cost { display: grid; grid-template-columns: 1fr auto; gap: .3em .6em; align-items: center; padding: 1em 1.2em; margin-bottom: .9em; border-radius: 1.6em; background: #fff; border: 1px solid #EEE5D8; }
.ph-cost span:first-child { font-size: .85em; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #7A6353; }
.ph-cost b { font-family: var(--font-display); font-size: 1.6em; }
.ph-bar { grid-column: 1 / -1; height: .6em; border-radius: 1em; background: #F0E8DC; overflow: hidden; }
.ph-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #3C7536, #9CCB86); }
.ph-cost small { grid-column: 1 / -1; font-size: .9em; color: #7A6353; }
.ph-day { display: flex; gap: .8em; align-items: stretch; padding: .7em; margin-bottom: .6em; border-radius: 1.6em; background: #fff; border: 1px solid #EEE5D8; }
.ph-day .d { display: grid; place-content: center; width: 3.6em; flex: none; border-radius: 1.1em; background: #F8F3EC; font-size: .8em; font-weight: 800; color: #7A6353; text-align: center; letter-spacing: .05em; }
.ph-day .d b { font-family: var(--font-display); font-size: 2em; color: #2A1A12; letter-spacing: -.02em; line-height: 1; }
.ph-day .m { flex: 1; min-width: 0; display: flex; align-items: center; gap: .6em; font-size: 1em; font-weight: 650; line-height: 1.15; }
.ph-day .m img, .ph-emo { width: 3em; height: 3em; flex: none; border-radius: .9em; object-fit: cover; }
.ph-emo { display: grid; place-items: center; background: #F0E8DC; font-size: 1.4em; width: 2.15em; height: 2.15em; border-radius: .65em; }
.ph-day .m small { display: block; font-size: .72em; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #7A6353; }
.ph-day.free { background: #FDEAE0; border-color: transparent; }
.ph-store { display: flex; align-items: center; gap: .6em; padding: .9em 1.1em; margin: .3em 0 .6em; border-radius: 1.6em; background: #2E1D14; color: #FBF7F1; font-size: 1.05em; }
.ph-store span { padding: .3em .7em; border-radius: 1em; background: rgba(255, 255, 255, .12); font-weight: 700; font-size: .9em; }
.ph-store b { flex: 1; }
.ph-store em { font-style: normal; font-weight: 800; color: #F5CF4E; }
.ph-aisle { margin: .9em 0 .4em; font-size: .9em; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: #7A6353; }
.ph-item { display: flex; align-items: center; gap: .8em; padding: .7em .9em; margin-bottom: .35em; border-radius: 1.3em; background: #fff; border: 1px solid #EEE5D8; }
.ph-item i { width: 1.6em; height: 1.6em; flex: none; border-radius: 50%; border: .18em solid #DCCEBB; }
.ph-item span { flex: 1; min-width: 0; display: grid; }
.ph-item b { font-size: 1.05em; font-weight: 650; }
.ph-item small { font-size: .85em; color: #7A6353; }
.ph-item em { font-style: normal; font-weight: 800; font-size: .95em; color: #3C7536; }
.ph-item.done i { border-color: #3C7536; background: #3C7536 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 70% no-repeat; }
.ph-item.done b { text-decoration: line-through; color: #7A6353; }
.ph-share { margin-top: .8em; padding: .8em; border-radius: 2em; background: #25D366; color: #fff; text-align: center; font-weight: 800; font-size: 1em; }
.ph-zones { display: flex; gap: .4em; margin: .3em 0 .8em; }
.ph-zones span { padding: .5em .8em; border-radius: 2em; background: #fff; border: 1px solid #EEE5D8; font-size: .92em; font-weight: 700; white-space: nowrap; }
.ph-zones span.on { background: #2E1D14; color: #FBF7F1; border-color: #2E1D14; }
.ph-zones i { font-style: normal; padding: 0 .4em; border-radius: 1em; background: rgba(46, 29, 20, .08); font-size: .85em; }
.ph-zones .on i { background: rgba(255, 255, 255, .18); }
.ph-soon { padding: 1em 1.1em; margin-bottom: .6em; border-radius: 1.6em; background: linear-gradient(165deg, #FDEAE0, #fff 80%); border: 1px solid #F7CDB8; }
.ph-soon b { font-size: 1.05em; color: #DE5530; }
.ph-soon div { display: grid; grid-template-columns: 1fr 1fr; gap: .4em; margin: .6em 0; }
.ph-soon span { display: grid; padding: .5em .7em; border-radius: 1em; background: #fff; font-size: .95em; font-weight: 650; }
.ph-soon em { font-style: normal; font-size: .82em; font-weight: 800; color: #8A5F0B; }
.ph-soon em.r { color: #B63E30; }
.ph-soon > i { font-style: normal; font-weight: 800; color: #DE5530; font-size: .95em; }
.ph-sec { display: flex; justify-content: space-between; margin: .9em 0 .4em; font-weight: 800; font-size: 1em; }
.ph-sec small { padding: 0 .5em; border-radius: 1em; background: #F0E8DC; font-size: .85em; }
.ph-fi { display: flex; align-items: center; gap: .7em; padding: .55em .7em; margin-bottom: .3em; border-radius: 1.2em; background: #fff; border: 1px solid #EEE5D8; }
.ph-fi span { display: grid; place-items: center; width: 2.2em; height: 2.2em; border-radius: .8em; background: #F8F3EC; font-size: 1.2em; }
.ph-fi b { flex: 1; font-weight: 650; }
.ph-fi small { color: #7A6353; font-weight: 600; }
.ph-scan { margin-top: .7em; padding: .8em; border-radius: 2em; border: .15em dashed #DCCEBB; text-align: center; font-weight: 700; color: #5B4538; }
.ph-screen.cook { background: #1C120C; color: #FBF7F1; }
.ph-screen.cook .ph-sys i { background: #FBF7F1; }
.ph-cook-top { display: flex; align-items: center; justify-content: space-between; padding: .5em 1.6em; font-size: 1.15em; }
.ph-cook-top span { display: grid; place-items: center; width: 2.2em; height: 2.2em; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.ph-dots { display: flex; gap: .4em; padding: .6em 1.6em; }
.ph-dots i { flex: 1; height: .45em; border-radius: 1em; background: rgba(255, 255, 255, .15); }
.ph-dots i.on { background: #F5CF4E; }
.ph-cook-body { padding: 1.6em 1.8em; }
.ph-cook-body small { font-size: .95em; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #F5CF4E; }
.ph-cook-body p { margin: .6em 0 1.6em; font-family: var(--font-display); font-size: 2.3em; line-height: 1.15; letter-spacing: -.02em; }
.ph-ring { position: relative; width: 15em; height: 15em; margin: 0 auto; }
.ph-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ph-ring circle { fill: none; stroke: rgba(255, 255, 255, .12); stroke-width: 9; }
.ph-ring circle.v { stroke: #F5CF4E; stroke-linecap: round; stroke-dasharray: 327; stroke-dashoffset: 92; }
.on .ph-ring circle.v { animation: tick 10s linear infinite; }
@keyframes tick { from { stroke-dashoffset: 40; } to { stroke-dashoffset: 300; } }
.ph-ring span { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ph-ring b { font-family: var(--font-display); font-size: 3em; letter-spacing: -.02em; }
.ph-ring small { font-size: .95em; font-weight: 700; opacity: .7; }
.ph-cook-nav { position: absolute; left: 1.6em; right: 1.6em; bottom: 2em; display: flex; gap: .6em; }
.ph-cook-nav span { flex: 1; padding: 1em; border-radius: 2em; background: rgba(255, 255, 255, .1); text-align: center; font-weight: 800; }
.ph-cook-nav span.on { background: #F5CF4E; color: #2A1A12; }

/* ---------- Recetas en movimiento ---------- */
.reel { padding: 64px 0 70px; background: var(--espresso); color: var(--cream); overflow: hidden; }
:root[data-theme="dark"] .reel { background: #0F0A07; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .reel { background: #0F0A07; } }
.reel-head { margin-bottom: 34px; }
.reel-title { max-width: 30ch; font-family: var(--font-display); font-size: clamp(1.7rem, 4.4vw, 3rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.08; }
.reel-title b { color: var(--brand); font-weight: 650; }
.reel-title span { font-style: italic; font-weight: 500; opacity: .75; }
.reel-row { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.reel-row + .reel-row { margin-top: 18px; }
.reel-track { display: flex; gap: 18px; width: max-content; animation: reel 70s linear infinite; }
.reel-row.rev .reel-track { animation-direction: reverse; animation-duration: 80s; }
.reel-row:hover .reel-track { animation-play-state: paused; }
@keyframes reel { to { transform: translateX(calc(-50% - 9px)); } }
.dish { position: relative; margin: 0; width: 300px; height: 210px; border-radius: 24px; overflow: hidden; flex: none; background: #3A2A20; }
@media (max-width: 520px) { .dish { width: 240px; height: 170px; } }
.dish img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.dish:hover img { transform: scale(1.06); }
.dish::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(20, 12, 8, .85)); }
.dish figcaption { position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 12px; display: grid; gap: 2px; }
.dish b { font-family: var(--font-display); font-size: 1.08rem; font-weight: 600; line-height: 1.15; letter-spacing: -.01em; }
.dish span { font-size: .78rem; font-weight: 600; opacity: .8; }

/* ---------- Bloques ---------- */
.block { padding: 96px 0; }
@media (max-width: 760px) { .block { padding: 70px 0; } }
.sec-head { max-width: 720px; margin-bottom: 46px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-deep); }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 30%, transparent); }
.eyebrow.light { color: var(--brand); }
.sec-head h2, .medida h2 { font-size: clamp(2.1rem, 5.4vw, 3.6rem); }
.sec-head h2 em, .medida h2 em { color: var(--accent); }
.sec-head p { margin-top: 18px; font-size: 1.1rem; color: var(--text-soft); }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in, .no-js .reveal { opacity: 1; transform: none; }

/* Cómo funciona */
/* Tonos de las escenas (cómo funciona y «Y además»): fondo suave y color de acento */
.tone-butter { --tint: var(--brand-wash); --tint-ink: var(--brand-deep); }
.tone-peach { --tint: var(--peach); --tint-ink: var(--accent); }
.tone-sage { --tint: var(--sage); --tint-ink: var(--ok); }
.tone-sky { --tint: var(--sky); --tint-ink: #2F6F86; }
.tone-lilac { --tint: var(--lilac); --tint-ink: #6B4E95; }
.tone-espresso { --tint: #2E1D14; --tint-ink: #F5CF4E; }
:root[data-theme="dark"] .tone-sky { --tint-ink: #8CC3D6; }
:root[data-theme="dark"] .tone-lilac { --tint-ink: #C9B3E8; }
:root[data-theme="dark"] .tone-espresso { --tint: #0F0A07; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tone-sky { --tint-ink: #8CC3D6; }
  :root:not([data-theme="light"]) .tone-lilac { --tint-ink: #C9B3E8; }
  :root:not([data-theme="light"]) .tone-espresso { --tint: #0F0A07; }
}
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 999px; background: var(--surface-3); font-size: .82rem; font-weight: 700; white-space: nowrap; }
.tag .ic { width: 14px; height: 14px; stroke-width: 2.8; }
.tag.y { background: var(--brand-wash); color: var(--brand-deep); } .tag.g { background: var(--ok-soft); color: var(--ok); } .tag.r { background: var(--accent-soft); color: var(--accent); } .tag.p { background: var(--lilac); color: #6B4E95; }
:root[data-theme="dark"] .tag.p { color: #C9B3E8; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tag.p { color: #C9B3E8; } }

/* Tarjetitas de interfaz dentro de las escenas */
.xs-card { position: relative; background: var(--surface); border: 1px solid color-mix(in srgb, var(--border) 80%, transparent); border-radius: 18px; box-shadow: 0 16px 32px -20px rgba(46, 29, 20, .6), 0 2px 6px -2px rgba(46, 29, 20, .12); }
.xs-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .86rem; }

.steps { display: grid; gap: 22px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; } }
.step { position: relative; display: flex; flex-direction: column; border-radius: 30px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); transition: transform .35s var(--ease), box-shadow .35s; }
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.step-stage { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: center; gap: 10px; height: 214px; padding: 16px 20px 34px; overflow: hidden; border-radius: 29px 29px 0 0; background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--surface) 55%, transparent), transparent 60%), var(--tint); }
.step-stage::before, .xt-stage::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(color-mix(in srgb, var(--tint-ink) 18%, transparent) 1.2px, transparent 1.5px); background-size: 16px 16px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%); }
.step .no { position: absolute; top: 188px; left: 24px; z-index: 2; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 18px; border: 4px solid var(--surface); background: var(--espresso); color: var(--brand); font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; box-shadow: var(--shadow); }
:root[data-theme="dark"] .step .no { background: var(--brand); color: #2A1A12; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .step .no { background: var(--brand); color: #2A1A12; } }
.step-body { display: flex; flex-direction: column; flex: 1; padding: 42px 28px 26px; }
.step h3 { font-size: 1.5rem; margin-bottom: 10px; }
.step p { color: var(--text-soft); }
.step-when { align-self: flex-start; margin-top: auto; padding: 7px 12px; border-radius: 999px; background: var(--tint); color: var(--tint-ink); font-size: .8rem; font-weight: 800; transform: translateY(0); }
.step-body p + .step-when { margin-top: 18px; }
/* Flecha entre pasos */
.step:not(:last-child)::after { content: "→"; position: absolute; z-index: 3; left: 50%; bottom: -26px; display: grid; place-items: center; width: 34px; height: 34px; margin-left: -17px; border-radius: 50%; background: var(--brand); color: #2A1A12; font-weight: 800; font-size: 1.05rem; box-shadow: var(--shadow); transform: rotate(90deg); }
@media (min-width: 900px) { .step:not(:last-child)::after { left: auto; right: -31px; bottom: auto; top: 197px; margin: 0; transform: none; } }
/* Paso 1: pregunta y respuestas */
.st-q { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; transform: rotate(-1.5deg); }
.st-q small { display: block; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.st-q b { font-size: .88rem; line-height: 1.25; }
.st-stepper { display: inline-flex; align-items: center; gap: 8px; padding: 4px; border-radius: 999px; background: var(--surface-2); flex: none; }
.st-stepper i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--surface); font-style: normal; font-weight: 800; box-shadow: var(--shadow-xs); }
.st-stepper b { min-width: 14px; text-align: center; font-family: var(--font-display); font-size: 1.15rem; }
.chips-art { display: flex; flex-wrap: wrap; gap: 6px; }
.step-stage .tag:not(.y):not(.g):not(.r):not(.p), .xt-stage .tag:not(.y):not(.g):not(.r):not(.p) { background: var(--surface); }
.in .chips-art .tag { animation: pop .5s var(--ease) both; }
.in .chips-art .tag:nth-child(2) { animation-delay: .08s; } .in .chips-art .tag:nth-child(3) { animation-delay: .16s; } .in .chips-art .tag:nth-child(4) { animation-delay: .24s; } .in .chips-art .tag:nth-child(5) { animation-delay: .32s; }
/* Paso 2: la semana */
.st-week { display: grid; gap: 10px; padding: 12px; }
.st-badge { padding: 3px 9px; border-radius: 999px; background: var(--brand); color: #2A1A12; font-size: .7rem; font-weight: 800; }
.week-art { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.week-art span { display: grid; justify-items: center; gap: 5px; padding: 6px 0 7px; border-radius: 12px; background: var(--surface-2); }
.week-art small { font-size: .64rem; font-weight: 800; color: var(--muted); }
.week-art img, .week-art b { width: min(30px, 100%); aspect-ratio: 1; border-radius: 50%; object-fit: cover; box-shadow: 0 6px 12px -6px rgba(46, 29, 20, .6); }
.week-art b { display: grid; place-items: center; background: var(--surface); font-size: .9rem; box-shadow: none; }
.in .week-art span { animation: pop .5s var(--ease) both; animation-delay: calc(.3s + var(--i) * 90ms); }
.st-meta { display: flex; justify-content: space-between; gap: 6px; font-size: .74rem; font-weight: 700; color: var(--muted); }
.st-meta span:last-child { color: var(--ok); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.9); } }
/* Paso 3: la lista y el temporizador */
.list-art { display: grid; gap: 6px; padding: 10px; margin-top: 18px; }
.list-art span { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--surface-2); font-weight: 650; font-size: .88rem; }
.list-art span i { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border-strong); flex: none; color: #fff; }
.list-art span i .ic { width: 11px; height: 11px; stroke-width: 3.2; }
.list-art span em { margin-left: auto; font-style: normal; font-size: .78rem; color: var(--muted); }
.list-art span.done { color: var(--muted); text-decoration: line-through; }
.list-art span.done i { background: var(--ok); border-color: var(--ok); }
.timer { position: absolute; top: 14px; right: 16px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; background: var(--espresso); color: var(--brand); font-variant-numeric: tabular-nums; box-shadow: var(--shadow-md); transform: rotate(4deg); animation: tick-bob 4s ease-in-out infinite; }
:root[data-theme="dark"] .timer { background: var(--brand); color: #2A1A12; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .timer { background: var(--brand); color: #2A1A12; } }
@keyframes tick-bob { 50% { transform: rotate(-2deg) translateY(-3px); } }

/* A tu medida */
.medida { background: radial-gradient(70% 60% at 100% 30%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 70%), var(--bg-deep); }
.medida-grid { display: grid; gap: 44px; align-items: center; }
@media (min-width: 980px) { .medida-grid { grid-template-columns: 1fr 1fr; gap: 70px; } }
.medida h2 { margin-bottom: 30px; }
.ticks { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.ticks li { display: flex; gap: 16px; align-items: flex-start; color: var(--text-soft); }
.ticks li > span { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); font-size: 1.3rem; }
.ticks b { color: var(--text); }
.kitchen-demo { padding: 22px; border-radius: 34px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.kd-head { margin-bottom: 16px; }
.kd-k { display: inline-block; margin-bottom: 4px; padding: 3px 10px; border-radius: 999px; background: var(--accent); color: #fff; font-family: var(--font-hand); font-size: 1.15rem; transform: rotate(-3deg); }
.kd-head > b { display: block; font-family: var(--font-display); font-size: 1.35rem; letter-spacing: -.02em; }
.kd-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.kd-chips button { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; border: 1.5px dashed var(--border-strong); background: transparent; color: var(--muted); font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; transition: all .2s var(--ease); }
.kd-chips button:hover { border-color: var(--text-soft); }
.kd-chips button.on { border-style: solid; border-color: var(--espresso); background: var(--espresso); color: var(--cream); }
:root[data-theme="dark"] .kd-chips button.on { border-color: var(--cream); background: var(--cream); color: var(--espresso); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .kd-chips button.on { border-color: var(--cream); background: var(--cream); color: var(--espresso); } }
.kd-card { overflow: hidden; border-radius: 26px; background: var(--surface-2); border: 1px solid var(--border); transition: opacity .3s, filter .3s; }
.kd-off .kd-card { opacity: .45; filter: grayscale(.7); }
.kd-photo { position: relative; height: 210px; }
.kd-photo img { width: 100%; height: 100%; object-fit: cover; }
.kd-badge { position: absolute; left: 14px; top: 14px; padding: 5px 12px; border-radius: 999px; background: rgba(255, 253, 248, .92); color: #2A1A12; font-size: .78rem; font-weight: 800; backdrop-filter: blur(6px); }
.kd-body { padding: 18px; }
.kd-body h3 { font-size: 1.35rem; margin-bottom: 12px; }
.kd-tabs { display: flex; gap: 6px; padding: 4px; border-radius: 16px; background: var(--surface-3); }
.kd-tabs button { flex: 1; padding: 9px 6px; white-space: nowrap; border: 0; border-radius: 12px; background: transparent; color: var(--muted); font: inherit; font-size: .84rem; font-weight: 700; cursor: pointer; transition: background .2s, color .2s; }
.kd-tabs button[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.kd-tabs button:disabled { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.kd-step { position: relative; margin-top: 14px; padding: 14px 16px; border-radius: 18px; background: var(--espresso); color: var(--cream); }
.kd-step.flash { animation: flash .6s var(--ease); }
@keyframes flash { from { opacity: .3; transform: translateY(6px); } }
.kd-step small { font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.kd-step p { margin: 4px 0 10px; font-family: var(--font-display); font-size: 1.15rem; line-height: 1.3; }
.kd-timer { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-variant-numeric: tabular-nums; }
.kd-note { margin-top: 12px; padding: 10px 14px; border-radius: 14px; background: var(--brand-wash); color: var(--brand-deep); font-weight: 700; font-size: .92rem; }
:root[data-theme="dark"] .kd-step { background: #0F0A07; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .kd-step { background: #0F0A07; } }

/* Recorrido con el móvil fijo */
.story-grid { display: grid; gap: 40px; }
.story-stage { display: none; }
.story-steps { display: grid; gap: 30px; }
.chapter { padding: 26px; border-radius: 30px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.ch-ic { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 14px; border-radius: 16px; }
.ch-ic .ic { width: 24px; height: 24px; }
.ch-ic.y { background: var(--brand-wash); color: var(--brand-deep); } .ch-ic.g { background: var(--ok-soft); color: var(--ok); } .ch-ic.b { background: var(--sky); color: #2B6286; } .ch-ic.r { background: var(--accent-soft); color: var(--accent); }
:root[data-theme="dark"] .ch-ic.b { color: #8CC0E0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ch-ic.b { color: #8CC0E0; } }
.ch-k { display: block; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.chapter h3 { margin: 6px 0 12px; font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.chapter p { color: var(--text-soft); font-size: 1.04rem; }
.ch-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.ch-list li { padding: 6px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-size: .86rem; font-weight: 700; color: var(--text-soft); }
.ch-phone { display: flex; justify-content: center; margin: 22px -6px 0; }
.ch-phone .phone { --pf: 8px; }
@media (min-width: 980px) {
  .story-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 60px; }
  .story-stage { display: grid; place-items: center; position: sticky; top: 96px; height: calc(100vh - 130px); min-height: 560px; }
  .story-stage::before { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: var(--glow, #F5CF4E); opacity: .42; filter: blur(50px); transition: background-color .8s var(--ease); }
  .story-stage[data-on="shop"] { --glow: #9CCB86; } .story-stage[data-on="fridge"] { --glow: #8CC0E0; } .story-stage[data-on="cook"] { --glow: #F09A72; }
  .story-phone { --pf: clamp(8px, 1.15vh, 10px); }
  .story-phone .sc { position: absolute; inset: .9em; height: auto; opacity: 0; transform: scale(.97); transition: opacity .5s var(--ease), transform .6s var(--ease); }
  .story-phone .sc.on { opacity: 1; transform: none; }
  .story-steps { gap: 0; }
  .chapter { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; padding: 30px 0; background: none; border: 0; box-shadow: none; opacity: .35; transition: opacity .5s; }
  .chapter.on { opacity: 1; }
  .ch-phone { display: none; }
}

/* Y además */
.xg { display: grid; gap: 18px; }
@media (min-width: 700px) { .xg { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .xg { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; } }
.xt { position: relative; display: flex; flex-direction: column; border-radius: 30px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s; }
.xt:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.xt-stage { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: center; gap: 12px; height: 240px; padding: 18px 22px 38px; overflow: hidden; background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--surface) 55%, transparent), transparent 60%), var(--tint); }
.tone-espresso .xt-stage { background: radial-gradient(90% 100% at 100% 0%, rgba(245, 207, 78, .22), transparent 60%), radial-gradient(70% 90% at 0% 100%, rgba(222, 85, 48, .2), transparent 60%), var(--tint); color: #FBF7F1; }
.xt-txt { position: relative; flex: 1; padding: 34px 26px 28px; }
.xt-ic { position: absolute; top: -24px; left: 24px; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); color: var(--tint-ink); box-shadow: var(--shadow); }
.tone-espresso .xt-ic { color: var(--brand-deep); }
.xt-ic .ic { width: 22px; height: 22px; }
.xt h3 { font-size: 1.4rem; margin-bottom: 8px; }
.xt p { color: var(--text-soft); font-size: .97rem; }
.xt-pro { position: absolute; top: 16px; right: 16px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px 4px 8px; border-radius: 999px; background: linear-gradient(135deg, #FFF1BF, #F5CF4E 55%, #E3A92B); color: #3A2508; font-size: .72rem; font-weight: 800; letter-spacing: .03em; box-shadow: 0 8px 18px -10px rgba(227, 169, 43, .9); }
.xt-pro .ic { width: 14px; height: 14px; stroke-width: 2.4; }
.xt-pro ~ .xt-stage { padding-top: 50px; }
.xt:hover .xs-card { animation-play-state: paused; }

/* Un hogar, un menú */
.xs-list { display: grid; gap: 6px; padding: 12px 14px; transform: rotate(-1.5deg); }
.faces { display: flex; }
.faces i, .xs-row .who { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--surface); font-style: normal; font-size: .6rem; font-weight: 800; color: #2A1A12; }
.faces i + i { margin-left: -8px; }
.f1 { background: #F5CF4E; } .f2 { background: #F6B494; } .f3 { background: #CFE3BE; }
.xs-row { display: flex; align-items: center; gap: 9px; padding: 6px 8px; border-radius: 12px; background: var(--surface-2); font-size: .84rem; font-weight: 650; }
.xs-row .ck { display: grid; place-items: center; width: 18px; height: 18px; flex: none; border-radius: 50%; border: 2px solid var(--border-strong); color: #fff; }
.xs-row.done .ck { background: var(--ok); border-color: var(--ok); }
.xs-row .ck .ic { width: 11px; height: 11px; stroke-width: 3.2; }
.xs-row s, .xs-row > span:not(.ck) { flex: 1; min-width: 0; }
.xs-row s { color: var(--muted); }
.xs-row .who { width: 22px; height: 22px; border: 0; font-size: .54rem; }
.xs-row .qty { font-style: normal; font-size: .76rem; color: var(--muted); }
.xs-code { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 12px; border: 2px dashed color-mix(in srgb, var(--tint-ink) 45%, transparent); background: color-mix(in srgb, var(--surface) 65%, transparent); font-size: .78rem; font-weight: 700; color: var(--text-soft); }
.xs-code b { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .18em; color: var(--text); }

/* Presupuesto y nutrición */
.rings { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }
.ring { --size: 92px; position: relative; display: grid; place-content: center; width: var(--size); height: var(--size); border-radius: 50%; text-align: center; background: conic-gradient(var(--c) calc(var(--p) * 1%), rgba(255, 255, 255, .12) 0); }
.ring::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--tint); }
.ring b, .ring small { position: relative; }
.ring b { font-family: var(--font-display); font-size: 1.15rem; line-height: 1; }
.ring small { font-size: .68rem; opacity: .7; }
.in .ring { animation: pop .6s var(--ease) both; } .in .ring:nth-child(2) { animation-delay: .1s; } .in .ring:nth-child(3) { animation-delay: .2s; }
.xs-pill { align-self: center; display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-xs); font-size: .8rem; font-weight: 700; color: var(--text-soft); white-space: nowrap; }
.xs-pill .ic { width: 14px; height: 14px; stroke-width: 2.8; }
.xs-pill.ok { color: var(--ok); }
.tone-espresso .xs-pill { background: rgba(255, 255, 255, .1); color: #FBF7F1; box-shadow: none; }
.tone-espresso .xs-pill.ok { color: #A9DB97; }

/* Dietas y alergias */
.xs-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.xs-alert { display: flex; align-items: center; gap: 12px; padding: 12px 14px; transform: rotate(1.2deg); }
.xa-emoji { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 13px; background: var(--accent-soft); font-size: 1.3rem; }
.xs-alert .grow { flex: 1; min-width: 0; }
.xs-alert b { display: block; font-size: .9rem; text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--accent) 70%, transparent); text-decoration-thickness: 2px; }
.xs-alert small { color: var(--accent); font-size: .76rem; font-weight: 700; }
.xa-off { padding: 4px 9px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .7rem; font-weight: 800; }

/* Avisos */
.xs-notifs { position: relative; height: 150px; }
.xs-notif { position: absolute; left: 0; right: 0; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 20px; }
.xs-notif img { width: 38px; height: 38px; flex: none; border-radius: 11px; }
.xs-notif span { min-width: 0; }
.xs-notif b { display: block; font-size: .84rem; }
.xs-notif small { display: block; font-size: .78rem; line-height: 1.35; color: var(--text-soft); }
.xs-notif.back { top: 6px; transform: scale(.9); opacity: .7; filter: saturate(.7); }
.xs-notif.front { top: 58px; animation: notif-in 5s var(--ease) infinite; }
@keyframes notif-in { 0% { transform: translateY(-26px) scale(.96); opacity: 0; } 12%, 88% { transform: none; opacity: 1; } 100% { transform: translateY(6px); opacity: 0; } }

/* Tus recetas */
.paste { display: flex; align-items: center; gap: 8px; padding: 7px 7px 7px 14px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); font-size: .82rem; color: var(--muted); }
.paste .ic { color: var(--tint-ink); }
.paste span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.paste b { padding: 7px 12px; border-radius: 999px; background: var(--espresso); color: var(--cream); font-size: .8rem; }
:root[data-theme="dark"] .paste b { background: var(--brand); color: #2A1A12; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .paste b { background: var(--brand); color: #2A1A12; } }
.xs-arrow { display: grid; place-items: center; align-self: center; width: 28px; height: 28px; border-radius: 50%; background: color-mix(in srgb, var(--surface) 70%, transparent); color: var(--tint-ink); animation: arrow-nudge 2.4s ease-in-out infinite; }
.xs-arrow .ic { width: 16px; height: 16px; }
@keyframes arrow-nudge { 50% { transform: translateY(4px); } }
.xs-recipe { display: flex; align-items: center; gap: 12px; padding: 10px 12px; }
.xs-recipe img { width: 46px; height: 46px; flex: none; border-radius: 14px; object-fit: cover; }
.xs-recipe > span:not(.ok-dot) { flex: 1; min-width: 0; }
.xs-recipe b { display: block; font-size: .9rem; }
.xs-recipe small { color: var(--muted); font-size: .76rem; }
.ok-dot { display: grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--ok); color: #fff; }
.ok-dot .ic { width: 13px; height: 13px; stroke-width: 3; }

/* Sin conexión */
.xs-wifi { position: relative; display: grid; place-items: center; align-self: center; width: 86px; height: 86px; }
.xs-wifi span[class^="w"] { position: absolute; inset: 0; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--tint-ink) 45%, transparent); animation: wave 2.8s ease-out infinite; }
.xs-wifi .w2 { animation-delay: 1.4s; }
@keyframes wave { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.xw-ic { position: relative; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 20px; background: var(--surface); color: var(--tint-ink); box-shadow: var(--shadow); }
.xw-ic .ic { width: 28px; height: 28px; }
.xs-pills { display: flex; flex-direction: column; align-items: center; gap: 6px; }

/* Precios */
.pricing { display: grid; gap: 18px; max-width: 1040px; margin: 0 auto; }
@media (min-width: 900px) { .pricing { grid-template-columns: 1fr 1fr 1.15fr; align-items: stretch; } }
.price-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 30px; border-radius: 30px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.price-card h3 { font-size: 1.3rem; }
.amount { display: flex; align-items: baseline; gap: 6px; margin: 10px 0 2px; }
.amount b { font-family: var(--font-display); font-size: 3rem; letter-spacing: -.04em; line-height: 1; }
.amount span { color: var(--muted); font-weight: 600; }
.price-card .sub { color: var(--text-soft); margin-bottom: 22px; }
.price-card .btn { margin-top: auto; }
.price-card.featured { background: var(--espresso); color: var(--cream); border-color: transparent; box-shadow: var(--shadow-lg); }
.price-card.featured .amount span, .price-card.featured .sub { color: rgba(251, 247, 241, .72); }
:root[data-theme="dark"] .price-card.featured { background: #0F0A07; border-color: var(--brand-soft); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .price-card.featured { background: #0F0A07; border-color: var(--brand-soft); } }
@media (max-width: 899px) { .price-card.featured { order: -1; margin-top: 8px; } }
.badge { position: absolute; top: -12px; right: 24px; padding: 6px 14px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .8rem; font-weight: 800; box-shadow: var(--shadow); transform: rotate(3deg); }
.included { padding: 30px; border-radius: 30px; background: var(--brand-wash); border: 1px dashed color-mix(in srgb, var(--brand-deep) 35%, transparent); }
.included b { display: block; margin-bottom: 14px; font-family: var(--font-display); font-size: 1.2rem; }
.included ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.included li { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--text-soft); }
.included .ic { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--ok); color: #fff; stroke-width: 3; }
.pay-methods { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 26px; text-align: center; font-size: .9rem; color: var(--muted); }

/* Precios: Epulora Gratis y Epulora Premium */
.tiers { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; max-width: 940px; margin: 0 auto; }
@media (min-width: 860px) { .tiers { grid-template-columns: 1fr 1.08fr; align-items: stretch; } }
.tier { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: 6px; padding: 32px 30px 30px; border-radius: 32px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.tier-kicker { font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.tier .sub { color: var(--text-soft); margin: 0 0 18px; }
.tier .btn { margin-top: auto; }
.tier-list { display: grid; gap: 11px; margin: 0 0 26px; padding: 0; list-style: none; }
.tier-list li { display: flex; align-items: flex-start; gap: 10px; font-weight: 600; color: var(--text-soft); line-height: 1.4; }
.tier-list .ic { flex: none; width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--ok); color: #fff; stroke-width: 3; }
.tier-list li.all { color: var(--muted); font-weight: 700; font-size: .9rem; }
.tier.pro { color: #FBF7F1; border-color: transparent; background: radial-gradient(130% 120% at 0% 0%, #4A2E1F, #2E1D14 55%, #1F130D); box-shadow: var(--shadow-lg), 0 0 0 1px rgba(245, 207, 78, .35); }
@media (max-width: 859px) { .tier.pro { order: -1; } }
.tier.pro .tier-kicker { color: #F5CF4E; }
.tier.pro .amount span, .tier.pro .sub { color: rgba(251, 247, 241, .74); }
.tier.pro .amount b { color: #FFF8E6; }
.tier.pro .tier-list li { color: rgba(251, 247, 241, .9); }
.tier.pro .tier-list li.all { color: rgba(251, 247, 241, .6); }
.tier.pro .tier-list .ic { background: linear-gradient(135deg, #FFF1BF, #F5CF4E 55%, #E3A92B); color: #3A2508; stroke-width: 2.2; }
.tier.pro .btn.primary { background: linear-gradient(135deg, #FFF1BF, #F5CF4E 45%, #E3A92B); }
.tier-glow { position: absolute; z-index: -1; top: -120px; right: -90px; width: 300px; height: 300px; border-radius: 50%; background: #F5CF4E; opacity: .32; filter: blur(60px); animation: tier-drift 10s ease-in-out infinite; pointer-events: none; }
@keyframes tier-drift { 50% { transform: translate(-30px, 26px) scale(1.12); } }
.tier-badge { position: absolute; top: 22px; right: 22px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: linear-gradient(135deg, #FFF1BF, #F5CF4E 55%, #E3A92B); color: #3A2508; font-size: .8rem; font-weight: 800; box-shadow: 0 10px 24px -10px rgba(245, 207, 78, .8); }
.tier-badge .ic { width: 16px; height: 16px; stroke-width: 2.4; }
.tier-toggle { display: inline-flex; align-self: flex-start; gap: 4px; margin-top: 12px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); }
.tier-toggle button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 0; border-radius: 999px; background: transparent; color: rgba(251, 247, 241, .75); font: 700 .85rem var(--font); cursor: pointer; }
.tier-toggle button.on { background: #FBF7F1; color: #2A1A12; }
.tier-toggle em { font-style: normal; padding: 1px 7px; border-radius: 999px; background: #DE5530; color: #fff; font-size: .72rem; }
.love { display: flex; align-items: center; gap: 18px; max-width: 940px; margin: 22px auto 0; padding: 20px 24px; border-radius: 26px; background: linear-gradient(120deg, var(--peach), var(--brand-wash)); border: 1px solid color-mix(in srgb, var(--accent) 16%, transparent); }
.love p { margin: 0; color: var(--text-soft); line-height: 1.55; }
.love p b { color: var(--text); }
.love-heart { position: relative; flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--surface); font-size: 28px; box-shadow: var(--shadow-xs); animation: love-beat 2.4s ease-in-out infinite; }
.love-heart i { position: absolute; bottom: 62%; left: 50%; width: 9px; height: 9px; background: var(--accent); opacity: 0; transform: rotate(45deg); border-radius: 2px 0 2px 2px; animation: love-float 3.6s ease-out infinite; }
.love-heart i::before, .love-heart i::after { content: ""; position: absolute; width: 9px; height: 9px; border-radius: 50%; background: inherit; }
.love-heart i::before { left: -4.5px; top: 0; }
.love-heart i::after { left: 0; top: -4.5px; }
.love-heart i:nth-child(2) { animation-delay: 1.2s; margin-left: -12px; background: #E3A92B; }
.love-heart i:nth-child(3) { animation-delay: 2.4s; margin-left: 10px; }
@keyframes love-beat { 0%, 40%, 100% { transform: scale(1); } 15% { transform: scale(1.12); } 28% { transform: scale(1.04); } }
@keyframes love-float { 0% { opacity: 0; transform: translate(0, 0) rotate(45deg) scale(.4); } 20% { opacity: .9; } 100% { opacity: 0; transform: translate(0, -44px) rotate(45deg) scale(.9); } }
@media (max-width: 520px) { .love { align-items: flex-start; padding: 18px; gap: 14px; } .tier { padding: 28px 22px 24px; } }
@media (prefers-reduced-motion: reduce) { .tier-glow, .love-heart, .love-heart i { animation: none; } }

/* Instalar */
.inst { position: relative; isolation: isolate; overflow: hidden; display: grid; gap: 30px; padding: 40px 30px; border-radius: 38px; border: 1px solid var(--border); box-shadow: var(--shadow-md); background: radial-gradient(80% 110% at 100% 0%, color-mix(in srgb, var(--brand) 30%, transparent), transparent 55%), radial-gradient(70% 90% at 0% 100%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 60%), var(--surface); }
@media (min-width: 920px) { .inst { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 40px; padding: 56px 60px; } }
@media (max-width: 520px) { .inst { padding: 32px 20px; border-radius: 30px; } }
.inst h2 { font-size: clamp(2.1rem, 5vw, 3.2rem); }
.inst h2 em { color: var(--accent); }
.inst-lead { margin-top: 14px; max-width: 46ch; color: var(--text-soft); font-size: 1.06rem; }
.inst-tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; margin: 26px 0 16px; padding: 5px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); }
.inst-tabs button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 0; border-radius: 999px; background: transparent; color: var(--text-soft); font: 700 .92rem var(--font); cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.inst-tabs button:hover { color: var(--text); }
.inst-tabs button[aria-selected="true"] { background: var(--espresso); color: var(--cream); box-shadow: var(--shadow); }
:root[data-theme="dark"] .inst-tabs button[aria-selected="true"] { background: var(--brand); color: #2A1A12; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .inst-tabs button[aria-selected="true"] { background: var(--brand); color: #2A1A12; } }
@media (max-width: 420px) { .inst-tabs { display: flex; } .inst-tabs button { flex: 1; justify-content: center; padding: 10px 8px; font-size: .84rem; } }
.inst-steps { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.inst-steps[hidden] { display: none; }
.inst-steps li { position: relative; display: flex; align-items: center; gap: 14px; padding: 12px 16px 12px 12px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-xs); animation: pop .45s var(--ease) both; }
.inst-steps li:nth-child(2) { animation-delay: .08s; } .inst-steps li:nth-child(3) { animation-delay: .16s; }
.inst-steps li:not(:last-child)::after { content: ""; position: absolute; left: 33px; bottom: -14px; height: 14px; border-left: 2px dashed var(--border-strong); }
.st-ic { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 14px; background: var(--brand-wash); color: var(--brand-deep); }
.st-ic .ic { width: 22px; height: 22px; }
.inst-steps li > span:last-child { color: var(--text-soft); line-height: 1.4; }
.inst-steps small { display: block; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.inst-steps b { color: var(--text); }
.inst-perks { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 20px 0 0; padding: 0; list-style: none; color: var(--text-soft); font-size: .9rem; font-weight: 700; }
.inst-perks li { display: inline-flex; align-items: center; gap: 6px; }
.inst-perks .ic { color: var(--ok); stroke-width: 2.8; }
.inst-art { position: relative; display: grid; place-items: center; min-height: 440px; }
.inst-art::before { content: ""; position: absolute; width: 330px; height: 330px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--brand) 45%, transparent), transparent 70%); filter: blur(10px); }
.inst-phone { position: relative; display: flex; flex-direction: column; width: 230px; height: 430px; padding: 12px 12px 10px; border: 8px solid #1C120C; border-radius: 44px; background: linear-gradient(165deg, #FCE7B0 0%, #F8CBA6 48%, #E8B5C6 100%); box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255, 255, 255, .35); transform: rotate(-4deg); animation: phone-float 8s ease-in-out infinite; }
@keyframes phone-float { 50% { transform: rotate(-2deg) translateY(-10px); } }
.ip-bar { display: flex; align-items: center; justify-content: space-between; padding: 2px 10px 0; color: #2A1A12; font-size: .7rem; font-weight: 800; }
.ip-bar i { width: 64px; height: 18px; border-radius: 999px; background: #1C120C; }
.ip-sig { letter-spacing: -2px; font-size: .55rem; }
.ip-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 8px; margin-top: 28px; }
.inst-phone .app { position: relative; display: grid; place-items: center; width: 42px; height: 42px; margin: 0 auto; border-radius: 13px; background: rgba(255, 255, 255, .6); font-size: 21px; box-shadow: 0 6px 12px -8px rgba(46, 29, 20, .55); }
.a1 { background: #EDE7F6 !important; } .a2 { background: #FFF3C4 !important; } .a3 { background: #DFF0E3 !important; } .a4 { background: #FCE2D8 !important; }
.a5 { background: #E2EFF4 !important; } .a6 { background: #DCF5DF !important; } .a7 { background: #FFE9C7 !important; } .a8 { background: #F3E1F0 !important; }
.a9 { background: #FDE0E0 !important; } .a10 { background: #ECEAE6 !important; } .a11 { background: #E4E8FB !important; }
.inst-phone .app.me { background: none; box-shadow: none; animation: app-pop 4s var(--ease) infinite; }
.app.me img { width: 42px; height: 42px; border-radius: 13px; box-shadow: 0 0 0 3px #fff, 0 12px 22px -8px rgba(222, 85, 48, .75); }
.app.me em { position: absolute; top: 100%; margin-top: 5px; color: #2A1A12; font-style: normal; font-size: .6rem; font-weight: 800; white-space: nowrap; }
@keyframes app-pop { 0%, 50%, 100% { transform: scale(1); } 60% { transform: scale(1.22) rotate(-8deg); } 70% { transform: scale(.95); } 78% { transform: scale(1.04); } }
.ip-dock { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: auto; padding: 10px 8px; border-radius: 26px; background: rgba(255, 255, 255, .38); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.d1 { background: #DCF5DF !important; } .d2 { background: #E2EFF4 !important; } .d3 { background: #E4E8FB !important; } .d4 { background: #FFF3C4 !important; }
.inst-bubble { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-md); font-size: .86rem; font-weight: 700; white-space: nowrap; }
.inst-bubble .ic { color: var(--accent); }
.inst-bubble.b1 { top: 16%; left: 0; animation: bubble-float 7s ease-in-out infinite; }
.inst-bubble.b2 { bottom: 14%; right: 0; background: var(--espresso); color: var(--cream); border-color: transparent; animation: bubble-float 7s ease-in-out -3.5s infinite; }
:root[data-theme="dark"] .inst-bubble.b2 { background: var(--brand); color: #2A1A12; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .inst-bubble.b2 { background: var(--brand); color: #2A1A12; } }
@keyframes bubble-float { 50% { transform: translateY(-8px); } }
@media (max-width: 520px) { .inst-art { min-height: 400px; } .inst-phone { width: 208px; height: 390px; } .inst-bubble { font-size: .78rem; padding: 8px 11px; } .inst-bubble.b1 { left: -6px; } .inst-bubble.b2 { right: -6px; } }

/* Instalar, versión compacta: pasos en fila y móvil más pequeño */
.inst { gap: 22px; padding: 32px 24px; }
@media (min-width: 920px) { .inst { grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); gap: 24px; padding: 38px 44px; } }
.inst h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.inst-lead { margin-top: 10px; max-width: 54ch; font-size: 1rem; }
.inst-tabs { margin: 18px 0 12px; }
.st-ic { width: 38px; height: 38px; border-radius: 12px; }
.st-ic .ic { width: 20px; height: 20px; }
.inst-steps li { padding: 10px 14px 10px 10px; }
.inst-steps li:not(:last-child)::after { left: 28px; bottom: -14px; }
.inst-steps li > span:last-child { font-size: .93rem; line-height: 1.35; }
@media (min-width: 640px) {
  .inst-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .inst-steps li { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }
  .inst-steps li:not(:last-child)::after { left: auto; right: -12px; top: 32px; bottom: auto; width: 12px; height: 0; border-left: 0; border-top: 2px dashed var(--border-strong); }
}
.inst-perks { margin-top: 14px; font-size: .86rem; }
.inst-art { min-height: 330px; }
.inst-art::before { width: 250px; height: 250px; }
.inst-phone { width: 176px; height: 330px; padding: 9px 9px 8px; border-width: 6px; border-radius: 36px; }
.ip-bar { padding: 1px 8px 0; font-size: .62rem; }
.ip-bar i { width: 50px; height: 14px; }
.ip-grid { gap: 14px 6px; margin-top: 20px; }
.inst-phone .app { width: 32px; height: 32px; border-radius: 10px; font-size: 16px; }
.app.me img { width: 32px; height: 32px; border-radius: 10px; box-shadow: 0 0 0 2.5px #fff, 0 10px 18px -8px rgba(222, 85, 48, .75); }
.app.me em { margin-top: 4px; font-size: .54rem; }
.ip-dock { gap: 6px; padding: 7px 6px; border-radius: 20px; }
.inst-bubble { padding: 8px 12px; border-radius: 14px; font-size: .78rem; }
.inst-bubble.b1 { top: 12%; left: -8px; }
.inst-bubble.b2 { bottom: 12%; right: -8px; }
@media (max-width: 639px) { .inst-art { display: none; } .inst { gap: 0; } }
@media (max-width: 520px) { .inst { padding: 30px 18px; } }
@media (max-width: 420px) { .inst-tabs { flex-wrap: nowrap; } .inst-tabs button span { display: none; } .inst-tabs button { flex: 1 1 auto; min-width: 0; padding: 10px; font-size: .8rem; white-space: nowrap; } }

/* Preguntas */
.faq-grid { display: grid; gap: 34px; }
@media (min-width: 980px) { .faq-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 64px; align-items: start; } .faq-side { position: sticky; top: 104px; } }
.faq-side .sec-head { margin-bottom: 26px; }
.faq-help { display: flex; align-items: flex-start; gap: 16px; max-width: 470px; padding: 22px; border-radius: 26px; color: var(--cream); background: radial-gradient(100% 130% at 0% 0%, rgba(245, 207, 78, .3), transparent 60%), radial-gradient(80% 100% at 100% 100%, rgba(222, 85, 48, .22), transparent 60%), var(--espresso); box-shadow: var(--shadow-md); }
:root[data-theme="dark"] .faq-help { background-color: #0F0A07; border: 1px solid var(--border); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .faq-help { background-color: #0F0A07; border: 1px solid var(--border); } }
.fh-emoji { display: grid; place-items: center; width: 56px; height: 56px; flex: none; border-radius: 18px; background: rgba(255, 255, 255, .1); font-size: 28px; }
.faq-help b { display: block; font-family: var(--font-display); font-size: 1.3rem; letter-spacing: -.02em; }
.faq-help p { margin: 4px 0 16px; color: rgba(251, 247, 241, .78); font-size: .95rem; }
.faq { display: grid; gap: 12px; }
.faq details { border-radius: 24px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-xs); transition: border-color .3s, box-shadow .3s, background .3s; }
.faq details:hover { border-color: var(--border-strong); }
.faq details[open] { border-color: color-mix(in srgb, var(--brand) 60%, transparent); box-shadow: var(--shadow-md); background: linear-gradient(180deg, color-mix(in srgb, var(--brand-wash) 75%, var(--surface)), var(--surface) 75%); }
.faq summary { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 24px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.q-ic { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 15px; background: var(--surface-2); font-size: 22px; transition: transform .4s var(--ease), background .3s; }
.faq details[open] .q-ic { background: var(--brand); transform: rotate(-8deg) scale(1.06); }
.q { flex: 1; min-width: 0; font-size: 1.04rem; font-weight: 700; line-height: 1.35; }
.q-tg { position: relative; width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--surface-2); color: var(--text); transition: background .3s, color .3s, transform .4s var(--ease); }
.q-tg::before, .q-tg::after { content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: currentColor; transition: transform .4s var(--ease); }
.q-tg::after { transform: rotate(90deg); }
.faq details[open] .q-tg { background: var(--espresso); color: var(--cream); transform: rotate(180deg); }
.faq details[open] .q-tg::after { transform: rotate(0deg); }
:root[data-theme="dark"] .faq details[open] .q-tg { background: var(--brand); color: #2A1A12; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .faq details[open] .q-tg { background: var(--brand); color: #2A1A12; } }
.faq .a { padding: 0 24px 22px 76px; }
.faq .a p { color: var(--text-soft); }
.faq .a a { color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.faq details[open] .a { animation: faq-in .45s var(--ease); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } }
@media (max-width: 560px) { .faq .a { padding: 0 18px 18px; } .q-ic { width: 40px; height: 40px; font-size: 19px; } .q { font-size: .98rem; } }

/* Llamada final */
.final { padding: 30px 0 90px; }
.final-card { position: relative; overflow: hidden; padding: 70px 28px; border-radius: 40px; text-align: center; color: var(--cream); background: radial-gradient(90% 120% at 50% 0, rgba(245, 207, 78, .28), transparent 60%), radial-gradient(70% 80% at 100% 100%, rgba(222, 85, 48, .3), transparent 60%), var(--espresso); }
:root[data-theme="dark"] .final-card { background-color: #0F0A07; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .final-card { background-color: #0F0A07; } }
.final-card h2 { max-width: 16ch; margin: 0 auto; font-size: clamp(2.2rem, 6vw, 4rem); }
.final-card h2 em { color: var(--brand); }
.final-card p { max-width: 36em; margin: 20px auto 0; color: rgba(251, 247, 241, .78); font-size: 1.08rem; }
.final-card .actions { justify-content: center; }
.final-plates { position: absolute; inset: 0; pointer-events: none; }
.fp { position: absolute; width: 150px; height: 150px; padding: 6px; border-radius: 50%; background: radial-gradient(circle, #FFFDF8 64%, #EADFCB 66%, #FFFCF5 70%); box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .6); animation: bob 8s ease-in-out infinite; opacity: .95; }
.fp img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.f-a { left: -40px; top: -30px; } .f-b { right: -30px; top: 20px; width: 120px; height: 120px; animation-delay: -2s; }
.f-c { left: 6%; bottom: -50px; width: 120px; height: 120px; animation-delay: -4s; } .f-d { right: 4%; bottom: -40px; animation-delay: -6s; }
@media (max-width: 760px) { .fp { width: 96px !important; height: 96px !important; opacity: .55; } .final-card { padding: 60px 22px; } }

/* Pie */
.foot { position: relative; isolation: isolate; overflow: hidden; padding: 72px 0 0; border-radius: 40px 40px 0 0; color: #FBF7F1; background: #2E1D14; }
:root[data-theme="dark"] .foot { background: #0F0A07; box-shadow: inset 0 1px 0 var(--border); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .foot { background: #0F0A07; box-shadow: inset 0 1px 0 var(--border); } }
@media (max-width: 640px) { .foot { padding-top: 56px; border-radius: 30px 30px 0 0; } }
.foot-glow { position: absolute; z-index: -1; border-radius: 50%; filter: blur(80px); pointer-events: none; }
.foot-glow.g1 { width: 440px; height: 440px; top: -220px; left: -140px; background: rgba(245, 207, 78, .26); }
.foot-glow.g2 { width: 400px; height: 400px; bottom: -120px; right: -120px; background: rgba(222, 85, 48, .2); }
.foot-top { display: grid; gap: 34px; }
@media (max-width: 639px) { .foot-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 20px; } .foot-brand { grid-column: 1 / -1; } }
@media (min-width: 640px) { .foot-top { grid-template-columns: repeat(3, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }
@media (min-width: 980px) { .foot-top { grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; } .foot-brand { grid-column: auto; } }
.foot .logo { color: #FFF8E6; }
.foot .logo img { width: 40px; height: 40px; border-radius: 13px; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .7); }
.foot-brand p { margin-top: 14px; max-width: 36ch; color: rgba(251, 247, 241, .7); }
.foot-col { display: grid; align-content: start; gap: 11px; }
.foot-col b { margin-bottom: 4px; color: #F5CF4E; font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.foot-col a { justify-self: start; color: rgba(251, 247, 241, .78); font-size: .96rem; font-weight: 600; transition: color .2s, transform .25s var(--ease); }
.foot-col a:hover, .foot-col a[aria-current] { color: #FFF8E6; }
.foot-col a:hover { transform: translateX(3px); }
.foot-col a[aria-current]::before { content: "• "; color: #F5CF4E; }
.foot-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-top: 56px; padding: 22px 0; border-top: 1px solid rgba(251, 247, 241, .12); color: rgba(251, 247, 241, .6); font-size: .88rem; }
.copy { color: inherit; }
.foot-up { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: #FFF8E6; font-weight: 700; transition: background .2s, color .2s, transform .25s var(--ease); }
.foot-up .ic { width: 16px; height: 16px; }
.foot-up:hover { background: #F5CF4E; color: #2A1A12; transform: translateY(-2px); }
@media (max-width: 640px) { .foot-bottom { flex-direction: column; align-items: flex-start; } }
.foot-word { margin-bottom: -.2em; padding: 0 var(--gutter); text-align: center; font-family: var(--font-display); font-size: clamp(5rem, 25vw, 19rem); font-weight: 700; line-height: .85; letter-spacing: -.06em; color: transparent; background: linear-gradient(180deg, rgba(245, 207, 78, .34), rgba(245, 207, 78, 0) 80%); -webkit-background-clip: text; background-clip: text; -webkit-user-select: none; user-select: none; pointer-events: none; }

/* Redes sociales del pie */
.social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); color: rgba(251, 247, 241, .86); transition: transform .25s var(--ease), color .2s, background .2s, border-color .2s, box-shadow .2s; }
.social a .ic { width: 20px; height: 20px; }
.social a:hover { transform: translateY(-3px) rotate(-4deg); color: #2A1A12; background: #F5CF4E; border-color: transparent; box-shadow: 0 10px 22px -10px rgba(245, 207, 78, .8); }

/* ---------- Detalles con cariño ---------- */
/* Notas escritas a mano (solo con pantalla ancha, donde hay sitio) */
.hand-note { position: absolute; z-index: 3; display: none; font-family: var(--font-hand); font-size: 1.5rem; font-weight: 600; line-height: 1; color: var(--accent); white-space: nowrap; pointer-events: none; }
.hand-note svg { position: absolute; width: 46px; height: 32px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 980px) { .hand-note { display: block; } }
.hero .actions { position: relative; }
@media (min-width: 980px) { .hero .proof { margin-top: 56px; } }
.hn-hero { top: calc(100% + 10px); left: 64px; transform: rotate(-3deg); }
.hn-hero svg { left: -50px; top: -24px; transform: scaleY(-1); }
.kitchen-demo { position: relative; }
.hn-kd { top: -42px; right: 34px; transform: rotate(4deg); transition: opacity .4s; }
.hn-kd svg { left: -40px; top: 16px; transform: scaleX(-1) rotate(-10deg); }
.kd-touched .hn-kd { opacity: 0; }
.kitchen-demo:not(.kd-touched) [data-app="oven"] { animation: chip-pulse 2s ease-in-out infinite; }
@keyframes chip-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(222, 85, 48, .5); } 60% { box-shadow: 0 0 0 9px rgba(222, 85, 48, 0); } }
.hn-final { bottom: 118px; left: 11%; color: var(--brand); font-size: 1.9rem; transform: rotate(-8deg); }

/* Portada */
.news b { position: relative; overflow: hidden; }
.news b::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); background-size: 250% 100%; animation: news-shine 4s ease-in-out 1.5s infinite; }
@keyframes news-shine { 0%, 55% { background-position: 130% 0; } 100% { background-position: -130% 0; } }

/* Recetas en movimiento: cocinas y «Al menú» */
.reel-foot { display: flex; flex-direction: column; align-items: center; gap: 18px; margin-top: 36px; text-align: center; }
.cuisines { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.cuisines span { padding: 7px 13px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); color: rgba(251, 247, 241, .9); font-size: .86rem; font-weight: 700; transition: background .2s, transform .25s var(--ease); }
.cuisines span:hover { background: rgba(245, 207, 78, .18); transform: translateY(-2px); }
.cuisines .more { background: none; border-style: dashed; color: var(--brand); }
.dish::before { content: "＋ Al menú"; position: absolute; z-index: 2; top: 12px; right: 12px; padding: 6px 11px; border-radius: 999px; background: var(--brand); color: #2A1A12; font-size: .76rem; font-weight: 800; box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .6); opacity: 0; transform: translateY(-6px) scale(.9); transition: opacity .3s, transform .35s var(--ease); }
.dish:hover::before { opacity: 1; transform: none; }

/* A tu medida: cada razón en su tarjetita */
.ticks { gap: 10px; }
.ticks li { align-items: center; padding: 14px 16px; border-radius: 20px; border: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 72%, transparent); transition: transform .3s var(--ease), background .3s, box-shadow .3s; }
.ticks li:hover { transform: translateX(6px); background: var(--surface); box-shadow: var(--shadow); }
.ticks li > span { box-shadow: none; transition: transform .35s var(--ease); }
.ticks li:hover > span { transform: rotate(-8deg) scale(1.08); }
.ticks li:nth-child(1) > span { background: var(--peach); } .ticks li:nth-child(2) > span { background: var(--sky); } .ticks li:nth-child(3) > span { background: var(--brand-wash); }
.ticks li:nth-child(4) > span { background: var(--sage); } .ticks li:nth-child(5) > span { background: var(--lilac); }

/* Recorrido: lo que es Premium y la guía de capítulos */
.ch-list li.pro { display: inline-flex; align-items: center; gap: 5px; border-color: color-mix(in srgb, #F5CF4E 60%, transparent); background: linear-gradient(135deg, color-mix(in srgb, #F5CF4E 24%, var(--surface)), var(--surface-2)); }
.ch-list li.pro .ic { width: 14px; height: 14px; color: #B5810E; stroke-width: 2.4; }
:root[data-theme="dark"] .ch-list li.pro .ic { color: #F5CF4E; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ch-list li.pro .ic { color: #F5CF4E; } }
.chapter[data-chapter="menu"] { --c: #F5CF4E; } .chapter[data-chapter="shop"] { --c: #9CCB86; } .chapter[data-chapter="fridge"] { --c: #8CC0E0; } .chapter[data-chapter="cook"] { --c: #F09A72; }
@media (min-width: 980px) {
  .story-steps { position: relative; padding-left: 60px; counter-reset: ch; }
  .story-steps::before { content: ""; position: absolute; left: 17px; top: 10vh; bottom: 10vh; width: 2px; border-radius: 2px; background: linear-gradient(180deg, transparent, var(--border-strong) 12%, var(--border-strong) 88%, transparent); }
  .chapter { position: relative; counter-increment: ch; }
  .chapter::before { content: counter(ch, decimal-leading-zero); position: absolute; left: -60px; top: 50%; display: grid; place-items: center; width: 36px; height: 36px; margin-top: -18px; border-radius: 50%; border: 2px solid var(--border-strong); background: var(--bg); color: var(--muted); font-size: .72rem; font-weight: 800; transition: background .4s, border-color .4s, color .4s, transform .4s var(--ease), box-shadow .4s; }
  .chapter.on::before { border-color: var(--c); background: var(--c); color: #2A1A12; transform: scale(1.15); box-shadow: 0 0 0 7px color-mix(in srgb, var(--c) 25%, transparent); }
  .chapter .ch-ic { transition: transform .5s var(--ease); }
  .chapter.on .ch-ic { transform: rotate(-6deg) scale(1.08); }
}

/* Llamada final: destellos y garantías */
.final-spark { position: absolute; z-index: 1; color: var(--brand); font-size: 22px; line-height: 1; pointer-events: none; animation: final-twinkle 3s ease-in-out infinite; }
.final-spark.s1 { top: 16%; left: 22%; } .final-spark.s2 { top: 26%; right: 20%; font-size: 16px; animation-delay: 1s; } .final-spark.s3 { bottom: 24%; right: 30%; font-size: 18px; animation-delay: 2s; }
@media (max-width: 760px) { .final-spark.s1 { top: 6%; left: 9%; } .final-spark.s2 { top: 8%; right: 11%; } .final-spark.s3 { display: none; } }
@keyframes final-twinkle { 0%, 100% { opacity: .25; transform: scale(.7) rotate(0deg); } 50% { opacity: 1; transform: scale(1.15) rotate(25deg); } }
.final-proof { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin: 22px 0 0; padding: 0; list-style: none; color: rgba(251, 247, 241, .82); font-size: .92rem; font-weight: 700; }
.final-proof li { display: inline-flex; align-items: center; gap: 6px; }
.final-proof .ic { width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: rgba(169, 219, 151, .18); color: #A9DB97; stroke-width: 3; }

/* Botón claro / oscuro de la cabecera */
.theme-btn { position: relative; display: grid; place-items: center; width: 40px; height: 40px; flex: none; padding: 0; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text); box-shadow: var(--shadow-xs); cursor: pointer; transition: transform .35s var(--ease), border-color .2s, box-shadow .2s; }
.theme-btn:hover { transform: rotate(-14deg); border-color: var(--border-strong); box-shadow: var(--shadow); }
.theme-btn:active { transform: scale(.92); }
.theme-btn .ic { grid-area: 1 / 1; width: 19px; height: 19px; transition: transform .55s var(--ease), opacity .3s; }
.theme-btn .i-sun { color: var(--brand); opacity: 0; transform: rotate(-90deg) scale(.4); }
:root[data-theme="dark"] .theme-btn .i-sun { opacity: 1; transform: none; }
:root[data-theme="dark"] .theme-btn .i-moon { opacity: 0; transform: rotate(90deg) scale(.4); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .i-sun { opacity: 1; transform: none; }
  :root:not([data-theme="light"]) .theme-btn .i-moon { opacity: 0; transform: rotate(90deg) scale(.4); }
}
.theme-anim, .theme-anim *, .theme-anim *::before, .theme-anim *::after { transition: background-color .45s ease, color .45s ease, border-color .45s ease, fill .45s ease !important; }

/* Portada: texto con subrayado de rotulador y barra de datos */
.news { border: 1px solid color-mix(in srgb, var(--brand) 45%, var(--border)); }
.lede mark { padding: 0 .08em; border-radius: .18em; background: linear-gradient(180deg, transparent 60%, color-mix(in srgb, var(--brand) 48%, transparent) 60%); color: var(--text); font-weight: 600; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 580px; margin: 34px 0 0; padding: 8px; gap: 0; list-style: none; border-radius: 22px; border: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 75%, transparent); box-shadow: var(--shadow); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-weight: 400; }
@media (min-width: 980px) { .hero .proof { margin-top: 62px; } }
.proof li { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px 12px; }
.proof li + li { border-left: 1px solid var(--border); }
.pf-ic { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 12px; background: var(--surface-2); font-size: 18px; transition: transform .35s var(--ease); }
.proof li:hover .pf-ic { transform: rotate(-8deg) scale(1.08); }
.proof b { display: block; color: var(--text); font-size: .93rem; font-weight: 700; line-height: 1.2; }
.proof small { display: block; color: var(--muted); font-size: .74rem; line-height: 1.3; }
@media (max-width: 560px) {
  .proof { padding: 6px; }
  .proof li { flex-direction: column; justify-content: flex-start; gap: 6px; padding: 8px 4px; text-align: center; }
  .pf-ic { width: 34px; height: 34px; font-size: 16px; }
  .proof b { font-size: .84rem; }
  .proof small { font-size: .7rem; }
}

/* Recetario: título con fotos en línea y dietas */
.reel-head { margin-bottom: 36px; text-align: center; }
.reel-head .eyebrow { margin-bottom: 12px; }
.reel-title { max-width: 24ch; margin: 0 auto; font-size: clamp(1.9rem, 4.6vw, 3.3rem); line-height: 1.14; }
.reel-title .big { background: linear-gradient(120deg, #FFE38A, #F5CF4E 45%, #F0A23B); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.pics { display: inline-flex; margin: 0 .12em; vertical-align: -.12em; }
.pics img { width: 1.08em; height: 1.08em; border-radius: 50%; border: .08em solid #FBF7F1; object-fit: cover; box-shadow: 0 8px 16px -8px rgba(0, 0, 0, .7); transition: transform .4s var(--ease), margin .4s var(--ease); }
.pics img + img { margin-left: -.32em; }
.pics img:nth-child(1) { transform: rotate(-8deg); } .pics img:nth-child(3) { transform: rotate(8deg); }
.reel-head:hover .pics img { transform: none; } .reel-head:hover .pics img + img { margin-left: -.12em; }
.globe { display: inline-block; font-size: .85em; animation: globe-wobble 6s ease-in-out infinite; }
@keyframes globe-wobble { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-12deg); } 40% { transform: rotate(10deg); } 60% { transform: rotate(0); } }
.reel-diets { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 20px; }
.reel-diets span { padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .06); color: rgba(251, 247, 241, .84); font-size: .84rem; font-weight: 700; }
@media (max-width: 520px) { .reel-diets span { font-size: .78rem; padding: 5px 10px; } }

/* ---------- Textos legales ---------- */
.lg-page .top { background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px); }
.lg-hero { position: relative; overflow: hidden; padding: 34px 0 40px; background: radial-gradient(60% 120% at 100% 0, color-mix(in srgb, var(--brand) 28%, transparent), transparent 60%), radial-gradient(50% 100% at 0 100%, color-mix(in srgb, #F6B494 22%, transparent), transparent 60%), var(--bg-deep); border-bottom: 1px solid var(--border); }
.lg-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 22px; font-size: .86rem; font-weight: 600; color: var(--muted); }
.lg-crumbs a:hover { color: var(--text); }
.lg-crumbs [aria-current] { color: var(--text-soft); }
.lg-hero-row { display: flex; align-items: center; gap: 18px; }
.lg-emoji { display: grid; place-items: center; width: 74px; height: 74px; flex: none; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow-md); font-size: 2.2rem; transform: rotate(-6deg); }
.lg-hero h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); }
.lg-lede { margin-top: 8px; font-size: 1.08rem; color: var(--text-soft); }
.lg-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 24px; }
.lg-meta span, .lg-print { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font: inherit; font-size: .84rem; font-weight: 650; color: var(--text-soft); }
.lg-print { cursor: pointer; transition: border-color .2s, color .2s; }
.lg-print:hover { border-color: var(--border-strong); color: var(--text); }
@media (max-width: 600px) { .lg-hero-row { align-items: flex-start; } .lg-emoji { width: 56px; height: 56px; border-radius: 18px; font-size: 1.7rem; } }

.lg-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; padding-top: 26px; padding-bottom: 80px; }
.lg-grid > * { min-width: 0; }
@media (min-width: 980px) { .lg-grid { grid-template-columns: 300px minmax(0, 1fr); gap: 48px; padding-top: 40px; } .lg-side { position: sticky; top: 92px; align-self: start; max-height: calc(100vh - 110px); overflow: auto; scrollbar-width: none; } }

/* Los cuatro textos */
.lg-docs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter) 6px; }
.lg-docs::-webkit-scrollbar { display: none; }
@media (max-width: 979px) { .lg-docs { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 30px), transparent); mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 30px), transparent); } }
.lg-docs a { display: flex; align-items: center; gap: 10px; flex: none; padding: 8px 14px 8px 8px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); transition: border-color .2s, box-shadow .2s, transform .2s var(--ease); }
.lg-docs a:hover { border-color: var(--border-strong); }
.lg-docs-e { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 11px; background: var(--surface-2); font-size: 1.05rem; }
.lg-docs b { display: block; font-size: .9rem; line-height: 1.2; white-space: nowrap; }
.lg-docs small { display: none; }
.lg-docs a[aria-current] { background: var(--espresso); border-color: var(--espresso); color: var(--cream); box-shadow: var(--shadow-md); }
.lg-docs a[aria-current] .lg-docs-e { background: var(--brand); }
:root[data-theme="dark"] .lg-docs a[aria-current] { background: var(--cream); border-color: var(--cream); color: var(--espresso); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lg-docs a[aria-current] { background: var(--cream); border-color: var(--cream); color: var(--espresso); } }
@media (min-width: 980px) {
  .lg-docs { flex-direction: column; overflow: visible; margin: 0; padding: 0; }
  .lg-docs a { align-items: flex-start; padding: 12px; border-radius: 20px; }
  .lg-docs a:hover { transform: translateX(3px); }
  .lg-docs b { white-space: normal; font-size: .95rem; }
  .lg-docs small { display: block; margin-top: 2px; font-size: .8rem; line-height: 1.35; color: var(--muted); }
  .lg-docs a[aria-current] small { color: color-mix(in srgb, currentColor 70%, transparent); }
}

/* En esta página */
.lg-toc { margin-top: 12px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); }
.lg-toc summary { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); cursor: pointer; list-style: none; }
.lg-toc summary::-webkit-details-marker { display: none; }
.lg-toc summary::after { content: "+"; font-size: 1.2rem; transition: transform .3s var(--ease); }
.lg-toc[open] summary::after { transform: rotate(45deg); }
.lg-toc ol { margin: 0; padding: 0 8px 10px; list-style: none; display: grid; gap: 1px; }
.lg-toc a { display: flex; gap: 10px; padding: 7px 10px; border-radius: 12px; font-size: .9rem; font-weight: 600; color: var(--text-soft); line-height: 1.35; transition: background .2s, color .2s; }
.lg-toc a span { flex: none; font-variant-numeric: tabular-nums; font-weight: 800; color: var(--muted); }
.lg-toc a:hover { background: var(--surface-2); color: var(--text); }
.lg-toc a.on { background: var(--brand-wash); color: var(--text); }
.lg-toc a.on span { color: var(--brand-deep); }
@media (min-width: 980px) { .lg-toc summary { cursor: default; pointer-events: none; } .lg-toc summary::after { display: none; } }

/* Documento */
.lg-doc { min-width: 0; }
.lg-tldr { padding: 22px; margin-bottom: 30px; border-radius: 28px; background: var(--brand-wash); border: 1px dashed color-mix(in srgb, var(--brand-deep) 35%, transparent); }
.lg-tldr-t { display: inline-block; margin-bottom: 14px; padding: 3px 12px; border-radius: 999px; background: var(--accent); color: #fff; font-family: var(--font-hand); font-size: 1.25rem; font-weight: 600; transform: rotate(-2deg); }
.lg-tldr-grid { display: grid; gap: 10px; }
@media (min-width: 700px) { .lg-tldr-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.lg-tldr-grid > div { padding: 16px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-xs); }
.lg-tldr-grid span { display: block; font-size: 1.6rem; line-height: 1; margin-bottom: 10px; }
@media (max-width: 699px) { .lg-tldr-grid > div { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; padding: 14px; } .lg-tldr-grid span { grid-row: span 2; margin: 2px 0 0; } .lg-tldr-grid p { margin-top: 2px; } }
.lg-tldr-grid b { display: block; font-family: var(--font-display); font-size: 1.08rem; letter-spacing: -.01em; }
.lg-tldr-grid p { margin-top: 4px; font-size: .9rem; color: var(--text-soft); line-height: 1.45; }

.lg-body { padding: 8px 0 0; }
.lg-body > p:first-child { font-size: 1.1rem; color: var(--text); }
.lg-body h2 { display: flex; align-items: baseline; gap: 12px; margin: 46px 0 14px; padding-top: 22px; border-top: 1px solid var(--border); font-size: clamp(1.4rem, 3vw, 1.75rem); scroll-margin-top: 96px; }
.lg-body h2:first-child, .lg-body > p:first-child + h2 { margin-top: 26px; }
.lg-n { flex: none; display: grid; place-items: center; min-width: 38px; height: 30px; padding: 0 8px; border-radius: 10px; background: var(--espresso); color: var(--brand); font-family: var(--font); font-size: .8rem; font-weight: 800; letter-spacing: .04em; transform: translateY(-3px); }
:root[data-theme="dark"] .lg-n { background: var(--brand); color: #2A1A12; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lg-n { background: var(--brand); color: #2A1A12; } }
.lg-body h3 { margin: 22px 0 6px; font-family: var(--font); font-size: 1.04rem; letter-spacing: 0; }
.lg-body p, .lg-body li { font-size: 1.02rem; line-height: 1.75; color: var(--text-soft); }
.lg-body p + p { margin-top: 12px; }
.lg-body b { color: var(--text); }
.lg-body a { color: var(--brand-deep); font-weight: 650; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.lg-body ul { margin: 12px 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.lg-body ul li { position: relative; padding-left: 26px; }
.lg-body ul li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 9px; height: 9px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent); }
.lg-body code { padding: 2px 7px; border-radius: 7px; background: var(--surface-3); font-size: .86em; color: var(--text); }
.lg-body .box { margin: 16px 0; padding: 18px 20px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-xs); border-left: 5px solid var(--brand); }
.lg-body .box p { margin: 0; }
.lg-body table { width: 100%; margin: 16px 0 20px; border-collapse: separate; border-spacing: 0; overflow: hidden; border-radius: 20px; border: 1px solid var(--border); background: var(--surface); font-size: .94rem; }
.lg-body th, .lg-body td { padding: 13px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); color: var(--text-soft); line-height: 1.55; }
.lg-body tr:last-child td { border-bottom: 0; }
.lg-body th { background: var(--surface-2); color: var(--text); font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.lg-body tr:nth-child(even) td { background: color-mix(in srgb, var(--surface-2) 45%, var(--surface)); }
@media (max-width: 700px) {
  .lg-body table, .lg-body tbody, .lg-body tr, .lg-body td { display: block; }
  .lg-body table { border: 0; background: none; overflow: visible; }
  .lg-body tr:first-child { display: none; }
  .lg-body tr { margin-bottom: 10px; padding: 14px 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); }
  .lg-body td { padding: 2px 0; border: 0; background: none !important; }
  .lg-body td:first-child { margin-bottom: 4px; font-weight: 700; color: var(--text); }
  .lg-body td:last-child:not(:first-child) { margin-top: 6px; font-size: .86rem; color: var(--muted); }
}
.lg-help { display: flex; gap: 14px; align-items: center; margin-top: 46px; padding: 20px 22px; border-radius: 24px; background: var(--espresso); color: var(--cream); }
.lg-help > span { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 16px; background: rgba(255, 255, 255, .1); font-size: 1.4rem; }
.lg-help b { font-family: var(--font-display); font-size: 1.15rem; }
.lg-help p { margin-top: 2px; color: rgba(251, 247, 241, .78); }
.lg-help a { color: var(--brand); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
:root[data-theme="dark"] .lg-help { background: #0F0A07; border: 1px solid var(--border); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lg-help { background: #0F0A07; border: 1px solid var(--border); } }

@media print {
  .top, .lg-side, .lg-meta, .lg-help, footer, .lg-crumbs { display: none !important; }
  .lg-hero { background: none; border: 0; padding: 0 0 10px; }
  .lg-grid { display: block; padding: 0; }
  .lg-tldr { break-inside: avoid; }
  .lg-body h2 { break-after: avoid; }
  .lg-body table, .lg-body tr { break-inside: avoid; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reel-track { animation: none; }
  .scribble path { stroke-dashoffset: 0; }
}

/* Logotipo dibujado «epulora»: el trazo toma el color del texto y la «o» (el plato) va en tomate, o en mantequilla en oscuro */
.wordmark { display: block; height: 1.2em; width: auto; flex: none; overflow: visible; }
.wordmark .wm-o { stroke: var(--accent); }
:root[data-theme="dark"] .wordmark .wm-o { stroke: var(--brand); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .wordmark .wm-o { stroke: var(--brand); } }
