/* === Tipografías locales (OFL) === */
/* Fraunces – latin-ext */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/fraunces-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Fraunces – latin */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/fraunces-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Fraunces – latin-ext */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/fraunces-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Fraunces – latin */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/fraunces-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Fraunces – latin-ext */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/fraunces-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Fraunces – latin */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/fraunces-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Inter – latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Inter – latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Inter – latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Inter – latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Inter – latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Inter – latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* === Fin tipografías locales === */

/* ==========================================================================
   bizcochodelimon.com — hoja de estilos principal (2026)
   ========================================================================== */

:root {
  --limon: #f5c518;
  --limon-suave: #fff6cc;
  --limon-oscuro: #8a6d00;
  --verde: #5f7d1f;
  --verde-suave: #eef3df;
  --crema: #fffdf6;
  --papel: #ffffff;
  --tinta: #2b2a26;
  --tinta-suave: #5c5a52;
  --borde: #ece5cf;
  --sombra: 0 10px 30px rgba(60, 50, 10, .08);
  --radio: 18px;
  --ancho: 1120px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  background: var(--crema);
  color: var(--tinta);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
}

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

a { color: var(--verde); text-underline-offset: 3px; }
a:hover { color: var(--limon-oscuro); }

:focus-visible { outline: 3px solid var(--verde); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.2; color: var(--tinta); font-weight: 600; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 2em 0 .6em; }
h3 { font-size: 1.3rem; margin: 1.6em 0 .5em; }
h4 { font-size: 1.1rem; margin: 1.4em 0 .4em; }

p { margin: 0 0 1.1em; }

.contenedor { width: 100%; max-width: var(--ancho); margin: 0 auto; padding: 0 20px; }

/* Saltar al contenido */
.saltar {
  position: absolute; left: -9999px; top: 0;
  background: var(--tinta); color: #fff; padding: 10px 16px; z-index: 100; border-radius: 0 0 8px 0;
}
.saltar:focus { left: 0; color: #fff; }

/* ==========================================================================
   Cabecera
   ========================================================================== */
.cabecera {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 253, 246, .94);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--borde);
}
.cabecera .contenedor { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }

.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--tinta); font-family: var(--serif); font-weight: 600; font-size: 1.2rem; }
.marca img { width: 36px; height: 36px; }
.marca { white-space: nowrap; }
/* Logo de la cabecera: BizcochoDeLimón.com */
.marca-cabecera { gap: 11px; }
.marca-insignia {
  position: relative; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; flex-shrink: 0;
  border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffffff 0, #fff6cc 55%, #ffe680 100%);
  box-shadow: inset 0 0 0 1.5px #f3d65a, 0 4px 12px -4px rgba(138, 109, 0, .45);
}
.marca-insignia::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px dashed rgba(95, 125, 31, .45);
  transition: transform .8s ease;
}
.marca-cabecera .marca-insignia img { width: 28px; height: 28px; transition: transform .45s cubic-bezier(.34,1.56,.64,1); }
.marca-cabecera:hover .marca-insignia img { transform: rotate(-16deg) scale(1.08); }
.marca-cabecera:hover .marca-insignia::after { transform: rotate(90deg); }

.marca-texto { display: inline-flex; align-items: baseline; font-family: var(--serif); font-size: 1.3rem; letter-spacing: -.015em; line-height: 1; }
.m-bizcocho { color: var(--tinta); font-weight: 700; }
.m-de { color: var(--verde); font-weight: 600; font-style: italic; margin: 0 .04em 0 .06em; }
.m-limon {
  font-weight: 700; color: #a87b00;
  background: linear-gradient(120deg, #b38600 0%, #d9a404 45%, #a87b00 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.m-com {
  align-self: center; margin-left: 5px; padding: 3px 7px 4px; border-radius: 999px;
  font-family: var(--sans); font-size: .62em; font-weight: 600; letter-spacing: .02em; line-height: 1;
  color: var(--limon-oscuro); background: var(--limon-suave); box-shadow: inset 0 0 0 1px #f0dc8a;
  transition: background .25s, color .25s;
}
.marca-cabecera:hover .m-com { background: var(--limon); color: var(--tinta); }
@media (max-width: 420px) {
  .marca-cabecera { gap: 8px; }
  .marca-insignia { width: 34px; height: 34px; }
  .marca-cabecera .marca-insignia img { width: 22px; height: 22px; }
  .marca-texto { font-size: 1.08rem; }
  .m-com { margin-left: 3px; padding: 2px 5px 3px; }
}
@media (max-width: 345px) {
  .cabecera .contenedor { gap: 8px; padding: 0 14px; }
  .marca-texto { font-size: 1rem; }
  .marca-insignia { width: 30px; height: 30px; }
  .marca-insignia::after { inset: -3px; }
  .marca-cabecera .marca-insignia img { width: 20px; height: 20px; }
}
@media (max-width: 380px) { .marca { font-size: 1.05rem; gap: 8px; } .marca img { width: 30px; height: 30px; } .menu-texto { display: none; } }
.marca:hover { color: var(--tinta); }

.cabecera .contenedor { position: relative; }

/* Iconos (sprite img/iconos.svg) */
.ico {
  width: 18px; height: 18px; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* --- Botón hamburguesa --- */
.menu-boton {
  display: none; align-items: center; gap: 9px; background: var(--papel); border: 1px solid var(--borde);
  border-radius: 12px; padding: 9px 14px; font: inherit; font-size: .95rem; font-weight: 500; color: var(--tinta); cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}
.menu-boton:hover { border-color: var(--limon); box-shadow: 0 0 0 3px var(--limon-suave); }
.hamb { position: relative; width: 20px; height: 14px; }
.hamb > span, .hamb > span::before, .hamb > span::after {
  position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: var(--tinta);
}
.hamb > span { top: 6px; transition: background .2s .1s; }
.hamb > span::before, .hamb > span::after { content: ""; transition: top .2s .15s, transform .25s; }
.hamb > span::before { top: -6px; }
.hamb > span::after { top: 6px; }
.menu-boton[aria-expanded="true"] .hamb > span { background: transparent; transition-delay: 0s; }
.menu-boton[aria-expanded="true"] .hamb > span::before,
.menu-boton[aria-expanded="true"] .hamb > span::after { top: 0; transition: top .2s, transform .25s .15s; }
.menu-boton[aria-expanded="true"] .hamb > span::before { transform: rotate(45deg); }
.menu-boton[aria-expanded="true"] .hamb > span::after { transform: rotate(-45deg); }

/* --- Elementos comunes del menú --- */
.nav-lista { list-style: none; margin: 0; padding: 0; }
.nav-fila { display: flex; align-items: center; }
.nav-enlace {
  position: relative; display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 13px; border-radius: 999px; text-decoration: none;
  color: var(--tinta); font-weight: 500; font-size: .95rem; transition: background .2s, color .2s;
}
.nav-fila > a .ico, .nav-lista > li > a .ico { color: var(--verde); transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.nav-fila > a:hover .ico, .nav-lista > li > a:hover .ico { transform: translateY(-2px) rotate(-8deg) scale(1.08); }
.nav-lista > li > a[aria-current="page"], .nav-fila > a[aria-current="page"] { background: var(--limon); }
.nav-lista > li > a[aria-current="page"] .ico, .nav-fila > a[aria-current="page"] .ico { color: var(--tinta); }
.nav-enlace.active { background: var(--limon-suave); }

.sub-boton {
  display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin-left: -6px;
  border: 0; border-radius: 50%; background: transparent; color: var(--tinta-suave); cursor: pointer; transition: background .2s, color .2s;
}
.sub-boton:hover { background: var(--limon-suave); color: var(--tinta); }
.sub-boton .ico { width: 16px; height: 16px; transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.tiene-sub.abierto .sub-boton .ico { transform: rotate(180deg); }

/* Paneles de submenú */
.sub-rejilla { display: grid; gap: 22px 34px; }
.sub-titulo {
  display: flex; align-items: center; gap: 10px; margin: 0 0 8px; padding-bottom: 9px;
  border-bottom: 1px dashed var(--borde); font-family: var(--serif); font-weight: 600; font-size: 1rem; color: var(--tinta);
}
.sub-ico { width: 32px; height: 32px; padding: 6px; border-radius: 10px; background: var(--limon-suave); color: var(--limon-oscuro); }
.sub-col:nth-child(6n+2) .sub-ico { background: var(--verde-suave); color: var(--verde); }
.sub-col:nth-child(6n+3) .sub-ico { background: #fff0dc; color: #b26a00; }
.sub-col:nth-child(6n+4) .sub-ico { background: #f6ece3; color: #8a5a32; }
.sub-col:nth-child(6n+5) .sub-ico { background: #eef3fb; color: #3d6aa3; }
.sub-col:nth-child(6n+6) .sub-ico { background: #fbecf1; color: #b0466a; }
.sub-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.sub-col a {
  display: flex; align-items: center; gap: 9px; padding: 5px 8px; margin-left: -8px; border-radius: 8px;
  color: var(--tinta); text-decoration: none; font-size: .93rem; line-height: 1.35;
  transition: background .18s, transform .18s, color .18s;
}
.sub-col a::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; background: #d9cfae;
  transition: background .18s, transform .18s;
}
.sub-col a:hover { background: var(--limon-suave); transform: translateX(3px); color: var(--tinta); }
.sub-col a:hover::before { background: var(--limon); transform: scale(1.5); }
.sub-col a[aria-current="page"] { font-weight: 600; background: var(--limon-suave); }
.sub-col a[aria-current="page"]::before { background: var(--limon-oscuro); }
.sub-todo {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-weight: 600; font-size: .93rem;
  color: var(--verde); text-decoration: none;
}
.sub-todo .ico { width: 16px; height: 16px; transition: transform .25s; }
.sub-todo:hover .ico { transform: translateX(4px); }

/* --- Escritorio: menú horizontal con paneles desplegables --- */
@media (min-width: 1021px) {
  .nav { align-self: stretch; display: flex; }
  .nav-lista { display: flex; align-items: stretch; gap: 2px; }
  .nav-lista > li { display: flex; align-items: center; }
  .nav-enlace::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px; border-radius: 2px;
    background: var(--limon-oscuro); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
  }
  .nav-enlace:hover::after, .nav-enlace:focus-visible::after { transform: scaleX(1); }
  .nav-enlace.active::after { display: none; }

  .sub-panel {
    position: absolute; left: 20px; right: 20px; top: 100%; z-index: 60;
    background: var(--papel); border: 1px solid var(--borde); border-top: 3px solid var(--limon);
    border-radius: 0 0 20px 20px; box-shadow: 0 26px 50px -12px rgba(60, 50, 10, .22);
    padding: 26px 30px 20px;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
  }
  .sub-sub-recetas { grid-template-columns: repeat(3, 1fr); }
  .sub-sub-guias { grid-template-columns: repeat(2, 1fr); }
  .sub-col { opacity: 0; transform: translateY(8px); transition: opacity .3s ease, transform .3s ease; transition-delay: 0s; }
  .sub-interior { display: flex; flex-direction: column; }
  .sub-todo { align-self: flex-end; }

  .tiene-sub.abierto .sub-panel { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .tiene-sub.abierto .sub-col { opacity: 1; transform: none; transition-delay: calc(var(--i) * 45ms + 60ms); }
}
@media (min-width: 1021px) and (hover: hover) {
  .tiene-sub:hover .sub-panel { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .tiene-sub:hover .sub-col { opacity: 1; transform: none; transition-delay: calc(var(--i) * 45ms + 60ms); }
  .tiene-sub:hover .sub-boton .ico { transform: rotate(180deg); }
}

/* --- Móvil y tableta: panel desplegable con acordeones --- */
@media (max-width: 1020px) {
  .menu-boton { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--papel); border-bottom: 1px solid var(--borde); box-shadow: 0 24px 40px -18px rgba(60, 50, 10, .25);
    max-height: calc(100vh - 68px); max-height: calc(100dvh - 68px); overflow-y: auto; overscroll-behavior: contain;
    padding: 6px 20px 22px;
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
  }
  .nav.abierto { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav-lista > li { border-bottom: 1px solid var(--borde); }
  .nav-lista > li:last-child { border-bottom: 0; }
  .nav-lista > li > a, .nav-fila > a { display: flex; padding: 13px 8px; margin: 4px 0; border-radius: 12px; font-size: 1rem; }
  .nav-fila > a { flex: 1; }
  .nav-lista > li > a .ico, .nav-fila > a .ico { width: 20px; height: 20px; }
  .sub-boton { width: 42px; height: 42px; margin: 0; border: 1px solid var(--borde); }
  .sub-boton .ico { width: 18px; height: 18px; }

  .sub-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .32s ease; }
  .sub-interior { overflow: hidden; min-height: 0; }
  .tiene-sub.abierto .sub-panel { grid-template-rows: 1fr; }
  .sub-rejilla { grid-template-columns: 1fr; gap: 16px; padding: 6px 4px 4px; }
  .sub-todo { margin: 14px 4px 16px; }
}
@media (min-width: 600px) and (max-width: 1020px) {
  .sub-sub-recetas, .sub-sub-guias { grid-template-columns: 1fr 1fr; gap: 18px 28px; }
}

/* ==========================================================================
   Portada (hero)
   ========================================================================== */
.hero { position: relative; overflow: hidden; background: var(--crema); padding-bottom: 8px; }
.hero-foto { width: 100%; height: clamp(220px, 40vw, 540px); object-fit: cover; object-position: center 55%; }
.hero-texto {
  max-width: var(--ancho); margin: -110px auto 0; padding: 0 20px; position: relative;
}
@media (max-width: 640px) { .hero-texto { margin-top: -40px; } .hero-foto-izq { object-position: 18% 60%; } }
.hero-caja {
  background: var(--papel); border-radius: var(--radio); box-shadow: var(--sombra);
  padding: clamp(22px, 4vw, 40px); max-width: 760px; border-top: 6px solid var(--limon);
}
.hero-caja p { color: var(--tinta-suave); font-size: 1.1rem; }
.hero-caja h1 { margin-bottom: .3em; }

.etiqueta {
  display: inline-block; background: var(--verde-suave); color: var(--verde);
  font-weight: 600; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 999px; margin-bottom: 14px;
}

/* Cabecera de página interior */
.pagina-cabecera { background: linear-gradient(180deg, var(--limon-suave), var(--crema)); padding: 48px 0 24px; }
.pagina-cabecera p { color: var(--tinta-suave); max-width: 720px; font-size: 1.1rem; }

/* Migas de pan */
.migas { font-size: .9rem; color: var(--tinta-suave); margin-bottom: 14px; }
.migas ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.migas li + li::before { content: "›"; margin-right: 6px; color: var(--limon-oscuro); }
.migas a { color: var(--tinta-suave); }

/* ==========================================================================
   Estructura
   ========================================================================== */
main { display: block; }
.diseno { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; padding: 40px 0 64px; }
.diseno-unico { padding: 40px 0 64px; max-width: 820px; }
@media (max-width: 960px) { .diseno { grid-template-columns: 1fr; gap: 32px; } }

/* Datos rápidos de la receta */
.datos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 24px 0 8px; padding: 0; list-style: none; }
.datos li { background: var(--papel); border: 1px solid var(--borde); border-radius: 14px; padding: 14px; text-align: center; }
.datos strong { display: block; font-family: var(--serif); font-size: 1.35rem; color: var(--tinta); }
.datos span { font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--tinta-suave); }
@media (max-width: 520px) { .datos { gap: 8px; } .datos li { padding: 10px 4px; } .datos strong { font-size: 1.1rem; } .datos span { font-size: .72rem; } }

/* Ingredientes */
.receta-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 8px; }
@media (max-width: 720px) { .receta-intro { grid-template-columns: 1fr; } }
.foto-receta { border-radius: var(--radio); box-shadow: var(--sombra); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.tarjeta { background: var(--papel); border: 1px solid var(--borde); border-radius: var(--radio); padding: 24px 26px; }
.tarjeta h2, .tarjeta h3 { margin-top: 0; }

.ingredientes { list-style: none; margin: 0; padding: 0; }
.ingredientes li { position: relative; padding: 7px 0 7px 32px; border-bottom: 1px dashed var(--borde); }
.ingredientes li:last-child { border-bottom: 0; }
.ingredientes li::before {
  content: ""; position: absolute; left: 0; top: 13px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--limon) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%232b2a26' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* Pasos */
.pasos { list-style: none; counter-reset: paso; margin: 0; padding: 0; }
.pasos > li { counter-increment: paso; position: relative; padding: 0 0 28px 64px; }
.pasos > li::before {
  content: counter(paso); position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%;
  background: var(--limon); color: var(--tinta); font-family: var(--serif); font-weight: 700; font-size: 1.25rem;
  display: flex; align-items: center; justify-content: center;
}
.pasos > li::after { content: ""; position: absolute; left: 21px; top: 50px; bottom: 6px; width: 2px; background: var(--borde); }
.pasos > li:last-child::after { display: none; }
.pasos h3 { margin: 6px 0 8px; font-size: 1.15rem; }
.pasos img { border-radius: 14px; margin: 4px 0 14px; max-width: 280px; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* Avisos y destacados */
.nota { background: var(--verde-suave); border-left: 5px solid var(--verde); border-radius: 12px; padding: 16px 20px; margin: 24px 0; }
.nota p:last-child { margin-bottom: 0; }

/* Otras recetas (tarjetas) */
.rejilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; margin: 20px 0; }
.receta-card {
  background: var(--papel); border: 1px solid var(--borde); border-radius: var(--radio); overflow: hidden;
  display: flex; flex-direction: column; text-decoration: none; color: var(--tinta); transition: transform .2s, box-shadow .2s;
}
.receta-card:hover { transform: translateY(-3px); box-shadow: var(--sombra); color: var(--tinta); }
.receta-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.receta-card div { padding: 16px 18px 20px; }
.receta-card h3 { margin: 0 0 6px; font-size: 1.15rem; }
.receta-card p { margin: 0; color: var(--tinta-suave); font-size: .95rem; }
.receta-card .mas { display: inline-block; margin-top: 10px; color: var(--verde); font-weight: 600; font-size: .95rem; }

/* Aviso de salud (páginas de alergias y dietas) */
.aviso-salud {
  display: flex; gap: 14px; align-items: flex-start; margin: 0 0 30px; padding: 16px 20px;
  background: #fff4ec; border: 1px solid #f3cdb0; border-left: 5px solid #d9772b; border-radius: 14px;
  color: #5a3a1e; font-size: .97rem; line-height: 1.6;
}
.aviso-salud .ico { width: 26px; height: 26px; margin-top: 1px; color: #c4621b; }
.aviso-salud p { margin: 0; }
.aviso-salud strong { color: #3f2510; }

/* Menús de la portada */
.menus { display: grid; gap: 18px; margin: 22px 0 26px; }
.menu-tarjeta {
  position: relative; background: var(--papel); border: 1px solid var(--borde); border-radius: 20px;
  padding: 22px 26px 20px 30px; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease;
}
.menu-tarjeta::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--limon); }
.menu-tarjeta:nth-child(2)::before { background: #9db86a; }
.menu-tarjeta:nth-child(3)::before { background: #e8a96b; }
.menu-tarjeta:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -22px rgba(60, 50, 10, .45); }
.menu-tarjeta h3 { margin: 6px 0 12px; font-size: 1.25rem; }
.menu-tarjeta p:last-child { margin-bottom: 0; }
.menu-tarjeta .menu-lista { margin-bottom: 14px; }
.menu-etiqueta {
  display: inline-flex; align-items: center; gap: 7px; margin: 0; padding: 4px 11px 4px 8px; border-radius: 999px;
  font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  background: var(--limon-suave); color: var(--limon-oscuro);
}
.menu-etiqueta .ico { width: 16px; height: 16px; }
.menu-tarjeta:nth-child(2) .menu-etiqueta { background: var(--verde-suave); color: var(--verde); }
.menu-tarjeta:nth-child(3) .menu-etiqueta { background: #fff0dc; color: #b26a00; }
@media (max-width: 520px) { .menu-tarjeta { padding: 20px 18px 18px 22px; } }

/* Colaboradores y webs recomendadas (portada) */
.colab {
  position: relative; margin: 56px 0 8px; padding: 34px 32px 32px; border-radius: 26px;
  background: radial-gradient(circle at 100% 0%, #fff3c4 0, rgba(255,243,196,0) 45%), linear-gradient(180deg, #fffbea, var(--papel));
  border: 1px solid #f1e6bf; overflow: hidden;
}
.colab::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 170px; height: 170px; border-radius: 50%;
  border: 2px dashed rgba(245, 197, 24, .35); pointer-events: none;
}
.colab-cabecera { max-width: 620px; margin-bottom: 26px; }
.colab-cabecera h2 { margin: 0 0 10px; }
.colab-cabecera p { color: var(--tinta-suave); margin: 0; }
.colab-rejilla { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.colab-tarjeta:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 640px) { .colab { padding: 26px 18px 20px; } .colab-rejilla { grid-template-columns: 1fr; } }
.colab-tarjeta {
  background: var(--papel); border: 1px solid var(--borde); border-radius: 18px; padding: 20px 22px 18px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.colab-tarjeta:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -20px rgba(60, 50, 10, .4); border-color: #ecd98f; }
.colab-tarjeta h3 { margin: 12px 0 6px; font-size: 1.12rem; }
.colab-tarjeta p { margin: 0; font-size: .95rem; line-height: 1.65; color: var(--tinta-suave); }
.colab-ico {
  display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 13px;
  background: var(--limon-suave); color: var(--limon-oscuro); transition: transform .35s cubic-bezier(.34,1.56,.64,1);
}
.colab-ico .ico { width: 22px; height: 22px; }
.colab-tarjeta:hover .colab-ico { transform: rotate(-8deg) scale(1.08); }
.colab-tarjeta:nth-child(2) .colab-ico { background: #eef3fb; color: #3d6aa3; }
.colab-tarjeta:nth-child(3) .colab-ico { background: var(--verde-suave); color: var(--verde); }
.colab-tarjeta:nth-child(4) .colab-ico { background: #fbecf1; color: #b0466a; }
.colab-tarjeta:nth-child(5) .colab-ico { background: #fff0dc; color: #b26a00; }
/* Enlaces discretos: mismo color que el texto, subrayado muy suave */
.colab a {
  color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
  text-decoration-color: rgba(43, 42, 38, .2); transition: text-decoration-color .2s, color .2s;
}
.colab a:hover, .colab a:focus-visible { color: var(--tinta); text-decoration-color: var(--limon-oscuro); }

/* Fotos de apoyo dentro del contenido */
.foto-apoyo { margin: 6px 0 26px; }
.foto-apoyo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 16px; box-shadow: var(--sombra); }
.foto-apoyo figcaption { font-size: .88rem; color: var(--tinta-suave); margin-top: 8px; font-style: italic; }
.foto-apoyo.vertical { float: right; width: min(40%, 280px); margin: 4px 0 18px 26px; }
.foto-apoyo.vertical img { aspect-ratio: 3 / 4; }
.diseno-unico h2 { clear: both; }
@media (max-width: 600px) {
  .foto-apoyo.vertical { float: none; width: 100%; margin: 6px 0 24px; }
  .foto-apoyo.vertical img { aspect-ratio: 3 / 2; }
}

/* Aviso discreto en imágenes generadas */
.aviso-ia {
  position: absolute; top: 8px; right: 10px; z-index: 1;
  font-size: .72rem; line-height: 1; letter-spacing: .02em; color: #fff;
  background: rgba(0,0,0,.62); padding: 4px 8px; border-radius: 999px; pointer-events: none;
}
.receta-card { position: relative; }
.receta-card .aviso-ia { top: 6px; right: 6px; font-size: .66rem; padding: 3px 7px; }

/* Tarjetas sin foto (ilustración provisional por categoría) */
.receta-card .sin-foto {
  display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3;
  background: radial-gradient(circle at 30% 30%, #fff6cc, #f5c518);
}
.receta-card .sin-foto img { width: 64px; height: 64px; aspect-ratio: auto; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0,0,0,.12)); }
.receta-card .sin-foto-variantes { background: radial-gradient(circle at 30% 30%, #f4f8e8, #b9cf7a); }
.receta-card .sin-foto-sabores { background: radial-gradient(circle at 30% 30%, #fff2e0, #f6b26b); }
.receta-card .sin-foto-formatos { background: radial-gradient(circle at 30% 30%, #fdf3ea, #e8c4a0); }
.receta-card .sin-foto-coberturas { background: radial-gradient(circle at 30% 30%, #ffffff, #f1e9d2); }
.receta-card .sin-foto-ocasiones { background: radial-gradient(circle at 30% 30%, #fdeef2, #f2b8c6); }
.receta-card .sin-foto-guias { background: radial-gradient(circle at 30% 30%, #eef3df, #9db86a); }
.receta-card .sin-foto-limon { background: radial-gradient(circle at 30% 30%, #fffbe6, #ffd84a); }

/* Tablas genéricas */
.tabla { overflow-x: auto; margin: 12px 0 24px; }
.tabla table { width: 100%; border-collapse: collapse; font-size: .95rem; background: var(--papel); border-radius: 12px; overflow: hidden; }
.tabla th, .tabla td { text-align: left; border-bottom: 1px solid var(--borde); padding: 10px 12px; vertical-align: top; }
.tabla th { background: var(--limon-suave); }

/* Índices de recetas y guías */
.diseno-unico.ancho { max-width: none; }
.indice-cats { background: var(--papel); border: 1px solid var(--borde); border-radius: 14px; padding: 12px 18px; line-height: 2; }
.datos-cabecera { max-width: 640px; }

/* Formularios (calculadora) */
.diseno-unico label { display: block; font-weight: 600; margin: 12px 0 4px; }
.diseno-unico input, .diseno-unico select {
  font: inherit; padding: 9px 12px; border: 1px solid #cfc6a8; border-radius: 10px; background: #fff; color: var(--tinta); max-width: 100%;
}
.diseno-unico button:not(.menu-boton) {
  font: inherit; font-weight: 600; background: var(--limon); color: var(--tinta); border: 0; border-radius: 999px; padding: 10px 20px; cursor: pointer; margin-top: 14px;
}

/* Menús */
.menu-lista { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 6px; }
.menu-lista li { background: var(--limon-suave); border-radius: 10px; padding: 8px 14px; }
.menu-lista b { color: var(--limon-oscuro); }

/* Lista numerada de curiosidades */
.curiosidades { padding-left: 1.2em; }
.curiosidades li { margin-bottom: .8em; }

/* Barra lateral */
.lateral { display: flex; flex-direction: column; gap: 22px; }
.lateral .tarjeta { position: static; }
@media (min-width: 961px) { .lateral-fija { position: sticky; top: 92px; } }
.lateral h2 { font-size: 1.25rem; margin: 0 0 12px; }
.lateral ul { list-style: none; margin: 0; padding: 0; }
.lateral li { padding: 10px 0; border-bottom: 1px solid var(--borde); }
.lateral li:last-child { border-bottom: 0; }
.lateral li a { font-weight: 600; text-decoration: none; }
.lateral li span { display: block; font-size: .9rem; color: var(--tinta-suave); }

/* Preguntas frecuentes */
.faq details { background: var(--papel); border: 1px solid var(--borde); border-radius: 14px; margin-bottom: 12px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 52px 16px 20px; font-weight: 600; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 50%; background: var(--limon-suave); text-align: center; line-height: 26px; font-weight: 700;
}
.faq details[open] summary::after { content: "−"; background: var(--limon); }
.faq details > div { padding: 0 20px 16px; color: var(--tinta-suave); }
.faq details > div p:last-child { margin-bottom: 0; }

/* Mapa web */
.mapa { columns: 2 260px; column-gap: 40px; }
.mapa section { break-inside: avoid; margin-bottom: 28px; }
.mapa h2 { margin-top: 0; font-size: 1.3rem; }
.mapa ul { margin: 0; padding-left: 1.1em; }
.mapa li { margin-bottom: 6px; }

/* Textos legales */
.legal h2 { font-size: 1.35rem; margin-top: 2em; padding-top: 1em; border-top: 1px solid var(--borde); }
.legal h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 1em; }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; background: var(--papel); border: 1px solid var(--borde); border-radius: 14px; padding: 18px 22px; }
.legal dt { font-weight: 600; }
.legal dd { margin: 0; }
@media (max-width: 560px) { .legal dl { grid-template-columns: 1fr; } .legal dd { margin-bottom: 8px; } }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: .95rem; }
.legal th, .legal td { text-align: left; border-bottom: 1px solid var(--borde); padding: 10px 8px; vertical-align: top; }
.legal th { background: var(--limon-suave); }

/* ==========================================================================
   Pie
   ========================================================================== */
.pie { position: relative; margin-top: 40px; color: var(--tinta); }
.pie-ola { display: block; width: 100%; height: 56px; fill: #fff3c4; margin-bottom: -1px; }
.pie-fondo {
  position: relative; overflow: hidden; padding: 18px 0 26px;
  background: linear-gradient(180deg, #fff3c4 0%, #fff8dc 45%, #fffcf0 100%);
}
.pie-rodaja {
  position: absolute; right: -70px; top: 30px; width: 340px; height: 340px; pointer-events: none;
  fill: none; stroke: #f5c518; stroke-width: 3; opacity: .22; transform: rotate(12deg);
}
@media (prefers-reduced-motion: no-preference) {
  .pie-rodaja { animation: girar-rodaja 60s linear infinite; }
  @keyframes girar-rodaja { to { transform: rotate(372deg); } }
}
.pie .contenedor { position: relative; }

/* Tarjeta de contacto */
.pie-contacto {
  display: flex; align-items: center; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap;
  background: var(--papel); border: 1px solid #f3e3a6; border-radius: 22px; padding: 22px 28px;
  box-shadow: 0 18px 40px -22px rgba(138, 109, 0, .45); margin-bottom: 44px;
}
.pie-contacto p { margin: 0; color: var(--tinta-suave); }
.pie-contacto .pie-contacto-titulo { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--tinta); margin-bottom: 2px; }
.pie-boton {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px;
  background: var(--tinta); color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.pie-boton .ico { width: 20px; height: 20px; color: var(--limon); }
.pie-boton:hover { color: #fff; background: #000; transform: translateY(-2px); box-shadow: 0 10px 22px -10px rgba(0,0,0,.5); }

/* Columnas */
.pie-rejilla { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 34px; }
@media (max-width: 900px) { .pie-rejilla { grid-template-columns: 1fr 1fr; } .pie-marca { grid-column: 1 / -1; } }
@media (max-width: 480px) { .pie-rejilla { grid-template-columns: 1fr; } }
.pie .marca { margin-bottom: 12px; font-size: 1.3rem; }
.pie .marca img { width: 40px; height: 40px; }
.pie-marca p { font-size: .95rem; color: var(--tinta-suave); max-width: 340px; }
.pie-marca .pie-aviso { font-size: .85rem; color: var(--tinta-suave); }
.pie-col h2 {
  display: flex; align-items: center; gap: 9px; margin: 6px 0 14px;
  font-family: var(--sans); font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--limon-oscuro);
}
.pie-col h2 .ico { width: 26px; height: 26px; padding: 5px; border-radius: 8px; background: var(--papel); border: 1px solid #f3e3a6; color: var(--limon-oscuro); }
.pie-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.pie-col a {
  position: relative; display: inline-block; padding: 3px 0; color: var(--tinta); text-decoration: none; font-size: .95rem;
  transition: color .2s, transform .2s;
}
.pie-col a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px;
  background: var(--limon); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.pie-col a:hover { color: var(--tinta); transform: translateX(3px); }
.pie-col a:hover::after, .pie-col a:focus-visible::after { transform: scaleX(1); }

/* Aviso de IA */
.pie .pie-ia {
  display: flex; align-items: flex-start; gap: 10px; margin: 40px 0 0; padding: 12px 16px;
  background: rgba(255, 255, 255, .6); border: 1px dashed #e6d38e; border-radius: 14px;
  font-size: .84rem; line-height: 1.55; color: var(--tinta-suave);
}
.pie .pie-ia .ico { width: 18px; height: 18px; margin-top: 1px; color: var(--limon-oscuro); }

/* Barra final */
.pie-final {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px;
  margin-top: 22px; padding-top: 18px; border-top: 1px solid #efe2b4; font-size: .86rem; color: var(--tinta-suave);
}
.pie-final-enlaces { display: inline-flex; align-items: center; gap: 18px; }
.pie-final a { color: var(--tinta-suave); text-decoration: none; }
.pie-final a:hover { color: var(--tinta); }
.pie-arriba {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 8px; border-radius: 999px;
  background: var(--papel); border: 1px solid #efe2b4; color: var(--tinta) !important; font-weight: 500;
  transition: background .2s, transform .2s;
}
.pie-arriba .ico { width: 16px; height: 16px; transition: transform .25s; }
.pie-arriba:hover { background: var(--limon); }
.pie-arriba:hover .ico { transform: translateY(-3px); }

/* Utilidades */
.visualmente-oculto { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.boton {
  display: inline-block; background: var(--limon); color: var(--tinta); text-decoration: none; font-weight: 600;
  padding: 10px 20px; border-radius: 999px;
}
.boton:hover { background: #ffd84a; color: var(--tinta); }
.separador { border: 0; border-top: 1px solid var(--borde); margin: 40px 0; }

@media print {
  .cabecera, .pie, .lateral, .menu-boton, .hero-foto { display: none !important; }
  body { background: #fff; }
  .diseno { display: block; }
}
