/* === 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 === */

/* ==========================================================================
   bizcocho-de-yogur.com — hoja de estilos principal (2026)
   ========================================================================== */

:root {
  --acento: #e8b04e;
  --acento-suave: #fdf1dc;
  --acento-oscuro: #8a5512;
  --verde: #567118;
  --verde-suave: #eef3df;
  --azul: #2f5d8f;
  --azul-suave: #eaf1f9;
  --azul-noche: #1d2a3b;
  --crema: #fffcf7;
  --papel: #ffffff;
  --tinta: #2b2a26;
  --tinta-suave: #5c5a52;
  --borde: #eee2cf;
  --sombra: 0 10px 30px rgba(70, 45, 15, .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(--acento-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, 255, 255, .96);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid #dfe7f0;
  box-shadow: 0 6px 18px -14px rgba(29, 42, 59, .35);
}
/* Franja de cuadros vichy (como el mantel de la foto de portada) */
.cabecera::before {
  content: ""; display: block; height: 6px;
  background-color: #fff;
  background-image: linear-gradient(90deg, rgba(47, 93, 143, .5) 50%, transparent 50%),
                    linear-gradient(rgba(47, 93, 143, .5) 50%, transparent 50%);
  background-size: 12px 12px;
}
.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: BizcochoDeYogur.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, #fdf1dc 55%, #f6d39a 100%);
  box-shadow: inset 0 0 0 1.5px #e9c27a, 0 4px 12px -4px rgba(138, 85, 18, .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; }
/* Guiones del dominio: visibles pero discretos */
.m-guion { color: #c9b08a; font-weight: 400; margin: 0 .06em; }
.m-yogur {
  font-weight: 700; color: #a8641a;
  background: linear-gradient(120deg, #b06d1f 0%, #d3912f 45%, #a8641a 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(--acento-oscuro); background: var(--acento-suave); box-shadow: inset 0 0 0 1px #ecd2a4;
  transition: background .25s, color .25s;
}
.marca-cabecera:hover .m-com { background: var(--acento); 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(--azul); border: 1px solid var(--azul);
  border-radius: 8px; padding: 9px 14px; font: inherit; font-size: .95rem; font-weight: 600; color: #fff; cursor: pointer;
  transition: background .2s, box-shadow .2s;
}
.menu-boton:hover { background: var(--azul-noche); box-shadow: 0 0 0 3px var(--azul-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: #fff;
}
.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 12px; border-radius: 8px; 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(--azul); }
.nav-enlace:hover { color: var(--azul); }
.nav-lista > li > a[aria-current="page"], .nav-fila > a[aria-current="page"], .nav-enlace.active { color: var(--azul); font-weight: 600; }

.sub-boton {
  display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin-left: -6px;
  border: 0; border-radius: 6px; background: transparent; color: var(--tinta-suave); cursor: pointer; transition: background .2s, color .2s;
}
.sub-boton:hover { background: var(--azul-suave); color: var(--azul); }
.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; }
/* Cada grupo tiene su color: título, contador y pastillas de los iconos */
.sub-col { --tono: var(--acento-oscuro); --tono-suave: var(--acento-suave); }
.sub-col:nth-child(6n+2) { --tono: var(--verde); --tono-suave: var(--verde-suave); }
.sub-col:nth-child(6n+3) { --tono: #955600; --tono-suave: #fff0dc; }
.sub-col:nth-child(6n+4) { --tono: #7f5230; --tono-suave: #f6ece3; }
.sub-col:nth-child(6n+5) { --tono: #335f96; --tono-suave: #eaf1fa; }
.sub-col:nth-child(6n+6) { --tono: #a63d62; --tono-suave: #fbecf1; }
.sub-titulo {
  display: flex; align-items: center; gap: 10px; margin: 0 0 8px; padding-bottom: 9px;
  border-bottom: 2px solid var(--tono-suave); 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(--tono-suave); color: var(--tono); }
.sub-num {
  margin-left: auto; min-width: 24px; padding: 1px 8px; border-radius: 999px; text-align: center;
  font-family: var(--sans); font-size: .72rem; font-weight: 700; line-height: 1.6; color: var(--tono); background: var(--tono-suave);
}
.sub-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.sub-col a {
  display: flex; align-items: center; gap: 10px; padding: 4px 8px 4px 4px; margin-left: -4px; border-radius: 10px;
  color: var(--tinta); text-decoration: none; font-size: .93rem; line-height: 1.35;
  transition: background .18s, transform .18s, color .18s;
}
/* Icono dentro de una pastilla del color del grupo */
.sub-item-ico {
  width: 26px; height: 26px; padding: 5px; border-radius: 8px; flex-shrink: 0;
  background: var(--tono-suave); color: var(--tono);
  transition: background .2s, color .2s, box-shadow .2s, transform .25s cubic-bezier(.34,1.56,.64,1);
}
.sub-col a:hover { background: var(--crema); transform: translateX(3px); color: var(--tono); }
.sub-col a:hover .sub-item-ico, .sub-col a:focus-visible .sub-item-ico {
  background: var(--tono); color: #fff; transform: scale(1.08); box-shadow: 0 4px 10px -4px var(--tono);
}
.sub-col a[aria-current="page"] { font-weight: 600; background: var(--tono-suave); color: var(--tono); }
.sub-col a[aria-current="page"] .sub-item-ico { background: var(--tono); color: #fff; }

/* Barra inferior: receta destacada + botón para ver todas */
.sub-pie {
  display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap;
  margin-top: 16px; padding: 12px 16px; border-radius: 12px; background: var(--crema); border: 1px solid var(--borde);
}
.sub-destacado { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--tinta); min-width: 0; }
.sub-destacado img { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; box-shadow: 0 4px 12px -6px rgba(70, 45, 15, .5); transition: transform .3s ease; }
.sub-destacado span { display: flex; flex-direction: column; line-height: 1.25; }
.sub-destacado small { font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--acento-oscuro); }
.sub-destacado strong { font-family: var(--serif); font-size: 1rem; font-weight: 600; transition: color .2s; }
.sub-destacado:hover { color: var(--tinta); }
.sub-destacado:hover img { transform: scale(1.06) rotate(-2deg); }
.sub-destacado:hover strong { color: var(--azul); }

/* Animaciones del submenú: los elementos entran en cascada y el icono hace un pequeño rebote;
   al pasar el ratón, el icono se balancea. Se desactivan si el sistema pide reducir movimiento. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes sub-entra { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
  @keyframes sub-ico-pop { 0% { transform: scale(.3) rotate(-25deg); opacity: 0; } 60% { transform: scale(1.2) rotate(6deg); opacity: 1; } 100% { transform: none; } }
  @keyframes sub-ico-baila { 0%, 100% { transform: scale(1.12) rotate(0); } 25% { transform: scale(1.18) rotate(-14deg); } 50% { transform: scale(1.18) rotate(10deg); } 75% { transform: scale(1.14) rotate(-5deg); } }
  .tiene-sub.abierto .sub-col li { animation: sub-entra .38s cubic-bezier(.2,.7,.3,1) both; animation-delay: calc(var(--i, 0) * 50ms + var(--j, 0) * 28ms + 90ms); }
  .tiene-sub.abierto .sub-col li .sub-item-ico { animation: sub-ico-pop .5s cubic-bezier(.34,1.56,.64,1) both; animation-delay: calc(var(--i, 0) * 50ms + var(--j, 0) * 28ms + 160ms); }
  .sub-col a:hover .sub-item-ico, .sub-col a:focus-visible .sub-item-ico { animation: sub-ico-baila .6s ease-in-out both !important; animation-delay: 0s !important; }
}
@media (prefers-reduced-motion: no-preference) and (min-width: 1021px) and (hover: hover) {
  .tiene-sub:hover .sub-col li { animation: sub-entra .38s cubic-bezier(.2,.7,.3,1) both; animation-delay: calc(var(--i, 0) * 50ms + var(--j, 0) * 28ms + 90ms); }
  .tiene-sub:hover .sub-col li .sub-item-ico { animation: sub-ico-pop .5s cubic-bezier(.34,1.56,.64,1) both; animation-delay: calc(var(--i, 0) * 50ms + var(--j, 0) * 28ms + 160ms); }
}
.sub-todo {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
  background: var(--azul); color: #fff; font-weight: 600; font-size: .9rem; text-decoration: none;
  transition: background .2s, box-shadow .2s;
}
.sub-todo .ico { width: 16px; height: 16px; transition: transform .25s; }
.sub-todo:hover { color: #fff; background: var(--azul-noche); box-shadow: 0 8px 18px -10px rgba(29, 42, 59, .8); }
.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; }
  /* Sin iconos en la barra de escritorio: solo texto con subrayado */
  .nav-lista > li > a .ico, .nav-fila > a .ico { display: none; }
  .nav-enlace::after {
    content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0;
    background: var(--azul); transform: scaleY(0); transform-origin: bottom; transition: transform .2s ease;
  }
  .nav-enlace:hover::after, .nav-enlace:focus-visible::after { transform: scaleY(.6); }
  .nav-enlace[aria-current="page"]::after, .nav-enlace.active::after { transform: scaleY(1); }
  .nav-lista > li > .nav-enlace, .nav-fila > .nav-enlace { align-self: stretch; padding-top: 0; padding-bottom: 0; border-radius: 0; }
  .nav-fila { align-self: stretch; }

  /* Calculadora: botón destacado */
  .nav-li-destacado { margin-left: 8px; }
  .nav-lista > .nav-li-destacado > .nav-destacado {
    align-self: center; padding: 7px 15px; border-radius: 8px; border: 1.5px solid var(--azul); color: var(--azul); font-weight: 600;
  }
  .nav-lista > .nav-li-destacado > .nav-destacado::after { display: none; }
  .nav-lista > .nav-li-destacado > .nav-destacado:hover,
  .nav-lista > .nav-li-destacado > .nav-destacado[aria-current="page"] { background: var(--azul); color: #fff; }

  .sub-panel {
    position: absolute; left: 20px; right: 20px; top: 100%; z-index: 60;
    background: var(--papel); border: 1px solid #dfe7f0; border-top: 3px solid var(--azul);
    border-radius: 0 0 14px 14px; box-shadow: 0 26px 50px -12px rgba(29, 42, 59, .25);
    max-height: calc(100vh - 86px); max-height: calc(100dvh - 86px); overflow-y: auto; overscroll-behavior: contain;
    padding: 26px 30px 20px;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
  }
  /* Recetas en 4 columnas: los grupos cortos se apilan de dos en dos para que el panel sea bajo */
  .sub-sub-recetas {
    grid-template-columns: repeat(4, 1fr); gap: 14px 28px; align-items: start;
    grid-template-areas: "c1 c2 c3 c4" "c1 c5 c6 c4";
  }
  .sub-sub-recetas > .sub-col:nth-child(1) { grid-area: c1; }
  .sub-sub-recetas > .sub-col:nth-child(2) { grid-area: c2; }
  .sub-sub-recetas > .sub-col:nth-child(3) { grid-area: c3; }
  .sub-sub-recetas > .sub-col:nth-child(4) { grid-area: c4; }
  .sub-sub-recetas > .sub-col:nth-child(5) { grid-area: c5; }
  .sub-sub-recetas > .sub-col:nth-child(6) { grid-area: c6; }
  .sub-sub-guias { grid-template-columns: repeat(2, 1fr); }
  .sub-panel .sub-titulo { margin-bottom: 4px; padding-bottom: 7px; gap: 8px; font-size: .95rem; white-space: nowrap; }
  .sub-panel .sub-num { padding: 1px 7px; }
  .sub-panel .sub-ico { width: 28px; height: 28px; padding: 5px; }
  .sub-panel .sub-col a { padding-top: 2px; padding-bottom: 2px; }
  .sub-panel .sub-item-ico { width: 24px; height: 24px; padding: 4.5px; border-radius: 7px; }
  /* La barra inferior ocupa todo el ancho del panel */
  .sub-panel .sub-pie { margin: 14px -30px -20px; padding: 10px 30px; border-radius: 0; border-width: 1px 0 0; }
  .sub-panel .sub-destacado img { width: 56px; height: 42px; }
  .sub-col { opacity: 0; transform: translateY(8px); transition: opacity .3s ease, transform .3s ease; transition-delay: 0s; }
  .sub-interior { display: flex; flex-direction: column; }

  .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(70, 45, 15, .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: 8px; font-size: 1rem; }
  .nav-lista > li > a[aria-current="page"], .nav-fila > a[aria-current="page"], .nav-enlace.active { background: var(--azul-suave); box-shadow: inset 3px 0 0 var(--azul); }
  .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-pie { margin: 14px 0 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(--acento);
}
.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(--acento-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(--acento-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(--acento) 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(--acento); 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(--acento); }
.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(70, 45, 15, .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(--acento-suave); color: var(--acento-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%, #fbecd2 0, rgba(251,236,210,0) 45%), linear-gradient(180deg, #fffaf1, var(--papel));
  border: 1px solid #efdfc3; overflow: hidden;
}
.colab::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 170px; height: 170px; border-radius: 50%;
  border: 2px dashed rgba(232, 176, 78, .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(70, 45, 15, .4); border-color: #e6cd9e; }
.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(--acento-suave); color: var(--acento-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(--acento-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; }
}

/* 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(--acento-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; }

/* Menús */
.menu-lista { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 6px; }
.menu-lista li { background: var(--acento-suave); border-radius: 10px; padding: 8px 14px; }
.menu-lista b { color: var(--acento-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(--acento-suave); text-align: center; line-height: 26px; font-weight: 700;
}
.faq details[open] summary::after { content: "−"; background: var(--acento); }
.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(--acento-suave); }

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

/* Franja de contacto */
.pie-contacto {
  display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap;
  padding: 30px 0 28px; margin-bottom: 36px; border-bottom: 1px solid #ecd6b0;
}
.pie-contacto p { margin: 0; color: var(--tinta-suave); }
.pie-contacto .pie-contacto-titulo { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; font-style: italic; color: var(--tinta); margin-bottom: 2px; }
.pie-boton {
  display: inline-flex; align-items: center; gap: 10px; padding: 11px 20px; border-radius: 8px;
  background: var(--acento); color: var(--tinta); text-decoration: none; font-weight: 600; font-size: .95rem;
  transition: background .2s, transform .2s;
}
.pie-boton .ico { width: 20px; height: 20px; color: var(--tinta); }
.pie-boton:hover { color: var(--tinta); background: #f3c876; transform: translateY(-2px); }

/* 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; color: var(--tinta); }
.pie .marca:hover { color: var(--tinta); }
.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: 8px; margin: 6px 0 14px; padding-bottom: 10px; border-bottom: 2px solid var(--acento);
  font-family: var(--serif); font-size: 1.1rem; font-weight: 600; letter-spacing: 0; color: var(--tinta);
}
.pie-col h2 .ico { width: 18px; height: 18px; color: var(--acento-oscuro); }
.pie-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.pie-col a {
  display: inline-block; padding: 3px 0; color: var(--tinta); text-decoration: none; font-size: .95rem;
  transition: color .2s;
}
.pie-col a::before { content: "›"; display: inline-block; width: 14px; color: var(--acento-oscuro); transition: transform .2s; }
.pie-col a:hover { color: var(--azul); text-decoration: underline; text-decoration-color: var(--acento); }
.pie-col a:hover::before { transform: translateX(3px); }

/* 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 #ecdcbf; 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: 8px;
  background: var(--papel); border: 1px solid #ecdcbf; color: var(--tinta) !important; font-weight: 500;
  transition: background .2s, border-color .2s;
}
.pie-arriba .ico { width: 16px; height: 16px; transition: transform .25s; }
.pie-arriba:hover { background: var(--acento); border-color: var(--acento); }
.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(--acento); color: var(--tinta); text-decoration: none; font-weight: 600;
  padding: 10px 20px; border-radius: 999px;
}
.boton:hover { background: #f0c06a; 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; }
}

/* ==========================================================================
   Añadidos propios de bizcocho-de-yogur.com
   ========================================================================== */
.receta-card { position: relative; }
.menu-tarjeta:nth-child(4)::before { background: #b9866a; }
.menu-tarjeta:nth-child(4) .menu-etiqueta { background: #f6ece3; color: #8a5a32; }
.colab-tarjeta:nth-child(6) .colab-ico { background: #f6ece3; color: #8a5a32; }

/* Portada: la foto ocupa todo el ancho */
.hero-foto { object-position: center 50%; }

/* Datos con cuatro casillas */
.datos.cuatro { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 520px) { .datos.cuatro { grid-template-columns: repeat(2, 1fr); } }

/* Recetas: cabecera con foto a la derecha */
.receta-cabecera { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 36px; align-items: center; }
.receta-cabecera .foto-receta { aspect-ratio: 3 / 2; }
@media (max-width: 820px) { .receta-cabecera { grid-template-columns: 1fr; gap: 22px; } }
.pagina-cabecera h1 { margin-bottom: .35em; }

/* Bloque de texto amplio (beneficios, procedencia del chocolate…) */
.beneficios { counter-reset: ben; list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.beneficios li {
  counter-increment: ben; position: relative; background: var(--papel); border: 1px solid var(--borde);
  border-radius: 14px; padding: 14px 18px 14px 58px;
}
.beneficios li::before {
  content: counter(ben); position: absolute; left: 16px; top: 14px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--verde-suave); color: var(--verde); font-weight: 700; font-size: .9rem;
  display: flex; align-items: center; justify-content: center;
}

/* Foto flotante dentro del texto */
.foto-flotante { float: right; width: min(42%, 300px); margin: 6px 0 16px 24px; border-radius: 16px; box-shadow: var(--sombra); }
@media (max-width: 600px) { .foto-flotante { float: none; width: 100%; margin: 6px 0 18px; } }
.menus::after, .limpiar::after { content: ""; display: block; clear: both; }

/* Lista de trucos */
.trucos { list-style: none; margin: 18px 0; padding: 0; display: grid; gap: 14px; }
.trucos li { background: var(--papel); border: 1px solid var(--borde); border-left: 5px solid var(--acento); border-radius: 14px; padding: 16px 20px; }
.trucos li strong { display: block; font-family: var(--serif); font-size: 1.1rem; margin-bottom: 4px; }

/* Página 404 */
.error-numero { font-family: var(--serif); font-size: clamp(4rem, 14vw, 8rem); line-height: 1; color: var(--acento); margin: 0; }

/* Ilustración provisional por categoría (páginas sin foto) */
.sin-foto {
  display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; width: 100%;
  background: radial-gradient(circle at 30% 30%, #fffaf1, #f6d39a); color: var(--acento-oscuro);
}
.sin-foto .sin-foto-ico { width: 64px; height: 64px; stroke-width: 1.3; }
.sin-foto-grande { aspect-ratio: 3 / 2; border-radius: var(--radio); box-shadow: var(--sombra); }
.sin-foto-grande .sin-foto-ico { width: 34%; height: auto; max-width: 150px; aspect-ratio: 1; }
.sin-foto-fruta { background: radial-gradient(circle at 30% 30%, #fdeef2, #efb3c2); color: #a83a5a; }
.sin-foto-especiales { background: radial-gradient(circle at 30% 30%, #f4f8e8, #b9cf7a); color: #4c6618; }
.sin-foto-formatos { background: radial-gradient(circle at 30% 30%, #fdf3ea, #e8c4a0); color: #7f4f26; }
.sin-foto-coberturas { background: radial-gradient(circle at 30% 30%, #ffffff, #eadfcb); color: #8a5512; }
.sin-foto-ocasiones { background: radial-gradient(circle at 30% 30%, #eef3fb, #aac3e6); color: #2f5a8f; }
.sin-foto-guias { background: radial-gradient(circle at 30% 30%, #eef3df, #9db86a); color: #3f5714; }
.sin-foto-yogur { background: radial-gradient(circle at 30% 30%, #ffffff, #dfe9f3); color: #3d6aa3; }

.boton-claro { background: var(--papel); border: 1px solid var(--borde); margin-left: 8px; }
.boton-claro:hover { background: var(--acento-suave); }

/* Calculadora de moldes */
.calculadora { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 22px 0; }
@media (max-width: 640px) { .calculadora { grid-template-columns: 1fr; } }
.calculadora fieldset { margin: 0; background: var(--papel); border: 1px solid var(--borde); border-radius: var(--radio); padding: 18px 22px 20px; }
.calculadora legend { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; padding: 0 6px; }
.calculadora label { display: block; font-weight: 600; font-size: .95rem; margin: 10px 0 4px; }
.calculadora select, .calculadora input {
  font: inherit; width: 100%; padding: 9px 12px; border: 1px solid #d3c3a6; border-radius: 10px; background: #fff; color: var(--tinta);
}
.calc-medidas { display: grid; grid-template-columns: 1fr; }
.calc-b[hidden] { display: none; }
.calc-resultado { background: var(--acento-suave); border: 1px solid #ecd6b0; border-radius: var(--radio); padding: 18px 22px; margin: 0 0 10px; }
.calc-factor { font-size: 1.2rem; margin: 0; }
.calc-factor strong { font-family: var(--serif); font-size: 2rem; color: var(--acento-oscuro); }
.calc-nota { margin: 6px 0 0; color: var(--tinta-suave); font-size: .95rem; }
.calc-nota:empty { display: none; }
.aviso-salud > div > p { margin: 0 0 .5em; } .aviso-salud > div > p:last-child { margin-bottom: 0; }
.aviso-salud .aviso-profesional { font-weight: 600; color: #3f2510; }
.legal .legal-fecha { margin-top: 2em; font-size: .9rem; color: var(--tinta-suave); font-style: italic; }
.aviso-salud > div > p + .aviso-profesional { margin-top: .6em; padding-top: .6em; border-top: 1px dashed rgba(196, 98, 27, .35); }

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

/* Guías: infografía de cabecera entera (lleva texto, no se recorta) */
.cabecera-guia { position: relative; margin: 0 auto; max-width: 2000px; background: var(--crema); }
.cabecera-guia img { display: block; width: 100%; height: auto; }
.cabecera-guia .aviso-ia { top: auto; bottom: 8px; right: 10px; font-size: .62rem; padding: 3px 7px; background: rgba(0, 0, 0, .45); }
.cabecera-guia + .pagina-cabecera { padding-top: 32px; }
@media print { .cabecera-guia { display: none; } }
.hero-receta .migas { margin-bottom: 10px; }
.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 #e2c99c; border-radius: 8px;
  font-size: .84rem; line-height: 1.55; color: var(--tinta-suave);
}
.pie .pie-ia .ico { width: 18px; height: 18px; margin-top: 1px; color: var(--acento-oscuro); }
