/* Portal de alquiler · Nogales 8 — estilo minimalista */
:root {
  --bg: #ffffff;
  --bg2: #f5f5f7;
  --ink: #1d1d1f;
  --ink2: #6a6a70;
  --line: #d2d2d7;
  --line2: #e8e8ed;
  --blue: #0071e3;
  --blue-h: #0077ed;
  --blue-soft: #e8f1fc;
  --ok: #1b7340;
  --ok-bg: #e9f6ee;
  --wait: #8a5300;
  --wait-bg: #fff4e0;
  --off: #6a6a70;
  --off-bg: #f0f0f3;
  --r: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
button { font: inherit; }
:focus-visible { outline: 3px solid rgba(0, 113, 227, .45); outline-offset: 2px; border-radius: 8px; }

/* ---------- Tipografía ---------- */
.display { font-size: clamp(40px, 6vw, 64px); line-height: 1.04; font-weight: 600; letter-spacing: -.03em; margin: 0; }
.display-s { font-size: clamp(30px, 4.2vw, 44px); line-height: 1.08; font-weight: 600; letter-spacing: -.025em; margin: 0; }
.h2 { font-size: 26px; line-height: 1.15; font-weight: 600; letter-spacing: -.02em; margin: 0; }
.h3 { font-size: 19px; line-height: 1.25; font-weight: 600; letter-spacing: -.01em; margin: 0 0 6px; }
.lead { font-size: 19px; line-height: 1.45; color: #c7c7cc; margin: 0; max-width: 520px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); display: flex; align-items: center; gap: 6px; }
.muted { color: var(--ink2); }
.small { font-size: 14px; }
.center { text-align: center; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13px; word-break: break-all; }
.txt-ok { color: var(--ok); }
.txt-wait { color: var(--wait); }
p { margin: 0; }

/* ---------- Estructura ---------- */
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 32px 22px 80px; }
.wrap--narrow { max-width: 640px; display: flex; flex-direction: column; gap: 18px; }
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .82); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line2); }
.topbar__in { max-width: 1180px; margin: 0 auto; padding: 12px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand img { display: block; width: 132px; height: auto; }
.topbar__nav { display: flex; align-items: center; gap: 20px; font-size: 14px; }
.topbar__nav a { color: var(--ink); }
.topbar__nav form { margin: 0; }
.foot { max-width: 1180px; margin: 0 auto; padding: 24px 22px 40px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--ink2); border-top: 1px solid var(--line2); }
.auth .foot { display: none; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px; border-radius: 980px; border: 1px solid transparent; font-size: 15px; font-weight: 500; cursor: pointer; text-decoration: none !important; transition: background .2s, transform .15s var(--ease), box-shadow .2s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .4; cursor: not-allowed; transform: none; }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-h); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; }
.btn--light { background: var(--bg2); color: var(--ink); }
.btn--light:hover { background: #ebebef; }
.btn--google { background: #fff; color: var(--ink); border-color: var(--line); width: 100%; min-height: 50px; font-weight: 500; }
.btn--google:hover { background: #fafafa; }
.btn--block { width: 100%; }
.btn--s { min-height: 34px; padding: 0 14px; font-size: 13px; }
.btn.is-loading { pointer-events: none; opacity: .7; }
.btn.is-loading::after { content: ""; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.link { background: none; border: 0; padding: 0; color: var(--blue); cursor: pointer; font-size: inherit; }
.iconbtn { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: transparent; color: var(--ink2); cursor: pointer; flex: none; vertical-align: middle; }
.iconbtn:hover { background: var(--bg2); color: var(--ink); }
.btnrow { display: flex; flex-wrap: wrap; gap: 10px; }
.btnrow--end { justify-content: flex-end; }

/* ---------- Formularios ---------- */
.form { display: flex; flex-direction: column; gap: 14px; }
.form label, .field-inline { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; color: var(--ink); }
.form--grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; align-items: end; }
.span2 { grid-column: span 2; }
@media (max-width: 520px) { .span2 { grid-column: auto; } }
input, select, textarea { font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; min-height: 48px; transition: border-color .2s, box-shadow .2s; width: 100%; }
textarea { line-height: 1.5; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 113, 227, .15); }
.check { flex-direction: row !important; align-items: flex-start; gap: 10px !important; font-size: 14px !important; font-weight: 400 !important; }
.check input { width: 20px; height: 20px; min-height: 0; margin: 2px 0 0; flex: none; accent-color: var(--blue); }
.alert { background: #fdecec; color: #a1261d; padding: 12px 14px; border-radius: 12px; font-size: 14px; }
.ok-note { color: var(--ok); }
.sep { display: flex; align-items: center; gap: 12px; color: var(--ink2); font-size: 13px; }
.sep::before, .sep::after { content: ""; flex: 1; height: 1px; background: var(--line2); }

/* ---------- Acceso ---------- */
.auth-split { min-height: 100vh; display: flex; flex-wrap: wrap; }
.auth-hero { flex: 1 1 480px; background: #000; color: #fff; display: flex; align-items: center; padding: 64px 7vw; }
.auth-hero__in { display: flex; flex-direction: column; gap: 22px; max-width: 560px; }
.auth-hero__in > img { width: 190px; margin-bottom: 18px; }
.hero-steps { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 12px; }
.hero-steps li { display: flex; align-items: center; gap: 14px; color: #e5e5ea; font-size: 16px; }
.hero-steps span { width: 28px; height: 28px; border-radius: 50%; border: 1px solid #48484a; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; color: #a1a1a6; flex: none; }
.hero-note { display: flex; align-items: center; gap: 8px; color: #a1a1a6; font-size: 14px; margin-top: 10px; }
.auth-side { flex: 1 1 420px; display: flex; align-items: center; justify-content: center; padding: 48px 22px; background: var(--bg2); }
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 22px; background: var(--bg2); }
.auth-card { width: 100%; max-width: 420px; background: #fff; border-radius: 24px; padding: 40px 36px; display: flex; flex-direction: column; gap: 18px; box-shadow: 0 2px 4px rgba(0, 0, 0, .02), 0 24px 60px rgba(0, 0, 0, .06); }
.auth-logo { width: 170px; }
@media (max-width: 860px) {
  .auth-hero { padding: 36px 22px 32px; flex-basis: 100%; }
  .auth-hero__in { gap: 14px; }
  .auth-hero__in > img { width: 150px; margin-bottom: 6px; }
  .hero-steps, .hero-note { display: none; }
  .lead { font-size: 16px; }
  .auth-side { padding: 24px 16px 40px; align-items: flex-start; }
  .auth-card { padding: 28px 22px; }
}

/* ---------- Tarjetas ---------- */
.card { background: #fff; border: 1px solid var(--line2); border-radius: var(--r); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.card--link { color: var(--ink); text-decoration: none !important; transition: transform .25s var(--ease), box-shadow .25s; }
.card--link:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0, 0, 0, .08); }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-top: 24px; }
.kv { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; padding: 6px 0; border-bottom: 1px solid var(--line2); }
.kv:last-of-type { border-bottom: 0; }
.kv span { color: var(--ink2); }
.kv strong { font-weight: 600; text-align: right; }
.bar { height: 6px; border-radius: 99px; background: var(--line2); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--blue); border-radius: 99px; transition: width 1.2s var(--ease) .2s; }
.in .bar i, .bar.in i, .reveal.in .bar i { width: var(--w); }

.pill { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill--ok { background: var(--ok-bg); color: var(--ok); }
.pill--wait { background: var(--wait-bg); color: var(--wait); }
.pill--off { background: var(--off-bg); color: var(--off); }
.tag { font-style: normal; font-size: 11px; font-weight: 600; color: var(--ink2); background: var(--bg2); border-radius: 6px; padding: 2px 7px; margin-left: 4px; }

/* ---------- Cabecera del expediente ---------- */
.hero { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding: 24px 0 36px; }
.hero__text { flex: 1 1 520px; display: flex; flex-direction: column; gap: 10px; }
.hero--list { align-items: flex-end; }
.next { display: flex; align-items: center; gap: 10px; font-size: 17px; color: var(--ink); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--blue); flex: none; animation: breathe 2s ease-in-out infinite; }
.ring { position: relative; width: 128px; height: 128px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 9; }
.ring__bg { stroke: var(--line2); }
.ring__fg { stroke: var(--blue); stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: 326.7; transition: stroke-dashoffset 1.6s var(--ease) .3s; }
.ring.in .ring__fg { stroke-dashoffset: calc(326.7 - 326.7 * var(--p) / 100); }
.ring__txt { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 600; letter-spacing: -.02em; }
.ring__txt span { font-size: 16px; color: var(--ink2); margin-left: 1px; }

/* ---------- Fases ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(7, minmax(120px, 1fr)); gap: 8px; margin-bottom: 28px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 10px; scrollbar-width: none; }
.steps::-webkit-scrollbar { display: none; }
.steps__line { position: absolute; left: calc(100% / 14); right: calc(100% / 14); top: 21px; height: 2px; background: var(--line2); min-width: 760px; }
.steps__line i { display: block; height: 100%; width: 0; background: var(--ink); transition: width 1.4s var(--ease) .4s; }
.steps.in .steps__line i { width: var(--w); }
.step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 0 6px 12px; color: var(--ink); text-decoration: none !important; scroll-snap-align: start; opacity: 0; transform: translateY(10px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: var(--d); }
.steps.in .step { opacity: 1; transform: none; }
.step::after { content: ""; position: absolute; bottom: 0; left: 30%; right: 30%; height: 2px; border-radius: 2px; background: var(--ink); transform: scaleX(0); transition: transform .35s var(--ease); }
.step.is-sel::after { transform: scaleX(1); }
.step__dot { position: relative; z-index: 1; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; background: #fff; border: 2px solid var(--line); color: var(--ink2); transition: all .3s var(--ease); margin-top: 2px; }
.step.is-done .step__dot { background: var(--ink); border-color: var(--ink); color: #fff; }
.step.is-done .step__dot svg { animation: pop .5s var(--ease) both; animation-delay: calc(var(--d) + .4s); }
.step.is-current .step__dot { border-color: var(--blue); color: var(--blue); animation: pulse 2.2s infinite; }
.step.is-locked .step__dot { background: var(--bg2); border-color: var(--bg2); color: #a1a1a6; }
.step__title { font-size: 13px; font-weight: 600; line-height: 1.25; }
.step__sub { font-size: 12px; color: var(--ink2); line-height: 1.3; }
.step.is-locked .step__title { color: var(--ink2); }
.step:hover .step__dot { transform: scale(1.06); }

/* ---------- Paneles ---------- */
.layout { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.panels { flex: 999 1 600px; min-width: 0; }
.panel { display: none; background: #fff; border: 1px solid var(--line2); border-radius: 24px; padding: 32px; flex-direction: column; gap: 22px; }
.panel.is-active { display: flex; animation: panelIn .5s var(--ease) both; }
.panel__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.panel__head .h2 { margin-top: 4px; }
@media (max-width: 600px) { .panel { padding: 22px 18px; border-radius: 20px; } }

.side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 76px; }
@media (max-width: 960px) { .side { position: static; } }

.lock { background: var(--ink); color: #fff; border-radius: var(--r); padding: 24px; display: flex; flex-direction: column; gap: 8px; transition: background .6s var(--ease); }
.lock strong { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.lock p { font-size: 14px; color: #d1d1d6; }
.lock.is-open { background: var(--blue); }
.lock.is-open p { color: #fff; }
.lock.is-open svg { animation: pop .6s var(--ease) both .3s; }

.person { display: flex; align-items: center; gap: 12px; }
.person > div { display: flex; flex-direction: column; }
.person--row { padding: 10px 0; border-bottom: 1px solid var(--line2); flex-wrap: wrap; }
.person__main { flex: 1 1 200px; display: flex; flex-direction: column; }
.person__actions { display: flex; align-items: center; gap: 4px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--bg2); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; flex: none; }
.feed { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.feed li { display: flex; gap: 10px; font-size: 14px; }
.feed li > span { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); margin-top: 7px; flex: none; }
.feed small { display: block; color: var(--ink2); font-size: 12px; }

/* Documentos y subida */
.upload { display: flex; flex-direction: column; gap: 12px; }
.upload__row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.upload__row .field-inline { flex: 1 1 220px; }
.drop { position: relative; border: 1.5px dashed var(--line); border-radius: 18px; padding: 30px 20px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; background: var(--bg2); cursor: pointer; transition: border-color .2s, background .2s, transform .2s var(--ease); color: var(--ink); font-size: 15px; font-weight: 500 !important; }
.drop:hover, .drop.is-over { border-color: var(--blue); background: var(--blue-soft); }
.drop.is-over { transform: scale(1.01); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; min-height: 0; }
.drop .ic { color: var(--blue); }
.drop__files { font-size: 13px; color: var(--blue); }
.drop--mini { padding: 16px; flex-direction: row; justify-content: center; font-size: 14px; }
.docs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border: 1px solid var(--line2); border-radius: 16px; overflow: hidden; }
.docs li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--line2); }
.docs li:last-child { border-bottom: 0; }
.docs__ic { width: 40px; height: 40px; border-radius: 10px; background: var(--bg2); display: flex; align-items: center; justify-content: center; flex: none; color: var(--ink); }
.docs__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.docs__main a { color: var(--ink); font-weight: 600; }
.docs__main .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty { display: flex; align-items: center; gap: 10px; color: var(--ink2); padding: 18px; background: var(--bg2); border-radius: 14px; font-size: 15px; }
.empty-big { text-align: center; padding: 80px 20px; color: var(--ink2); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cta-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line2); padding-top: 18px; }
.cta-row p { flex: 1 1 260px; }
.readers { display: flex; flex-direction: column; gap: 10px; }

.who { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.who li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--bg2); font-size: 14px; flex-wrap: wrap; transition: background .4s; }
.who li.is-ok { background: var(--ok-bg); }
.who__dot { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid #c7c7cc; display: flex; align-items: center; justify-content: center; flex: none; color: #fff; }
.who li.is-ok .who__dot { background: var(--ok); border-color: var(--ok); animation: pop .5s var(--ease) both; }
.who__name { flex: 1 1 160px; font-weight: 600; }
.who__name em { font-style: normal; font-weight: 400; color: var(--ink2); margin-left: 4px; }
.who__st { color: var(--ink2); }
.who li.is-ok .who__st { color: var(--ok); }

.note { display: flex; gap: 14px; align-items: flex-start; background: var(--bg2); border-radius: 16px; padding: 18px; }
.note > svg { flex: none; margin-top: 1px; color: var(--ink2); }
.note strong { display: block; margin-bottom: 2px; }
.note--warn { background: var(--wait-bg); color: var(--wait); }
.note--warn > svg { color: var(--wait); }
.locked-note { display: flex; gap: 14px; align-items: center; padding: 18px; border-radius: 16px; background: var(--bg2); color: var(--ink2); }
.locked-note strong { color: var(--ink); }

.paper { border: 1px solid var(--line2); border-radius: 18px; padding: 32px; display: flex; flex-direction: column; gap: 14px; font-size: 15.5px; line-height: 1.7; background: linear-gradient(#fff, #fcfcfd); }
.paper__title { margin: 0; font-size: 21px; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; }
.amounts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.amounts div { background: var(--bg2); border-radius: 14px; padding: 12px 16px; display: flex; flex-direction: column; }
.amounts span { font-size: 12px; color: var(--ink2); }
.amounts strong { font-size: 18px; font-weight: 600; }
.amounts .is-total { background: var(--ink); color: #fff; }
.amounts .is-total span { color: #c7c7cc; }

.contract { display: flex; align-items: center; gap: 16px; padding: 18px; border: 1px solid var(--line2); border-radius: 18px; flex-wrap: wrap; }
.contract--s { padding: 12px; }
.contract__ic { width: 48px; height: 56px; border-radius: 10px; background: var(--bg2); display: flex; align-items: center; justify-content: center; flex: none; }
.contract__main { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin: 0; }
.facts div { background: var(--bg2); border-radius: 14px; padding: 12px 16px; }
.facts dt { font-size: 12px; color: var(--ink2); }
.facts dd { margin: 0; font-weight: 600; }

/* Firma */
.sigform { display: flex; flex-direction: column; gap: 14px; }
.sigpad { position: relative; height: 200px; border-radius: 18px; background: var(--bg2); border: 1.5px dashed var(--line); overflow: hidden; touch-action: none; }
.sigpad canvas { width: 100%; height: 100%; display: block; cursor: crosshair; }
.sigpad__hint { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #a1a1a6; pointer-events: none; font-size: 15px; transition: opacity .3s; }
.sigpad.has-ink .sigpad__hint { opacity: 0; }
.sigpad::after { content: ""; position: absolute; left: 32px; right: 32px; bottom: 44px; height: 1px; background: #c7c7cc; pointer-events: none; }
.sigpad__clear { position: absolute; right: 14px; top: 12px; font-size: 13px; }

/* Pagos */
.flow { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; background: var(--bg2); border-radius: 20px; padding: 24px 14px; }
.flow__node { background: #fff; border: 1.5px solid var(--line2); border-radius: 16px; padding: 12px 18px; text-align: center; min-width: 150px; display: flex; flex-direction: column; transition: all .5s var(--ease); }
.flow__node span, .flow__node em { font-size: 12px; color: var(--ink2); font-style: normal; }
.flow__node strong { font-size: 18px; font-weight: 600; }
.flow__node.is-ok { border-color: var(--ok); background: var(--ok-bg); }
.flow__hub { background: #000; border-radius: 16px; padding: 14px 18px; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 150px; }
.flow__hub img { width: 110px; }
.flow__hub em { font-size: 11px; color: #a1a1a6; font-style: normal; }
.flow__arrow { width: 70px; height: 20px; fill: none; stroke: var(--blue); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.flow__arrow .dash { stroke-dasharray: 5 6; animation: flow 1s linear infinite; }
.flow__arrow--rev { transform: scaleX(-1); }
@media (max-width: 700px) { .flow__arrow { transform: rotate(90deg); } .flow__arrow--rev { transform: rotate(-90deg); } .flow { flex-direction: column; } }
.paycards { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 14px; }
.paycard { border: 1px solid var(--line2); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.paycard.is-mine { border: 2px solid var(--blue); }
.paycard header { display: flex; justify-content: space-between; align-items: center; }
.paycard__amt { font-size: 32px; font-weight: 600; letter-spacing: -.02em; }
.paymethods { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.seg { display: flex; background: var(--bg2); padding: 3px; border-radius: 12px; }
.seg button { flex: 1; border: 0; background: transparent; border-radius: 9px; height: 36px; font-size: 13px; font-weight: 500; color: var(--ink2); cursor: pointer; transition: all .25s var(--ease); }
.seg button.is-on { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .1); }
.tab { display: none; flex-direction: column; gap: 10px; }
.tab.is-on { display: flex; animation: panelIn .35s var(--ease) both; }
.admin-row { display: flex; flex-direction: column; gap: 8px; border-top: 1px dashed var(--line); padding-top: 12px; }

/* Validación */
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.checks li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--wait-bg); color: var(--wait); font-size: 15px; }
.checks li.is-ok { background: var(--ok-bg); color: var(--ok); }
.checks__ic { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #fff; flex: none; }
.checks li.is-ok .checks__ic { background: var(--ok); color: #fff; }
.release { background: var(--bg2); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.release__ic { width: 56px; height: 56px; border-radius: 50%; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; animation: pop .6s var(--ease) both .2s; }

/* Panel de gestión */
.admin { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line2); display: flex; flex-direction: column; gap: 20px; }
.admin__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 18px; }
@media (max-width: 520px) { .admin__grid { grid-template-columns: 1fr; } }
.tablewrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; font-weight: 600; color: var(--ink2); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 8px 10px; border-bottom: 1px solid var(--line2); vertical-align: top; }

/* Lista de expedientes */
.explist { display: flex; flex-direction: column; border: 1px solid var(--line2); border-radius: 20px; overflow: hidden; }
.exprow { display: flex; align-items: center; gap: 20px; padding: 18px 22px; border-bottom: 1px solid var(--line2); color: var(--ink); text-decoration: none !important; transition: background .2s; flex-wrap: wrap; }
.exprow:last-child { border-bottom: 0; }
.exprow:hover { background: #fafafc; }
.exprow__main { flex: 1 1 300px; display: flex; flex-direction: column; gap: 2px; }
.exprow__state { flex: 0 1 220px; display: flex; flex-direction: column; gap: 6px; }

/* Ventanas */
.modal { border: 0; border-radius: 24px; padding: 32px; width: min(560px, calc(100vw - 32px)); box-shadow: 0 40px 100px rgba(0, 0, 0, .25); }
.modal::backdrop { background: rgba(0, 0, 0, .35); backdrop-filter: blur(6px); }
.modal[open] { animation: modalIn .4s var(--ease) both; }
.modal pre { white-space: pre-wrap; background: var(--bg2); border-radius: 14px; padding: 16px; font: 14px/1.5 var(--font); margin: 0; }

.toast { position: fixed; left: 50%; top: 18px; transform: translateX(-50%); z-index: 50; background: rgba(29, 29, 31, .92); color: #fff; padding: 12px 20px; border-radius: 99px; font-size: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); animation: toast 4.5s var(--ease) both; max-width: calc(100vw - 32px); text-align: center; }
.toast--err { background: #a1261d; }

/* ---------- Movimiento ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(0, 113, 227, .35); } 70% { box-shadow: 0 0 0 12px rgba(0, 113, 227, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 113, 227, 0); } }
@keyframes breathe { 0%, 100% { opacity: .35; transform: scale(.85); } 50% { opacity: 1; transform: scale(1); } }
@keyframes panelIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes flow { to { stroke-dashoffset: -22; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, -16px); } 8%, 85% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, -10px); visibility: hidden; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .step { opacity: 1; transform: none; }
  .ring__fg { stroke-dashoffset: calc(326.7 - 326.7 * var(--p) / 100); }
  .bar i { width: var(--w); }
  .steps__line i { width: var(--w); }
}
