/* ==========================================================================
   VEGALENDARIO v2.1 · «EL VUELO DE ALITA»
   Dirección de arte y movimiento sobre style.css.
   Todo lo que se mueve en bucle usa transform u opacity, y se pausa
   cuando el dibujo sale de pantalla.
   ========================================================================== */

:root {
  --paper: #f6f1e6;
  --paper-elevated: #fffdf8;
  --ink: #26192f;
  --tinta: #3a1d5c;
  --muted: #645a66;
  --line: #ddd3c3;
  --lima: #dfe89a;
  --lima-viva: #cfdc6c;
  --lila: #e2d2f1;
  --lila-fuerte: #cdb4ea;
  --violeta: #7623b7;
  --suave: cubic-bezier(.2, .8, .2, 1);
  --papel-grano: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .23 0 0 0 0 .14 0 0 0 0 .3 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23g)'/%3E%3C/svg%3E");
}

html.v2 {
  scroll-behavior: auto;
}

body {
  background-color: var(--paper);
  background-image: var(--papel-grano);
}
main { position: relative; }
main > section { position: relative; z-index: 1; }

header#site-header {
  background: rgba(246, 241, 230, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
}
header#site-header.scrolled { border-bottom-color: var(--line); }
.brand img { width: 22px; height: auto; }

/* ---------- Subrayado de marcador que se dibuja bajo la cursiva ---------- */
main section h2 em {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 16' preserveAspectRatio='none'%3E%3Cpath d='M3 10 C50 3 90 14 130 8 S185 5 197 9' fill='none' stroke='%23d5e27a' stroke-width='7' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 0 92%;
  background-size: 0% .32em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: background-size 1.15s cubic-bezier(.65, 0, .35, 1) .2s;
}
main section h2.subrayado em { background-size: 100% .32em; }

/* ---------- Dibujos ---------- */
.ilu svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.ilu .k, .ilu .k2, .ilu .k3 {
  fill: none;
  stroke: var(--tinta);
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ilu .k { stroke-width: 2.7; }
.ilu .k2 { stroke-width: 1.6; }
.ilu .k3 { stroke-width: 1.7; stroke-dasharray: 1.5 7; stroke: var(--violeta); }
.ilu .f1 { fill: var(--lima); }
.ilu .f2 { fill: var(--lila); }
.ilu .f3 { fill: var(--violeta); opacity: .85; }
.ilu .alita use { fill: var(--tinta); }
.ilu .n {
  font-family: Instrument, Georgia, serif;
  font-style: italic;
  font-size: 23px;
  fill: var(--violeta);
}
.ilu .n-sm { font-size: 18px; }
.ilu .f1, .ilu .f2, .ilu .f3,
.ilu .alita, .ilu .k3 {
  transform-box: fill-box;
  transform-origin: center;
}

/* las dos capas de una risografía: el color se corre con el puntero */
.ilu .capa-color {
  transform: translate(calc(4px - var(--px, 0) * 7px), calc(5px - var(--py, 0) * 7px));
  transition: transform 1.1s var(--suave);
}
.ilu .capa-tinta,
.ilu .capa-notas {
  transform: translate(calc(var(--px, 0) * 2.5px), calc(var(--py, 0) * 2.5px));
  transition: transform 1.1s var(--suave);
}

/* elementos que solo existen cuando el dibujo ya está vivo */
.ilu .vapor, .ilu .rafaga, .ilu .tilda {
  opacity: 0;
  stroke-dasharray: 1 1;
  stroke-dashoffset: 1;
}
.ilu .vapor {
  stroke-width: 2.2;
}

/* ---------- Vida (solo con el dibujo terminado y en pantalla) ---------- */
.ilu .gira { transform-box: fill-box; transform-origin: center; }
.ilu .tapa { transform-box: fill-box; transform-origin: 50% 100%; }
.ilu .lapiz { transform-box: fill-box; transform-origin: 10% 95%; }

.ilu.viva .mece { animation: mecer calc(3.4s + var(--o, 0) * .45s) ease-in-out calc(var(--o, 0) * -.7s) infinite alternate; }
.ilu.viva .planta { animation: mecer-planta 4.2s ease-in-out infinite alternate; }
.ilu.viva .salta { animation: saltar 2.6s ease-in-out calc(var(--o, 0) * -.37s) infinite; }
.ilu.viva .gira { animation: girar 28s linear infinite; }
.ilu.viva .rayos { animation: girar 46s linear infinite; }
.ilu.viva .late { animation: latir 3.4s ease-in-out infinite alternate; }
.ilu.viva .tapa { animation: tapa 4.6s ease-in-out infinite; }
.ilu.viva .lapiz { animation: escribir 2.4s ease-in-out infinite; }
.ilu.viva .marcha { animation: marchar 1.9s linear infinite; }
.ilu.viva .alita { animation: planear 6.5s ease-in-out infinite; }
.ilu.viva .alita.mini { animation: planear-mini 4s ease-in-out infinite; }
.ilu.viva .vapor { animation: vapor 3.15s ease-in-out calc(var(--o, 0) * -1.05s) infinite; }
.ilu.viva .rafaga { animation: rafaga 2.2s ease-out calc(var(--o, 0) * -.35s) infinite; }
.ilu.viva .tilda { animation: tilde 4.4s ease-in-out .4s infinite; }
.ilu.viva[data-ilu="sobre"] svg { animation: flotar 5s ease-in-out infinite; }
.ilu:not(.en-vista) *,
.ilu:not(.en-vista) svg { animation-play-state: paused !important; }

@keyframes mecer { from { transform: rotate(-3.5deg); } to { transform: rotate(4deg); } }
@keyframes mecer-planta { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }
@keyframes saltar { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3.5px); } }
@keyframes girar { to { transform: rotate(360deg); } }
@keyframes latir { from { transform: scale(1); } to { transform: scale(1.045); } }
@keyframes marchar { to { stroke-dashoffset: -17; } }
@keyframes flotar { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-6px) rotate(-1.2deg); } }
@keyframes planear {
  0%, 100% { transform: translate(0, 0) rotate(0); }
  30% { transform: translate(6px, -9px) rotate(-4deg); }
  65% { transform: translate(-4px, -3px) rotate(3deg); }
}
@keyframes planear-mini {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(2px, -3px); }
}
@keyframes tapa {
  0%, 78%, 100% { transform: translateY(0) rotate(0); }
  81% { transform: translateY(-3px) rotate(-2.5deg); }
  84% { transform: translateY(-1px) rotate(2deg); }
  87% { transform: translateY(-2px) rotate(-1.5deg); }
  90% { transform: translateY(0) rotate(.5deg); }
}
@keyframes escribir {
  0%, 100% { transform: rotate(0) translate(0, 0); }
  25% { transform: rotate(-3deg) translate(-2px, 1px); }
  50% { transform: rotate(1deg) translate(1px, 0); }
  75% { transform: rotate(-2deg) translate(-1px, 1px); }
}
@keyframes vapor {
  0% { opacity: 0; stroke-dashoffset: 1; transform: translateY(8px); }
  20% { opacity: 0.95; }
  62% { opacity: 0.9; stroke-dashoffset: 0; }
  100% { opacity: 0; stroke-dashoffset: -1; transform: translateY(-11px); }
}
@keyframes rafaga {
  0% { opacity: 0; stroke-dashoffset: 1; transform: translateX(8px); }
  30% { opacity: 1; }
  60% { stroke-dashoffset: 0; }
  100% { opacity: 0; stroke-dashoffset: -1; transform: translateX(-8px); }
}
@keyframes tilde {
  0%, 12% { opacity: 1; stroke-dashoffset: 1; }
  32%, 78% { opacity: 1; stroke-dashoffset: 0; }
  92%, 100% { opacity: 0; stroke-dashoffset: 0; }
}

/* ---------- El hilo ---------- */
.vuelo {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.vuelo-banda {
  position: absolute;
  left: 0;
  display: block;
}
.vuelo-tinta,
.vuelo-sombra {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}
.vuelo-tinta { stroke: var(--violeta); }
.vuelo-sombra { stroke: var(--lila-fuerte); transform: translate(3px, 4px); opacity: .85; }
.vuelo-noche { stroke: #d5aff8; }

/* ---------- Portada ---------- */
.v-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  padding: clamp(36px, 6vw, 84px) 0 clamp(56px, 7vw, 110px);
  min-height: calc(100vh - 80px);
}
.v-hero-copy > * { animation: subir .95s var(--suave) both; }
.v-hero-copy > :nth-child(2) { animation-delay: .08s; }
.v-hero-copy > :nth-child(3) { animation-delay: .2s; }
.v-hero-copy > :nth-child(4) { animation-delay: .3s; }
.v-hero-copy > :nth-child(5) { animation-delay: .4s; }
@keyframes subir { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

.v-hero h1 {
  font-size: clamp(46px, 6.4vw, 96px);
  line-height: .98;
  letter-spacing: -0.045em;
  margin: 0 0 26px;
}
.v-hero h1 em { display: inline-block; margin-top: 6px; font-size: 1.04em; letter-spacing: -0.02em; }
.v-lead { font-size: clamp(17px, 1.45vw, 20px); line-height: 1.6; max-width: 34em; margin: 0 0 30px; }
.v-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-bottom: 34px; }
.v-actions .text-link { background: none; font-weight: 600; }
.v-facts {
  list-style: none;
  padding: 18px 0 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 14px;
}
.v-facts strong {
  font-family: Instrument, Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 30px;
  color: var(--violeta);
  margin-right: 4px;
  line-height: 1;
}
.v-hero-ilu { margin: 0; position: relative; }
.v-hero-ilu .ilu { width: min(100%, 620px); margin-inline: auto; }
.v-hero-ilu figcaption {
  text-align: center;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}
.v-hero-ilu figcaption em { text-transform: none; letter-spacing: 0; font-size: 18px; }

/* ---------- Cómo funciona ---------- */
.v-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); }
.v-step {
  background: var(--paper-elevated);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform .5s var(--suave), box-shadow .5s var(--suave);
}
.v-step:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(58, 29, 92, .09); }
.v-step .ilu { width: 100%; max-width: 250px; margin: 0 auto 4px; }
.v-step-num { font-size: 11px; letter-spacing: .17em; text-transform: uppercase; font-weight: 700; color: var(--violeta); }
.v-step h3 { margin: 0; }
.v-step p { margin: 0 0 6px; color: var(--muted); }
.v-step .step-link { margin-top: auto; align-self: flex-start; background: none; padding: 0; font-weight: 600; color: var(--violeta); }

/* ---------- Ruta de 21 paradas ---------- */
.ruta {
  margin: 8px 0 26px;
  background: var(--paper-elevated);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 14px clamp(10px, 2vw, 26px) 16px;
}
.ruta-mapa svg { display: block; width: 100%; height: auto; overflow: visible; }
.ruta-guia {
  fill: none;
  stroke: var(--lila-fuerte);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 1 1;
}
.ruta-hecha { fill: none; stroke: var(--violeta); stroke-width: 3.2; stroke-linecap: round; }
.ruta-semana { font-family: Instrument, Georgia, serif; font-style: italic; font-size: 19px; fill: var(--violeta); }
.parada { cursor: pointer; outline: none; }
.parada-cuerpo { transform-box: fill-box; transform-origin: center; transition: transform .35s var(--suave); }
.parada:hover .parada-cuerpo, .parada:focus-visible .parada-cuerpo { transform: scale(1.14); }
.parada-hit { fill: transparent; }
.parada-fondo { fill: var(--lila); }
.parada-aro { fill: var(--paper-elevated); stroke: var(--tinta); stroke-width: 2; transition: fill .25s ease; }
.parada-num { font-family: Outfit, Arial, sans-serif; font-size: 12.5px; font-weight: 700; text-anchor: middle; fill: var(--tinta); pointer-events: none; }
.parada.hecha .parada-fondo { fill: var(--lima-viva); }
.parada.hecha .parada-aro { fill: var(--lima); }
.parada.proxima .parada-aro { stroke: var(--violeta); stroke-width: 2.6; }
.parada.proxima .parada-num { fill: var(--violeta); }
.parada:hover .parada-aro, .parada:focus-visible .parada-aro { fill: var(--lila); }
.parada:focus-visible .parada-aro { stroke: var(--violeta); stroke-width: 3.4; }
.parada-pulso {
  fill: none;
  stroke: var(--violeta);
  stroke-width: 2;
  transform-box: fill-box;
  transform-origin: center;
  animation: pulso 2.2s var(--suave) infinite;
}
@keyframes pulso { from { opacity: .55; transform: scale(1); } to { opacity: 0; transform: scale(1.9); } }
.ruta-nota { margin: 4px 6px 0; font-size: 13px; color: var(--muted); }

.week-tabs button { display: flex; flex-direction: row; align-items: center; gap: 14px; text-align: left; }
.week-tabs .ilu-week { flex: 0 0 64px; width: 64px; }
.week-txt { display: flex; flex-direction: column; }
.day { background: var(--paper-elevated); border-radius: 18px; }
.day.done { background: linear-gradient(var(--lima), var(--lima)) 0 0 / 100% 6px no-repeat, var(--paper-elevated); }

/* ---------- Recetas y kit ---------- */
.v-recipes-side { display: flex; align-items: center; gap: 18px; }
.v-recipes-side p { margin: 0; }
.ilu-doodle { flex: 0 0 120px; width: 120px; }

/* ---------- Noche: las siluetas se trazan ---------- */
.animal-photo-frame { position: relative; }
.prot-ficha {
  position: absolute;
  right: 18px;
  top: 18px;
  width: min(56%, 300px);
  background: rgba(17, 9, 28, 0.9);
  border: 1px solid rgba(246, 242, 236, 0.16);
  border-radius: 20px;
  padding: 16px 18px 12px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  z-index: 2;
}
.prot-ilu { display: block; width: 100%; height: auto; max-height: 190px; overflow: visible; }
.prot-respira { transform-box: fill-box; transform-origin: center; animation: respirar 4.4s ease-in-out infinite alternate; }
@keyframes respirar { from { transform: scale(1); } to { transform: scale(1.018) translateY(-4px); } }
.prot-mancha { fill: rgba(213, 175, 248, 0.24); transform: translate(14px, 16px); }
.prot-linea { fill: none; stroke: #e9dcfa; stroke-width: 7; stroke-linejoin: round; stroke-linecap: round; }
.prot-alguien {
  display: block;
  text-align: right;
  font-family: Instrument, Georgia, serif;
  font-style: italic;
  font-size: 26px;
  color: var(--lima);
  margin-top: -6px;
}
.animal-photo-frame.sin-foto img { opacity: 0; }
.animal-photo-frame.sin-foto { background: radial-gradient(circle at 40% 40%, #2a1745, #11091c 70%); }
.animal-photo-frame.sin-foto .prot-ficha {
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 84%;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.animal-photo-frame.sin-foto .prot-ilu { max-height: 300px; }
.animal-photo-frame.sin-foto .prot-alguien { font-size: 40px; }

/* ---------- Cierre ---------- */
.ilu-final { width: min(300px, 70%); margin: 0 auto 6px; }
.final-cta .ilu .k, .final-cta .ilu .k2 { stroke: #efe4fb; }
.final-cta .ilu .k3 { stroke: #d5aff8; }
.final-cta .ilu .alita use { fill: #efe4fb; }

/* ---------- Adaptación ---------- */
@media (max-width: 980px) {
  .v-hero { grid-template-columns: 1fr; min-height: 0; }
  .v-hero-ilu .ilu { width: min(86%, 440px); }
  .v-steps { grid-template-columns: 1fr; }
  .v-step { display: grid; grid-template-columns: 130px 1fr; column-gap: 18px; align-items: start; }
  .v-step .ilu { grid-row: span 4; margin: 0; }
}
@media (max-width: 760px) {
  .v-hero h1 { font-size: clamp(42px, 12vw, 58px); }
  .v-step { grid-template-columns: 1fr; }
  .v-step .ilu { max-width: 200px; grid-row: auto; }
  .prot-ficha { right: 10px; top: 10px; width: 48%; padding: 10px 12px 6px; }
  .prot-alguien { font-size: 20px; }
  .week-tabs .ilu-week { flex-basis: 46px; width: 46px; }
  .ilu-doodle { flex-basis: 86px; width: 86px; }
  .vuelo-tinta, .vuelo-sombra { stroke-width: 1.8; }
}

/* v2.5: sin modo quieto ni botón; el movimiento es siempre automático. */
@media print {
  .vuelo, .ilu, .ruta { display: none !important; }
}

/* ==========================================================================
   v2.3 · persona, platos del recetario, sobre con carta y animales
   ========================================================================== */
.ilu .f0 { fill: var(--paper-elevated); }
.ilu .f4 { fill: rgba(118, 35, 183, .2); }
.ilu .f0, .ilu .f4 { transform-box: fill-box; transform-origin: center; }
.ilu .n-globo { font-size: 26px; fill: var(--tinta); }
.ilu .n-carta { font-size: 15px; }
.ilu .sil { stroke-linejoin: round; stroke-linecap: round; }
.ilu .sil-ojo, .ruta-animales .sil-ojo {
  fill: var(--tinta);
  fill-opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transition: fill-opacity 0.6s ease;
}
.final-cta .ilu .sil-ojo {
  fill: #efe4fb;
}
.ilu.viva .sil-ojo, .ruta-animales.viva .sil-ojo {
  fill-opacity: 0.88;
  animation: parpadeoSilueta calc(4.8s + var(--o, 0) * 0.55s) ease-in-out calc(var(--o, 0) * -1.35s) infinite;
}
@keyframes parpadeoSilueta {
  0%, 42%, 48%, 85%, 93%, 100% { transform: scaleY(1) translateY(0); }
  45% { transform: scaleY(0.95) translate(0.4px, -0.3px); }
  89% { transform: scaleY(0.1) translateY(0.4px); }
}

.ilu.viva .saluda { animation: saludar 3.2s ease-in-out infinite; }
.ilu.viva .asoma { animation: asomar 4.6s ease-in-out infinite; }
.ilu.viva .anima { animation: respira-sil 3.6s ease-in-out calc(var(--o, 0) * -.7s) infinite alternate; }
.ilu.viva .salto { animation: salto 3.4s ease-in-out infinite; }
@keyframes saludar {
  0%, 56%, 100% { transform: rotate(0); }
  10% { transform: rotate(-14deg); }
  21% { transform: rotate(7deg); }
  32% { transform: rotate(-11deg); }
  43% { transform: rotate(4deg); }
}
@keyframes asomar { 0%, 58%, 100% { transform: translateY(0); } 24%, 42% { transform: translateY(-11px); } }
@keyframes respira-sil { from { transform: translateY(0) scale(1); } to { transform: translateY(-3px) scale(1.014); } }
@keyframes salto {
  0%, 100% { transform: translateY(8px) rotate(8deg); }
  50% { transform: translateY(-14px) rotate(-7deg); }
}

/* pie de la portada: qué plato es y cómo verlo */
.v-hero-ilu figcaption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-transform: none;
  letter-spacing: 0;
  min-height: 74px;
}
.pie-meta { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--violeta); }
.v-hero-ilu figcaption em.pie-nombre { font-size: 21px; color: var(--ink); text-align: center; line-height: 1.2; }
.pie-acciones { display: flex; gap: 18px; align-items: center; margin-top: 2px; }
.pie-ver { background: none; border: 0; padding: 0; font: inherit; font-size: 13px; font-weight: 600; color: var(--violeta); cursor: pointer; }
.pie-ver:hover { text-decoration: underline; }
.pie-puntos { display: flex; gap: 6px; }
.pie-punto {
  width: 9px; height: 9px; padding: 0; border: 0; border-radius: 99px;
  background: var(--lila-fuerte); cursor: pointer;
  transition: width .4s var(--suave), background .3s ease;
}
.pie-punto.activo { width: 24px; background: var(--violeta); }

/* kit: detrás de cada reemplazo, alguien */
.swap-alguien {
  display: flex; align-items: center; gap: 14px;
  margin-top: 16px; padding-top: 14px;
  border-top: 1px dashed var(--line);
}
.swap-alguien .ilu { flex: 0 0 128px; width: 128px; }
.swap-alguien p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.45; }
.swap-alguien em { color: var(--violeta); font-size: 18px; }

/* ruta: los protagonistas de los días que miran a los animales */
.ruta-animales { pointer-events: none; }
.ruta-animales .sil { fill: none; stroke: var(--tinta); stroke-linejoin: round; stroke-linecap: round; }
.ruta-animales .f1 { fill: var(--lima); }
.ruta-animales .f2 { fill: var(--lila); }
.ruta-animales .anima { animation: respira-sil 3.6s ease-in-out calc(var(--o, 0) * -.7s) infinite alternate; }

/* cierre: el desfile */
.ilu-final { width: min(600px, 94%); margin: 0 auto 10px; }
.final-cta .ilu .f2 { fill: rgba(213, 175, 248, .26); }

/* dudas: un cerdo curioso */
.ilu-curioso { width: min(240px, 70%); margin-top: 22px; }

/* ==========================================================================
   v2.4 · bodegón vivo, nota con flecha y precarga
   ========================================================================== */
.ilu .toque { fill: transparent; cursor: pointer; outline: none; }
.ilu .toque:focus-visible { stroke: var(--violeta); stroke-width: 2; stroke-dasharray: 4 6; }
.ilu .etiqueta-v { font-size: 26px; opacity: 0; transition: opacity .3s ease; pointer-events: none; }
.ilu .etiqueta-v.visible { opacity: 1; }
.ilu .mece-v { animation: none; }
.ilu.viva .mece-v { animation: brisa calc(4.2s + var(--o, 0) * .5s) ease-in-out calc(var(--o, 0) * -.9s) infinite alternate; }
@keyframes brisa { from { transform: rotate(-1.6deg); } to { transform: rotate(1.8deg); } }
.v-hero-ilu .ilu { width: min(100%, 640px); }
.pie-pista { font-size: 12px; color: var(--muted); font-style: italic; }

/* «aquí empiezas tú», escrito a mano señalando el botón */
/* v4.3: sin la nota «aquí empiezas tú», el párrafo vuelve a su margen normal */
.v-actions { position: relative; }
.nota-cta { position: absolute; left: 150px; top: -70px; width: 230px; pointer-events: none; }
.ilu .n-cta { font-size: 25px; fill: var(--violeta); }

/* ---------- Precarga v4.3 · «Ellos son la razón» ----------
   Papel de Vegalendario: un sello con los 21 días en ronda y, en el centro,
   las siluetas de Animal Libre trazadas con la misma pluma de la web (línea
   de tinta + mancha de color corrida, como una risografía). Al terminar, la
   golondrina se dibuja, vuela hasta el logo y la página se abre como un iris. */
.precarga {
  position: fixed; inset: 0; z-index: 200;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(12px, 2.4vh, 20px);
  padding: 24px 16px;
  color: var(--ink);
  background-color: var(--paper);
  background-image: var(--papel-grano);
  --iris: 0px;
  -webkit-mask-image: radial-gradient(circle at var(--ix, 50%) var(--iy, 46%), transparent var(--iris), #000 calc(var(--iris) + 1px));
          mask-image: radial-gradient(circle at var(--ix, 50%) var(--iy, 46%), transparent var(--iris), #000 calc(var(--iris) + 1px));
  animation: precarga-seguro .5s ease 7s forwards;
}
.pc-marca {
  margin: 0; display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 21px; letter-spacing: -.02em; color: var(--ink);
  opacity: 0; animation: pc-sube .6s var(--suave) .05s forwards;
}
.pc-marca b { color: var(--violeta); font-weight: 700; }
.pc-marca small {
  font-size: 11px; font-weight: 600; letter-spacing: .01em; color: var(--tinta);
  padding: 3px 9px; background: var(--lila); border-radius: 999px;
}
.pc-sello { position: relative; width: min(300px, 70vw, 42vh); aspect-ratio: 1; }
.pc-anillo { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pc-hilo {
  fill: none; stroke: var(--violeta); stroke-width: 1.7; stroke-linecap: round;
  stroke-dasharray: 1 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset .12s linear;
}
.pc-punto { fill: var(--lila-fuerte); transform-box: fill-box; transform-origin: center; }
.pc-punto.on { fill: var(--violeta); animation: pc-pop .42s cubic-bezier(.34, 1.56, .64, 1); }
.pc-punto.on.hoy { fill: var(--lima-viva); stroke: var(--tinta); stroke-width: 1.4; }
.pc-animales { position: absolute; inset: 10%; width: 80%; height: 80%; overflow: visible; }
.pc-mancha { fill: var(--lima); opacity: .55; transform: translate(4px, 6px); transform-box: fill-box; transform-origin: center; animation: pc-respira 3.2s ease-in-out infinite; }
.pc-bicho { transform-box: fill-box; transform-origin: 50% 85%; }
.pc-bicho .pc-riso { opacity: 0; }
.pc-bicho .pc-linea { fill: none; stroke: var(--tinta); stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.pc-bicho.entra .pc-linea { animation: pc-traza .34s cubic-bezier(.45, 0, .25, 1) forwards; }
.pc-bicho.entra .pc-riso { animation: pc-estampa .32s cubic-bezier(.34, 1.4, .64, 1) .2s forwards; }
.pc-bicho.sale { animation: pc-se-va .26s ease-in forwards; }
.pc-ave {
  position: absolute; left: 50%; top: 50%; width: 30%; aspect-ratio: 456 / 800;
  transform: translate(-50%, -54%); overflow: visible; pointer-events: none; opacity: 0;
}
.pc-ave path {
  fill: url(#pc-degrade); fill-opacity: 0;
  stroke: var(--tinta); stroke-width: 6; stroke-linejoin: round;
  stroke-dasharray: 1 1; stroke-dashoffset: 1;
}
.pc-dia {
  margin: 0; display: flex; align-items: baseline; gap: 8px;
  font-family: Instrument, Georgia, serif; font-style: italic; font-size: 22px; color: var(--violeta);
}
.precarga-num {
  font-family: Outfit, system-ui, sans-serif; font-style: normal; font-weight: 700;
  font-size: 34px; letter-spacing: -.03em; color: var(--ink);
  font-variant-numeric: tabular-nums; min-width: 1.4em; text-align: center;
}
.pc-dia small { font-size: 16px; color: var(--muted); }
.precarga-frase {
  margin: -6px 0 0; min-height: 1.3em;
  font-weight: 600; font-size: clamp(26px, 4.2vh, 36px); letter-spacing: -.02em;
  color: var(--ink); text-align: center;
  opacity: 0; animation: pc-sube .7s var(--suave) .35s forwards;
}
.precarga-frase em {
  font-family: Instrument, Georgia, serif; font-weight: 400; letter-spacing: 0; color: var(--violeta);
  background: linear-gradient(transparent 62%, var(--lima) 62%, var(--lima) 90%, transparent 90%);
  padding: 0 .08em;
}
.pc-firma {
  position: absolute; bottom: max(22px, env(safe-area-inset-bottom)); left: 0; right: 0;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  opacity: 0; animation: pc-sube .6s var(--suave) .5s forwards;
}
.pc-firma img { height: 22px; width: auto; }
/* final: el sello se recoge, la golondrina se dibuja y sale volando */
.precarga.vuela .pc-animales { transition: transform .4s cubic-bezier(.6, 0, .4, 1), opacity .3s ease; transform: scale(.4); opacity: 0; }
.precarga.vuela .pc-anillo { transition: transform .5s cubic-bezier(.6, 0, .3, 1), opacity .4s ease; transform: rotate(40deg) scale(.82); opacity: 0; }
.precarga.vuela .pc-ave { opacity: 1; }
.precarga.vuela .pc-ave path { animation: pc-traza .36s cubic-bezier(.3, 0, .2, 1) forwards, pc-relleno .25s ease .22s forwards; }
.precarga.vuela .pc-dia,
.precarga.vuela .precarga-frase,
.precarga.vuela .pc-marca,
.precarga.vuela .pc-firma { transition: opacity .35s ease .15s, transform .45s var(--suave) .15s; opacity: 0; transform: translateY(-8px); animation: none; }
.pc-ave-suelta path { fill: url(#pc-degrade); fill-opacity: 1; stroke: none; }
html.sin-precarga .precarga { display: none; }
html.precargando body { overflow: hidden; animation: soltar-scroll 0s 7s forwards; }
html.precargando #site-header .brand img { opacity: 0; }
#site-header .brand img { transition: opacity .25s ease; }
@keyframes pc-sube { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pc-pop { 0% { transform: scale(.4); } 55% { transform: scale(1.7); } 100% { transform: scale(1); } }
@keyframes pc-traza { to { stroke-dashoffset: 0; } }
@keyframes pc-relleno { to { fill-opacity: 1; stroke-opacity: 0; } }
@keyframes pc-estampa { from { opacity: 0; transform: translate(0, 0) scale(.94); } to { opacity: 1; transform: translate(var(--rx), var(--ry)) scale(1); } }
@keyframes pc-se-va { to { opacity: 0; transform: translateY(-6px) scale(.92); } }
@keyframes pc-respira { 50% { transform: translate(4px, 6px) scale(1.04) rotate(4deg); } }
@keyframes precarga-seguro { to { opacity: 0; visibility: hidden; } }
@keyframes soltar-scroll { to { overflow: auto; } }
@media (max-width: 760px) {
  .nota-cta { left: 120px; top: -66px; width: 200px; }
}

/* ==========================================================================
   v3.0 · BITÁCORA VIVA AL DETALLE: estaciones en el hilo, cartel de ruta,
   retrato vivo de las 83 recetas, boceto por día en modal, lista con birome,
   ojo vivo de los protagonistas y tachón de marcador.
   ========================================================================== */

/* 1. Gota de tinta viajera y estaciones en los rulos del hilo */
.vuelo-gota {
  position: absolute;
  left: 0;
  top: 0;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  margin-top: -7px;
  border-radius: 50%;
  background: var(--violeta);
  box-shadow: 3px 3px 0 var(--lima-viva), 0 0 0 5px rgba(118, 35, 183, 0.16);
  pointer-events: none;
  z-index: 4;
  opacity: 0;
  transition: opacity 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.vuelo-gota.visible { opacity: 1; }
.vuelo-gota.moviendo {
  box-shadow: 3px 3px 0 var(--lima-viva), 0 0 0 9px rgba(118, 35, 183, 0.24);
}
.vuelo-gota.noche {
  background: var(--lima);
  box-shadow: 3px 3px 0 #d5aff8, 0 0 0 7px rgba(223, 232, 154, 0.22);
}

.vuelo-estaciones {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
}
.vuelo-estacion {
  position: absolute;
  width: 190px;
  height: 82px;
  margin-left: -95px;
  margin-top: -41px;
  pointer-events: auto;
  opacity: 0;
  transform: scale(0.78) translateY(8px);
  transition: opacity 0.55s var(--suave), transform 0.55s var(--suave);
}
.vuelo-estacion.activa {
  opacity: 1;
  transform: scale(1) translateY(0);
}
.vuelo-estacion:hover {
  transform: scale(1.07) rotate(-2deg);
}
.vuelo-estacion svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.vuelo-estacion .est-sello {
  fill: var(--lima);
  opacity: 0.9;
}
.vuelo-estacion .est-trazo {
  fill: none;
  stroke: var(--violeta);
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.vuelo-estacion .est-texto {
  font-family: Instrument, Georgia, serif;
  font-style: italic;
  font-size: 17px;
  fill: var(--violeta);
}
.vuelo-estacion.noche .est-sello { fill: rgba(213, 175, 248, 0.25); }
.vuelo-estacion.noche .est-trazo { stroke: var(--lima); }
.vuelo-estacion.noche .est-texto { fill: var(--lima); }

/* 2. Sobre interactivo en «Cómo funciona»: la carta asoma más al pasar el mouse */
.v-step:hover .ilu[data-ilu="sobre"] .asoma {
  animation: none;
  transform: translateY(-20px) rotate(-1.5deg);
  transition: transform 0.45s var(--suave);
}
.ilu .n-carta-sub {
  font-size: 11.5px;
  fill: var(--tinta);
  opacity: 0.85;
}

/* 3. Cartelito manuscrito en la Ruta de 21 paradas y sello en tarjetas */
.ruta {
  position: relative;
}
.ruta-tooltip {
  position: absolute;
  left: 50%;
  top: 12px;
  transform: translate(-50%, -8px);
  z-index: 10;
  background: var(--paper-elevated);
  background-image: var(--papel-grano);
  border: 1.5px solid var(--tinta);
  box-shadow: 5px 6px 0 var(--lila-fuerte), 0 14px 32px rgba(38, 25, 47, 0.12);
  border-radius: 16px;
  padding: 10px 16px 11px;
  min-width: 230px;
  max-width: 310px;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.25s var(--suave);
}
.ruta-tooltip[hidden] {
  display: none !important;
}
.ruta-tt-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violeta);
}
.ruta-tt-estado {
  background: var(--lima);
  color: var(--ink);
  padding: 2px 7px;
  border-radius: 99px;
  font-size: 9.5px;
}
.ruta-tt-titulo {
  display: block;
  font-family: Instrument, Georgia, serif;
  font-style: italic;
  font-size: 21px;
  line-height: 1.15;
  color: var(--ink);
  margin: 3px 0 4px;
}
.ruta-tt-plato {
  display: block;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
}
.parada-tilde {
  fill: none;
  stroke: var(--tinta);
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.day {
  position: relative;
  overflow: hidden;
}
.day-stamp {
  position: absolute;
  right: 10px;
  top: 42px;
  transform: rotate(-8deg);
  font-family: Instrument, Georgia, serif;
  font-style: italic;
  font-size: 15px;
  color: var(--violeta);
  background: rgba(223, 232, 154, 0.9);
  border: 1.5px dashed var(--violeta);
  padding: 2px 9px;
  border-radius: 99px;
  pointer-events: none;
  box-shadow: 2px 3px 0 rgba(118, 35, 183, 0.14);
}

/* Puente directo desde el Bodegón a las 83 recetas */
.pie-filtrar {
  background: var(--lila);
  border: 1px solid var(--lila-fuerte);
  padding: 4px 11px;
  border-radius: 99px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--tinta);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s var(--suave);
}
.pie-filtrar:hover {
  background: var(--lima);
  transform: translateY(-1px);
}

/* 4. Modal como hoja del cuaderno de Alita */
dialog {
  background-color: var(--paper);
  background-image: var(--papel-grano);
  border: 1.5px solid var(--tinta);
  box-shadow: 8px 10px 0 rgba(118, 35, 183, 0.22), 0 32px 90px rgba(17, 9, 28, 0.42);
}
.dialog-sketch-head {
  display: grid;
  grid-template-columns: 1fr 148px;
  gap: 18px;
  align-items: center;
}
.dialog-ilu {
  width: 148px;
  height: 118px;
  background: var(--paper-elevated);
  border: 1px dashed var(--lila-fuerte);
  border-radius: 18px;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dialog-ilu svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.day-meal-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.meal-tab-ico {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.button.celebrating {
  background: var(--lima-viva) !important;
  color: var(--ink) !important;
  transform: scale(1.04);
  box-shadow: 4px 5px 0 var(--violeta);
}

/* 5. Menuteca con Retrato Vivo del Plato y barajado */
.menu-spotlight {
  position: relative;
  background-color: var(--paper-elevated);
  background-image: var(--papel-grano);
  transition: transform 0.28s var(--suave), opacity 0.22s ease;
}
.menu-spotlight.shuffling {
  transform: translateY(-5px) rotate(-0.8deg) scale(0.985);
  opacity: 0.65;
}
.spotlight-sketch-wrap {
  margin: 12px 0 16px;
  padding: 12px 16px;
  background: var(--paper);
  border: 1px dashed var(--lila-fuerte);
  border-radius: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.spotlight-ilu {
  flex: 0 0 156px;
  width: 156px;
  height: 112px;
}
.spotlight-ilu svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.spotlight-sketch-note {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}
.spotlight-sketch-note strong {
  display: block;
  font-family: Instrument, Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 20px;
  color: var(--violeta);
  margin-bottom: 2px;
}

/* 6. Lista de compras con tachado de lapicera a mano y salto de bolsa */
.shopping-tool li label {
  position: relative;
}
.shopping-item-text {
  position: relative;
  display: inline-block;
  transition: color 0.25s ease;
}
.shopping-tool li.checked label .shopping-item-text {
  text-decoration: none;
  color: var(--muted);
}
.tachado-svg {
  position: absolute;
  left: -4px;
  top: 50%;
  width: calc(100% + 8px);
  height: 14px;
  transform: translateY(-50%);
  pointer-events: none;
  overflow: visible;
}
.tachado-svg path {
  fill: none;
  stroke: var(--violeta);
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-dasharray: 1 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.38s cubic-bezier(0.45, 0.05, 0.3, 1);
}
.shopping-tool li.checked .tachado-svg path {
  stroke-dashoffset: 0;
}
.bolsa-rebote {
  animation: bolsaSalto 0.55s var(--suave);
}
@keyframes bolsaSalto {
  0%, 100% { transform: scale(1) rotate(0); }
  35% { transform: translateY(-8px) scale(1.08) rotate(-4deg); }
  70% { transform: translateY(2px) scale(0.97) rotate(2deg); }
}
.count-rebote {
  animation: countPop 0.45s var(--suave);
}
@keyframes countPop {
  0%, 100% { transform: scale(1); }
  45% { transform: scale(1.28) rotate(-6deg); background: var(--lima-viva); }
}

/* 7. Sección Noche: Ojo vivo de los protagonistas, corriente de río y tachón */
.prot-ojo {
  fill: var(--lima);
  transform-box: fill-box;
  transform-origin: center;
  animation: parpadeoOjo 4.5s ease-in-out infinite;
}
@keyframes parpadeoOjo {
  0%, 90%, 100% { transform: scaleY(1); }
  94% { transform: scaleY(0.1); }
}
.prot-onda {
  fill: none;
  stroke: rgba(213, 175, 248, 0.35);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 14 18;
  animation: fluirRio 4s linear infinite;
}
@keyframes fluirRio {
  to { stroke-dashoffset: -64; }
}
.prot-industry s,
.tachado-vivo {
  text-decoration: none;
  position: relative;
  display: inline-block;
  color: var(--night-lilac);
  padding: 0 2px;
}
.prot-industry s::after,
.tachado-vivo::after {
  content: '';
  position: absolute;
  left: -3px;
  right: -3px;
  top: 52%;
  height: 3px;
  background: var(--lima);
  border-radius: 4px;
  transform: rotate(-2deg) scaleX(0);
  transform-origin: left;
  animation: trazarTachon 0.65s cubic-bezier(0.45, 0.05, 0.3, 1) 0.15s forwards;
}
@keyframes trazarTachon {
  to { transform: rotate(-2deg) scaleX(1); }
}

/* 8. Cuaderno de Inscripción (Sección #inscripcion y Modal) */
.final-cta {
  text-align: left;
  padding: 108px 20px;
}
.final-signup-grid {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 54px;
  align-items: center;
}
.final-signup-copy .ilu-final {
  margin: 0 0 18px;
  max-width: 390px;
}
.final-signup-copy h2 {
  font-size: clamp(44px, 5.2vw, 76px);
  margin-bottom: 16px;
}
.final-signup-copy .final-lead {
  margin: 0 0 26px;
  max-width: 500px;
}
.final-perks {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  gap: 14px;
}
.final-perks li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 13px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(213, 175, 248, 0.24);
}
.perk-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(223, 232, 154, 0.18);
  color: var(--lima);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.final-perks strong {
  display: block;
  color: #fff;
  font-size: 14.5px;
  margin-bottom: 2px;
}
.final-perks span:not(.perk-badge) {
  display: block;
  color: var(--night-muted);
  font-size: 13.5px;
  line-height: 1.45;
}
.final-signup-copy .final-actions {
  justify-content: flex-start;
}

.postal-card {
  position: relative;
  background-color: var(--paper);
  background-image:
    repeating-linear-gradient(
      to bottom,
      transparent 0px,
      transparent 31px,
      rgba(118, 35, 183, 0.045) 31px,
      rgba(118, 35, 183, 0.045) 32px
    ),
    var(--papel-grano);
  color: var(--ink);
  border: 1.8px solid var(--tinta);
  border-radius: 28px 22px 30px 24px / 22px 30px 24px 28px;
  padding: 32px 32px 28px;
  box-shadow: 8px 10px 0 rgba(223, 232, 154, 0.28), 0 28px 70px rgba(8, 3, 15, 0.45);
}
/* Dentro del modal dialog no duplicamos marco ni fondo: el propio dialog ya es la hoja */
.postal-card-modal {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 2px 2px 4px;
  box-shadow: none;
}

.postal-head {
  display: grid;
  grid-template-columns: 1fr 168px;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.postal-meta .eyebrow {
  color: var(--violeta);
  margin-bottom: 6px;
}
.postal-meta .dot {
  background: var(--lima-viva);
}
.postal-meta h3,
.postal-meta h2 {
  font-family: Instrument, Georgia, serif;
  font-weight: 400;
  font-size: clamp(32px, 3.4vw, 44px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 10px;
}
.postal-meta h3 em,
.postal-meta h2 em {
  color: var(--violeta);
  font-style: italic;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 16' preserveAspectRatio='none'%3E%3Cpath d='M3 10 C50 3 90 14 130 8 S185 5 197 9' fill='none' stroke='%23dfe89a' stroke-width='7' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 0 92%;
  background-size: 100% 0.34em;
}
.postal-sub {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}
.postal-ilu {
  width: 168px;
  height: 122px;
  background: var(--paper-elevated);
  border: 1.5px dashed var(--lila-fuerte);
  border-radius: 20px;
  padding: 6px 8px;
  box-shadow: 4px 5px 0 rgba(118, 35, 183, 0.08);
}
.postal-ilu svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.postal-goals-wrap {
  background: var(--paper-elevated);
  border: 1.5px dashed var(--lila-fuerte);
  border-radius: 20px;
  padding: 14px 16px;
  margin-bottom: 20px;
  box-shadow: 4px 4px 0 rgba(226, 210, 241, 0.5);
}
.postal-goals-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.postal-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--tinta);
}
.postal-step-tag {
  font-family: Instrument, Georgia, serif;
  font-style: italic;
  font-size: 16px;
  color: var(--violeta);
}
.signup-goals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.goal-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border-radius: 14px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  color: var(--tinta);
  font-size: 12.5px;
  text-align: left;
  transition: transform 0.25s var(--suave), border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.goal-pill strong {
  font-weight: 600;
  line-height: 1.2;
}
.goal-pill:hover {
  transform: translateY(-2px);
  border-color: var(--lila-fuerte);
}
.goal-pill.active {
  background: var(--paper-elevated);
  border-color: var(--violeta);
  box-shadow: 3px 3px 0 var(--lima);
}
.goal-ico {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  overflow: visible;
}
.goal-ico path {
  fill: none;
  stroke: var(--tinta);
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.goal-ico .goal-mancha {
  fill: var(--lila);
  transition: fill 0.25s ease, transform 0.3s var(--suave);
  transform-box: fill-box;
  transform-origin: center;
}
.goal-pill.active .goal-ico .goal-mancha {
  fill: var(--lima);
  transform: scale(1.12) translate(1px, 1px);
}
.postal-handnote {
  font-family: Instrument, Georgia, serif;
  font-style: italic;
  font-size: 18px;
  color: var(--violeta);
  margin: 10px 2px 0;
  line-height: 1.25;
}

.signup-form {
  display: grid;
  gap: 15px;
}
.signup-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.signup-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.signup-field label {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--tinta);
}
.field-num {
  font-family: Instrument, Georgia, serif;
  font-style: italic;
  font-size: 18px;
  font-weight: 400;
  color: var(--violeta);
}
.signup-field .req {
  color: var(--violeta);
}
.signup-field .opt {
  font-weight: 400;
  color: var(--muted);
  font-size: 11.5px;
}
.field-ink-wrap {
  position: relative;
}
.signup-field input {
  width: 100%;
  padding: 11px 14px 10px;
  border-radius: 14px 14px 6px 6px;
  border: 1.5px solid var(--line);
  border-bottom: 2px solid var(--tinta);
  background: var(--paper-elevated);
  color: var(--ink);
  font: inherit;
  font-size: 14.5px;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.signup-field input::placeholder {
  color: #96899e;
  font-style: italic;
}
.field-line {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 1px;
  height: 3px;
  background: var(--violeta);
  border-radius: 4px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--suave);
  pointer-events: none;
}
.signup-field input:focus {
  outline: none;
  background: #fff;
  border-color: var(--lila-fuerte);
  box-shadow: 3px 4px 0 var(--lima);
}
.signup-field input:focus + .field-line {
  transform: scaleX(1);
}

.signup-error {
  margin: 0;
  padding: 9px 14px;
  border-radius: 12px;
  background: var(--lila);
  border: 1.5px dashed var(--violeta);
  color: var(--tinta);
  font-size: 13px;
  font-weight: 600;
}

.signup-cta-row {
  margin-top: 4px;
}
.signup-submit-btn {
  width: 100%;
  justify-content: space-between;
  padding: 14px 18px 14px 26px;
  font-size: 15.5px;
  border: 1.5px solid var(--tinta);
  box-shadow: 5px 6px 0 var(--lima-viva), 0 12px 26px rgba(118, 35, 183, 0.22);
}
.signup-submit-btn:hover {
  box-shadow: 7px 8px 0 var(--lima), 0 16px 32px rgba(118, 35, 183, 0.28);
}
.signup-submit-btn .submit-txt,
.button .submit-txt {
  font-weight: 600;
  letter-spacing: -0.01em;
}

.signup-privacy {
  margin: 2px 0 0;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

.signup-success {
  text-align: center;
  padding: 24px 16px 12px;
  background: var(--paper-elevated);
  border: 1.5px dashed var(--violeta);
  border-radius: 22px;
  box-shadow: 5px 6px 0 var(--lima);
}
.signup-success-seal {
  display: inline-block;
  padding: 5px 14px;
  border: 1.5px dashed var(--tinta);
  border-radius: 99px;
  color: var(--tinta);
  background: var(--lima);
  font-family: Instrument, Georgia, serif;
  font-style: italic;
  font-size: 17px;
  transform: rotate(-3deg);
  margin-bottom: 10px;
}
.signup-success h4 {
  font-family: Instrument, Georgia, serif;
  font-weight: 400;
  font-size: 30px;
  color: var(--ink);
  margin: 0 0 8px;
}
.signup-success p {
  font-size: 14.5px;
  color: var(--muted);
  margin: 0 auto 18px;
  max-width: 410px;
}
.signup-success-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* 9. Recordatorio Flotante Discreto para Anotarse */
.postal-ilu .n-saludo {
  font-family: Instrument, Georgia, serif;
  font-style: italic;
  font-size: 15px;
  fill: var(--violeta);
}
.postal-ilu .n-saludo-sub {
  font-family: Instrument, Georgia, serif;
  font-style: italic;
  font-size: 12px;
  fill: var(--tinta);
  opacity: 0.8;
}

.bitacora-flotante {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 85;
  display: inline-flex;
  align-items: center;
  background-color: var(--paper-elevated);
  background-image: var(--papel-grano);
  border: 1.5px solid var(--tinta);
  border-radius: 999px;
  padding: 5px 8px 5px 6px;
  box-shadow: 4px 5px 0 var(--lima-viva), 0 12px 28px rgba(38, 25, 47, 0.14);
  opacity: 0;
  transform: translateY(16px) scale(0.95);
  pointer-events: none;
  transition:
    opacity 0.35s var(--suave),
    transform 0.38s var(--suave),
    background-color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}
.bitacora-flotante.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.bitacora-flotante:hover {
  transform: translateY(-2px) rotate(-0.8deg);
  box-shadow: 5px 6px 0 var(--lila-fuerte), 0 16px 34px rgba(38, 25, 47, 0.18);
}
body.modal-open .bitacora-flotante {
  opacity: 0 !important;
  pointer-events: none !important;
}

.flotante-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: transparent;
  border: 0;
  padding: 2px 6px 2px 2px;
  text-align: left;
  cursor: pointer;
  color: inherit;
}
.flotante-sello {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px dashed var(--lila-fuerte);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.flotante-sello svg {
  width: 32px;
  height: 32px;
  overflow: visible;
}
.flotante-sello .ring-mancha {
  fill: var(--lima);
  opacity: 0.9;
}
.flotante-sello .ring-prog {
  fill: none;
  stroke: var(--violeta);
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-dasharray: 1 1;
  stroke-dashoffset: 0.9;
  transform: rotate(-90deg);
  transform-origin: 19px 19px;
  transition: stroke-dashoffset 0.2s ease;
}
.flotante-sello .ring-alita use {
  fill: var(--tinta);
}

.flotante-txt {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
}
.flotante-txt em {
  font-family: Instrument, Georgia, serif;
  font-style: italic;
  font-size: 14px;
  color: var(--muted);
}
.flotante-txt strong {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--violeta);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.flotante-cerrar {
  width: 20px;
  height: 20px;
  padding: 0;
  margin-left: 2px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0.65;
  transition: opacity 0.2s, background 0.2s;
}
.flotante-cerrar:hover {
  opacity: 1;
  background: var(--lila);
  color: var(--tinta);
}

/* Modo noche automático cuando el flotante cruza #ellos */
.bitacora-flotante.noche {
  background-color: #1c0f30;
  background-image: none;
  border-color: rgba(213, 175, 248, 0.42);
  box-shadow: 4px 5px 0 rgba(223, 232, 154, 0.25), 0 14px 32px rgba(0, 0, 0, 0.45);
}
.bitacora-flotante.noche .flotante-sello {
  background: #2a1746;
  border-color: rgba(213, 175, 248, 0.35);
}
.bitacora-flotante.noche .flotante-txt em {
  color: #d8c8ec;
}
.bitacora-flotante.noche .flotante-txt strong {
  color: var(--lima);
}
.bitacora-flotante.noche .flotante-cerrar {
  color: #d8c8ec;
}

@media (max-width: 960px) {
  .final-signup-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 760px) {
  .vuelo-estaciones { display: none; }
  .dialog-sketch-head { grid-template-columns: 1fr; }
  .dialog-ilu { width: 120px; height: 96px; }
  .spotlight-sketch-wrap { flex-direction: column; align-items: flex-start; }
  .postal-head { grid-template-columns: 1fr; }
  .postal-ilu { width: 148px; height: 108px; }
  .signup-goals { grid-template-columns: 1fr; }
  .signup-row-2 { grid-template-columns: 1fr; }
  .postal-card { padding: 22px 18px; }
  .postal-card-modal { padding: 0; }
  .bitacora-flotante {
    right: 14px;
    bottom: 14px;
  }
}

@media print {
  .bitacora-flotante { display: none !important; }
}
