/* Cocina con Chorris.
 *
 * Papel crema, tinta casi negra y un color por sección. Los titulares van en
 * Fraunces, una serif blanda de recetario; el resto en Outfit. El movimiento
 * está para dar vida (los chefs respiran, las tarjetas entran al hacer scroll)
 * y se apaga entero si el sistema pide menos movimiento. */

:root {
  --crema: #FFF7EE;
  --crema-2: #FBEBDA;
  --papel: #FFFDF9;
  --tinta: #221A1C;
  --tinta-2: #5E4E52;
  --tinta-3: #8F7D80;
  --linea: #EADBCB;

  --marca: #D4587E;
  --marca-osc: #B23E63;

  --platos: #E0582F;
  --platos-suave: #FDE3D6;
  --entrantes: #D9951B;
  --entrantes-suave: #FCEBC4;
  --postres: #C2457A;
  --postres-suave: #F9DDE9;
  --cocktails: #23898A;
  --cocktails-suave: #D5EEEC;

  --serif: "Fraunces", Georgia, serif;
  --sans: "Outfit", "Segoe UI", system-ui, sans-serif;

  --radio: 22px;
  --radio-s: 14px;
  --ancho: 1180px;
  --margen: clamp(16px, 4vw, 40px);
  --sombra: 0 1px 2px rgba(60, 30, 20, .06), 0 8px 24px -8px rgba(60, 30, 20, .14);
  --sombra-alta: 0 2px 4px rgba(60, 30, 20, .06), 0 24px 48px -16px rgba(60, 30, 20, .28);
  --muelle: cubic-bezier(.34, 1.56, .64, 1);
  --suave: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }

/* `clip` y no `hidden`: la cinta va girada y asoma, y con hidden el móvil
 * sigue dejando arrastrar la página de lado. */
html { scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  background: var(--crema);
  color: var(--tinta);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* Grano de papel muy leve: quita el aspecto de plantilla plana. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .3 0 0 0 0 .2 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-variation-settings: "SOFT" 100; letter-spacing: -.02em; }
em { font-style: italic; }

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

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

.visualmente-oculto {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.envoltura { max-width: var(--ancho); margin: 0 auto; padding: 0 var(--margen); }

/* --- Cabecera ------------------------------------------------------------- */

.cabecera {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}

.cabecera--scroll {
  background: rgba(255, 247, 238, .82);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 1px 0 var(--linea);
}

.cabecera__dentro {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: var(--ancho);
  margin: 0 auto;
  padding: 14px var(--margen);
}

.marca {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.marca__chefs { display: flex; align-items: flex-end; height: 40px; overflow: hidden; }
.marca__chefs svg { width: 34px; height: 40px; transition: transform .4s var(--muelle); }
.marca__chefs svg + svg { margin-left: -12px; }
.marca:hover .marca__chefs svg:first-child { transform: rotate(-8deg) translateY(-2px); }
.marca:hover .marca__chefs svg:last-child { transform: rotate(8deg) translateY(-2px); }

.marca__texto {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.marca__texto em { color: var(--marca); font-weight: 800; }

/* Las secciones como píldoras, con un fondo que se desliza a la activa. */
.nav {
  position: relative;
  display: flex;
  gap: 2px;
  margin-left: auto;
  padding: 4px;
  border: 1px solid var(--linea);
  border-radius: 999px;
  background: rgba(255, 253, 249, .7);
}

.nav__fondo {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 0;
  border-radius: 999px;
  background: var(--tinta);
  opacity: 0;
  transition: transform .45s var(--suave), width .45s var(--suave), opacity .2s;
}

.nav a {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--tinta-2);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color .25s;
}
.nav a:hover { color: var(--tinta); }
.nav a.activo { color: #fff; }
.nav svg { width: 16px; height: 16px; }

/* --- Portada: la escena ---------------------------------------------------- */

.heroe {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
  gap: 32px;
  min-height: min(640px, calc(100svh - 70px));
  padding-top: 24px;
  padding-bottom: 48px;
}

.heroe__antetitulo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  background: var(--papel);
  box-shadow: var(--sombra);
  color: var(--tinta-2);
  font-size: 14px;
  font-weight: 500;
}
.heroe__antetitulo svg { width: 18px; height: 18px; color: var(--entrantes); animation: girar 6s linear infinite; }

.heroe h1 {
  margin: 0;
  font-size: clamp(44px, 7.4vw, 92px);
  font-weight: 800;
  line-height: .98;
}

/* «¿Qué cocinamos [hoy]?» con la palabra cambiando por recetas. Va en su
 * propia línea y con alto fijo, para que un nombre largo no mueva nada. */
.rotador {
  position: relative;
  display: grid;
  height: 1.12em;
  overflow: hidden;
  color: var(--marca);
  font-style: italic;
}
.rotador span {
  grid-area: 1 / 1;
  white-space: nowrap;
  transition: transform .7s var(--suave), opacity .5s;
}
.rotador span.entra { transform: translateY(105%); opacity: 0; }
.rotador span.sale { transform: translateY(-105%); opacity: 0; }

.heroe__texto {
  max-width: 46ch;
  margin: 22px 0 28px;
  color: var(--tinta-2);
  font-size: 18px;
}

.buscador {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 540px;
  padding: 6px;
  border: 1px solid var(--linea);
  border-radius: 999px;
  background: var(--papel);
  box-shadow: var(--sombra);
  transition: box-shadow .3s, border-color .3s, transform .3s var(--suave);
}
.buscador:focus-within {
  border-color: var(--marca);
  box-shadow: 0 0 0 5px rgba(212, 88, 126, .14), var(--sombra-alta);
  transform: translateY(-2px);
}
.buscador > svg { flex-shrink: 0; width: 20px; height: 20px; margin: 0 4px 0 14px; color: var(--tinta-3); }
.buscador input {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: var(--tinta);
  font: inherit;
  font-size: 16px;
}
.buscador input:focus { outline: none; }

.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--tinta);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .3s var(--muelle), background .2s;
}
.boton:hover { background: var(--marca-osc); transform: translateY(-2px); }
.boton:active { transform: scale(.96); }
.boton svg { width: 18px; height: 18px; }
.boton--claro { background: var(--papel); color: var(--tinta); box-shadow: var(--sombra); }
.boton--claro:hover { background: #fff; }
.boton:hover .dado { animation: rodar .6s var(--suave); }

.heroe__acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 18px; color: var(--tinta-3); font-size: 14px; }

/* La escena: un plato grande con los chefs, ingredientes en órbita y vapor. */
.escena {
  position: relative;
  aspect-ratio: 1;
  width: min(100%, 520px);
  justify-self: center;
}

/* El plato: borde de colores de las cuatro secciones, que gira despacio. */
.escena__plato {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--marca), var(--entrantes), var(--platos), var(--postres), var(--cocktails), var(--marca));
  box-shadow: var(--sombra-alta);
  animation: aparecerPlato 1s var(--muelle) both;
}
.escena__plato::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--crema-2);
}

.escena__plato::after {
  content: "";
  position: absolute;
  inset: -14px;
  border: 2px dashed var(--linea);
  border-radius: 50%;
  animation: girar 60s linear infinite;
}

/* El medallón: un círculo que recorta a los chefs por abajo, como un retrato. */
.escena__chefs {
  position: absolute;
  inset: 19%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 13%;
  overflow: hidden;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #fff, var(--papel) 60%, var(--crema-2));
  cursor: pointer;
}

/* El dibujo ocupa poco de su lienzo (120×140), así que van grandes y
 * solapados para que las caras llenen el medallón. */
.chef { width: 74%; height: auto; aspect-ratio: 120 / 140; overflow: visible; flex-shrink: 0; }
.chef--ella { animation: respirar 4s ease-in-out infinite; transform-origin: 50% 100%; }
.chef--el { margin-left: -36%; animation: respirar 4s ease-in-out -2s infinite; transform-origin: 50% 100%; }

.chef .ojos { transform-box: fill-box; transform-origin: center; animation: parpadear 5s infinite; }
.chef--el .ojos { animation-delay: -1.3s; }
.chef .gorro { transform-box: fill-box; transform-origin: 50% 100%; }
.chef .pelo { transform-box: fill-box; transform-origin: 50% 0; }

/* Al pasar el ratón (o tocar) saludan: ella mueve el pelo, a él se le va el gorro. */
.escena__chefs:hover .chef--ella,
.escena__chefs.saludo .chef--ella { animation: saltito .7s var(--muelle); }
.escena__chefs:hover .chef--el,
.escena__chefs.saludo .chef--el { animation: saltito .7s var(--muelle) .12s; }
.escena__chefs:hover .gorro,
.escena__chefs.saludo .gorro { animation: gorro .9s var(--muelle) .1s; }


.flotante {
  position: absolute;
  width: clamp(40px, 6vw, 62px);
  filter: drop-shadow(0 8px 10px rgba(60, 30, 20, .18));
  animation: flotar 6s ease-in-out infinite, aparecer .8s var(--muelle) both;
  will-change: transform;
}
.flotante svg { display: block; width: 100%; height: auto; aspect-ratio: 1; transition: transform .2s; }
.flotante--1 { top: 6%; left: 8%; animation-delay: 0s, .3s; }
.flotante--2 { top: 4%; right: 10%; animation-delay: -1.5s, .45s; }
.flotante--3 { top: 46%; left: -2%; animation-delay: -3s, .6s; }
.flotante--4 { top: 44%; right: -3%; animation-delay: -4.5s, .75s; }
.flotante--5 { bottom: 4%; right: 26%; animation-delay: -2s, .9s; }

/* --- Cinta de recetas -------------------------------------------------------- */

.cinta {
  position: relative;
  margin: 8px 0 72px;
  padding: 18px 0;
  overflow: hidden;
  background: var(--tinta);
  color: var(--crema);
  transform: rotate(-1.5deg) scale(1.02);
}
.cinta__pista { display: flex; width: max-content; animation: cinta 45s linear infinite; }
.cinta:hover .cinta__pista { animation-play-state: paused; }
.cinta a {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding-right: 22px;
  font-family: var(--serif);
  font-size: 26px;
  font-style: italic;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s;
}
.cinta a:hover { color: var(--entrantes); }
.cinta a svg { width: 16px; height: 16px; color: var(--marca); }

/* --- Secciones de la portada -------------------------------------------------- */

.bloque { margin-bottom: 96px; }

.bloque__cabeza {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-bottom: 28px;
}
.bloque__cabeza h2 { margin: 0; font-size: clamp(32px, 4.4vw, 52px); font-weight: 700; line-height: 1.02; }
.bloque__cabeza p { margin: 0; color: var(--tinta-2); max-width: 40ch; }

.secciones {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.seccion {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 24px;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radio);
  background: var(--suave);
  color: var(--tinta);
  text-decoration: none;
  transition: transform .5s var(--suave), box-shadow .5s var(--suave), color .4s;
}

/* El color de la sección sube desde abajo como una ola al pasar por encima. */
.seccion::before {
  content: "";
  position: absolute;
  inset: auto -20% -40% -20%;
  z-index: -1;
  height: 0;
  border-radius: 50% 50% 0 0;
  background: var(--color);
  transition: height .6s var(--suave);
}
.seccion:hover { transform: translateY(-8px); box-shadow: var(--sombra-alta); color: #fff; }
.seccion:hover::before { height: 180%; }

.seccion__icono {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: var(--papel);
  color: var(--color);
  box-shadow: var(--sombra);
  transition: transform .6s var(--muelle);
}
.seccion__icono svg { width: 30px; height: 30px; }
.seccion:hover .seccion__icono { transform: rotate(-12deg) scale(1.08); }

.seccion__numero {
  position: absolute;
  right: 18px;
  top: 6px;
  font-family: var(--serif);
  font-size: 96px;
  font-weight: 800;
  line-height: 1;
  color: var(--color);
  opacity: .22;
  transition: opacity .4s, color .4s;
}
.seccion:hover .seccion__numero { color: #fff; opacity: .35; }

.seccion strong {
  margin-top: auto;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.02em;
}
.seccion small { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; font-size: 15px; opacity: .8; }
.seccion small svg { width: 20px; height: 20px; transition: transform .4s var(--suave); }
.seccion:hover small svg { transform: translateX(6px); }

/* --- Cabecera de listado (sección o búsqueda) -------------------------------- */

.franja {
  position: relative;
  margin-bottom: 40px;
  padding: 56px 0 48px;
  overflow: hidden;
  background: var(--suave, var(--crema-2));
}
.franja__dentro { position: relative; z-index: 1; }

.franja h1 { margin: 10px 0 8px; font-size: clamp(44px, 7vw, 84px); font-weight: 800; line-height: 1; }
.franja p { margin: 0; color: var(--tinta-2); font-size: 18px; }

.franja__icono {
  position: absolute;
  right: max(var(--margen), calc((100vw - var(--ancho)) / 2 + var(--margen)));
  top: 50%;
  width: clamp(120px, 18vw, 220px);
  height: auto;
  aspect-ratio: 1;
  color: var(--color);
  opacity: .16;
  transform: translateY(-50%) rotate(-12deg);
  animation: balanceo 8s ease-in-out infinite;
}

.volver {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  background: rgba(255, 253, 249, .7);
  color: var(--tinta-2);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.volver svg { width: 16px; height: 16px; transition: transform .3s var(--suave); }
.volver:hover { background: var(--papel); color: var(--tinta); }
.volver:hover svg { transform: translateX(-4px); }

.franja .buscador { margin-top: 24px; }

/* --- Tarjetas de receta ---------------------------------------------------------- */

.tarjetas {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 96px;
}

.tarjeta {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radio);
  background: var(--papel);
  box-shadow: var(--sombra);
  text-decoration: none;
  transition: transform .5s var(--suave), box-shadow .5s var(--suave);
}
.tarjeta:hover { transform: translateY(-6px) rotate(-.4deg); box-shadow: var(--sombra-alta); }

/* Sin fotos: la cabeza de la tarjeta es una lámina del color de la sección
 * con el icono grande y el número de pasos como si fuera un sello. */
.tarjeta__lamina {
  position: relative;
  display: grid;
  place-items: center;
  height: 150px;
  overflow: hidden;
  background: var(--suave);
  color: var(--color);
}
.tarjeta__lamina::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(currentColor 1.2px, transparent 1.3px);
  background-size: 16px 16px;
  opacity: .18;
}
/* La inicial de la receta, enorme y cortada por el borde, como en una portada. */
.tarjeta__inicial {
  position: absolute;
  left: 18px;
  bottom: -38px;
  font-family: var(--serif);
  font-size: 170px;
  font-style: italic;
  font-weight: 800;
  line-height: 1;
  color: var(--color);
  opacity: .9;
  transition: transform .6s var(--suave);
}
.tarjeta:hover .tarjeta__inicial { transform: translateY(-8px) rotate(-4deg); }

.tarjeta__pegatina {
  position: absolute;
  right: 22px;
  top: 18px;
  width: 58px;
  height: 58px;
  filter: drop-shadow(0 6px 8px rgba(60, 30, 20, .18));
  transform: rotate(10deg);
  transition: transform .6s var(--muelle);
}
.tarjeta:hover .tarjeta__pegatina { transform: rotate(-14deg) scale(1.15); }

.tarjeta__sello {
  position: absolute;
  right: 14px;
  bottom: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--papel);
  color: var(--tinta-2);
  font-size: 12px;
  font-weight: 600;
}

.tarjeta__cuerpo { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 20px 22px 22px; }

.tarjeta__seccion { color: var(--color); font-size: 13px; font-weight: 600; }

.tarjeta h3 { margin: 0; font-size: 26px; font-weight: 700; line-height: 1.08; }
.tarjeta__sub { color: var(--tinta-2); font-size: 14px; }

.tarjeta__ingredientes {
  margin: 0;
  color: var(--tinta-3);
  font-size: 14px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.datos {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: auto;
  padding-top: 6px;
  color: var(--tinta-2);
  font-size: 14px;
}
.datos span { display: inline-flex; align-items: center; gap: 6px; }
.datos svg { width: 16px; height: 16px; color: var(--color, var(--tinta-3)); }

.tarjeta--pendiente { opacity: .65; }
.tarjeta--pendiente .tarjeta__lamina { filter: grayscale(.6); }

.vacio {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 96px;
  padding: 48px 0;
  color: var(--tinta-2);
  text-align: center;
}
.vacio strong { font-family: var(--serif); font-size: 28px; color: var(--tinta); }
.vacio svg { width: 120px; height: 140px; }

/* --- Receta -------------------------------------------------------------------- */

.receta__franja { padding: 48px 0 56px; }
.receta__franja h1 { font-size: clamp(44px, 7.4vw, 96px); max-width: 16ch; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--papel);
  box-shadow: var(--sombra);
  font-size: 15px;
  font-weight: 500;
}
.chip svg { width: 18px; height: 18px; color: var(--color); }
.chip em { color: var(--tinta-3); font-size: 13px; }

.receta__cuerpo {
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  margin-bottom: 56px;
}

.panel {
  padding: 28px;
  border-radius: var(--radio);
  background: var(--papel);
  box-shadow: var(--sombra);
}

.panel--pegado { position: sticky; top: 92px; }

.panel h2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 18px;
  font-size: 28px;
  font-weight: 700;
}

/* El contador de ingredientes tachados, como un anillo que se llena. */
.anillo { position: relative; display: inline-block; width: 48px; height: 48px; flex-shrink: 0; }
.anillo svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.anillo circle { fill: none; stroke-width: 5; }
.anillo .fondo { stroke: var(--crema-2); }
.anillo .lleno { stroke: var(--color); stroke-linecap: round; transition: stroke-dashoffset .6s var(--suave); }
.anillo span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  color: var(--tinta-2);
}

.ingredientes { margin: 0; padding: 0; list-style: none; }
.ingredientes li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--linea);
  cursor: pointer;
  user-select: none;
  transition: color .3s;
}
.ingredientes li:last-child { border-bottom: none; }
.ingredientes li:hover .casilla { border-color: var(--color); }

.casilla {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border: 2px solid var(--linea);
  border-radius: 7px;
  color: #fff;
  transition: background .25s, border-color .25s, transform .4s var(--muelle);
}
.casilla svg { width: 14px; height: 14px; stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .35s var(--suave) .05s; }

.texto-ing { position: relative; }
.texto-ing::after {
  content: "";
  position: absolute;
  left: 0;
  top: 55%;
  height: 2px;
  width: 0;
  background: var(--tinta-3);
  transition: width .35s var(--suave);
}

.ingredientes li.hecho { color: var(--tinta-3); }
.ingredientes li.hecho .casilla { border-color: var(--color); background: var(--color); transform: scale(1.1); }
.ingredientes li.hecho .casilla svg { stroke-dashoffset: 0; }
.ingredientes li.hecho .texto-ing::after { width: 100%; }

.nota { margin: 14px 0 0; color: var(--tinta-3); font-size: 13px; }

.utensilios { margin: 0; padding-left: 20px; color: var(--tinta-2); }
.utensilios li { padding: 3px 0; }
.panel h2.subpanel { margin-top: 28px; font-size: 22px; }

.pasos { margin: 0; padding: 0; list-style: none; counter-reset: paso; }
.pasos li {
  position: relative;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px dashed var(--linea);
}
.pasos li:first-child { padding-top: 4px; }
.pasos li:last-child { border-bottom: none; }
.pasos li::before {
  counter-increment: paso;
  content: counter(paso, decimal-leading-zero);
  font-family: var(--serif);
  font-size: 52px;
  font-weight: 800;
  font-style: italic;
  line-height: .9;
  color: var(--color);
}
.pasos strong { display: block; margin-bottom: 4px; font-family: var(--serif); font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.pasos p { margin: 0; color: var(--tinta-2); font-size: 17px; }

.consejos {
  position: relative;
  margin-bottom: 40px;
  padding: 32px 32px 28px;
  border-radius: var(--radio);
  background: #FFF1B8;
  box-shadow: var(--sombra);
  transform: rotate(-.6deg);
}
.consejos::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  width: 110px;
  height: 26px;
  background: rgba(255, 255, 255, .6);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
  transform: translateX(-50%) rotate(2deg);
}
.consejos h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 28px; }
.consejos h2 svg { width: 26px; height: 26px; color: var(--entrantes); }
.consejos ul { margin: 0; padding-left: 20px; }
.consejos li { margin: 6px 0; font-size: 17px; }

.pendiente {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 96px;
  padding: 28px;
  border: 2px dashed var(--linea);
  border-radius: var(--radio);
  color: var(--tinta-2);
  font-size: 17px;
}
.pendiente svg { flex-shrink: 0; width: 90px; height: 105px; }

.relacionadas { margin-bottom: 96px; }
.relacionadas h2 { margin: 0 0 16px; font-size: 28px; }
.relacionadas__lista { display: flex; flex-wrap: wrap; gap: 10px; }
.relacionadas a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px 12px 14px;
  border-radius: 999px;
  background: var(--papel);
  box-shadow: var(--sombra);
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  text-decoration: none;
  transition: transform .4s var(--muelle), box-shadow .3s;
}
.relacionadas a:hover { transform: translateY(-3px); box-shadow: var(--sombra-alta); }
.relacionadas a > svg:first-child {
  width: 34px;
  height: 34px;
  padding: 7px;
  border-radius: 50%;
  background: var(--suave);
  color: var(--color);
}
.relacionadas a > svg:last-child { width: 18px; height: 18px; color: var(--tinta-3); }

/* --- Pie ------------------------------------------------------------------------ */

.pie { background: var(--tinta); color: var(--crema); }
.pie__dentro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: var(--ancho);
  margin: 0 auto;
  padding: 56px var(--margen) 48px;
  text-align: center;
}
.pie__chefs { display: flex; align-items: flex-end; }
.pie__chefs svg { width: 64px; height: 75px; }
.pie__chefs svg + svg { margin-left: -18px; }
.pie__marca { margin: 6px 0 0; font-family: var(--serif); font-size: 32px; font-weight: 700; letter-spacing: -.02em; }
.pie__marca em { color: var(--marca); }
.pie__texto { margin: 0; color: rgba(255, 247, 238, .6); font-size: 14px; }

/* --- Movimiento --------------------------------------------------------------- */

/* Lo que entra al hacer scroll. `--i` escalona las tarjetas de una misma rejilla. */
.revelar {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--suave), transform .8s var(--suave);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.revelar.visto { opacity: 1; transform: none; }

/* La portada entra por partes al cargar. */
.entrada { animation: entrada .9s var(--suave) both; animation-delay: calc(var(--i, 0) * 110ms); }

@keyframes entrada { from { opacity: 0; transform: translateY(24px); } }
@keyframes aparecer { from { opacity: 0; transform: scale(.4); } }
@keyframes aparecerPlato { from { opacity: 0; transform: scale(.7) rotate(-40deg); } }
@keyframes girar { to { transform: rotate(360deg); } }
@keyframes respirar { 0%, 100% { transform: translateY(0) scale(1, 1); } 50% { transform: translateY(-6px) scale(1.01, .99); } }
@keyframes sombra { 0%, 100% { transform: translateX(-50%) scale(1); opacity: 1; } 50% { transform: translateX(-50%) scale(.9); opacity: .7; } }
@keyframes parpadear { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes saltito { 0% { transform: translateY(0); } 35% { transform: translateY(-22px) rotate(-3deg); } 65% { transform: translateY(0) scale(1.04, .96); } 100% { transform: none; } }
@keyframes gorro { 0% { transform: none; } 30% { transform: translateY(-18px) rotate(-14deg); } 60% { transform: translateY(-4px) rotate(8deg); } 100% { transform: none; } }
@keyframes flotar { 0%, 100% { translate: 0 0; rotate: 0deg; } 33% { translate: 6px -14px; rotate: 8deg; } 66% { translate: -6px -6px; rotate: -6deg; } }
@keyframes vapor { 0% { transform: translateY(20px) scaleX(.8); opacity: 0; } 40% { opacity: 1; } 100% { transform: translateY(-40px) scaleX(1.4); opacity: 0; } }
@keyframes cinta { to { transform: translateX(-50%); } }
@keyframes balanceo { 0%, 100% { transform: translateY(-50%) rotate(-12deg); } 50% { transform: translateY(-54%) rotate(-4deg); } }
@keyframes rodar { 50% { transform: rotate(180deg) scale(1.2); } 100% { transform: rotate(360deg); } }

/* El cambio de página: la nueva vista sube un poco mientras aparece. */
::view-transition-old(root) { animation: .25s var(--suave) both salirVista; }
::view-transition-new(root) { animation: .45s var(--suave) both entrarVista; }
@keyframes salirVista { to { opacity: 0; transform: translateY(-10px); } }
@keyframes entrarVista { from { opacity: 0; transform: translateY(16px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after, ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) {
    animation: none !important;
    transition-duration: .01ms !important;
  }
  .revelar { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* --- Pantallas medianas y móvil ------------------------------------------------- */

@media (max-width: 980px) {
  .heroe { grid-template-columns: 1fr; min-height: 0; text-align: left; }
  .escena { width: min(100%, 420px); order: -1; }
  .secciones { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .receta__cuerpo { grid-template-columns: 1fr; }
  .panel--pegado { position: static; }
}

@media (max-width: 720px) {
  .cabecera__dentro { flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; gap: 10px; }
  .marca__texto { font-size: 19px; }

  /* Las cuatro secciones como pestañas iguales de ancho bajo la marca. */
  .nav { display: grid; grid-template-columns: repeat(4, 1fr); width: 100%; margin: 0; }
  .nav a { flex-direction: column; justify-content: center; gap: 2px; height: 50px; padding: 0 4px; font-size: 12px; }
  .nav svg { width: 18px; height: 18px; }

  .heroe { padding-top: 8px; gap: 8px; }
  .heroe__texto { font-size: 16px; margin: 16px 0 22px; }
  .buscador .boton span { display: none; }
  .buscador .boton { width: 46px; padding: 0; }

  .secciones { gap: 12px; }
  .seccion { min-height: 210px; padding: 18px; }
  .seccion__icono { width: 52px; height: 52px; border-radius: 16px; }
  .seccion__icono svg { width: 24px; height: 24px; }
  .seccion__numero { font-size: 64px; }
  .seccion strong { font-size: 22px; }

  .cinta a { font-size: 20px; }
  .bloque, .tarjetas, .relacionadas { margin-bottom: 64px; }
  .franja { padding: 36px 0 32px; }
  .panel { padding: 22px; }
  .pasos li { grid-template-columns: 48px 1fr; gap: 12px; }
  .pasos li::before { font-size: 38px; }
  .pasos strong { font-size: 20px; }
  .pasos p, .consejos li { font-size: 16px; }
  .consejos { padding: 28px 22px 22px; }
}
