/* ==========================================================================
   Cómo Hacer Pan — plantilla 2026
   Hoja de estilos única. Sin dependencias externas.
   ========================================================================== */

:root {
  --crema: #fbf6ee;
  --papel: #ffffff;
  --harina: #f4ece0;
  --tinta: #2b2118;
  --tinta-suave: #5f4f40;
  --corteza: #8a4a17;
  --corteza-osc: #6b3810;
  --trigo: #e3a74a;
  --trigo-claro: #f8e6c4;
  --borde: #e6dac7;
  --sombra: 0 1px 2px rgba(60, 35, 10, .06), 0 6px 20px rgba(60, 35, 10, .08);
  --radio: 14px;
  --ancho: 1160px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--crema);
  overflow-x: clip;
  color: var(--tinta);
  font: 17px/1.7 var(--sans);
}

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

a { color: var(--corteza); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--corteza-osc); text-decoration-thickness: 2px; }

/* Enlaces a otras webs: discretos, se integran en el texto */
a.externo {
  color: inherit; text-decoration-line: underline; text-decoration-style: dotted;
  text-decoration-color: rgba(138, 74, 23, .35); text-decoration-thickness: 1px; text-underline-offset: 3px;
  transition: color .2s, text-decoration-color .2s;
}
a.externo:hover { color: var(--corteza); text-decoration-style: solid; text-decoration-color: currentColor; }

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

h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.2; color: var(--tinta); margin: 1.6em 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 2.9rem); margin-top: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 1.95rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.12rem; }
p { margin: 0 0 1.1em; }
hr { border: 0; border-top: 1px solid var(--borde); margin: 2.5rem 0; }

.contenedor { width: min(100% - 32px, var(--ancho)); margin-inline: auto; }

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

.saltar {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--tinta); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.saltar:focus { top: 12px; color: #fff; }

/* ---------- Cabecera ---------- */
/* Cabecera principal */
.cabecera {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 246, 238, .9);
  backdrop-filter: saturate(1.5) blur(12px);
  -webkit-backdrop-filter: saturate(1.5) blur(12px);
  transition: box-shadow .3s, background .3s;
}
.cabecera::after { /* filete dorado inferior */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(138, 74, 23, .35) 20%, var(--trigo) 50%, rgba(138, 74, 23, .35) 80%, transparent);
}
.cabecera.compacta { background: rgba(251, 246, 238, .97); box-shadow: 0 10px 30px rgba(60, 35, 10, .1); }
.cabecera__fila { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 78px; transition: min-height .3s; }
.cabecera.compacta .cabecera__fila { min-height: 60px; }

/* Barra de progreso de lectura */
.cabecera__progreso { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; pointer-events: none; }
.cabecera__progreso span {
  display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--progreso, 0));
  background: linear-gradient(90deg, var(--corteza), var(--trigo));
  border-radius: 0 3px 3px 0;
}

.marca { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--tinta); white-space: nowrap; flex: none; }
.marca img { width: 38px; height: 38px; transition: transform .4s cubic-bezier(.34, 1.56, .64, 1), width .3s, height .3s; }
.marca > span, .marca__texto > span { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.1; }
.marca b { color: var(--corteza); font-weight: 700; }
.marca:hover { color: var(--tinta); }
.marca:hover img { transform: rotate(-10deg) scale(1.08); }
.cabecera .marca img { width: 42px; height: 42px; filter: drop-shadow(0 4px 8px rgba(138, 74, 23, .3)); }
.cabecera.compacta .marca img { width: 36px; height: 36px; }
.marca__texto { display: flex; flex-direction: column; }
.marca__texto > span { font-size: 1.45rem; }
.marca__texto small {
  font: 600 .66rem/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--tinta-suave);
  margin-top: 5px; display: flex; align-items: center; gap: 8px; transition: opacity .3s, max-height .3s;
  max-height: 20px; overflow: hidden;
}
.marca__texto small::before { content: ""; width: 16px; height: 1px; background: var(--trigo); }
.cabecera.compacta .marca__texto small { opacity: 0; max-height: 0; margin-top: 0; }

.menu-boton {
  display: none; align-items: center; gap: 8px;
  font: 600 .95rem var(--sans); color: var(--tinta);
  background: var(--papel); border: 1px solid var(--borde); border-radius: 999px;
  padding: 8px 16px; cursor: pointer; transition: border-color .2s, box-shadow .2s;
}
.menu-boton:hover { border-color: var(--trigo); box-shadow: 0 4px 14px rgba(138, 74, 23, .12); }
.menu-boton svg { width: 18px; height: 18px; }
.menu-boton svg path { transition: transform .3s, opacity .3s; transform-origin: center; }

/* ---------- Menú principal con submenús ---------- */
.ico { width: 20px; height: 20px; flex: none; }
.cabecera__fila { position: relative; }
.nav__cabeza, .nav__velo { display: none; }
.nav__lista { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav__item { position: relative; }
.nav__item--mega, .nav__item--mas, .nav__item--doble { position: relative; }

.nav__boton {
  position: relative; display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 14px; border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  font: 600 .93rem var(--sans); color: var(--tinta); transition: color .2s, background .25s, box-shadow .25s;
}
.nav__ico { width: 18px; height: 18px; color: var(--corteza); transition: transform .4s cubic-bezier(.34, 1.56, .64, 1), color .2s; }
.nav__caret { width: 14px; height: 14px; opacity: .6; transition: transform .3s ease; }
.nav__boton::after {
  content: ""; position: absolute; left: 50%; right: 50%; bottom: 3px; height: 2px; border-radius: 2px;
  background: var(--trigo); transition: left .25s ease, right .25s ease;
}
.nav__item:hover > .nav__boton, .nav__boton[aria-expanded="true"] { background: rgba(227, 167, 74, .12); color: var(--corteza-osc); }
.nav__item:hover > .nav__boton::after, .nav__boton[aria-expanded="true"]::after { left: 14px; right: 14px; }
.nav__item:hover .nav__ico, .nav__boton[aria-expanded="true"] .nav__ico { transform: rotate(-12deg) scale(1.12); }
.nav__item:hover .nav__caret, .nav__boton[aria-expanded="true"] .nav__caret { transform: rotate(180deg); }
.nav__item.actual > .nav__boton {
  color: #fff; background: linear-gradient(135deg, var(--corteza), #a35a1d);
  box-shadow: 0 4px 12px rgba(138, 74, 23, .3), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.nav__item.actual > .nav__boton .nav__ico { color: #f8e6c4; }
.nav__item.actual > .nav__boton::after { display: none; }

/* Panel desplegable */
.sub {
  position: absolute; top: calc(100% + 12px); left: 50%; z-index: 60;
  min-width: 340px; padding: 22px; max-height: calc(100vh - 100px); overflow-y: auto; overscroll-behavior: contain;
  background: var(--papel); border: 1px solid var(--borde); border-radius: 20px;
  box-shadow: 0 30px 60px -12px rgba(60, 35, 10, .28), 0 0 0 1px rgba(255, 255, 255, .6) inset, inset 0 3px 0 var(--trigo);
  opacity: 0; visibility: hidden; transform: translate(calc(-50% + var(--sub-dx, 0px)), 14px) scale(.97); transform-origin: 50% 0;
  transition: opacity .22s ease, transform .35s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .35s;
}
.sub::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }   /* puente para el ratón */
.nav__item--mega > .sub, .nav__item--mas > .sub, .nav__item--doble > .sub { width: min(1080px, calc(100vw - 32px)); max-height: calc(100vh - 96px); overflow-y: auto; overscroll-behavior: contain; }
.nav__item--doble > .sub { width: min(640px, calc(100vw - 32px)); }
.nav__item--mas > .sub { width: min(860px, calc(100vw - 32px)); }
/* flecha que une el submenú con su botón */
.nav__item::after {
  content: ""; position: absolute; left: 50%; top: calc(100% + 7px); z-index: 61; width: 14px; height: 14px;
  background: var(--papel); border-left: 1px solid var(--borde); border-top: 1px solid var(--borde);
  box-shadow: inset 1px 1px 0 var(--trigo);
  transform: translateX(-50%) translateY(10px) rotate(45deg); opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s, transform .3s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .3s;
}
.nav__item.abierto::after, .nav__item:focus-within::after { opacity: 1; visibility: visible; transform: translateX(-50%) rotate(45deg); transition-delay: 0s; }
@media (hover: hover) and (min-width: 1025px) { .nav__item:hover::after { opacity: 1; visibility: visible; transform: translateX(-50%) rotate(45deg); transition-delay: .06s, .06s, 0s; } }

.nav__item.abierto > .sub,
.nav__item:focus-within > .sub { opacity: 1; visibility: visible; transform: translate(calc(-50% + var(--sub-dx, 0px)), 0) scale(1); transition-delay: 0s; }
@media (hover: hover) and (min-width: 1025px) {
  .nav__item:hover > .sub { opacity: 1; visibility: visible; transform: translate(calc(-50% + var(--sub-dx, 0px)), 0) scale(1); transition-delay: .06s, .06s, 0s; }
}

.sub ul { list-style: none; margin: 0; padding: 0; }
.sub li { opacity: 0; transform: translateY(8px); transition: opacity .3s ease, transform .4s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i, 0) * 22ms); }
.nav__item.abierto .sub li, .nav__item:focus-within .sub li { opacity: 1; transform: none; }
@media (hover: hover) and (min-width: 1025px) { .nav__item:hover .sub li { opacity: 1; transform: none; } }

.sub a { display: flex; align-items: center; gap: 12px; padding: 7px 10px; border-radius: 12px; color: var(--tinta); text-decoration: none; transition: background .2s; }
.sub__ico {
  flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: var(--harina); color: var(--corteza);
  transition: transform .4s cubic-bezier(.34, 1.56, .64, 1), background .25s, color .25s, box-shadow .25s;
}
.sub__ico .ico { width: 18px; height: 18px; }
.sub__txt { display: flex; flex-direction: column; min-width: 0; }
.sub__txt > span { font-weight: 600; font-size: .92rem; line-height: 1.3; transition: color .2s, transform .25s; }
.sub__txt small { color: var(--tinta-suave); font-size: .8rem; line-height: 1.4; margin-top: 2px; }
.sub a:hover, .sub a:focus-visible { background: var(--crema); }
.sub a:hover .sub__ico, .sub a:focus-visible .sub__ico {
  background: linear-gradient(135deg, var(--corteza), #b8691f); color: #fff;
  transform: rotate(-8deg) scale(1.1); box-shadow: 0 6px 14px rgba(138, 74, 23, .3);
}
.sub a:hover .sub__txt > span { color: var(--corteza); transform: translateX(3px); }
.sub a[aria-current="page"] .sub__ico { background: var(--corteza); color: #fff; }
.sub a[aria-current="page"] .sub__txt > span { color: var(--corteza); }

.sub__grupo h3 {
  display: flex; align-items: center; gap: 8px; margin: 0 0 8px; padding: 0 10px 10px;
  font: 700 .72rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--tinta-suave);
  border-bottom: 1px dashed var(--borde);
}
.sub__grupo h3 .ico { width: 17px; height: 17px; color: var(--trigo); }
.sub__grupos { display: grid; gap: 22px 24px; }
.sub__grupos--2 { grid-template-columns: 1fr 1fr; }
.sub__grupos--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sub__grupos--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sub__grupos--3 .sub__ico, .sub__grupos--4 .sub__ico, .sub__grupos--2 .sub__ico { width: 28px; height: 28px; border-radius: 8px; }
.sub__grupos--3 .sub__ico .ico, .sub__grupos--4 .sub__ico .ico, .sub__grupos--2 .sub__ico .ico { width: 15px; height: 15px; }
.sub__grupos--3 a, .sub__grupos--4 a, .sub__grupos--2 a { padding: 5px 8px; gap: 10px; }
.sub__grupos--3 .sub__txt > span, .sub__grupos--4 .sub__txt > span { font-weight: 500; font-size: .88rem; }
.sub__interior--mega { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 26px; }

/* Submenús de una categoría con muchas entradas: dos columnas */
.nav__item:has(.sub__interior--2col) > .sub { width: min(680px, calc(100vw - 32px)); }
.sub__interior--2col .sub__grupo > ul { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 14px; }
.sub__interior--2col a { align-items: flex-start; }
.sub__interior--2col .sub__ico { margin-top: 2px; }

/* Recetas: grupos en 4 columnas tipo mosaico para que quepa sin scroll */
.sub__interior--mega .sub__grupos--3 { display: block; columns: 4 160px; column-gap: 20px; }
.sub__interior--mega .sub__grupo { break-inside: avoid; margin-bottom: 16px; }
.sub__interior--mega .sub__grupo h3 { padding-bottom: 8px; margin-bottom: 4px; }
.sub__interior--mega .sub__grupos--3 a { padding: 3px 6px; gap: 8px; }
.sub__interior--mega .sub__grupos--3 .sub__ico { width: 22px; height: 22px; border-radius: 6px; }
.sub__interior--mega .sub__grupos--3 .sub__ico .ico { width: 13px; height: 13px; }
.sub__interior--mega .sub__grupos--3 .sub__txt > span { font-size: .86rem; }
.sub__interior--mega .sub__destacado { min-height: 0; height: 100%; }
@media (max-width: 1024px) {
  .sub__interior--2col .sub__grupo > ul { grid-template-columns: 1fr; }
  .sub__interior--mega .sub__grupos--3 { columns: auto; }
  .nav__item:has(.sub__interior--2col) > .sub { width: auto; }
}
@media (min-width: 1025px) and (max-height: 720px) {
  .sub__interior--mega { grid-template-columns: 1fr; }
  .sub__interior--mega .sub__destacado { display: none !important; }
  .sub__interior--mega .sub__grupos--3 { columns: 5 150px; }
}

.sub__destacado {
  position: relative; display: flex !important; flex-direction: column; justify-content: flex-end; gap: 4px !important;
  padding: 18px !important; border-radius: 16px !important; overflow: hidden; color: #fff !important; min-height: 280px;
  isolation: isolate; align-items: flex-start !important;
}
.sub__destacado img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.sub__destacado::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(36, 26, 18, 0) 30%, rgba(36, 26, 18, .88)); }
.sub__destacado:hover { background: none !important; }
.sub__destacado:hover img { transform: scale(1.08); }
.sub__ante { font: 700 .7rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--trigo); }
.sub__destacado strong { font-family: var(--serif); font-size: 1.15rem; line-height: 1.3; }
.sub__mas { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 600; color: #f6deb3; margin-top: 6px; }
.sub__mas .ico { width: 16px; height: 16px; transition: transform .25s; }
.sub__destacado:hover .sub__mas .ico { transform: translateX(4px); }

.sub__pie { margin: 18px -22px -22px; padding: 12px 22px; border-top: 1px solid var(--borde); background: var(--crema); border-radius: 0 0 20px 20px; }
.sub__pie a { display: inline-flex; gap: 8px; padding: 4px 0; font-weight: 600; font-size: .9rem; color: var(--corteza); background: none !important; }
.sub__pie .ico { width: 16px; height: 16px; transition: transform .25s; }
.sub__pie a:hover .ico { transform: translateX(5px); }

/* ---------- Menú en móvil y tableta: panel lateral ---------- */
@media (max-width: 1024px) {
  .menu-boton { display: inline-flex; }
  .cabecera { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(251, 246, 238, .98); }
  .nav {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 90; width: min(400px, 90vw);
    background: var(--crema); box-shadow: -30px 0 60px rgba(36, 26, 18, .25);
    overflow-y: auto; overscroll-behavior: contain; padding: 0 16px 32px;
    transform: translateX(105%); visibility: hidden;
    transition: transform .45s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .45s;
  }
  .nav.abierto { transform: none; visibility: visible; transition-delay: 0s; }
  .nav__velo {
    display: block; position: fixed; inset: 0; z-index: 80; background: rgba(36, 26, 18, .45);
    backdrop-filter: blur(3px); opacity: 0; transition: opacity .35s;
  }
  .nav__velo.visible { opacity: 1; }
  .nav__velo[hidden] { display: none; }
  .nav__cabeza {
    display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 2;
    padding: 18px 4px 14px; margin-bottom: 8px; background: var(--crema); border-bottom: 1px solid var(--borde);
  }
  .nav__cabeza .marca__texto > span { font-size: 1.3rem; }
  .nav__cerrar {
    display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
    border: 1px solid var(--borde); background: var(--papel); color: var(--tinta); cursor: pointer;
    transition: transform .3s, background .2s;
  }
  .nav__cerrar:hover { transform: rotate(90deg); background: var(--harina); }
  .nav__lista { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav__lista > li { opacity: 0; transform: translateX(24px); transition: opacity .35s, transform .45s cubic-bezier(.2, .8, .2, 1); }
  .nav.abierto .nav__lista > li { opacity: 1; transform: none; }
  .nav.abierto .nav__lista > li:nth-child(1) { transition-delay: .08s; }
  .nav.abierto .nav__lista > li:nth-child(2) { transition-delay: .12s; }
  .nav.abierto .nav__lista > li:nth-child(3) { transition-delay: .16s; }
  .nav.abierto .nav__lista > li:nth-child(4) { transition-delay: .20s; }
  .nav.abierto .nav__lista > li:nth-child(5) { transition-delay: .24s; }
  .nav__item, .nav__item--mega, .nav__item--mas { position: relative; }
  .nav__boton { width: 100%; justify-content: flex-start; padding: 14px 14px; border-radius: 14px; font-size: 1.02rem; background: var(--papel); border: 1px solid var(--borde); }
  .nav__boton > span { flex: 1; text-align: left; }
  .nav__boton::after { display: none; }
  .nav__ico { width: 22px; height: 22px; }
  .sub, .nav__item--mega > .sub, .nav__item--mas > .sub, .nav__item--doble > .sub {
    position: static; width: auto; min-width: 0; transform: none; box-shadow: none; border: 0; border-radius: 0;
    background: transparent; padding: 6px 0 10px 8px; display: none; opacity: 1; visibility: visible;
    max-height: none; overflow: visible;
  }
  .nav__item:focus-within > .sub, .nav__item.abierto > .sub { transform: none; }
  .nav__item::after { display: none; }
  .nav__item.abierto > .sub { display: block; animation: desplegar .35s cubic-bezier(.2, .8, .2, 1); }
  .sub li { opacity: 1; transform: none; }
  .nav__item.abierto .sub li { animation: entrar .4s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 25ms); }
  .sub__interior--mega, .sub__grupos--2, .sub__grupos--3, .sub__grupos--4 { grid-template-columns: 1fr; gap: 14px; }
  .sub__destacado { display: none !important; }
  .sub__grupo h3 { margin-top: 6px; }
  .sub__pie { margin: 8px 0 0; border-radius: 12px; border: 1px solid var(--borde); }
  .no-js .nav { position: static; transform: none; visibility: visible; width: auto; box-shadow: none; }
  .no-js .nav__lista > li { opacity: 1; transform: none; }
  .no-js .sub { display: block; }
}
@keyframes desplegar { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes entrar { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
body.menu-abierto { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .sub, .sub li, .nav, .nav__lista > li { transition: none !important; animation: none !important; }
}


/* ---------- Portada (index) ---------- */
.portada { position: relative; background: var(--tinta); }
.portada__foto { width: 100%; height: clamp(240px, 42vw, 520px); object-fit: cover; }
.portada__panel {
  position: relative; margin-top: -90px;
  background: var(--papel); border-radius: var(--radio); box-shadow: var(--sombra);
  padding: clamp(22px, 4vw, 40px); max-width: 820px;
}
@media (max-width: 640px) { .portada__panel { margin-top: -28px; } .portada__foto { height: 210px; } }
.portada__panel h1 { margin-bottom: .3em; }
.portada__panel p { font-size: 1.1rem; color: var(--tinta-suave); margin: 0; }
.antetitulo { font: 700 .8rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--corteza); margin: 0 0 12px; }

/* ---------- Encabezado de página interior ---------- */
.encabezado { background: var(--harina); border-bottom: 1px solid var(--borde); padding: 28px 0 36px; }
.encabezado h1 { margin: 0; }
.encabezado__intro { color: var(--tinta-suave); font-size: 1.1rem; margin: .7em 0 0; max-width: 62ch; }

.migas { font-size: .88rem; 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(--tinta-suave); }
.migas a { color: var(--tinta-suave); }
.migas [aria-current] { color: var(--tinta); font-weight: 600; }

/* ---------- Ficha de receta ---------- */
.ficha { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(20px, 4vw, 48px); align-items: center; }
.ficha__foto img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radio); box-shadow: var(--sombra); }
.datos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding: 0; list-style: none; }
.datos li { background: var(--papel); border: 1px solid var(--borde); border-radius: 999px; padding: 5px 14px; font-size: .9rem; }
.datos b { color: var(--corteza); }
@media (max-width: 760px) { .ficha { grid-template-columns: 1fr; } .ficha__foto { order: -1; } }

/* ---------- Diseño con lateral ---------- */
.cuerpo { padding: 44px 0 64px; }
.cuerpo--lateral { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
@media (max-width: 960px) { .cuerpo--lateral { grid-template-columns: minmax(0, 1fr); } }
.articulo, .lateral { min-width: 0; }

.articulo > :first-child { margin-top: 0; }
.articulo .derecha { float: right; margin: 6px 0 16px 24px; max-width: 45%; border-radius: 10px; }
.articulo .izquierda { float: left; margin: 6px 24px 16px 0; max-width: 45%; border-radius: 10px; }
.articulo::after { content: ""; display: table; clear: both; }
.articulo h2, .articulo h3, .articulo h4 { clear: both; }
@media (max-width: 560px) { .articulo .derecha, .articulo .izquierda { float: none; max-width: 100%; margin: 0 0 16px; } }

.tarjeta { background: var(--papel); border: 1px solid var(--borde); border-radius: var(--radio); padding: clamp(20px, 3vw, 30px); box-shadow: var(--sombra); }

/* Ingredientes */
.ingredientes h2 { margin-top: 0; font-size: 1.45rem; }
.ingredientes ul { list-style: none; margin: 0; padding: 0; columns: 2 220px; column-gap: 28px; }
.ingredientes li { position: relative; padding: 7px 0 7px 30px; border-bottom: 1px dashed var(--borde); break-inside: avoid; }
.ingredientes li::before {
  content: ""; position: absolute; left: 0; top: 12px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--trigo-claro) 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='%238a4a17' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}

/* Pasos */
.pasos { list-style: none; margin: 0; padding: 0; counter-reset: paso; }
.paso { counter-increment: paso; display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--borde); }
.paso:last-child { border-bottom: 0; }
.paso img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; }
.paso h3 { margin: 0 0 .4em; font-size: 1.2rem; display: flex; align-items: center; gap: 12px; }
.paso h3::before {
  content: counter(paso); flex: none; display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%; background: var(--corteza); color: #fff; font: 700 1rem var(--sans);
}
.paso p:last-child { margin-bottom: 0; }
@media (max-width: 640px) { .paso { grid-template-columns: 1fr; gap: 14px; } }

.nota { background: var(--trigo-claro); border-left: 4px solid var(--trigo); padding: 14px 18px; border-radius: 0 10px 10px 0; margin: 24px 0; }

.lista-menu { background: var(--harina); border-radius: 10px; padding: 14px 18px; margin: 0 0 1.1em; list-style: none; }
.lista-menu li { padding: 2px 0; }
.lista-menu b { color: var(--corteza); }

/* Lateral */
.lateral { 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 { border-top: 1px solid var(--borde); }
.lateral li:first-child { border-top: 0; }
.lateral a { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 12px 0; text-decoration: none; color: var(--tinta); }
.lateral a:hover strong { color: var(--corteza); text-decoration: underline; }
.lateral img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.lateral strong { display: block; font-family: var(--serif); font-size: 1.05rem; }
.lateral small { display: block; color: var(--tinta-suave); font-size: .85rem; line-height: 1.45; }
@media (max-width: 960px) { .lateral { position: static; } }

/* Tarjetas de recetas */
.seccion { padding: 56px 0; }
.seccion--harina { background: var(--harina); border-block: 1px solid var(--borde); }
.seccion__cabecera { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 24px; }
.seccion__cabecera h2 { margin: 0; }

.recetas { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; list-style: none; margin: 0; padding: 0; }
.receta { background: var(--papel); border: 1px solid var(--borde); border-radius: var(--radio); overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; position: relative; }
.receta:hover { transform: translateY(-3px); box-shadow: var(--sombra); }
.receta img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.receta__texto { padding: 16px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.receta h3 { margin: 0 0 6px; font-size: 1.2rem; }
.receta h3 a { color: var(--tinta); text-decoration: none; }
.receta h3 a::after { content: ""; position: absolute; inset: 0; }
.receta p { color: var(--tinta-suave); font-size: .93rem; line-height: 1.55; margin: 0 0 12px; flex: 1; }
.receta .leer { font-weight: 600; font-size: .9rem; color: var(--corteza); }

/* Botones */
.boton { display: inline-flex; align-items: center; gap: 8px; background: var(--corteza); color: #fff; padding: 11px 20px; border-radius: 999px; text-decoration: none; font-weight: 600; }
.boton:hover { background: var(--corteza-osc); color: #fff; }

/* FAQ */
.faq details { background: var(--papel); border: 1px solid var(--borde); border-radius: 12px; margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 16px 52px 16px 20px; font-weight: 600; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--corteza); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 20px 6px; }

/* Mapa web */
.mapa { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.mapa h2 { font-size: 1.25rem; margin-top: 0; }
.mapa ul { margin: 0; padding-left: 1.1em; }
.mapa li { padding: 3px 0; }

/* Texto legal */
.legal { max-width: 78ch; }
.legal h2 { font-size: 1.35rem; padding-top: 1.2em; border-top: 1px solid var(--borde); }
.legal h2:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.legal .actualizado { color: var(--tinta-suave); font-size: .9rem; margin-bottom: 1.4em; }
.legal .indice--legal { margin: 0 0 2em; }
.legal .indice--legal h2 { border: 0; padding: 0; margin: 0 0 8px; font-size: 1.05rem; }
.legal .indice--legal ol { columns: 2 220px; column-gap: 28px; }
.legal .resumen-legal { margin: 0 0 1.6em; }
.legal .resumen-legal ul { margin: 6px 0 0; padding-left: 1.1em; }
.ficha-legal { display: grid; grid-template-columns: minmax(130px, auto) 1fr; gap: 0; margin: 0 0 1.2em; background: var(--papel); border: 1px solid var(--borde); border-radius: 12px; overflow: hidden; }
.ficha-legal dt, .ficha-legal dd { margin: 0; padding: 10px 16px; border-bottom: 1px solid var(--borde); }
.ficha-legal dt { font-weight: 600; background: var(--harina); font-size: .9rem; }
.ficha-legal dt:nth-last-of-type(1), .ficha-legal dd:last-of-type { border-bottom: 0; }
@media (max-width: 560px) { .ficha-legal { grid-template-columns: 1fr; } .ficha-legal dt { border-bottom: 0; padding-bottom: 2px; } }

/* ---------- Pie ---------- */
.pie { --pie-fondo: #241a12; position: relative; color: #e9dfd2; font-size: .95rem; }
.pie__ola { display: block; width: 100%; height: clamp(40px, 6vw, 90px); margin-bottom: -1px; }
.pie__ola path { fill: var(--pie-fondo); }
main:has(> .seccion--harina:last-child) + .pie .pie__ola { background: var(--harina); }
main > .seccion--harina:last-child { border-bottom: 0; }
.pie__ola .pie__ola2 { fill: #3a2a1c; opacity: .55; }

.pie__fondo {
  position: relative; overflow: hidden; padding: 24px 0 26px;
  background:
    radial-gradient(900px 380px at 12% 0%, rgba(227, 167, 74, .16), transparent 70%),
    radial-gradient(700px 420px at 100% 100%, rgba(138, 74, 23, .35), transparent 70%),
    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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E"),
    var(--pie-fondo);
}

/* espiga decorativa que se balancea */
.pie__espiga {
  position: absolute; right: 4%; bottom: -10px; width: 110px; height: 330px;
  color: var(--trigo); opacity: .07; transform-origin: 50% 100%;
  animation: balanceo 7s ease-in-out infinite; pointer-events: none;
}
@keyframes balanceo { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }

/* Llamada a la acción */
.pie__cta {
  position: relative; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px 32px;
  padding: clamp(22px, 3.5vw, 34px) clamp(22px, 4vw, 44px); border-radius: 20px; margin-bottom: 52px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02));
  border: 1px solid rgba(246, 222, 179, .18);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .08);
  backdrop-filter: blur(6px);
}
.pie__cta::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(120deg, transparent 20%, rgba(227, 167, 74, .7), transparent 60%);
  background-size: 250% 100%; animation: brillo 6s linear infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
@keyframes brillo { from { background-position: 150% 0; } to { background-position: -100% 0; } }
.pie__cta-ante { margin: 0 0 4px; font: 700 .78rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--trigo); }
.pie__cta-titulo { margin: 0; font: 700 clamp(1.25rem, 2.4vw, 1.6rem)/1.3 var(--serif); color: #fff; max-width: 30ch; }
.pie .pie__cta-boton {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px;
  background: linear-gradient(135deg, #f0b456, #d98f2b); color: #2b1a0c; font-weight: 700; text-decoration: none;
  box-shadow: 0 8px 24px rgba(227, 167, 74, .35); transition: transform .2s, box-shadow .2s;
}
.pie .pie__cta-boton svg { width: 20px; height: 20px; }
.pie .pie__cta-boton:hover { color: #2b1a0c; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(227, 167, 74, .5); }

/* Columnas */
.pie__rejilla { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; }
.pie h2 {
  position: relative; color: #fff; font: 700 .82rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  margin: 8px 0 18px; padding-bottom: 12px;
}
.pie h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 2px; border-radius: 2px; background: var(--trigo); transition: width .3s; }
.pie nav:hover h2::after { width: 56px; }
.pie ul { list-style: none; margin: 0; padding: 0; }
.pie nav li { padding: 4px 0; }
.pie nav a { color: #d9cbb8; text-decoration: none; display: inline-flex; align-items: center; transition: color .2s, transform .2s; }
.pie nav a::before { content: "→"; width: 0; overflow: hidden; opacity: 0; color: var(--trigo); transition: width .2s, opacity .2s, margin .2s; }
.pie nav a span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .25s; padding-bottom: 1px; }
.pie nav a:hover, .pie nav a:focus-visible { color: #fff; }
.pie nav a:hover::before, .pie nav a:focus-visible::before { width: 1.1em; opacity: 1; margin-right: 4px; }
.pie nav a:hover span, .pie nav a:focus-visible span { background-size: 100% 1px; }

.pie .marca span { color: #fff; }
.pie .marca span b { color: var(--trigo); }
.pie .marca img { width: 44px; height: 44px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .4)); transition: transform .4s; }
.pie .marca:hover img { transform: rotate(-8deg) scale(1.06); }
.pie__aviso { color: #c9bba9; margin: 16px 0 18px; max-width: 34ch; }
.pie__sellos { display: flex; flex-wrap: wrap; gap: 8px; }
.pie__sellos li { font-size: .78rem; padding: 5px 12px; border-radius: 999px; color: #f6deb3; border: 1px solid rgba(246, 222, 179, .22); background: rgba(255, 255, 255, .04); }

/* Aviso de uso de IA */
.pie__ia {
  display: flex; align-items: flex-start; gap: 10px; margin: 40px 0 0; padding: 14px 18px;
  border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(246, 222, 179, .14);
  color: #b8a995; font-size: .82rem; line-height: 1.55;
}
.pie__ia .ico { width: 16px; height: 16px; flex: none; color: var(--trigo); margin-top: 2px; }

/* Base */
.pie__base {
  margin-top: 48px; padding-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, rgba(246, 222, 179, .3), transparent) 1;
  color: #a8998a; font-size: .85rem;
}
.pie__base p { margin: 0; }
.pie__base strong { color: #e9dfd2; font-weight: 600; }
.pie .pie__arriba {
  flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  color: #2b1a0c; background: var(--trigo); box-shadow: 0 6px 18px rgba(0, 0, 0, .35); transition: transform .25s, background .25s;
}
.pie .pie__arriba svg { width: 20px; height: 20px; }
.pie .pie__arriba:hover { transform: translateY(-4px); background: #f6c672; color: #2b1a0c; }

/* Aparición al hacer scroll (solo con JS) */
.js .revelar { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .revelar.visible { opacity: 1; transform: none; }
.js .pie__rejilla .revelar:nth-child(2) { transition-delay: .08s; }
.js .pie__rejilla .revelar:nth-child(3) { transition-delay: .16s; }
.js .pie__rejilla .revelar:nth-child(4) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  .pie__espiga, .pie__cta::before { animation: none; }
  .js .revelar { opacity: 1; transform: none; }
}
@media (max-width: 860px) { .pie__rejilla { grid-template-columns: 1fr 1fr; } .pie__marca { grid-column: 1 / -1; } }
@media (max-width: 520px) { .pie__rejilla { grid-template-columns: 1fr; } .pie__cta-boton { width: 100%; justify-content: center; } }

/* Página 404 */
.error404 { text-align: center; padding: 80px 0; }
.error404 .codigo { font: 700 clamp(4rem, 14vw, 8rem)/1 var(--serif); color: var(--trigo); margin: 0; }

/* =====================================================================
   Plantillas de contenido (recetas nuevas, guías, índices, herramientas)
   ===================================================================== */

/* Cabecera de foto a ancho completo en subpáginas (como la portada) */
.banda { position: relative; background: var(--tinta); }
.banda__foto { width: 100%; height: clamp(200px, 34vw, 460px); object-fit: cover; object-position: 50% 55%; }
.banda::after { /* fundido inferior hacia el encabezado */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 70px; pointer-events: none;
  background: linear-gradient(transparent, rgba(244, 236, 224, .55));
}
.banda + .encabezado { position: relative; margin-top: -56px; background: transparent; border-bottom: 0; padding-top: 0; }
.banda + .encabezado > .contenedor {
  position: relative; z-index: 1; background: var(--papel); border-radius: var(--radio);
  box-shadow: var(--sombra); padding: clamp(20px, 3.5vw, 34px) clamp(20px, 4vw, 40px);
}
.banda + .encabezado .encabezado__rejilla { grid-template-columns: 1fr; }
.ficha--sola { grid-template-columns: 1fr; }
@media (max-width: 640px) { .banda + .encabezado { margin-top: -24px; } }

/* Aviso discreto de imagen generada */
.aviso-ia {
  position: absolute; right: 10px; bottom: 8px; z-index: 2; pointer-events: none;
  font: 500 .62rem/1 var(--sans); letter-spacing: .04em; color: rgba(255, 255, 255, .78);
  background: rgba(30, 20, 12, .3); padding: 3px 6px; border-radius: 4px;
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.banda .aviso-ia { bottom: 66px; right: 14px; }
.portada .aviso-ia { bottom: 12px; right: 14px; }
@media (max-width: 640px) { .banda .aviso-ia { bottom: 30px; } }
.ficha__foto, .encabezado__foto { position: relative; }
.receta__foto .aviso-ia { font-size: .55rem; right: 8px; bottom: 6px; }
.lateral__mini { position: relative; display: block; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; }
.aviso-ia--mini { left: 0; right: 0; bottom: 0; border-radius: 0; padding: 2px 0; text-align: center; font-size: .42rem; letter-spacing: 0; white-space: nowrap; }
.nota.aviso-ia-legal { font-size: .92rem; }
.nota.aviso-ia-legal .ico { width: 18px; height: 18px; color: var(--corteza); flex: none; margin-top: 3px; }

/* Recomendaciones (portada) */
.recomendaciones {
  clear: both; position: relative; margin: 48px 0 40px; padding: clamp(22px, 3.5vw, 32px);
  border-radius: 20px; background: linear-gradient(160deg, #fffaf2, var(--harina));
  border: 1px solid var(--borde); overflow: hidden;
}
.recomendaciones::before { /* espiga decorativa de fondo */
  content: ""; position: absolute; right: -30px; top: -30px; width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(227, 167, 74, .22), transparent 70%); pointer-events: none;
}
.recomendaciones > h3 {
  display: flex; align-items: center; gap: 10px; margin: 0 0 20px;
  font: 700 .78rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--corteza);
}
.recomendaciones > h3 .ico { width: 18px; height: 18px; color: var(--trigo); }
.recomendaciones > h3::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--borde), transparent); }
.recomendaciones__rejilla { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.recomendacion {
  background: rgba(255, 255, 255, .7); border: 1px solid var(--borde); border-radius: 14px; padding: 16px 18px;
  font-size: .9rem; line-height: 1.6; color: var(--tinta-suave);
  transition: transform .25s, box-shadow .25s, background .25s;
}
.recomendacion:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(60, 35, 10, .08); background: #fff; }
.recomendacion h4 {
  display: flex; align-items: center; gap: 8px; margin: 0 0 6px;
  font-family: var(--serif); font-size: 1.02rem; color: var(--tinta);
}
.recomendacion h4 .ico { width: 18px; height: 18px; color: var(--corteza); }
.recomendacion p { margin: 0 0 .6em; }
.recomendacion p:last-child { margin-bottom: 0; }

/* Idea para acompañar (recetas) */
.idea {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px 20px; border-radius: 14px;
  background: var(--harina); border: 1px solid var(--borde); color: var(--tinta-suave);
}
.idea .ico { width: 24px; height: 24px; flex: none; color: var(--trigo); margin-top: 2px; }
.idea p { margin: 0; }
.idea__texto { display: flex; gap: 14px; align-items: flex-start; }
.idea--foto { padding: 0; overflow: hidden; display: grid; grid-template-columns: 220px 1fr; gap: 0; align-items: stretch; }
.idea--foto .idea__foto { width: 100%; height: 100%; object-fit: cover; min-height: 150px; }
.idea--foto .idea__texto { padding: 18px 22px; align-self: center; }
@media (max-width: 560px) { .idea--foto { grid-template-columns: 1fr; } .idea--foto .idea__foto { aspect-ratio: 3 / 2; height: auto; } }

/* Foto provisional (hasta que llegue la fotografía definitiva) */
.foto-vacia {
  --tono: 30;
  position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 3 / 2; overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, hsla(var(--tono), 70%, 92%, .9), transparent 55%),
    radial-gradient(circle at 85% 90%, hsla(var(--tono), 55%, 55%, .35), transparent 60%),
    repeating-linear-gradient(135deg, hsla(var(--tono), 40%, 50%, .05) 0 12px, transparent 12px 24px),
    linear-gradient(135deg, hsl(var(--tono), 60%, 86%), hsl(var(--tono), 45%, 72%));
}
.foto-vacia__ico { width: 34%; max-width: 120px; height: auto; color: hsl(var(--tono), 45%, 32%); opacity: .55; stroke-width: 1.2; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.ficha__foto .foto-vacia { border-radius: var(--radio); box-shadow: var(--sombra); }

/* Tarjetas */
.receta__foto { position: relative; overflow: hidden; }
.receta__foto img { transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.receta:hover .receta__foto img, .receta:hover .foto-vacia__ico { transform: scale(1.07); }
.receta__cat {
  position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px 4px 8px; border-radius: 999px; font-size: .74rem; font-weight: 600;
  background: rgba(255, 255, 255, .92); color: var(--corteza-osc); box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}
.receta__cat .ico { width: 14px; height: 14px; }
.receta .leer { transition: letter-spacing .25s; }
.receta:hover .leer { letter-spacing: .03em; }
.seccion__mas { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.seccion__mas .ico { width: 18px; transition: transform .25s; }
.seccion__mas:hover .ico { transform: translateX(4px); }
.seccion--hub { padding: 40px 0 24px; scroll-margin-top: 80px; }
.seccion--hub + .seccion--hub { border-top: 1px solid var(--borde); }

/* Encabezados de receta y guía */
.antetitulo { display: inline-flex; align-items: center; gap: 8px; }
.antetitulo .ico { width: 18px; height: 18px; }
.encabezado__rejilla { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; }
.encabezado__emblema {
  display: grid; place-items: center; width: clamp(110px, 16vw, 170px); aspect-ratio: 1; border-radius: 32px;
  background: linear-gradient(145deg, var(--papel), var(--trigo-claro)); color: var(--corteza);
  box-shadow: var(--sombra), inset 0 0 0 1px var(--borde); transform: rotate(-4deg);
  animation: flotar 6s ease-in-out infinite;
}
.encabezado__emblema .ico { width: 52%; height: auto; stroke-width: 1.3; }
@keyframes flotar { 0%, 100% { transform: rotate(-4deg) translateY(0); } 50% { transform: rotate(2deg) translateY(-6px); } }
.encabezado__foto { width: clamp(220px, 34vw, 440px); }
.encabezado__foto img, .encabezado__foto .foto-vacia { border-radius: var(--radio); box-shadow: var(--sombra); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
@media (max-width: 760px) { .encabezado__rejilla { grid-template-columns: 1fr; } .encabezado__emblema { display: none; } .encabezado__foto { width: 100%; order: -1; } }

.datos--receta { gap: 10px; margin-top: 24px; }
.datos--receta li { display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 10px; border-radius: 14px; }
.datos--receta .ico { width: 26px; height: 26px; padding: 4px; border-radius: 8px; background: var(--trigo-claro); color: var(--corteza); }
.datos--receta span { display: flex; flex-direction: column; line-height: 1.25; }
.datos--receta small { font-size: .72rem; color: var(--tinta-suave); text-transform: uppercase; letter-spacing: .08em; }
.datos--receta b { color: var(--tinta); font-weight: 600; }

.ingredientes--grupos h3 { font: 700 .8rem/1 var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--corteza); margin: 18px 0 6px; }
.ingredientes--grupos h3:first-of-type { margin-top: 4px; }

.paso--texto { grid-template-columns: 1fr; }
.pasos .paso--texto h3 { font-size: 1.15rem; }

.consejos-caja {
  margin: 36px 0; padding: 22px 26px; border-radius: var(--radio);
  background: linear-gradient(135deg, var(--trigo-claro), #fdf3e1); border: 1px solid #efd7a9;
}
.consejos-caja h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 1.3rem; }
.consejos-caja h2 .ico { width: 26px; height: 26px; color: var(--corteza); }
.consejos-caja ul { margin: 0; padding-left: 1.2em; }
.consejos-caja li { padding: 4px 0; }
.consejos-caja li::marker { color: var(--corteza); }

.nota { display: flex; gap: 12px; align-items: flex-start; }
.nota > .ico { width: 22px; height: 22px; color: var(--corteza); margin-top: 3px; }

.tabla { overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--borde); border-radius: 12px; background: var(--papel); }
.tabla table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 460px; }
.tabla th, .tabla td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--borde); }
.tabla thead th { background: var(--harina); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--tinta-suave); }
.tabla tbody tr:last-child td { border-bottom: 0; }
.tabla tbody tr { transition: background .15s; }
.tabla tbody tr:hover { background: var(--crema); }

.articulo .faq { margin-top: 40px; }
.articulo h2[id] { scroll-margin-top: 84px; }

/* Lateral de categoría e índice */
.lateral > * + * { margin-top: 20px; }
.lateral__lista a { grid-template-columns: 36px 1fr !important; align-items: start; }
.lateral__ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--harina); color: var(--corteza); transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), background .2s, color .2s; }
.lateral__ico .ico { width: 18px; height: 18px; }
.lateral__lista a:hover .lateral__ico { background: var(--corteza); color: #fff; transform: rotate(-8deg); }
.lateral .indice a { display: inline; padding: 0; }
.lateral .lateral__todo { display: inline-flex; padding: 0; align-items: center; gap: 6px; margin-top: 12px; font-weight: 600; text-decoration: none; }
.lateral__todo .ico { width: 16px; transition: transform .25s; }
.lateral__todo:hover .ico { transform: translateX(4px); }
.indice h2 { display: flex; align-items: center; gap: 8px; font-size: 1.05rem !important; }
.indice h2 .ico { color: var(--corteza); }
.indice ol { margin: 0; padding-left: 1.3em; font-size: .92rem; }
.indice li { padding: 3px 0; }
.indice li::marker { color: var(--trigo); font-weight: 700; }
.indice a { text-decoration: none; }
.indice a:hover { text-decoration: underline; }

/* Chips de categorías en índices */
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; }
.chips a {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px 8px 12px; border-radius: 999px;
  background: var(--papel); border: 1px solid var(--borde); color: var(--tinta); text-decoration: none; font-weight: 600; font-size: .9rem;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.chips a .ico { width: 18px; height: 18px; color: var(--corteza); }
.chips a:hover { transform: translateY(-2px); box-shadow: var(--sombra); border-color: var(--trigo); }

/* Explora (portada) */
.explora__rejilla { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.explora__tile {
  position: relative; display: flex; flex-direction: column; gap: 4px; padding: 22px; height: 100%; overflow: hidden;
  background: var(--papel); border: 1px solid var(--borde); border-radius: var(--radio); color: var(--tinta); text-decoration: none;
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s, border-color .3s;
}
.explora__tile::after {
  content: ""; position: absolute; right: -40px; bottom: -40px; width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(227, 167, 74, .25), transparent 70%); transition: transform .5s;
}
.explora__tile:hover { transform: translateY(-4px); box-shadow: var(--sombra); border-color: var(--trigo); color: var(--tinta); }
.explora__tile:hover::after { transform: scale(2.2); }
.explora__ico { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 10px; border-radius: 14px; background: var(--harina); color: var(--corteza); transition: transform .45s cubic-bezier(.34, 1.56, .64, 1), background .25s, color .25s; }
.explora__ico .ico { width: 24px; height: 24px; }
.explora__tile:hover .explora__ico { transform: rotate(-10deg) scale(1.1); background: var(--corteza); color: #fff; }
.explora__tile strong { font-family: var(--serif); font-size: 1.15rem; }
.explora__tile small { color: var(--tinta-suave); }

/* Calculadoras */
.calc h2 { margin-top: 0; }
.calc__rejilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px 18px; }
.calc label { display: flex; flex-direction: column; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--tinta-suave); }
.calc input, .calc select {
  font: 500 1.05rem var(--sans); color: var(--tinta); padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--borde); background: var(--crema); transition: border-color .2s, box-shadow .2s;
}
.calc input:focus, .calc select:focus { outline: none; border-color: var(--trigo); box-shadow: 0 0 0 4px rgba(227, 167, 74, .25); }
.calc__resultado { margin-top: 24px; padding: 20px 22px; border-radius: 14px; background: var(--harina); }
.calc__resultado h3 { margin: 0 0 10px; font-size: 1.1rem; }
.calc__resultado table { width: 100%; border-collapse: collapse; }
.calc__resultado th, .calc__resultado td { padding: 8px 0; border-bottom: 1px dashed var(--borde); text-align: left; }
.calc__resultado td { text-align: right; font: 700 1.1rem var(--serif); color: var(--corteza); }
.calc__extra { margin: 12px 0 0; color: var(--tinta-suave); font-size: .92rem; }
.calc__grande { font: 700 3rem/1 var(--serif); color: var(--corteza); margin: 14px 0 8px; }
.calc__medidor { height: 12px; border-radius: 999px; background: linear-gradient(90deg, #f5e3c1, #e3a74a 50%, #8a4a17); position: relative; overflow: hidden; }
.calc__medidor span { position: absolute; left: 0; top: 0; bottom: 0; border-right: 3px solid var(--tinta); background: rgba(255, 255, 255, .35); transition: width .4s cubic-bezier(.2, .8, .2, 1); }
.calc__buscar { margin-bottom: 16px; }
.mapa h2 { display: flex; align-items: center; gap: 8px; }
.mapa h2 .ico { color: var(--corteza); }
.mapa h2 a { color: var(--tinta); text-decoration: none; }

/* Aparición de tarjetas al hacer scroll */
.js .recetas .receta, .js .explora__rejilla > li { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1), box-shadow .15s; transition-delay: calc(min(var(--i, 0), 8) * 50ms); }
.js .recetas .receta.visible, .js .explora__rejilla > li.visible { opacity: 1; transform: none; }
.js .recetas .receta.visible:hover { transform: translateY(-3px); transition-delay: 0s; }
@media (prefers-reduced-motion: reduce) {
  .encabezado__emblema { animation: none; }
  .js .recetas .receta, .js .explora__rejilla > li { opacity: 1; transform: none; }
}

@media print {
  .cabecera, .pie, .lateral, .seccion--otras, .saltar, .menu-boton { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .cuerpo--lateral { display: block; }
  .tarjeta { box-shadow: none; }
}

.recomendacion__nota { font-size: .8rem; font-style: italic; opacity: .85; }
