/* Generado por tools/build-recetas.mjs a partir de src/receta-page.css y src/shared.css */
/* =============================================================
   Cupeco · estilos
   1. Tokens · 2. Base · 3. Utilidades · 4. Componentes
   5. Portada · 6. Recetario · 7. Receta · 8. Modo cocina
   9. ¿Qué cocino? y Mi cocina · 10. Efectos · 11. Impresión
   ============================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  --display: "Fraunces", Georgia, serif; --serif: "Source Serif 4", Georgia, serif; --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1); --ease-soft: cubic-bezier(.25, .46, .45, .94); --ease-bounce: cubic-bezier(.34, 1.56, .64, 1);
  --wrap: 1240px; --gut: clamp(18px, 4vw, 44px); --r: 14px; --mast-h: 60px; --tab-h: 62px;
}
:root, [data-theme="dark"] {
  --bg: #0d0b08; --bg-2: #1e1913; --paper: #171310;
  --ink: #f2e9d8; --ink-soft: #d8cab2; --ink-mute: #b8a888;
  --accent: #d9a441; --accent-2: #e8b85a; --on-accent: #1d1206;
  --herb: #9bc47a; --herb-bg: #1f2a18;
  --line: rgba(242, 233, 216, .13); --line-2: rgba(242, 233, 216, .3); --rule: rgba(242, 233, 216, .55);
  --band: #14100a; --on-band: #f2e9d8; --on-band-mute: #b8a888; --band-accent: #d9a441;
  --shadow: 0 24px 50px -24px rgba(0, 0, 0, .8);
}
[data-theme="pastel"] {
  --bg: #fdf3ec; --bg-2: #f8e6ee; --paper: #fffaf6;
  --ink: #433a32; --ink-soft: #5e5248; --ink-mute: #82705f;
  --accent: #b9604d; --accent-2: #9f4d3c; --on-accent: #fff8f2;
  --herb: #4f8a5c; --herb-bg: #d9f1e4;
  --line: rgba(67, 58, 50, .13); --line-2: rgba(67, 58, 50, .28); --rule: #433a32;
  --band: #6b2420; --on-band: #fff4e2; --on-band-mute: #f0cfc0; --band-accent: #ffc9a8;
  --shadow: 0 22px 44px -26px rgba(150, 110, 70, .45);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--mast-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  overflow-x: clip; background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--serif); font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px));
  transition: background-color .5s var(--ease-soft), color .5s var(--ease-soft);
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; line-height: 1.08; letter-spacing: -.015em; text-wrap: balance; }
em { font-style: italic; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--accent); color: var(--on-accent); }
[hidden] { display: none !important; }

/* ---------- 3. Utilidades ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: var(--bg); padding: 10px 16px; font: 600 .9rem var(--sans); border-radius: 4px; transition: top .2s; }
.skip:focus { top: 12px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.kicker { font: 600 .74rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.fine { font: 400 .84rem/1.5 var(--sans); color: var(--ink-mute); }
.lbl { font: 600 .78rem/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); }
.note { font: 400 .92rem/1.5 var(--sans); background: var(--bg-2); border-left: 3px solid var(--accent); padding: 10px 14px; border-radius: 0 4px 4px 0; margin-block: 12px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.sec { padding-block: clamp(44px, 7vw, 92px); }
.sec-tight { padding-block: 8px clamp(44px, 7vw, 92px); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 28px; flex-wrap: wrap; border-top: 1px solid var(--rule); padding-top: 18px; margin-bottom: clamp(22px, 3vw, 36px); }
.sec-head h2 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); margin-top: 8px; }
.ul, .linklike { font: 600 .92rem var(--sans); color: var(--ink); background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 3px; transition: background-size .45s var(--ease-out), color .25s; }
.ul:hover, .linklike:hover { background-size: 0 1px; background-position: 100% 100%; color: var(--accent); }
.go { display: inline-flex; align-items: center; gap: .5em; font: 600 .92rem var(--sans); }
.go .i { transition: transform .45s var(--ease-out); }
a:hover .go .i { transform: translateX(6px); }

/* ---------- 4. Componentes ---------- */
/* Cabecera */
.mast { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); transition: box-shadow .3s, background-color .5s var(--ease-soft); }
@supports (backdrop-filter: blur(10px)) { .mast { background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); } }
.mast.is-stuck { box-shadow: 0 10px 30px -22px rgba(0, 0, 0, .45); }
.mast-in { display: flex; align-items: center; gap: 20px; height: var(--mast-h); }
.brand { display: flex; align-items: baseline; gap: 12px; margin-right: auto; }
.brand-name { font: italic 600 1.75rem/1 var(--display); letter-spacing: -.03em; }
.brand-tag { display: none; font: 600 .66rem var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-mute); }
.nav { display: none; gap: 28px; }
.nav a { position: relative; font: 600 .92rem var(--sans); padding-block: 6px; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform .45s var(--ease-out); }
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); }
.mast-tools { display: flex; gap: 2px; }
.tool { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; transition: background-color .25s, transform .3s var(--ease-out); }
.tool:hover { background: var(--bg-2); }
.tool:active { transform: scale(.92); }
.tool .i { width: 21px; height: 21px; }
.badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: var(--on-accent); font: 700 .68rem/1 var(--sans); }
.tool .badge { position: absolute; top: 4px; right: 2px; }
.t-sun, [data-theme="dark"] .t-moon { display: none; }
[data-theme="dark"] .t-sun { display: block; }
/* Barra inferior (móvil) */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--paper); border-top: 1px solid var(--line-2); padding-bottom: env(safe-area-inset-bottom, 0px); }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: var(--tab-h); font: 600 .68rem var(--sans); color: var(--ink-mute); transition: color .25s; }
.tabbar a .i { width: 22px; height: 22px; transition: transform .35s var(--ease-bounce); }
.tabbar a[aria-current] { color: var(--accent); }
.tabbar a[aria-current] .i { transform: translateY(-2px); }
.tabbar a:active .i { transform: scale(.88); }
/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 46px; padding: .6em 1.2em; border: 1px solid var(--ink); border-radius: 4px; font: 600 .93rem/1.1 var(--sans); color: var(--ink); background: transparent; transition: background-color .3s var(--ease-out), color .3s var(--ease-out), border-color .3s, transform .3s var(--ease-out); }
.btn:hover { background: var(--ink); color: var(--bg); }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); color: var(--on-accent); transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn.icon { width: 46px; padding: 0; }
.btn[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.btn[data-fav][aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn[data-fav][aria-pressed="true"] .i { fill: currentColor; }
.btn:disabled { opacity: .4; pointer-events: none; }
.pill { display: inline-flex; align-items: center; gap: .5em; min-height: 40px; padding: .4em 1em; border: 1px solid var(--line-2); border-radius: 999px; font: 600 .86rem var(--sans); background: var(--paper); transition: border-color .25s, background-color .25s, color .25s, transform .3s var(--ease-out); }
.pill:hover { border-color: var(--accent); color: var(--accent); }
.pill:active { transform: scale(.96); }
/* Chips y pestañas */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; overflow-y: visible; scrollbar-width: none; margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); padding-block: 2px; }
.chips.scroll::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 40px; padding: .35em 1em; border: 1px solid var(--line-2); border-radius: 999px; font: 500 .88rem var(--sans); color: var(--ink-soft); background: transparent; transition: background-color .25s, color .25s, border-color .25s, transform .3s var(--ease-out); }
.chip i { font-style: normal; opacity: .55; margin-left: .25em; font-size: .82em; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip:active { transform: scale(.95); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.tabs { display: flex; gap: 4px 26px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.tabs button { position: relative; padding: 12px 0; font: 600 .95rem var(--sans); color: var(--ink-mute); transition: color .25s; display: inline-flex; align-items: center; gap: 8px; }
.tabs button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform .45s var(--ease-out); }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--ink); }
.tabs button[aria-selected="true"]::after { transform: scaleX(1); }
/* Buscador y campos */
.search { display: flex; align-items: center; gap: 10px; background: var(--paper); border: 1px solid var(--ink); border-radius: 4px; padding: 5px 5px 5px 14px; transition: box-shadow .3s; }
.search:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.search > .i { color: var(--ink-mute); width: 20px; height: 20px; }
.search input { flex: 1; min-width: 0; height: 44px; border: 0; background: transparent; outline: 0; font: 400 1.02rem var(--serif); }
.search input::placeholder { color: var(--ink-mute); }
.search button { height: 44px; padding-inline: 1.2em; background: var(--ink); color: var(--bg); border-radius: 3px; font: 600 .9rem var(--sans); transition: background-color .3s; }
.search button:hover { background: var(--accent); color: var(--on-accent); }
.field, .sel select { height: 46px; padding-inline: 14px; border: 1px solid var(--line-2); border-radius: 4px; background: var(--paper); font: 400 1rem var(--sans); width: 100%; }
.field:focus, .sel select:focus { outline: 0; border-color: var(--ink); }
.sel { display: inline-flex; align-items: center; gap: 10px; font: 600 .8rem var(--sans); color: var(--ink-mute); }
.sel select { width: auto; height: 40px; font-size: .9rem; color: var(--ink); }
/* Marcos de imagen */
.frame { position: relative; overflow: hidden; border-radius: var(--r); background: var(--bg-2); }
.frame img { position: absolute; left: 0; top: -6%; width: 100%; height: 112%; object-fit: cover; transform: translate3d(0, var(--py, 0px), 0); }
/* Tarjeta de receta */
.grid { display: grid; gap: 26px 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.card-media { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r); background: var(--bg-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out), filter .6s; }
.card:hover .card-media img { transform: scale(1.06); }
.card-body { padding-top: 14px; display: flex; flex-direction: column; gap: 7px; }
.card-title { font-size: 1.08rem; line-height: 1.18; }
.card-title a { background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease-out), color .3s; }
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card:hover .card-title a { background-size: 100% 1px; color: var(--accent); }
.card-desc { display: none; font-size: .95rem; line-height: 1.45; color: var(--ink-soft); -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font: 500 .82rem var(--sans); color: var(--ink-mute); }
.card-meta span { display: inline-flex; align-items: center; gap: 5px; }
.card-meta span + span::before { content: ""; width: 3px; height: 3px; border-radius: 50%; background: currentColor; margin-right: 9px; opacity: .6; }
.card-rank { font: italic 300 2.6rem/1 var(--display); color: var(--accent); margin-bottom: -2px; }
.heart { position: absolute; z-index: 2; top: 8px; right: 8px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--paper) 92%, transparent); color: var(--ink); box-shadow: 0 2px 10px rgba(0, 0, 0, .12); transition: transform .35s var(--ease-bounce), background-color .25s, color .25s; }
.heart:hover { transform: scale(1.1); }
.heart .i { width: 19px; height: 19px; }
.heart[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.heart[aria-pressed="true"] .i { fill: currentColor; }
.heart.pop { animation: heartPop .5s var(--ease-bounce); }
/* Pie */
.foot { background: var(--band); color: var(--on-band); margin-top: clamp(40px, 6vw, 80px); }
.foot-grid { display: grid; gap: 32px; padding-block: clamp(40px, 6vw, 72px) 32px; }
.foot .brand-name { font-size: 2.4rem; margin-bottom: 10px; }
.foot p { color: var(--on-band-mute); max-width: 36ch; }
.foot h2 { font: 600 .74rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--band-accent); margin-bottom: 14px; }
.foot nav { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.foot nav a, .foot .linklike { font: 500 .98rem var(--sans); color: var(--on-band); background-size: 0 1px; }
.foot nav a:hover, .foot .linklike:hover { color: var(--band-accent); }
.foot .fine { color: var(--on-band-mute); }
.foot-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-block: 18px; border-top: 1px solid rgba(255, 255, 255, .14); font: 500 .8rem var(--sans); color: var(--on-band-mute); }
/* Aviso y diálogos */
.toast { position: fixed; left: 50%; bottom: calc(var(--tab-h) + 18px + env(safe-area-inset-bottom, 0px)); z-index: 150; transform: translate(-50%, 24px); opacity: 0; pointer-events: none; max-width: min(92vw, 460px); background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 6px; font: 600 .9rem/1.35 var(--sans); text-align: center; box-shadow: var(--shadow); transition: opacity .35s, transform .45s var(--ease-out); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
dialog.dlg { margin: auto; width: min(560px, calc(100vw - 28px)); max-height: min(86vh, 760px); padding: 0; border: 1px solid var(--ink); border-radius: var(--r); background: var(--paper); color: var(--ink); box-shadow: var(--shadow); overflow: hidden; }
dialog.dlg[open] { display: flex; flex-direction: column; animation: dlgIn .4s var(--ease-out); }
dialog.dlg::backdrop { background: rgba(20, 14, 9, .55); animation: fadeIn .3s; }
.dlg-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.dlg-head h2 { font-size: 1.45rem; }
.dlg-body { padding: 20px; overflow: auto; display: flex; flex-direction: column; gap: 14px; }
.dlg-body .out { text-align: center; padding: 18px; background: var(--bg-2); border-radius: var(--r); }
.dlg-body .out strong { display: block; font: 500 1.9rem/1.2 var(--display); margin-top: 4px; }
.dlg-body dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 16px; font: 400 .9rem var(--sans); }
.dlg-body dt { color: var(--ink-mute); font-size: .8rem; }
.pick-list { display: flex; flex-direction: column; }
.pick-list button { display: flex; align-items: center; gap: 12px; padding: 9px 4px; border-top: 1px solid var(--line); text-align: left; font: 500 .98rem var(--sans); transition: background-color .2s; }
.pick-list button:hover { background: var(--bg-2); }
.pick-list img { width: 52px; height: 40px; object-fit: cover; border-radius: 4px; flex: none; }
.pick-list small { display: block; color: var(--ink-mute); font-size: .78rem; }
.empty { text-align: center; padding: clamp(36px, 6vw, 72px) 20px; border: 1px dashed var(--line-2); border-radius: var(--r); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.empty h2, .empty h3 { font-size: 1.6rem; }
.empty p { color: var(--ink-soft); max-width: 44ch; }

/* ---------- 5. Portada ---------- */
.page-head { padding-block: clamp(32px, 5vw, 64px) clamp(20px, 3vw, 32px); }
.page-head h1 { font-size: clamp(2.3rem, 6vw, 4.6rem); margin-block: 12px 14px; max-width: 16ch; }
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 52ch; }
.hero { padding-top: 14px; padding-bottom: clamp(36px, 6vw, 80px); }
.hero-line { display: flex; justify-content: space-between; gap: 6px 18px; flex-wrap: wrap; padding-block: 9px; border-block: 1px solid var(--rule); font: 600 .7rem var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.hero-line span:nth-child(n+2) { display: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; padding-top: clamp(26px, 4vw, 52px); }
.hero-title { font-size: clamp(2.7rem, 9.4vw, 5.9rem); font-weight: 400; line-height: .97; letter-spacing: -.03em; margin-block: 16px 20px; }
.hero-title em { color: var(--accent); font-weight: 400; }
.hero-lede { font-size: clamp(1.06rem, 1.5vw, 1.22rem); color: var(--ink-soft); max-width: 46ch; margin-bottom: 26px; }
.hero .search { max-width: 520px; }
.hero-links { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 20px; }
.hero-feature { position: relative; display: block; padding-bottom: 46px; }
.hero-feature .frame { aspect-ratio: 4 / 3; }
.hero-cap { position: absolute; left: 14px; right: 14px; bottom: 0; display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; background: var(--paper); border: 1px solid var(--ink); border-radius: var(--r); transition: transform .5s var(--ease-out); }
.hero-cap strong { font: 500 1.55rem/1.1 var(--display); letter-spacing: -.015em; }
.hero-feature:hover .hero-cap { transform: translateY(-6px); }
.hero-feature:hover .frame img { scale: 1.04; }
.hero-feature .frame img { transition: scale 1.2s var(--ease-out); }
/* Tres puertas */
.doors { display: grid; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--line); }
.door { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px 4px 28px; border-top: 1px solid var(--line); overflow: hidden; }
.door:first-child { border-top: 0; }
.door::before { content: ""; position: absolute; inset: 0; background: var(--bg-2); transform: scaleY(0); transform-origin: 50% 100%; transition: transform .6s var(--ease-out); z-index: -1; }
.door:hover::before { transform: scaleY(1); }
.door-n { font: italic 300 2.2rem/1 var(--display); color: var(--accent); }
.door h2 { font-size: clamp(1.55rem, 2.6vw, 2.05rem); }
.door p { color: var(--ink-soft); max-width: 36ch; flex: 1; }
/* Según la hora */
.now { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-items: center; }
.now .frame { aspect-ratio: 4 / 3; }
.now-copy { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.now-copy h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
.now-copy > p:not(.kicker):not(.card-meta) { color: var(--ink-soft); font-size: 1.1rem; max-width: 44ch; }
.now:hover h2 { color: var(--accent); }
.now h2 { transition: color .3s; }
.now .frame img { transition: scale 1.2s var(--ease-out); }
.now:hover .frame img { scale: 1.04; }
/* Carrusel */
.rail-sec .sec-head { margin-bottom: 18px; }
.rail-nav { display: none; gap: 8px; }
.rail-nav button { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--ink); border-radius: 50%; transition: background-color .3s, color .3s, transform .3s var(--ease-out); }
.rail-nav button:hover { background: var(--ink); color: var(--bg); }
.rail-nav button:active { transform: scale(.92); }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 300px); gap: 22px; overflow-x: auto; overflow-y: visible; scroll-snap-type: x mandatory; scroll-padding-inline: max(var(--gut), calc((100vw - var(--wrap)) / 2 + var(--gut))); padding-inline: max(var(--gut), calc((100vw - var(--wrap)) / 2 + var(--gut))); padding-block: 6px 18px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail .card { scroll-snap-align: start; }
.rail .card-title { font-size: 1.32rem; }
/* Secciones (categorías) */
.cats { display: grid; grid-template-columns: 1fr; column-gap: 34px; }
.cat { display: flex; align-items: center; gap: 16px; padding: 14px 6px; border-top: 1px solid var(--line); transition: background-color .35s, padding .45s var(--ease-out); }
.cat:hover { background: var(--bg-2); padding-inline: 14px; }
.cat-img { flex: none; width: 66px; height: 66px; border-radius: 50%; overflow: hidden; background: var(--bg-2); }
.cat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.cat:hover .cat-img img { transform: scale(1.15) rotate(4deg); }
.cat-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cat-tx strong { font: 500 1.35rem/1.15 var(--display); letter-spacing: -.015em; }
.cat-tx span { font: 400 .86rem/1.35 var(--sans); color: var(--ink-mute); }
.cat-n { font: italic 300 1.6rem/1 var(--display); color: var(--accent); }
/* Temporada */
.season-desc { font-size: 1.1rem; color: var(--ink-soft); max-width: 70ch; margin-bottom: 26px; }
.season-desc .ul { margin-left: 8px; white-space: nowrap; }
.season-panel { animation: panelIn .6s var(--ease-out); }
/* Banda «cómo se cocina» */
.how { background: var(--band); color: var(--on-band); }
.how-in { display: grid; gap: 40px; padding-block: clamp(52px, 8vw, 110px); }
.how .kicker { color: var(--band-accent); }
.how-copy h2 { font-size: clamp(2rem, 4.6vw, 3.5rem); margin-block: 14px 22px; max-width: 16ch; }
.how-copy p { color: var(--on-band-mute); font-size: 1.12rem; max-width: 52ch; }
.dropcap::first-letter { float: left; font: italic 400 4.3em/.78 var(--display); padding: .08em .1em 0 0; color: var(--band-accent); }
.how-list { display: flex; flex-direction: column; }
.how-list li { display: grid; grid-template-columns: 3.4rem 1fr; gap: 6px 14px; padding-block: 22px; border-top: 1px solid rgba(255, 255, 255, .18); }
.how-list span { font: italic 300 2rem/1 var(--display); color: var(--band-accent); }
.how-list h3 { font-size: 1.5rem; margin-bottom: 6px; }
.how-list p { color: var(--on-band-mute); }
.cta-sec { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.cta-sec h2 { font-size: clamp(2rem, 5vw, 3.6rem); max-width: 18ch; }
.cta-sec p:not(.kicker) { color: var(--ink-soft); max-width: 50ch; }

/* ---------- 6. Recetario ---------- */
.filters { display: flex; flex-direction: column; gap: 16px; padding-bottom: 26px; }
.search-lg input { height: 50px; font-size: 1.1rem; }
.filter-row { display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; }
.count { font: 500 .95rem var(--sans); color: var(--ink-mute); margin-left: auto; }
.count b { font: italic 400 1.5rem var(--display); color: var(--ink); margin-right: 2px; }
.card.is-out { display: none; }
.card-media { border-radius: var(--r); }
.grid.refresh .card { animation: panelIn .5s var(--ease-out) both; }

/* ---------- 7. Receta ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--accent); transform: scaleX(var(--p, 0)); transform-origin: 0 50%; }
.r-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; padding-block: clamp(18px, 3vw, 40px) clamp(28px, 4vw, 52px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 4px 8px; font: 600 .74rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); }
.crumbs a { color: var(--accent); }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.r-title { font-size: clamp(2.2rem, 6.4vw, 4.2rem); font-weight: 400; letter-spacing: -.025em; line-height: 1; margin-block: 14px 16px; }
.r-lede { font: italic 400 clamp(1.1rem, 1.7vw, 1.3rem)/1.45 var(--serif); color: var(--ink-soft); max-width: 48ch; }
.r-hero .frame { aspect-ratio: 4 / 3; view-transition-name: foto; }
.r-facts { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--rule); }
.r-facts li { display: grid; grid-template-columns: auto 1fr; gap: 0 10px; align-items: center; padding: 13px 4px; border-bottom: 1px solid var(--line); }
.r-facts .i { grid-row: span 2; width: 22px; height: 22px; color: var(--accent); }
.r-facts span { font: 600 .68rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); }
.r-facts strong { font: 600 .98rem/1.25 var(--sans); }
.r-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.r-actions .btn-primary { flex: 1 1 100%; min-height: 52px; font-size: 1rem; }
.r-actions .btn:not(.btn-primary) { flex: 1 1 auto; padding-inline: .9em; }
.r-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding-bottom: clamp(36px, 6vw, 72px); }
[data-theme="pastel"] .r-ings { background: rgba(255, 250, 246, .9); }
.r-ings { background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r); padding: 22px 20px; }
.r-ings h2, .steps-head h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.r-ings h3, .ck-drawer > h3 { font: 600 .74rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 20px 0 6px; }
.portion { display: flex; flex-direction: column; gap: 12px; margin-block: 16px 4px; padding: 14px; background: var(--herb-bg); border-radius: var(--r); }
.portion-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--ink); border-radius: 999px; background: var(--paper); }
.stepper button { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; transition: background-color .2s, transform .25s var(--ease-out); }
.stepper button:hover { background: var(--bg-2); }
.stepper button:active { transform: scale(.88); }
.stepper output { min-width: 2.2ch; text-align: center; font: 500 1.5rem/1 var(--display); }
.stepper output.bump { animation: bump .4s var(--ease-bounce); }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line-2); border-radius: 999px; padding: 3px; background: var(--paper); }
.seg button { min-height: 36px; border-radius: 999px; font: 600 .82rem var(--sans); color: var(--ink-mute); transition: background-color .3s, color .3s; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.ing-list { display: flex; flex-direction: column; }
.ing { border-bottom: 1px solid var(--line); padding-block: 2px; }
.ing label, .done { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; padding-block: 9px; }
.ing input, .done input { position: absolute; opacity: 0; pointer-events: none; }
.box { flex: none; width: 22px; height: 22px; margin-top: 2px; border: 1.5px solid var(--line-2); border-radius: 5px; background: var(--paper) center / 0 no-repeat; transition: background-color .25s, border-color .25s, transform .3s var(--ease-bounce); }
label:hover .box { border-color: var(--herb); }
input:checked + .box { background-color: var(--herb); border-color: var(--herb); background-size: 15px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.500 4.500 4.500L19 7.500'/%3E%3C/svg%3E"); transform: scale(1.08); }
input:focus-visible + .box { outline: 2px solid var(--accent); outline-offset: 2px; }
.ing .tx { line-height: 1.4; transition: color .3s, opacity .3s; }
.ing .q { font: 700 .98rem var(--sans); border-radius: 3px; }
.ing .q.flash { animation: flash .9s var(--ease-out); }
.ing input:checked ~ .tx { color: var(--ink-mute); text-decoration: line-through; text-decoration-thickness: 1px; }
.sub { margin: -4px 0 8px 34px; }
.sub summary { display: inline-block; cursor: pointer; font: 600 .78rem var(--sans); color: var(--ink-mute); text-decoration: underline dotted; text-underline-offset: 3px; list-style: none; }
.sub summary::-webkit-details-marker { display: none; }
.sub summary:hover, .sub[open] summary { color: var(--accent); }
.sub-in { margin-top: 8px; display: flex; flex-direction: column; gap: 10px; animation: panelIn .4s var(--ease-out); }
.sub-op { background: var(--bg-2); border-radius: var(--r); padding: 10px 12px; font: 400 .86rem/1.45 var(--sans); }
.sub-op strong { font-size: .95rem; }
.lvl { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--herb-bg); color: var(--herb); font: 700 .66rem var(--sans); letter-spacing: .04em; text-transform: uppercase; vertical-align: 2px; }
.lvl.emer { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.r-ings .btn-block { margin-block: 18px 12px; }
.steps-head { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; border-top: 1px solid var(--rule); padding-top: 16px; }
.steps-count { font: 600 .82rem var(--sans); color: var(--ink-mute); }
.step { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding-block: 26px; border-bottom: 1px solid var(--line); transition: opacity .4s; }
.step-photo { aspect-ratio: 1; border-radius: var(--r); overflow: hidden; background: var(--bg-2); }
.step-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.step:hover .step-photo img { transform: scale(1.04); }
.step-n { font: 600 .74rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.step-n span { color: var(--ink-mute); }
.step h3 { font-size: clamp(1.45rem, 2.6vw, 1.85rem); margin-block: 6px 12px; }
.step-meta { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-bottom: 14px; }
.step-meta li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: var(--bg-2); font: 600 .8rem var(--sans); color: var(--ink-soft); }
.step-meta .i { color: var(--accent); }
.step-lines { display: flex; flex-direction: column; gap: 10px; font-size: 1.08rem; line-height: 1.55; }
.step-lines li { position: relative; padding-left: 22px; }
.step-lines li::before { content: ""; position: absolute; left: 3px; top: .68em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.step-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; }
.done { font: 600 .88rem var(--sans); color: var(--ink-soft); align-items: center; padding-block: 6px; margin-left: auto; }
.done .box { margin-top: 0; }
.step.is-done { opacity: .5; }

.step.is-done:hover { opacity: 1; }
.steps-end { padding-top: 26px; display: flex; justify-content: center; }
.r-more { display: grid; gap: 40px; padding-block: clamp(20px, 4vw, 48px); }
.pull { position: relative; font: italic 400 clamp(1.5rem, 3.4vw, 2.4rem)/1.25 var(--display); letter-spacing: -.015em; margin-block: 14px 22px; padding-left: clamp(26px, 4vw, 52px); max-width: 30ch; }
.pull::before { content: "“"; position: absolute; left: -4px; top: -.18em; font-size: 2.6em; line-height: 1; color: var(--accent); }
.plain { display: flex; flex-direction: column; gap: 8px; }
.plain li { position: relative; padding-left: 20px; }
.plain li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 8px; height: 1px; background: var(--accent); }
.tips .plain { color: var(--ink-soft); max-width: 70ch; }
.blocks { display: grid; gap: 28px; }
.block { border-top: 1px solid var(--rule); padding-top: 14px; }
.block h3, .facts2 h3 { font-size: 1.5rem; margin-bottom: 12px; }
.block h4 { font: 600 .72rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); margin: 14px 0 8px; }
.block p, .block li { color: var(--ink-soft); }
.facts2 { border-top: 1px solid var(--rule); padding-top: 14px; }
.facts2 dl { display: grid; grid-template-columns: 1fr; margin-bottom: 14px; }
.facts2 dl div { display: flex; justify-content: space-between; gap: 18px; padding-block: 10px; border-bottom: 1px solid var(--line); font: 400 .93rem var(--sans); }
.facts2 dt { color: var(--ink-mute); flex: none; }
.facts2 dd { text-align: right; font-weight: 600; }
.cookbar { position: fixed; left: 0; right: 0; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px)); z-index: 54; display: flex; gap: 10px; padding: 10px var(--gut); background: var(--bg); border-top: 1px solid var(--line-2); transform: translateY(120%); transition: transform .5s var(--ease-out); }
.cookbar.on { transform: none; }
.cookbar .btn-primary { flex: 1; }
.cookbar .btn.icon { background: var(--paper); }
/* Temporizador flotante */
.tdock { position: fixed; right: 14px; bottom: calc(var(--tab-h) + 76px + env(safe-area-inset-bottom, 0px)); z-index: 120; display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 10px; background: var(--paper); border: 1px solid var(--ink); border-radius: 999px; box-shadow: var(--shadow); animation: dockIn .5s var(--ease-out); }
.cook-open .tdock { top: 60px; bottom: auto; right: 12px; }
.tdock.done { background: var(--accent); border-color: var(--accent); color: var(--on-accent); animation: shake .6s 3; }
.ring { position: relative; width: 46px; height: 46px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 7; }
.ring .bg { stroke: var(--line); }
.ring .fg { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.tdock.done .ring .fg { stroke: currentColor; }
.tdock-tx { display: flex; flex-direction: column; min-width: 0; }
.tdock-tx small { font: 600 .66rem var(--sans); letter-spacing: .1em; text-transform: uppercase; opacity: .7; max-width: 15ch; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tdock-tx time { font: 700 1.35rem/1 var(--sans); font-variant-numeric: tabular-nums; }
.tdock button { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; font: 700 .76rem var(--sans); transition: background-color .2s; }
.tdock button:hover { background: color-mix(in srgb, currentColor 14%, transparent); }

/* ---------- 8. Modo cocina ---------- */
.cook { position: fixed; inset: 0; z-index: 100; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; background: var(--bg); color: var(--ink); animation: cookIn .5s var(--ease-out); }
.cook.out { animation: cookOut .3s var(--ease-soft) forwards; }
.ck-top { display: flex; align-items: center; gap: 14px; padding: 10px var(--gut); border-bottom: 1px solid var(--line); }
.ck-top p { font: 600 .82rem var(--sans); color: var(--ink-mute); white-space: nowrap; }
.ck-top strong { flex: 1; min-width: 0; font: italic 500 1.1rem var(--display); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ck-segs { position: absolute; left: 0; right: 0; top: 0; display: flex; gap: 3px; height: 4px; }
.ck-segs i { flex: 1; background: var(--line); transition: background-color .4s; }
.ck-segs i.on { background: var(--accent); }
.ck-main { overflow: auto; overscroll-behavior: contain; }
.ck-step { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; max-width: 1180px; margin-inline: auto; padding: 18px var(--gut) 30px; animation: ckNext .5s var(--ease-out); }
.ck-step.back { animation-name: ckPrev; }
.ck-photo { aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: var(--bg-2); max-height: 38vh; width: 100%; }
.ck-photo img { width: 100%; height: 100%; object-fit: cover; }
.ck-tx h2 { font-size: clamp(1.9rem, 5vw, 3.2rem); margin-block: 8px 14px; }
.ck-lines { display: flex; flex-direction: column; gap: 14px; font-size: clamp(1.18rem, 2.1vw, 1.5rem); line-height: 1.45; }
.ck-lines li { position: relative; padding-left: 26px; }
.ck-lines li::before { content: ""; position: absolute; left: 3px; top: .62em; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.ck-timer { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 22px; padding: 16px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--paper); }
.ck-timer.done { border-color: var(--accent); animation: shake .6s 2; }
.ck-timer .ring { width: 86px; height: 86px; }
.ck-timer .ring time { position: absolute; inset: 0; display: grid; place-items: center; font: 700 1.05rem var(--sans); font-variant-numeric: tabular-nums; }
.ck-timer-tx { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 10px; }
.ck-timer-tx p { font: 500 .92rem var(--sans); color: var(--ink-soft); }
.ck-timer .pill { min-height: 44px; }
.ck-bot { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 10px; padding: 12px var(--gut) calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line-2); background: var(--paper); }
.ck-bot .btn { min-height: 54px; }
.ck-bot .btn-primary { font-size: 1.05rem; white-space: nowrap; }
.ck-bot .btn { padding-inline: .9em; }
.ck-drawer { position: absolute; inset: auto 0 0 0; z-index: 2; max-height: 76%; overflow: auto; background: var(--paper); border-top: 1px solid var(--ink); border-radius: 16px 16px 0 0; padding: 18px var(--gut) 28px; box-shadow: 0 -20px 50px -20px rgba(0, 0, 0, .4); animation: drawerIn .45s var(--ease-out); }
.ck-drawer header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.ck-drawer header h3 { font-size: 1.5rem; }
.ck-end { display: grid; place-content: center; justify-items: center; gap: 16px; text-align: center; min-height: 100%; padding: 30px var(--gut); animation: ckNext .6s var(--ease-out); }
.ck-end h2 { font-size: clamp(2.6rem, 8vw, 5rem); font-weight: 400; }
.ck-end h2 em { color: var(--accent); }
.ck-end p { color: var(--ink-soft); max-width: 46ch; font-size: 1.1rem; }

/* ---------- 9. ¿Qué cocino? y Mi cocina ---------- */
.what, .mine { padding-bottom: clamp(40px, 6vw, 80px); }
.pantry, .mood { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.taginput { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 56px; padding: 8px 12px; background: var(--paper); border: 1px solid var(--ink); border-radius: 4px; cursor: text; transition: box-shadow .3s; }
.taginput:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.taginput > span { display: contents; }
.taginput input { flex: 1; min-width: 160px; height: 38px; border: 0; outline: 0; background: transparent; font: 400 1.02rem var(--serif); }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 5px 6px 5px 12px; border-radius: 999px; background: var(--ink); color: var(--bg); font: 600 .86rem var(--sans); animation: tagIn .4s var(--ease-bounce); }
.tag button { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; }
.tag button:hover { background: rgba(255, 255, 255, .22); }
.tag .i { width: 14px; height: 14px; }
.sug { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 5; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--ink); border-radius: 4px; box-shadow: var(--shadow); overflow: hidden; }
.sug button { padding: 11px 14px; text-align: left; font: 500 .95rem var(--sans); }
.sug button:hover, .sug button:focus { background: var(--bg-2); }
.recent { display: flex; flex-direction: column; gap: 8px; }
.pick { border: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.pick legend { font: 600 .78rem var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 9px; padding: 0; }
.results { margin-top: 34px; scroll-margin-top: calc(var(--mast-h) + 20px); }
.group-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; border-top: 1px solid var(--rule); padding-top: 14px; margin: 34px 0 20px; }
.group-title:first-child { margin-top: 0; }
.group-title h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.group-title span { font: 400 .92rem var(--sans); color: var(--ink-mute); }
.match { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 7px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font: 400 .88rem/1.4 var(--sans); }
.match b { font: italic 500 1.5rem/1 var(--display); color: var(--accent); margin-right: 4px; }
.meter { height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; }
.meter i { display: block; height: 100%; width: 100%; background: var(--herb); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.1s var(--ease-out); }
.have { color: var(--herb); font-weight: 600; }
.miss { color: var(--accent); font-weight: 600; }
.match .muted { color: var(--ink-mute); }
.match .pill { align-self: flex-start; margin-top: 4px; }
.why { font-size: .98rem; color: var(--ink-soft); }
/* Mi cocina */
.mine-panel { animation: panelIn .5s var(--ease-out); }
.mine h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 18px; }
.mine h2 + .fine { margin-top: -10px; margin-bottom: 18px; }
.mine-sec + .mine-sec { margin-top: 48px; }
.aisle { margin-bottom: 26px; }
.aisle h3 { font: 600 .74rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); padding-bottom: 8px; border-bottom: 1px solid var(--rule); }
.li { display: flex; align-items: flex-start; gap: 12px; padding-block: 4px; border-bottom: 1px solid var(--line); animation: panelIn .4s var(--ease-out); }
.li label { flex: 1; display: flex; align-items: flex-start; gap: 12px; cursor: pointer; padding-block: 9px; }
.li input { position: absolute; opacity: 0; pointer-events: none; }
.li .tx { display: flex; flex-direction: column; line-height: 1.35; }
.li small { font: 400 .78rem var(--sans); color: var(--ink-mute); }
.li.done .tx { text-decoration: line-through; color: var(--ink-mute); }
.li > button { width: 40px; height: 40px; margin-top: 2px; display: grid; place-items: center; border-radius: 50%; color: var(--ink-mute); }
.li > button:hover { background: var(--bg-2); color: var(--accent); }
.addrow { display: flex; gap: 8px; margin-bottom: 22px; max-width: 520px; }
.addrow + .fine { margin-bottom: 18px; }
.plan-grid { display: grid; gap: 14px; }
.day { border: 1px solid var(--line-2); border-radius: var(--r); background: var(--paper); padding: 14px; }
.day h3 { font-size: 1.35rem; margin-bottom: 10px; }
.day.today h3::after { content: "Hoy"; margin-left: 10px; padding: 2px 8px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font: 700 .62rem var(--sans); letter-spacing: .08em; text-transform: uppercase; vertical-align: 4px; }
.slot { display: flex; align-items: center; gap: 10px; padding-block: 8px; border-top: 1px solid var(--line); min-height: 58px; }
.slot > span { flex: none; width: 5.6em; font: 600 .7rem var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); }
.slot a { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; font: 500 .95rem/1.25 var(--sans); }
.slot a:hover { color: var(--accent); }
.slot img { width: 50px; height: 40px; object-fit: cover; border-radius: 4px; flex: none; }
.slot .add { flex: 1; text-align: left; padding: 9px 12px; border: 1px dashed var(--line-2); border-radius: 4px; font: 500 .86rem var(--sans); color: var(--ink-mute); transition: border-color .25s, color .25s; }
.slot .add:hover { border-color: var(--accent); color: var(--accent); }
.slot .x { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: var(--ink-mute); }
.slot .x:hover { background: var(--bg-2); color: var(--accent); }
.datos { display: grid; gap: 18px; max-width: 720px; }
.datos > div { border-top: 1px solid var(--rule); padding-top: 14px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.datos h3 { font-size: 1.4rem; }
.datos p { color: var(--ink-soft); }

/* ---------- 10. Efectos ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }
.js [data-split]:not(.split) { opacity: 0; animation: showSafe .01s 1.4s forwards; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.split .w > span { display: inline-block; transform: translateY(110%); animation: wordUp .95s var(--ease-out) forwards; animation-delay: calc(var(--i) * 70ms + 80ms); }
.js .hero-feature .frame, .js .r-hero .frame { animation: clipIn 1.2s var(--ease-out) .1s both; }
.js .hero-cap { animation: riseIn .9s var(--ease-out) .7s both; }
.js .hero-copy > :not(.hero-title), .js .r-intro > :not(.r-title), .js .r-meta { animation: riseIn .9s var(--ease-out) both; animation-delay: calc(var(--n, 3) * 90ms + 200ms); }
.js .hero-copy > .kicker, .js .r-intro > .crumbs { --n: 0; }
.js .hero-copy > .hero-lede, .js .r-intro > .r-lede { --n: 4; }
.js .hero-copy > .search { --n: 5; }
.js .hero-copy > .hero-links, .js .r-meta { --n: 6; }
@keyframes wordUp { to { transform: none; } }
@keyframes showSafe { to { opacity: 1; } }
@keyframes clipIn { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes riseIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } }
@keyframes dlgIn { from { opacity: 0; transform: translateY(18px) scale(.98); } }
@keyframes heartPop { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
@keyframes bump { 0% { transform: scale(1); } 45% { transform: scale(1.3); } 100% { transform: scale(1); } }
@keyframes flash { 0% { background: color-mix(in srgb, var(--accent) 30%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 30%, transparent); } 100% { background: transparent; box-shadow: 0 0 0 4px transparent; } }
@keyframes tagIn { from { opacity: 0; transform: scale(.7); } }
@keyframes dockIn { from { opacity: 0; transform: translateY(20px) scale(.9); } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-5px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(3px); } }
@keyframes cookIn { from { opacity: 0; transform: translateY(24px); } }
@keyframes cookOut { to { opacity: 0; transform: translateY(24px); } }
@keyframes ckNext { from { opacity: 0; transform: translateX(46px); } }
@keyframes ckPrev { from { opacity: 0; transform: translateX(-46px); } }
@keyframes drawerIn { from { transform: translateY(100%); } }
/* Transición entre páginas */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vtOut .28s var(--ease-soft) both; }
::view-transition-new(root) { animation: vtIn .5s var(--ease-out) both; }
::view-transition-group(foto) { animation-duration: .55s; animation-timing-function: var(--ease-out); }
@keyframes vtOut { to { opacity: 0; } }
@keyframes vtIn { from { opacity: 0; transform: translateY(12px); } }

/* ---------- Tamaños mayores (el diseño base es de móvil) ---------- */
@media (min-width: 540px) {
  .hero-line span:nth-child(2) { display: inline; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .grid { gap: 34px 24px; }
  .card-title { font-size: 1.3rem; line-height: 1.15; }
  .card-desc { display: -webkit-box; }
  .r-actions .btn-primary { flex: 1 1 auto; }
  .step { grid-template-columns: 180px minmax(0, 1fr); gap: 22px; }
  .step.nophoto { grid-template-columns: 1fr; }
  .step-photo { aspect-ratio: 3 / 4; }
  .plan-grid { grid-template-columns: repeat(2, 1fr); }
  .facts2 dl { grid-template-columns: repeat(2, 1fr); column-gap: 34px; }
}
@media (min-width: 720px) {
  .brand-tag { display: inline; }
  .hero-line span:nth-child(3) { display: inline; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid.g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doors { grid-template-columns: repeat(3, 1fr); }
  .door { border-top: 0; border-left: 1px solid var(--line); padding: 30px 26px 32px; }
  .door:first-child { border-left: 0; padding-left: 4px; }
  .now { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 60px); }
  .rail-nav { display: flex; }
  .rail { grid-auto-columns: 300px; }
  .foot-grid { grid-template-columns: 1.3fr 1fr 1fr 1.2fr; }
  .blocks { grid-template-columns: repeat(2, 1fr); column-gap: 40px; }
  .ck-step { grid-template-columns: minmax(240px, 40%) minmax(0, 1fr); gap: clamp(26px, 4vw, 56px); align-items: start; padding-top: 30px; }
  .ck-step.nophoto { grid-template-columns: 1fr; max-width: 780px; }
  .ck-photo { aspect-ratio: 3 / 4; max-height: calc(100vh - 190px); position: sticky; top: 0; }
  .ck-drawer { inset: 0 0 0 auto; width: min(430px, 92vw); max-height: none; border-radius: 0; border-top: 0; border-left: 1px solid var(--ink); animation-name: drawerSide; }
  @keyframes drawerSide { from { transform: translateX(100%); } }
}
@media (min-width: 960px) {
  :root { --mast-h: 68px; }
  body { padding-bottom: 0; }
  .tabbar, .cookbar { display: none; }
  .nav { display: flex; margin-right: 12px; }
  .toast { bottom: 28px; }
  .tdock { bottom: 24px; right: 24px; }
  .hero-title { font-size: clamp(3rem, 5.4vw, 5.3rem); max-width: 11ch; }
  .hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(36px, 5vw, 76px); align-items: center; }
  .hero-feature .frame { aspect-ratio: 5 / 6; }
  .hero-cap { left: -34px; right: auto; bottom: 8px; min-width: 300px; max-width: 340px; padding: 20px 22px; }
  .cats { grid-template-columns: repeat(3, 1fr); }
  .chips.scroll { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; }
  .grid.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .how-in { grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
  .r-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "intro fig" "meta fig"; gap: 0 clamp(36px, 5vw, 72px); }
  .r-intro { grid-area: intro; align-self: end; padding-bottom: 22px; }
  .r-meta { grid-area: meta; align-self: start; }
  .r-hero { grid-area: fig; align-self: center; }
  .r-facts { grid-template-columns: repeat(2, 1fr); column-gap: 26px; }
  .r-actions .btn-primary { flex: 1 1 100%; }
  .r-cols { grid-template-columns: minmax(310px, 390px) minmax(0, 1fr); gap: clamp(36px, 5vw, 76px); align-items: start; }
  .r-ings { position: sticky; top: calc(var(--mast-h) + 18px); max-height: calc(100vh - var(--mast-h) - 36px); overflow: auto; overscroll-behavior: contain; padding: 26px 24px; }
  .step { grid-template-columns: 220px minmax(0, 1fr); gap: 30px; padding-block: 34px; }
  .r-more { grid-template-columns: 1fr 1fr; column-gap: clamp(36px, 5vw, 76px); }
  .r-more .tips { grid-column: 1 / -1; }
  .r-more .blocks { grid-template-columns: 1fr; }
  .plan-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1280px) {
  .grid { gap: 44px 30px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plan-grid { grid-template-columns: repeat(4, 1fr); }
  .step { grid-template-columns: 250px minmax(0, 1fr); }
}
@media (hover: none) {
  .card:hover .card-media img, .step:hover .step-photo img { transform: none; }
}
/* Solo se frena lo intrusivo; los microgestos siguen activos */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .frame img { transform: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .01s; }
}

/* ---------- 11. Impresión ---------- */
@media print {
  .mast, .tabbar, .foot, .cookbar, .tdock, .toast, .r-actions, .portion, .sub, .step-foot, .steps-end, .related, .progress, .heart, .crumbs, .r-ings .btn, .r-ings .fine { display: none !important; }
  body { background: #fff; color: #000; padding: 0; font-size: 11pt; }
  .js .reveal, .js [data-split] { opacity: 1 !important; transform: none !important; }
  .r-top, .r-cols, .r-more { display: block; }
  .r-hero .frame { aspect-ratio: 16 / 9; max-width: 60%; margin-block: 12pt; }
  .r-ings { border: 0; padding: 0; position: static; max-height: none; }
  .step { grid-template-columns: 90px 1fr; break-inside: avoid; padding-block: 10pt; }
  .step-photo { aspect-ratio: 3 / 4; }
}

/* ===== Compartido por la portada y las páginas de receta: cabecera, línea de fecha y fondo animado ===== */
:root, :root[data-theme="dark"] {
  --mast-bg: rgba(13, 11, 8, .82); --mast-ink: #f2e9d8; --mast-mute: #b8a888; --mast-line: rgba(242, 233, 216, .1);
  --mast-rule: rgba(242, 233, 216, .55); --mast-hover: rgba(242, 233, 216, .08); --mast-accent: #d9a441; --mast-on-accent: #1d1206;
  --blob-a: rgba(214, 140, 60, .20); --blob-b: rgba(160, 90, 40, .16); --blob-c: rgba(217, 164, 65, .12); --blob-d: rgba(120, 70, 30, .14);
}
:root[data-theme="pastel"] {
  --mast-bg: rgba(253, 243, 236, .78); --mast-ink: #433a32; --mast-mute: #8a7a6b; --mast-line: rgba(67, 58, 50, .12);
  --mast-rule: #433a32; --mast-hover: rgba(67, 58, 50, .07); --mast-accent: #c9705f; --mast-on-accent: #fff8f2;
  --blob-a: #ffc2a6; --blob-b: #b5e6cc; --blob-c: #d3c6fa; --blob-d: #ffe68a;
}
/* Fondo con manchas de color que se mueven despacio */
body::before {
  content: ""; position: fixed; inset: -25vmax; z-index: -1; pointer-events: none;
  background:
    radial-gradient(34vmax 28vmax at 18% 22%, var(--blob-a), transparent 70%),
    radial-gradient(30vmax 26vmax at 82% 16%, var(--blob-b), transparent 70%),
    radial-gradient(36vmax 30vmax at 72% 78%, var(--blob-c), transparent 70%),
    radial-gradient(30vmax 26vmax at 22% 82%, var(--blob-d), transparent 70%);
  filter: blur(30px); animation: blobDrift 28s ease-in-out infinite alternate; will-change: transform;
}
@keyframes blobDrift {
  0% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  50% { transform: translate3d(4vmax, -3vmax, 0) rotate(10deg) scale(1.06); }
  100% { transform: translate3d(-4vmax, 3vmax, 0) rotate(-8deg) scale(1); }
}

/* Cabecera */
.mast { position: sticky; top: 0; z-index: 50; background: var(--mast-bg); border-bottom: 1px solid var(--mast-line); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); transition: box-shadow .3s, background-color .45s; }
.mast.is-stuck { box-shadow: 0 10px 30px -22px rgba(0, 0, 0, .5); }
.mast-in { position: relative; display: flex; align-items: center; gap: 20px; height: 60px; width: min(1240px, 100% - 36px); margin-inline: auto; }
.mbrand { display: flex; align-items: baseline; gap: 12px; margin-right: auto; text-decoration: none; color: var(--mast-ink); }
.mbrand-name { font: italic 600 1.75rem/1 "Fraunces", Georgia, serif; letter-spacing: -.03em; }
.mbrand-tag { display: none; font: 600 .66rem "Hanken Grotesk", system-ui, sans-serif; letter-spacing: .18em; text-transform: uppercase; color: var(--mast-mute); }
.mnav { display: none; gap: 28px; }
.mnav a { position: relative; font: 600 .95rem "Hanken Grotesk", system-ui, sans-serif; padding-block: 6px; text-decoration: none; color: var(--mast-ink); }
.mnav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--mast-accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform .45s cubic-bezier(.16, 1, .3, 1); }
.mnav a:hover::after, .mnav a[aria-current]::after { transform: scaleX(1); }
.mtools { display: flex; gap: 2px; }
.mtool { position: relative; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--mast-ink); cursor: pointer; text-decoration: none; transition: background-color .25s, transform .3s cubic-bezier(.16, 1, .3, 1); }
.mtool:hover { background: var(--mast-hover); }
.mtool:active { transform: scale(.92); }
.mtool svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.mbadge { position: absolute; top: 4px; right: 2px; display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--mast-accent); color: var(--mast-on-accent); font: 700 .68rem/1 "Hanken Grotesk", sans-serif; }
.t-sun, [data-theme="dark"] .t-moon { display: none; }
[data-theme="dark"] .t-sun { display: block; }
/* Línea de fecha */
.dateline { width: min(1240px, 100% - 36px); margin: 14px auto 0; display: flex; justify-content: space-between; gap: 6px 18px; flex-wrap: wrap; padding-block: 9px; border-block: 1px solid var(--mast-rule); font: 600 .7rem "Hanken Grotesk", system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--mast-ink); }
.dateline span:nth-child(n+2) { display: none; }
@media (min-width: 540px) { .dateline span:nth-child(2) { display: inline; } }
@media (min-width: 720px) { .mbrand-tag { display: inline; } .dateline span:nth-child(3) { display: inline; } }
@media (min-width: 960px) { .mnav { display: flex; margin-right: 12px; } .mast-in { height: 68px; } }
@media print { body::before, .mast, .dateline { display: none !important; } }

/* ===== Portada: foto grande de fondo fundida con la página ===== */
.ph-hero { position: relative; isolation: isolate; overflow: hidden; padding: 0 0 30px; }
.ph-hero .wrap { display: block; }
.hero-bg { position: absolute; top: 0; right: 0; width: 64%; height: min(82vh, 720px); z-index: -1; overflow: hidden; }
.hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 1.6s ease; object-position: 60% 50%; animation: heroZoom 20s ease-out both; }
.hero-bg { -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 48%); mask-image: linear-gradient(90deg, transparent 0%, #000 48%); }
.hero-bg img { -webkit-mask-image: linear-gradient(0deg, transparent 0%, #000 32%, #000 88%, transparent 100%); mask-image: linear-gradient(0deg, transparent 0%, #000 32%, #000 88%, transparent 100%); }
@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.ph-hero .hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; min-height: min(68vh, 600px); padding: 48px 0 24px; }
.hero-copy { max-width: 620px; }
.hero-script { display: block; font: italic 400 clamp(1.15rem, 2vw, 1.45rem) var(--display-font); color: var(--gold); letter-spacing: .01em; animation: heroUp .9s cubic-bezier(.16, 1, .3, 1) both; }
.ph-hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.8rem); line-height: 1.02; margin: 12px 0 18px; font-weight: 500; letter-spacing: -.025em; animation: heroUp .9s cubic-bezier(.16, 1, .3, 1) .08s both; }
.ph-hero h1 span { display: block; }
.ph-hero h1 em { display: block; font-style: italic; color: var(--gold); }
.ph-hero .lead { animation: heroUp .9s cubic-bezier(.16, 1, .3, 1) .16s both; }
.ph-hero .search { animation: heroUp .9s cubic-bezier(.16, 1, .3, 1) .24s both; }
.ph-hero .hero-ctas { animation: heroUp .9s cubic-bezier(.16, 1, .3, 1) .3s both; }
.hero-ctas .cta svg { width: 18px; height: 18px; transition: transform .35s cubic-bezier(.16, 1, .3, 1); }
.hero-ctas .cta:hover svg { transform: translateX(4px); }
.btn.ghost { background: transparent; border-color: color-mix(in srgb, var(--ink) 45%, transparent); }
.btn.ghost:hover { border-color: var(--gold); color: var(--gold); }
.hero-feats { display: flex; flex-wrap: wrap; gap: 14px 26px; margin-top: 6px; animation: heroUp .9s cubic-bezier(.16, 1, .3, 1) .38s both; }
.hero-feats li { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--muted); line-height: 1.25; max-width: 15ch; }
.hero-feats b { color: var(--ink); font-family: var(--display-font); font-size: 1.05rem; font-weight: 600; }
.hf-ic { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent); color: var(--gold); background: color-mix(in srgb, var(--surface) 70%, transparent); }
.hf-ic svg { width: 20px; height: 20px; }
.hero-dish { align-self: end; justify-self: end; display: flex; flex-direction: column; gap: 4px; min-width: 230px; padding: 16px 20px; border-radius: 18px; text-decoration: none; color: var(--ink);
  background: color-mix(in srgb, var(--surface) 80%, transparent); border: 1px solid var(--line); box-shadow: var(--shadow); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: transform .45s cubic-bezier(.16, 1, .3, 1); animation: heroUp .9s cubic-bezier(.16, 1, .3, 1) .55s both; }
.hero-dish:hover { transform: translateY(-5px); }
.hero-dish strong { font: 500 1.4rem/1.15 var(--display-font); }
.hero-dish small { color: var(--muted); font-size: .85rem; }
.ph-hero .ph-cats { margin-top: 10px; }
@keyframes heroUp { from { opacity: 0; transform: translateY(18px); } }
@media (max-width: 900px) {
  .hero-bg { width: 100%; height: 100%; -webkit-mask-image: none; mask-image: none; }
  .hero-bg::after { content: ""; position: absolute; inset: 0; }
  .hero-bg img { object-position: 70% 30%; }
  .hero-bg::after { background: linear-gradient(180deg, color-mix(in srgb, var(--paper) 62%, transparent) 0%, color-mix(in srgb, var(--paper) 84%, transparent) 45%, var(--paper) 78%); }
  .ph-hero .hero-in { grid-template-columns: minmax(0, 1fr); min-height: 0; padding: 26px 0 8px; }
  .hero-dish { display: none; }
  .hero-feats { gap: 10px 16px; }
  .hero-feats li { font-size: .82rem; max-width: 12ch; }
  .hero-feats li:nth-child(3) { display: none; }
  .hf-ic { width: 36px; height: 36px; }
}

.hero-bg img:not(:first-child) { opacity: 0; }
.hero-bg img.on { opacity: 1; }
.hero-dish.swap strong, .hero-dish.swap small { animation: heroUp .7s cubic-bezier(.16, 1, .3, 1) both; }
.hero-dish.swap small { animation-delay: .08s; }

/* Tarjetas con sombra suave en capas, para que se vean con volumen (3D) */
.card { box-shadow: 0 1px 2px rgba(90, 60, 30, .07), 0 6px 12px -4px rgba(90, 60, 30, .12), 0 22px 40px -18px rgba(90, 60, 30, .32); }
.card:hover, .card:focus-visible { box-shadow: 0 2px 4px rgba(90, 60, 30, .08), 0 12px 20px -6px rgba(90, 60, 30, .16), 0 34px 56px -22px rgba(90, 60, 30, .40); }
[data-theme="dark"] .card { box-shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 8px 16px -6px rgba(0, 0, 0, .45), 0 24px 44px -18px rgba(0, 0, 0, .75); }
[data-theme="dark"] .card:hover, [data-theme="dark"] .card:focus-visible { box-shadow: 0 2px 4px rgba(0, 0, 0, .4), 0 14px 24px -8px rgba(0, 0, 0, .5), 0 36px 60px -22px rgba(0, 0, 0, .85); }
.p-recipe .card { box-shadow: none; }
.p-recipe .card-media { box-shadow: 0 1px 2px rgba(90, 60, 30, .07), 0 6px 12px -4px rgba(90, 60, 30, .12), 0 22px 40px -18px rgba(90, 60, 30, .32); }
[data-theme="dark"] .p-recipe .card-media { box-shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 8px 16px -6px rgba(0, 0, 0, .45), 0 24px 44px -18px rgba(0, 0, 0, .75); }
/* Carruseles: espacio abajo para que la sombra no se corte */
.ph-hero ~ * .rail, main .rail { padding: 12px 18px 36px; margin-inline: -18px; scroll-padding-inline: 18px; }

/* ===== Selector de idioma ===== */
.mlang { position: relative; }
.mlang-btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 8px; border: 0; background: none; cursor: pointer; color: var(--mast-ink); font: 700 .92rem "Hanken Grotesk", system-ui, sans-serif; border-radius: 10px; transition: background-color .25s; }
.mlang-btn:hover { background: var(--mast-hover); }
.mlang-short, .mlang-long { text-decoration: underline; text-decoration-color: var(--mast-accent); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.mlang-long { display: none; }
.mlang-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mlang-globe { display: none; color: var(--mast-accent); }
.mlang-caret { width: 15px !important; height: 15px !important; transition: transform .3s; }
.mlang-btn[aria-expanded="true"] .mlang-caret { transform: rotate(180deg); }
.mlang-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 60; min-width: 170px; padding: 6px; border-radius: 14px; background: var(--mast-bg); border: 1px solid var(--mast-line); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .45); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); animation: heroUp .3s cubic-bezier(.16, 1, .3, 1); }
[data-theme="pastel"] .mlang-menu { background: #fffaf6; }
[data-theme="dark"] .mlang-menu { background: #171310; }
.mlang-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; background: none; color: var(--mast-ink); font: 500 .95rem "Hanken Grotesk", system-ui, sans-serif; text-align: left; cursor: pointer; }
.mlang-menu button:hover { background: var(--mast-hover); }
.mlang-menu button b { width: 24px; font-weight: 800; color: var(--mast-mute); }
.mlang-menu button[aria-checked="true"] { color: var(--mast-accent); }
.mlang-menu button[aria-checked="true"] b { color: var(--mast-accent); }
@media (min-width: 960px) { .mlang { margin-right: 6px; } .mlang-short { display: none; } .mlang-long { display: inline; } .mlang-globe { display: block; } }
@media (max-width: 539px) { .mast-in { gap: 6px; } .mtools .mtool[data-focus], .mtools a.mtool[href$="#catalogo"] { display: none; } }
/* Ocultar la barra del traductor de Google */
iframe.skiptranslate, .goog-te-banner-frame, #goog-gt-tt, .goog-te-balloon-frame { display: none !important; }
body { top: 0 !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }

/* ===== Burbuja de chat: que no tape la navegación, el botón de cocinar ni el temporizador ===== */
body #cw-btn { transition: transform .3s cubic-bezier(.16, 1, .3, 1); }
body #cw-btn:hover { transform: scale(1.06); }
body.cook-open #cw-btn, body.cook-open #cw-box { display: none; }
@media (max-width: 900px) {
  body #cw-btn { bottom: calc(82px + env(safe-area-inset-bottom, 0px)); width: 52px; height: 52px; font-size: 24px; }
  body #cw-box { bottom: calc(146px + env(safe-area-inset-bottom, 0px)); max-height: calc(100vh - 220px); }
}
@media (max-width: 959px) {
  body.p-recipe #cw-btn { bottom: calc(146px + env(safe-area-inset-bottom, 0px)); }
  body.p-recipe #cw-box { bottom: calc(210px + env(safe-area-inset-bottom, 0px)); max-height: calc(100vh - 280px); }
  body.p-recipe .tdock { left: 14px; right: auto; }
}
@media (min-width: 960px) { body.p-recipe .tdock { right: 92px; } }
