/* =============================================================
   LA PATI GUARDE — main.css (tema 3.0 «Un día en La Pati Guarde»)

   La página recorre un día: amanecer (hero), mañana (manifiesto y
   pilares), mediodía (servicios), tarde (cómo funciona, conócenos),
   atardecer (Instagram, FAQ) y noche (de día y de noche, cierre).
   Ver docs/03-propuesta-creativa.md y docs/04-sistema-de-diseno.md.

   Mobile-first y en capas de cascada: lo que va en una capa posterior
   gana a lo anterior sin pelear por especificidad. Todo el movimiento
   vive en @layer motion, dentro de prefers-reduced-motion:
   no-preference; html.lite (ahorro de datos o equipo modesto) apaga
   los efectos de cursor y la transición del cielo.
   ============================================================= */

@layer tokens, base, layout, components, sections, motion, utilities;

/* 0 = día, 1 = noche. Registrada como número para poder animarla. */
@property --night {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}
/* Color del cielo de la página: lo cambia main.js (initSky) según la
   sección a la vista. Registrado para que la transición sea suave. */
@property --sky {
  syntax: "<color>";
  inherits: false; /* solo lo usa <html>: animarlo no recalcula todo el árbol */
  initial-value: #fcf8f6;
}

/* =============================================================
   FUENTES — alojadas en el tema (sin peticiones a Google, RGPD).
   Variables, subconjunto latino (incluye á, ñ, ¿, ¡, €).
   Fraunces con el eje SOFT en 50, peso 400–600; cursiva solo 400.
   ============================================================= */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/fraunces-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/fraunces-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* =============================================================
   TOKENS
   ============================================================= */
@layer tokens {
  :root {
    /* Paleta de marca: ACENTOS (botones, iconos, líneas, juguetes,
       pequeños fondos). Nunca como texto sobre claro; para texto de
       acento, --accent-ink. */
    --brand-peach: #ffa369;
    --brand-orange: #ffa360;
    --brand-pink: #ff80fe;
    --brand-lilac: #c681e6;
    --brand-lime: #ccf77d;
    --grad-brand: linear-gradient(110deg, var(--brand-orange), var(--brand-pink) 55%, var(--brand-lilac));

    /* Interfaz (contrastes WCAG AA comprobados con texto --ink/--ink-mute) */
    --bg: #fcf8f6;
    --bg-2: #f8f0fa;           /* lila muy suave */
    --bg-peach: #fff4ec;
    --bg-lime: #f5faea;
    --paper: #fffdfc;
    --ink: #2b2230;            /* berenjena casi negra */
    --ink-soft: #463b4d;
    --ink-mute: #6b5f70;       /* 5,7:1 sobre --bg · ≥ 4,8:1 sobre todos los cielos */
    --accent: #ffa360;
    --accent-strong: #8a3aa8;  /* ciruela: foco, selección, avisos */
    --accent-ink: #8a3aa8;     /* ciruela: texto de acento, 6:1 sobre --bg */
    --accent-soft: #ffe3d0;
    --accent-2: #4c5c3a;       /* musgo: plantas y marcas de "incluye" */
    --accent-2-soft: #e9f7c8;
    --line: rgba(43, 34, 48, 0.12);
    --line-soft: rgba(43, 34, 48, 0.06);
    --cream: #fffdfc;
    --cream-mute: rgba(255, 253, 252, 0.82); /* texto secundario sobre noche, > 9:1 */

    /* Cielos del día (fondo de la página por secciones). Muy suaves
       para que el texto en tinta mantenga AA en todos. */
    --sky-dawn: #fff2e8;
    --sky: var(--sky-dawn); /* el cielo arranca al amanecer: sin transición al cargar */
    --sky-morning: #fdf7f3;
    --sky-noon: #fbfaee;
    --sky-afternoon: #fff2f9;
    --sky-dusk: #f6edfb;
    --sky-night: #241c2c;

    /* Solo ilustración y escenas: nunca para texto de interfaz */
    --sun: #ffa94d;
    --sun-soft: #ffe8cf;
    --night-sky: #2e2440;
    --night-deep: #1f1829;

    /* Tipografía */
    --display: "Fraunces", "Iowan Old Style", Georgia, serif;
    --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    /* Movimiento */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-spring: var(--ease-out);

    /* Layout */
    --container: 1220px;
    --gutter: clamp(1.25rem, 4vw, 3rem);
    --radius: 18px;
    --radius-lg: 28px;
    --radius-xl: clamp(28px, 5vw, 64px);
    --nav-h: 78px;
    --shadow-soft: 0 24px 54px rgba(43, 34, 48, 0.1), 0 4px 12px rgba(43, 34, 48, 0.04);
  }
  /* Muelle con rebote leve (~5 %); sin soporte de linear(), --ease-out. */
  @supports (transition-timing-function: linear(0, 1)) {
    :root { --ease-spring: linear(0, .23 5%, .5 9.4%, .79 15%, .95 20.4%, 1.03 26%, 1.05 31%, 1.04 37%, 1.01 46%, .995 58%, 1); }
  }
}

/* =============================================================
   BASE
   ============================================================= */
@layer base {
  *, *::before, *::after { box-sizing: border-box; margin: 0; }

  html {
    -webkit-text-size-adjust: 100%;
    tab-size: 2;
    /* Nada se sale por los lados (decoración y resplandores del hero). */
    overflow-x: clip;
  }
  @media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
  }

  html { background: var(--sky, var(--bg)); }
  body {
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
  }

  img, svg, video { display: block; max-width: 100%; }
  img { height: auto; }
  button, input, select, textarea { font: inherit; color: inherit; }
  button { cursor: pointer; border: 0; background: none; }
  a { color: inherit; text-decoration: none; }
  ul, ol { list-style: none; padding: 0; }
  p { color: var(--ink-soft); text-wrap: pretty; }
  ::selection { background: var(--accent-strong); color: var(--cream); }

  h1, h2, h3, h4 {
    font-family: var(--display);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.015em;
    text-wrap: balance;
    color: var(--ink);
  }
  h1 em, h2 em, h3 em { font-style: italic; font-weight: 400; color: var(--accent-ink); }
  h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
  h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
  h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }

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

  [id] { scroll-margin-top: calc(var(--nav-h) + .5rem); }
}

/* =============================================================
   LAYOUT
   ============================================================= */
@layer layout {
  .container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
  }

  .section { position: relative; padding-block: clamp(4.5rem, 9vw, 8rem); }
  /* Las secciones bajo el primer pantallazo no se pintan hasta que se
     acercan: el primer render del móvil se queda en el hero. */
  .js main > .section { content-visibility: auto; contain-intrinsic-size: auto 1000px; }
  .is-painted main > .section { content-visibility: visible; }

  /* Hojas de color con esquinas curvas (identidad desde la 2.3). */
  .section-bg-2 { background: var(--bg-2); border-radius: var(--radius-xl) var(--radius-xl) 0 0; }

  .section-head { max-width: 680px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
  .section-head h2 { margin-top: .9rem; }
  .section-head p { margin-top: 1rem; color: var(--ink-mute); font-size: 1.05rem; }

  /* Páginas interiores (index.php y 404.php) */
  .page-main { padding-block: calc(var(--nav-h) + clamp(2.5rem, 6vw, 5rem)) clamp(4rem, 8vw, 7rem); }
  .page-inner { max-width: 820px; }
  .page-title { margin-block: .8rem 1.4rem; }
  .page-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem; }
  .entry + .entry { margin-top: 2.5rem; padding-top: 2.5rem; border-top: 1px solid var(--line); }
  .entry-title { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: .6rem; }
  .entry-content > * + * { margin-top: 1.1em; }
  .entry-content h2 { font-size: clamp(1.45rem, 2.4vw, 1.85rem); margin-top: 2em; }
  .entry-content h3 { font-size: clamp(1.2rem, 1.8vw, 1.4rem); margin-top: 1.6em; }
  .entry-content a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: .2em; }
  .entry-content ul { list-style: disc; padding-left: 1.3em; }
  .entry-content ol { list-style: decimal; padding-left: 1.3em; }
}

/* =============================================================
   COMPONENTS
   ============================================================= */
@layer components {

  /* --- Eyebrow --- */
  .eyebrow {
    display: inline-flex; align-items: center; gap: .55rem;
    font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
    color: var(--accent-ink);
  }
  .eyebrow::before {
    content: ""; width: 7px; height: 7px; border-radius: 50%;
    background: var(--accent); flex: none;
  }

  .lede { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--ink-mute); }

  /* --- Botones --- */
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    min-height: 48px;
    padding: .9rem 1.7rem;
    border-radius: 999px;
    font-weight: 600; font-size: .95rem; line-height: 1.2;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(43,34,48,0.08), 0 1px 3px rgba(43,34,48,0.06);
    transition:
      transform .55s var(--ease-spring),
      translate .6s var(--ease-soft),
      box-shadow .45s var(--ease-soft),
      background-color .3s var(--ease-out),
      background-position .6s var(--ease-out),
      border-color .3s var(--ease-out),
      color .3s var(--ease-out);
  }
  .btn:hover { transform: translateY(-4px); }
  .btn:active { transform: translateY(-1px); transition-duration: .12s; }
  .btn-lg { min-height: 56px; padding: 1.05rem 2.1rem; font-size: 1.02rem; }

  .btn-primary { background: var(--ink); color: var(--cream); }
  .btn-primary:hover { box-shadow: 0 22px 44px rgba(43,34,48,0.2), 0 10px 22px rgba(198,129,230,0.3); }

  /* Acción principal: naranja que vira a rosa al pasar. Texto en tinta (AA). */
  .btn-accent {
    color: var(--ink);
    background: linear-gradient(110deg, var(--brand-orange) 0%, var(--brand-orange) 42%, var(--brand-pink) 100%) 0 0 / 240% 100%;
  }
  .btn-accent:hover {
    background-position: 100% 0;
    box-shadow: 0 18px 38px rgba(255,128,254,0.32), 0 6px 14px rgba(255,163,96,0.28);
  }

  .btn-ghost { background: transparent; color: var(--ink); box-shadow: none; border: 1.5px solid var(--line); }
  .btn-ghost:hover { border-color: var(--brand-lilac); background: var(--paper); transform: translateY(-3px); }
  .btn-ghost--light { color: var(--cream); border-color: rgba(255,253,252,.35); }
  .btn-ghost--light:hover { color: var(--ink); background: var(--cream); border-color: var(--cream); }

  .btn-arrow .icon { transition: translate .45s var(--ease-out); }
  .btn-arrow:hover .icon { translate: 4px 0; }

  /* --- Iconos y logo --- */
  .icon { width: 1.2em; height: 1.2em; flex: none; }
  .card-icon { width: 42px; height: 42px; flex: none; color: var(--accent-ink); }
  .svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
  .brand-logo { width: auto; color: var(--ink); }

  /* --- Barra de progreso: un sol cruza la pantalla y, de noche, es luna --- */
  .scroll-progress {
    position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200;
    pointer-events: none;
  }
  .scroll-progress span {
    display: block; height: 100%;
    background: var(--grad-brand);
    transform-origin: 0 0; transform: scaleX(0);
  }
  .scroll-progress__sun {
    position: absolute; top: -5px; left: 0;
    width: 13px; height: 13px; border-radius: 50%;
    background: var(--sun);
    box-shadow: 0 0 0 3px rgba(255,169,77,.25), 0 0 14px rgba(255,169,77,.6);
    transition: background-color .6s var(--ease-soft), box-shadow .6s var(--ease-soft);
  }
  .is-night .scroll-progress__sun {
    background: var(--cream);
    box-shadow: inset -4px -2px 0 0 var(--brand-lilac), 0 0 12px rgba(198,129,230,.7);
  }

  /* --- Aparición al hacer scroll ---
     Solo se oculta con la clase .js en <html>: sin JS todo es visible. */
  .js [data-reveal]:not(.is-revealed) { opacity: 0; translate: 0 36px; }
  [data-reveal] { transition: opacity .85s var(--ease-soft), translate .85s var(--ease-soft); }
  [data-reveal-delay="1"] { --rd: .08s; }
  [data-reveal-delay="2"] { --rd: .16s; }
  [data-reveal-delay="3"] { --rd: .24s; }
  [data-reveal][data-reveal-delay] { transition-delay: var(--rd, 0s); }

  /* --- Chips --- */
  .chips { display: flex; flex-wrap: wrap; gap: .4rem; }
  .chip {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .28rem .75rem;
    border-radius: 999px;
    font-size: .78rem; font-weight: 600; letter-spacing: .02em; line-height: 1.4;
    background: var(--paper); color: var(--ink-soft);
    border: 1px solid var(--line);
  }
  .chip--sun { background: var(--sun-soft); color: var(--accent-ink); border-color: transparent; }
  .chip--night { background: var(--ink); color: var(--cream); border-color: transparent; }

  /* --- Subrayado a mano para la palabra clave de un titular --- */
  .scribble {
    padding-bottom: .1em;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8c30-6 62-7 96-4s68 4 100-2' fill='none' stroke='%23ff80fe' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 0 100% / 100% .32em;
  }

  /* --- Iconos de redes (botones redondos) --- */
  .contact-social { display: flex; gap: .8rem; flex-wrap: wrap; }
  .contact-social a {
    width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line);
    display: grid; place-items: center;
    transition: border-color .3s, transform .5s var(--ease-spring);
  }
  .contact-social a:hover { border-color: var(--brand-pink); transform: translateY(-3px); }
  .contact-social .icon { width: 19px; height: 19px; }

  /* --- Botón flotante de WhatsApp (pantallas anchas) y barra de acción
     (móvil). Solo se esconden si hay JS para volver a mostrarlos; mientras
     están ocultos, main.js les pone `inert`. --- */
  .whatsapp-fab {
    position: fixed; right: 1.1rem; bottom: max(1.1rem, env(safe-area-inset-bottom)); z-index: 90;
    width: 58px; height: 58px; border-radius: 50%;
    background: var(--brand-orange); color: var(--ink);
    display: none; place-items: center;
    box-shadow: 0 14px 30px rgba(255,128,254,.35), 0 0 0 4px rgba(255,255,255,.6);
    transition: opacity .4s var(--ease-out), transform .55s var(--ease-spring);
  }
  .whatsapp-fab .icon { width: 26px; height: 26px; }
  @media (min-width: 960px) { .whatsapp-fab { display: grid; } }
  @media (hover: hover) and (pointer: fine) {
    .whatsapp-fab:hover { transform: translateY(-3px) scale(1.04); }
  }

  .action-bar {
    position: fixed; z-index: 90;
    left: .75rem; right: .75rem; bottom: max(.75rem, env(safe-area-inset-bottom));
    display: flex; align-items: center; justify-content: space-between; gap: .5rem;
    padding: .45rem .45rem .45rem 1rem;
    border-radius: 999px;
    background: rgba(255, 253, 252, .92);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 14px 34px rgba(43,34,48,.18), 0 0 0 1px var(--line);
    transition: opacity .4s var(--ease-out), transform .55s var(--ease-spring);
  }
  .action-bar__link {
    display: inline-flex; align-items: center; gap: .4rem;
    min-height: 44px; padding-inline: .4rem;
    font-weight: 600; font-size: .95rem; color: var(--ink);
  }
  .action-bar__link .icon { width: 1em; height: 1em; rotate: -90deg; color: var(--accent-ink); }
  .action-bar__cta { min-height: 44px; padding: .7rem 1.4rem; box-shadow: none; }
  @media (min-width: 960px) { .action-bar { display: none; } }
  .js .whatsapp-fab:not(.is-visible),
  .js .action-bar:not(.is-visible) { opacity: 0; transform: translateY(16px) scale(.96); pointer-events: none; }

  /* --- Tarjetas de servicio ---
     Tonos de marca suavizados; el texto siempre en tinta, así que el
     contraste no depende del tono. El foco de luz (::after) sigue al
     puntero: --mx/--my los pone main.js (initSpotlight). */
  .service-cards { display: grid; gap: 1.1rem; align-items: start; }
  @media (min-width: 700px) { .service-cards { grid-template-columns: repeat(2, 1fr); } }
  .service-card {
    --tone: #ffe1ca;
    --tone-strong: #ffa369;
    container-type: inline-size;
    position: relative; isolation: isolate;
    display: flex; flex-direction: column; gap: .8rem;
    padding: clamp(1.3rem, 2.4vw, 1.7rem);
    background: var(--paper);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg);
    transition: transform .55s var(--ease-spring), box-shadow .5s var(--ease-soft), border-color .5s var(--ease-soft),
                background-color .5s var(--ease-soft), translate .7s var(--ease-spring);
  }
  .service-card[data-tone="pink"]  { --tone: #ffdcf6; --tone-strong: #ff80fe; }
  .service-card[data-tone="lilac"] { --tone: #f1ddf1; --tone-strong: #c681e6; }
  .service-card[data-tone="lime"]  { --tone: #edfaca; --tone-strong: #ccf77d; }
  .service-card[data-tone="sun"]   { --tone: var(--sun-soft); --tone-strong: var(--sun); }
  .service-card::before {
    content: ""; position: absolute; top: 0; left: 1.6rem; right: 1.6rem; height: 4px;
    border-radius: 0 0 4px 4px; background: var(--tone-strong);
  }
  .service-card::after {
    content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
    background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), color-mix(in oklab, var(--tone) 75%, transparent), transparent 70%);
    opacity: 0; transition: opacity .5s var(--ease-soft);
    pointer-events: none;
  }
  @media (hover: hover) and (pointer: fine) {
    .service-card:hover { box-shadow: var(--shadow-soft); border-color: transparent; }
    .service-card:hover::after { opacity: 1; }
  }
  .service-card__head { display: flex; align-items: center; gap: .9rem; }
  .service-card__icon {
    flex: none; width: 52px; height: 52px; border-radius: 16px;
    display: grid; place-items: center;
    background: var(--tone); color: var(--ink);
  }
  .service-card__icon .icon { width: 26px; height: 26px; }
  .service-card__title { font-size: clamp(1.2rem, 2vw, 1.38rem); line-height: 1.15; }
  .service-card__tagline { font-family: var(--display); font-style: italic; font-size: 1.08rem; line-height: 1.35; color: var(--accent-ink); }
  .service-card__desc { font-size: .95rem; color: var(--ink-mute); }
  .service-card__cta { align-self: flex-start; }
  @container (max-width: 360px) { .service-card__cta { align-self: stretch; } }

  /* "Ver detalles y tarifas" */
  .service-details { border-top: 1px dashed var(--line); padding-top: .3rem; }
  .service-details summary {
    list-style: none; cursor: pointer;
    display: flex; align-items: center; gap: .45rem; min-height: 44px;
    font-weight: 600; font-size: .95rem; color: var(--accent-ink);
  }
  .service-details summary::-webkit-details-marker { display: none; }
  .service-details summary:hover span { text-decoration: underline; text-underline-offset: .2em; }
  .service-details summary .icon { width: 1.1em; height: 1.1em; transition: rotate .45s var(--ease-spring); }
  .service-details[open] summary .icon { rotate: 180deg; }
  .service-details .when-open, .service-details[open] .when-closed { display: none; }
  .service-details[open] .when-open { display: inline; }
  .service-details__body {
    margin-top: .3rem;
    padding: 1.1rem 1.1rem 1.2rem;
    border-radius: var(--radius);
    background: var(--bg);
    background: color-mix(in oklab, var(--tone) 50%, var(--paper));
  }
  .service-details__label {
    margin: 1.2rem 0 .55rem;
    font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--ink-soft);
  }
  .service-details__label:first-child { margin-top: 0; }
  .service-includes { display: grid; gap: .35rem; }
  .service-includes li { position: relative; padding-left: 1.45rem; font-size: .93rem; color: var(--ink-soft); }
  .service-includes li::before {
    content: ""; position: absolute; left: .15rem; top: .42em; width: .7rem; height: .38rem;
    border-left: 2px solid var(--accent-2); border-bottom: 2px solid var(--accent-2); rotate: -45deg;
  }
  .service-info { margin-top: 1rem; display: grid; gap: .55rem; }
  .service-info dt { font-size: .78rem; font-weight: 600; color: var(--ink-mute); }
  .service-info dd { font-size: .93rem; color: var(--ink); }

  .price-group + .price-group { margin-top: .85rem; }
  .price-group__title { margin-bottom: .2rem; font-size: .82rem; font-weight: 700; color: var(--ink); }
  .price-list div {
    display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
    padding-block: .42rem; border-bottom: 1px dashed var(--line);
  }
  .price-list div:last-child { border-bottom: 0; }
  .price-list dt { font-size: .92rem; color: var(--ink-soft); }
  .price-list dd { font-weight: 700; font-size: .98rem; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
  .service-notes { margin-top: 1rem; display: grid; gap: .45rem; }
  .service-notes li { font-size: .86rem; color: var(--ink-mute); }
  .service-notes li.is-important {
    padding: .55rem .75rem; border-radius: 10px; border-left: 3px solid var(--accent-strong);
    background: var(--paper); color: var(--ink); font-weight: 600;
  }

  /* Tabla de la guardería: tabla en tarjetas anchas; en estrechas, cada
     plan es una mini-tarjeta con sus tres precios (sin scroll lateral). */
  .price-table { width: 100%; margin-bottom: .8rem; border-collapse: collapse; font-size: .9rem; font-variant-numeric: tabular-nums; }
  .price-table th, .price-table td { padding: .5rem .35rem; text-align: right; border-bottom: 1px dashed var(--line); }
  .price-table thead th { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-mute); }
  .price-table th:first-child { text-align: left; padding-left: 0; }
  .price-table tbody th { font-weight: 600; color: var(--ink-soft); }
  .price-table td { font-weight: 700; color: var(--ink); white-space: nowrap; }
  .price-table td:last-child { padding-right: 0; }
  .price-table tbody tr:last-child > * { border-bottom: 0; }
  @container (max-width: 460px) {
    .price-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
    .price-table, .price-table tbody { display: block; }
    .price-table tr {
      display: grid; grid-template-columns: repeat(3, 1fr); gap: .15rem .6rem;
      padding-block: .6rem; border-bottom: 1px dashed var(--line);
    }
    .price-table tbody tr:last-child { border-bottom: 0; }
    .price-table tbody th { grid-column: 1 / -1; padding: 0 0 .2rem; border: 0; }
    .price-table td { display: grid; padding: 0; border: 0; text-align: left; }
    .price-table td::before { content: attr(data-label); font-size: .72rem; font-weight: 600; color: var(--ink-mute); }
  }

  /* Selector "¿Qué necesitas?": las que no encajan pierden el color de
     fondo y la sombra, pero NUNCA el contraste del texto (AA). */
  .is-filtered .service-card:not(.is-match) { background: transparent; border-color: var(--line); border-style: dashed; }
  .is-filtered .service-card:not(.is-match) .service-card__icon { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); }
  .is-filtered .service-card:not(.is-match)::before { opacity: .25; }
  .is-filtered .service-card.is-match { border-color: var(--brand-pink); box-shadow: 0 0 0 1.5px var(--brand-pink), 0 22px 50px rgba(255,128,254,.2); }

  /* Selector y barra de tarifas: necesitan JS, sin él no se muestran. */
  .situations-wrap, .tariffs-bar { display: none; }
  .js .situations-wrap { display: block; }
  .js .tariffs-bar { display: flex; }
  .situations-label { margin-bottom: .8rem; font-family: var(--display); font-size: 1.35rem; color: var(--ink); }
  .situations { display: flex; flex-wrap: wrap; gap: .6rem; }
  .situation {
    min-height: 44px; padding: .55rem 1.15rem;
    border-radius: 999px; border: 1.5px solid var(--line);
    background: var(--paper); font-weight: 500; font-size: .95rem;
    transition: background-color .3s var(--ease-out), color .3s var(--ease-out), border-color .3s var(--ease-out), transform .3s var(--ease-soft);
  }
  .situation:hover { border-color: var(--brand-pink); }
  .situation:active { transform: scale(.97); }
  .situation[aria-pressed="true"] { background: var(--ink); color: var(--cream); border-color: var(--ink); }
  .situations-status { min-height: 1.6em; margin-top: 1rem; font-size: .95rem; color: var(--ink-mute); }

  .tariffs-toggle .icon { width: 1.1em; height: 1.1em; transition: rotate .45s var(--ease-spring); }
  .tariffs-toggle[aria-pressed="true"] .icon { rotate: 180deg; }
  .tariffs-toggle .when-open, .tariffs-toggle[aria-pressed="true"] .when-closed { display: none; }
  .tariffs-toggle[aria-pressed="true"] .when-open { display: inline; }

  /* --- Pasos numerados (cómo funciona) --- */
  .steps { position: relative; display: grid; gap: 1rem; counter-reset: step; }
  @media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
  @media (min-width: 1080px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 1.4rem; } }
  .step {
    counter-increment: step;
    padding: 1.6rem 1.5rem 1.7rem;
    background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(43,34,48,.05);
  }
  .step::before {
    content: counter(step, decimal-leading-zero);
    display: block; margin-bottom: .9rem;
    font-family: var(--display); font-style: italic; font-size: 2.8rem; line-height: 1;
    color: var(--accent-ink);
  }
  .step h3 { font-size: 1.2rem; }
  .step p { margin-top: .5rem; font-size: .95rem; color: var(--ink-mute); }

  /* --- Escenas ilustradas --- */
  .lp-scene { width: 100%; height: auto; overflow: visible; }
  .lp-sky {
    fill: var(--accent-soft);
    fill: color-mix(in oklab, var(--accent-soft) calc((1 - var(--night)) * 100%), var(--night-sky));
    fill-opacity: calc(.55 + var(--night) * .45);
  }
  .lp-day { opacity: calc(1 - var(--night)); }
  .lp-night { opacity: var(--night); }
  .lp-window { transition: --night 1.2s var(--ease-soft); }

  /* Decoración: siempre aria-hidden, sin eventos de puntero. */
  .decor { position: absolute; pointer-events: none; overflow: visible; }

  /* --- Campos de formulario ("Prepara tu mensaje") --- */
  .planner input[type="text"], .planner input[type="date"], .planner select, .planner textarea {
    width: 100%; min-height: 48px;
    padding: .7rem .95rem;
    border-radius: 14px; border: 1.5px solid var(--line);
    background: var(--paper);
    font-size: 1rem;
    transition: border-color .3s var(--ease-out), box-shadow .3s var(--ease-out);
  }
  .planner textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
  .planner input:hover, .planner select:hover, .planner textarea:hover { border-color: rgba(43,34,48,.3); }
  .planner input:focus-visible, .planner select:focus-visible, .planner textarea:focus-visible {
    outline: 2px solid var(--accent-strong); outline-offset: 1px; border-color: transparent;
  }

  /* Burbuja de chat de la vista previa */
  .chat-bubble {
    position: relative;
    min-height: 7.5rem;
    padding: 1rem 1.1rem 1.2rem;
    border-radius: 18px 18px 4px 18px;
    background: #e5f7cf;
    color: var(--ink);
    font-size: .95rem; line-height: 1.55;
    white-space: pre-wrap; overflow-wrap: anywhere;
    box-shadow: 0 10px 24px rgba(43,34,48,.08);
  }
  .chat-bubble::after {
    content: ""; position: absolute; right: -7px; bottom: 0;
    border: 8px solid transparent; border-left-color: #e5f7cf; border-bottom-color: #e5f7cf;
  }
}

/* =============================================================
   SECTIONS — en el orden del día
   ============================================================= */
@layer sections {

  /* --- Navegación --- */
  .nav {
    position: fixed; top: 0; inset-inline: 0; z-index: 100;
    height: var(--nav-h);
    display: flex; align-items: center;
    transition: background-color .4s var(--ease-out), box-shadow .4s var(--ease-out);
  }
  .admin-bar .nav { top: var(--wp-admin--admin-bar--height, 32px); }
  .nav.is-scrolled {
    background: rgba(252, 248, 246, 0.86);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 var(--line);
  }
  .nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
  .nav-logo { display: flex; align-items: center; view-transition-name: lp-logo; }
  .nav-logo .brand-logo { height: clamp(34px, 7vw, 46px); }
  .nav-links { display: none; align-items: center; gap: 1.9rem; }
  .nav-link { position: relative; font-size: .95rem; font-weight: 500; padding: .3rem 0; }
  .nav-link::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
    height: 2px; border-radius: 2px; background: var(--brand-pink);
    transform: scaleX(0); transform-origin: right;
    transition: transform .45s var(--ease-soft);
  }
  .nav-link:hover::after,
  .nav-link[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }
  .nav-link[aria-current="true"] { color: var(--accent-ink); }
  .nav-right { display: flex; align-items: center; gap: 1.4rem; }
  .nav-cta { display: none; }

  /* El menú móvil necesita JS: sin él, el botón no se muestra. */
  .nav-burger {
    display: none; place-items: center; width: 44px; height: 44px;
    border-radius: 50%; border: 1.5px solid var(--line);
    background: rgba(255,253,252,.7);
  }
  .js .nav-burger { display: grid; }
  .nav-burger-lines { position: relative; width: 16px; height: 10px; }
  .nav-burger-lines::before, .nav-burger-lines::after {
    content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: var(--ink);
    transition: transform .35s var(--ease-soft), top .35s var(--ease-soft);
  }
  .nav-burger-lines::before { top: 0; }
  .nav-burger-lines::after { top: 100%; margin-top: -1.5px; }
  .nav-burger[aria-expanded="true"] .nav-burger-lines::before { top: 45%; transform: rotate(45deg); }
  .nav-burger[aria-expanded="true"] .nav-burger-lines::after { top: 45%; margin-top: 0; transform: rotate(-45deg); }

  .nav-mobile {
    position: fixed; inset: 0; z-index: 95;
    background: radial-gradient(120% 70% at 100% 0%, rgba(198,129,230,.35), transparent 60%), var(--night-deep);
    color: var(--cream);
    display: grid; place-items: center;
    clip-path: circle(0% at calc(100% - 2.6rem) 2.4rem);
    visibility: hidden;
    transition: clip-path .7s var(--ease-soft), visibility 0s linear .7s;
  }
  .nav-mobile.is-open { clip-path: circle(150% at calc(100% - 2.6rem) 2.4rem); visibility: visible; transition-delay: 0s; }
  .nav-mobile-links { display: flex; flex-direction: column; align-items: center; gap: 1.4rem; }
  .nav-mobile-links a:not(.btn) { font-family: var(--display); font-size: 2.1rem; }
  .nav-mobile-links .btn { margin-top: 1.4rem; }
  .nav-mobile :focus-visible { outline-color: var(--cream); }
  .menu-open .nav { background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .menu-open .nav-logo .brand-logo { color: var(--cream); }
  .menu-open .nav-burger { border-color: rgba(255,251,244,.35); background: transparent; }
  .menu-open .nav-burger-lines::before, .menu-open .nav-burger-lines::after { background: var(--cream); }
  .menu-open .nav :focus-visible { outline-color: var(--cream); }

  @media (min-width: 1040px) {
    .nav-links { display: flex; }
    .nav-cta { display: inline-flex; }
    .js .nav-burger { display: none; }
  }

  /* --- 1. Hero «Ventana viva» (amanecer) --- */
  .hero {
    position: relative; overflow-x: clip; /* el resplandor no ensancha la página */
    min-height: 100svh;
    display: flex; flex-direction: column; justify-content: center;
    padding-top: calc(var(--nav-h) + 1.5rem);
    padding-bottom: clamp(4.5rem, 9vh, 7rem);
    overflow: clip;
  }
  /* Resplandor de amanecer con los colores de marca, detrás de todo. */
  .hero-glow {
    position: absolute; inset: -10% -20% 0; z-index: 0; pointer-events: none;
    background:
      radial-gradient(38% 42% at 78% 38%, rgba(255,163,105,.32), transparent 70%),
      radial-gradient(30% 34% at 92% 72%, rgba(204,247,125,.38), transparent 70%),
      radial-gradient(34% 38% at 58% 12%, rgba(255,128,254,.16), transparent 70%),
      radial-gradient(40% 46% at 6% 30%, rgba(198,129,230,.14), transparent 70%);
  }
  .hero-grid { position: relative; z-index: 1; display: grid; gap: 2.4rem; align-items: center; }
  .hero-content .eyebrow { margin-bottom: 1.3rem; }
  .hero-title {
    font-size: clamp(2.75rem, 7vw, 6.2rem);
    line-height: .95; letter-spacing: -0.03em;
    max-width: 12ch;
  }
  .hero-title__brand { white-space: nowrap; }
  .hero-for {
    margin-top: 1.4rem;
    font-family: var(--display); font-size: clamp(1.3rem, 2.4vw, 1.75rem); line-height: 1.2;
    color: var(--ink);
  }
  .rotator { display: inline-grid; vertical-align: bottom; }
  .rotator__word {
    grid-area: 1 / 1;
    font-style: italic; color: var(--accent-ink);
    white-space: nowrap;
  }
  /* Sin animación (o hasta que arranque): solo la primera palabra. */
  .rotator__word:not(:first-child) { visibility: hidden; }
  .hero-sub { margin-top: 1rem; max-width: 44ch; font-size: clamp(1.02rem, 1.5vw, 1.15rem); color: var(--ink-mute); }
  .hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .9rem; }

  .hero-art { position: relative; width: 100%; max-width: 440px; justify-self: center; }
  .hero-art .lp-window { filter: drop-shadow(0 30px 50px rgba(43,34,48,.14)); }
  .hero-toy { z-index: 2; filter: drop-shadow(0 8px 10px rgba(43,34,48,.12)); }
  .hero-toy--ball { width: 11%; left: -4%; bottom: 7%; }
  .hero-toy--yarn { width: 34%; right: -4%; top: 4%; }
  @media (min-width: 960px) { .hero-toy--yarn { right: -12%; } }
  .hero-toy--bone { width: 15%; left: 2%; top: 9%; rotate: -24deg; }

  .hero-scroll {
    position: absolute; z-index: 1; left: 50%; bottom: 1.2rem; translate: -50% 0;
    display: none; flex-direction: column; align-items: center; gap: .5rem;
    min-height: 44px;
    font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
    color: var(--ink-mute);
  }
  .hero-scroll__line { width: 1.5px; height: 34px; background: linear-gradient(var(--brand-pink), transparent); border-radius: 2px; }
  .hero-scroll:hover { color: var(--accent-ink); }

  @media (min-width: 540px) { .hero-title { max-width: 13ch; } }
  @media (min-width: 960px) {
    .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 3rem; }
    .hero-art { max-width: none; }
    .hero-scroll { display: flex; }
  }

  /* --- 2. Manifiesto (mañana) --- */
  .manifesto { position: relative; padding-block: clamp(4.5rem, 10vw, 9rem); }
  .manifesto__text {
    margin-top: 1.4rem;
    font-size: clamp(2.5rem, 7vw, 6.4rem); line-height: 1; letter-spacing: -0.03em;
    max-width: 16ch;
  }
  .manifesto__word { display: inline; }
  .manifesto__word.is-turn { display: inline-block; }
  .manifesto__word.is-key { font-style: italic; font-weight: 400; color: var(--accent-ink); }
  .manifesto__sub { margin-top: 2rem; max-width: 52ch; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-mute); }

  /* --- 3. Pilares (mañana): notas de cariño con su color --- */
  .section-value { padding-block: 0 clamp(4.5rem, 9vw, 8rem); }
  .pillars { position: relative; display: grid; gap: 1.2rem; }
  @media (min-width: 860px) { .pillars { grid-template-columns: repeat(3, 1fr); gap: 1.6rem; align-items: start; } }
  .pillar {
    --pc: var(--brand-orange); --pt: var(--bg-peach); --tilt: -1.2deg;
    padding: 1.7rem 1.6rem 1.9rem;
    border-radius: var(--radius-lg);
    background: var(--pt);
    border-top: 4px solid var(--pc);
    rotate: var(--tilt);
    box-shadow: 0 16px 34px rgba(43,34,48,.06);
    transition: rotate .7s var(--ease-spring), translate .7s var(--ease-spring);
  }
  .pillar:nth-child(2) { --pc: var(--brand-pink); --pt: #fff0fb; --tilt: .9deg; }
  .pillar:nth-child(3) { --pc: var(--brand-lilac); --pt: #f7eefc; --tilt: -.6deg; }
  @media (min-width: 860px) { .pillar:nth-child(2) { translate: 0 1.6rem; } }
  .pillar h3 { font-size: 1.4rem; }
  .pillar p { margin-top: .55rem; color: var(--ink-mute); }
  .decor--pillars { width: 30px; right: -6px; top: -16px; z-index: 1; }

  /* --- 4. Servicios (mediodía) --- */
  .section-services { background: var(--bg-peach); }
  .section-services > .container { position: relative; }
  .decor--services-trail { width: 300px; top: -14px; right: var(--gutter); color: var(--brand-pink); opacity: .5; }
  @media (max-width: 999px) { .decor--services-trail { display: none; } }

  .services-tools { display: grid; gap: 1.6rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
  .tariffs-bar {
    flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.5rem;
    padding: 1rem 1rem 1rem 1.4rem;
    border-radius: var(--radius-lg);
    background: var(--paper); border: 1px solid var(--line-soft);
  }
  .tariffs-bar p { flex: 1 1 260px; font-size: .95rem; }
  .tariffs-bar .btn { background: var(--paper); }

  .service-groups { display: grid; gap: clamp(2.8rem, 6vw, 4.5rem); }
  .service-group { display: grid; gap: 1.2rem; }
  .service-group__title { font-size: clamp(1.6rem, 3vw, 2.2rem); }
  .service-group__head p { margin-top: .5rem; max-width: 34ch; color: var(--ink-mute); }
  @media (min-width: 1080px) {
    .service-group { grid-template-columns: 280px 1fr; gap: 2.5rem; align-items: start; }
    /* El rótulo del grupo se queda a la vista mientras bajan sus tarjetas. */
    .service-group__head { position: sticky; top: calc(var(--nav-h) + 1.5rem); }
  }

  /* Decoración de juguetes en las tarjetas */
  .decor--card { z-index: 1; }
  .decor--card-ball { width: 30px; top: -16px; right: 26px; }
  .decor--card-bone { width: 46px; top: -11px; right: 22px; rotate: -14deg; }
  .decor--card-yarn { width: 118px; top: -22px; right: 8px; }
  .decor--card-mouse { width: 44px; bottom: -13px; left: 26px; }
  /* Rascador: la franja de la tarjeta de gatos imita la cuerda de sisal. */
  .service-card[data-service="gatos"]::before {
    height: 6px;
    background: repeating-linear-gradient(-55deg, var(--brand-lilac) 0 3px, #e8c8f5 3px 6px);
  }

  /* Bloque "Pati Familia" */
  .family-note {
    margin-top: clamp(3rem, 6vw, 5rem);
    display: grid; gap: 1.5rem; align-items: center;
    padding: clamp(1.8rem, 4vw, 3rem);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #ffe7f8 0%, #f1ddf1 55%, #fff0e3 100%);
  }
  @media (min-width: 860px) { .family-note { grid-template-columns: 300px 1fr; gap: 3rem; } }
  .family-note__art { width: 100%; max-width: 300px; justify-self: center; }
  .family-note__quote {
    font-family: var(--display); font-size: clamp(1.45rem, 3vw, 2.15rem); line-height: 1.2;
    color: var(--ink); text-wrap: balance;
  }
  .family-note__sub { margin-top: .9rem; font-size: 1.05rem; color: var(--ink-soft); }
  .family-note__cta {
    margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid rgba(43,34,48,.12);
    display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem;
  }
  .family-note__cta p { flex: 1 1 240px; font-size: .95rem; color: var(--ink-soft); }

  /* --- 5. Cómo funciona y "Prepara tu mensaje" (tarde) --- */
  .steps-wrap { position: relative; }
  .decor--steps-trail { display: none; left: 0; right: 0; width: 100%; top: -2.4rem; color: var(--brand-lilac); opacity: .5; }
  @media (min-width: 1080px) { .decor--steps-trail { display: block; } }

  .prep-card {
    margin-top: clamp(1.4rem, 3vw, 2rem);
    display: grid; gap: 1.4rem; align-items: center;
    background: var(--accent-2-soft); border-radius: var(--radius-lg);
    padding: clamp(1.8rem, 3vw, 2.6rem);
  }
  .prep-card h3 { font-size: 1.35rem; }
  .prep-card p { margin-top: .4rem; }
  .prep-card .btn { justify-self: start; }
  @media (min-width: 1000px) { .prep-card { grid-template-columns: .9fr 1.5fr auto; gap: 2.4rem; } }
  .prep-list { display: grid; gap: .9rem; counter-reset: prep; }
  @media (min-width: 720px) { .prep-list { grid-template-columns: repeat(2, 1fr); } }
  .prep-list li { display: flex; gap: .8rem; align-items: flex-start; font-size: .98rem; color: var(--ink-soft); counter-increment: prep; }
  .prep-list li::before {
    content: counter(prep);
    flex: none; width: 26px; height: 26px; border-radius: 50%;
    background: var(--paper); color: var(--accent-2);
    display: grid; place-items: center; font-size: .8rem; font-weight: 700;
  }
  /* Con JS, "Prepara tu mensaje" sustituye a la lista estática. */
  .planner { display: none; }
  .js .planner { display: grid; }
  .js .prep-static { display: none; }

  .planner {
    margin-top: clamp(2.5rem, 5vw, 4rem);
    gap: clamp(1.6rem, 3vw, 2.4rem);
    padding: clamp(1.6rem, 4vw, 3rem);
    border-radius: var(--radius-lg);
    background: linear-gradient(160deg, var(--paper) 0%, #fff6fb 60%, #f7efff 100%);
    border: 1px solid var(--line-soft);
    box-shadow: var(--shadow-soft);
  }
  .planner__title { margin-top: .7rem; font-size: clamp(1.6rem, 3vw, 2.3rem); }
  .planner__intro > p:last-child { margin-top: .7rem; color: var(--ink-mute); max-width: 46ch; }
  .planner__form { display: grid; gap: 1rem 1.1rem; align-content: start; }
  @media (min-width: 600px) { .planner__form { grid-template-columns: 1fr 1fr; } }
  .planner__field { display: grid; gap: .4rem; min-width: 0; border: 0; padding: 0; }
  .planner__field--wide { grid-column: 1 / -1; }
  .planner__field > label, .planner__field legend { font-weight: 600; font-size: .92rem; color: var(--ink); }
  .planner__field legend { margin-bottom: .4rem; }
  .planner__opt { font-weight: 400; color: var(--ink-mute); }
  .planner__options { display: flex; flex-wrap: wrap; gap: .5rem; }
  .planner__option { position: relative; }
  .planner__option input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
  .planner__option span {
    display: inline-flex; align-items: center; min-height: 44px; padding: .5rem 1.15rem;
    border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper);
    font-weight: 500; transition: background-color .3s, color .3s, border-color .3s;
  }
  .planner__option input:hover + span { border-color: var(--brand-pink); }
  .planner__option input:checked + span { background: var(--ink); color: var(--cream); border-color: var(--ink); }
  .planner__option input:focus-visible + span { outline: 2px solid var(--accent-strong); outline-offset: 3px; }
  .planner__preview { display: grid; gap: .9rem; align-content: start; }
  .planner__preview-label { font-weight: 600; font-size: .92rem; color: var(--ink); }
  .planner__send { justify-self: start; white-space: normal; text-align: left; }
  .planner__status { min-height: 1.5em; font-size: .92rem; color: var(--accent-2); font-weight: 600; }
  @media (min-width: 1080px) {
    .planner { grid-template-columns: 1.35fr 1fr; align-items: start; column-gap: 3rem; }
    .planner__intro { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: .4rem 3rem; align-items: end; }
    .planner__intro .eyebrow { grid-column: 1 / -1; }
    .planner__intro .planner__title { margin-top: 0; }
    .planner__preview { position: sticky; top: calc(var(--nav-h) + 1rem); }
  }

  /* --- 6. Conócenos (tarde) --- */
  .manifesto-grid { display: grid; gap: 2.5rem; }
  .manifesto-kicker {
    font-size: clamp(2.6rem, 6vw, 4.4rem); font-style: italic; font-weight: 400;
    color: var(--accent-ink); line-height: .95;
  }
  .manifesto-text p + p { margin-top: 1.1rem; }
  .manifesto-text p { font-size: clamp(1.05rem, 1.5vw, 1.25rem); }
  .manifesto-text .btn { margin-top: 1.8rem; }
  @media (min-width: 960px) { .manifesto-grid { grid-template-columns: .9fr 1.4fr; gap: 4.5rem; align-items: center; } }

  /* Polaroid con mancha orgánica de color detrás. */
  .about-photo {
    position: relative; isolation: isolate;
    margin-top: 1.6rem; max-width: 360px;
    padding: .6rem .6rem 0;
    background: var(--paper);
    border-radius: var(--radius);
    box-shadow: 0 24px 50px rgba(43,34,48,.14), 0 4px 12px rgba(43,34,48,.06);
    rotate: -1.6deg;
    transition: rotate .8s var(--ease-spring);
  }
  .about-photo:hover { rotate: 0deg; }
  .about-photo::before {
    content: ""; position: absolute; z-index: -1; inset: -18px -22px -24px -18px;
    border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%;
    background: linear-gradient(135deg, var(--brand-pink), var(--brand-lilac) 60%, var(--brand-peach));
    opacity: .32; rotate: 5deg;
  }
  .about-photo__img, .about-photo img { width: 100%; height: auto; border-radius: calc(var(--radius) - .35rem); background: var(--bg-2); }
  .about-photo figcaption {
    padding: .7rem .2rem .8rem;
    font-family: var(--display); font-style: italic; font-size: 1.05rem;
    color: var(--ink-soft); text-align: center;
  }
  @media (max-width: 959px) { .about-photo { margin-inline: auto; } }

  /* --- 7. Instagram (atardecer) --- */
  .ig-feed { margin-bottom: clamp(1.6rem, 3vw, 2.4rem); }
  .social-cards { display: grid; gap: 1.1rem; }
  @media (min-width: 640px) { .social-cards { grid-template-columns: repeat(2, 1fr); } }
  .social-card {
    display: flex; align-items: center; gap: 1.1rem;
    background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
    padding: 1.5rem 1.7rem;
    transition: transform .55s var(--ease-spring), box-shadow .4s var(--ease-soft), border-color .4s var(--ease-soft);
  }
  .social-card:hover { transform: translateY(-3px); border-color: var(--brand-pink); box-shadow: 0 20px 44px rgba(43,34,48,.12); }
  .social-card .card-icon { width: 46px; height: 46px; }
  .social-card-arrow { margin-left: auto; color: var(--accent-ink); transition: translate .45s var(--ease-out); }
  .social-card:hover .social-card-arrow { translate: 4px 0; }
  .social-card-label { display: block; font-weight: 600; font-size: 1.05rem; }
  .social-card-handle { display: block; font-size: .88rem; color: var(--ink-mute); margin-top: .15rem; }

  /* --- 8. FAQ (atardecer) --- */
  #faq { background: var(--bg-lime); }
  .faq-layout { display: grid; gap: 1rem; }
  .faq-head .btn { margin-top: 1.4rem; }
  @media (min-width: 960px) {
    .faq-layout { grid-template-columns: .8fr 1.2fr; gap: 4rem; align-items: start; }
    .faq-head { position: sticky; top: calc(var(--nav-h) + 2rem); margin-bottom: 0; }
  }
  .faq-list { display: grid; gap: .8rem; }
  .faq-item {
    background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius);
    padding: .3rem 1.5rem;
    transition: border-color .3s var(--ease-out), box-shadow .4s var(--ease-soft);
  }
  .faq-item[open] { border-color: var(--brand-lilac); box-shadow: 0 12px 30px rgba(198,129,230,.16); }
  .faq-item summary {
    list-style: none; cursor: pointer;
    padding: 1.2rem 2.2rem 1.2rem 0;
    font-weight: 600; font-size: 1.02rem; position: relative;
  }
  .faq-item summary:hover { color: var(--accent-ink); }
  .faq-item summary::-webkit-details-marker { display: none; }
  .faq-item summary::after {
    content: "+"; position: absolute; right: 0; top: 1.1rem;
    font-family: var(--display); font-size: 1.6rem; line-height: 1; color: var(--accent-ink);
    transition: transform .35s var(--ease-soft);
  }
  .faq-item[open] summary::after { transform: rotate(45deg); }
  .faq-item p { padding-bottom: 1.3rem; color: var(--ink-mute); max-width: 68ch; }

  /* --- 9. De día y de noche (anochecer) --- */
  .section-daynight {
    position: relative; overflow: clip;
    background: var(--ink); color: var(--cream);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  }
  .section-daynight h2 { color: var(--cream); }
  .section-daynight h2 em { color: var(--sun); }
  .section-daynight .eyebrow { color: var(--accent-soft); }
  .section-daynight p { color: rgba(255,253,252,0.9); } /* AA también durante el atardecer (fondo ciruela) */
  .section-daynight .lede { color: var(--cream); }
  .section-daynight :focus-visible { outline-color: var(--cream); }
  .section-daynight .chip--night { border-color: rgba(255,251,244,.35); }
  .daynight-grid { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
  .daynight-art .lp-scene { max-width: 500px; margin-inline: auto; }
  .daynight-text { display: flex; flex-direction: column; align-items: flex-start; gap: 1.2rem; }
  .daynight-text h2 { max-width: 15ch; font-size: clamp(2.2rem, 5vw, 4rem); }
  .daynight-text p { max-width: 48ch; }
  .daynight-text .btn { margin-top: .6rem; }
  @media (min-width: 900px) { .daynight-grid { grid-template-columns: 1fr 1.05fr; } }
  .decor--night-trail { width: 210px; right: var(--gutter); bottom: 14px; color: var(--brand-lilac); opacity: .55; }
  @media (max-width: 899px) { .decor--night-trail { display: none; } }

  /* --- 10. Buenas noches (cierre) --- */
  .section-contact {
    overflow: clip;
    background: linear-gradient(var(--ink), var(--night-deep) 70%);
    color: var(--cream);
    padding-top: clamp(2rem, 5vw, 4rem);
  }
  /* Cielo estrellado: puntos con gradientes, sin imágenes. */
  .night-sky {
    position: absolute; inset: 0; pointer-events: none; opacity: .75;
    background-image:
      radial-gradient(1.5px 1.5px at 12% 18%, #fff 50%, transparent 52%),
      radial-gradient(1px 1px at 28% 62%, #fff 50%, transparent 52%),
      radial-gradient(2px 2px at 44% 30%, #ffe8cf 50%, transparent 52%),
      radial-gradient(1px 1px at 63% 12%, #fff 50%, transparent 52%),
      radial-gradient(1.5px 1.5px at 76% 48%, #fff 50%, transparent 52%),
      radial-gradient(1px 1px at 88% 22%, #f1ddf1 50%, transparent 52%),
      radial-gradient(1.5px 1.5px at 92% 78%, #fff 50%, transparent 52%),
      radial-gradient(1px 1px at 6% 84%, #fff 50%, transparent 52%),
      radial-gradient(50% 45% at 85% 35%, rgba(198,129,230,.2), transparent 70%);
  }
  .cta-band { position: relative; display: grid; gap: 2rem; align-items: center; }
  .cta-band__text { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .cta-band__actions { display: flex; flex-wrap: wrap; gap: .9rem; }
  .cta-band__art { max-width: 360px; justify-self: center; width: 100%; }
  @media (min-width: 900px) { .cta-band { grid-template-columns: 1.4fr 1fr; } }
  .cta-band h2 { max-width: 15ch; color: var(--cream); font-size: clamp(2.3rem, 5.4vw, 4.4rem); }
  .cta-band .eyebrow { color: var(--accent-soft); }
  .cta-band .lede { color: var(--cream-mute); }
  .cta-band .contact-social a { border-color: rgba(255,251,244,.35); color: var(--cream); }
  .cta-band .contact-social a:hover { border-color: var(--accent-soft); }
  .section-contact :focus-visible { outline-color: var(--cream); }

  /* --- Pie (la noche continúa) --- */
  .footer {
    position: relative;
    padding-block: clamp(3rem, 6vw, 4.5rem) 2.5rem;
    background: var(--night-deep); color: var(--cream);
  }
  .footer::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--brand-orange), var(--brand-pink), var(--brand-lilac), var(--brand-lime));
  }
  .footer :focus-visible { outline-color: var(--cream); }
  .footer-grid { display: grid; gap: 2.4rem; }
  @media (min-width: 720px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
  .footer-brand { display: inline-flex; align-items: center; view-transition-name: lp-footer-logo; }
  .footer-brand .brand-logo { height: clamp(40px, 8vw, 58px); color: var(--cream); }
  .footer-tagline { margin-top: .8rem; max-width: 34ch; color: var(--cream-mute); font-size: .92rem; }
  .footer-title {
    font-family: var(--sans); font-size: .82rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
    color: var(--cream-mute); margin-bottom: 1rem;
  }
  .footer-col ul { display: flex; flex-direction: column; gap: .7rem; }
  .footer-col a { display: inline-block; padding-block: .15rem; color: var(--cream); }
  .footer-col a:hover { color: var(--brand-pink); }
  .footer-bottom {
    margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,253,252,.14);
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  }
  .footer-bottom p { font-size: .82rem; color: var(--cream-mute); }
  .footer-legal { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; }
  .footer-legal a {
    display: inline-block; padding-block: .2rem;
    font-size: .82rem; color: var(--cream-mute);
    text-decoration: underline; text-underline-offset: .2em;
  }
  .footer-legal a:hover { color: var(--brand-pink); }
  /* Hueco para la barra de acción en móvil. */
  @media (max-width: 959px) { .footer { padding-bottom: 6.5rem; } }
}

/* =============================================================
   UTILITIES
   ============================================================= */
@layer utilities {
  .sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
  }

  .skip-link {
    position: fixed; top: -100px; left: 1rem; z-index: 9999;
    padding: .7rem 1.1rem; background: var(--ink); color: var(--cream);
    border-radius: 8px; font-weight: 600; font-size: .9rem;
    transition: top .3s var(--ease-out);
  }
  .skip-link:focus { top: 1rem; }

  /* Impresión: sin navegación ni elementos interactivos, fondos claros. */
  @media print {
    .nav, .nav-mobile, .scroll-progress, .whatsapp-fab, .action-bar, .skip-link,
    .situations-wrap, .tariffs-bar, .hero-glow, .hero-toy, .hero-scroll, .night-sky, .planner { display: none !important; }
    body { background: #fff; }
    .hero { min-height: 0; padding-top: 0; }
    .prep-static { display: grid !important; }
    .section-daynight, .section-contact, .footer { background: none; color: var(--ink); }
    .section-daynight h2, .section-daynight p, .section-daynight .lede, .cta-band h2, .cta-band .lede,
    .footer-col a, .footer-tagline, .footer-bottom p { color: var(--ink); }
    .js [data-reveal]:not(.is-revealed) { opacity: 1; translate: none; }
    .manifesto__word { color: var(--ink) !important; }
  }
}

/* =============================================================
   MOTION — todo el movimiento, solo sin prefers-reduced-motion.
   Lo ligado al scroll, además, solo donde existe animation-timeline;
   en el resto, main.js hace una versión sencilla o se queda quieto.
   ============================================================= */
@layer motion {
  @media (prefers-reduced-motion: no-preference) {

    /* Cielo de la página: cambia de color suavemente entre secciones. */
    html:not(.lite) { transition: --sky 1.4s var(--ease-soft); }

    /* Detalles (FAQ y tarifas): apertura y cierre suaves donde existe
       ::details-content; en los demás navegadores, al instante. */
    :root { interpolate-size: allow-keywords; }
    .faq-item::details-content, .service-details::details-content {
      block-size: 0;
      overflow-y: clip;
      transition: block-size .45s var(--ease-soft), content-visibility .45s allow-discrete;
    }
    .faq-item[open]::details-content, .service-details[open]::details-content { block-size: auto; }

    /* --- Hero: entrada (el h1 no se anima: es el LCP) --- */
    .hero-enter { animation: lp-rise .9s var(--ease-out) both; }
    .hero-for { animation-delay: .05s; }
    .hero-sub { animation-delay: .12s; }
    .hero-actions { animation-delay: .2s; }
    .hero-art { animation-delay: .15s; }
    .hero-title .scribble { animation: lp-draw 1.1s var(--ease-out) .5s both; }
    .hero-toy { animation: lp-pop .9s var(--ease-spring) both; }
    .hero-toy--ball { animation-delay: .7s; }
    .hero-toy--bone { animation-delay: .85s; }
    .hero-toy--yarn { animation-delay: 1s; }
    .hero-scroll__line { transform-origin: top; animation: lp-cue 1.8s var(--ease-soft) 1.6s 3 both; }

    /* Palabra rotativa: peluditos · michis · patitas · hijos peludos.
       main.js la pausa cuando el hero sale de pantalla. */
    .js .rotator__word {
      visibility: visible; opacity: 0;
      animation: lp-rotate 10s var(--ease-out) infinite;
      animation-delay: calc(var(--i) * 2.5s - .4s);
    }
    .rotator.is-paused .rotator__word { animation-play-state: paused; }

    /* Profundidad con el ratón: cada capa se mueve según su --d.
       --px y --py (de -1 a 1) los pone main.js en .hero-art. */
    @media (hover: hover) and (pointer: fine) {
      html:not(.lite) .hero-art .lp-layer,
      html:not(.lite) .hero-toy {
        translate: calc(var(--px, 0) * var(--d, 1) * -16px) calc(var(--py, 0) * var(--d, 1) * -11px);
        transition: translate 1s var(--ease-out);
      }
      html:not(.lite) .hero-toy--ball { --d: 2.6; }
      html:not(.lite) .hero-toy--bone { --d: 2.1; }
      html:not(.lite) .hero-toy--yarn { --d: 1.7; }
      /* El perro sigue el cursor con la mirada. */
      html:not(.lite) .hero-art .lp-char--dog-sit .lp-eye {
        translate: calc(var(--px, 0) * 4px) calc(var(--py, 0) * 3px);
        transition: translate .5s var(--ease-out);
      }
    }

    /* Microvida de los personajes: cola, parpadeo, orejas y sol. */
    .lp-tail { transform-box: fill-box; transform-origin: 0 100%; animation: lp-wag 2.6s var(--ease-soft) infinite; }
    [class*="lp-char--cat"] .lp-tail { animation: lp-sway 5s var(--ease-soft) infinite; }
    .lp-char--dog-lie .lp-tail, .lp-char--cat-lie .lp-tail { animation-duration: 7s; }
    .lp-eye { transform-box: fill-box; transform-origin: center; animation: lp-blink 6s infinite; }
    .lp-char--cat-sit .lp-eye { animation-delay: 1.8s; }
    .lp-char--cat-sit .lp-ear { transform-box: fill-box; transform-origin: 50% 100%; animation: lp-twitch 9s 3s infinite; }
    .lp-sun-rays { transform-box: fill-box; transform-origin: center; animation: lp-spin 60s linear infinite; }
    .lp-stars circle { animation: lp-twinkle 3.2s ease-in-out infinite alternate; }
    .lp-stars circle:nth-child(2n) { animation-duration: 2.6s; animation-delay: -1.1s; }
    .lp-stars circle:nth-child(3n) { animation-duration: 4s; animation-delay: -2.2s; }
    .lp-char--dog-lie, .lp-char--cat-lie {
      transform-box: fill-box; transform-origin: 50% 100%;
      animation: lp-breathe 4.6s ease-in-out infinite;
    }
    .lp-char--cat-lie { animation-delay: -2s; }
    .night-sky { animation: lp-twinkle 5s ease-in-out infinite alternate; }
    /* La microvida espera a que la página haya cargado (html.is-live) y
       se pausa en las secciones que no están a la vista (.is-away):
       son animaciones SVG que se pintan en el hilo principal. */
    html.js:not(.is-live) :is(.lp-tail, .lp-eye, .lp-ear, .lp-sun-rays, .lp-stars circle, .lp-char--dog-lie, .lp-char--cat-lie, .night-sky),
    .is-away :is(.lp-tail, .lp-eye, .lp-ear, .lp-sun-rays, .lp-stars circle, .lp-char--dog-lie, .lp-char--cat-lie, .night-sky) {
      animation-play-state: paused;
    }

    /* Subrayados a mano: se dibujan al aparecer. */
    .js [data-reveal] .scribble { background-size: 0 .32em; transition: background-size 1s var(--ease-out) .35s; }
    .js [data-reveal].is-revealed .scribble { background-size: 100% .32em; }

    /* Pilares: llegan con más giro y se asientan con un muelle. */
    .js .pillar[data-reveal]:not(.is-revealed) { rotate: calc(var(--tilt) * 5); }
    @media (hover: hover) and (pointer: fine) { .pillar:hover { rotate: 0deg; } }

    /* Pasos: el número entra con un pequeño rebote tras su tarjeta. */
    .step::before {
      transform-origin: 0 100%;
      transition: scale .8s var(--ease-spring), opacity .4s var(--ease-soft);
      transition-delay: calc(var(--rd, 0s) + .3s);
    }
    .js .step:not(.is-revealed)::before { scale: .4; opacity: 0; }

    /* Huellas: aparecen una a una siguiendo su recorrido. */
    .decor-trail .paw {
      transform-box: fill-box; transform-origin: center;
      transition: opacity .45s var(--ease-soft), scale .6s var(--ease-spring);
      transition-delay: calc(var(--i) * 120ms + .25s);
    }
    .js .decor-trail:not(.is-revealed) .paw { opacity: 0; scale: .4; }

    /* Pelota que llega rodando al final de los pilares. */
    .decor-roll .ball {
      transform-box: fill-box; transform-origin: center;
      transition: translate .9s var(--ease-spring) .55s, rotate .9s var(--ease-spring) .55s;
    }
    .js .decor-roll:not(.is-revealed) .ball { translate: -70px 0; rotate: -260deg; }

    /* Tarjetas: al pasar, el icono saluda y el juguete hace un gesto. */
    .service-card__icon { transition: rotate .6s var(--ease-spring), scale .6s var(--ease-spring), background-color .5s; }
    .decor--card, .decor--card .ball, .decor--card .yarn {
      transform-box: fill-box; transform-origin: center;
      transition: translate .6s var(--ease-spring), rotate .7s var(--ease-spring);
    }
    .is-filtered .service-card.is-match { translate: 0 -6px; }
    @media (hover: hover) and (pointer: fine) {
      .service-card:hover { transform: translateY(-4px); }
      .service-card:hover .service-card__icon { rotate: -8deg; scale: 1.06; }
      .service-card:hover .decor--card-ball { translate: -10px 0; }
      .service-card:hover .decor--card-ball .ball { rotate: -140deg; }
      .service-card:hover .decor--card-bone { rotate: -4deg; translate: 0 -3px; }
      .service-card:hover .decor--card-yarn .yarn { rotate: 40deg; }
      .service-card:hover .decor--card-mouse { translate: 7px 0; }
    }
    html.lite .service-card::after { display: none; }

    /* Menú móvil: los enlaces entran escalonados. */
    .nav-mobile-links > * { transition: opacity .5s var(--ease-soft), translate .6s var(--ease-out); }
    .nav-mobile:not(.is-open) .nav-mobile-links > * { opacity: 0; translate: 0 18px; }
    .nav-mobile.is-open .nav-mobile-links > :nth-child(2) { transition-delay: .05s; }
    .nav-mobile.is-open .nav-mobile-links > :nth-child(3) { transition-delay: .1s; }
    .nav-mobile.is-open .nav-mobile-links > :nth-child(4) { transition-delay: .15s; }
    .nav-mobile.is-open .nav-mobile-links > :nth-child(5) { transition-delay: .2s; }
    .nav-mobile.is-open .nav-mobile-links > :nth-child(6) { transition-delay: .25s; }

    /* Vista previa del mensaje: un pequeño latido al cambiar. */
    .chat-bubble.is-updated { animation: lp-bubble .5s var(--ease-spring); }

    @supports (animation-timeline: view()) {
      @media screen {
        /* Manifiesto: la sección se alarga y el texto se queda fijo
           mientras las palabras se encienden una a una con el scroll.
           Siempre legibles: de --ink-mute (AA) a --ink. */
        .manifesto { height: 240vh; padding-block: 0; view-timeline: --manifesto block; }
        .manifesto__stage { position: sticky; top: 0; min-height: 100svh; display: flex; align-items: center; padding-block: calc(var(--nav-h) + 1rem) 2rem; }
        .manifesto__word {
          color: var(--ink-mute);
          animation: lp-word linear both;
          animation-timeline: --manifesto;
          animation-range: contain calc(var(--i) * 7.5%) contain calc(var(--i) * 7.5% + 12%);
        }
        .manifesto__word.is-key { animation-name: lp-word-key; }
        .manifesto__sub {
          animation: lp-rise linear both;
          animation-timeline: --manifesto;
          animation-range: contain 70% contain 82%;
        }

        /* Al llegar a "De día y de noche" anochece: la ventana pasa de
           día a noche y la franja, de atardecer a noche. Si el usuario
           vuelve hacia arriba, amanece. */
        .section-daynight .lp-window {
          animation: lp-nightfall linear both;
          animation-timeline: view();
          animation-range: entry 15% cover 45%;
        }
        .section-daynight {
          animation: lp-dusk linear both;
          animation-timeline: view();
          animation-range: entry 0% cover 40%;
        }

        /* Hero: la ventana se queda un poco atrás al bajar. */
        .hero-art {
          animation: lp-rise .9s var(--ease-out) .15s both, lp-drift linear both;
          animation-timeline: auto, view();
          animation-range: normal, exit;
        }

        /* Conócenos: la mancha de color se desplaza al pasar. */
        .about-photo::before {
          animation: lp-blob linear both;
          animation-timeline: view();
          animation-range: cover;
        }

        /* Barra de progreso y sol, ligados al scroll de la página. */
        .scroll-progress span { animation: lp-progress linear both; animation-timeline: scroll(root); }
        .scroll-progress__sun { animation: lp-sun-travel linear both; animation-timeline: scroll(root); }
      }
    }
  }

  /* Sin animation-timeline (o con movimiento reducido), la barra de
     progreso la mueve main.js; aquí solo se quita la transición. */

  /* Con movimiento reducido: estados finales y cambios instantáneos. */
  @media (prefers-reduced-motion: reduce) {
    .nav-mobile, .whatsapp-fab, .action-bar, .btn, .service-card, .social-card, .lp-window, .about-photo, .pillar { transition: none; }
    .about-photo:hover { rotate: -1.6deg; }
    .btn:hover, .btn:active, .social-card:hover, .whatsapp-fab:hover { transform: none; }
    .js [data-reveal]:not(.is-revealed) { translate: none; }
    .rotator__word:not(:first-child) { display: none; }
  }

  @keyframes lp-rise { from { opacity: 0; translate: 0 24px; } }
  @keyframes lp-draw { from { background-size: 0 .32em; } }
  @keyframes lp-pop { from { opacity: 0; scale: .4; } }
  @keyframes lp-cue { 0% { scale: 1 0; opacity: 1; } 60% { scale: 1 1; opacity: 1; } 100% { scale: 1 1; opacity: 0; } }
  @keyframes lp-rotate {
    0% { opacity: 0; translate: 0 .45em; }
    5%, 22% { opacity: 1; translate: 0 0; }
    27%, 100% { opacity: 0; translate: 0 -.45em; }
  }
  @keyframes lp-word { to { color: var(--ink); } }
  @keyframes lp-word-key { to { color: var(--accent-ink); } }
  @keyframes lp-progress { to { transform: scaleX(1); } }
  @keyframes lp-sun-travel { to { translate: calc(100vw - 13px) 0; } }
  @keyframes lp-nightfall { from { --night: 0; } to { --night: 1; } }
  @keyframes lp-dusk { from { background-color: var(--accent-ink); } }
  @keyframes lp-drift { to { transform: translateY(14%); } }
  @keyframes lp-blob { from { rotate: -6deg; translate: -10px 14px; } to { rotate: 14deg; translate: 10px -14px; } }
  @keyframes lp-wag { 0%, 100% { rotate: 0deg; } 50% { rotate: 9deg; } }
  @keyframes lp-sway { 0%, 100% { rotate: 0deg; } 50% { rotate: -7deg; } }
  @keyframes lp-blink { 0%, 94%, 100% { scale: 1 1; } 96% { scale: 1 .1; } }
  @keyframes lp-twitch { 0%, 90%, 100% { rotate: 0deg; } 93% { rotate: -14deg; } 96% { rotate: 4deg; } }
  @keyframes lp-spin { to { rotate: 1turn; } }
  @keyframes lp-twinkle { from { opacity: 1; } to { opacity: .35; } }
  @keyframes lp-breathe { 50% { scale: 1.015 1.035; } }
  @keyframes lp-bubble { 40% { scale: 1.015; } }
}

/* Transición suave entre la portada y las demás páginas (aviso legal,
   404…): el logo viaja de una a otra. Sin soporte: navegación normal. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; }
}
