@charset "utf-8";
/* Aromas y Sabores — sistema de diseño editorial cálido
   ------------------------------------------------------
   1. Fuentes     2. Tokens      3. Base        4. Layout
   5. Cabecera    6. Tarjetas    7. Portada     8. Receta
   9. Buscador   10. Modo cocina 11. Publicidad 12. Pie e impresión        */

/* 1. Fuentes ------------------------------------------------------------ */
@font-face {
  font-family: 'Fraunces';
  src: url('/assets/fonts/fraunces-latin.woff2') format('woff2');
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  src: url('/assets/fonts/fraunces-latin-ext.woff2') format('woff2');
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* 2. Tokens ------------------------------------------------------------- */
:root {
  --bg: #fbf7f0;
  --bg-2: #f4ecdf;
  --surface: #ffffff;
  --surface-2: #fdfaf5;
  --ink: #221b14;
  --ink-2: #5f5244;
  --ink-3: #8b7c6b;
  --line: #e7dccb;
  --line-2: #d8c9b2;
  --brand: #b8442a;
  --brand-deep: #8d3220;
  --brand-wash: #fbeee7;
  --accent: #c88a1c;
  --accent-wash: #fdf3dd;
  --shadow-sm: 0 1px 2px rgb(52 34 18 / .06), 0 2px 8px rgb(52 34 18 / .05);
  --shadow-md: 0 2px 6px rgb(52 34 18 / .07), 0 12px 28px -8px rgb(52 34 18 / .16);
  --shadow-lg: 0 4px 12px rgb(52 34 18 / .08), 0 24px 56px -16px rgb(52 34 18 / .24);
  --radius: 14px;
  --radius-lg: 22px;
  --wrap: 1200px;
  --measure: 42rem;
  --serif: 'Fraunces', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --step: clamp(1rem, .93rem + .3vw, 1.09rem);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #15110d;
    --bg-2: #1c1710;
    --surface: #201a14;
    --surface-2: #251e17;
    --ink: #f3eade;
    --ink-2: #bcac98;
    --ink-3: #94836f;
    --line: #33291f;
    --line-2: #453829;
    --brand: #ec7d58;
    --brand-deep: #f5a184;
    --brand-wash: #2a1a13;
    --accent: #e6b45c;
    --accent-wash: #2a2113;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / .3);
    --shadow-md: 0 2px 6px rgb(0 0 0 / .35), 0 12px 28px -8px rgb(0 0 0 / .5);
    --shadow-lg: 0 4px 12px rgb(0 0 0 / .4), 0 24px 56px -16px rgb(0 0 0 / .6);
    color-scheme: dark;
  }
}
[data-theme='dark'] {
  --bg: #15110d;
  --bg-2: #1c1710;
  --surface: #201a14;
  --surface-2: #251e17;
  --ink: #f3eade;
  --ink-2: #bcac98;
  --ink-3: #94836f;
  --line: #33291f;
  --line-2: #453829;
  --brand: #ec7d58;
  --brand-deep: #f5a184;
  --brand-wash: #2a1a13;
  --accent: #e6b45c;
  --accent-wash: #2a2113;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / .3);
  --shadow-md: 0 2px 6px rgb(0 0 0 / .35), 0 12px 28px -8px rgb(0 0 0 / .5);
  --shadow-lg: 0 4px 12px rgb(0 0 0 / .4), 0 24px 56px -16px rgb(0 0 0 / .6);
  color-scheme: dark;
}

/* 3. Base --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 1.4rem + 2.9vw, 3.5rem); font-variation-settings: 'opsz' 96; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.1rem); font-variation-settings: 'opsz' 40; }
h3 { font-size: clamp(1.18rem, 1.06rem + .5vw, 1.4rem); font-variation-settings: 'opsz' 20; }
p { margin: 0 0 1em; }
a { color: var(--brand-deep); text-underline-offset: .18em; text-decoration-thickness: .07em; }
a:hover { color: var(--brand); }
img, svg, video { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 1.15em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--brand); color: #fff; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 50%; translate: -50% -120%; z-index: 100;
  background: var(--brand); color: #fff; padding: .6rem 1rem; border-radius: 0 0 10px 10px;
  transition: translate .2s;
}
.skip:focus { translate: -50% 0; }

/* 4. Layout ------------------------------------------------------------- */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
@media (max-width: 640px) { .wrap { width: min(100% - 2rem, var(--wrap)); } }
.section { padding-block: clamp(2.5rem, 1.5rem + 3.4vw, 4.5rem); }
.section--tint { background: var(--bg-2); }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.75rem; flex-wrap: wrap;
}
.section-head h2 { margin: 0; }
.section-head p { margin: .3rem 0 0; color: var(--ink-2); max-width: 46ch; }
.eyebrow {
  font-family: var(--sans); font-size: .74rem; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--brand-deep); margin: 0 0 .5rem;
  display: flex; align-items: center; gap: .55rem;
}
.eyebrow::before { content: ''; width: 1.6rem; height: 2px; background: var(--brand); border-radius: 2px; }
.link-more {
  font-weight: 600; font-size: .95rem; text-decoration: none;
  display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap;
}
.link-more::after { content: '→'; transition: translate .18s; }
.link-more:hover::after { translate: 3px 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 600; font-size: .95rem; line-height: 1;
  padding: .78rem 1.25rem; border-radius: 999px; border: 1px solid transparent;
  background: var(--brand); color: #fff; text-decoration: none; cursor: pointer;
  transition: background .18s, transform .18s, box-shadow .18s;
}
.btn:hover { background: var(--brand-deep); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn:active { transform: none; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { background: var(--surface); color: var(--ink); border-color: var(--brand); }
.btn--sm { padding: .5rem .9rem; font-size: .85rem; }

.chip {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .01em;
  padding: .34rem .7rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--ink-2); text-decoration: none; white-space: nowrap;
}
a.chip:hover { border-color: var(--cat, var(--brand)); color: var(--cat, var(--brand)); }
.chip--cat { color: var(--cat); border-color: color-mix(in oklab, var(--cat) 35%, var(--line)); background: color-mix(in oklab, var(--cat) 8%, var(--surface)); }
.chip--solid { background: var(--brand); border-color: var(--brand); color: #fff; }

.meta-row { display: flex; flex-wrap: wrap; gap: .45rem .9rem; align-items: center; color: var(--ink-2); font-size: .88rem; }
.meta-row .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line-2); }
.icon { width: 1.05em; height: 1.05em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* 5. Cabecera ----------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header[data-stuck] { border-color: var(--line); box-shadow: 0 4px 20px -12px rgb(52 34 18 / .3); }
.header-bar { display: flex; align-items: center; gap: 1rem; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); flex: none; }
.brand svg { width: 34px; height: 34px; }
.brand .brand-txt { display: block; }
.brand b {
  display: block; font-family: var(--serif); font-weight: 600; font-size: 1.3rem;
  letter-spacing: -.02em; font-variation-settings: 'opsz' 40; line-height: 1.05;
}
.brand .brand-txt span {
  display: block; font-size: .62rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 600; margin-top: .18rem;
}
.nav { margin-left: auto; display: flex; align-items: center; gap: .15rem; }
.nav a {
  padding: .5rem .7rem; border-radius: 9px; text-decoration: none; color: var(--ink-2);
  font-size: .92rem; font-weight: 550; transition: background .15s, color .15s;
}
.nav a:hover, .nav a[aria-current] { background: var(--brand-wash); color: var(--brand-deep); }
.nav-tools { display: flex; align-items: center; gap: .4rem; margin-left: .4rem; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-2); cursor: pointer; padding: 0;
  transition: border-color .15s, color .15s, background .15s;
}
.icon-btn:hover { color: var(--brand); border-color: var(--brand); }
.icon-btn--search { width: auto; padding: 0 .8rem; font: inherit; font-size: .9rem; color: var(--ink-3); }
.icon-btn--search kbd {
  font: inherit; font-size: .72rem; border: 1px solid var(--line); border-radius: 5px;
  padding: .05rem .3rem; color: var(--ink-3); background: var(--bg-2);
}
@media (max-width: 900px) { .nav > a { display: none; } .icon-btn--search kbd { display: none; } }
.menu-panel { display: none; }
.menu-panel[open] { display: block; }
.mobile-cats { border-top: 1px solid var(--line); padding: .8rem 0 1rem; display: none; }
.mobile-cats ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .3rem; }
.mobile-cats a { display: block; padding: .55rem .7rem; border-radius: 9px; text-decoration: none; color: var(--ink); font-weight: 550; }
.mobile-cats a:hover { background: var(--bg-2); }
.site-header.is-open .mobile-cats { display: block; }
@media (min-width: 901px) { .icon-btn--menu { display: none; } }

/* 6. Tarjetas ----------------------------------------------------------- */
.grid { display: grid; gap: clamp(1.1rem, .8rem + 1vw, 1.8rem); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 232px), 1fr)); }
/* En celular, dos columnas: se ve el doble de recetas sin scrollear kilómetros */
@media (max-width: 640px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem .8rem; }
  .grid--3 .card h3, .grid--4 .card h3 { font-size: .96rem; }
  .card__body { padding-top: .6rem; }
  .card__meta { font-size: .76rem; }
  .card__badge { font-size: .6rem; padding: .22rem .4rem; }
}

.card { position: relative; display: flex; flex-direction: column; }
.card__media {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  background: var(--bg-2) center/cover no-repeat; box-shadow: var(--shadow-sm);
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: scale .5s cubic-bezier(.2,.6,.2,1); }
.card:hover .card__media img { scale: 1.045; }
.card__badge {
  position: absolute; left: .6rem; top: .6rem; z-index: 2;
  background: color-mix(in oklab, var(--cat, var(--brand)) 92%, black); color: #fff;
  font-size: .68rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  padding: .3rem .55rem; border-radius: 7px; backdrop-filter: blur(4px);
}
.card__play {
  position: absolute; right: .6rem; bottom: .6rem; z-index: 2;
  display: inline-flex; align-items: center; gap: .3rem;
  background: rgb(20 14 10 / .62); color: #fff; font-size: .72rem; font-weight: 600;
  padding: .28rem .5rem .28rem .42rem; border-radius: 7px; backdrop-filter: blur(4px);
}
.card__play svg { width: 13px; height: 13px; fill: #fff; stroke: none; }
.card__body { padding: .85rem .1rem 0; }
.card h3 {
  font-size: 1.12rem; margin: 0 0 .35rem; font-variation-settings: 'opsz' 24;
  line-height: 1.2; letter-spacing: -.01em;
}
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a::after { content: ''; position: absolute; inset: 0; border-radius: var(--radius); }
.card:hover h3 a { color: var(--brand-deep); }
.card__meta { font-size: .82rem; color: var(--ink-3); display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }

.card--row { flex-direction: row; gap: .9rem; align-items: center; }
.card--row .card__media { width: 92px; flex: none; aspect-ratio: 1; border-radius: 11px; }
.card--row .card__body { padding: 0; }
.card--row h3 { font-size: .98rem; margin-bottom: .2rem; }

/* 7. Portada ------------------------------------------------------------ */
.hero { padding: clamp(2rem, 1rem + 4vw, 3.6rem) 0 clamp(2rem, 1rem + 3vw, 3rem); }
.hero__grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(1.5rem, 1rem + 3vw, 3.5rem); align-items: center; }
@media (max-width: 860px) { .hero__grid { grid-template-columns: 1fr; } }
.hero h1 { font-size: clamp(2.4rem, 1.5rem + 3.6vw, 4.1rem); margin-bottom: .35em; font-weight: 600; }
.hero h1 em { font-style: normal; color: var(--brand); position: relative; white-space: nowrap; }
.hero h1 em::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: .04em; height: .12em;
  background: var(--accent); opacity: .45; border-radius: 3px;
}
.hero__lead { font-size: clamp(1.05rem, 1rem + .35vw, 1.2rem); color: var(--ink-2); max-width: 40ch; }
.hero__actions { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.6rem; }
.hero__stats { display: flex; gap: 1.6rem; margin-top: 2.2rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.hero__stats b { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; display: block; line-height: 1; color: var(--brand-deep); }
.hero__stats span { font-size: .78rem; text-transform: uppercase; letter-spacing: .09em; color: var(--ink-3); font-weight: 600; }
.hero__figure { position: relative; }
.hero__figure .card__media { aspect-ratio: 4 / 3; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.hero__caption {
  position: absolute; left: 1rem; right: 1rem; bottom: 1rem; z-index: 2;
  background: color-mix(in oklab, var(--surface) 92%, transparent); backdrop-filter: blur(10px);
  border-radius: 14px; padding: .8rem 1rem; box-shadow: var(--shadow-md); text-decoration: none; color: inherit;
  display: flex; align-items: center; gap: .8rem;
}
.hero__caption:hover { color: inherit; }
.hero__caption strong { font-family: var(--serif); font-size: 1.05rem; font-weight: 600; display: block; line-height: 1.2; }
.hero__caption small { color: var(--ink-3); font-size: .78rem; }
.hero__caption .btn { margin-left: auto; flex: none; }

.cat-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 196px), 1fr)); gap: .8rem; }
.cat-tile {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 148px; padding: .9rem 1rem; border-radius: var(--radius); overflow: hidden;
  text-decoration: none; color: #fff; background: var(--cat); isolation: isolate;
  box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s;
}
.cat-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); color: #fff; }
.cat-tile img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
  transition: scale .5s cubic-bezier(.2,.6,.2,1);
}
.cat-tile:hover img { scale: 1.06; }
/* Dos capas: un velo del color de la categoría y un degradado al pie, para que
   el texto se lea sobre cualquier foto. */
.cat-tile::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgb(20 12 6 / .82) 0%, rgb(20 12 6 / .42) 42%, rgb(20 12 6 / .06) 78%),
    color-mix(in oklab, var(--cat) 46%, transparent);
}
.cat-tile b {
  font-family: var(--serif); font-size: 1.18rem; font-weight: 600; line-height: 1.1;
  text-shadow: 0 1px 10px rgb(0 0 0 / .45); hyphens: auto; text-wrap: balance;
}
.cat-tile small {
  font-size: .72rem; opacity: .92; letter-spacing: .06em; text-transform: uppercase;
  font-weight: 600; text-shadow: 0 1px 8px rgb(0 0 0 / .5);
}

.callout {
  display: flex; align-items: center; gap: clamp(1rem, .6rem + 1.6vw, 2rem);
  background: linear-gradient(120deg, var(--brand-wash), var(--accent-wash));
  border: 1px solid color-mix(in oklab, var(--brand) 18%, var(--line));
  border-radius: var(--radius-lg); padding: clamp(1.4rem, 1rem + 1.6vw, 2.2rem);
}
.callout h2 { margin: 0 0 .3rem; font-size: clamp(1.35rem, 1.15rem + .9vw, 1.8rem); }
.callout p { margin: 0; color: var(--ink-2); max-width: 52ch; font-size: .96rem; }
.callout .btn { flex: none; }
.callout__mark {
  flex: none; width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center;
  background: var(--brand); color: #fff; box-shadow: var(--shadow-md);
}
.callout__mark svg { width: 26px; height: 26px; fill: #fff; stroke: none; margin-left: 3px; }
@media (max-width: 760px) {
  .callout { flex-direction: column; align-items: flex-start; text-align: left; }
}

/* 8. Receta ------------------------------------------------------------- */
.crumbs { font-size: .82rem; color: var(--ink-3); padding: 1rem 0 0; display: flex; gap: .4rem; flex-wrap: wrap; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--brand); text-decoration: underline; }
.crumbs span[aria-hidden] { color: var(--line-2); }

.recipe-head { padding: 1.2rem 0 1.6rem; max-width: 54rem; }
.recipe-head h1 { margin-bottom: .35em; }
.recipe-head .lead { font-size: 1.1rem; color: var(--ink-2); max-width: var(--measure); }
.facts { display: flex; flex-wrap: wrap; gap: .5rem .5rem; margin-top: 1.3rem; }
.fact {
  display: inline-flex; align-items: center; gap: .45rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: 11px; padding: .5rem .8rem; font-size: .86rem;
}
.fact b { font-weight: 650; }
.fact .icon { color: var(--brand); }
.stars { display: inline-flex; align-items: center; gap: .3rem; }
.stars svg { width: 15px; height: 15px; fill: var(--accent); stroke: none; }

.recipe-hero { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); background: var(--bg-2) center/cover; }
/* La portada no se come toda la pantalla: los ingredientes tienen que asomar. */
.recipe-hero img { width: 100%; aspect-ratio: 16 / 9; max-height: min(58vh, 620px); object-fit: cover; }
/* En la portada manda la imagen, no la proporción fija del botón: si no,
   el fondo negro del reproductor asoma arriba y abajo. */
.recipe-hero .lite-yt { border-radius: 0; box-shadow: none; aspect-ratio: auto; background: transparent; }
.recipe-hero .lite-yt picture { display: block; }
.hero-note { font-size: .84rem; color: var(--ink-3); margin: .7rem 0 0; }
.back-to-video { font-size: .95rem; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 1.3rem; margin-top: 2rem; }
.linkish {
  font: inherit; color: var(--brand-deep); background: none; border: 0; padding: 0;
  cursor: pointer; text-decoration: underline; text-underline-offset: .18em;
}
.linkish:hover { color: var(--brand); }

.recipe-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 22.5rem);
  gap: clamp(1.6rem, 1rem + 2.6vw, 3.2rem); align-items: start; padding: 2.2rem 0 1rem;
}
/* En pantallas chicas los ingredientes van antes que los pasos: es lo primero
   que se necesita al empezar a cocinar. El resto de la columna baja al final. */
@media (max-width: 940px) {
  .recipe-layout { display: flex; flex-direction: column; gap: 1.6rem; }
  .recipe-layout > .aside { display: contents; }
  .panel--ing { order: -1; }
  .prose { order: 0; max-width: none; }
  .aside .ad { order: 1; margin: 0; }
  .panel--related { order: 2; }
  .panel + .panel { margin-top: 0; }
}
.prose { max-width: var(--measure); }
.prose h2 { margin-top: 2.2rem; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--ink-2); }
.prose > p:first-of-type { color: var(--ink); }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.3rem; box-shadow: var(--shadow-sm); }
.panel + .panel { margin-top: 1.1rem; }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: .9rem; }
.panel__head h2 { margin: 0; font-size: 1.32rem; }
.aside { position: sticky; top: 88px; }
@media (max-width: 940px) { .aside { position: static; } }

.servings { display: inline-flex; align-items: center; gap: .1rem; border: 1px solid var(--line); border-radius: 999px; padding: .15rem; background: var(--bg-2); }
.servings button {
  width: 28px; height: 28px; border-radius: 999px; border: 0; background: transparent;
  color: var(--ink-2); font-size: 1.05rem; line-height: 1; cursor: pointer; font-family: var(--sans);
}
.servings button:hover:not(:disabled) { background: var(--surface); color: var(--brand); box-shadow: var(--shadow-sm); }
.servings button:disabled { opacity: .35; cursor: default; }
.servings output { font-size: .84rem; font-weight: 650; min-width: 4.6rem; text-align: center; }

.ing-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.ing-list li { border-bottom: 1px dashed var(--line); }
.ing-list li:last-child { border-bottom: 0; }
.ing-list label { display: flex; gap: .7rem; align-items: baseline; padding: .55rem .2rem; cursor: pointer; line-height: 1.45; }
.ing-list input { appearance: none; margin: 0; flex: none; width: 1.15em; height: 1.15em; border: 1.5px solid var(--line-2); border-radius: 6px; background: var(--surface); cursor: pointer; position: relative; top: .18em; transition: background .15s, border-color .15s; }
.ing-list input:checked { background: var(--brand); border-color: var(--brand); }
.ing-list input:checked::after { content: ''; position: absolute; left: .32em; top: .1em; width: .3em; height: .58em; border: solid #fff; border-width: 0 2px 2px 0; rotate: 45deg; }
.ing-list input:checked + span { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--line-2); }
.ing-list .qty { font-variant-numeric: tabular-nums; font-weight: 650; }
.ing-group + .ing-group { margin-top: 1rem; }
.ing-group > h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--brand-deep); font-family: var(--sans); font-weight: 700; margin: 0 0 .3rem; }

.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: .1rem; }
.steps > li { counter-increment: s; display: grid; grid-template-columns: auto 1fr; gap: .95rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.steps > li:first-child { border-top: 0; padding-top: .2rem; }
.steps > li::before {
  content: counter(s); font-family: var(--serif); font-weight: 600; font-size: 1.02rem;
  width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand-wash); color: var(--brand-deep); border: 1px solid color-mix(in oklab, var(--brand) 22%, transparent);
  flex: none; font-variant-numeric: tabular-nums;
}
.steps > li.done::before { background: var(--brand); color: #fff; }
.steps > li.done p { color: var(--ink-3); }
.steps p { margin: 0; cursor: pointer; }
.step-group + .step-group { margin-top: 1.8rem; }
.step-group > h3 { font-size: 1.05rem; margin-bottom: .6rem; }

.tip { display: flex; gap: .9rem; background: var(--accent-wash); border: 1px solid color-mix(in oklab, var(--accent) 30%, transparent); border-radius: var(--radius); padding: 1rem 1.1rem; margin: 1.8rem 0; }
.tip .icon { color: var(--accent); width: 1.3rem; height: 1.3rem; flex: none; margin-top: .15rem; }
.tip p { margin: 0; color: var(--ink-2); font-size: .96rem; }
.tip b { color: var(--ink); }

.video-block { margin: 2.4rem 0; }
.lite-yt {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden;
  background: #000 center/cover no-repeat; cursor: pointer; border: 0; padding: 0; width: 100%;
  box-shadow: var(--shadow-md); display: block;
}
.lite-yt::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(0 0 0 / .1), rgb(0 0 0 / .35)); transition: opacity .2s; }
.lite-yt:hover::after { opacity: .7; }
.lite-yt .play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; z-index: 2;
  width: 74px; height: 52px; border-radius: 14px; background: rgb(184 68 42 / .94);
  display: grid; place-items: center; transition: scale .2s, background .2s;
  box-shadow: 0 8px 28px rgb(0 0 0 / .35);
}
.lite-yt:hover .play { scale: 1.08; background: var(--brand); }
.lite-yt .play svg { width: 22px; height: 22px; fill: #fff; stroke: none; margin-left: 3px; }
.lite-yt .label {
  position: absolute; left: 1rem; right: 1rem; bottom: .9rem; z-index: 2; color: #fff; font-weight: 600;
  font-size: .88rem; text-shadow: 0 1px 6px rgb(0 0 0 / .7); display: flex; align-items: center;
  gap: .4rem; justify-content: flex-start; text-align: left;
}
.lite-yt .label svg { width: 14px; height: 14px; fill: #fff; stroke: none; flex: none; }
.lite-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; }

.tools { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.4rem 0 0; }
.tools .btn--ghost { background: var(--surface); }

.related { border-top: 1px solid var(--line); }

/* 9. Buscador ----------------------------------------------------------- */
dialog.search {
  border: 0; padding: 0; background: transparent; max-width: 720px; width: min(100% - 1.5rem, 720px);
  margin-top: min(10vh, 90px); color: var(--ink);
}
dialog.search::backdrop { background: rgb(28 18 10 / .5); backdrop-filter: blur(3px); }
.search__box { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid var(--line); }
.search__field { display: flex; align-items: center; gap: .7rem; padding: .95rem 1.1rem; border-bottom: 1px solid var(--line); }
.search__field .icon { width: 1.25rem; height: 1.25rem; color: var(--ink-3); }
.search__field input { flex: 1; font: inherit; font-size: 1.06rem; border: 0; background: transparent; color: var(--ink); outline: 0; padding: 0; min-width: 0; }
.search__field input::placeholder { color: var(--ink-3); }
.search__results { max-height: min(58vh, 460px); overflow: auto; padding: .5rem; overscroll-behavior: contain; }
.search__results:empty { display: none; }
.search__item { display: flex; gap: .8rem; align-items: center; padding: .5rem; border-radius: 12px; text-decoration: none; color: inherit; }
.search__item[aria-selected='true'], .search__item:hover { background: var(--bg-2); }
.search__item img { width: 56px; height: 56px; border-radius: 9px; object-fit: cover; flex: none; background: var(--bg-2); }
.search__item b { font-family: var(--serif); font-size: 1rem; font-weight: 600; display: block; line-height: 1.25; }
.search__item small { color: var(--ink-3); font-size: .8rem; }
.search__hint { padding: .7rem 1.1rem; border-top: 1px solid var(--line); font-size: .78rem; color: var(--ink-3); display: flex; gap: 1rem; flex-wrap: wrap; background: var(--surface-2); }
.search__hint kbd { font: inherit; font-size: .72rem; border: 1px solid var(--line); border-radius: 5px; padding: .05rem .3rem; background: var(--bg); }
mark { background: color-mix(in oklab, var(--accent) 38%, transparent); color: inherit; border-radius: 3px; padding: 0 .1em; }

.filters { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-bottom: 1.6rem; }
.filters input[type='search'] {
  font: inherit; padding: .6rem .9rem; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); min-width: min(100%, 260px);
}
.filters .chip { cursor: pointer; user-select: none; }
.filters .chip[aria-pressed='true'] { background: var(--brand); border-color: var(--brand); color: #fff; }
.empty { text-align: center; padding: 3rem 1rem; color: var(--ink-3); }

/* 10. Modo cocina ------------------------------------------------------- */
dialog.cook { border: 0; padding: 0; width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; background: var(--bg); color: var(--ink); }
dialog.cook::backdrop { background: var(--bg); }
.cook__inner { display: flex; flex-direction: column; height: 100%; }
.cook__bar { display: flex; align-items: center; gap: 1rem; padding: .8rem 1.1rem; border-bottom: 1px solid var(--line); }
.cook__bar b { font-family: var(--serif); font-size: 1.05rem; font-weight: 600; }
.cook__bar .spacer { margin-left: auto; }
.cook__body { flex: 1; overflow: auto; display: grid; place-items: center; padding: clamp(1.2rem, 4vw, 3rem); }
.cook__step { max-width: 34rem; text-align: left; }
.cook__step .n { font-family: var(--sans); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.cook__step p { font-family: var(--serif); font-size: clamp(1.35rem, 1rem + 1.8vw, 2rem); line-height: 1.35; margin: .6rem 0 0; font-variation-settings: 'opsz' 40; }
.cook__step ul { margin: 1.6rem 0 0; padding: 1.2rem 0 0; border-top: 1px solid var(--line); columns: 2; column-gap: 2rem; font-size: .95rem; color: var(--ink-2); }
@media (max-width: 620px) { .cook__step ul { columns: 1; } }
.cook__nav { display: flex; gap: .8rem; padding: 1rem 1.1rem calc(1rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.cook__nav .btn { flex: 1; }
.cook__progress { height: 3px; background: var(--line); }
.cook__progress i { display: block; height: 100%; background: var(--brand); transition: width .3s; }

/* 11. Publicidad -------------------------------------------------------- */
.ad { margin: 2.2rem auto; text-align: center; max-width: 100%; }
.ad::before {
  content: 'Publicidad'; display: block; font-size: .64rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: .4rem;
}
.ad ins { display: block; }
.ad--top { min-height: 106px; margin-top: 1.2rem; }
.ad--article { min-height: 262px; }
.ad--feed { min-height: 262px; }
.ad--footer { min-height: 106px; }
@media print { .ad { display: none; } }

.consent {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 90; max-width: 34rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 1.1rem 1.2rem; font-size: .88rem; color: var(--ink-2);
}
.consent p { margin: 0 0 .8rem; }
.consent div { display: flex; gap: .5rem; flex-wrap: wrap; }


/* Contraste de botones en modo oscuro: tinta oscura sobre el salmón claro */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .btn,
  :root:not([data-theme='light']) .btn:hover,
  :root:not([data-theme='light']) .chip--solid,
  :root:not([data-theme='light']) .card__badge { color: #1b120c; }
  :root:not([data-theme='light']) .filters .chip[aria-pressed='true'] { color: #1b120c; }
  :root:not([data-theme='light']) mark { background: color-mix(in oklab, var(--accent) 55%, transparent); }
}
[data-theme='dark'] .btn, [data-theme='dark'] .btn:hover,
[data-theme='dark'] .chip--solid, [data-theme='dark'] .card__badge { color: #1b120c; }
[data-theme='dark'] .filters .chip[aria-pressed='true'] { color: #1b120c; }
[data-theme='dark'] mark { background: color-mix(in oklab, var(--accent) 55%, transparent); }

/* Ajustes finos para pantallas chicas: menos aire antes de la foto y la receta */
@media (max-width: 560px) {
  .brand b { font-size: 1.12rem; }
  .brand svg { width: 30px; height: 30px; }
  .brand .brand-txt span { font-size: .56rem; letter-spacing: .12em; }
  .header-bar { height: 60px; gap: .6rem; }
  .icon-btn { width: 38px; height: 38px; }
  .recipe-head { padding-bottom: 1.1rem; }
  .recipe-head .lead { font-size: 1rem; }
  .facts { gap: .4rem; }
  .fact { padding: .38rem .62rem; font-size: .8rem; border-radius: 9px; }
  .tools .btn--sm { padding: .45rem .7rem; font-size: .8rem; }
  .consent { font-size: .82rem; padding: .9rem 1rem; left: .6rem; right: .6rem; bottom: .6rem; }
  .section-head { margin-bottom: 1.2rem; }
}

/* 12. Pie e impresión --------------------------------------------------- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); margin-top: 3rem; padding: clamp(2.4rem, 1.6rem + 2.4vw, 3.6rem) 0 1.6rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 2rem; }
.footer-grid > :first-child { grid-column: 1 / -1; max-width: 34rem; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr)); }
  .footer-grid > :first-child { grid-column: auto; } }
.footer-grid h4 { font-family: var(--sans); font-size: .74rem; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 .7rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.footer-grid a { color: var(--ink-2); text-decoration: none; font-size: .92rem; }
.footer-grid a:hover { color: var(--brand); }
.footer-note { margin-top: 2.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: .8rem; color: var(--ink-3); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.social { display: flex; gap: .5rem; }
.social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--line); color: var(--ink-2); }
.social a:hover { color: #fff; background: var(--brand); border-color: var(--brand); }
.social svg { width: 18px; height: 18px; fill: currentColor; stroke: none; }

@media print {
  .site-header, .site-footer, .tools, .video-block, .related, .crumbs, .consent, .hero__actions { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .recipe-layout { display: block; }
  .panel { border: 1px solid #ccc; box-shadow: none; break-inside: avoid; }
  .recipe-hero { max-height: 7cm; }
  .steps > li { break-inside: avoid; }
  a[href^='http']::after { content: ' (' attr(href) ')'; font-size: 9pt; color: #555; }
}
