/* Punto Exacto · base styles shared by every view.
   Shape rule: buttons are pills, cards are 16px, inputs are 10px. */
@font-face {
    font-family: "Outfit";
    src: url("fonts/outfit-latin-wght.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
}

/* ---------- Tokens ---------- */
body {
    --bg: #f5f8f7;
    --surface: #ffffff;
    --surface-2: #eaf2f1;
    --text: #1e2a33;
    --muted: #4e6267;
    --line: #dce8e7;
    --field-line: #b7c9c8;
    --accent: #00938f;
    --accent-strong: #006b68;
    --accent-soft: #d6efed;
    --ink-tile: #1e2a33;
    --ink-tile-text: #eef5f5;
    --on-accent: #ffffff;
    --ok-text: #11542d; --ok-bg: #dbf4e4; --ok-solid: #1f8a4c;
    --warn-text: #694309; --warn-bg: #fbefd5; --warn-solid: #b7791f;
    --bad-text: #841e26; --bad-bg: #fde5e7; --bad-solid: #c2343f;
    --shadow-sm: 0 1px 2px rgb(30 42 51 / .06);
    --shadow: 0 1px 2px rgb(30 42 51 / .06), 0 18px 40px -18px rgb(30 42 51 / .25);
    --ease-out: cubic-bezier(.23, 1, .32, 1);
    --radius: 1rem;
    --radius-field: .65rem;
    --display: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
    --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    /* legacy aliases */
    --ink: var(--text); --teal: var(--accent); --dark-teal: var(--accent-strong);
    --subtle: var(--muted); --edge: var(--line); --paper: var(--bg); --white: var(--surface);
    color-scheme: light;
}
html { background: #f5f8f7; }

/* Public pages follow the visitor's system theme. The panel stays light. */
@media (prefers-color-scheme: dark) {
    html:has(> body.theme-auto) { background: #11191f; }
    body.theme-auto {
        --bg: #11191f;
        --surface: #18232b;
        --surface-2: #1d2b33;
        --text: #e8f0f0;
        --muted: #9fb3b6;
        --line: #2a3a43;
        --field-line: #3a4d57;
        --accent: #2fb8b2;
        --accent-strong: #6de0d3;
        --accent-soft: #163b3c;
        --ink-tile: #0b1216;
        --ink-tile-text: #e8f0f0;
        --on-accent: #062928;
        --ok-text: #a6ecc2; --ok-bg: #143b26; --ok-solid: #3cc97a;
        --warn-text: #f6d79c; --warn-bg: #3d2e10; --warn-solid: #e3a73f;
        --bad-text: #ffb8bf; --bad-bg: #44191d; --bad-solid: #f0606b;
        --shadow-sm: 0 1px 2px rgb(0 0 0 / .3);
        --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 18px 40px -18px rgb(0 0 0 / .6);
        color-scheme: dark;
    }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* Nothing may widen the page past the viewport on any screen. */
html { overflow-x: hidden; }
html, body { max-width: 100%; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
body {
    margin: 0; min-height: 100vh; min-height: 100svh;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif; line-height: 1.52;
    color: var(--text); background: var(--bg);
    -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, video, canvas { max-width: 100%; }
main, main > * { min-width: 0; }
h1, h2, h3, p, dd, td, a { overflow-wrap: break-word; }
a { color: var(--accent-strong); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent-soft); color: var(--text); }
.shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0 0 .7em; letter-spacing: -.03em; font-weight: 650; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
code { font-family: var(--mono); font-size: .9em; padding: .1em .35em; border-radius: .3rem; background: var(--surface-2); }

/* ---------- Header & footer ---------- */
.public-site { display: flex; flex-direction: column; }
.public-site > main { flex: 1 0 auto; }
.site-header {
    position: sticky; top: 0; z-index: 20;
    background: color-mix(in srgb, var(--bg) 80%, transparent);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    border-bottom: 1px solid var(--line);
    transition: border-color 200ms ease;
}
.landing .site-header { border-bottom-color: transparent; }
.landing .site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { min-height: 68px; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.brand { display: block; max-width: 100%; width: 168px; height: auto; }
nav { display: flex; align-items: center; gap: .8rem; }
.lp-nav { gap: 1.6rem; }
.lp-nav-link { color: var(--muted) !important; text-decoration: none; font-weight: 550; font-size: .94rem; transition: color 160ms ease; }
.lp-nav-link:hover { color: var(--text) !important; }

.public-footer { border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); }
.public-footer strong { color: var(--text); }
.footer-inner { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; padding-block: 1.5rem; font-size: .875rem; }
.footer-inner a { display: block; }

/* ---------- Buttons ---------- */
button, .button, .lp-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    min-height: 44px; padding: .6rem 1.15rem; border-radius: 999px; border: 1px solid transparent;
    background: var(--accent-strong); color: var(--on-accent); font: inherit; font-weight: 650;
    text-decoration: none; white-space: nowrap; cursor: pointer;
    transition: transform 160ms var(--ease-out), background-color 160ms ease, border-color 160ms ease, box-shadow 200ms ease;
}
.lp-btn { color: var(--on-accent) !important; min-height: 46px; padding-inline: 1.25rem; }
button:active, .button:active, .lp-btn:active { transform: scale(.97); }
button:disabled { opacity: .5; cursor: default; transform: none; }
.lp-btn-sm { min-height: 40px; padding: .45rem 1rem; font-size: .9rem; }
.secondary, .lp-btn-ghost { background: transparent; color: var(--accent-strong) !important; border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.compact { min-height: 36px; font-size: .83rem; padding: .35rem .8rem; }
.danger { color: var(--bad-text); background: var(--bad-bg); border-color: color-mix(in srgb, var(--bad-solid) 30%, transparent); }
@media (hover: hover) and (pointer: fine) {
    button:not(:disabled):hover, .button:hover, .lp-btn:hover { box-shadow: 0 10px 24px -14px var(--accent); }
    .secondary:not(:disabled):hover, .lp-btn-ghost:hover { background: var(--accent-soft); box-shadow: none; }
    .danger:not(:disabled):hover { background: color-mix(in srgb, var(--bad-bg) 70%, var(--bad-solid)); color: var(--bad-text); box-shadow: none; }
}

/* ---------- Forms ---------- */
label { display: grid; gap: .4rem; font-weight: 650; font-size: .875rem; color: var(--text); }
input, select { font: inherit; }
input:not([type="checkbox"]):not([type="file"]), select {
    display: block; width: 100%; min-height: 44px; padding: .55rem .8rem;
    border-radius: var(--radius-field); border: 1.5px solid var(--field-line); background: var(--surface); color: var(--text);
    font-weight: 450; transition: border-color 160ms ease, box-shadow 200ms ease;
}
input:not([type="checkbox"]):focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
input[type="checkbox"] { width: 1.1rem; height: 1.1rem; accent-color: var(--accent-strong); }
input[type="file"] { max-width: 18rem; font-weight: 450; font-size: .85rem; color: var(--muted); }
input[type="file"]::file-selector-button {
    margin-right: .7rem; padding: .45rem .9rem; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
    background: var(--surface); color: var(--accent-strong); font: inherit; font-weight: 650; cursor: pointer;
}

/* Folio lookup card (landing and verification) */
.lp-folio {
    position: relative; width: 100%; max-width: 430px; padding: clamp(1.4rem, 3.5vw, 2.2rem);
    border-radius: calc(var(--radius) + .25rem); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.lp-folio h2 { font-size: 1.55rem; letter-spacing: -.03em; margin: 0 0 .5rem; }
.lp-folio p { color: var(--muted); margin: 0 0 1.4rem; font-size: .96rem; }
.lp-folio input:not([type="checkbox"]) {
    margin-top: .45rem; min-height: 54px; padding: .7rem 1rem; border-radius: .75rem; background: var(--bg);
    font-family: var(--mono); font-size: 1.15rem; letter-spacing: .14em; text-transform: uppercase;
}
.lp-help { display: block; margin: .45rem 0 1rem; font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.lp-help.is-complete { color: var(--accent-strong); font-weight: 650; }
.lp-folio button { width: 100%; min-height: 52px; font-size: 1rem; }

/* Status chips shared by public pages and the panel */
.is-ok, .status-pill.status-vigente { color: var(--ok-text); background: var(--ok-bg); }
.is-warn, .status-pill.status-vencido, .status-pill.status-pendiente { color: var(--warn-text); background: var(--warn-bg); }
.is-bad, .status-pill.status-revocado, .status-pill.status-no-valido { color: var(--bad-text); background: var(--bad-bg); }

/* ---------- Verification ----------
   Built from the landing's pieces: split hero, orbit, physical badge, marquee, steps, contact band.
   --tone carries the status color through pill, title dot, stamp and the current legend row. */
.verify-main { display: block; padding: 0; }
.tone-consulta { --tone: var(--accent); --tone-text: var(--accent-strong); --tone-bg: var(--accent-soft); }
.tone-vigente { --tone: var(--ok-solid); --tone-text: var(--ok-text); --tone-bg: var(--ok-bg); }
.tone-vencido { --tone: var(--warn-solid); --tone-text: var(--warn-text); --tone-bg: var(--warn-bg); }
.tone-revocado, .tone-no-valido { --tone: var(--bad-solid); --tone-text: var(--bad-text); --tone-bg: var(--bad-bg); }
.lp-hero.vf-hero { min-height: min(calc(100svh - 68px), 46rem); }
.vf-pill {
    display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 1.25rem; padding: .3rem .85rem; border-radius: 999px;
    background: var(--tone-bg); color: var(--tone-text); font-weight: 650; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase;
}
.vf-pill-dot { position: relative; width: .5rem; height: .5rem; border-radius: 50%; background: var(--tone); }
.tone-vigente .vf-pill-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--tone); }
.vf-title { font-size: clamp(2.7rem, 6.2vw, 5.4rem); line-height: 1.02; letter-spacing: -.055em; margin: 0 0 1.4rem; max-width: 12ch; }
.tone-consulta .vf-title { font-size: clamp(2.5rem, 5.4vw, 4.6rem); }
.vf-dot { color: var(--tone); }
.vf-copy .lp-lead { max-width: 30rem; }
.vf-checked { display: flex; align-items: baseline; gap: .6rem; margin: 0; color: var(--muted); font-size: .92rem; max-width: 30rem; }
.vf-checked .live-dot { transform: translateY(-.1em); }
.live-dot { position: relative; flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* The badge mirrors the printed one shown on the landing, with the real photo and data. */
.vf-badge-wrap { position: relative; margin: 0; display: grid; justify-items: center; gap: 1rem; width: 100%; perspective: 900px; }
.vf-badge-wrap figcaption { color: var(--muted); font-size: .9rem; }
.vf-badge {
    width: min(100%, 440px); display: grid; gap: 1.1rem; padding: 1.35rem 1.4rem 1.1rem; border-radius: 16px;
    background: #fff; color: #1e2a33; box-shadow: var(--shadow), 0 0 0 1px rgb(30 42 51 / .06);
    transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 500ms var(--ease-out); will-change: transform;
}
.vf-badge-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.vf-badge-head img { width: 132px; height: auto; }
.vf-badge-head span { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #006b68; }
.vf-badge-body { display: grid; grid-template-columns: 132px 1fr; gap: 1.2rem; align-items: center; }
.vf-photo { aspect-ratio: 132 / 160; border-radius: 10px; overflow: hidden; background: #edf2f2; display: grid; place-items: center; }
.vf-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vf-photo svg { width: 58%; }
.vf-photo path { fill: #b9cbcb; }
.vf-photo circle { fill: #8fc9c6; }
.tone-vencido .vf-photo img, .tone-revocado .vf-photo img { filter: grayscale(1); opacity: .78; }
.vf-id { min-width: 0; }
.vf-id h2.vf-hidden { color: #4e6267; font-weight: 600; }
.vf-id h2 { font-size: clamp(1.2rem, 2.2vw, 1.45rem); line-height: 1.15; letter-spacing: -.025em; margin: 0 0 .9rem; color: #1e2a33; overflow-wrap: anywhere; }
.vf-id dl { margin: 0; display: grid; gap: .6rem; }
.vf-id dt { color: #4e6267; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.vf-id dd { margin: .1rem 0 0; font-weight: 650; font-size: .95rem; color: #1e2a33; font-variant-numeric: tabular-nums; }
.folio { font-family: var(--mono); letter-spacing: .06em; overflow-wrap: anywhere; }
.vf-badge-foot {
    display: flex; justify-content: space-between; align-items: center; gap: .75rem;
    border-top: 1.5px solid #00938f; padding-top: .8rem; font-size: .74rem; color: #4e6267;
}
.vf-stamp {
    flex: 0 0 auto; padding: .2rem .7rem; border-radius: 999px; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
    color: #fff; background: var(--tone);
}
/* The badge is always paper-white, so its stamp keeps light-theme status colors in both themes. */
.tone-vigente .vf-stamp { background: #1f8a4c; }
.tone-vencido .vf-stamp { background: #8a5a12; }
.tone-revocado .vf-stamp { background: #c2343f; }

/* What to do next + status legend */
.vf-next { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; padding-block: clamp(4rem, 9vw, 6.5rem) clamp(3rem, 7vw, 5rem); }
.vf-next .lp-steps { margin: 0; }
.vf-legend { padding: clamp(1.4rem, 3vw, 2rem); border-radius: calc(var(--radius) + .5rem); background: var(--surface); border: 1px solid var(--line); }
.vf-legend h3 { font-size: 1.2rem; letter-spacing: -.02em; margin: 0 0 1rem; }
.vf-legend > p { margin: 1.1rem 0 0; color: var(--muted); font-size: .9rem; }
.lp-status.vf-status { grid-template-columns: 1fr; gap: .6rem; }
.lp-status.vf-status div { display: flex; align-items: center; gap: .9rem; padding: .75rem .9rem; background: var(--bg); transition: border-color 200ms ease; }
.lp-status.vf-status dt { margin: 0; flex: 0 0 6.4rem; text-align: center; }
.lp-status.vf-status .is-current { border-color: var(--tone); box-shadow: inset 3px 0 0 var(--tone); }
.lp-status.vf-status .is-current dd { color: var(--text); font-weight: 600; }

.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; }
.back { display: inline-flex; gap: .4rem; align-items: center; margin: 1.1rem 0 0; font-size: .93rem; font-weight: 650; text-decoration: none; }

/* ---------- Auth & error pages ---------- */
.auth-main { display: grid; place-items: center; padding-block: clamp(1.5rem, 6vw, 4rem); min-height: calc(100svh - 69px - 80px); }
.auth-card {
    display: grid; grid-template-columns: 1fr 1.05fr; width: min(940px, 100%); overflow: hidden;
    border-radius: calc(var(--radius) + .5rem); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.auth-aside {
    position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: .5rem;
    min-height: 26rem; padding: clamp(1.6rem, 4vw, 2.4rem); background: var(--ink-tile); color: var(--ink-tile-text);
}
.auth-aside h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); letter-spacing: -.035em; margin: 0; position: relative; }
.auth-aside p { margin: 0; color: color-mix(in srgb, var(--ink-tile-text) 72%, transparent); position: relative; max-width: 30ch; }
.auth-ring { position: absolute; width: 54%; top: 7%; left: 23%; aspect-ratio: 1; }
.auth-ring path { fill: #2fb8b2; opacity: .22; }
.auth-ring circle { fill: #2fb8b2; opacity: .5; }
.auth-form { padding: clamp(1.6rem, 4vw, 2.75rem); display: grid; align-content: center; gap: 1.25rem; }
.auth-form h1 { font-size: clamp(1.8rem, 4vw, 2.2rem); margin: 0; }
.auth-form > p { margin: -.6rem 0 0; color: var(--muted); }
.auth-form button[type="submit"] { width: 100%; min-height: 50px; }
.auth-eyebrow { justify-self: start; margin: 0 0 -.5rem; }
.auth-track { position: absolute; width: 74%; top: 5%; left: 13%; }
.auth-password { display: grid; gap: .4rem; }
.auth-password-field { position: relative; }
.auth-password-field input:not([type="checkbox"]) { padding-right: 6rem; }
.auth-reveal {
    position: absolute; top: 50%; right: .35rem; transform: translateY(-50%); min-height: 34px; padding: .3rem .8rem;
    background: transparent; color: var(--accent-strong); font-size: .82rem; border-radius: 999px;
}
.auth-reveal:active { transform: translateY(-50%) scale(.97); }
@media (hover: hover) and (pointer: fine) { .auth-reveal:hover { background: var(--accent-soft); box-shadow: none !important; } }

.error-main { display: block; padding: 0; }
.lp-hero.err-hero { min-height: min(calc(100svh - 68px - 80px), 44rem); }
.err-title { font-size: clamp(2.4rem, 5.2vw, 4.4rem); line-height: 1.04; letter-spacing: -.05em; margin: 0 0 1.25rem; max-width: 14ch; }
.err-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.err-visual { min-height: 22rem; }
.lp-pulse.err-seal { width: 220px; height: 220px; justify-self: center; }
.err-seal svg { width: 132px; height: 132px; }
.err-seal span { inset: 44px; }

/* ---------- Panel ---------- */
.panel-main { padding-block: 2rem 3.5rem; }
.panel-main > h1, .page-heading h1 { font-size: clamp(1.8rem, 3.6vw, 2.35rem); letter-spacing: -.04em; }
.panel-user { color: var(--muted); font-size: .88rem; font-weight: 600; }
.panel-nav-link { color: var(--muted); font-weight: 600; text-decoration: none; padding: .4rem .2rem; }
.panel-nav-link[aria-current="page"], .panel-nav-link:hover { color: var(--text); }
.surface { background: var(--surface); padding: clamp(1.1rem, 3vw, 1.6rem); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 1rem; box-shadow: var(--shadow-sm); }
.surface > h2:first-child { margin-bottom: 1rem; }
.form-stack { display: grid; gap: .95rem; }
.form-row { display: flex; gap: .85rem; flex-wrap: wrap; align-items: end; }
.form-row label { flex: 1 1 180px; max-width: 24rem; }
.page-heading { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.25rem; }
.page-heading h1 { margin-bottom: 0; overflow-wrap: anywhere; }
.page-heading > a:not(.button) { font-weight: 650; }
.account-name { color: var(--accent-strong); font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 .3rem; }
.panel-main .back { margin: 0 0 1rem; }
.batch-tools { display: flex; gap: .85rem; align-items: end; flex-wrap: wrap; padding-bottom: 1rem; }
.batch-tools label { min-width: 12rem; }
.table-scroll { overflow-x: auto; margin-inline: calc(clamp(1.1rem, 3vw, 1.6rem) * -1); padding-inline: clamp(1.1rem, 3vw, 1.6rem); }
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
th, td { text-align: left; vertical-align: middle; padding: .75rem .6rem; border-bottom: 1px solid var(--line); }
th { font-weight: 650; color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
tbody tr { transition: background-color 120ms ease; }
@media (hover: hover) { tbody tr:hover { background: color-mix(in srgb, var(--surface-2) 55%, transparent); } }
tbody tr:last-child td { border-bottom: 0; }
.row-actions, .person { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .9rem; }
.person { flex-wrap: nowrap; min-width: 13rem; }
td[colspan] { text-align: center; color: var(--muted); padding: 2.25rem 1rem; }
.row-actions a { font-weight: 600; }
.person img { object-fit: cover; border-radius: .4rem; vertical-align: middle; box-shadow: 0 0 0 1px var(--line); }
.check-cell { width: 2.25rem; }
.status-pill { display: inline-block; border-radius: 999px; text-transform: capitalize; font-size: .75rem; font-weight: 700; padding: .18rem .65rem; }
.revoked-meta { display: block; color: var(--muted); margin-top: .3rem; font-size: .82rem; }
summary { cursor: pointer; color: var(--accent-strong); font-weight: 600; }
details form { margin-top: .75rem; }
.notice, .error { margin: 0 0 1rem; border-radius: var(--radius-field); padding: .8rem 1rem; border-left: 4px solid; font-weight: 500; }
.notice { background: var(--ok-bg); color: var(--ok-text); border-color: var(--ok-solid); }
.error, .invalid-row { background: var(--bad-bg); color: var(--bad-text); }
.error { border-color: var(--bad-solid); }
.error ul { margin: 0; padding-left: 1.1em; }
.admin-item { display: grid; gap: .25rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.admin-item:last-child { border-bottom: 0; }
.admin-item span { color: var(--muted); font-size: .9rem; }
.muted { color: var(--muted); }
#import-message:not(:empty) { margin-top: .9rem; }
.pagination { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 0; margin: 1.1rem 0 0; font-size: .9rem; color: var(--muted); }
.pagination a { font-weight: 650; }
.pagination .disabled { color: var(--muted); }

/* ---------- Motion ---------- */
@keyframes pe-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pe-ping { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(2.8); opacity: 0; } }
@keyframes pe-spin { to { transform: rotate(360deg); } }
@keyframes pe-blink { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); } 60% { box-shadow: 0 0 0 6px transparent; } }
@media (prefers-reduced-motion: no-preference) {
    .pe-enter { animation: pe-rise 600ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 70ms + 40ms); }
    .tone-vigente .vf-pill-dot::after { animation: pe-ping 2.4s var(--ease-out) infinite; }
    .auth-ring { animation: pe-spin 80s linear infinite; }
    .live-dot { animation: pe-blink 2.4s ease-out infinite; }
}

/* ---------- Small screens ---------- */
@media (max-width: 960px) {
    .vf-next { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
    .auth-card { grid-template-columns: 1fr; }
    .auth-aside { min-height: 0; padding-top: 5.5rem; }
    .auth-ring { width: 46%; top: -18%; left: auto; right: -8%; }
    .auth-track { width: 64%; top: -30%; left: auto; right: -17%; }
}
@media (max-width: 700px) {
    .shell { width: calc(100% - 32px); }
    .header-inner { min-height: 60px; }
    .brand { width: 140px; }
    .header-inner nav { gap: .5rem; font-size: .85rem; }
    .lp-hero.vf-hero { min-height: 0; }
    .vf-badge { padding: 1.1rem 1.1rem .95rem; gap: .9rem; }
    .vf-badge-head img { width: 112px; }
    .vf-badge-body { grid-template-columns: 96px 1fr; gap: .95rem; }
    .vf-id h2 { margin-bottom: .65rem; }
    .vf-badge-foot { font-size: .68rem; }
    .lp-status.vf-status dt { flex-basis: 5.8rem; }
    .auth-main { min-height: 0; }
    .lp-hero.err-hero { min-height: 0; }
    .err-visual { min-height: 16rem; order: -1; }
    .lp-pulse.err-seal { width: 160px; height: 160px; }
    .err-seal svg { width: 92px; height: 92px; }
    .err-seal span { inset: 34px; }
    .err-actions .lp-btn { flex: 1 1 auto; }
    .panel-user { display: none; }
}
