/* =============================================================================
   Siruki · tokens.css
   El lenguaje visual de la app (SiroDesignSystem) traducido a la web.

   Fuente de verdad: ios-siruki/Packages/SiroKit/Sources/SiroDesignSystem
     Tokens/SiroColor.swift, SiroFont.swift, SiroMetrics.swift y Components/*
   y el onboarding de diseño (onboarding_canvas/project/Informe.dc.html).

   Reglas de uso (detalle en diseno.md):
   - Sin dependencias ni peticiones externas. Sin data: URIs (la CSP es solo 'self').
   - Nada de style="" ni <style> en las páginas: la CSP los bloquea. Todo se
     configura con clases (tamaños, valores de barras, colores de llama…).
   - Burdeos para acciones y marca. Amarillo SOLO para recompensas.
   - Las ilustraciones de Siro se usan tal cual: sin filtros, giros ni espejos.
   ========================================================================== */


/* -----------------------------------------------------------------------------
   1. Fuentes autoalojadas (woff2 variables, subconjunto latino del kit)
   Precargar las dos en cada página:
   <link rel="preload" href="/fonts/Nunito-Variable.woff2" as="font" type="font/woff2" crossorigin>
   <link rel="preload" href="/fonts/Baloo2-Variable.woff2" as="font" type="font/woff2" crossorigin>
   -------------------------------------------------------------------------- */

@font-face {
  font-family: "Baloo 2";
  src: url("/fonts/Baloo2-Variable.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+000D, U+0020-007F, U+00A0-017E, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+2007-200D, U+2010, U+2012-2015, U+2018-201A, U+201C-201E, U+2020-2022, U+2026,
    U+2030, U+2032-2033, U+2039-203A, U+2044, U+2074, U+20AC, U+2122, U+2190-2193, U+2212, U+2215;
}

@font-face {
  font-family: "Nunito";
  src: url("/fonts/Nunito-Variable.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-0132, U+0134-017E, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+2007-200B, U+2010, U+2012-2015, U+2018-201A, U+201C-201E, U+2020-2022,
    U+2026, U+2030, U+2032-2033, U+2039-203A, U+2044, U+2052, U+2074, U+20AC, U+2122, U+2212, U+2215;
}

/* Respaldo con las medidas ajustadas (Arial) para que no salte el texto al cargar
   las fuentes. Calculado con fontTools sobre Nunito 600/800 y Baloo 2 800. */
@font-face {
  font-family: "Nunito Fallback";
  src: local("Arial"), local("ArialMT");
  font-weight: 200 650;
  size-adjust: 100.6%;
  ascent-override: 100.5%;
  descent-override: 35.1%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Nunito Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT");
  font-weight: 651 1000;
  size-adjust: 98.4%;
  ascent-override: 102.8%;
  descent-override: 35.9%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Baloo 2 Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT");
  font-weight: 400 800;
  size-adjust: 94%;
  ascent-override: 114.6%;
  descent-override: 55.7%;
  line-gap-override: 0%;
}


/* -----------------------------------------------------------------------------
   2. Tokens
   -------------------------------------------------------------------------- */

:root {
  color-scheme: light;

  /* --- Color corporativo: burdeos (SiroColor.primary…) --- */
  --c-primary: #8E1B3A;          /* rellenos de marca: números, bordes elegidos, puntos */
  --c-primary-ink: #8E1B3A;      /* texto y enlaces en burdeos (en oscuro se aclara) */
  --c-primary-hover: #6E1230;    /* enlace al pasar (primaryDark) */
  --c-primary-light: #C25B78;    /* primaryLight: solo rellenos y adornos, no texto */
  --c-primary-dark: #6E1230;     /* primaryDark */
  --c-cream: #FBEFF2;            /* crema rosado: chips, botón secundario, círculo de Siro */
  --c-cream-hover: #F7E3E9;

  /* --- Secundario: amarillo del icono. SOLO recompensas, nunca acciones --- */
  --c-secondary: #FFC93C;        /* insignias, «Ahorra 64 %», punto «Día 7» */
  --c-secondary-soft: #FFF4CC;   /* fondo de «Nivel 1», logros, círculo cálido */
  --c-secondary-text: #8A5A00;   /* texto sobre amarillo suave y «eyebrows» */
  --c-on-secondary: #5C3B00;     /* texto sobre el amarillo puro */
  --c-reward-ink: #6B3A00;       /* texto sobre el degradado del Reto diario */
  --c-level-bg: #FFECBB;         /* amarillo al 35 % sobre blanco (tarjeta «Nivel») */

  /* --- Semánticos --- */
  --c-bg: #FFFFFF;
  --c-bg-alt: #FCF1F4;           /* secciones alternas: la nube de atrás (cloudBack) */
  --c-surface: #FFFFFF;
  --c-text: #1C1A1D;
  --c-text-2: #6F6D6F;
  --c-icon: #2B2A2C;             /* iconInactive */
  --c-divider: #E6E5E6;
  --c-track: #EAEAEA;
  --c-field: #F4F4F5;
  --c-success: #4F7F1A;
  --c-on-success: #FFFFFF;
  --c-danger: #C62828;
  --c-day-empty: #E4E4E5;
  --c-cloud: #F7E3E9;
  --c-cloud-back: #FCF1F4;
  --c-hairline: rgba(0, 0, 0, .04);
  --c-focus: #8E1B3A;

  /* --- Paleta de apoyo del tablero de recursos (casi nunca en la web) --- */
  --c-support-yellow: #FFD24D;
  --c-support-green: #8CC63F;
  --c-support-blue: #64B5F6;
  --c-support-purple: #CBA6FB;
  --c-support-gray: #8A8F98;

  /* --- Llamas de racha: color del brillo de cada una (StreakTier.glow) --- */
  --c-llama-naranja: #FF8A1F;
  --c-llama-azul: #1FA2FF;
  --c-llama-morada: #B43CFF;
  --c-llama-verde: #3DDC6E;
  --c-llama-rosa: #FF3FA4;
  --c-llama-dorada: #FFC400;
  --c-llama-legendaria: #C8102E;
  --c-llama-contorno: #C23F00;   /* contorno del número sobre la llama */

  /* --- Degradados (SiroColor) --- */
  --g-primary: linear-gradient(180deg, #A82D50 0%, #8E1B3A 50%, #761431 100%);  /* botón principal */
  --g-progress: linear-gradient(180deg, #FFE04A, #FFC700);                     /* barra de progreso */
  --g-gold: linear-gradient(135deg, #FFDF5E, #F9B300);                         /* moneda, medallas */
  --g-daily: linear-gradient(135deg, #FFE27A 0%, #FFC23C 50%, #FFA826 100%);   /* tarjeta Reto diario */
  --g-brand: linear-gradient(180deg, #A82D50 0%, #8E1B3A 50%, #4E0C1F 100%);   /* tarjetas para compartir */
  --g-shield: linear-gradient(180deg, #9FE4FF, #3D9BE0);                       /* protector de racha */

  /* --- Sombras: siempre suaves --- */
  --sh-card: 0 4px 14px rgba(0, 0, 0, .07);
  --sh-btn: 0 6px 14px rgba(142, 27, 58, .28);
  --sh-btn-hover: 0 8px 18px rgba(142, 27, 58, .32);
  --sh-reward: 0 6px 14px rgba(242, 154, 0, .35);
  --sh-avatar: 0 0 0 1px rgba(0, 0, 0, .06), 0 4px 10px -4px rgba(80, 12, 34, .4);
  --sh-phone: 0 30px 60px -18px rgba(80, 12, 34, .38), 0 12px 24px -12px rgba(80, 12, 34, .18);
  --sh-float: 0 10px 24px -8px rgba(80, 12, 34, .22);

  /* --- Radios (SiroMetrics y onboarding) --- */
  --r-xs: 8px;
  --r-sm: 12px;      /* casilla de icono */
  --r-md: 16px;      /* campos, respuestas */
  --r-lg: 20px;      /* opciones, planes, calendario, bocadillo */
  --r-card: 22px;    /* tarjeta (cardRadius) */
  --r-xl: 28px;      /* Reto diario */
  --r-2xl: 36px;     /* paneles grandes de la web */
  --r-pill: 999px;

  /* --- Tipografía --- */
  --font-display: "Baloo 2", "Baloo 2 Fallback", ui-rounded, system-ui, sans-serif;
  --font-text: "Nunito", "Nunito Fallback", ui-rounded, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --fs-display: clamp(2.5rem, 1.6rem + 3.7vw, 4.5rem);      /* 40 → 72  · Baloo 800 */
  --fs-h2: clamp(1.875rem, 1.45rem + 1.75vw, 3rem);         /* 30 → 48  · Baloo 800 */
  --fs-h3: clamp(1.375rem, 1.25rem + .5vw, 1.75rem);        /* 22 → 28  · Baloo 700 */
  --fs-title: clamp(1.0625rem, 1rem + .25vw, 1.25rem);      /* 17 → 20  · Nunito 900 */
  --fs-lead: clamp(1.0625rem, .98rem + .35vw, 1.3125rem);   /* 17 → 21  · Nunito 600 */
  --fs-body: clamp(1rem, .96rem + .15vw, 1.0625rem);        /* 16 → 17  · Nunito 600 */
  --fs-small: .9375rem;                                     /* 15 */
  --fs-caption: .8125rem;                                   /* 13 */
  --fs-eyebrow: .8125rem;                                   /* 13 · Nunito 900 mayúsculas */
  --fs-num: clamp(2.75rem, 2rem + 3vw, 4.5rem);             /* cifras grandes («0:07», «¡3 de 3!») */

  --lh-tight: 1.04;
  --lh-head: 1.1;
  --lh-snug: 1.35;
  --lh-body: 1.55;

  /* --- Espaciado (base 4) --- */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-7: 32px;
  --sp-8: 40px;
  --sp-9: 48px;
  --sp-10: 64px;
  --sp-11: 80px;
  --sp-12: 96px;
  --sp-13: 128px;

  --gutter: clamp(16px, 4vw, 40px);              /* 16 px en móvil */
  --container: 1160px;
  --section-y: clamp(56px, 7vw + 30px, 128px);
  --card-pad: clamp(16px, 1.2vw + 12px, 24px);   /* la app usa 14 */

  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* Modo oscuro (botón de la luna) */
:root[data-theme="dark"] {
    color-scheme: dark;
    /* Valores oscuros de SiroColor.dynamic(…) y del mockup «Oscuro». */
    --c-primary: #C9426B;
    --c-primary-ink: #F08DA8;      /* #C9426B no llega a 4,5:1 sobre el fondo: texto en este rosa */
    --c-primary-hover: #F6B3C5;
    --c-cream: #3A2430;
    --c-cream-hover: #47293A;

    --c-secondary-soft: #3B3020;
    --c-secondary-text: #FFD36B;
    --c-level-bg: #3B3020;

    --c-bg: #17121A;
    --c-bg-alt: #211821;
    --c-surface: #261D28;
    --c-text: #F6EEF1;
    --c-text-2: #BDB2B9;
    --c-icon: #E4DCE1;
    --c-divider: #3A2F3C;
    --c-track: #3A2F3C;
    --c-field: #2E2430;
    --c-success: #9BD35A;
    --c-on-success: #17121A;
    --c-danger: #FF6B6B;
    --c-day-empty: #3A2F3C;
    --c-cloud: #2A1E28;
    --c-cloud-back: #211821;
    --c-hairline: rgba(255, 255, 255, .06);
    --c-focus: #F08DA8;

    --sh-card: none;
    --sh-btn: 0 6px 14px rgba(201, 66, 107, .28);
    --sh-btn-hover: 0 8px 18px rgba(201, 66, 107, .34);
    --sh-avatar: 0 0 0 1px rgba(255, 255, 255, .1), 0 4px 10px -4px rgba(0, 0, 0, .6);
    --sh-phone: 0 30px 60px -18px rgba(0, 0, 0, .7), 0 12px 24px -12px rgba(0, 0, 0, .5);
    --sh-float: 0 10px 24px -8px rgba(0, 0, 0, .55);
  }

/* Piezas de la app (capturas, réplicas de pantallas y el reto de prueba): siempre en claro,
   también con la web en oscuro. El modo oscuro de la app no está validado, así que la web no
   lo enseña. Vuelve a declarar los valores claros de los tokens que cambian en oscuro. */
.app-light {
  color-scheme: light;
  --c-primary: #8E1B3A;
  --c-primary-ink: #8E1B3A;
  --c-primary-hover: #6E1230;
  --c-cream: #FBEFF2;
  --c-cream-hover: #F7E3E9;
  --c-secondary-soft: #FFF4CC;
  --c-secondary-text: #8A5A00;
  --c-level-bg: #FFECBB;
  --c-bg: #FFFFFF;
  --c-bg-alt: #FCF1F4;
  --c-surface: #FFFFFF;
  --c-text: #1C1A1D;
  --c-text-2: #6F6D6F;
  --c-icon: #2B2A2C;
  --c-divider: #E6E5E6;
  --c-track: #EAEAEA;
  --c-field: #F4F4F5;
  --c-success: #4F7F1A;
  --c-on-success: #FFFFFF;
  --c-danger: #C62828;
  --c-day-empty: #E4E4E5;
  --c-cloud: #F7E3E9;
  --c-cloud-back: #FCF1F4;
  --c-hairline: rgba(0, 0, 0, .04);
  --c-focus: #8E1B3A;
  --sh-card: 0 4px 14px rgba(0, 0, 0, .07);
  --sh-btn: 0 6px 14px rgba(142, 27, 58, .28);
  --sh-btn-hover: 0 8px 18px rgba(142, 27, 58, .32);
  --sh-avatar: 0 0 0 1px rgba(0, 0, 0, .06), 0 4px 10px -4px rgba(80, 12, 34, .4);
  --sh-float: 0 10px 24px -8px rgba(80, 12, 34, .22);
  color: var(--c-text);
}


/* -----------------------------------------------------------------------------
   3. Base
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-text);
  font-weight: 600;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis: none;
  overflow-wrap: break-word;
}

img, svg, video, picture { display: block; max-width: 100%; }
/* «hidden» manda siempre, aunque la clase del elemento le dé otro display. */
[hidden] { display: none !important; }
img { height: auto; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--c-text);
  text-wrap: balance;
}
p, ul, ol, dl, figure, blockquote { margin: 0; }
p { text-wrap: pretty; }

a {
  color: var(--c-primary-ink);
  text-decoration-line: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: .18em;
}

button { font: inherit; color: inherit; }

hr { border: 0; height: 1px; margin: 0; background: var(--c-divider); }

:focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 3px;
}

::selection { background: var(--c-cream); color: var(--c-primary-ink); }

/* Ancla de «Saltar al contenido» (primer elemento del <body>). */
.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -200px;
  z-index: 100;
  padding: 12px 20px;
  border-radius: var(--r-pill);
  background: var(--c-surface);
  color: var(--c-primary-ink);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
}
.skip-link:focus { top: 12px; }
/* El salto lleva el foco a <main tabindex="-1">: sin anillo en el contenedor entero. */
main:focus { outline: none; }

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}


/* -----------------------------------------------------------------------------
   4. Maquetación
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { --container: 760px; }

.section { padding-block: var(--section-y); }
.section--alt { background: var(--c-bg-alt); }
.section--tight { padding-block: calc(var(--section-y) * .6); }

/* Cabecera de sección: eyebrow + título + entradilla. Centrada por defecto. */
.section-head {
  display: grid;
  gap: var(--sp-3);
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: clamp(32px, 4vw, 56px);
  text-align: center;
  justify-items: center;
}
.section-head--left { margin-inline: 0; text-align: left; justify-items: start; }

.stack { display: flex; flex-direction: column; gap: var(--sp-4); }
.stack--sm { gap: var(--sp-2); }
.stack--lg { gap: var(--sp-7); }

.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); }

/* Lista sin viñetas ni sangría (para <ul>/<ol> de tarjetas u opciones). */
.list { list-style: none; margin: 0; padding: 0; }

.grid { display: grid; gap: var(--sp-5); }
@media (min-width: 640px) { .grid--2, .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Texto + imagen. En móvil, una columna. */
.split { display: grid; gap: clamp(40px, 6vw, 88px); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split--text-wide { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .split--media-first > :first-child { order: 2; }
}


/* -----------------------------------------------------------------------------
   5. Texto
   -------------------------------------------------------------------------- */

.t-display {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  letter-spacing: -.02em;
}
.t-h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-h2);
  line-height: var(--lh-head);
  letter-spacing: -.015em;
}
.t-h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h3);
  line-height: 1.15;
  letter-spacing: -.01em;
}
/* Título de tarjeta como en la app («Memoriza», «Recuerda»): Nunito Black. */
.t-title {
  font-family: var(--font-text);
  font-weight: 900;
  font-size: var(--fs-title);
  line-height: 1.25;
  letter-spacing: 0;
}
.t-lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  font-weight: 600;
  color: var(--c-text-2);
  max-width: 60ch;
}
.t-small { font-size: var(--fs-small); line-height: 1.45; }
.t-caption { font-size: var(--fs-caption); line-height: 1.4; }
.t-muted { color: var(--c-text-2); }
.t-brand { color: var(--c-primary-ink); }
.t-center { text-align: center; }
.t-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-num);
  line-height: 1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}

/* Texto pequeño en mayúsculas con aire («HECHO PARA TI», «¡SIRO HA VUELTO!»).
   Escríbelo en minúsculas normales en el HTML: lo pasa a mayúsculas el CSS. */
.eyebrow {
  display: block;
  font-family: var(--font-text);
  font-weight: 900;
  font-size: var(--fs-eyebrow);
  line-height: 1.3;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-secondary-text);
}
/* Una sola regla: los «eyebrows» van siempre en mostaza (como «HECHO PARA TI» del onboarding). */

/* Logotipo: el icono de la app (fondo burdeos, esquinas como en el iPhone) + «Siru» y «ki» en burdeos. */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--c-text);
  text-decoration: none;
}
.logo__avatar {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 22.37%;
  object-fit: cover;
  box-shadow: var(--sh-avatar);
}
.logo__word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6875rem;
  line-height: 1;
  letter-spacing: -.022em;
  color: var(--c-text);
}
.logo__word span { color: var(--c-primary-ink); }


/* -----------------------------------------------------------------------------
   6. Botones y enlaces
   -------------------------------------------------------------------------- */

/* Botón principal: cápsula con el degradado burdeos, brillo arriba y sombra burdeos. */
.btn {
  --btn-h: 52px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--btn-h);
  padding: 8px 28px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--g-primary);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1875rem;
  line-height: 1.1;
  letter-spacing: -.01em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--sh-btn);
  -webkit-tap-highlight-color: transparent;
}
.btn::after {
  /* Brillo superior sutil, como SiroPrimaryButtonStyle. */
  content: "";
  position: absolute;
  z-index: -1;
  top: 3px;
  left: 18px;
  right: 18px;
  height: 45%;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .12);
  filter: blur(4px);
  pointer-events: none;
}
.btn svg { flex: none; width: 1.1em; height: 1.1em; }
.btn:active { transform: scale(.97); filter: brightness(.96); }
.btn:disabled,
.btn[aria-disabled="true"] { opacity: .5; box-shadow: none; cursor: not-allowed; transform: none; filter: none; }

.btn--lg { --btn-h: 58px; padding-inline: 34px; font-size: 1.3125rem; }
.btn--sm { --btn-h: 44px; padding-inline: 20px; font-size: 1.0625rem; }
.btn--block { display: flex; width: 100%; }

/* Secundario: cápsula crema con texto burdeos («Revelar pista»). */
.btn--secondary {
  background: var(--c-cream);
  color: var(--c-primary-ink);
  box-shadow: none;
  font-family: var(--font-text);
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: 0;
}
.btn--secondary::after { display: none; }

/* Sobre el panel burdeos: cápsula blanca con texto burdeos. */
.btn--light {
  background: #FFFFFF;
  color: #8E1B3A;
  box-shadow: 0 6px 16px rgba(40, 0, 12, .25);
}
.btn--light::after { display: none; }

@media (hover: hover) {
  .btn:hover { filter: brightness(1.06); box-shadow: var(--sh-btn-hover); }
  .btn--secondary:hover { filter: none; background: var(--c-cream-hover); box-shadow: none; }
  .btn--light:hover { filter: none; background: #FBEFF2; }
  a:hover { color: var(--c-primary-hover); }
}
@media (prefers-reduced-motion: no-preference) {
  .btn { transition: transform .25s var(--ease), filter .2s ease, box-shadow .2s ease, background-color .2s ease; }
}

/* Enlace de acción suelto («Ya tengo cuenta»): Nunito 800 burdeos, sin subrayado. */
.link-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--c-primary-ink);
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
}
.link-cta:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; }

/* Cápsula junto a la insignia («Gratis para iPhone»): un dato, no un botón. */
.soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 18px 6px 16px;
  border-radius: var(--r-pill);
  background: var(--c-cream);
  color: var(--c-primary-ink);
  font-weight: 800;
  font-size: var(--fs-small);
  line-height: 1.25;
}
.soon::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c-primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-primary) 22%, transparent);
}
.soon--light { background: rgba(255, 255, 255, .14); color: #FFFFFF; }
.soon--light::before { background: #FFFFFF; box-shadow: 0 0 0 4px rgba(255, 255, 255, .22); }

/* Insignia oficial de Apple («Consíguelo en el App Store», España; el SVG tal cual, sin tocar),
   enlazada a la ficha de Siruki, + «Gratis para iPhone».
   Apple pide al menos 40 px de alto en pantalla y un margen libre de 1/4 de su altura. */
.store-soon { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin: 0; }
.store-soon__link { display: block; flex: none; border-radius: 9px; }
.store-soon__link:focus-visible { outline: 3px solid var(--c-primary); outline-offset: 3px; }
.panel-brand .store-soon__link:focus-visible { outline-color: #FFFFFF; }
.store-soon__badge { display: block; flex: none; width: auto; height: 46px; }


/* -----------------------------------------------------------------------------
   7. Superficies
   -------------------------------------------------------------------------- */

/* Tarjeta blanca de la app (siroCard): radio 22, sombra suave y filo casi invisible.
   En oscuro: superficie #261D28 sin sombra y filo blanco al 6 % (mockup «Oscuro»). */
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-hairline);
  border-radius: var(--r-card);
  box-shadow: var(--sh-card);
  padding: var(--card-pad);
}
.card--cream { background: var(--c-cream); border-color: transparent; box-shadow: none; }
.card--warm { background: var(--c-secondary-soft); border-color: transparent; box-shadow: none; }
.card--field { background: var(--c-field); border-color: transparent; box-shadow: none; border-radius: var(--r-lg); }

/* Panel burdeos (fondo de las tarjetas para compartir la racha): CTA final, Siruki Plus. */
.panel-brand {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--r-2xl);
  padding: clamp(28px, 5vw, 64px);
  background: var(--g-brand);
  color: #FFFFFF;
}
.panel-brand::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 70%;
  aspect-ratio: 1;
  top: -30%;
  right: -12%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0));
  pointer-events: none;
}
.panel-brand :is(h1, h2, h3, .t-display, .t-h2, .t-h3, .t-title) { color: #FFFFFF; }
.panel-brand :is(.t-lead, .t-muted, p) { color: rgba(255, 255, 255, .84); }
.panel-brand .eyebrow { color: #FFD36B; }
.panel-brand a:not(.btn) { color: #FFFFFF; }
.panel-brand :focus-visible { outline-color: #FFFFFF; }


/* -----------------------------------------------------------------------------
   8. Piezas pequeñas
   -------------------------------------------------------------------------- */

/* Chip / píldora («10 min», «1 h», «3 días»): crema con texto burdeos. */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: var(--r-pill);
  background: var(--c-cream);
  color: var(--c-primary-ink);
  font-family: var(--font-text);
  font-weight: 800;
  font-size: var(--fs-caption);
  line-height: 1.35;
  white-space: nowrap;
}
.chip svg { width: 14px; height: 14px; flex: none; }
.chip--reward { background: var(--c-secondary-soft); color: var(--c-secondary-text); }   /* «Nivel 1» */
.chip--neutral { background: var(--c-field); color: var(--c-text-2); }
.chip--on-yellow { background: rgba(255, 255, 255, .7); color: var(--c-reward-ink); }    /* sobre el Reto diario */
.chip--brand { background: #8E1B3A; color: #FFFFFF; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; font-size: .6875rem; padding: 5px 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* Insignia numerada: círculo burdeos con el número en blanco (pasos «1, 2, 3»). */
.num {
  --num: 36px;
  flex: none;
  display: inline-grid;
  place-items: center;
  width: var(--num);
  height: var(--num);
  border-radius: 50%;
  background: var(--c-primary);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: calc(var(--num) * .53);
  line-height: 1;
  padding-top: .1em;                 /* Baloo deja aire bajo las cifras */
  font-variant-numeric: tabular-nums;
}
.num--lg { --num: 44px; }
.num--soft { background: var(--c-cream); color: var(--c-primary-ink); }   /* «wnum» del primer reto */

/* Casilla de icono (fila de opción, «Tu plan»): cuadrado redondeado crema con icono burdeos. */
.icon-tile {
  --tile: 44px;
  flex: none;
  display: inline-grid;
  place-items: center;
  width: var(--tile);
  height: var(--tile);
  border-radius: var(--r-sm);
  background: var(--c-cream);
  color: var(--c-primary-ink);
}
.icon-tile svg { width: 22px; height: 22px; }
.icon-tile--warm { background: var(--c-secondary-soft); color: var(--c-secondary-text); }
.icon-tile--field { background: var(--c-field); }
.icon-tile--lg { --tile: 52px; border-radius: 16px; }
.icon-tile--lg svg { width: 26px; height: 26px; }

/* Bocadillo de Siro: rectángulo burdeos redondeado, texto blanco Nunito Black. */
.bubble {
  display: inline-block;
  padding: 12px 16px;
  border-radius: var(--r-lg);
  background: var(--c-primary);
  color: #FFFFFF;
  font-weight: 900;
  font-size: 1.125rem;
  line-height: 1.3;
}
.siro-says { display: flex; align-items: center; gap: var(--sp-3); }
.siro-says > img { flex: none; width: auto; height: 96px; }

/* Línea con check verde (beneficios, avisos): «✓ Tu reto diario, a las 19:00». */
.checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.checks > li {
  position: relative;
  padding-left: 34px;
  font-weight: 800;
  line-height: 1.35;
}
.checks > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--c-success);
}
.checks > li::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 4px;
  width: 6px;
  height: 11px;
  border: solid var(--c-on-success);
  border-width: 0 3px 3px 0;
  border-radius: 1px;
  transform: rotate(45deg);
}
.checks small {
  display: block;
  margin-top: 2px;
  font-weight: 600;
  font-size: var(--fs-caption);
  color: var(--c-text-2);
}


/* -----------------------------------------------------------------------------
   9. Siro
   -------------------------------------------------------------------------- */

/* Siro dentro de su nube: círculo crema (90 % de la caja) y la pose al 86 % de alto.
   Igual que el «Hero» del onboarding. La pose se usa tal cual, sin filtros ni espejos. */
.siro {
  --siro: 280px;
  position: relative;
  display: block;
  flex: none;
  width: var(--siro);
  max-width: 100%;
  aspect-ratio: 1;
  margin-inline: auto;
}
.siro::before {
  content: "";
  position: absolute;
  inset: 5%;
  border-radius: 50%;
  background: var(--c-cream);
}
.siro > img {
  /* Absoluta para que la pose no estire la caja: el círculo siempre es un círculo. */
  position: absolute;
  left: 0;
  top: 7%;
  width: 100%;
  height: 86%;
  object-fit: contain;
}
.siro--warm::before { background: var(--c-secondary-soft); }     /* celebración: resultado, cuenta */
.siro--alt::before { background: var(--c-surface); }             /* sobre secciones crema */
.siro--sm { --siro: 160px; }
.siro--md { --siro: 220px; }
.siro--lg { --siro: clamp(260px, 30vw + 120px, 420px); }

/* Pequeño movimiento opcional (una sola imagen por página, como mucho). */
@media (prefers-reduced-motion: no-preference) {
  .siro--float > img { animation: siro-float 5s ease-in-out infinite; }
  @keyframes siro-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
  }
}


/* -----------------------------------------------------------------------------
   10. Listas de la app
   -------------------------------------------------------------------------- */

/* Pasos numerados («Así se hace fuerte tu memoria»): tarjeta + insignia + título + texto + chips. */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.step__body { display: grid; gap: 4px; }
.step__body .chips { margin-top: 4px; }
.step__title { font-weight: 900; font-size: var(--fs-title); line-height: 1.25; }
.step__text { font-weight: 600; color: var(--c-text-2); line-height: 1.45; }

/* Fila de opción con borde: elegida, borde burdeos y fondo crema (onboarding). */
.option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 62px;
  padding: 10px 14px;
  border: 2px solid var(--c-divider);
  border-radius: var(--r-lg);
  background: var(--c-surface);
  color: var(--c-text);
  font-family: var(--font-text);
  font-weight: 800;
  font-size: 1.0625rem;
  line-height: 1.3;
  text-align: left;
}
.option__label { flex: 1; min-width: 0; }
.option__label small { display: block; font-weight: 600; font-size: var(--fs-caption); color: var(--c-text-2); }
.option .icon-tile { background: var(--c-field); }
.option__tick {
  flex: none;
  position: relative;
  width: 26px;
  height: 26px;
  border: 2px solid var(--c-divider);
  border-radius: 50%;
}
.option.is-on,
.option[aria-checked="true"],
.option:has(input:checked) { border-color: var(--c-primary); background: var(--c-cream); }
.option.is-on .icon-tile,
.option[aria-checked="true"] .icon-tile,
.option:has(input:checked) .icon-tile { background: var(--c-surface); }
.option.is-on .option__tick,
.option[aria-checked="true"] .option__tick,
.option:has(input:checked) .option__tick { background: var(--c-primary); border-color: var(--c-primary); }
.option.is-on .option__tick::after,
.option[aria-checked="true"] .option__tick::after,
.option:has(input:checked) .option__tick::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 3px;
  width: 6px;
  height: 11px;
  border: solid #FFFFFF;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

/* Preguntas frecuentes con <details>: la misma tarjeta que el resto (radio 22, sombra suave).
   El borde de 2 px queda solo para opciones y planes, como en la app. */
.faq {
  border: 1px solid var(--c-hairline);
  border-radius: var(--r-card);
  background: var(--c-surface);
  box-shadow: var(--sh-card);
}
.faq + .faq { margin-top: 10px; }
.faq > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 14px 18px;
  border-radius: calc(var(--r-card) - 1px);
  font-weight: 800;
  font-size: 1.0625rem;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}
.faq > summary::-webkit-details-marker { display: none; }
.faq > summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  margin-right: 4px;
  border: solid var(--c-primary-ink);
  border-width: 0 3px 3px 0;
  border-radius: 1px;
  transform: translateY(-3px) rotate(45deg);
}
.faq[open] > summary { color: var(--c-primary-ink); }
.faq[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.faq__body { padding: 0 18px 18px; color: var(--c-text-2); line-height: 1.55; }
.faq__body > * + * { margin-top: 10px; }
@media (prefers-reduced-motion: no-preference) {
  .faq > summary::after { transition: transform .2s var(--ease); }
}

/* Calendario de la prueba (paywall): fondo gris, puntos de color unidos por una línea rosa. */
.timeline {
  list-style: none;
  margin: 0;
  padding: 14px 16px;
  border-radius: var(--r-lg);
  background: var(--c-field);
}
.timeline > li {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  column-gap: 12px;
  padding-bottom: 14px;
}
.timeline > li:last-child { padding-bottom: 0; }
.timeline > li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 28px;
  bottom: 0;
  width: 4px;
  background: rgba(194, 91, 120, .35);
}
.timeline__dot {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--c-primary);
  color: #FFFFFF;
}
.timeline__dot svg { width: 14px; height: 14px; }
.timeline__dot--soft { background: var(--c-primary-light); }
.timeline__dot--reward { background: var(--c-secondary); color: var(--c-on-secondary); }
.timeline__title { font-weight: 900; font-size: var(--fs-small); line-height: 1.3; padding-top: 4px; }
.timeline__text { font-weight: 600; font-size: var(--fs-caption); color: var(--c-text-2); }


/* -----------------------------------------------------------------------------
   11. Recompensas (aquí sí va el amarillo)
   -------------------------------------------------------------------------- */

/* Barra de progreso amarilla con pista gris. Valor con clase: .bar--60 = 60 %.
   Accesible: role="img" + aria-label («4 de 8 puntos») o aria-hidden si es decorativa. */
.bar {
  --h: 14px;
  position: relative;
  display: block;
  height: var(--h);
  border-radius: var(--r-pill);
  background: var(--c-track);
  overflow: hidden;
}
.bar::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--v, 0%);
  min-width: var(--h);
  border-radius: inherit;
  background: var(--g-progress);
}
.bar::after {
  /* Brillo de arriba de la barra. */
  content: "";
  position: absolute;
  top: calc(var(--h) * .15);
  left: calc(var(--h) * .4);
  width: max(0px, calc(var(--v, 0%) - var(--h) * .8));
  height: calc(var(--h) * .25);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .22);
}
.bar--thin { --h: 10px; }
.bar--0::before, .bar--0::after { display: none; }
.bar--5 { --v: 5%; }   .bar--10 { --v: 10%; } .bar--15 { --v: 15%; } .bar--20 { --v: 20%; }
.bar--25 { --v: 25%; } .bar--30 { --v: 30%; } .bar--35 { --v: 35%; } .bar--40 { --v: 40%; }
.bar--45 { --v: 45%; } .bar--50 { --v: 50%; } .bar--55 { --v: 55%; } .bar--60 { --v: 60%; }
.bar--65 { --v: 65%; } .bar--70 { --v: 70%; } .bar--75 { --v: 75%; } .bar--80 { --v: 80%; }
.bar--85 { --v: 85%; } .bar--90 { --v: 90%; } .bar--95 { --v: 95%; } .bar--100 { --v: 100%; }

/* Casilla «Nivel 3» (LevelHeroCard). */
.level {
  flex: none;
  display: grid;
  place-content: center;
  justify-items: center;
  width: 68px;
  height: 68px;
  border-radius: var(--r-card);
  background: var(--c-level-bg);
  text-align: center;
}
.level__label {
  font-weight: 800;
  font-size: .6875rem;
  line-height: 1;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--c-secondary-text);
}
.level__n {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.375rem;
  line-height: .9;
  color: var(--c-primary-ink);
  font-variant-numeric: tabular-nums;
  padding-top: 4px;
}

/* Llama de racha (imagen del kit) con el número encima, como FlameIcon.
   Tamaño con --llama-h; tramo con la clase de color (brillo desde la morada).
   <span class="llama llama--morada"><img src="/img/llamas/streak_flame_purple-120.webp" alt="" width="120" height="152"><span class="llama__n" data-n="30"></span></span>
   El número va en data-n (lo pinta el CSS): es decorativo y el texto de al lado ya dice «30 días». */
.llama {
  --llama-h: 44px;
  --glow: transparent;
  --glow-p: 0%;
  position: relative;
  isolation: isolate;
  display: inline-block;
  flex: none;
  height: var(--llama-h);
  vertical-align: middle;
}
.llama > img { position: relative; height: 100%; width: auto; }
.llama__n::after { content: attr(data-n); }
.llama__n {
  position: absolute;
  left: -30%;
  right: -30%;
  bottom: -8%;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: calc(var(--llama-h) * .34);
  line-height: 1;
  color: #FFFFFF;
  opacity: .92;
  font-variant-numeric: tabular-nums;
  text-shadow: 1px 1px 0 var(--c-llama-contorno), -1px -1px 0 var(--c-llama-contorno),
    1px -1px 0 var(--c-llama-contorno), -1px 1px 0 var(--c-llama-contorno), 0 1px 2px rgba(0, 0, 0, .25);
  pointer-events: none;
}
.llama--morada::before, .llama--verde::before, .llama--rosa::before,
.llama--dorada::before, .llama--legendaria::before {
  /* Halo del color de la llama, más intenso en las llamas altas (StreakTier.glowStrength). */
  content: "";
  position: absolute;
  z-index: -1;
  left: -38%;
  right: -38%;
  top: -24%;
  bottom: -34%;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--glow) var(--glow-p), transparent) 20%, transparent);
  pointer-events: none;
}
.llama--naranja { --glow: var(--c-llama-naranja); }
.llama--azul { --glow: var(--c-llama-azul); }
.llama--morada { --glow: var(--c-llama-morada); --glow-p: 35%; }
.llama--verde { --glow: var(--c-llama-verde); --glow-p: 45%; }
.llama--rosa { --glow: var(--c-llama-rosa); --glow-p: 55%; }
.llama--dorada { --glow: var(--c-llama-dorada); --glow-p: 70%; }
.llama--legendaria { --glow: var(--c-llama-legendaria); --glow-p: 85%; }
.llama--sm { --llama-h: 30px; }
.llama--lg { --llama-h: 64px; }
.llama--xl { --llama-h: 120px; }
/* Racha viva pero hoy aún sin jugar: la app pinta la llama en gris al 50 %. */
.llama--hoy-no > img { filter: grayscale(1); opacity: .5; }
.llama--hoy-no::before { display: none; }

/* Contador de racha de la cabecera: llama + número (StreakCounter). */
.streak {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3125rem;
  line-height: 1;
  color: var(--c-text);
  font-variant-numeric: tabular-nums;
}
.streak .llama { --llama-h: 30px; }
/* Versión flotante (sobre una imagen de la web). */
.streak--pill {
  gap: 8px;
  padding: 7px 16px 7px 10px;
  border-radius: var(--r-pill);
  background: var(--c-surface);
  border: 1px solid var(--c-hairline);
  box-shadow: var(--sh-float);
}
.streak__label { font-family: var(--font-text); font-weight: 800; font-size: var(--fs-caption); color: var(--c-text-2); }

/* Cifra con icono (resultado: «+30 monedas», «Día 1 de tu racha»). */
.stat { display: flex; align-items: center; gap: 10px; }
.stat__value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.375rem;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat__label { font-weight: 600; font-size: var(--fs-caption); color: var(--c-text-2); }

/* Moneda dorada (CoinIcon) hecha con degradados. Decorativa: aria-hidden. */
.coin {
  --coin: 28px;
  flex: none;
  position: relative;
  display: inline-block;
  width: var(--coin);
  height: var(--coin);
  border-radius: 50%;
  background: #F2A900;
}
.coin::before {
  content: "";
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  background: var(--g-gold);
}
.coin::after {
  content: "";
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  background: linear-gradient(180deg, #FFD23C, #FFBE12);
  box-shadow: inset 0 0 0 calc(var(--coin) * .035) #F5AE00;
}

/* Destello de cuatro puntas (los «sparkle» de la app). Decorativo. */
.sparkle {
  --s: 14px;
  display: inline-block;
  width: var(--s);
  height: var(--s);
  background: currentColor;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}

/* Tarjeta «Reto diario» de Inicio: el degradado amarillo es premio (premio doble).
   Colores fijos en claro y en oscuro, como en la app. */
.reto-diario {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: clamp(16px, 2vw, 22px);
  border-radius: var(--r-xl);
  background: var(--g-daily);
  box-shadow: var(--sh-reward);
  color: var(--c-reward-ink);
}
.reto-diario__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.625rem;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: #8E1B3A;
}
.reto-diario__text { font-weight: 700; font-size: var(--fs-small); line-height: 1.35; color: var(--c-reward-ink); }
.reto-diario .sparkle { position: absolute; z-index: -1; color: rgba(255, 255, 255, .85); }


/* -----------------------------------------------------------------------------
   12. Siruki Plus: tarjetas de plan como en el paywall
   -------------------------------------------------------------------------- */

.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding-top: 12px;                 /* sitio para la insignia «Ahorra 64 %» */
}
.plan {
  position: relative;
  container-type: inline-size;       /* el precio se ajusta al ancho de su tarjeta */
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding: 12px 14px;
  border: 2px solid var(--c-divider);
  border-radius: var(--r-lg);
  background: var(--c-surface);
  color: var(--c-text);
}
.plan--featured { border-color: var(--c-primary); background: var(--c-cream); }
.plan--wide {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.plan__name { font-weight: 900; font-size: var(--fs-small); line-height: 1.3; }
.plan__price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  font-size: clamp(1.125rem, 14cqi, 1.75rem);
  line-height: 1.15;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.plan--featured .plan__price { font-size: 1.375rem; font-size: clamp(1.25rem, 16cqi, 2.125rem); }
.plan__note { font-weight: 700; font-size: var(--fs-caption); line-height: 1.35; color: var(--c-text-2); }
.plan__note--reward { color: var(--c-secondary-text); }
.plan__was {
  font-weight: 700;
  font-size: var(--fs-caption);
  color: var(--c-text-2);
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}
.plan__end { text-align: right; flex: none; }
.plan__badge {
  position: absolute;
  top: -13px;
  right: 12px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: var(--c-secondary);
  color: var(--c-on-secondary);
  font-weight: 900;
  font-size: .75rem;
  line-height: 1.4;
  white-space: nowrap;
}
.fine {
  font-weight: 600;
  font-size: var(--fs-caption);
  line-height: 1.45;
  color: var(--c-text-2);
}


/* -----------------------------------------------------------------------------
   13. Marco de dispositivo para las capturas (GENÉRICO)
   Apple no permite dibujar ni simular un iPhone (tampoco con CSS: isla dinámica,
   muesca o botones). Por eso el marco es un rectángulo redondeado oscuro, como los
   teléfonos del lienzo del onboarding, sin ningún detalle propio de Apple.
   La captura va SIN barra de estado (recortada 150 px arriba a 1206 de ancho).
   Las capturas son de modo claro: la pantalla es blanca también en modo oscuro.
   <div class="device"><div class="device__screen"><img src="/img/capturas/ob4-600.webp"
     srcset="/img/capturas/ob4-600.webp 600w, /img/capturas/ob4-900.webp 900w"
     sizes="280px" width="600" height="1230" alt="…"></div></div>
   -------------------------------------------------------------------------- */

.device {
  --phone-w: 280px;                                /* ancho de la pantalla */
  --bezel: calc(var(--phone-w) * .036);
  --screen-r: calc(var(--phone-w) * .125);
  position: relative;
  flex: none;
  width: calc(var(--phone-w) + var(--bezel) * 2);
  max-width: 100%;
  padding: var(--bezel);
  border-radius: calc(var(--screen-r) + var(--bezel));
  background: #1C1A1D;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), var(--sh-phone);
}
.device__screen {
  position: relative;
  overflow: hidden;
  border-radius: var(--screen-r);
  background: #FFFFFF;
}
.device__screen > img { display: block; width: 100%; height: auto; }
.device--sm { --phone-w: 196px; --sh-phone: 0 18px 36px -16px rgba(80, 12, 34, .34), 0 8px 16px -10px rgba(80, 12, 34, .16); }
/* Modo oscuro (botón de la luna) */
:root[data-theme="dark"] .device { background: #0E0B10; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), var(--sh-phone); }

/* Recorte de pantalla sin marco (p. ej. las tarjetas de Inicio). */
.shot {
  overflow: hidden;
  border-radius: var(--r-xl);
  border: 1px solid var(--c-hairline);
  box-shadow: var(--sh-float);
  background: #FFFFFF;
}
.shot > img { display: block; width: 100%; height: auto; }

/* Icono de la app con las esquinas de iOS. */
.app-icon {
  flex: none;
  border-radius: 22.37%;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 8px 18px -6px rgba(80, 12, 34, .3);
}


/* -----------------------------------------------------------------------------
   14. Banda de nubes (CloudBackground)
   Dos capas de círculos sobre una base. Se repite cada 390 px sin costuras.
   Por defecto: nube de atrás clara y de delante rosa, como en la app.
   .nubes--to-alt: la de delante es del color de .section--alt, para enlazar secciones.
   -------------------------------------------------------------------------- */

.nubes {
  --front: var(--c-cloud);
  --back: var(--c-cloud-back);
  position: relative;
  height: 120px;
  pointer-events: none;
  background:
    radial-gradient(circle at 0 126px, var(--front) 56px, transparent 56.5px) 0 100% / 390px 120px repeat-x,
    radial-gradient(circle at 97px 122px, var(--front) 58px, transparent 58.5px) 0 100% / 390px 120px repeat-x,
    radial-gradient(circle at 195px 138px, var(--front) 46px, transparent 46.5px) 0 100% / 390px 120px repeat-x,
    radial-gradient(circle at 281px 123px, var(--front) 51px, transparent 51.5px) 0 100% / 390px 120px repeat-x,
    radial-gradient(circle at 390px 126px, var(--front) 56px, transparent 56.5px) 0 100% / 390px 120px repeat-x,
    linear-gradient(var(--front), var(--front)) 0 100% / 100% 30px no-repeat,
    radial-gradient(circle at 0 156px, var(--back) 96px, transparent 96.5px) 0 100% / 390px 120px repeat-x,
    radial-gradient(circle at 160px 126px, var(--back) 62px, transparent 62.5px) 0 100% / 390px 120px repeat-x,
    radial-gradient(circle at 390px 156px, var(--back) 96px, transparent 96.5px) 0 100% / 390px 120px repeat-x;
}
.nubes--to-alt { --front: var(--c-bg-alt); --back: var(--c-cloud); }
.nubes--sm { height: 80px; }


/* -----------------------------------------------------------------------------
   15. Texto largo (privacidad, soporte)
   -------------------------------------------------------------------------- */

.prose {
  max-width: 68ch;
  font-weight: 500;
  line-height: 1.65;
  color: var(--c-text);
}
.prose > * + * { margin-top: 1em; }
.prose h2 {
  margin-top: 2.2em;
  font-weight: 800;
  font-size: clamp(1.5rem, 1.3rem + .8vw, 1.875rem);
  line-height: 1.15;
  letter-spacing: -.01em;
  scroll-margin-top: 96px;
}
.prose h3 { margin-top: 1.6em; font-weight: 700; font-size: 1.25rem; line-height: 1.2; }
.prose :is(h2, h3) + * { margin-top: .6em; }
.prose strong { font-weight: 800; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--c-primary-ink); }


/* =============================================================================
   WEB DE SIRUKI
   Desde aquí, la maquetación de las páginas. Todo lo de arriba es tokens.css.
   Sin estilos en línea (CSP 'self'): cada variación es una clase.
   Un solo sistema de tarjetas: .card (radio 22 y sombra suave); el borde de 2 px,
   solo en opciones y planes, como en la app.
   ========================================================================== */

html { scroll-padding-top: 84px; }
body { overflow-x: clip; }

.icon { width: 24px; height: 24px; flex: none; }
.icon--sm { width: 18px; height: 18px; }
.icon--ok { color: var(--c-success); }
.link-cta .icon { transition: transform .2s var(--ease); }
@media (hover: hover) { .link-cta:hover .icon { transform: translateX(3px); } }

/* Sobre las secciones alternas (rosadas), las casillas de icono van en blanco. */
.section--alt .icon-tile:not(.icon-tile--warm) { background: var(--c-surface); box-shadow: 0 2px 8px rgba(142, 27, 58, .08); }
.section--alt .card .icon-tile:not(.icon-tile--warm) { background: var(--c-cream); box-shadow: none; }
/* Modo oscuro (botón de la luna) */
:root[data-theme="dark"] .section--alt .icon-tile:not(.icon-tile--warm) { box-shadow: none; }

/* Las tarjetas sobre secciones alternas siguen siendo blancas; en oscuro, con filo. */
.section--alt .card:not(.card--cream):not(.card--warm):not(.card--field) { border-color: rgba(142, 27, 58, .06); }
/* Modo oscuro (botón de la luna) */
:root[data-theme="dark"] .section--alt .card:not(.card--cream):not(.card--warm):not(.card--field) { border-color: rgba(255, 255, 255, .06); }

/* -----------------------------------------------------------------------------
   Cabecera
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--c-bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--c-divider) 75%, transparent);
}
.site-header__in {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 68px;
}
.site-header .logo { margin-right: auto; }
.site-header .logo__avatar { width: 40px; height: 40px; }
.site-header .logo__word { font-size: 1.5625rem; }

.nav { display: none; }
.nav__list { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 13px;
  border-radius: var(--r-pill);
  color: var(--c-text);
  font-weight: 800;
  font-size: .9375rem;
  text-decoration: none;
}
.nav__list a[aria-current="page"] { color: var(--c-primary-ink); }
@media (hover: hover) {
  .nav__list a:hover { background: var(--c-cream); color: var(--c-primary-ink); }
}
/* «Prueba un reto»: desde tableta, junto al menú; en escritorio, tras la navegación. */
.site-header__cta { display: none; }
@media (min-width: 600px) { .site-header__cta { display: inline-flex; } }
@media (min-width: 1180px) {
  .nav { display: flex; align-items: center; }
  .menu { display: none; }
  .site-header__cta { margin-left: 8px; }
}

/* Menú en móvil: <details> (funciona sin JS; /js/menu.js lo cierra al elegir). */
.menu { position: relative; }
.menu > summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px 0 14px;
  border-radius: var(--r-pill);
  background: var(--c-cream);
  color: var(--c-primary-ink);
  font-weight: 800;
  font-size: 1rem;
  list-style: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary .icon { width: 20px; height: 20px; }
.menu__close { display: none; }
.menu[open] .menu__open { display: none; }
.menu[open] .menu__close { display: block; }
.menu__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: min(300px, calc(100vw - 32px));
  padding: 8px;
  border-radius: var(--r-card);
  background: var(--c-surface);
  border: 1px solid var(--c-hairline);
  box-shadow: 0 22px 44px -16px rgba(60, 8, 24, .34), 0 4px 12px rgba(0, 0, 0, .06);
}
.menu__panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.menu__panel a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  color: var(--c-text);
  font-weight: 800;
  text-decoration: none;
}
.menu__panel a[aria-current="page"] { color: var(--c-primary-ink); background: var(--c-cream); }
.menu__sep { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--c-divider); }
@media (hover: hover) { .menu__panel a:hover { background: var(--c-cream); } }
/* Modo oscuro (botón de la luna) */
:root[data-theme="dark"] .menu__panel { box-shadow: 0 22px 44px -12px rgba(0, 0, 0, .7); border-color: rgba(255, 255, 255, .08); }

/* -----------------------------------------------------------------------------
   Portada: «¡Hola! Soy Siro»
   -------------------------------------------------------------------------- */
.hero { position: relative; padding-top: clamp(28px, 4.5vw, 64px); }
.hero__grid { position: relative; z-index: 1; display: grid; gap: 36px; align-items: center; }
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: 40px; }
}
.hero__copy { display: grid; gap: 20px; justify-items: start; }
.hero__copy .t-display { max-width: 13ch; }
.hero__copy .t-lead { max-width: 36ch; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin-top: 6px; }
.hero__facts {
  list-style: none;
  margin: 2px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-weight: 800;
  font-size: var(--fs-small);
  color: var(--c-text-2);
}
.hero__facts li { display: inline-flex; align-items: center; gap: 6px; }
.hero__facts .icon { width: 18px; height: 18px; }

/* Escena: el teléfono, el aviso y Siro. Todo en unidades del ancho (cqi),
   así la composición se escala entera sin descolocarse. En móvil el aviso queda
   por encima del teléfono y solo pisa el marco: no tapa «Recuerda esto». */
.hero__visual {
  container-type: inline-size;
  position: relative;
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
  aspect-ratio: 100 / 158;
}
.hero__visual::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: 92cqi;
  aspect-ratio: 1;
  left: 6cqi;
  top: 42cqi;
  border-radius: 50%;
  background: var(--c-cream);
}
.hero__stage { position: absolute; z-index: 1; left: 24cqi; top: 27cqi; }
.hero__device { --phone-w: 60cqi; }
.hero__siro {
  position: absolute;
  z-index: 3;
  left: -1cqi;
  bottom: 0;
  width: 33cqi;
  height: auto;
}
.hero__bubble {
  position: absolute;
  z-index: 3;
  left: 0;
  bottom: 43.5cqi;
  margin: 0;
  padding: 8px 12px;
  font-size: clamp(.875rem, 3.6cqi, 1.125rem);
  white-space: nowrap;
  box-shadow: 0 8px 18px -8px rgba(110, 18, 48, .5);
}
.hero__bubble::after {
  content: "";
  position: absolute;
  left: 22%;
  bottom: -7px;
  border: 8px solid transparent;
  border-bottom: 0;
  border-top-color: var(--c-primary);
}
/* El aviso se ancla por abajo: su borde inferior queda siempre justo sobre el marco. */
.hero__notice { position: absolute; z-index: 2; right: 0; bottom: calc(100% - 30.5cqi); width: 72cqi; }
@media (min-width: 600px) and (max-width: 959px) { .hero__visual { max-width: 440px; } }

@media (min-width: 960px) {
  .hero__visual { aspect-ratio: 100 / 124; }
  .hero__visual::before { width: 90cqi; left: 12cqi; top: 20cqi; }
  .hero__stage { left: 31cqi; top: 16cqi; }
  .hero__device { --phone-w: 50cqi; }
  .hero__siro { left: 3cqi; width: 32cqi; }
  .hero__bubble { left: 0; bottom: 42.5cqi; }
  .hero__notice { width: 55cqi; right: 0; bottom: calc(100% - 19.5cqi); }
}
.hero__nubes { position: relative; z-index: 0; margin-top: -64px; }
@media (min-width: 960px) { .hero__nubes { margin-top: -84px; } }

/* Aviso de Siruki (el texto es el de la app; no imita el aviso del sistema). */
.notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px 13px 12px;
  border-radius: 20px;
  background: var(--c-surface);
  border: 1px solid var(--c-hairline);
  box-shadow: 0 18px 38px -14px rgba(80, 12, 34, .32), 0 3px 10px rgba(0, 0, 0, .05);
  text-align: left;
}
.notice__icon { flex: none; width: 38px; height: 38px; border-radius: 22.37%; box-shadow: 0 0 0 1px rgba(0, 0, 0, .05); }
.notice__body { min-width: 0; display: grid; gap: 1px; }
.notice__app {
  font-weight: 800;
  font-size: .75rem;
  line-height: 1.3;
  letter-spacing: .02em;
  color: var(--c-text-2);
}
.notice__title { font-weight: 900; font-size: clamp(.875rem, 3cqi, 1rem); line-height: 1.25; color: var(--c-text); }
.notice__text { font-weight: 600; font-size: clamp(.8125rem, 2.6cqi, .9375rem); line-height: 1.35; color: var(--c-text-2); }
/* Modo oscuro (botón de la luna) */
:root[data-theme="dark"] .notice:not(.app-light .notice) { border-color: rgba(255, 255, 255, .08); box-shadow: 0 18px 38px -12px rgba(0, 0, 0, .7); }

/* -----------------------------------------------------------------------------
   Así se hace fuerte tu memoria: cada paso con su pieza real de la app
   -------------------------------------------------------------------------- */
.how { padding-top: calc(var(--section-y) * .55); }
.how__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.how-step {
  position: relative;
  display: grid;
  align-content: start;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 8px;
  padding: 0 0 24px;
}
.how-step > :not(.how-step__art) { margin-inline: 20px; }
/* La pieza de la app va arriba, de borde a borde: el mismo fondo blanco y el mismo
   margen superior en las tres, también en oscuro (como las capturas). */
.how-step__art {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 14px;
  margin-bottom: 10px;
  padding: 22px 18px 20px;
  border-radius: calc(var(--r-card) - 1px) calc(var(--r-card) - 1px) 0 0;
  background: #FFFFFF;
  box-shadow: inset 0 -1px 0 #ECE6E9;
  overflow: hidden;
}
.how-step__shot { width: min(100%, 226px); height: auto; }
.how-step__card {
  width: min(100%, 236px);
  height: auto;
  filter: drop-shadow(0 10px 16px rgba(80, 12, 34, .14)) drop-shadow(0 1px 2px rgba(80, 12, 34, .06));
}
.how-step__notice { width: min(100%, 280px); box-shadow: 0 12px 26px -12px rgba(80, 12, 34, .3), 0 2px 6px rgba(0, 0, 0, .05); }
.how-step__notice .notice__title { font-size: .9375rem; }
.how-step__notice .notice__text { font-size: .875rem; }
.how-step__title { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 1.1875rem; line-height: 1.2; }
.how-step__title .num { --num: 32px; }
.how-step__text { color: var(--c-text-2); line-height: 1.45; }
.how-step__chips { list-style: none; margin-top: 6px; padding: 0; gap: 5px; }
.how-step__chips .chip { font-size: .8125rem; padding: 4px 9px; }

/* «¡Guardado!» (la pantalla de después de memorizar): Siro sale corriendo. */
.saved { display: grid; justify-items: center; gap: 6px; text-align: center; color: var(--c-text); }
.saved__siro { --siro: 132px; margin: 0 0 2px; }
.saved__title { font-family: var(--font-display); font-weight: 800; font-size: 1.75rem; line-height: 1.1; letter-spacing: -.01em; }
.saved__text { max-width: 24ch; color: var(--c-text-2); font-size: var(--fs-small); line-height: 1.4; }

/* Tableta: cada paso en una fila, la pieza a la izquierda (mismo fondo y margen superior). */
@media (min-width: 600px) and (max-width: 899px) {
  .how-step {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: 1fr auto auto auto 1fr;
    column-gap: 24px;
    row-gap: 8px;
    align-items: start;
    padding: 0;
  }
  .how-step__art {
    grid-column: 1;
    grid-row: 1 / -1;
    align-self: stretch;
    margin: 0;
    border-radius: calc(var(--r-card) - 1px) 0 0 calc(var(--r-card) - 1px);
    box-shadow: inset -1px 0 0 #ECE6E9;
  }
  .how-step > :not(.how-step__art) { grid-column: 2; margin: 0 24px 0 0; }
  .how-step > .how-step__title { grid-row: 2; }
  .how-step > .how-step__text { grid-row: 3; }
  .how-step__shot, .how-step__card { width: min(100%, 250px); }
  .how-step__art { padding: 26px 18px 24px; }
  .saved__siro { --siro: 150px; }
  .how-step > .how-step__chips { grid-row: 4; }
}
@media (min-width: 900px) {
  .how__steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
  .how-step { justify-items: center; text-align: center; row-gap: 10px; padding-bottom: 30px; }
  .how-step__art { justify-self: stretch; height: 308px; margin-bottom: 8px; padding: 26px 18px 24px; }
  .how-step__shot, .how-step__card { width: min(100%, 250px); }
  .saved__siro { --siro: 150px; }
  .how-step__text { max-width: 30ch; }
  .how-step__chips { justify-content: center; margin-top: 4px; }
  .how-step__chips .chip { font-size: .8125rem; padding: 4px 10px; }
  /* Flecha entre pasos, a media altura de la pieza */
  .how-step:not(:last-child)::after {
    content: "";
    position: absolute;
    z-index: 2;
    top: 137px;
    right: -31px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--c-primary);
    box-shadow: 0 4px 10px rgba(142, 27, 58, .3), 0 0 0 5px var(--c-bg-alt);
  }
  .how-step:not(:last-child)::before {
    content: "";
    position: absolute;
    z-index: 3;
    top: 149px;
    right: -18px;
    width: 9px;
    height: 9px;
    border: solid #FFFFFF;
    border-width: 3px 3px 0 0;
    border-radius: 1px;
    transform: rotate(45deg);
  }
}
@media (min-width: 900px) and (max-width: 1099px) {
  .how-step > :not(.how-step__art) { margin-inline: 10px; }
  .how-step__chips { gap: 4px; }
  .how-step__chips .chip { font-size: .75rem; padding: 3px 8px; }
  .how-step__art { height: 280px; padding-inline: 14px; }
  .how-step__shot, .how-step__card { width: min(100%, 222px); }
  .saved__siro { --siro: 132px; }
  .how-step:not(:last-child)::after { top: 123px; }
  .how-step:not(:last-child)::before { top: 135px; }
}

/* Escalera de esperas */
.ladder {
  display: grid;
  gap: 28px;
  align-items: center;
  margin-top: 28px;
  padding: clamp(20px, 3vw, 36px);
}
.ladder__copy { display: grid; gap: 10px; }
.ladder__copy .t-small { margin-top: 2px; }
.ladder__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(6px, 1.4vw, 14px);
  align-items: end;
  min-height: 190px;
}
.ladder__step { display: grid; justify-items: center; align-content: end; gap: 8px; height: 100%; }
.ladder__step .chip { font-size: clamp(.75rem, .7rem + .3vw, .9375rem); padding: 4px clamp(7px, 1vw, 12px); }
.ladder__bar {
  display: block;
  width: 100%;
  border-radius: 14px 14px 6px 6px;
  background: var(--c-primary);
}
.ladder__lv { font-weight: 800; font-size: clamp(.6875rem, .62rem + .3vw, .8125rem); line-height: 1.2; color: var(--c-text-2); text-align: center; white-space: nowrap; }
.ladder__step--1 .ladder__bar { height: 34px; opacity: .16; }
.ladder__step--2 .ladder__bar { height: 62px; opacity: .3; }
.ladder__step--3 .ladder__bar { height: 92px; opacity: .5; }
.ladder__step--4 .ladder__bar { height: 124px; opacity: .74; }
.ladder__step--5 .ladder__bar { height: 158px; background: var(--g-primary); box-shadow: var(--sh-btn); }
@media (min-width: 900px) {
  .ladder { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; }
}

/* -----------------------------------------------------------------------------
   Haz un reto, aquí mismo
   Con JS lo lleva /js/reto.js; sin JS se recorre con anclas (:target) y se corrige
   con CSS (:valid con el patrón de cada campo). La pantalla es de la app: siempre en
   claro (.app-light) y de alto fijo, para que el marco no cambie entre pantallas.
   -------------------------------------------------------------------------- */
/* Móvil: título, teléfono y notas. Escritorio: título y notas a la izquierda, teléfono a la derecha. */
.prueba__grid { display: grid; gap: 32px; grid-template-areas: "head" "phone" "notes"; }
.prueba__head { grid-area: head; margin-bottom: 0; }
.prueba__phone { grid-area: phone; }
.prueba__notes { grid-area: notes; max-width: 52ch; }
.prueba__phone {
  container-type: inline-size;
  position: relative;
  isolation: isolate;
  display: grid;
  justify-items: center;
  width: 100%;
  max-width: 440px;
  justify-self: center;
}
@media (min-width: 1000px) {
  .prueba__grid {
    grid-template-columns: minmax(0, 1fr) 440px;
    grid-template-areas: "head phone" "notes phone";
    grid-template-rows: 1fr 1fr;
    column-gap: clamp(48px, 6vw, 96px);
    row-gap: 32px;
  }
  .prueba__head { align-self: end; }
  .prueba__notes { align-self: start; }
  /* Círculo crema detrás del teléfono: 500 px, solo 30 px más que la columna por lado,
     siempre dentro del margen de la página (nunca la ensancha). */
  .prueba__phone::before {
    content: "";
    position: absolute;
    z-index: -1;
    left: 50%;
    top: 50%;
    width: 500px;
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: var(--c-cream);
  }
}
.reto-device { --phone-w: min(372px, 100cqi / 1.072 - 2px); }
.reto {
  container: reto / inline-size;
  --c-ko: #D93A40;
  --c-ko-soft: #FCE4E4;
  --c-ko-ink: #A3242A;
  --c-ok-soft: #E6F1D6;
  --c-ok-ink: #3D6513;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  height: clamp(700px, calc(var(--phone-w) * 2.05), 770px);
  background: #FFFFFF;
  text-align: center;
  scroll-margin-top: 92px;
}
.reto__nubes { position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; }
.reto-screen {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px 18px;
  overflow-y: auto;
  scrollbar-width: none;
}
.reto-screen::-webkit-scrollbar { display: none; }
.reto-screen[hidden], .reto [data-static] { display: none; }
.reto-screen > .btn--block { margin-top: auto; }

.reto-top { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; min-height: 44px; flex: none; }
.reto-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--c-field);
  color: var(--c-text);
  cursor: pointer;
  text-decoration: none;
}
.reto-close svg { width: 18px; height: 18px; }
.reto-dots { display: flex; justify-content: center; gap: 8px; list-style: none; margin: 0; padding: 0; grid-column: 2; }
.reto-dots > li { width: 8px; height: 8px; border-radius: 50%; background: var(--c-day-empty); }
.reto-dots > li.is-on { background: var(--c-primary); }

.reto-eyebrow { margin-top: 2px; }
.reto-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.75rem;
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--c-text);
}
.reto-title:focus { outline: none; }
.reto-text { color: var(--c-text-2); font-weight: 600; font-size: .9375rem; line-height: 1.42; padding-inline: 4px; }
.reto-text--main { color: var(--c-text); }
.reto-card {
  padding: 14px;
  border-radius: var(--r-card);
  background: var(--c-surface);
  border: 1px solid var(--c-hairline);
  box-shadow: var(--sh-card);
}
.reto-palabras {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.reto-palabras > li {
  display: grid;
  place-items: center;
  min-height: 52px;
  padding: 4px 8px;
  border-radius: 14px;
  background: var(--c-cream);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3125rem;
  line-height: 1.1;
}
.reto-palabras > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.reto-numero {
  display: grid;
  place-items: center;
  min-height: 76px;
  border-radius: 16px;
  background: var(--c-cream);
  color: var(--c-primary-ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.75rem;
  line-height: 1;
  letter-spacing: 6px;
  padding: 8px 0 2px 6px;
  font-variant-numeric: tabular-nums;
}
.reto-cuenta { display: grid; gap: 6px; padding-inline: 14px; }
.reto-cuenta .bar { --h: 10px; }
.reto-cuenta p { font-size: .875rem; font-weight: 600; color: var(--c-text-2); font-variant-numeric: tabular-nums; }
.reto-siro { display: block; width: auto; height: 112px; margin: auto auto 0; }
.reto-siro--top { height: 100px; margin: 0 auto; flex: none; }

/* Inicio: elegir el tipo de reto */
.reto-hero { --siro: 132px; margin: 8px auto 0; flex: none; }
.reto-tipo { display: grid; gap: 10px; margin: 2px 0 0; padding: 0; border: 0; min-width: 0; text-align: left; }
.reto-tipo .option { cursor: pointer; min-height: 62px; }
.reto-tipo input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.reto-tipo .option:has(input:focus-visible) { outline: 3px solid var(--c-focus); outline-offset: 2px; }
.reto-tipo .icon-tile { font-family: var(--font-display); font-weight: 800; font-size: 1rem; color: var(--c-primary-ink); background: var(--c-field); }
.reto-ritmo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  color: var(--c-text-2);
  font-weight: 700;
  font-size: var(--fs-small);
  cursor: pointer;
}
.reto-ritmo input { width: 20px; height: 20px; accent-color: #8E1B3A; margin: 0; }
/* Sin JS no se elige tipo: el bloque va centrado y el botón, justo debajo (sin hueco). */
.reto:not(.is-live) .reto-screen--intro { justify-content: center; }
.reto:not(.is-live) .reto-screen--intro > .btn--block { margin-top: 10px; }

/* Sumas */
.reto-suma {
  display: grid;
  place-items: center;
  padding: 14px 12px 8px;
  color: var(--c-primary-ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3.25rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.reto-opciones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.reto-opcion {
  min-height: 60px;
  border: 0;
  border-radius: 20px;
  background: var(--c-cream);
  color: var(--c-text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.625rem;
  line-height: 1;
  padding-top: 4px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.reto-opcion:active { transform: scale(.96); }
@media (hover: hover) { .reto-opcion:hover { background: var(--c-cream-hover); } }
.reto-marcador { font-weight: 800; font-size: .9375rem; color: var(--c-success); font-variant-numeric: tabular-nums; }

/* Escribir lo recordado */
.reto-form { display: contents; }
.reto-campos { display: grid; gap: 10px; text-align: left; }
.reto-campo { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: center; }
.reto-campo__n {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--c-cream);
  color: var(--c-primary-ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  padding-top: 2px;
}
.reto-campo input {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid var(--c-divider);
  border-radius: 14px;
  background: var(--c-field);
  color: var(--c-text);
  font-family: var(--font-text);
  font-weight: 600;
  font-size: 1.0625rem;
}
.reto-campo input::placeholder { color: var(--c-text-2); opacity: 1; }
.reto-campo input:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 1px; background: var(--c-surface); }
.reto-link {
  align-self: center;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  background: none;
  color: var(--c-text-2);
  font-family: var(--font-text);
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.reto-link:hover { color: var(--c-primary-ink); }
.reto-form > .btn--block { margin-top: auto; }

/* Resultado (como el del primer reto de la app), compacto para que quepa en el marco */
.reto-screen--res { gap: 10px; }
.reto-res-siro { --siro: 116px; margin: 0 auto; flex: none; }
.reto-res-titulo { font-size: 2.25rem; }
.reto-respuestas-b { display: grid; gap: 6px; }
.reto-respuestas { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.reto-respuesta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 3px 12px 1px 7px;
  border-radius: var(--r-pill);
  background: var(--c-surface);
  border: 1px solid var(--c-divider);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
}
.reto-respuesta svg { width: 20px; height: 20px; margin-top: -2px; }
.reto-respuesta.is-ok svg { color: var(--c-success); }
.reto-respuesta.is-ko svg { color: var(--c-ko); }
.reto-respuestas-t { font-weight: 800; font-size: var(--fs-caption); color: var(--c-text-2); }
.reto-tiles { display: flex; gap: 8px; }
.reto-tile {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 18px;
  background: var(--c-surface);
  border: 1px solid var(--c-hairline);
  box-shadow: var(--sh-card);
  text-align: left;
}
.reto-tile[hidden] { display: none; }
.reto-tile .coin { --coin: 30px; }
.reto-tile .llama { --llama-h: 38px; }
.reto-tile__v { font-family: var(--font-display); font-weight: 800; font-size: 1.3125rem; line-height: 1.05; }
.reto-tile__l { font-size: var(--fs-caption); font-weight: 600; color: var(--c-text-2); line-height: 1.2; }
.reto-nota { display: grid; gap: 4px; padding: 12px 14px; border-radius: 20px; background: var(--c-cream); text-align: left; font-size: .8125rem; font-weight: 600; line-height: 1.4; color: var(--c-text); }
.reto-nota__t { font-weight: 900; font-size: .9375rem; color: var(--c-primary-ink); }
.reto-nota__row { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.reto-nota__row img { width: 20px; height: 22px; flex: none; }
.reto-pie { font-size: var(--fs-caption); color: var(--c-text-2); font-weight: 600; }
.reto-acciones { display: grid; gap: 2px; justify-items: center; margin-top: auto; }
.reto-acciones .btn--block { width: 100%; }
/* Teléfono estrecho (móvil): el resultado se compacta para caber entero, sin desplazarse. */
@container reto (max-width: 345px) {
  .reto-screen--res { gap: 8px; padding-bottom: 14px; }
  .reto-res-siro { --siro: 94px; }
  .reto-res-titulo { font-size: 1.875rem; }
  .reto-screen--res .reto-text { font-size: .875rem; line-height: 1.38; }
  .reto-respuestas { gap: 5px; flex-wrap: nowrap; }
  .reto-respuesta { min-height: 30px; padding: 2px 9px 0 5px; font-size: .9375rem; gap: 4px; }
  .reto-respuesta svg { width: 17px; height: 17px; }
  .reto-tile { padding: 8px 10px; }
  .reto-tile .llama { --llama-h: 32px; }
  .reto-tile .coin { --coin: 26px; }
  .reto-tile__v { font-size: 1.1875rem; }
  .reto-nota { padding: 10px 12px; font-size: .78rem; }
  .reto-nota__t { font-size: .875rem; }
  .reto-pie { font-size: .75rem; line-height: 1.35; }
  .reto-acciones .btn--block { --btn-h: 48px; }
}

/* Sin JavaScript: las pantallas se recorren con :target y el resultado sale del CSS. */
.reto:not(.is-live):has([data-static]:target) .reto-screen--intro { display: none; }
.reto:not(.is-live) [data-static]:target { display: flex; }
.reto-sumafija { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.reto-sumafija .reto-suma { font-size: 2.25rem; padding: 10px 12px 6px; }
label.reto-opcion { position: relative; display: grid; place-items: center; min-height: 52px; }
label.reto-opcion input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
label.reto-opcion:has(input:focus-visible) { outline: 3px solid var(--c-focus); outline-offset: 2px; }
label.reto-opcion:has(input:checked) { background: var(--c-ko-soft); color: var(--c-ko-ink); }
label.reto-opcion--ok:has(input:checked) { background: var(--c-ok-soft); color: var(--c-ok-ink); }
.rs { display: none; }
.reto:not(.is-live):has(#rc1:valid:not(:placeholder-shown)):has(#rc2:valid:not(:placeholder-shown)):has(#rc3:valid:not(:placeholder-shown)) .rs--n3,
.reto:not(.is-live):not(:has(#rc1:valid:not(:placeholder-shown))):not(:has(#rc2:valid:not(:placeholder-shown))):not(:has(#rc3:valid:not(:placeholder-shown))) .rs--n0,
.reto:not(.is-live):has(#rc1:valid:not(:placeholder-shown)):not(:has(#rc2:valid:not(:placeholder-shown))):not(:has(#rc3:valid:not(:placeholder-shown))) .rs--n1,
.reto:not(.is-live):has(#rc2:valid:not(:placeholder-shown)):not(:has(#rc1:valid:not(:placeholder-shown))):not(:has(#rc3:valid:not(:placeholder-shown))) .rs--n1,
.reto:not(.is-live):has(#rc3:valid:not(:placeholder-shown)):not(:has(#rc1:valid:not(:placeholder-shown))):not(:has(#rc2:valid:not(:placeholder-shown))) .rs--n1,
.reto:not(.is-live):has(#rc1:valid:not(:placeholder-shown)):has(#rc2:valid:not(:placeholder-shown)):not(:has(#rc3:valid:not(:placeholder-shown))) .rs--n2,
.reto:not(.is-live):has(#rc1:valid:not(:placeholder-shown)):has(#rc3:valid:not(:placeholder-shown)):not(:has(#rc2:valid:not(:placeholder-shown))) .rs--n2,
.reto:not(.is-live):has(#rc2:valid:not(:placeholder-shown)):has(#rc3:valid:not(:placeholder-shown)):not(:has(#rc1:valid:not(:placeholder-shown))) .rs--n2 { display: var(--d, block); }
.reto:not(.is-live):not(:has(#rc1:valid:not(:placeholder-shown)):has(#rc2:valid:not(:placeholder-shown)):has(#rc3:valid:not(:placeholder-shown))) .rs--fallo { display: grid; gap: 6px; }
.reto-tile.rs { --d: flex; }
div.rs:not(.reto-tile):not(.rs--fallo) { --d: grid; gap: 10px; justify-items: center; }
.reto-respuestas .reto-respuesta { padding-left: 12px; }

@media (prefers-reduced-motion: no-preference) {
  .reto-screen.is-entering { animation: reto-in .32s var(--ease) both; }
  @keyframes reto-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
  .reto-palabras.is-gone, .reto-numero.is-gone { transition: opacity .25s ease; }
}
.is-gone { opacity: 0; }

/* -----------------------------------------------------------------------------
   Un plan hecho para ti (pantallas del onboarding): 4 teléfonos de 240 px.
   Por debajo de 1180 px, tira que se desliza (con su pista).
   -------------------------------------------------------------------------- */
.strip {
  margin-inline: calc(var(--gutter) * -1);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.strip::-webkit-scrollbar { display: none; }
.strip:focus-visible { outline-offset: -3px; border-radius: var(--r-card); }
.strip__list {
  display: flex;
  gap: 22px;
  width: max-content;
  margin: 0;
  padding: 8px var(--gutter) 26px;
  list-style: none;
}
.strip__item { width: 258px; scroll-snap-align: start; }
.strip__item figure { margin: 0; display: grid; gap: 20px; justify-items: center; }
.strip__item .device {
  --phone-w: 240px;
  --sh-phone: 0 20px 36px -18px rgba(80, 12, 34, .36), 0 8px 16px -12px rgba(80, 12, 34, .18);
}
.strip__item figcaption {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  width: 100%;
  font-size: var(--fs-small);
  line-height: 1.4;
  color: var(--c-text-2);
}
.strip__item figcaption .num { --num: 28px; }
.strip__item figcaption strong { display: block; color: var(--c-text); font-weight: 900; font-size: 1.0625rem; line-height: 1.3; }
.strip-hint { margin-top: -6px; text-align: center; color: var(--c-text-2); font-size: var(--fs-caption); font-weight: 700; }
@media (min-width: 1180px) {
  .strip { margin-inline: 0; overflow: visible; }
  .strip__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; width: auto; padding: 8px 0 0; }
  .strip__item { width: auto; }
  .strip-hint { display: none; }
}
/* Modo oscuro (botón de la luna) */
:root[data-theme="dark"] .strip__item .device { --sh-phone: 0 20px 36px -18px rgba(0, 0, 0, .8); }

/* -----------------------------------------------------------------------------
   Listas con casilla de icono (reto de prueba, Reto diario, Entrenar, amigos)
   -------------------------------------------------------------------------- */
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.feature-list > li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; }
.feature-list .t-title { font-size: 1.0625rem; line-height: 1.3; }
.feature-list p + p { margin-top: 2px; color: var(--c-text-2); line-height: 1.5; }

/* -----------------------------------------------------------------------------
   Reto diario
   -------------------------------------------------------------------------- */
.daily__grid { align-items: center; }
.daily__copy .section-head { margin-bottom: 28px; }
/* Círculo detrás de la tarjeta. En una columna mide lo que mide el bloque; en escritorio
   crece hasta 520 px y se apoya en el aire de la sección. */
.daily__visual { position: relative; isolation: isolate; display: grid; place-items: center; padding: 30px 0 22px; }
.daily__visual::before {
  content: "";
  position: absolute;
  z-index: -1;
  height: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--c-cream);
}
@media (min-width: 960px) {
  .daily__visual { padding: 20px 0 8px; }
  .daily__visual::before { height: auto; width: min(100%, 520px); }
}
.daily__card {
  position: relative;
  width: min(100%, 470px);
  height: auto;
  filter: drop-shadow(0 18px 26px rgba(242, 154, 0, .3)) drop-shadow(0 4px 8px rgba(80, 12, 34, .1));
}
.daily__prize { position: absolute; top: 0; left: 50%; transform: translate(-50%, -30%); }
@media (min-width: 960px) {
  .daily__prize { left: auto; right: 0; transform: translateY(-10%); }
}

/* Píldora de premio (amarillo: es recompensa, no acción) */
.prize {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 8px 10px;
  border-radius: var(--r-pill);
  background: var(--g-gold);
  color: var(--c-on-secondary);
  font-weight: 900;
  font-size: var(--fs-small);
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: var(--sh-reward), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.prize .coin { --coin: 22px; }

/* -----------------------------------------------------------------------------
   Entrenar: las filas de la pestaña «Entrenar» de la app (GameCard): casilla del
   color del juego con su icono en blanco, nombre, descripción y botón de jugar.
   -------------------------------------------------------------------------- */
.games-sec__grid { align-items: center; }
.games-sec__siro { --siro: 104px; margin: 0 0 10px; }
@media (min-width: 900px) { .games-sec__siro { --siro: 128px; margin-bottom: 14px; } }
.games-sec__copy .section-head { margin-bottom: 28px; }
.games-sec__app { display: grid; gap: 12px; width: 100%; max-width: 540px; justify-self: center; }
.games { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.game {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px 14px 14px;
}
.game__tile { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; color: #FFFFFF; }
.game__tile svg { width: 26px; height: 26px; }
.game__tile--burdeos { background: var(--c-primary); }
.game__tile--ambar { background: #F2A900; }
.game__tile--verde { background: #8CC63F; }
.game__tile--azul { background: #64B5F6; }
.game__name { font-family: var(--font-text); font-weight: 800; font-size: 1.0625rem; line-height: 1.25; letter-spacing: 0; color: var(--c-text); }
.game__body p { margin-top: 2px; color: var(--c-text-2); font-size: var(--fs-small); line-height: 1.4; }
.game__play { width: 30px; height: 30px; color: var(--c-primary); }
.games-left {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 16px 12px 12px;
}
.games-left__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--c-cream); color: var(--c-primary-ink); }
.games-left__icon .icon { width: 18px; height: 18px; }
.games-left__title { font-weight: 800; font-size: .9375rem; line-height: 1.3; color: var(--c-text); }
.games-left__text { font-weight: 600; font-size: var(--fs-caption); line-height: 1.35; color: var(--c-text-2); }
.games-left__plus {
  padding: 3px 9px;
  border-radius: var(--r-pill);
  background: var(--c-secondary);
  color: var(--c-on-secondary);
  font-weight: 900;
  font-size: .6875rem;
  line-height: 1.4;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.section--alt .card .games-left__icon { background: var(--c-cream); }

/* -----------------------------------------------------------------------------
   Racha y llamas
   -------------------------------------------------------------------------- */
.road { padding: 8px clamp(14px, 2.4vw, 28px); }
.road__list { position: relative; list-style: none; margin: 0; padding: 0; display: grid; }
/* Móvil: camino vertical */
.road__list::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 34px;
  bottom: 34px;
  width: 0;
  border-left: 3px dotted color-mix(in srgb, var(--c-primary-light) 70%, transparent);
}
.road__stop {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
}
.road__stop + .road__stop { border-top: 1px solid var(--c-divider); }
.road__flame { --llama-h: 52px; justify-self: center; }
.road__text { display: grid; gap: 1px; min-width: 0; }
.road__day { font-family: var(--font-display); font-weight: 800; font-size: 1.3125rem; line-height: 1.1; }
.road__name { font-weight: 700; font-size: var(--fs-caption); color: var(--c-text-2); }
.road__prize {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: end;
  padding: 5px 11px 5px 7px;
  border-radius: var(--r-pill);
  background: var(--c-secondary-soft);
  color: var(--c-secondary-text);
  font-weight: 900;
  font-size: var(--fs-caption);
  line-height: 1.25;
  text-align: center;
}
.road__prize .coin { --coin: 18px; }
.road__prize--first, .road__prize--gift { padding-left: 11px; white-space: nowrap; }
.road__prize--first { background: var(--c-cream); color: var(--c-primary-ink); }
.road__foot { padding: 6px 0 16px; text-align: center; font-size: var(--fs-caption); color: var(--c-text-2); }

@media (min-width: 900px) {
  .road { padding: 34px 24px 6px; }
  .road__list { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
  .road__list::before { left: 7%; right: 7%; top: 44px; bottom: auto; height: 0; width: auto; border-left: 0; border-top: 3px dotted color-mix(in srgb, var(--c-primary-light) 70%, transparent); }
  .road__stop { grid-template-columns: minmax(0, 1fr); justify-items: center; align-content: start; text-align: center; gap: 10px; padding: 0; }
  .road__stop + .road__stop { border-top: 0; }
  .road__flame { --llama-h: 76px; }
  .road__text { justify-items: center; margin-top: 4px; }
  .road__day { font-size: 1.5rem; }
  .road__prize { justify-self: center; }
  .road__foot { padding: 26px 0 22px; }
}

.streak-sec__cards { display: grid; gap: 16px; margin-top: 20px; }
@media (min-width: 800px) { .streak-sec__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
.protector, .counts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: start; padding: clamp(18px, 2.4vw, 28px); }
.protector__icon { width: 48px; height: 52px; }
.protector p, .counts p { margin-top: 6px; color: var(--c-text-2); }
.protector .t-h3, .counts .t-h3 { font-size: clamp(1.25rem, 1.15rem + .4vw, 1.5rem); }

/* -----------------------------------------------------------------------------
   Amigos y ranking
   -------------------------------------------------------------------------- */
.social__copy .section-head { margin-bottom: 22px; }
.social__visual { display: grid; justify-items: center; }
/* Siro como mucho a 290 px de caja: la pose mide 250 px de alto (el original, 545). */
.social__siro { --siro: clamp(190px, 10vw + 130px, 290px); position: relative; z-index: 0; margin-bottom: -30px; }
.scopes {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
  margin: 0 0 26px;
  padding: 5px;
  list-style: none;
  border-radius: var(--r-pill);
  background: var(--c-surface);
  border: 1px solid var(--c-hairline);
  box-shadow: var(--sh-float);
  font-weight: 800;
  font-size: var(--fs-caption);
  color: var(--c-text-2);
}
.scopes > li { padding: 7px 12px; border-radius: var(--r-pill); white-space: nowrap; }
.scopes > .scopes__on { background: var(--c-primary); color: #FFFFFF; }
@media (min-width: 400px) { .scopes > li { padding: 8px 14px; } .scopes { font-size: var(--fs-small); } }
/* Modo oscuro (botón de la luna) */
:root[data-theme="dark"] .scopes { border-color: rgba(255, 255, 255, .08); }

/* Premios de la semana: tarjeta cálida (es recompensa) con los dos marcos del ranking. */
.prizes { position: relative; z-index: 1; display: grid; gap: 14px; width: 100%; max-width: 460px; padding: 18px 20px 20px; }
.prizes__head { display: grid; gap: 2px; }
.prizes__head .t-title { font-size: 1.0625rem; }
.prizes__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.prize-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}
.prize-card + .prize-card { padding-top: 12px; border-top: 1px solid color-mix(in srgb, var(--c-secondary-text) 20%, transparent); }
.prize-card p { font-size: var(--fs-small); line-height: 1.4; color: var(--c-text-2); font-weight: 600; }
.prize-card strong { display: block; color: var(--c-text); font-weight: 900; font-size: 1rem; }
.frame {
  --frame-in: 8%;
  --frame-r: 14%;
  position: relative;
  display: grid;
  place-items: center;
  width: 72px;
  aspect-ratio: 1;
}
.frame::before {
  /* Interior de la tarjeta (blanco, como en la app), metido bajo el borde del marco. */
  content: "";
  position: absolute;
  inset: var(--frame-in);
  border-radius: var(--frame-r);
  background: #FFFFFF;
}
.frame--corona { --frame-in: 3.5%; --frame-r: 16%; }
.frame--rey { --frame-in: 8.5%; --frame-r: 10%; }
.frame img { position: absolute; inset: 0; z-index: 1; width: 100%; height: auto; }
.frame__label {
  position: absolute;
  z-index: 2;
  padding: 3px 3px 0;
  border-radius: 6px;
  background: #FFFFFF;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.0625rem;
  line-height: 1;
  color: #8E1B3A;
}
.frame--rey .frame__label { color: #6E1230; }

/* «Y además»: lo que completa la app, en una sola tarjeta */
.also { margin-top: clamp(44px, 5vw, 72px); padding: clamp(20px, 2.6vw, 30px); }
.also__title {
  margin-bottom: 16px;
  font-family: var(--font-text);
  font-weight: 900;
  font-size: var(--fs-eyebrow);
  line-height: 1.3;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-secondary-text);
}
.also__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px 28px; }
.also__list > li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; }
.also__list .t-title { font-size: 1.0625rem; }
.also__list p + p { margin-top: 2px; color: var(--c-text-2); font-size: var(--fs-small); line-height: 1.45; }
@media (min-width: 640px) { .also__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .also__list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* -----------------------------------------------------------------------------
   Siruki Plus
   -------------------------------------------------------------------------- */
.plus__grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) {
  .plus__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 470px); gap: 64px; align-items: start; }
}
.plus__copy .section-head { margin-bottom: 28px; }
.trial { display: grid; gap: 14px; margin-top: 24px; padding: 20px 22px 22px; }
.trial .timeline { padding: 0; background: transparent; }
.trial .timeline__title { font-size: 1rem; }
.trial .timeline__text { font-size: var(--fs-small); line-height: 1.4; }
.trial__more { display: grid; gap: 12px; padding-top: 16px; border-top: 1px solid var(--c-divider); }
.trial__subtitle { font-weight: 900; font-size: 1rem; }
.trial .checks small { font-size: var(--fs-small); }

.compare {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: var(--fs-body);
  background: var(--c-surface);
  border-radius: var(--r-card);
  box-shadow: var(--sh-card);
  border: 1px solid var(--c-hairline);
  overflow: hidden;
}
.compare th, .compare td { padding: 14px 16px; text-align: left; vertical-align: middle; line-height: 1.3; }
.compare thead th { font-weight: 900; font-size: var(--fs-small); color: var(--c-text-2); padding-top: 16px; padding-bottom: 10px; }
.compare thead .compare__plus { color: var(--c-primary-ink); }
.compare tbody th { font-weight: 800; color: var(--c-text); }
.compare tbody td { font-weight: 800; color: var(--c-text-2); }
.compare tbody td.compare__plus { color: var(--c-text); font-weight: 900; }
.compare tbody tr > * { border-top: 1px solid var(--c-divider); }
.compare td small { display: block; margin-top: 1px; font-weight: 700; font-size: var(--fs-caption); color: var(--c-text-2); }
.compare .compare__plus { background: color-mix(in srgb, var(--c-cream) 70%, var(--c-surface)); }
.compare__yes { display: inline-flex; align-items: center; gap: 6px; }
.compare .icon { width: 20px; height: 20px; }
.compare__note { margin-top: 14px; font-size: var(--fs-small); color: var(--c-text-2); }
/* Modo oscuro (botón de la luna) */
:root[data-theme="dark"] .compare .compare__plus { background: color-mix(in srgb, var(--c-cream) 55%, var(--c-surface)); }
/* Móvil: cada fila es una tarjeta con la función arriba y «Gratis | Siruki Plus» debajo.
   Sin filetes: los divisores, con --c-divider. Los roles ARIA conservan la tabla. */
@media (max-width: 599px) {
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; }
  .compare { background: transparent; box-shadow: none; border: 0; border-radius: 0; overflow: visible; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .compare tbody {
    display: grid;
    padding: 4px 14px;
    border-radius: var(--r-card);
    background: var(--c-surface);
    border: 1px solid var(--c-hairline);
    box-shadow: var(--sh-card);
  }
  .compare tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 12px 0 14px;
  }
  .compare tbody tr + tr { border-top: 1px solid var(--c-divider); }
  .compare tbody tr > * { border-top: 0; }
  .compare tbody th { grid-column: 1 / -1; padding: 0 2px 2px; font-size: var(--fs-body); }
  .compare tbody td { padding: 10px 12px; border-radius: 14px; background: var(--c-field); color: var(--c-text); font-size: var(--fs-small); }
  .compare td::before { content: attr(data-label); display: block; margin-bottom: 2px; font-weight: 800; font-size: var(--fs-caption); color: var(--c-text-2); }
  .compare tbody td.compare__plus { background: var(--c-cream); color: var(--c-primary-ink); }
  .compare tbody td.compare__plus small { color: var(--c-primary-ink); }
}

.paywall { display: grid; gap: 18px; padding: clamp(18px, 2.6vw, 28px); }
.paywall__head { display: flex; align-items: center; gap: 12px; }
.paywall__head img { flex: none; width: 78px; height: auto; }
.paywall__head .eyebrow { font-size: .75rem; }
.paywall__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 1.3rem + .8vw, 1.875rem);
  line-height: 1.08;
  letter-spacing: -.015em;
  margin-top: 2px;
}
.paywall .checks small { font-size: var(--fs-caption); }
.paywall .plans { list-style: none; margin: 0; padding: 12px 0 0; }
.paywall .plan--wide { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; row-gap: 6px; }
.plan__until {
  grid-column: 1 / -1;
  padding-top: 8px;
  border-top: 1px solid var(--c-divider);
  font-weight: 700;
  font-size: var(--fs-caption);
  line-height: 1.35;
  color: var(--c-text-2);
}
/* Móvil estrecho: los tres planes en filas (nombre y nota a la izquierda, precio a la
   derecha). En más ancho, la rejilla del paywall de la app. */
@media (max-width: 479px) {
  .paywall .plans { grid-template-columns: minmax(0, 1fr); }
  .paywall .plan:not(.plan--wide) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "name price" "note price";
    align-items: center;
    column-gap: 12px;
    row-gap: 1px;
    padding: 12px 16px;
  }
  .paywall .plan:not(.plan--wide) .plan__name { grid-area: name; }
  .paywall .plan:not(.plan--wide) .plan__note { grid-area: note; }
  .paywall .plan:not(.plan--wide) .plan__price { grid-area: price; }
  .paywall .plan--wide { padding: 12px 16px; }
  .paywall .plan .plan__price { font-size: 1.5rem; }
  /* «Anual · 7 días gratis» y «Pago único · precio de fundador»: la segunda parte, entera
     en su línea, en vez de partirse por cualquier sitio. */
  .paywall .plan__sep { display: none; }
  .paywall .plan__more { display: block; }
  .paywall .plan__more::first-letter { text-transform: uppercase; }
}
.paywall .fine { text-align: left; }
.paywall__fine { display: grid; gap: 8px; padding-top: 4px; }
.paywall__legal { display: flex; justify-content: center; gap: 18px; margin-top: -6px; }
.paywall__legal a { display: inline-flex; align-items: center; min-height: 44px; color: var(--c-text-2); font-weight: 800; font-size: var(--fs-caption); }

/* -----------------------------------------------------------------------------
   Privacidad (resumen en el inicio)
   -------------------------------------------------------------------------- */
.privacy__grid { display: grid; gap: 28px; align-items: start; }
.privacy__copy .section-head { margin-bottom: 18px; }
.privacy__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.privacy__item { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; padding: 18px; }
.privacy__item .t-title { font-size: 1.0625rem; }
.privacy__item p + p { margin-top: 2px; color: var(--c-text-2); font-size: var(--fs-small); line-height: 1.45; }
.privacy__more {
  display: grid;
  justify-items: start;
  gap: 2px;
  color: var(--c-text-2);
  font-size: var(--fs-small);
  font-weight: 700;
}
@media (min-width: 640px) { .privacy__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1000px) {
  .privacy__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 64px; }
  .privacy__copy { position: sticky; top: 104px; }
  .privacy__item { padding: 20px; }
}

/* -----------------------------------------------------------------------------
   Preguntas frecuentes
   -------------------------------------------------------------------------- */
.faq-sec__grid { display: grid; gap: 32px; align-items: start; }
.faq-sec__aside { display: grid; gap: 12px; justify-items: start; }
.faq-sec__aside .siro { margin: 0 0 4px; }
.faq-sec__aside .t-lead { max-width: 34ch; }
@media (min-width: 960px) {
  .faq-sec__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 64px; }
  .faq-sec__aside { position: sticky; top: 104px; }
}
@media (max-width: 959px) { .faq-sec__aside .siro { --siro: 150px; } }
.faq__body p { font-weight: 600; }

/* -----------------------------------------------------------------------------
   Cierre
   -------------------------------------------------------------------------- */
.cta-sec { padding-bottom: calc(var(--section-y) * .8); }
.cta { display: grid; gap: 8px; align-items: center; }
.cta__copy { display: grid; gap: 14px; justify-items: start; }
.cta__copy .t-lead { max-width: 42ch; }
.cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; margin-top: 6px; }
.cta__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: #FFFFFF;
  font-weight: 800;
  text-decoration: none;
}
.panel-brand a.cta__link:hover { color: #FFFFFF; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; }
@media (hover: hover) { .cta__link:hover .icon { transform: translateX(3px); } }
@media (prefers-reduced-motion: no-preference) { .cta__link .icon { transition: transform .2s var(--ease); } }

.store-soon--panel { margin-top: 8px; }
.cta__art { display: grid; place-items: center; }
.cta__art img { width: clamp(150px, 12vw + 60px, 200px); height: auto; }
@media (min-width: 900px) {
  .cta { grid-template-columns: minmax(0, 1fr) auto; gap: 40px; padding-block: 48px; }
  .cta__art { padding-right: 24px; }
}
@media (max-width: 899px) { .cta__art { order: -1; justify-self: start; } .cta__art img { width: 132px; } }

/* -----------------------------------------------------------------------------
   Pie
   -------------------------------------------------------------------------- */
.site-footer { background: var(--c-bg-alt); padding-block: 48px 28px; }
.site-footer__top { display: grid; gap: 28px; }
.site-footer__brand { display: grid; gap: 10px; justify-items: start; max-width: 34ch; }
.site-footer__brand p { color: var(--c-text-2); font-size: var(--fs-small); }
.site-footer__nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
.site-footer__col--wide { grid-column: 1 / -1; }
/* Desde 600 px, tres columnas a su ancho natural: el correo nunca se parte. */
@media (min-width: 600px) {
  .site-footer__nav { grid-template-columns: repeat(3, max-content); justify-content: space-between; column-gap: 32px; }
  .site-footer__col--wide { grid-column: auto; }
}
.site-footer__h { font-weight: 900; font-size: var(--fs-caption); letter-spacing: .08em; text-transform: uppercase; color: var(--c-text-2); margin-bottom: 2px; }
.site-footer__nav ul { list-style: none; margin: 0; padding: 0; }
.site-footer__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--c-text);
  font-weight: 700;
  font-size: var(--fs-small);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.site-footer__nav a:hover { color: var(--c-primary-ink); text-decoration: underline; }
.site-footer__bottom {
  display: grid;
  gap: 6px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--c-divider);
  font-size: var(--fs-caption);
  color: var(--c-text-2);
}
@media (min-width: 760px) {
  .site-footer__bottom { grid-template-columns: auto minmax(0, 1fr); gap: 24px; }
  .site-footer__bottom p:last-child { text-align: right; }
}
@media (min-width: 1000px) {
  .site-footer__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 40px; }
}

/* -----------------------------------------------------------------------------
   Páginas interiores: cabecera común
   -------------------------------------------------------------------------- */
.page-hero { padding-block: clamp(32px, 5vw, 72px) clamp(36px, 5vw, 72px); }
.page-hero__title { margin-top: 4px; }

/* -----------------------------------------------------------------------------
   Soporte
   -------------------------------------------------------------------------- */
/* Una sola imagen de Siro: pequeña junto al «Soporte» en móvil y grande a la derecha en
   tableta y escritorio (no se descarga ninguna que no se vea). */
.sup-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "eye siro" "title title" "lead lead" "mail mail" "tips tips";
  column-gap: 16px;
  row-gap: 18px;
  align-items: center;
}
.sup-hero__eye { grid-area: eye; }
.sup-hero__title { grid-area: title; font-size: clamp(2.375rem, 1.7rem + 2.9vw, 4rem); }
.sup-hero__lead { grid-area: lead; max-width: 46ch; }
.sup-hero__mail { grid-area: mail; }
.sup-hero__tips { grid-area: tips; }
.sup-hero__siro { grid-area: siro; --siro: 104px; margin: 0; }
@media (min-width: 720px) {
  .sup-hero__grid {
    grid-template-areas: "eye siro" "title siro" "lead siro" "mail siro" "tips siro";
    grid-template-rows: auto auto auto auto 1fr;
    column-gap: 32px;
    align-items: start;
  }
  .sup-hero__siro { --siro: 210px; align-self: center; }
}
@media (min-width: 960px) {
  .sup-hero__grid { column-gap: 72px; }
  .sup-hero__siro { --siro: 320px; margin-right: 20px; }
}

/* Tarjeta del correo: la dirección, grande en Baloo burdeos, nunca se parte: su tamaño
   sale del ancho de la propia tarjeta (consulta de contenedor). */
.mail-card {
  container-type: inline-size;
  display: grid;
  gap: 12px;
  justify-items: start;
  width: 100%;
  max-width: 560px;
  margin-top: 4px;
  padding: clamp(18px, 2.6vw, 26px);
}
.mail-card__label { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: var(--fs-small); color: var(--c-text-2); }
.mail-card__label .icon { width: 20px; height: 20px; color: var(--c-primary-ink); }
.mail-card__addr {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1rem, 7.4cqi, 2rem);
  line-height: 1.1;
  letter-spacing: -.012em;
  white-space: nowrap;
  color: var(--c-primary-ink);
  text-decoration: none;
}
.mail-card__addr:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .16em; }
.tips { display: grid; gap: 12px; margin-top: 8px; width: 100%; }
.tips .checks { gap: 10px; }
@media (min-width: 640px) { .tips .checks { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; } }

/* Preguntas con índice: chips en móvil; en escritorio, índice lateral fijo con iconos. */
.help { display: grid; gap: 28px; }
.help__nav .t-h2 { margin-bottom: 16px; }
.topics { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.topic {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px 0 12px;
  border-radius: var(--r-pill);
  background: var(--c-surface);
  color: var(--c-text);
  font-weight: 800;
  font-size: var(--fs-small);
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(142, 27, 58, .08);
}
.topic .icon { width: 20px; height: 20px; color: var(--c-primary-ink); }
.topic__flame { width: auto; height: 21px; flex: none; }
@media (hover: hover) { .topic:hover { background: var(--c-cream); color: var(--c-primary-ink); } }
/* Modo oscuro (botón de la luna) */
:root[data-theme="dark"] .topic { box-shadow: none; border: 1px solid var(--c-divider); }
@media (min-width: 1000px) {
  .help { grid-template-columns: 270px minmax(0, 1fr); gap: 64px; align-items: start; }
  .help__nav { position: sticky; top: 100px; padding: 22px 14px 14px; border-radius: var(--r-card); background: var(--c-surface); box-shadow: var(--sh-card); border: 1px solid var(--c-hairline); }
  .help__nav .t-h2 { margin: 0 8px 10px; font-size: 1.5rem; }
  .topics { display: grid; gap: 2px; }
  .topic { padding: 0 12px; border-radius: 14px; background: transparent; box-shadow: none; border: 0; }
  .help__nav .topic:hover { background: var(--c-cream); }
}

.sup-groups { display: grid; gap: 44px; }
.sup-group { scroll-margin-top: 96px; }
.sup-group__title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.375rem, 1.25rem + .5vw, 1.75rem);
  line-height: 1.15;
}
.sup-group__title .icon-tile img { width: 24px; height: auto; }

.sup-end { padding-block: clamp(48px, 6vw, 88px); }
.sup-end__card {
  display: grid;
  gap: 20px;
  align-items: center;
  padding: clamp(20px, 3vw, 32px);
  border-radius: var(--r-2xl);
}
.sup-end__says { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 16px; }
.sup-end__says > img { width: auto; height: 110px; }
.sup-end__says p { margin-top: 6px; color: var(--c-text-2); }
.sup-end__btn { justify-self: start; }
@media (max-width: 419px) { .sup-end__says { grid-template-columns: minmax(0, 1fr); } .sup-end__says > img { height: 96px; } }
@media (min-width: 800px) {
  .sup-end__card { grid-template-columns: minmax(0, 1fr) auto; gap: 32px; padding-inline: 40px; }
}

/* -----------------------------------------------------------------------------
   Privacidad (texto legal)
   -------------------------------------------------------------------------- */
.legal-hero { background: var(--c-bg-alt); }
/* Una sola imagen de Siro: pequeña junto al «Privacidad» en móvil, grande a la derecha en escritorio. */
.legal-hero__in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "eye siro" "title title" "date date" "lead lead";
  column-gap: 16px;
  row-gap: 14px;
  align-items: center;
}
.legal-hero__eye { grid-area: eye; }
.legal-hero__title { grid-area: title; max-width: 720px; }
.legal-hero__lead { grid-area: lead; max-width: 62ch; }
.legal-hero__date {
  grid-area: date;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 12px;
  border-radius: var(--r-pill);
  background: var(--c-surface);
  color: var(--c-text-2);
  font-weight: 800;
  font-size: var(--fs-caption);
}
.legal-hero__siro { grid-area: siro; --siro: 96px; margin: 0; }
.legal-hero__siro::before { background: var(--c-surface); }
@media (min-width: 900px) {
  .legal-hero__in { grid-template-areas: "eye siro" "title siro" "date siro" "lead siro"; column-gap: 48px; align-items: start; }
  .legal-hero__siro { --siro: 190px; align-self: center; margin: 0 24px 0 0; }
}

.legal { display: grid; gap: 24px; padding-block: clamp(32px, 5vw, 64px) clamp(56px, 7vw, 104px); }
.legal__text { max-width: 70ch; }
.legal__text > h2:first-child { margin-top: 0; }
.legal__text a { overflow-wrap: anywhere; }
.legal__web { margin-top: 2.4em; padding: clamp(20px, 3vw, 30px); }
.legal__web h2 { margin-top: 0; }
.legal__web p + p { margin-top: .8em; }

/* Índice: plegable en móvil; fijo y numerado (01-10) en escritorio. */
.toc-m { border: 1px solid var(--c-hairline); border-radius: var(--r-card); background: var(--c-surface); box-shadow: var(--sh-card); }
.toc-m > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 0 18px;
  border-radius: calc(var(--r-card) - 1px);
  font-weight: 900;
  list-style: none;
  cursor: pointer;
}
.toc-m > summary::-webkit-details-marker { display: none; }
.toc-m > summary::after {
  content: "";
  width: 9px;
  height: 9px;
  border: solid var(--c-primary-ink);
  border-width: 0 3px 3px 0;
  transform: translateY(-3px) rotate(45deg);
}
.toc-m[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.toc-m ol, .toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc-m li, .toc li { counter-increment: toc; }
.toc-m ol { padding: 0 10px 10px; display: grid; gap: 0; }
.toc-m a, .toc a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-weight: 700;
  text-decoration: none;
  color: var(--c-text);
}
.toc-m a { padding: 0 8px; border-radius: 12px; }
.toc-m li a::before, .toc li a::before {
  content: counter(toc, decimal-leading-zero);
  flex: none;
  width: 22px;
  color: var(--c-primary-ink);
  font-weight: 900;
  font-size: var(--fs-caption);
  font-variant-numeric: tabular-nums;
}
@media (hover: hover) { .toc-m a:hover { background: var(--c-cream); } }

.toc { display: none; }
@media (min-width: 1000px) {
  .legal { grid-template-columns: 270px minmax(0, 1fr); gap: 64px; align-items: start; }
  .toc-m { display: none; }
  .toc {
    display: grid;
    gap: 6px;
    position: sticky;
    top: 96px;
    padding: 20px 14px 12px;
    border-radius: var(--r-card);
    background: var(--c-cream);
  }
  .toc__title { margin: 0 8px 4px; font-weight: 900; font-size: var(--fs-caption); letter-spacing: .08em; text-transform: uppercase; color: var(--c-secondary-text); }
  .toc a { padding: 0 8px; border-radius: 12px; font-size: var(--fs-small); color: var(--c-text); }
  .toc a:hover { color: var(--c-primary-ink); background: var(--c-surface); }
  .toc__help {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    margin: 6px 8px 0;
    padding-top: 8px;
    border-top: 1px solid color-mix(in srgb, var(--c-primary) 14%, transparent);
    font-weight: 800;
    font-size: var(--fs-small);
    overflow-wrap: anywhere;
  }
}

/* -----------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */
.page-404 { min-height: 100vh; display: flex; flex-direction: column; }
.nf { flex: 1; display: flex; flex-direction: column; padding-top: clamp(40px, 7vw, 88px); }
/* El bloque se centra en el hueco y las nubes quedan pegadas al pie. */
.nf__in { display: grid; gap: 16px; justify-items: center; text-align: center; max-width: 640px; margin-block: auto; }
.nf__siro { margin-bottom: 4px; }
.nf__in .t-lead { max-width: 44ch; }
.nf__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 24px; margin-top: 8px; }
.nf__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; }
.nf__links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; font-size: var(--fs-small); color: var(--c-text-2); }
.nf .nubes { margin-top: 40px; }
.site-footer--min { padding-block: 0 24px; }
.site-footer--min .site-footer__bottom { margin-top: 0; border-top: 0; padding-top: 4px; }

/* -----------------------------------------------------------------------------
   Botón de la luna: cambia entre modo claro (por defecto) y oscuro (js/tema.js)
   -------------------------------------------------------------------------- */
.tema {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-left: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--c-cream);
  color: var(--c-primary-ink);
  cursor: pointer;
  transition: background-color .2s var(--ease);
}
.tema:hover { background: var(--c-cream-hover); }
.tema:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 2px; }
.tema svg { width: 22px; height: 22px; }
.tema__sol { display: none; }
:root[data-theme="dark"] .tema__luna { display: none; }
:root[data-theme="dark"] .tema__sol { display: block; }
