/* =========================================================
   Mousse de Chocolate — hoja de estilos (plantilla 2026)
   Sin dependencias externas: tipografías del sistema.
   ========================================================= */

:root {
  --bg: #fbf6ef;
  --bg-alt: #f3e9dc;
  --surface: #ffffff;
  --ink: #2a1a12;
  --ink-soft: #5c4636;
  --cocoa: #4a2618;
  --cocoa-deep: #2e170e;
  --accent: #a8541f;        /* caramelo tostado, AA sobre crema */
  --accent-soft: #f1dcc4;
  --line: #e4d5c3;
  --focus: #1f5fbf;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(46, 23, 14, .06), 0 8px 24px rgba(46, 23, 14, .08);
  --max: 1160px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, Cambria, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b120d;
    --bg-alt: #24180f;
    --surface: #2a1c13;
    --ink: #f4e9dc;
    --ink-soft: #cdb8a4;
    --cocoa: #f0d9bf;
    --cocoa-deep: #120a06;
    --accent: #e5a368;
    --accent-soft: #3d2718;
    --line: #3d2c20;
    --focus: #8ab4ff;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
  }
}

*, *::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 { transition: none !important; animation: none !important; }
}

body {
  overflow-x: clip;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 1.0625rem/1.7 var(--sans);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--cocoa);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -.01em;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); margin-top: 1.6em; }
h3 { font-size: 1.3rem; margin-top: 1.4em; }
h4 { font-size: 1.1rem; margin-top: 1.2em; }
p, ul, ol { margin: 0 0 1em; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; padding: 0; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--cocoa-deep); color: #fff; padding: .7em 1.1em; border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .container { padding: 0 32px; } }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--cocoa); }
.brand svg { width: 36px; height: 36px; flex: none; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; line-height: 1.1; white-space: nowrap; }
@media (max-width: 420px) { .header-top .brand-name { font-size: .98rem; } .header-top .brand svg { width: 30px; height: 30px; } .nav-toggle { padding: .5em .8em; } }
.brand-name small { display: block; font-family: var(--sans); font-weight: 500; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }

/* ================= Menú principal con submenús ================= */
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.mi, .ti, .mh-ic, .go-ic, .mf-ic, .chev {
  fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none;
}
.mi .d, .ti .d, .mh-ic .d, .mf-ic .d { fill: currentColor; stroke: none; opacity: .18; }
:root { --ease-out: cubic-bezier(.2, .8, .2, 1); --ease-spring: cubic-bezier(.34, 1.56, .64, 1); }

.mnav { position: static; }
.mroot { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.mnav-head, .mnav-backdrop { display: none; }

/* Botón de cada sección */
.mtrigger {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: .95rem; color: var(--ink);
  background: none; border: 0; padding: .55em .95em; border-radius: 999px; cursor: pointer;
  transition: color .25s ease;
}
.mtrigger .ti { width: 20px; height: 20px; color: var(--accent); transition: transform .45s var(--ease-spring); }
.mtrigger .chev { width: 14px; height: 14px; stroke-width: 2.4; opacity: .55; transition: transform .35s var(--ease-out), opacity .2s; }
.mtrigger:hover .ti { transform: rotate(-12deg) scale(1.15); }
.mtrigger[aria-expanded="true"] .chev { transform: rotate(180deg); opacity: 1; }
.mtrigger[aria-expanded="true"] .ti { transform: translateY(-2px) scale(1.12); }
.mitem[data-active] > .mtrigger::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); transform: translateX(-50%);
}

/* Píldora que se desliza entre secciones */
.mnav-glider {
  position: absolute; top: 0; left: 0; height: var(--gh, 40px); width: var(--gw, 0px);
  transform: translate(var(--gx, 0px), var(--gy, 0px)); border-radius: 999px; pointer-events: none;
  background: linear-gradient(135deg, var(--accent-soft), color-mix(in srgb, var(--accent-soft) 60%, var(--surface)));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent);
  opacity: 0; transition: transform .45s var(--ease-out), width .45s var(--ease-out), opacity .25s ease;
}
.mnav.has-glider .mnav-glider { opacity: 1; }

/* Panel desplegable (escritorio) */
.mpanel {
  position: absolute; left: 0; right: 0; top: var(--ptop, 64px); z-index: 5;
  visibility: hidden; opacity: 0;
  clip-path: inset(0 0 100% 0 round 0 0 28px 28px);
  transform: translateY(-10px);
  transition: clip-path .5s var(--ease-out), opacity .3s ease, transform .5s var(--ease-out), visibility 0s linear .5s;
  background:
    radial-gradient(600px 200px at 10% 0%, color-mix(in srgb, var(--accent-soft) 70%, transparent), transparent 70%),
    var(--surface);
  border-bottom: 1px solid var(--line);
  border-radius: 0 0 28px 28px;
  box-shadow: 0 30px 60px -30px rgba(46, 23, 14, .45);
}
.mitem.is-open > .mpanel {
  visibility: visible; opacity: 1; transform: none;
  clip-path: inset(0 0 0 0 round 0 0 28px 28px);
  transition: clip-path .55s var(--ease-out), opacity .25s ease, transform .55s var(--ease-out), visibility 0s;
}
.mpanel-inner { max-width: var(--max); margin: 0 auto; padding: 28px 32px 22px; }
.mitem.instant > .mpanel, .mitem.instant .mpanel li { transition: none !important; }

/* Aparición en cascada de los elementos */
.mpanel li, .mfeature, .mnote {
  opacity: 0; transform: translateY(12px);
  transition: opacity .35s ease, transform .5s var(--ease-out);
}
.mitem.is-open .mpanel li, .mitem.is-open .mfeature, .mitem.is-open .mnote {
  opacity: 1; transform: none; transition-delay: calc(var(--i, 0) * 35ms + 90ms);
}

.mega-grid { display: grid; gap: 28px; }
.mega-recetas { grid-template-columns: 1fr 1.7fr 1fr 230px; }
.mega-aprende { grid-template-columns: 2fr 1fr; }
.mhead {
  display: flex; align-items: center; gap: 8px; margin: 0 0 12px;
  font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft);
}
.mh-ic { width: 18px; height: 18px; color: var(--accent); }
.mlist { list-style: none; margin: 0; padding: 0; }
.mlist-2 { columns: 2; column-gap: 20px; }
.mlist li { break-inside: avoid; }

/* Enlaces sencillos con subrayado animado */
.mlink { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); border-radius: 14px; }
.mlist-plain .mlink { padding: .38em 0; font-size: .95rem; }
.mlist-plain .mtxt span {
  background: linear-gradient(var(--accent), var(--accent)) left 100% / 0 2px no-repeat;
  transition: background-size .35s var(--ease-out), color .2s;
}
.mlist-plain .mlink:hover .mtxt span, .mlist-plain .mlink:focus-visible .mtxt span { background-size: 100% 2px; color: var(--accent); }
.mlist-plain .mlink::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--line); flex: none;
  transition: transform .35s var(--ease-spring), background .2s;
}
.mlist-plain .mlink:hover::before { transform: scale(1.8); background: var(--accent); }
.mlink[aria-current="page"] { color: var(--accent); font-weight: 700; }

/* Enlaces con icono "gota" que se transforma */
.mi-wrap {
  position: relative; display: grid; place-items: center; width: 42px; height: 42px; flex: none;
  color: var(--accent);
}
.mi-wrap::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: color-mix(in srgb, var(--accent-soft) 85%, var(--surface));
  border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
  transition: border-radius .6s var(--ease-out), transform .6s var(--ease-out), background .3s;
}
.mi { position: relative; z-index: 1; width: 22px; height: 22px; transition: transform .5s var(--ease-spring); }
.mlink:hover .mi-wrap::before, .mlink:focus-visible .mi-wrap::before {
  border-radius: 58% 42% 37% 63% / 56% 59% 41% 44%; transform: rotate(35deg) scale(1.08);
  background: var(--accent);
}
.mlink:hover .mi, .mlink:focus-visible .mi { transform: rotate(-10deg) scale(1.12); color: #fff; }
@media (prefers-color-scheme: dark) { .mlink:hover .mi, .mlink:focus-visible .mi { color: #1b120d; } }
.mlist-icons .mlink { padding: 6px 8px 6px 4px; margin: 0 0 4px; transition: background .25s, transform .35s var(--ease-out); }
.mlist-icons .mlink:hover { background: var(--bg); transform: translateX(4px); }
.mtxt { display: flex; flex-direction: column; line-height: 1.25; font-weight: 600; font-size: .95rem; }
.mtxt small { font-weight: 400; font-size: .82rem; color: var(--ink-soft); margin-top: 2px; }

/* Chips de dieta */
.mlist-chips { display: flex; flex-direction: column; gap: 6px; }
.mlist-chips .mlink { padding: 4px 10px 4px 4px; border: 1px solid var(--line); border-radius: 999px; font-size: .92rem; font-weight: 600; transition: border-color .25s, transform .35s var(--ease-out); }
.mlist-chips .mi-wrap { width: 32px; height: 32px; }
.mlist-chips .mi { width: 18px; height: 18px; }
.mlist-chips .mlink:hover { border-color: var(--accent); transform: translateX(4px); }

/* Tarjetas (ocasiones / útiles) */
.mlist-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mlist-tools { grid-template-columns: repeat(4, 1fr); }
.mlist-cards .mlink {
  height: 100%; padding: 16px; border: 1px solid var(--line); background: var(--bg);
  border-radius: 18px; transition: transform .4s var(--ease-out), box-shadow .4s, border-color .25s;
}
.mlist-tools .mlink { flex-direction: column; align-items: flex-start; }
.mlist-cards .mlink:hover, .mlist-cards .mlink:focus-visible {
  transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: 0 16px 30px -18px rgba(46, 23, 14, .5);
}

/* Receta destacada */
.mfeature {
  position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 20px;
  text-decoration: none; color: #fff; background: var(--cocoa-deep); min-height: 250px; isolation: isolate;
}
.mfeature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease-out); }
.mfeature::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgba(30, 14, 7, .92)); }
.mfeature:hover img { transform: scale(1.08); }
.mfeature-body { margin-top: auto; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.mfeature-kicker { font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #f1c79b; }
.mfeature strong { font-family: var(--serif); font-size: 1.15rem; line-height: 1.2; }
.mfeature-go { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; font-weight: 600; }
.go-ic { width: 16px; height: 16px; stroke-width: 2.2; transition: transform .35s var(--ease-spring); }
.mfeature:hover .go-ic, .mega-foot:hover .go-ic { transform: translateX(5px); }

.mnote { display: flex; gap: 10px; margin-top: 16px; padding: 12px 14px; border-radius: 14px; background: var(--bg); font-size: .85rem; color: var(--ink-soft); }
.mega-foot {
  display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 22px; padding: 12px;
  border-top: 1px dashed var(--line); font-weight: 700; font-size: .92rem; color: var(--accent); text-decoration: none;
}
.mf-ic { width: 18px; height: 18px; }

/* Botón hamburguesa animado */
.nav-toggle {
  display: none; align-items: center; gap: 10px;
  font: inherit; font-weight: 700; font-size: .95rem;
  background: var(--cocoa); color: var(--bg);
  border: 0; border-radius: 999px; padding: .55em 1.1em .55em .9em; cursor: pointer;
}
.burger { position: relative; width: 18px; height: 14px; }
.burger i { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: transform .45s var(--ease-spring), opacity .2s, top .3s var(--ease-out); }
.burger i:nth-child(1) { top: 0; }
.burger i:nth-child(2) { top: 6px; width: 70%; }
.burger i:nth-child(3) { top: 12px; }
.nav-toggle[aria-expanded="true"] .burger i:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .burger i:nth-child(2) { opacity: 0; transform: translateX(-8px); }
.nav-toggle[aria-expanded="true"] .burger i:nth-child(3) { top: 6px; transform: rotate(-45deg); }

@media (max-width: 1100px) and (min-width: 901px) {
  .mega-recetas { grid-template-columns: 1fr 1.6fr 1fr; }
  .mega-recetas .mfeature { display: none; }
  .mlist-tools { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Móvil: panel lateral con acordeón ---------- */
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .menu-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .mnav {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 70; width: min(90vw, 400px);
    background: var(--surface); overflow-y: auto; overscroll-behavior: contain;
    transform: translateX(105%); visibility: hidden;
    transition: transform .55s var(--ease-out), visibility 0s linear .55s;
    box-shadow: -30px 0 60px -20px rgba(0, 0, 0, .35);
    border-radius: 24px 0 0 24px; padding: 0 16px 32px;
  }
  .mnav.is-open { transform: none; visibility: visible; transition: transform .55s var(--ease-out), visibility 0s; }
  .mnav-head {
    display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 2;
    background: var(--surface); padding: 18px 4px 12px; font-family: var(--serif); font-weight: 700; font-size: 1.3rem; color: var(--cocoa);
  }
  .mclose { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: transform .4s var(--ease-spring); }
  .mclose:hover { transform: rotate(90deg); }
  .mclose svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
  .mnav-backdrop {
    display: block; position: fixed; inset: 0; z-index: 60; background: rgba(30, 14, 7, .45);
    backdrop-filter: blur(3px); opacity: 0; transition: opacity .4s ease;
  }
  .mnav-backdrop.is-visible { opacity: 1; }
  .mnav-glider { display: none; }

  .mroot { flex-direction: column; gap: 6px; }
  .mitem { border: 1px solid var(--line); border-radius: 18px; background: var(--bg); overflow: hidden;
    opacity: 0; transform: translateX(30px); transition: opacity .4s ease, transform .5s var(--ease-out); }
  .mnav.is-open .mitem { opacity: 1; transform: none; }
  .mnav.is-open .mitem:nth-child(1) { transition-delay: .12s; }
  .mnav.is-open .mitem:nth-child(2) { transition-delay: .18s; }
  .mnav.is-open .mitem:nth-child(3) { transition-delay: .24s; }
  .mnav.is-open .mitem:nth-child(4) { transition-delay: .30s; }
  .mtrigger { width: 100%; padding: 14px 16px; border-radius: 0; font-size: 1.05rem; }
  .mtrigger .chev { margin-left: auto; }
  .mitem[data-active] > .mtrigger::after { left: auto; right: 44px; bottom: 50%; transform: translateY(50%); }

  .mpanel {
    position: static; visibility: visible; opacity: 1; transform: none; clip-path: none;
    display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease-out);
    background: none; border: 0; border-radius: 0; box-shadow: none;
  }
  .mitem.is-open > .mpanel { grid-template-rows: 1fr; clip-path: none; }
  .mpanel-inner { overflow: hidden; min-height: 0; padding: 0 14px; }
  .mitem.is-open .mpanel-inner { padding-bottom: 14px; }
  .mega-grid, .mega-recetas, .mega-aprende { grid-template-columns: 1fr; gap: 18px; }
  .mfeature { min-height: 160px; }
  .mlist-cards, .mlist-tools { grid-template-columns: 1fr; gap: 8px; }
  .mlist-tools .mlink { flex-direction: row; align-items: center; }
  .mlist-cards .mlink { padding: 10px 12px; }
  .mlist-2 { columns: 2 130px; }
}
.no-js .mitem:hover > .mpanel, .no-js .mitem:focus-within > .mpanel { visibility: visible; opacity: 1; transform: none; clip-path: none; }
.no-js .mpanel li { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .mpanel, .mpanel li, .mfeature, .mnote, .mnav, .mitem, .mnav-glider { transition: none !important; }
}

/* Barra de recetas (chips) */
.recipe-bar { border-top: 1px solid var(--line); }
.recipe-bar ul {
  list-style: none; margin: 0; padding: 10px 0;
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin;
}
.recipe-bar li { flex: none; }
.recipe-bar a {
  display: inline-block; padding: .3em .95em; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); text-decoration: none; font-size: .9rem; font-weight: 500;
}
.recipe-bar a:hover { border-color: var(--accent); color: var(--accent); }
.recipe-bar a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: #fff; }
@media (prefers-color-scheme: dark) { .recipe-bar a[aria-current="page"] { color: #1b120d; } }
.recipe-bar .label { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); align-self: center; padding-right: 4px; }

/* ---------- Foto de cabecera (todo el ancho) ---------- */
.banner { background: #3b4a55; }
.banner img {
  width: 100%; height: clamp(120px, 22vw, 320px);
  object-fit: cover; object-position: left center;
}

.banner-ia { position: relative; background: #e9dccd; }
.banner-ia img { object-position: 70% 50%; }
.banner-label {
  position: absolute; right: 10px; bottom: 6px;
  font-size: 10px; line-height: 1; letter-spacing: .04em;
  color: rgba(255, 255, 255, .78); text-shadow: 0 0 3px rgba(0, 0, 0, .45);
  opacity: .7; pointer-events: none; user-select: none;
}

/* Etiqueta de imágenes generadas con IA en tarjetas y fichas */
.card-media, .guide-thumb-wrap { position: relative; }
.ai-tag {
  position: absolute; right: 8px; bottom: 6px; z-index: 2;
  font-size: 9px; line-height: 1; letter-spacing: .04em;
  color: rgba(255, 255, 255, .8); text-shadow: 0 0 3px rgba(0, 0, 0, .5);
  opacity: .7; pointer-events: none; user-select: none;
}
.hero-figure .ai-tag { right: 14px; bottom: 10px; font-size: 10px; }
.guide-thumb-wrap { margin: -22px -22px 8px; overflow: hidden; }
.guide-thumb-wrap .guide-thumb { margin: 0; width: 100%; }

/* Enlaces externos discretos y aviso de edad */
a.ext {
  color: inherit; text-decoration: underline; text-decoration-style: dotted;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: .22em;
}
a.ext:hover { color: var(--accent); text-decoration-color: var(--accent); }
.age {
  display: inline-block; font-size: .68em; font-weight: 700; letter-spacing: .02em; vertical-align: .15em;
  padding: .05em .45em; border-radius: 999px; background: var(--accent-soft); color: var(--accent);
}

/* Bloque «sobre la web» (portada) */
.about-band { padding: 8px 0 48px; }
.about-card {
  display: flex; gap: 20px; align-items: flex-start; max-width: 860px; margin: 0 auto;
  padding: 24px 28px; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--surface), var(--bg-alt));
}
.about-mark {
  flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--cocoa); color: #f1c79b; font-size: 1.1rem;
}
.about-card h2 { margin: 0 0 6px; font-size: 1.3rem; }
.about-card p { margin: 0; color: var(--ink-soft); }

/* Recomendaciones (portada) */
.recos-head { max-width: 62ch; margin-bottom: 28px; }
.recos-head h2 { margin: 0 0 8px; }
.recos-head p { color: var(--ink-soft); margin: 0; }
.recos-sub { margin: 40px 0 16px; font-size: 1.25rem; }
.tip-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.tip-grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.tip-card {
  position: relative; padding: 22px 22px 20px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s;
}
.tip-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tip-icon {
  display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 12px; font-size: 1.35rem;
  border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; background: var(--accent-soft);
}
.tip-card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.tip-card p { margin: 0; font-size: .95rem; color: var(--ink-soft); }

/* Maridaje (receta con menta) */
.pairing {
  display: flex; gap: 18px; align-items: flex-start; max-width: 860px;
  padding: 22px 26px; border-radius: var(--radius); background: var(--bg-alt); border: 1px solid var(--line);
}
.pairing-icon { font-size: 1.8rem; line-height: 1; }
.pairing h2 { margin: 0 0 6px; font-size: 1.3rem; }
.pairing p { margin: 0; color: var(--ink-soft); }
@media (max-width: 560px) { .about-card, .pairing { flex-direction: column; gap: 12px; } }

/* Aviso sanitario */
.health-note { background: #fff3cd; border-bottom: 1px solid #f0d48a; color: #4d3800; }
.health-note .container { display: flex; gap: 12px; align-items: flex-start; padding-top: 12px; padding-bottom: 12px; }
.health-note svg { width: 24px; height: 24px; flex: none; fill: none; stroke: #b07800; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }
.health-note p { margin: 0; font-size: .95rem; line-height: 1.5; }
@media (prefers-color-scheme: dark) {
  .health-note { background: #3a2c0a; border-color: #6b5214; color: #ffe8a8; }
  .health-note svg { stroke: #f0c14b; }
}

/* ---------- Migas ---------- */
.breadcrumb { font-size: .9rem; color: var(--ink-soft); margin: 24px 0 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: var(--line); }
.breadcrumb a { color: var(--ink-soft); }

/* ---------- Hero ---------- */
.hero { padding: 28px 0 40px; }
.hero-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 860px) { .hero-grid { grid-template-columns: 1.25fr .75fr; gap: 56px; } }
.kicker {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .8em;
}
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 60ch; }

.meta { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 1.4em 0 0; }
.meta li {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: .55em .9em; line-height: 1.25; min-width: 108px;
}
.meta span { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
.meta strong { font-family: var(--serif); font-size: 1.05rem; color: var(--cocoa); }

.hero-figure { margin: 0; position: relative; justify-self: center; width: min(100%, 360px); }
.hero-figure::before {
  content: ""; position: absolute; inset: 18px -14px -14px 18px; border-radius: 50% 50% var(--radius) var(--radius);
  background: var(--accent-soft); z-index: 0;
}
.hero-figure img {
  position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 50% 50% var(--radius) var(--radius); box-shadow: var(--shadow);
}

/* ---------- Cuerpo de receta ---------- */
.recipe-layout { display: grid; gap: 32px; padding-bottom: 24px; }
@media (min-width: 900px) { .recipe-layout { grid-template-columns: 330px 1fr; gap: 56px; align-items: start; } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.ingredients { position: relative; }
@media (min-width: 900px) { .ingredients { position: sticky; top: 140px; } }
.ingredients h2 { margin-top: 0; font-size: 1.5rem; }
.ingredients .hint { font-size: .88rem; color: var(--ink-soft); margin-bottom: .8em; }
.ingredients ul { list-style: none; padding: 0; margin: 0; }
.ingredients li { border-top: 1px dashed var(--line); }
.ingredients li:first-child { border-top: 0; }
.ingredients label { display: flex; gap: 12px; align-items: flex-start; padding: .6em 0; cursor: pointer; }
.ingredients input {
  appearance: none; -webkit-appearance: none; flex: none; margin: .2em 0 0;
  width: 1.2em; height: 1.2em; border: 2px solid var(--accent); border-radius: 6px; background: var(--surface);
  display: grid; place-content: center; cursor: pointer;
}
.ingredients input::after { content: ""; width: .6em; height: .35em; border: solid #fff; border-width: 0 0 2px 2px; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.ingredients input:checked { background: var(--accent); }
.ingredients input:checked::after { opacity: 1; }
.ingredients input:checked + span { text-decoration: line-through; color: var(--ink-soft); }

.steps { counter-reset: paso; list-style: none; padding: 0; margin: 0; }
.steps > li { counter-increment: paso; position: relative; padding: 0 0 28px 64px; }
.steps > li::before {
  content: counter(paso); position: absolute; left: 0; top: -2px;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--cocoa); color: var(--bg); font-family: var(--serif); font-weight: 700; font-size: 1.2rem;
}
.steps > li::after { content: ""; position: absolute; left: 21px; top: 48px; bottom: 6px; width: 2px; background: var(--line); }
.steps > li:last-child::after { display: none; }
.steps h3 { margin: .2em 0 .4em; font-size: 1.15rem; }
.steps p { margin: 0; }
.step-img { float: right; width: 140px; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm); margin: 0 0 12px 16px; }
@media (max-width: 520px) { .step-img { float: none; width: 100%; aspect-ratio: 16/9; margin: 8px 0 12px; } }
.steps > li::after, .steps > li { overflow: hidden; }

.tip {
  border-left: 4px solid var(--accent); background: var(--accent-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 16px 20px; margin: 8px 0 24px;
}
.tip strong:first-child { color: var(--cocoa); }

/* ---------- Bloques de texto ---------- */
.section { padding: 48px 0; }
.section-alt { background: var(--bg-alt); }
.prose > * { max-width: 74ch; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose img.float { float: right; width: min(46%, 340px); border-radius: var(--radius); margin: .3em 0 1em 1.4em; }
@media (max-width: 560px) { .prose img.float { float: none; width: 100%; margin: 0 0 1em; } }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.section-head h2 { margin: 0; }
.source { font-size: .9rem; color: var(--ink-soft); font-style: italic; }

/* Menús */
.menu-grid { display: grid; gap: 20px; }
@media (min-width: 800px) { .menu-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); } }
.menu-card h3 { margin-top: 0; }
.menu-card dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0 0 1em; font-size: .95rem; }
.menu-card dt { font-weight: 700; color: var(--accent); }
.menu-card dd { margin: 0; }
.menu-card p { font-size: .98rem; }

/* Tarjetas de recetas */
.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); list-style: none; padding: 0; margin: 0; }
.recipe-card {
  position: relative; display: flex; flex-direction: column; height: 100%;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.recipe-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.recipe-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.recipe-card .body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.recipe-card h3 { margin: 0; font-size: 1.15rem; }
.recipe-card h3 a { color: var(--cocoa); text-decoration: none; }
.recipe-card h3 a::after { content: ""; position: absolute; inset: 0; }
.recipe-card p { margin: 0; font-size: .95rem; color: var(--ink-soft); }
.recipe-card .more { margin-top: auto; padding-top: 8px; font-weight: 600; color: var(--accent); font-size: .92rem; }

/* FAQ */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 52px 16px 20px; position: relative;
  font-family: var(--serif); font-weight: 700; font-size: 1.1rem; color: var(--cocoa);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-family: var(--sans); font-size: 1.2rem;
}
.faq details[open] summary::after { content: "−"; }
.faq .answer { padding: 0 20px 16px; }
.faq .answer p:last-child { margin-bottom: 0; }

/* Mapa web */
.sitemap-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.sitemap-grid h2 { font-size: 1.3rem; margin-top: 0; }
.sitemap-grid ul { list-style: none; padding: 0; margin: 0; }
.sitemap-grid li { padding: .45em 0; border-top: 1px dashed var(--line); }
.sitemap-grid li:first-child { border-top: 0; }

/* Páginas legales */
.legal h2 { font-size: 1.4rem; padding-top: 1em; border-top: 1px solid var(--line); }
.legal h2:first-of-type { border-top: 0; padding-top: 0; }
.legal .updated { font-size: .9rem; color: var(--ink-soft); }
.data-list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 20px; list-style: none; }
.data-list li { padding: .25em 0; }

/* Glosario */
.glossary dt { font-family: var(--serif); font-weight: 700; color: var(--cocoa); font-size: 1.1rem; margin-top: 1em; }
.glossary dd { margin: .2em 0 0; }

/* 404 */
.not-found { text-align: center; padding: 72px 0 56px; }
.not-found .big { font-family: var(--serif); font-size: clamp(4rem, 3rem + 6vw, 8rem); color: var(--accent); line-height: 1; margin: 0; }
.btn {
  display: inline-block; padding: .75em 1.4em; border-radius: 999px; font-weight: 600; text-decoration: none;
  background: var(--cocoa); color: var(--bg);
}
.btn:hover { background: var(--accent); color: #fff; }

/* ---------- Pie ---------- */
.site-footer {
  --f-bg: #2a150c;
  --f-ink: #efe2d3;
  --f-soft: #c9b29c;
  --f-gold: #e0a066;
  --f-line: rgba(240, 217, 191, .14);
  position: relative; isolation: isolate; overflow-x: clip;
  margin-top: 110px; padding: 40px 0 28px;
  background:
    radial-gradient(900px 420px at 8% 0%, rgba(224, 144, 74, .20), transparent 60%),
    radial-gradient(700px 380px at 100% 100%, rgba(168, 84, 31, .28), transparent 65%),
    linear-gradient(180deg, #2e170e 0%, #1f0f08 100%);
  color: var(--f-ink);
}
/* textura sutil tipo cacao */
.site-footer::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* marca de agua */
.site-footer::before {
  content: ""; position: absolute; right: -60px; top: 40px; width: 420px; height: 420px; z-index: -1; pointer-events: none;
  background: radial-gradient(circle, rgba(224, 160, 102, .10) 0 38%, transparent 39% 52%, rgba(224, 160, 102, .06) 53% 54%, transparent 55% 68%, rgba(224, 160, 102, .05) 69% 70%, transparent 71%);
}

/* borde de chocolate fundido */
.footer-wave { position: absolute; left: 0; bottom: calc(100% - 1px); width: 100%; height: 90px; display: block; }
.footer-wave .wave-back { fill: #8a4b2a; opacity: .55; transform-origin: center bottom; animation: wave-breathe 9s ease-in-out infinite alternate; }
.footer-wave .wave-front { fill: #2e170e; }
@keyframes wave-breathe { from { transform: scaleY(.85); } to { transform: scaleY(1.08); } }

.site-footer a { color: var(--f-ink); text-decoration: none; }
.site-footer :focus-visible { outline-color: var(--f-gold); }

/* Bloque superior: marca + llamada a la acción */
.footer-hero { display: grid; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid var(--f-line); }
@media (min-width: 900px) { .footer-hero { grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: center; } }
.brand-lg svg { width: 52px; height: 52px; filter: drop-shadow(0 6px 14px rgba(0,0,0,.35)); }
.brand-lg .brand-name { font-size: clamp(1.1rem, 5.2vw, 1.6rem); }
.footer-brand { min-width: 0; }
.footer-hero > *, .footer-grid > * { min-width: 0; }
.footer-brand .brand { color: #fff; margin-bottom: 16px; }
.footer-brand .brand-name small { color: var(--f-soft); }
.footer-brand > p { color: var(--f-soft); font-size: 1rem; max-width: 52ch; }

.footer-badges { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.footer-badges li {
  display: inline-flex; align-items: center; gap: 10px; padding: .55em 1em .55em .7em;
  border: 1px solid var(--f-line); border-radius: 999px; font-size: .88rem; color: var(--f-soft);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
}
.footer-badges strong { color: #fff; font-weight: 600; }
.footer-badges svg, .footer-contact svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--f-gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.footer-cta {
  position: relative; border-radius: var(--radius); padding: 28px;
  background: linear-gradient(145deg, rgba(255,255,255,.09), rgba(255,255,255,.02));
  border: 1px solid var(--f-line);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.08);
  overflow: hidden;
}
.footer-cta::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, rgba(224,160,102,.8), transparent 40%, transparent 60%, rgba(224,160,102,.45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.footer-cta::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.08), transparent);
  transform: skewX(-18deg); transition: left .9s ease;
}
.footer-cta:hover::after { left: 130%; }
.footer-cta-kicker { margin: 0 0 6px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--f-gold); }
.footer-cta h2 { font-family: var(--serif); text-transform: none; letter-spacing: -.01em; font-size: 1.55rem; color: #fff; margin: 0 0 10px; }
.footer-cta > p { color: var(--f-soft); margin-bottom: 20px; }
.footer-cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.btn-light {
  display: inline-block; padding: .7em 1.4em; border-radius: 999px; font-weight: 700;
  background: linear-gradient(180deg, #f6dcc0, #e0a066); color: #2a150c !important;
  box-shadow: 0 8px 20px -8px rgba(224,160,102,.7);
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -10px rgba(224,160,102,.85); }
.link-arrow { font-weight: 600; color: var(--f-ink); }
.link-arrow::after { content: "→"; display: inline-block; margin-left: .4em; transition: transform .2s ease; }
.link-arrow:hover::after { transform: translateX(4px); }

/* Columnas de enlaces */
.footer-grid { display: grid; gap: 36px 32px; padding: 40px 0; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.7fr 1fr 1fr 1.1fr; } }
.site-footer .footer-col h2 {
  position: relative; color: #fff; font-family: var(--sans); font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em; margin: 0 0 18px; padding-bottom: 12px;
}
.site-footer .footer-col h2::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--f-gold), transparent);
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links.two-cols { columns: 2 150px; column-gap: 28px; }
.footer-links li { padding: .3em 0; break-inside: avoid; font-size: .95rem; }
.footer-links a {
  color: var(--f-soft);
  background: linear-gradient(var(--f-gold), var(--f-gold)) left bottom / 0 1px no-repeat;
  padding-bottom: 2px; transition: color .2s ease, background-size .3s ease;
}
.footer-links a:hover, .footer-links a:focus-visible { color: #fff; background-size: 100% 1px; }
.footer-contact { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: .95rem; }
.footer-contact a { border-bottom: 1px solid rgba(224,160,102,.5); }
.footer-contact a:hover { border-color: var(--f-gold); color: #fff; }
.footer-note { color: var(--f-soft); font-size: .9rem; }

.footer-ai { margin: 0 0 18px; font-size: .8rem; line-height: 1.5; color: var(--f-soft); opacity: .85; max-width: 90ch; }

/* Barra inferior */
.footer-bottom {
  border-top: 1px solid var(--f-line); padding-top: 22px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  font-size: .86rem; color: var(--f-soft);
}
.footer-bottom p { margin: 0; }
.footer-bottom .sep { margin: 0 .5em; color: var(--f-gold); }
.footer-bottom p a:hover { color: #fff; }
.to-top {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--f-ink);
}
.to-top svg {
  width: 38px; height: 38px; padding: 9px; border-radius: 50%;
  border: 1px solid var(--f-line); background: rgba(255,255,255,.05);
  fill: none; stroke: var(--f-gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .25s ease, background .25s ease, border-color .25s ease;
}
.to-top:hover svg { transform: translateY(-3px); background: var(--f-gold); border-color: var(--f-gold); stroke: #2a150c; }

/* Aparición suave al hacer scroll (solo con JavaScript) */
.reveal-ready .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal-ready .reveal.is-visible { opacity: 1; transform: none; }
.reveal-ready .footer-grid.reveal { transition-delay: .12s; }
@media (prefers-reduced-motion: reduce) {
  .reveal-ready .reveal { opacity: 1; transform: none; }
  .footer-wave .wave-back { animation: none; }
}

/* ---------- Elementos de recetas contrastadas ---------- */
.verified {
  display: flex; gap: 14px; align-items: flex-start; margin: 8px 0 24px; padding: 16px 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}
.verified svg { width: 28px; height: 28px; flex: none; fill: none; stroke: #3f7a33; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
@media (prefers-color-scheme: dark) { .verified svg { stroke: #8fd07c; } }
.verified strong { display: block; color: var(--cocoa); font-family: var(--serif); font-size: 1.05rem; }
.verified p { margin: .2em 0 0; font-size: .93rem; color: var(--ink-soft); }
.allergen-note, .egg-note { font-size: .88rem; margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); color: var(--ink-soft); }
.egg-note { border-top: 0; padding: 10px 12px; margin-top: 10px; background: var(--accent-soft); border-radius: var(--radius-sm); color: var(--ink); }

.recipe-bar .chip-all { font-weight: 700; border-style: dashed; }
.link-more { font-weight: 600; text-decoration: none; }
.link-more:hover { text-decoration: underline; }

/* Filtros de recetas */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.filter-chip {
  font: inherit; font-size: .92rem; font-weight: 500; cursor: pointer;
  padding: .4em 1em; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink);
}
.filter-chip:hover { border-color: var(--accent); color: var(--accent); }
.filter-chip[aria-pressed="true"] { background: var(--cocoa); border-color: var(--cocoa); color: var(--bg); }
.filter-count { color: var(--ink-soft); font-size: .92rem; margin-bottom: 20px; }
.cards li[hidden] { display: none; }

/* Tabla de alérgenos */
.table-wrap { overflow-x: auto; margin: 24px 0 32px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.allergen-table { border-collapse: collapse; width: 100%; min-width: 720px; font-size: .92rem; }
.allergen-table th, .allergen-table td { padding: .65em .8em; border-bottom: 1px solid var(--line); text-align: center; }
.allergen-table thead th { background: var(--bg-alt); color: var(--cocoa); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; position: sticky; top: 0; }
.allergen-table tbody th { text-align: left; font-weight: 500; }
.allergen-table tbody tr:hover { background: var(--bg-alt); }
.allergen-table td.yes { color: var(--accent); font-size: 1.1rem; }
.allergen-table td.no { color: var(--line); }

/* Calculadora */
.calc { display: grid; gap: 24px; }
@media (min-width: 900px) { .calc { grid-template-columns: 340px 1fr; align-items: start; } .calc-help { grid-column: 1 / -1; } }
.calc-form .field { margin-bottom: 18px; }
.calc-form label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--cocoa); }
.calc-form select, .calc-form input {
  font: inherit; width: 100%; padding: .6em .8em; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
}
.stepper { display: flex; gap: 8px; }
.stepper input { text-align: center; font-size: 1.2rem; font-weight: 700; }
.stepper button {
  flex: none; width: 48px; font-size: 1.4rem; cursor: pointer; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--surface); color: var(--cocoa);
}
.stepper button:hover { border-color: var(--accent); color: var(--accent); }
.calc-result h2 { margin-top: 0; font-size: 1.4rem; }
.calc-result ul { list-style: none; padding: 0; }
.calc-result li { padding: .55em 0; border-top: 1px dashed var(--line); }
.calc-result li:first-child { border-top: 0; }
.calc-result .q { font-weight: 700; color: var(--accent); }

/* Fotografías de apoyo */
.photo { float: right; width: min(42%, 420px); margin: .4em 0 1.4em 1.8em; position: relative; }
.photo img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius);
  box-shadow: 0 18px 40px -22px rgba(46, 23, 14, .55);
}
.photo::after {
  content: ""; position: absolute; inset: 10px -10px -10px 10px; z-index: -1;
  border-radius: var(--radius); background: var(--accent-soft);
}
.photo-wide { float: none; width: 100%; margin: 0 0 32px; }
.photo-wide img { aspect-ratio: 3 / 1; }
.photo-wide::after { display: none; }
@media (max-width: 700px) {
  .photo { float: none; width: 100%; margin: 0 0 1.4em; }
  .photo::after { display: none; }
  .photo-wide img { aspect-ratio: 2 / 1; }
}
.guide-body h2 { clear: both; }
.guide-body .toc + h2, .guide-body > h2:first-of-type { clear: none; }

/* Guías */
.guide-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.guide-card {
  position: relative; height: 100%; display: flex; flex-direction: column; gap: 8px;
  padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  border-top: 4px solid var(--accent); transition: transform .2s ease, box-shadow .2s ease;
}
.guide-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.guide-card.has-thumb { overflow: hidden; }
.guide-thumb {
  margin: -22px -22px 8px; width: calc(100% + 44px); max-width: none; aspect-ratio: 3 / 2; object-fit: cover;
  transition: transform .8s cubic-bezier(.2, .8, .2, 1);
}
.guide-card:hover .guide-thumb { transform: scale(1.06); }
.guide-cultura { border-top-color: #7d4428; }
.guide-util { border-top-color: #3f7a33; }
.guide-ocasion { border-top-color: #c2264a; }
.guide-kicker { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.guide-card h3 { margin: 0; font-size: 1.15rem; }
.guide-card h3 a { color: var(--cocoa); text-decoration: none; }
.guide-card h3 a::after { content: ""; position: absolute; inset: 0; }
.guide-card p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.guide-card .more { margin-top: auto; font-weight: 600; color: var(--accent); font-size: .92rem; }
.guide-layout { padding-bottom: 24px; }
.toc { margin: 0 0 32px; padding: 20px 24px; }
.toc h2 { font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; margin: 0 0 10px; }
.toc ol { margin: 0; padding-left: 1.2em; columns: 2 220px; }
.toc li { margin-bottom: .3em; }
.guide-body h2 { scroll-margin-top: 150px; }

/* Contacto */
.contact-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.contact-grid h2 { margin-top: 0; font-size: 1.25rem; }
.contact-mail { font-size: 1.1rem; font-weight: 600; }

/* Impresión: solo la receta */
@media print {
  .site-header, .site-footer, .recipe-bar, .breadcrumb, .related, .no-print { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .card { box-shadow: none; border: 1px solid #ccc; }
  .hero-figure img { max-width: 220px; }
  a { color: #000; text-decoration: none; }
}
