/* ============================================================
   caudara — landing page
   ============================================================ */

/* ---------- Tipografías auto-hospedadas (sin terceros) ---------- */
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/hanken-grotesk-400.woff2") format("woff2");
}
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/hanken-grotesk-600.woff2") format("woff2");
}
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/sora-600.woff2") format("woff2");
}
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/sora-700.woff2") format("woff2");
}

:root {
  --ink: #0C1116;
  --ink-elevated: #11181F;
  --jade: #00D89C;
  --jade-bright: #1FF0B4;
  --jade-deep: #009E76;
  --muted: #8A97A0;
  --expense: #FF5A5F;
  --paper: #F4F7F6;

  /* Tokens NUEVOS para el modo CLARO (paper). No alteran la marca. */
  --muted-on-light: #51606B;          /* texto secundario sobre paper — 5.9:1 AA */
  --surface-on-light: #FFFFFF;        /* tarjeta sobre paper */
  --hairline-on-light: rgba(12, 17, 22, 0.12);
  --hairline-on-light-strong: rgba(12, 17, 22, 0.22);
  --jade-tint-on-light: rgba(0, 158, 118, 0.10);
  --jade-ink-on-light: #00734F;       /* acento pequeño sobre paper — 5.3:1 AA */

  --maxw: 1120px;
  --reading: 620px;
  --section-pad: clamp(4rem, 10vw, 8rem);
  --radius: 16px;
  --radius-sm: 12px;
  --border-jade: rgba(0, 216, 156, 0.12);
  --border-jade-strong: rgba(0, 216, 156, 0.22);
  --hairline: rgba(138, 151, 160, 0.12);

  /* Escala de espaciado (ritmo 4px) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 2.5rem;
  --space-8: 3rem;

  /* Sombras / elevación */
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.25);
  --shadow-card-hover: 0 18px 44px rgba(0, 0, 0, 0.38);
  --shadow-jade: 0 12px 34px rgba(0, 216, 156, 0.28);
  --shadow-phone: 0 40px 90px rgba(0, 0, 0, 0.55),
    0 8px 24px rgba(0, 0, 0, 0.4);
  /* Sombras para superficies sobre paper (modo claro) */
  --shadow-card-light: 0 1px 2px rgba(12, 17, 22, 0.06);
  --shadow-card-light-hover: 0 20px 48px rgba(12, 17, 22, 0.12);
  --shadow-phone-light: 0 50px 110px rgba(12, 17, 22, 0.28),
    0 12px 30px rgba(12, 17, 22, 0.18);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 160ms;
  --dur-base: 220ms;

  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  margin: 0;
  color: var(--heading-color, var(--paper));
}

p {
  margin: 0;
}

a {
  color: inherit;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

.section {
  padding-block: var(--section-pad);
  position: relative;
}

.reading {
  max-width: var(--reading);
}

.section--centered {
  text-align: center;
}

.section--centered .reading {
  margin-inline: auto;
}

/* ---------- Bandas de dos modos, full-bleed ---------- */
/* Cada banda ocupa el 100% del ancho; el contenido vive en .container.
   Las bandas CHOCAN a tope: sin gradientes de transición entre ellas. */
.band {
  width: 100%;
}

.band--ink {
  background-color: var(--ink);
  color: var(--paper);
  --eyebrow-color: var(--jade);
  --heading-color: var(--paper);
  --body-color: var(--muted);
}

.band--paper {
  background-color: var(--paper);
  color: var(--ink);
  --eyebrow-color: var(--jade-ink-on-light);
  --heading-color: var(--ink);
  --body-color: var(--muted-on-light);
}

/* La banda feature es oscura con fuerte presencia jade (clímax de acento). */
.band--feature {
  background-color: var(--ink);
  color: var(--paper);
  --eyebrow-color: var(--jade-bright);
  --heading-color: var(--paper);
  --body-color: var(--muted);
}

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

/* ---------- Typography tokens ---------- */
/* Los colores se heredan de la banda (--eyebrow-color, --heading-color, --body-color)
   con fallbacks al esquema oscuro por defecto. */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--eyebrow-color, var(--jade));
  margin: 0 0 var(--space-4);
}

.eyebrow--spaced {
  margin-top: var(--space-7);
}

.lead {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--body-color, var(--muted));
  text-wrap: pretty;
}

.section__head {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section__head--start {
  text-align: left;
  max-width: 18ch;
}

.section__head h2,
.section--centered h2 {
  font-weight: 700;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -1.5px;
  text-wrap: balance;
}

.reading h2 {
  font-weight: 700;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -1.5px;
  text-wrap: balance;
  margin-bottom: var(--space-5);
}

/* Mejora la medida de lectura en bloques largos */
.reading .lead {
  max-width: 60ch;
}

.section--centered .reading .lead {
  margin-inline: auto;
}

/* ---------- Layout editorial: Qué es (dos columnas) ---------- */
.editorial-split {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}

.editorial-split__head h2 {
  font-weight: 700;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -1.5px;
  text-wrap: balance;
}

.editorial-split__body .lead {
  max-width: 52ch;
}

@media (min-width: 900px) {
  .editorial-split {
    grid-template-columns: 5fr 6fr;
    align-items: start;
    gap: clamp(2.5rem, 6vw, 5rem);
  }

  .editorial-split__head {
    position: sticky;
    top: 2rem;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  border: none;
  border-radius: 999px;
  padding: 0.9rem 1.85rem;
  cursor: pointer;
  transition: transform var(--dur-base) var(--ease-out),
    background-color var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
}

.btn--primary {
  background-color: var(--jade);
  color: var(--ink);
  box-shadow: 0 6px 18px rgba(0, 216, 156, 0.18);
}

.btn--primary:hover {
  background-color: var(--jade-bright);
  transform: translateY(-2px);
  box-shadow: var(--shadow-jade);
}

.btn--primary:active {
  transform: translateY(0);
  background-color: var(--jade-deep);
  box-shadow: 0 4px 12px rgba(0, 216, 156, 0.2);
}

/* Focus visibility — color por banda (claro/oscuro) para contraste AA. */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--focus-ring, var(--jade-bright));
  outline-offset: 3px;
  border-radius: 8px;
}

.band--ink,
.band--feature {
  --focus-ring: var(--jade-bright);
}

.band--paper {
  --focus-ring: var(--jade-ink-on-light);
}

/* ============================================================
   1. Hero
   ============================================================ */
.hero {
  position: relative;
  padding-block: clamp(4.5rem, 13vw, 8.5rem);
  overflow: hidden;
}

/* Glow jade escultural, descentrado hacia la derecha (aire asimétrico). */
.hero__glow {
  position: absolute;
  top: -10%;
  right: -12%;
  left: auto;
  width: min(820px, 95vw);
  height: min(820px, 95vw);
  transform: none;
  background: radial-gradient(
    ellipse 60% 80% at 70% 35%,
    rgba(31, 240, 180, 0.22) 0%,
    rgba(31, 240, 180, 0.07) 38%,
    transparent 66%
  );
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
  animation: glowPulse 9s ease-in-out infinite;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

/* Retícula: deja aire a la derecha en desktop. */
@media (min-width: 720px) {
  .hero__inner {
    max-width: 60%;
  }
}

.hero__lockup {
  width: clamp(208px, 40vw, 320px);
  height: auto;
  margin-bottom: clamp(2rem, 6vw, 3.5rem);
}

.hero__lede {
  margin-bottom: var(--space-6);
}

.hero__title {
  font-weight: 700;
  font-size: clamp(3rem, 9vw, 6.5rem);
  letter-spacing: -3px;
  line-height: 1;
  text-wrap: balance;
}

.hero__subcopy {
  max-width: 42ch;
  font-size: clamp(1.125rem, 1.6vw, 1.25rem);
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: clamp(2rem, 5vw, 2.75rem);
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4) var(--space-5);
}

.hero__note {
  font-size: 0.875rem;
  letter-spacing: 0.2px;
  color: var(--muted);
  margin: 0;
}

/* ============================================================
   3. Funciones (lista editorial numerada 01–04)
   ============================================================ */
.features {
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--hairline);
}

.feature {
  position: relative;
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: start;
  column-gap: clamp(1rem, 3vw, 2rem);
  row-gap: var(--space-3);
  padding-block: clamp(1.75rem, 4vw, 2.75rem);
  border-bottom: 1px solid var(--hairline);
  transition: background-color var(--dur-base) var(--ease-out);
}

.feature:hover {
  background-color: rgba(0, 216, 156, 0.04);
}

/* Numeral editorial: índice, no métrica. Contorno sutil en jade. */
.feature__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 0.9;
  letter-spacing: -1.5px;
  /* Fallback: si no hay soporte de text-stroke, el numeral se ve en jade. */
  color: var(--jade);
  transition: color var(--dur-base) var(--ease-out);
}

/* Contorno sutil solo donde el navegador lo soporta. */
@supports (-webkit-text-stroke: 1px black) {
  .feature__num {
    color: transparent;
    -webkit-text-stroke: 1.2px var(--jade-deep);
  }
}

/* Al pasar el cursor (y en la función destacada) el numeral se rellena. */
.feature:hover .feature__num,
.feature--lead .feature__num {
  color: var(--jade);
  -webkit-text-stroke: 0 transparent;
}

.feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background-color: rgba(0, 216, 156, 0.08);
  border: 1px solid var(--border-jade);
  color: var(--jade);
  transition: background-color var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out);
}

.feature:hover .feature__icon {
  background-color: rgba(0, 216, 156, 0.13);
  border-color: var(--border-jade-strong);
}

.feature__icon svg {
  width: 23px;
  height: 23px;
}

.feature__text h3 {
  font-weight: 600;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  letter-spacing: -0.4px;
  line-height: 1.2;
  margin-bottom: var(--space-2);
}

.feature__text p {
  color: var(--body-color, var(--muted));
  font-size: 1.0625rem;
  line-height: 1.55;
  max-width: 56ch;
}

/* Primera función destacada: tipografía y aire mayores. */
.feature--lead .feature__text h3 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: -0.8px;
}

.feature--lead .feature__text p {
  font-size: 1.1875rem;
}

@media (min-width: 720px) {
  .feature {
    grid-template-columns: minmax(3.5rem, auto) auto minmax(0, 1fr);
    column-gap: clamp(1.5rem, 4vw, 3rem);
  }
}

/* ============================================================
   4. Vista del producto (iPhone mockup en CSS)
   ============================================================ */
/* La banda recorta el mockup que sangra fuera del borde. */
.section--showcase {
  overflow: hidden;
}

.showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: center;
}

.showcase__text {
  max-width: 34ch;
}

.showcase__text .lead {
  margin-top: var(--space-4);
  max-width: 40ch;
}

@media (min-width: 880px) {
  .showcase {
    grid-template-columns: 1fr minmax(300px, 0.9fr);
    gap: clamp(2rem, 5vw, 4.5rem);
  }
}

.phone-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  margin-top: var(--space-4);
}

/* En desktop el mockup sangra fuera del borde derecho de la banda
   (la banda lo recorta con overflow:hidden; sin overflow horizontal). */
@media (min-width: 880px) {
  .phone-wrap {
    justify-content: flex-end;
    margin-top: 0;
    margin-bottom: -3.5rem;
  }

  .phone-wrap .phone {
    transform: translateX(clamp(0px, 3vw, 2.5rem)) rotate(2deg);
  }
}

.phone-wrap__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 540px;
  height: 540px;
  max-width: 120vw;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle,
    rgba(0, 158, 118, 0.20) 0%,
    rgba(0, 158, 118, 0.06) 42%,
    transparent 70%
  );
  filter: blur(74px);
  pointer-events: none;
  z-index: 0;
}

.phone {
  position: relative;
  z-index: 1;
  width: clamp(280px, 34vw, 320px);
  aspect-ratio: 286 / 600;
  background-color: #05080b;
  border: 11px solid #161d25;
  border-radius: 48px;
  padding: 12px;
  box-shadow: var(--shadow-phone-light),
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.05),
    inset 0 0 0 13px #0a0e13;
}

/* Reflejo sutil en el borde del chasis */
.phone::before {
  content: "";
  position: absolute;
  inset: -11px;
  border-radius: 48px;
  background: linear-gradient(
    150deg,
    rgba(255, 255, 255, 0.08),
    transparent 35%,
    transparent 70%,
    rgba(255, 255, 255, 0.04)
  );
  pointer-events: none;
  z-index: 3;
}

.phone__notch {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 24px;
  background-color: #05080b;
  border-radius: 999px;
  z-index: 4;
}

.phone__screen {
  position: relative;
  height: 100%;
  background-color: var(--ink);
  border-radius: 36px;
  padding: 2.75rem 0.9rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  overflow: hidden;
}

.ph-card {
  background-color: var(--ink-elevated);
  border: 1px solid var(--border-jade);
  border-radius: 14px;
  padding: 0.8rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.ph-card--primary {
  background: linear-gradient(
    158deg,
    rgba(0, 216, 156, 0.14),
    rgba(17, 24, 31, 0.92)
  );
  border-color: var(--border-jade-strong);
  box-shadow: 0 4px 18px rgba(0, 216, 156, 0.1);
}

.ph-row {
  display: flex;
  gap: 0.7rem;
}

.ph-card--half {
  flex: 1;
}

.ph-label {
  font-size: 0.7rem;
  letter-spacing: 0.4px;
  color: var(--muted);
}

.ph-label--in {
  color: var(--jade);
}

.ph-label--out {
  color: var(--expense);
}

.ph-bar {
  height: 10px;
  border-radius: 999px;
  background-color: rgba(138, 151, 160, 0.25);
}

.ph-bar--lg {
  width: 78%;
  height: 16px;
  background-color: rgba(0, 216, 156, 0.5);
}

.ph-bar--md {
  width: 60%;
  height: 13px;
}

.ph-bar--in {
  width: 70%;
  background-color: rgba(0, 216, 156, 0.45);
}

.ph-bar--out {
  width: 55%;
  background-color: rgba(255, 90, 95, 0.45);
}

.ph-line {
  height: 8px;
  border-radius: 999px;
  background-color: rgba(138, 151, 160, 0.18);
  width: 100%;
}

.ph-line--short {
  width: 65%;
}

/* ============================================================
   5. Próximamente
   ============================================================ */
.soon {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--hairline);
}

.soon__item {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: var(--space-4);
  padding-block: clamp(1.75rem, 4vw, 2.75rem);
  border-bottom: 1px solid var(--hairline);
  transition: background-color var(--dur-base) var(--ease-out);
}

.soon__item:hover {
  background-color: rgba(0, 216, 156, 0.04);
}

@media (min-width: 720px) {
  .soon__item {
    grid-template-columns: minmax(8rem, auto) 1fr;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
  }
}

.soon__item h3 {
  font-weight: 600;
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin: 0 0 var(--space-2);
}

.soon__item p {
  color: var(--body-color, var(--muted));
  font-size: 1.0625rem;
  line-height: 1.55;
  max-width: 56ch;
}

.tag {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--jade);
  background-color: rgba(0, 216, 156, 0.1);
  border: 1px solid var(--border-jade);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
}

.soon__closing {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--hairline);
  color: var(--muted);
  font-size: 1rem;
}

/* ============================================================
   6. CTA final
   ============================================================ */
.cta {
  position: relative;
  overflow: hidden;
}

/* Glow jade fuerte — clímax de acento. */
.cta__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(960px, 110vw);
  height: min(720px, 90vw);
  transform: translate(-50%, -50%);
  background: radial-gradient(
    ellipse 60% 60% at 50% 50%,
    rgba(31, 240, 180, 0.30) 0%,
    rgba(31, 240, 180, 0.09) 40%,
    transparent 70%
  );
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
}

.cta__inner {
  position: relative;
  z-index: 1;
  text-align: left;
  max-width: 760px;
}

.cta__inner h2 {
  font-weight: 700;
  font-size: clamp(2.25rem, 5.5vw, 4rem);
  line-height: 1.02;
  letter-spacing: -2px;
  text-wrap: balance;
  margin-bottom: var(--space-4);
}

.cta__inner .lead {
  max-width: 48ch;
  margin-bottom: var(--space-7);
}

.signup {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-start;
  max-width: 520px;
}

.signup__input {
  flex: 1 1 240px;
  min-width: 0;
  min-height: 48px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--paper);
  background-color: var(--ink);
  border: 1px solid rgba(138, 151, 160, 0.32);
  border-radius: 999px;
  padding: 0.9rem 1.35rem;
  transition: border-color var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
}

.signup__input::placeholder {
  color: var(--muted);
}

.signup__input:hover {
  border-color: rgba(138, 151, 160, 0.5);
}

.signup__input:focus {
  border-color: var(--jade);
  box-shadow: 0 0 0 3px rgba(0, 216, 156, 0.15);
}

.signup .btn {
  flex: 0 0 auto;
}

.cta__note {
  margin-top: var(--space-4);
  font-size: 0.875rem;
  color: var(--muted);
}

/* ============================================================
   7. Footer
   ============================================================ */
.footer {
  border-top: 1px solid var(--hairline);
  padding-block: clamp(2.75rem, 5vw, 4rem);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  align-items: center;
  text-align: center;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer__wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--paper);
  letter-spacing: -0.5px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  justify-content: center;
}

.footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 0.35rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color var(--dur-fast) var(--ease-out);
}

.footer__links a:hover {
  color: var(--paper);
}

.footer__legal,
.footer__soon {
  font-size: 0.875rem;
  color: var(--muted);
}

.footer__soon {
  color: var(--jade);
}

@media (min-width: 720px) {
  .footer__inner {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    text-align: left;
  }
}

/* ============================================================
   Micro-animaciones (page-load escalonado)
   ============================================================ */
.anim {
  opacity: 0;
  transform: translateY(14px);
  animation: fadeUp 700ms var(--ease-out) both;
}

.hero__lockup {
  animation-delay: 60ms;
}
.hero__title {
  animation-delay: 160ms;
}
.hero__subcopy {
  animation-delay: 260ms;
}
.btn--primary.anim {
  animation-delay: 360ms;
}
.hero__note {
  animation-delay: 440ms;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glowPulse {
  0%,
  100% {
    opacity: 0.72;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

/* ============================================================
   Revelados sutiles al hacer scroll (solo CSS, sin JS)
   ============================================================ */
/* Por defecto el contenido está SIEMPRE visible. El revelado solo se
   activa si el navegador soporta animation-timeline: view() Y el usuario
   no pidió reducir movimiento. Nunca queda opacity:0 permanente. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal {
      animation: revealUp linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 32%;
    }
  }
}

@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .anim,
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   Páginas internas (header + legal + contacto)
   ============================================================ */
.site-header {
  padding-block: clamp(1.25rem, 4vw, 2rem);
  border-bottom: 1px solid var(--hairline);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header__home {
  display: inline-flex;
  align-items: center;
}

.site-header__lockup {
  width: clamp(150px, 30vw, 190px);
  height: auto;
  display: block;
}

.site-header__back {
  font-size: 0.9375rem;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}

.site-header__back:hover {
  color: var(--paper);
}

/* Encabezado de página interna */
.page-head {
  padding-top: clamp(2.5rem, 6vw, 4rem);
  padding-bottom: clamp(1rem, 3vw, 1.5rem);
}

.page-head h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -1.5px;
  text-wrap: balance;
  color: var(--heading-color, var(--ink));
}

.page-head .updated {
  margin-top: var(--space-3);
  font-size: 0.875rem;
  color: var(--body-color, var(--muted));
}

/* Contenido legal: prosa larga, óptima sobre paper */
.legal {
  max-width: 72ch;
}

.legal__intro {
  font-size: 1.125rem;
  color: var(--body-color, var(--muted-on-light));
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.legal h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.6vw, 1.8rem);
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
  color: var(--heading-color, var(--ink));
}

.legal h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  margin-top: var(--space-6);
  margin-bottom: var(--space-2);
  color: var(--heading-color, var(--ink));
}

.legal p,
.legal li {
  color: var(--body-color, var(--muted-on-light));
  font-size: 1.0625rem;
  line-height: 1.7;
}

.legal p {
  margin-bottom: var(--space-4);
}

.legal ul {
  list-style: disc;
  padding-left: 1.4rem;
  margin-bottom: var(--space-4);
  display: grid;
  gap: var(--space-2);
}

.legal a {
  color: var(--jade-ink-on-light);
  text-underline-offset: 2px;
}

.legal strong {
  color: var(--heading-color, var(--ink));
  font-weight: 600;
}

/* Página de contacto */
.contact {
  max-width: 60ch;
}

.contact .lead {
  margin-top: var(--space-4);
}

.contact__email {
  display: inline-block;
  margin-top: var(--space-6);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 3vw, 1.9rem);
  letter-spacing: -0.5px;
  color: var(--jade-ink-on-light);
  text-decoration: none;
  border-bottom: 2px solid currentColor;
  padding-bottom: 2px;
  transition: color var(--dur-fast) var(--ease-out);
}

.contact__email:hover {
  color: var(--jade-deep);
}

/* ============================================================
   Stats strip
   ============================================================ */
.stats-strip {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding-block: clamp(1.25rem, 3vw, 1.75rem);
}

.stats-strip__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.25rem, 5vw, 3.5rem);
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.stat-item__val {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  color: var(--jade);
  letter-spacing: -1px;
  line-height: 1;
}

.stat-item__label {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.stat-div {
  width: 1px;
  height: 2.75rem;
  background: var(--hairline);
  flex-shrink: 0;
}

/* ============================================================
   Dot grid — textura sutil en secciones ink
   ============================================================ */
.band--dotted {
  position: relative;
}

.band--dotted::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0, 216, 156, 0.055) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

.band--dotted > .container {
  position: relative;
  z-index: 1;
}

/* ============================================================
   Phone screen — datos ficticios animados (loop continuo)
   Ritmo coordinado:
     live dot       → 2.4s  pulso continuo
     balance reel   → 10s   flip entre dos saldos
     sparkline bars → 7s    ola de crecimiento + pausa
     progress bars  → 6s    llenado → drenaje → pausa
     tx highlight   → 9s   flash verde secuencial (offset 3s)
   ============================================================ */

/* --- Statusbar --- */
.ph-statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0.25rem;
  margin-bottom: 0.4rem;
}

.ph-time {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.68rem;
  color: var(--paper);
  letter-spacing: -0.2px;
}

.ph-live { display: flex; align-items: center; }

.ph-live__dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--jade);
  box-shadow: 0 0 6px var(--jade);
  animation: livePulse 2.4s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px var(--jade); }
  50%       { opacity: 0.2; box-shadow: none; }
}

/* --- Balance slot machine --- */
.ph-balance-wrap {
  overflow: hidden;
  height: 1.45rem;
  margin: 0.28rem 0 0.2rem;
}

.ph-balance-reel {
  animation: balanceReel 10s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

/* Reel sube: muestra saldo-1 (4s) → flip (0.6s) → saldo-2 (4s) → flip (0.6s) → repite */
@keyframes balanceReel {
  0%, 38%  { transform: translateY(0); }
  45%, 88% { transform: translateY(-1.45rem); }
  95%, 100%{ transform: translateY(0); }
}

.ph-balance__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--paper);
  letter-spacing: -0.8px;
  line-height: 1.45rem;
}

.ph-balance__dec {
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(244, 247, 246, 0.42);
  letter-spacing: -0.2px;
}

.ph-trend {
  font-size: 0.63rem;
  color: var(--jade);
  letter-spacing: 0.1px;
}

/* --- Sparkline SVG — ola de barras que crece, pausa y repite --- */
.ph-sparkline {
  width: 100%;
  height: auto;
  margin-top: 0.55rem;
  display: block;
}

.ph-sb {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: sparkWave 7s var(--ease-out) infinite;
}

/* Ola de izquierda a derecha (0.12s stagger por barra) */
.ph-sb--1 { animation-delay: 0.00s; fill: rgba(0,216,156,0.22); }
.ph-sb--2 { animation-delay: 0.12s; fill: rgba(0,216,156,0.35); }
.ph-sb--3 { animation-delay: 0.24s; fill: rgba(0,216,156,0.20); }
.ph-sb--4 { animation-delay: 0.36s; fill: rgba(0,216,156,0.50); }
.ph-sb--5 { animation-delay: 0.48s; fill: rgba(0,216,156,0.30); }
.ph-sb--6 { animation-delay: 0.60s; fill: rgba(0,216,156,0.60); }
.ph-sb--7 { animation-delay: 0.72s; fill: rgba(0,216,156,0.40); }
.ph-sb--8 { animation-delay: 0.84s; fill: rgba(0,216,156,0.28); }

/* Crecer en 1.2s → mantener 3.5s → encoger en 1s → pausa → repite */
@keyframes sparkWave {
  0%         { transform: scaleY(0); opacity: 0; }
  17%        { transform: scaleY(1); opacity: 1; }
  66%        { transform: scaleY(1); opacity: 1; }
  80%        { transform: scaleY(0); opacity: 0; }
  100%       { transform: scaleY(0); opacity: 0; }
}

/* --- Montos en half-cards --- */
.ph-amt {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: -0.5px;
  margin: 0.2rem 0 0.3rem;
  line-height: 1;
}

.ph-amt--in  { color: var(--jade); }
.ph-amt--out { color: var(--expense); }

/* --- Progress bars — llenado → hold → drenaje → pausa (loop 6s) --- */
.ph-prog {
  height: 3px;
  background: rgba(138, 151, 160, 0.15);
  border-radius: 999px;
  overflow: hidden;
}

.ph-prog__fill {
  height: 100%;
  border-radius: 999px;
  transform-origin: left center;
  animation: progLoop 6s var(--ease-out) infinite;
}

.ph-prog__fill--in {
  width: 72%;
  background: linear-gradient(90deg, var(--jade-deep), var(--jade));
  animation-delay: 0.3s;
}

.ph-prog__fill--out {
  width: 36%;
  background: linear-gradient(90deg, #b53337, var(--expense));
  animation-delay: 0.6s;
}

/* fill(1.5s) → hold(2.5s) → drain(0.8s) → pause(1.2s) */
@keyframes progLoop {
  0%         { transform: scaleX(0); }
  25%        { transform: scaleX(1); }
  67%        { transform: scaleX(1); }
  80%        { transform: scaleX(0); }
  100%       { transform: scaleX(0); }
}

/* --- Card de movimientos --- */
.ph-card--txs { flex: 1; min-height: 0; }

/* Rows de transacciones: siempre visibles, flash verde secuencial cada 9s */
.ph-tx {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0;
  border-top: 1px solid rgba(138, 151, 160, 0.1);
  border-radius: 4px;
  animation: txPulse 9s ease-in-out infinite;
}

.ph-tx--a { animation-delay: 0s;  }
.ph-tx--b { animation-delay: 3s;  }
.ph-tx--c { animation-delay: 6s;  }

/* Flash verde suave — simula "nuevo movimiento procesado" */
@keyframes txPulse {
  0%, 8%   { background: rgba(0, 216, 156, 0.12); }
  18%, 100%{ background: transparent; }
}

.ph-tx__dot {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.ph-tx__dot--in  { background: var(--jade); }
.ph-tx__dot--out { background: var(--expense); opacity: 0.75; }

.ph-tx__name {
  flex: 1;
  font-size: 0.64rem;
  color: var(--paper);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ph-tx__amt {
  font-family: var(--font-display);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: -0.2px;
  flex-shrink: 0;
}

.ph-tx__amt--in  { color: var(--jade); }
.ph-tx__amt--out { color: var(--expense); opacity: 0.85; }
