/* Movut — web (movut.app, legal.movut.app, ayuda.movut.app). Los colores son los de la app (guía de marca v1):
   carbón de fondo, piedra para el texto y las piezas que destacan, ascua solo para estado y detalles. */

@font-face { font-family: "Hanken Grotesk"; src: url("/assets/fonts/HankenGrotesk-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("/assets/fonts/HankenGrotesk-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("/assets/fonts/HankenGrotesk-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  --bg: #0D0C0B;
  --surface: #171614;
  --surface-2: #1F1D1B;
  --line: rgba(232, 228, 220, 0.09);
  --text: #E8E4DC;
  --text-2: rgba(232, 228, 220, 0.66);
  --text-3: rgba(232, 228, 220, 0.44);
  --stone: #E8E4DC;
  --ink: #1C1B19;
  --ember: #E8894A;
  --radius: 28px;
  --max: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* El brillo de ascua de la app, arriba a la derecha, detrás de todo. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(120% 55% at 88% -8%, rgba(232, 137, 74, 0.20), rgba(232, 137, 74, 0) 60%);
}

a { color: var(--text); text-decoration-color: rgba(232, 228, 220, 0.35); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ember); }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Cabecera */
.top { padding: 22px 0; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 20px; letter-spacing: -0.02em; }
.brand img { width: 28px; height: 28px; }
.nav { display: flex; align-items: center; gap: 18px; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; color: var(--text-2); }
.nav a:hover { color: var(--text); }
.lang { border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-weight: 600; letter-spacing: 0.04em; }
.nav-cta { background: var(--stone); color: var(--ink) !important; border-radius: 999px; padding: 8px 16px; font-weight: 600; }

/* Héroe */
.hero { padding: 56px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.kicker { color: var(--ember); font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 18px; }
h1 { font-size: clamp(42px, 7vw, 76px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 600; margin: 0 0 22px; }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--text-2); max-width: 30em; margin: 0 0 30px; }
/* Teléfono: la captura de la app con las esquinas del iPhone. */
.phone { width: min(320px, 78vw); margin: 0 auto; border-radius: 46px; padding: 9px; background: #000; box-shadow: 0 0 0 1px rgba(232, 228, 220, 0.10), 0 30px 80px rgba(0, 0, 0, 0.55); }
.phone img { width: 100%; height: auto; border-radius: 38px; aspect-ratio: 1206 / 2622; object-fit: cover; }

/* Secciones */
section { padding: 72px 0; }
h2 { font-size: clamp(32px, 4.6vw, 50px); line-height: 1.06; letter-spacing: -0.03em; font-weight: 600; margin: 0 0 18px; }
h3 { font-size: 24px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 600; margin: 0 0 12px; }
.muted { color: var(--text-2); }
.statement { max-width: 760px; }
.statement p { font-size: clamp(18px, 2.2vw, 21px); color: var(--text-2); margin: 0; }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 40px 0; }
.feature.flip .feature-text { order: 2; }
.feature-text p { color: var(--text-2); font-size: 18px; margin: 0; max-width: 28em; }
.feature .phone { width: min(290px, 74vw); }
/* Funciones sobre piedra: el área entera en piedra clara, con el texto en tinta. */
.feature.stone { background: var(--stone); color: var(--ink); border-radius: 40px; padding: 64px 56px; margin: 24px 0; }
.feature.stone h3 { color: var(--ink); }
.feature.stone .feature-text p { color: rgba(28, 27, 25, 0.72); }
.feature.stone .tag { color: rgba(28, 27, 25, 0.5); }
.feature.stone .phone { box-shadow: 0 0 0 1px rgba(28, 27, 25, 0.10), 0 30px 70px rgba(28, 27, 25, 0.28); }
.tag { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; }

.band { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 44px; }
.band.stone { background: var(--stone); color: var(--ink); border: 0; }
.band.stone .muted { color: rgba(28, 27, 25, 0.66); }
.band.stone a { color: var(--ink); }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.price { font-size: clamp(40px, 6vw, 60px); font-weight: 600; letter-spacing: -0.03em; line-height: 1; margin: 6px 0 10px; }

/* Pie */
footer { padding: 56px 0 48px; border-top: 1px solid var(--line); margin-top: 40px; font-size: 15px; color: var(--text-2); }
footer .wrap { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 28px; }
footer h4 { margin: 0 0 10px; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); font-weight: 600; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
footer a { color: var(--text-2); text-decoration: none; }
footer a:hover { color: var(--text); }
.legal-line { grid-column: 1 / -1; font-size: 13px; color: var(--text-3); }

/* Páginas de texto: legal y ayuda */
.doc { max-width: 760px; padding: 24px 0 40px; }
.doc h1 { font-size: clamp(34px, 5.4vw, 52px); margin-bottom: 14px; }
.doc h2 { font-size: 26px; margin: 44px 0 12px; letter-spacing: -0.02em; }
.doc h3 { font-size: 19px; margin: 28px 0 8px; }
.doc p, .doc li { color: var(--text-2); }
.doc strong { color: var(--text); font-weight: 600; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15px; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--text-2); }
.doc th { color: var(--text); font-weight: 600; }
.doc blockquote { margin: 18px 0; padding: 14px 18px; border-left: 2px solid var(--ember); background: var(--surface); border-radius: 0 14px 14px 0; }
.doc code { font-size: 0.92em; }
.updated { color: var(--text-3); font-size: 15px; }
.cards { display: grid; gap: 10px; margin: 24px 0; }
.card { display: block; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 20px 22px; }
.card b { display: block; font-size: 18px; font-weight: 600; color: var(--text); }
.card span { color: var(--text-2); font-size: 15px; }
.card:hover { border-color: rgba(232, 137, 74, 0.5); }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 0 20px; margin: 10px 0; }
summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; color: var(--text); font-size: 17px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--text-3); font-weight: 500; }
details[open] summary::after { content: "–"; }
details > :not(summary) { margin-top: 0; }
details > p:last-child, details > ul:last-child, details > ol:last-child { padding-bottom: 18px; margin-bottom: 0; }
.button { display: inline-flex; align-items: center; height: 52px; padding: 0 24px; border-radius: 999px; background: var(--stone); color: var(--ink); font-weight: 600; text-decoration: none; }

@media (max-width: 860px) {
  .hero { padding-top: 28px; }
  .hero .wrap, .feature, .cols { grid-template-columns: 1fr; gap: 32px; }
  .feature.flip .feature-text { order: 0; }
  .feature { padding: 28px 0; }
  .feature.stone { padding: 40px 24px; border-radius: 32px; }
  section { padding: 52px 0; }
  .band { padding: 30px 24px; }
  footer .wrap { grid-template-columns: 1fr 1fr; }
  footer .wrap > :first-child { grid-column: 1 / -1; }
  .nav .hide-sm { display: none; }
}
.cta { margin-top: 24px; }


/* ---------- Tiendas ---------- */
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.stores.center { justify-content: center; }
.badge { display: inline-flex; border-radius: 12px; transition: transform .2s ease; }
.badge:hover { transform: translateY(-2px); }
.stores { gap: 12px; }
/* Las dos a la misma altura (a la de Google se le ha quitado el margen transparente que traía). */
.badge img { height: 52px; width: auto; display: block; }

/* ---------- Pasos de hoy (como en la app) ---------- */
.today { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.big { font-size: clamp(18px, 2.1vw, 20px); }
.steps { display: grid; gap: 10px; }
.step-card { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 18px 20px;
  border-radius: 26px; background: var(--surface); border: 1px solid var(--line); cursor: pointer; user-select: none;
  transition: background .25s ease, border-color .25s ease, transform .15s ease; }
.step-card:hover { border-color: rgba(232, 228, 220, 0.18); }
.step-card:active { transform: scale(.985); }
/* La casilla de verdad, invisible pero accesible (teclado y VoiceOver). */
.step-card .done { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.step-card:has(.done:focus-visible) { outline: 2px solid var(--ember); outline-offset: 3px; }
.step-card .body { display: block; min-width: 0; }
.step-card b { transition: color .25s ease; text-decoration-color: rgba(232, 228, 220, 0.5); }
.check svg { width: 16px; height: 16px; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.check .tick { display: none; stroke: #1C1B19; stroke-width: 2.6; }
.check .go { stroke: var(--ember); stroke-width: 2.2; }
/* Hecho: tachado, número y textos apagados, y el círculo lleno de ascua con el check (como en la app). */
.step-card:has(.done:checked) { background: var(--bg); border-color: var(--line); }
.step-card:has(.done:checked) b { text-decoration: line-through; color: var(--text-3); }
.step-card:has(.done:checked) .num, .step-card:has(.done:checked) .sub { color: var(--text-3); }
.step-card:has(.done:checked) .chip { opacity: .45; }
.step-card:has(.done:checked) .check { background: var(--ember); border-color: var(--ember); display: grid; place-items: center; }
.step-card:has(.done:checked) .check .tick { display: block; }
.step-card:has(.done:checked) .check .go { display: none; }
@media (prefers-reduced-motion: no-preference) {
  @keyframes pop { 0% { transform: scale(.6); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
  .step-card:has(.done:checked) .check { animation: pop .35s cubic-bezier(.2, .8, .2, 1); }
}
.step-card.main { border-color: rgba(232, 137, 74, 0.55); background: linear-gradient(180deg, rgba(232, 137, 74, 0.10), rgba(232, 137, 74, 0.03)), var(--surface); }
.step-card .num { font-size: 22px; font-weight: 600; color: var(--text-3); font-variant-numeric: tabular-nums; }
.step-card.main .num { color: var(--ember); }
.step-card b { display: block; font-size: 17px; font-weight: 600; }
.step-card .sub { display: block; font-size: 14px; color: var(--text-3); margin-top: 2px; }
.step-card .sub.ember { color: var(--ember); }
.chip { display: inline-block; font-size: 12px; font-weight: 600; color: #F0A877; background: rgba(232, 137, 74, 0.14); border-radius: 999px; padding: 3px 10px; margin-top: 6px; }
.check { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid rgba(232, 228, 220, 0.25); }
.step-card.main .check { border-color: var(--ember); display: grid; place-items: center; }

/* ---------- Lo que no hay ---------- */
.without { text-align: center; }
.without ul { list-style: none; padding: 0; margin: 28px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 760px; }
.without li { padding: 12px 20px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-2); font-weight: 500; text-decoration: line-through;
  text-decoration-color: rgba(232, 137, 74, 0.8); text-decoration-thickness: 2px; }

/* ---------- Final ---------- */
.end { text-align: center; display: grid; justify-items: center; gap: 6px; }
.end .symbol { width: 72px; height: 72px; margin-bottom: 12px; }
.end .big { max-width: 30em; margin: 0 0 22px; }

/* ---------- Símbolo ---------- */
.symbol { width: 56px; height: 56px; display: block; margin-bottom: 22px; overflow: visible; }
.symbol rect { fill: var(--stone); }
.symbol .p3 { fill: var(--ember); }

/* ---------- Movimiento ----------
   Como la app (D-115, D-116): el símbolo se monta píldora a píldora, el título entra por palabras y lo demás sube en
   cascada. Al bajar, cada bloque entra al aparecer y se va al salir (animaciones ligadas al scroll; sin scripts). */
@media (prefers-reduced-motion: no-preference) {
  @keyframes pill { from { opacity: 0; transform: translate(-26px, 14px); } to { opacity: 1; transform: none; } }
  @keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
  @keyframes phoneIn { from { opacity: 0; transform: translateY(60px) scale(.96); } to { opacity: 1; transform: none; } }
  @keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

  .symbol rect { animation: pill .6s cubic-bezier(.2, .8, .2, 1) both; }
  .symbol .p2 { animation-delay: .12s; }
  .symbol .p3 { animation-delay: .24s; }
  h1 .w { display: inline-block; animation: rise .7s cubic-bezier(.2, .8, .2, 1) both; }
  h1 .w:nth-child(1) { animation-delay: .35s; }
  h1 .w:nth-child(2) { animation-delay: .45s; }
  h1 .w:nth-child(3) { animation-delay: .55s; }
  h1 .w:nth-child(4) { animation-delay: .65s; }
  .rise { animation: rise .7s cubic-bezier(.2, .8, .2, 1) both; }
  .rise.r1 { animation-delay: .25s; }
  .rise.r2 { animation-delay: .8s; }
  .rise.r3 { animation-delay: .95s; }
  .hero-phone { animation: phoneIn 1s cubic-bezier(.2, .8, .2, 1) .5s both; }
  .hero-phone .phone { animation: float 6s ease-in-out 1.6s infinite; }

  @supports (animation-timeline: view()) {
    @keyframes inout {
      0% { opacity: 0; transform: translateY(48px); }
      25%, 75% { opacity: 1; transform: none; }
      100% { opacity: 0; transform: translateY(-32px); }
    }
    @keyframes inoutPhone {
      0% { opacity: 0; transform: translateY(80px) scale(.62); }
      40%, 68% { opacity: 1; transform: none; }
      100% { opacity: .25; transform: translateY(-40px) scale(.9); }
    }
    .reveal, .step-card, .without li { animation: inout linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
    .reveal-phone { animation: inoutPhone linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
    /* Los pasos y las etiquetas, en cascada: cada uno empieza un poco después. */
    .step-card:nth-child(2) { animation-range: cover 4% cover 100%; }
    .step-card:nth-child(3) { animation-range: cover 8% cover 100%; }
    .without li:nth-child(2n) { animation-range: cover 3% cover 100%; }
    .without li:nth-child(3n) { animation-range: cover 6% cover 100%; }
  }
}

@media (max-width: 860px) {
  .today { grid-template-columns: 1fr; gap: 28px; }
  .badge img { height: 46px; }
  .nav-cta { padding: 7px 13px; }
}

/* ---------- Por qué funciona: pasos pequeños ---------- */
.why-head { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.stair { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px 26px; }
.stair-project { display: block; font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 18px; }
/* Escalera: cada paso un poco más a la derecha, como subiendo. */
.stair ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.stair-step { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 18px; background: var(--surface-2);
  border: 1px solid var(--line); font-weight: 600; font-size: 16px; }
.stair-step:nth-child(2) { margin-left: 7%; }
.stair-step:nth-child(3) { margin-left: 14%; }
.stair-step:nth-child(4) { margin-left: 21%; }
.stair-step:nth-child(5) { margin-left: 28%; }
.stair-step .dot { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid rgba(232, 228, 220, 0.25); }
.stair-step .chip { margin: 0 0 0 auto; }
.stair-step.done { background: transparent; color: var(--text-3); }
.stair-step.done span:not(.dot) { text-decoration: line-through; text-decoration-color: rgba(232, 228, 220, 0.4); }
.stair-step.done .dot { background: var(--ember); border-color: var(--ember); display: grid; place-items: center; }
.stair-step .dot svg { width: 12px; height: 12px; fill: none; stroke: #1C1B19; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.stair-step.now { border-color: rgba(232, 137, 74, 0.55); background: linear-gradient(180deg, rgba(232, 137, 74, 0.12), rgba(232, 137, 74, 0.03)), var(--surface-2); }
.stair-step.now .dot { border-color: var(--ember); }
.stair-step.next { color: var(--text-2); font-weight: 500; }

.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 56px; }
.principle { padding: 28px 24px; border-radius: 24px; border: 1px solid var(--line); background: rgba(23, 22, 20, 0.6); }
.principle .num { display: block; font-size: 15px; font-weight: 600; color: var(--ember); margin-bottom: 18px; font-variant-numeric: tabular-nums; }
.principle h3 { font-size: 21px; text-wrap: balance; }
.principle p { color: var(--text-2); font-size: 16px; margin: 0; }
.why-end { text-align: center; font-size: clamp(22px, 3vw, 30px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; margin: 64px auto 0; max-width: 22em; text-wrap: balance; }

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .principle, .stair-step { animation: inout linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
    .principle:nth-child(2), .stair-step:nth-child(2) { animation-range: cover 3% cover 100%; }
    .principle:nth-child(3), .stair-step:nth-child(3) { animation-range: cover 6% cover 100%; }
    .principle:nth-child(4), .stair-step:nth-child(4) { animation-range: cover 9% cover 100%; }
    .stair-step:nth-child(5) { animation-range: cover 12% cover 100%; }
    /* La escalera entera ya entra con su tarjeta; los peldaños suben dentro, en cascada. */
  }
}

@media (max-width: 1000px) { .principles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) {
  .why-head { grid-template-columns: 1fr; gap: 28px; }
  .principles { grid-template-columns: 1fr; margin-top: 36px; }
  .stair { padding: 24px 18px 20px; }
  .stair-step { font-size: 15px; padding: 12px 14px; }
  .stair-step:nth-child(2) { margin-left: 4%; }
  .stair-step:nth-child(3) { margin-left: 8%; }
  .stair-step:nth-child(4) { margin-left: 12%; }
  .stair-step:nth-child(5) { margin-left: 16%; }
  .why-end { margin-top: 44px; }
}
