﻿/* ==========================================================================
   Acceso a Mi Global (login, recuperar, código, nueva clave, crear cuenta, primera clave)
   Mismo lenguaje que el sitio público (home/marca.css): índigo y verde del logo, papel cálido,
   Schibsted Grotesk + Fraunces itálica para la palabra clave. Íconos SVG de línea, sin emojis.
   Celular primero: foto arriba como portada y la tarjeta del formulario montada encima.
   Escritorio (≥ 960 px): foto a la izquierda a toda altura y formulario a la derecha.
   Modos: .is-modal (emergente de la portada) y .is-compact (hoja del asistente: solo formulario).
   ========================================================================== */

:root {
  --ff: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ffs: "Fraunces", Georgia, "Times New Roman", serif;
  --ink: #0E1230; --ink-2: #3D4361; --ink-3: #6A7089;
  --paper: #F6F4EF; --paper-2: #EEEBE3; --line: #E3DFD5; --line-2: #ECE9E1;
  --navy: #0E1230; --indigo: #2E3478; --indigo-soft: #ECEDF6;
  --brand: #0E7F45; --brand-2: #0A6A39; --brand-soft: #E3F2E9; --brand-ink: #0A5A33; --mint: #8EE6B4;
  --gold-soft: #FFF3D1; --gold-ink: #6E4B00;
  --danger: #B42318; --danger-soft: #FDECEA;
  --field: #FBFAF7;
  --r-s: 12px; --r: 16px; --r-l: 24px;
  --sh: 0 1px 2px rgba(14, 18, 48, .05), 0 18px 48px rgba(14, 18, 48, .10);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; background: var(--paper); color: var(--ink);
  font-family: var(--ff); font-size: 16px; line-height: 1.5; letter-spacing: -.003em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
::selection { background: var(--mint); color: var(--ink); }
:focus-visible { outline: 3px solid #93A2F0; outline-offset: 2px; border-radius: 8px; }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico--brand { stroke: none; }

/* ── Estructura ─────────────────────────────────────────────────────────── */
.acc { min-height: 100dvh; display: flex; flex-direction: column; }

/* ── Foto (portada en celular, columna en escritorio) ───────────────────── */
.hero {
  position: relative; overflow: hidden; color: #fff; background: var(--navy);
  height: clamp(230px, 36vh, 330px); border-radius: 0 0 28px 28px; flex: none;
  isolation: isolate;
}
.scene { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .7s var(--ease); }
.scene.is-on { opacity: 1; z-index: 1; }
.scene__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  object-position: var(--fpm, 50% 50%); transform: scale(1.06); transition: transform 9s linear;
}
.scene.is-on .scene__img { transform: scale(1); }
.scene::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(14, 18, 48, .55) 0%, rgba(14, 18, 48, .08) 30%, rgba(14, 18, 48, .35) 58%, rgba(14, 18, 48, .92) 100%);
}
.scene__txt {
  position: absolute; left: 20px; right: 20px; bottom: 50px; z-index: 2;
  transform: translateY(10px); opacity: 0; transition: transform .7s var(--ease) .1s, opacity .7s var(--ease) .1s;
}
.scene.is-on .scene__txt { transform: none; opacity: 1; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--mint);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; opacity: .8; }
.scene__title {
  margin: 8px 0 0; font-size: clamp(26px, 7.4vw, 34px); font-weight: 800; line-height: 1.05;
  letter-spacing: -.035em; text-wrap: balance; max-width: 18ch; text-shadow: 0 2px 18px rgba(0, 0, 0, .25);
}
.scene__title em { font-family: var(--ffs); font-style: italic; font-weight: 500; letter-spacing: -.01em; color: var(--mint); }
.scene__lead { display: none; margin: 10px 0 0; color: rgba(255, 255, 255, .84); font-size: 15px; max-width: 44ch; text-wrap: pretty; }
.hero__logo {
  position: absolute; top: max(14px, env(safe-area-inset-top)); left: 16px; z-index: 3;
  display: inline-flex; padding: 7px 12px; border-radius: 14px; background: rgba(255, 255, 255, .94);
  box-shadow: 0 6px 20px rgba(14, 18, 48, .18); backdrop-filter: blur(8px);
}
/* Logo grande, como en la portada (el dueño lo vio diminuto con 28px) */
.hero__logo img { height: 44px; width: auto; }
.hero__trust { display: none; }

/* ── Columna del formulario ─────────────────────────────────────────────── */
.main {
  position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; align-items: center;
  padding: 0 16px max(20px, env(safe-area-inset-bottom));
}
.topbar { display: none; }
.card {
  width: 100%; max-width: 460px; margin-top: -34px; background: #fff; border: 1px solid var(--line-2);
  border-radius: var(--r-l); box-shadow: var(--sh); padding: 26px 20px 24px;
}
.foot { margin-top: 18px; text-align: center; font-size: 12.5px; color: var(--ink-3); }
.foot p { margin: 4px 0; }

/* ── Paneles ───────────────────────────────────────────────────────────── */
.pane { animation: paneIn .45s var(--ease) both; }
.pane--center { text-align: center; }
@keyframes paneIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.pane__h { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.035em; line-height: 1.1; text-wrap: balance; }
.pane__h:focus { outline: none; }
.pane__sub { margin: 8px 0 20px; color: var(--ink-3); font-size: 15px; text-wrap: pretty; }
.pane__alt { margin: 18px 0 0; text-align: center; color: var(--ink-3); font-size: 14.5px; }
/* Atajo a /finanzas/pago: pagar nunca exige iniciar sesión */
.paylink { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: var(--r); background: #fff; color: var(--ink); text-decoration: none; transition: border-color .2s, background-color .2s; }
.paylink:hover { border-color: var(--brand); background: var(--brand-soft); }
.paylink > .ico:first-child { flex: none; width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); }
.paylink span { flex: 1; min-width: 0; display: grid; gap: 1px; }
.paylink b { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.paylink small { color: var(--ink-3); font-size: 13.5px; }
.paylink .paylink__go { flex: none; width: 20px; height: 20px; color: var(--brand); }
.back {
  display: inline-flex; align-items: center; gap: 6px; margin: -4px 0 14px; padding: 6px 10px 6px 6px;
  border-radius: 10px; color: var(--ink-2); font-size: 14px; font-weight: 600; text-decoration: none;
}
.back:hover { background: var(--paper); color: var(--ink); }
.back .ico { width: 18px; height: 18px; }

/* ── Avisos ─────────────────────────────────────────────────────────────── */
.alerts:empty { display: none; }
.alerts { margin-bottom: 16px; display: grid; gap: 8px; }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; font-size: 14.5px; line-height: 1.45; border: 1px solid transparent; }
.alert p { margin: 0; }
.alert .ico { margin-top: 1px; }
.alert--danger { background: var(--danger-soft); border-color: #F7C9C4; color: #7A1A12; }
.alert--success { background: var(--brand-soft); border-color: #BFE3CD; color: var(--brand-ink); }
.alert--warning { background: var(--gold-soft); border-color: #F5DE9C; color: var(--gold-ink); }
.alert--info { background: var(--indigo-soft); border-color: #D6D8EE; color: var(--indigo); margin-bottom: 14px; }
.alert--info .ico--brand { width: 20px; height: 20px; }
.alert.is-shake { animation: shake .4s var(--ease); }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

.tip { display: flex; gap: 10px; margin-top: 18px; padding: 12px 14px; border-radius: 14px; background: var(--paper); color: var(--ink-2); font-size: 13.5px; line-height: 1.45; }
.tip p { margin: 0; }
.tip .ico { color: var(--indigo); margin-top: 1px; width: 18px; height: 18px; }
.tip--warn { background: var(--gold-soft); color: var(--gold-ink); }
.tip--warn .ico { color: var(--gold-ink); }
.form .tip { margin: 0 0 16px; }

/* ── Campos ─────────────────────────────────────────────────────────────── */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field__row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.field__label { font-size: 13.5px; font-weight: 700; color: var(--ink-2); padding: 0; }
.field__box {
  position: relative; display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 14px;
  background: var(--field); border: 1.5px solid var(--line); border-radius: 14px;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.field__box > .ico { color: var(--ink-3); transition: color .15s; }
.field__box:hover { border-color: #D3CEC1; }
.field__box:focus-within { background: #fff; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(14, 127, 69, .14); }
.field__box:focus-within > .ico { color: var(--brand); }
.field__box input, .field__box select {
  flex: 1; min-width: 0; width: 100%; height: 100%; border: 0; outline: 0; background: transparent; font-size: 16px;
  padding: 0; color: var(--ink);
}
.field__box input::placeholder { color: #A3A7B8; }
.field__box input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px var(--field) inset; -webkit-text-fill-color: var(--ink); }
.field__box--select select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 22px; }
.field__box--select::after {
  content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
  border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg); pointer-events: none;
}
.field__box.is-locked { background: var(--paper); }
.field__box.is-invalid, .field__box:has(input[aria-invalid="true"]) { border-color: var(--danger); background: #fff; box-shadow: 0 0 0 4px rgba(180, 35, 24, .10); }
.field__eye {
  display: grid; place-items: center; width: 40px; height: 40px; margin-right: -8px; border: 0; border-radius: 10px;
  background: transparent; color: var(--ink-3); cursor: pointer;
}
.field__eye:hover { background: var(--paper); color: var(--ink); }
.field__eye[aria-pressed="true"] { color: var(--brand); }
.field__err { margin: 0; min-height: 0; font-size: 13px; font-weight: 600; color: var(--danger); }
.field__err:empty { display: none; }
.field__err--center { text-align: center; }
.field__hint { margin: 0; font-size: 13px; color: var(--gold-ink); font-weight: 600; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grid2--doc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14.5px; color: var(--ink-2); user-select: none; }
.check--top { align-items: flex-start; font-size: 13px; line-height: 1.45; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box {
  display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 7px;
  border: 1.5px solid #CFCABD; background: #fff; transition: background .15s, border-color .15s;
}
.check__box .ico { width: 15px; height: 15px; stroke-width: 3; color: #fff; opacity: 0; transform: scale(.6); transition: .15s var(--ease); }
.check input:checked + .check__box { background: var(--brand); border-color: var(--brand); }
.check input:checked + .check__box .ico { opacity: 1; transform: none; }
.check input:focus-visible + .check__box { outline: 3px solid #93A2F0; outline-offset: 2px; }
.radio { display: flex; gap: 8px; align-items: center; font-size: 15px; padding: 4px 0; }

/* ── Botones y enlaces ──────────────────────────────────────────────────── */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 22px; border-radius: 14px; border: 1.5px solid transparent; cursor: pointer;
  font-size: 16px; font-weight: 700; letter-spacing: -.01em; text-decoration: none;
  transition: background .15s, border-color .15s, transform .1s, box-shadow .15s;
}
.btn:active { transform: scale(.985); }
.btn--block { width: 100%; }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(14, 127, 69, .22); }
.btn--primary:hover { background: var(--brand-2); }
.btn--primary .ico { transition: transform .2s var(--ease); }
.btn--primary:hover .ico { transform: translateX(3px); }
.btn--google { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--google:hover { background: var(--paper); border-color: #D3CEC1; }
.btn[aria-busy="true"] { pointer-events: none; color: transparent !important; }
.btn[aria-busy="true"] .ico { opacity: 0; }
.btn[aria-busy="true"]::after {
  content: ""; position: absolute; width: 22px; height: 22px; border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: spin .7s linear infinite;
}
.btn[disabled] { opacity: .6; cursor: not-allowed; }
@keyframes spin { to { transform: rotate(360deg); } }

.link {
  display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--brand); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1.5px;
  text-underline-offset: 3px; text-decoration-color: rgba(14, 127, 69, .35);
}
.link:hover { text-decoration-color: currentColor; }
.link--sm { font-size: 13.5px; }
.link--muted { color: var(--ink-3); font-weight: 600; text-decoration-color: rgba(106, 112, 137, .35); }
.link[disabled] { color: var(--ink-3); cursor: default; text-decoration: none; }
.link .ico { width: 16px; height: 16px; }

.sep { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--ink-3); font-size: 13px; font-weight: 600; }
.sep::before, .sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ── Medios para el código ──────────────────────────────────────────────── */
.opts { display: grid; gap: 10px; }
.opt {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: var(--r); background: #fff; transition: border-color .15s, background .15s, box-shadow .15s;
}
.opt:hover { border-color: #D3CEC1; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 4px rgba(14, 127, 69, .10); }
.opt:has(input:focus-visible) { outline: 3px solid #93A2F0; outline-offset: 2px; }
.opt__ico { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 12px; }
.opt__ico--wa { background: #E3F7EA; color: #1DA851; }
.opt__ico--sms { background: var(--gold-soft); color: var(--gold-ink); }
.opt__ico--mail { background: var(--indigo-soft); color: var(--indigo); }
.opt__txt { flex: 1; min-width: 0; display: grid; }
.opt__txt strong { font-size: 15.5px; }
.opt__txt small { color: var(--ink-3); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.opt__tick { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line); color: #fff; }
.opt__tick .ico { width: 14px; height: 14px; stroke-width: 3; opacity: 0; }
.opt:has(input:checked) .opt__tick { background: var(--brand); border-color: var(--brand); }
.opt:has(input:checked) .opt__tick .ico { opacity: 1; }

/* ── Código de 6 dígitos ────────────────────────────────────────────────── */
.otp { position: relative; }

.otp__cells { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.otp__cells span {
  display: grid; place-items: center; height: 60px; border-radius: 14px; background: var(--field);
  border: 1.5px solid var(--line); font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.otp__cells span.is-filled { background: #fff; border-color: #BFE3CD; }
.otp__cells span.is-active { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(14, 127, 69, .14); background: #fff; }
.otp__cells span.is-active::after { content: ""; width: 2px; height: 26px; background: var(--brand); animation: blink 1s steps(1) infinite; }
.otp.is-invalid .otp__cells span { border-color: var(--danger); }
@keyframes blink { 50% { opacity: 0; } }
/* El campo real va encima de las 6 casillas, invisible (pegar y el autocompletar por SMS funcionan). Sin JS: ver <noscript>. */
.otp__input {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; font-size: 16px; color: transparent;
  caret-color: transparent; border: 0; background: transparent; z-index: 2; cursor: text;
}
.pin__foot { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--ink-3); }

/* ── Medidor de contraseña ──────────────────────────────────────────────── */
.meter { display: flex; align-items: center; gap: 4px; margin-top: 4px; }
.meter i { flex: 1; height: 5px; border-radius: 4px; background: var(--line-2); transition: background .25s; }
.meter span { flex: none; min-width: 92px; margin-left: 8px; font-size: 12.5px; font-weight: 700; color: var(--ink-3); text-align: right; }
.meter[data-score="1"] i:nth-child(-n+1) { background: #D9534F; }
.meter[data-score="2"] i:nth-child(-n+2) { background: #E8A13A; }
.meter[data-score="3"] i:nth-child(-n+3) { background: #2E9E5F; }
.meter[data-score="4"] i { background: var(--brand); }
.reqs { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 2px 0 0; padding: 0; list-style: none; font-size: 12.5px; color: var(--ink-3); }

.reqs li { display: inline-flex; align-items: center; gap: 4px; transition: color .15s; }
.reqs .ico { width: 14px; height: 14px; stroke-width: 2.6; opacity: .35; }
.reqs li.ok { color: var(--brand-ink); }
.reqs li.ok .ico { opacity: 1; color: var(--brand); }

.done { display: grid; place-items: center; width: 76px; height: 76px; margin: 4px auto 16px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); animation: pop .5s var(--ease) both; }
.done .ico { width: 40px; height: 40px; stroke-width: 2; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.noscript { margin: 16px 0 0; font-size: 13px; color: var(--ink-3); text-align: center; }

/* ── Celulares pequeños ─────────────────────────────────────────────────── */
@media (max-width: 380px) {
  .card { padding: 22px 16px 20px; }
  .grid2 { grid-template-columns: 1fr; }
  .otp__cells { gap: 6px !important; }
  .otp__cells span { height: 54px; font-size: 22px; }
}

/* ── Tablet ─────────────────────────────────────────────────────────────── */
@media (min-width: 600px) {
  .hero { height: clamp(280px, 38vh, 380px); }
  .scene__txt { left: 32px; right: 32px; bottom: 60px; }
  .scene__lead { display: block; }
  .card { padding: 32px 32px 28px; margin-top: -44px; }
}

/* ── Escritorio: foto a la izquierda, formulario a la derecha ───────────── */
@media (min-width: 960px) {
  .acc { flex-direction: row; }
  .hero {
    position: sticky; top: 0; height: 100dvh; flex: 0 0 54%; border-radius: 0 32px 32px 0;
  }
  .scene__img { object-position: var(--fp, 50% 50%); }
  .scene__txt { left: clamp(36px, 4vw, 64px); right: clamp(36px, 4vw, 64px); bottom: 118px; }
  .scene__title { font-size: clamp(38px, 3.6vw, 58px); max-width: 15ch; }
  .scene__lead { font-size: 17px; }
  .hero__logo { top: 32px; left: clamp(36px, 4vw, 64px); padding: 10px 16px; }
  .hero__logo img { height: 56px; }
  .hero__trust {
    position: absolute; z-index: 3; left: clamp(36px, 4vw, 64px); right: 24px; bottom: 40px;
    display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none;
  }
  .hero__trust li {
    display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px;
    background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .92);
  }
  .hero__trust .ico { width: 16px; height: 16px; color: var(--mint); }
  .main { justify-content: center; padding: 88px clamp(24px, 4vw, 64px) 32px; }
  .topbar {
    position: absolute; top: 24px; left: clamp(24px, 4vw, 64px); right: clamp(24px, 4vw, 64px);
    display: flex; justify-content: space-between;
  }
  .topbar__link {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px;
    color: var(--ink-2); font-size: 14px; font-weight: 600; text-decoration: none;
  }
  .topbar__link:hover { background: #fff; color: var(--ink); }
  .topbar__link .ico { width: 18px; height: 18px; }
  .card { margin-top: 0; max-width: 470px; padding: 36px 36px 32px; }
  .pane__h { font-size: 30px; }
}
@media (min-width: 1400px) {
  .hero { flex-basis: 56%; }
  .card { max-width: 500px; padding: 40px 42px 36px; }
}

/* ── Dentro del emergente de la portada ─────────────────────────────────── */
.is-modal .main { padding-top: 0; }
@media (min-width: 960px) {
  .is-modal .hero { border-radius: 0; flex-basis: 50%; }
  .is-modal .main { padding: 36px clamp(20px, 3vw, 48px); }
  .is-modal .scene__txt { bottom: 96px; }
  .is-modal .hero__trust { bottom: 32px; }
}

/* ── Hoja compacta del asistente: solo el formulario ────────────────────── */
.is-compact body { background: #fff; }
.is-compact .main { padding: 0; }
.is-compact .card { margin: 0; max-width: none; border: 0; border-radius: 0; box-shadow: none; padding: 18px 18px 8px; }
.is-compact .pane > .tip, .is-compact .foot { display: none; }
.is-compact .pane__h { font-size: 22px; }

/* ── Menos movimiento ───────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .scene__img, .scene.is-on .scene__img { transform: none; }
}

/* Columna de foto angosta (emergente o pantallas de 960–1240 px): dos etiquetas, para que no tapen el texto */
@media (min-width: 960px) and (max-width: 1240px) { .hero__trust li:nth-child(3) { display: none; } }
@media (min-width: 960px) { .is-modal .hero__trust li:nth-child(3) { display: none; } }

/* ══ Pagar sin contraseña, registro en 2 pasos y accesos cruzados (2026-10-03) ══ */

/* Acceso destacado a otra pantalla («¿Solo vas a pagar tu cuota?», «¿Tienes cuenta?») */
.paylink {
  display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 14px 16px; border-radius: var(--r);
  background: var(--navy); color: #fff; text-decoration: none; transition: background .15s, transform .1s;
}
.paylink:hover { background: var(--indigo); }
.paylink:active { transform: scale(.99); }
.paylink > .ico:first-child { display: grid; width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: rgba(255, 255, 255, .12); color: var(--mint); }
.paylink span { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.paylink b { font-size: 15.5px; }
.paylink small { color: rgba(255, 255, 255, .72); font-size: 13px; }
.paylink__go { transition: transform .2s var(--ease); }
.paylink:hover .paylink__go { transform: translateX(3px); }
.paylink--soft { background: var(--paper); color: var(--ink); border: 1.5px solid var(--line); }
.paylink--soft:hover { background: var(--indigo-soft); border-color: #D6D8EE; }
.paylink--soft > .ico:first-child { background: #fff; color: var(--indigo); }
.paylink--soft small { color: var(--ink-3); }
.is-compact .paylink { display: none; }

/* Selector Estudio / Arriendo */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--paper-2); }
.seg__opt { position: relative; cursor: pointer; }
.seg__opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg__opt span {
  display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; border-radius: 11px;
  font-size: 14.5px; font-weight: 700; color: var(--ink-3); transition: background .15s, color .15s, box-shadow .15s;
}
.seg__opt span .ico { width: 18px; height: 18px; }
.seg__opt input:checked + span { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(14, 18, 48, .10); }
.seg__opt input:checked + span .ico { color: var(--brand); }
.seg__opt input:focus-visible + span { outline: 3px solid #93A2F0; outline-offset: 2px; }
.hint { display: flex; gap: 8px; align-items: center; margin: -4px 0 0; font-size: 13.5px; color: var(--indigo); font-weight: 600; }
.hint .ico { width: 17px; height: 17px; }
.grid2--doc:has(> [data-kind-only][hidden]) { grid-template-columns: 1fr; }

/* Cómo funciona + medios de pago */
.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.how li { display: grid; justify-items: center; gap: 6px; padding: 12px 6px; border-radius: 14px; background: var(--paper); text-align: center; font-size: 12.5px; line-height: 1.3; color: var(--ink-2); font-weight: 600; }
.how b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-ink); font-size: 13px; }
.paymethods { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin-top: 10px; }
.paymethods span { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); font-size: 12px; font-weight: 700; color: var(--ink-2); background: #fff; }
.paymethods small { flex-basis: 100%; display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 2px; font-size: 12.5px; color: var(--ink-3); }
.paymethods small .ico { width: 14px; height: 14px; color: var(--brand); }
/* Wompi trust badge */
.wompi-trust { margin-top: 14px; }
.wompi-trust__badge { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 14px; border-radius: 12px; background: var(--brand-soft); font-size: 13px; color: var(--brand-ink); font-weight: 600; flex-wrap: wrap; }
.wompi-trust__badge strong { color: #0E7F45; font-weight: 800; }
.wompi-trust__secure { display: inline-flex; align-items: center; gap: 4px; color: #0E7F45; font-weight: 700; font-size: 12.5px; }

/* Registro por pasos */
.steps { margin: 0 0 14px; }
.steps__bar { height: 6px; border-radius: 6px; background: var(--line-2); overflow: hidden; }
.steps__bar i { display: block; height: 100%; width: 50%; border-radius: 6px; background: var(--brand); transition: width .35s var(--ease); }
.steps[data-step-now="2"] .steps__bar i { width: 100%; }
.steps__label { margin: 8px 0 0; font-size: 13px; color: var(--ink-3); }
.steps__label b { color: var(--ink); }
.step { display: grid; gap: 14px; min-width: 0; margin: 0; padding: 0; border: 0; animation: paneIn .35s var(--ease) both; }
.step__nav { display: grid; grid-template-columns: auto 1fr; gap: 10px; }
.btn--ghost { background: #fff; color: var(--ink-2); border-color: var(--line); padding: 0 16px; }
.btn--ghost:hover { background: var(--paper); }
.field__prefix { flex: none; padding-right: 10px; border-right: 1.5px solid var(--line); color: var(--ink-2); font-weight: 700; font-size: 15px; }

/* En celular, las pantallas con más campos dejan la foto más baja */
@media (max-width: 959px) {
  body[data-screen="register"] .hero, body[data-screen="pay"] .hero { height: clamp(190px, 27vh, 250px); }
  body[data-screen="register"] .scene__lead, body[data-screen="pay"] .scene__lead { display: none; }
  .hero { transition: height .35s var(--ease); }
}
@media (max-width: 380px) {
  .how li { font-size: 11.5px; }
  .seg__opt span { font-size: 13.5px; }
}
