/* =============================================================================
 * Cruzamos — sistema visual (manual de marca)
 * Carbón 70% · blanco 20% · turquesa 10%. Sora (titulares/cifras) + DM Sans (UI).
 * Tema oscuro deliberado. Estilos reutilizables: color, tipografía, espaciado,
 * botones y estados. La identidad se reconoce con las animaciones desactivadas.
 * ========================================================================== */
:root {
  /* Marca (manual) */
  --carbon: #111417;        /* fondo principal */
  --surface: #1a1f24;       /* superficies */
  --surface-2: #20262d;     /* superficie elevada */
  --surface-3: #262d35;     /* chips / insets */
  --brand: #2dd4bf;         /* turquesa (acento) */
  --brand-deep: #0f9c8b;    /* turquesa profundo */
  --white: #ffffff;
  --ink: #ffffff;           /* texto primario */
  --ink-soft: #a3aeb8;      /* texto secundario */
  --ink-faint: #6b7682;     /* texto terciario / mínimo */
  --warn: #fbbf24;          /* pendiente / aviso */
  --danger: #f87171;        /* error */

  /* Líneas y profundidad */
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.13);
  --brand-ink: #06201d;     /* texto sobre turquesa (alto contraste) */
  --glow: 0 0 0 1px rgba(45, 212, 191, 0.22), 0 10px 40px rgba(45, 212, 191, 0.14);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 6px 20px rgba(0, 0, 0, 0.35);

  --radius: 22px;
  --radius-sm: 14px;
  --radius-xs: 10px;
  --maxw: 480px;

  --font-display: "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--carbon);
  /* Estructura visual: brillo turquesa superior + rejilla fina de precisión */
  background-image:
    radial-gradient(900px 520px at 50% -8%, rgba(45, 212, 191, 0.10), transparent 62%),
    radial-gradient(700px 400px at 100% 8%, rgba(15, 156, 139, 0.06), transparent 60%),
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: auto, auto, 34px 34px, 34px 34px;
  background-attachment: fixed;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.app {
  max-width: var(--maxw);
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 0 18px calc(26px + env(safe-area-inset-bottom));
}
.boot { margin: auto; color: var(--ink-faint); font-family: var(--font-body); }

h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.02em; margin: 0; font-weight: 700; }

/* --- Cabecera / marca --------------------------------------------------- */
.brandbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 2px 10px; position: sticky; top: 0; z-index: 6;
  background: linear-gradient(180deg, var(--carbon) 60%, transparent);
}
.brand { background: none; border: 0; padding: 4px; cursor: pointer; display: inline-flex; align-items: center; }
/* Wordmark PLACEHOLDER (hasta tener el SVG oficial Ruta Z). No es el logo. */
.wordmark { font-family: var(--font-display); font-weight: 800; font-size: 21px; letter-spacing: -0.03em; color: var(--white); }
.wordmark b { color: var(--brand); font-weight: 800; }
.brand-lockup { display: inline-flex; align-items: center; gap: 9px; }
.brand-sym { height: 30px; width: 30px; display: block; }               /* símbolo Ruta Z (mín. 24px) */
.brand-logo img { height: 28px; width: auto; display: block; }          /* logo completo (mín. 96px ancho) */
.country-chip {
  font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--ink-soft);
  background: var(--surface); border: 1px solid var(--line); padding: 7px 13px; border-radius: 999px;
}

/* --- Layout de pantalla -------------------------------------------------- */
.screen { display: flex; flex-direction: column; gap: 16px; flex: 1; padding-top: 6px; }
.screen.center { justify-content: center; }

/* --- Tipografía de contenido -------------------------------------------- */
.greet { padding: 6px 2px 2px; }
.greet h1 { font-size: 27px; line-height: 1.12; }
.greet h1 .accent { color: var(--brand); }
.greet p { color: var(--ink-soft); font-size: 15px; margin: 8px 0 0; max-width: 34ch; line-height: 1.5; }

.eyebrow { font-family: var(--font-body); font-size: 11.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); }

/* --- Tarjetas / superficies --------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.card.elev { background: var(--surface-2); }
.card h2 { font-size: 17px; margin-bottom: 4px; }
.card .sub { color: var(--ink-soft); font-size: 13.5px; margin: 0 0 14px; line-height: 1.5; }

/* --- Composición: el recorrido del dinero -------------------------------- */
.route {
  position: relative; border-radius: var(--radius);
  background:
    radial-gradient(120% 90% at 85% 10%, rgba(45, 212, 191, 0.10), transparent 55%),
    var(--surface);
  border: 1px solid var(--line);
  padding: 22px 20px 18px; overflow: hidden; box-shadow: var(--shadow-sm);
}
.route svg { display: block; width: 100%; height: auto; }
.route .r-line { fill: none; stroke: var(--brand); stroke-width: 1.5; opacity: 0.9; }
.route .r-line.faint { opacity: 0.18; stroke-width: 1; }
.route .r-flow {
  fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round;
  stroke-dasharray: 6 170; filter: drop-shadow(0 0 5px rgba(45, 212, 191, 0.65));
  animation: flow 3.2s linear infinite;
}
@keyframes flow { from { stroke-dashoffset: 176; } to { stroke-dashoffset: 0; } }
.route .node-o { fill: var(--carbon); stroke: var(--white); stroke-width: 2.5; }
.route .node-o-core { fill: var(--white); }
.route .node-d { fill: var(--brand); }
.route .node-d-glow { fill: var(--brand); opacity: 0.25; animation: pulse 3.2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 0.18; } 50% { opacity: 0.4; } }
.route .r-label { font-family: var(--font-body); font-size: 11px; font-weight: 600; letter-spacing: 0.02em; }
.route .r-label.o { fill: var(--ink-soft); }
.route .r-label.d { fill: var(--brand); }
.route-foot { display: flex; align-items: baseline; gap: 8px; margin-top: 14px; }
.route-foot .k { font-family: var(--font-body); font-size: 12.5px; color: var(--ink-faint); }
.route-foot .v { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--white); }

/* --- Botones ------------------------------------------------------------- */
.btn {
  appearance: none; border: 0; cursor: pointer; width: 100%;
  font-family: var(--font-display); font-size: 15.5px; font-weight: 700; letter-spacing: -0.01em;
  padding: 15px 18px; border-radius: 14px; transition: transform .06s ease, box-shadow .18s ease, background .18s ease;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { box-shadow: var(--glow); }
.btn-primary:disabled, .btn-primary[aria-disabled="true"] { background: var(--surface-3); color: var(--ink-faint); cursor: not-allowed; box-shadow: none; pointer-events: none; }
.btn-ghost { background: transparent; color: var(--white); border: 1px solid var(--line-2); }
.btn-ghost:hover { border-color: var(--brand); }
.btn-outline-brand { background: rgba(45, 212, 191, 0.08); color: var(--brand); border: 1px solid rgba(45, 212, 191, 0.35); }
.btn-link { background: none; width: auto; padding: 8px; color: var(--ink-soft); font-family: var(--font-body); font-weight: 600; font-size: 13.5px; }
.btn-link:hover { color: var(--brand); }
.btn .ico { font-size: 17px; line-height: 1; }

/* --- Selección de origen (mercado), sin banderas ------------------------- */
.origin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.origin-btn {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 18px 16px; cursor: pointer; text-align: left; transition: border-color .15s, transform .06s, background .15s;
  display: flex; flex-direction: column; gap: 6px; position: relative;
}
.origin-btn:hover { border-color: var(--brand); background: var(--surface-2); }
.origin-btn:active { transform: translateY(1px); }
.origin-btn .name { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--white); }
.origin-btn .cur { font-size: 12.5px; color: var(--ink-faint); }
.origin-btn .dot { position: absolute; top: 16px; right: 16px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 10px rgba(45,212,191,.7); }

/* --- Formularios --------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 13px; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--ink-soft); }
.field input {
  font-family: var(--font-body); font-size: 16px; color: var(--white);
  background: var(--carbon); border: 1px solid var(--line-2); border-radius: 12px;
  padding: 13px 14px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder { color: var(--ink-faint); }
.field input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.15); }
.field .err { font-size: 12.5px; color: var(--danger); min-height: 1em; }
.phone-row { display: grid; grid-template-columns: auto 1fr; gap: 8px; }
.phone-row .dial { display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 0 13px; font-weight: 700; color: var(--ink-soft); font-family: var(--font-display); }
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 16px; font-size: 13px; color: var(--ink-soft); line-height: 1.45; }
.consent input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--brand); flex: none; }
.consent a, .footer a, .route a { color: var(--brand); }

/* --- Captura de documentos (KYC) ---------------------------------------- */
.doc-grid { display: grid; gap: 12px; }
.doc-tile {
  position: relative; border: 1.5px dashed var(--line-2); border-radius: var(--radius-sm);
  background: var(--carbon); min-height: 104px; cursor: pointer; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 14px;
}
.doc-tile:hover { border-color: var(--brand); }
.doc-tile .ico { font-size: 24px; }
.doc-tile .t { font-weight: 600; font-size: 14px; color: var(--white); }
.doc-tile .s { font-size: 12px; color: var(--ink-faint); }
.doc-tile input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.doc-tile.filled { border-style: solid; border-color: var(--brand); }
.doc-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.doc-tile .badge-ok { position: absolute; top: 8px; right: 8px; background: var(--brand); color: var(--brand-ink); border-radius: 999px; width: 24px; height: 24px; display: grid; place-items: center; font-size: 14px; z-index: 2; font-weight: 800; }

/* --- Pasos / progreso ---------------------------------------------------- */
.steps { display: flex; gap: 6px; margin: 6px 0 2px; }
.steps .step { flex: 1; height: 3px; border-radius: 999px; background: var(--line-2); }
.steps .step.on { background: var(--brand); }

/* --- Verificación: bloque explicado ------------------------------------- */
.verify {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px;
}
.verify.pending { border-color: rgba(251, 191, 36, 0.28); background: linear-gradient(0deg, rgba(251,191,36,0.04), rgba(251,191,36,0.04)), var(--surface); }
.verify.ok { border-color: rgba(45, 212, 191, 0.3); }
.verify .vico { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 19px; background: var(--surface-3); }
.verify.pending .vico { background: rgba(251, 191, 36, 0.14); }
.verify.ok .vico { background: rgba(45, 212, 191, 0.14); }
.verify .vbody { flex: 1; min-width: 0; }
.verify .vbody h3 { font-size: 15px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.verify .vbody p { margin: 5px 0 0; font-size: 13px; color: var(--ink-soft); line-height: 1.5; }
.verify .vbody .btn { margin-top: 12px; }

.pill { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-body); font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; letter-spacing: 0.01em; }
.pill.pending { background: rgba(251, 191, 36, 0.14); color: var(--warn); }
.pill.done { background: rgba(45, 212, 191, 0.15); color: var(--brand); }

/* --- Datos de cuenta: área secundaria compacta -------------------------- */
.account { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 16px; }
.account summary { list-style: none; cursor: pointer; padding: 12px 0; display: flex; align-items: center; justify-content: space-between; color: var(--ink-soft); font-size: 13.5px; font-weight: 600; }
.account summary::-webkit-details-marker { display: none; }
.account summary .chev { color: var(--ink-faint); transition: transform .2s; }
.account[open] summary .chev { transform: rotate(180deg); }
.account .acc-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13px; }
.account .acc-row .k { color: var(--ink-faint); }
.account .acc-row .v { color: var(--ink); font-weight: 600; font-family: var(--font-display); text-align: right; word-break: break-word; }

/* --- Avisos -------------------------------------------------------------- */
.note { display: flex; gap: 10px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 11px 14px; font-size: 12.5px; color: var(--ink-soft); line-height: 1.5; }
.note .ico { flex: none; }
.trust { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; color: var(--ink-faint); font-size: 12px; margin-top: 2px; }
.trust span { display: inline-flex; align-items: center; gap: 6px; }

/* --- Soporte + cierre de sesión (jerarquía discreta) -------------------- */
.closing { margin-top: 6px; display: flex; align-items: center; justify-content: center; gap: 14px; }
.closing a, .closing button { background: none; border: 0; cursor: pointer; color: var(--ink-faint); font-family: var(--font-body); font-size: 12.5px; text-decoration: none; }
.closing a:hover, .closing button:hover { color: var(--ink-soft); }
.closing .sep { color: var(--line-2); }

.footer { margin-top: auto; padding-top: 22px; text-align: center; color: var(--ink-faint); font-size: 11px; line-height: 1.6; }

.demo-banner { background: rgba(251, 191, 36, 0.1); color: var(--warn); border: 1px solid rgba(251, 191, 36, 0.3); border-radius: 10px; padding: 8px 12px; font-size: 11.5px; font-weight: 600; text-align: center; letter-spacing: 0.01em; }

.hero-mark {
  width: 72px; height: 72px; border-radius: 20px; margin: 0 auto;
  background: linear-gradient(145deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-2);
  display: grid; place-items: center; box-shadow: var(--shadow-sm);
}
.hero-mark .wordmark { font-size: 15px; }

.fade { animation: fade .24s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* --- Escritorio: dos columnas, composición con más aire ------------------ */
@media (min-width: 900px) {
  :root { --maxw: 980px; }
  .app { padding-bottom: 40px; }
  .screen.status-screen { display: grid; grid-template-columns: 1.15fr 0.85fr; grid-template-areas: "greet greet" "route aside" "verify aside" "action aside"; gap: 16px 20px; align-items: start; }
  .status-screen .greet { grid-area: greet; }
  .status-screen .route { grid-area: route; }
  .status-screen .verify { grid-area: verify; }
  .status-screen .action-card { grid-area: action; }
  .status-screen .aside { grid-area: aside; display: flex; flex-direction: column; gap: 16px; }
  .status-screen .footer { grid-column: 1 / -1; }
}

/* =============================================================================
 * HOME sin scroll: calculadora protagonista + Ruta Z + CTA a registro
 * Regla dura: todo cabe en una pantalla (100dvh). Nada de scroll de página.
 * ========================================================================== */
.app.no-scroll { height: 100dvh; min-height: 0; overflow: hidden; padding-bottom: 0; }
body:has(.app.no-scroll) { overflow: hidden; }
.home { height: 100%; display: flex; flex-direction: column; gap: 8px; padding-top: 0; min-height: 0; }
.home .topbar { position: static; padding: 10px 2px 2px; background: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.topbar .cta-group { display: flex; gap: 8px; }
.btn-sm { width: auto; padding: 9px 13px; font-size: 13px; border-radius: 11px; white-space: nowrap; }

.hero-copy { padding: 2px 2px 0; }
.hero-copy h1 { font-size: 24px; line-height: 1.12; }
.hero-copy h1 .accent { color: var(--brand); }
.hero-copy p { color: var(--ink-soft); font-size: 13.5px; margin: 6px 0 0; line-height: 1.45; }

/* --- Ruta Z (el recorrido = el logo) -------------------------------------- */
.zroute { position: relative; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; padding: 12px 16px 8px;
  background: radial-gradient(120% 90% at 85% 10%, rgba(45, 212, 191, 0.10), transparent 55%), var(--surface); box-shadow: var(--shadow-sm); flex: none; }
.zroute svg { display: block; width: 100%; height: auto; max-height: 118px; }
.zroute .z-path { fill: none; stroke: var(--brand); stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; }
.zroute .z-flow { fill: none; stroke: #ffffff; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 5 420; opacity: 0.9; animation: zflow 3.4s linear infinite; }
@keyframes zflow { from { stroke-dashoffset: 425; } to { stroke-dashoffset: 0; } }
.zroute .z-o { fill: #ffffff; }
/* Moneda que recorre la ruta (€ desde Europa, $ desde Chile): sin brillos ni degradados */
.zroute .z-coin circle { fill: #ffffff; stroke: var(--carbon); stroke-width: 1.5; }
.zroute .z-coin text { font-family: var(--font-display); font-weight: 800; font-size: 11px; fill: var(--carbon); }
.zroute .z-d { fill: var(--brand); }
.zroute .z-d-glow { fill: var(--brand); opacity: 0.22; animation: pulse 3.4s ease-in-out infinite; }
.zroute .z-label { font-family: var(--font-body); font-size: 11.5px; font-weight: 700; letter-spacing: 0.02em; }
.zroute .z-label.o { fill: var(--ink-soft); }
.zroute .z-label.d { fill: var(--brand); }

/* --- Calculadora (protagonista) -------------------------------------------- */
.calc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px 10px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 8px; flex: none; }
.calc-title { display: flex; align-items: center; justify-content: space-between; }
.calc-title h2 { font-size: 15px; }
.calc-box { background: var(--carbon); border: 1px solid var(--line-2); border-radius: 14px; padding: 9px 12px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; }
.calc-box .lbl { grid-column: 1 / -1; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }
.calc-box input.amt { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--white); font-family: var(--font-display); font-weight: 700; font-size: 26px; letter-spacing: -0.02em; padding: 0; }
.calc-box input.amt::placeholder { color: var(--ink-faint); }
.calc-box .amt-out { font-family: var(--font-display); font-weight: 700; font-size: 26px; letter-spacing: -0.02em; color: var(--white); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calc-box.focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.15); }

.pick { position: relative; }
.pick-btn { appearance: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--white); font-family: var(--font-body); font-weight: 700; font-size: 13.5px; padding: 7px 10px 7px 8px; border-radius: 999px; white-space: nowrap; }
.pick-btn:hover { border-color: var(--brand); }
.pick-btn .chev { color: var(--ink-faint); font-size: 11px; }
.pick-btn.fixed { cursor: default; }
.flag { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; flex: none; background: var(--surface-3); }
.pick-panel { position: absolute; right: 0; top: calc(100% + 8px); width: 268px; max-height: min(52vh, 380px); overflow-y: auto; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: var(--shadow); z-index: 20; padding: 6px; }
.pick-panel[hidden] { display: none; }
.pick-search { position: sticky; top: 0; background: var(--surface-2); padding: 4px 4px 8px; }
.pick-search input { width: 100%; box-sizing: border-box; background: var(--carbon); border: 1px solid var(--line-2); border-radius: 10px; color: var(--white); font-family: var(--font-body); font-size: 14px; padding: 9px 11px; outline: 0; }
.pick-search input:focus { border-color: var(--brand); }
.pick-item { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: 0; color: var(--white); font-family: var(--font-body); font-size: 14px; padding: 9px 10px; border-radius: 10px; cursor: pointer; text-align: left; }
.pick-item:hover, .pick-item.on { background: var(--surface-3); }
.pick-item .cur { margin-left: auto; color: var(--ink-faint); font-size: 12px; }
.pick-group { font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); padding: 8px 10px 4px; }

.calc-rate { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--ink-soft); padding: 0 2px; }
.calc-rate b { color: var(--white); font-family: var(--font-display); font-weight: 700; }
.tier-pill { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: rgba(45, 212, 191, 0.14); color: var(--brand); white-space: nowrap; }

.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.tier { border: 1px solid var(--line); border-radius: 10px; padding: 6px 7px; background: var(--carbon); min-width: 0; }
.tier .t-n { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); }
.tier .t-r { font-family: var(--font-display); font-weight: 700; font-size: 12.5px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tier .t-range { font-size: 10.5px; color: var(--ink-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tier.on { border-color: var(--brand); background: rgba(45, 212, 191, 0.08); }
.tier.on .t-r, .tier.on .t-n { color: var(--brand); }
.tier-hint { font-size: 11.5px; color: var(--ink-faint); padding: 0 2px; min-height: 1.2em; }
.tier-hint b { color: var(--brand); font-weight: 700; }

.calc-fees { display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; color: var(--ink-soft); padding: 2px 2px 0; }
.calc-fees div { display: flex; justify-content: space-between; gap: 10px; }
.calc-fees b { color: var(--white); font-family: var(--font-display); font-weight: 600; }
.calc-limits { font-size: 11px; color: var(--ink-faint); text-align: center; }
.calc-limits.err { color: var(--danger); font-weight: 600; }
.calc .btn { padding: 13px 16px; }

.home-foot { margin-top: auto; padding: 2px 2px 4px; text-align: center; color: var(--ink-faint); font-size: 10.5px; line-height: 1.4; flex: none; }
.home-foot a { color: var(--ink-faint); }

/* --- Cookies (RGPD): aviso previo, nada no necesario antes de aceptar ------- */
.cookie { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 50; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: var(--shadow); padding: 14px 16px; max-width: 520px; margin: 0 auto; }
.cookie .ck-body > b { font-family: var(--font-display); font-size: 14px; color: var(--white); }
.cookie p { margin: 4px 0 10px; font-size: 12.5px; color: var(--ink-soft); line-height: 1.45; }
.cookie p a { color: var(--brand); }
.cookie p b { color: var(--white); }
.ck-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }

/* --- Páginas legales (documentos: sí hacen scroll) ------------------------- */
.doc { max-width: 760px; margin: 0 auto; padding: 18px 20px 60px; }
.doc .brandbar { position: static; background: none; padding: 10px 0 18px; }
.doc h1 { font-size: 26px; margin: 6px 0 4px; }
.doc .meta { color: var(--ink-faint); font-size: 12.5px; margin-bottom: 22px; }
.doc h2 { font-size: 17px; margin: 26px 0 8px; color: var(--white); }
.doc p, .doc li { color: var(--ink-soft); font-size: 14.5px; line-height: 1.6; }
.doc ul { padding-left: 20px; }
.doc a { color: var(--brand); }
.doc .box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; margin: 10px 0; }
.doc .box b { color: var(--white); }
.doc table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 8px 0; }
.doc th, .doc td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); color: var(--ink-soft); vertical-align: top; }
.doc th { color: var(--white); font-weight: 600; }

/* Pantallas bajas: la calculadora manda, el texto cede */
@media (max-height: 720px) { .hero-copy { display: none; } .zroute svg { max-height: 92px; } .tier-hint { display: none; } }
@media (max-height: 640px) { .zroute { display: none; } }

/* Escritorio: dos columnas, sin scroll */
@media (min-width: 900px) {
  .home { display: grid; grid-template-columns: 1.05fr 0.95fr; grid-template-rows: auto 1fr auto; grid-template-areas: "top top" "left calc" "foot foot"; column-gap: 28px; row-gap: 12px; align-items: center; }
  .home .topbar { grid-area: top; padding-top: 18px; }
  .home .left { grid-area: left; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
  .home .calc { grid-area: calc; max-width: 440px; justify-self: end; width: 100%; }
  .home .home-foot { grid-area: foot; }
  .hero-copy h1 { font-size: 34px; }
  .hero-copy p { font-size: 15px; max-width: 40ch; }
  .zroute svg { max-height: 190px; }
  .left .btn-primary { width: auto; align-self: flex-start; padding: 13px 22px; }
}

/* --- Accesibilidad: respeta la reducción de movimiento ------------------- */
@media (prefers-reduced-motion: reduce) {
  .route .r-flow { animation: none; stroke-dasharray: none; opacity: 0.9; }
  .route .node-d-glow { animation: none; opacity: 0.3; }
  .zroute .z-flow { animation: none; opacity: 0; }
  .zroute .z-coin { display: none; }
  .zroute .z-d-glow { animation: none; opacity: 0.28; }
  .fade { animation: none; }
}
