/* ==========================================================
   Control Vehicular · Sistema de diseño
   Tipografías: Plus Jakarta Sans (títulos) + Inter (texto)
   Paleta: índigo/violeta (marca), turquesa y ámbar (acentos)
   Modo claro y oscuro mediante [data-bs-theme]
   ========================================================== */
:root {
    --cv-font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --cv-font-head: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    --cv-primary: #6366f1;
    --cv-primary-600: #4f46e5;
    --cv-grad: linear-gradient(135deg, #6366f1 0%, #8b5cf6 55%, #a855f7 100%);
    --cv-bg: #f4f5fb;
    --cv-surface: #ffffff;
    --cv-surface-2: #f7f8fe;
    --cv-border: #e5e7f3;
    --cv-text: #0f172a;
    --cv-muted: #64748b;
    --cv-topbar: rgba(244, 245, 251, .82);
    --cv-radius: 18px;
    --cv-shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 2px 8px rgba(15, 23, 42, .04);
    --cv-shadow: 0 18px 40px -18px rgba(67, 56, 202, .28), 0 4px 10px rgba(15, 23, 42, .05);
    --cv-sidebar-w: 276px;
    --cv-chip-text: #4338ca;

    --bs-body-font-family: var(--cv-font);
    --bs-body-bg: var(--cv-bg);
    --bs-body-color: var(--cv-text);
    --bs-secondary-color: var(--cv-muted);
    --bs-border-color: var(--cv-border);
    --bs-link-color-rgb: 79, 70, 229;
    --bs-link-hover-color-rgb: 67, 56, 202;
}
[data-bs-theme="dark"] {
    --cv-bg: #0b0d1a;
    --cv-surface: #141731;
    --cv-surface-2: #1a1e3d;
    --cv-border: #272c55;
    --cv-text: #e8eaf6;
    --cv-muted: #9aa3c7;
    --cv-topbar: rgba(11, 13, 26, .8);
    --cv-shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --cv-shadow: 0 18px 40px -18px rgba(0, 0, 0, .7);
    --cv-chip-text: #c7d2fe;
    --bs-body-bg: var(--cv-bg);
    --bs-body-color: var(--cv-text);
    --bs-secondary-color: var(--cv-muted);
    --bs-border-color: var(--cv-border);
    --bs-link-color-rgb: 165, 180, 252;
    --bs-link-hover-color-rgb: 199, 210, 254;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body {
    font-family: var(--cv-font);
    font-size: .95rem;
    color: var(--cv-text);
    background:
        radial-gradient(1000px 480px at 88% -8%, rgba(139, 92, 246, .13), transparent 60%),
        radial-gradient(800px 380px at -4% 2%, rgba(20, 184, 166, .09), transparent 55%),
        var(--cv-bg);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6, .font-head { font-family: var(--cv-font-head); letter-spacing: -.015em; }
:focus-visible { outline: 3px solid rgba(99, 102, 241, .5); outline-offset: 2px; }
::selection { background: rgba(99, 102, 241, .25); }

/* ---------- Estructura: barra lateral + contenido ---------- */
.app-shell { min-height: 100vh; }
.app-main { min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }
@media (min-width: 992px) {
    .app-shell { display: grid; grid-template-columns: var(--cv-sidebar-w) minmax(0, 1fr); }
    .app-shell .sidebar { position: sticky; top: 0; height: 100vh; }
}
.sidebar {
    --bs-offcanvas-width: var(--cv-sidebar-w);
    background-image: linear-gradient(185deg, #15173d 0%, #1c1b4d 52%, #2a1b5e 100%);
    color: #b8bddf;
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1rem 1rem;
    border: 0;
    overflow-y: auto;
    /* position: relative;  ← eliminar */
}
.sidebar::before { /* brillo decorativo */
    content: ''; position: absolute; inset: 0 0 auto 0; height: 220px; pointer-events: none;
    background: radial-gradient(240px 160px at 20% 0%, rgba(139, 92, 246, .35), transparent 70%);
}
.sidebar > * { position: relative; }
.brand { display: flex; align-items: center; gap: .8rem; padding: .25rem .5rem 1.4rem; text-decoration: none; color: #fff; }
.brand-mark {
    width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 1.3rem; color: #fff;
    background: var(--cv-grad); box-shadow: 0 10px 22px -8px rgba(168, 85, 247, .8), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.brand-name { font-family: var(--cv-font-head); font-weight: 800; font-size: 1.05rem; line-height: 1.1; }
.brand-sub { font-size: .72rem; color: #8f95c8; letter-spacing: .04em; }
.side-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: #7f86bd; padding: 0 .9rem .5rem; font-weight: 600; }
.side-nav { display: flex; flex-direction: column; gap: .25rem; }
.side-link {
    display: flex; align-items: center; gap: .8rem; padding: .72rem .9rem; border-radius: 14px;
    color: #aab0dc; font-weight: 500; text-decoration: none; transition: background .2s, color .2s, transform .2s;
}
.side-link i { font-size: 1.1rem; width: 1.3rem; text-align: center; transition: transform .2s; }
.side-link:hover { background: rgba(255, 255, 255, .07); color: #fff; transform: translateX(3px); }
.side-link:hover i { transform: scale(1.12); }
.side-link.active {
    color: #fff; background: var(--cv-grad);
    box-shadow: 0 12px 24px -12px rgba(139, 92, 246, .95), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.side-link.cta:not(.active) { background: rgba(20, 184, 166, .14); color: #5eead4; }
.side-link.cta:not(.active):hover { background: rgba(20, 184, 166, .24); color: #99f6e4; }
.side-bottom { margin-top: auto; padding-top: 1.25rem; }
.side-user {
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .09); border-radius: 16px; padding: .8rem;
    backdrop-filter: blur(8px);
}
.avatar {
    width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0;
    background: var(--cv-grad); color: #fff; font-weight: 700; font-family: var(--cv-font-head);
}
.side-user .u-name { color: #fff; font-weight: 600; font-size: .9rem; line-height: 1.2; }
.side-user .u-link { color: #9aa0d3; font-size: .78rem; text-decoration: none; }
.side-user .u-link:hover { color: #fff; }
.side-btn {
    border: 1px solid rgba(255, 255, 255, .12); background: transparent; color: #c9cdee; border-radius: 11px;
    padding: .5rem .7rem; font-size: .82rem; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
    transition: background .2s, color .2s, border-color .2s;
}
.side-btn:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.side-btn.danger:hover { background: rgba(244, 63, 94, .2); border-color: rgba(244, 63, 94, .5); color: #fecdd3; }

.topbar {
    position: sticky; top: 0; z-index: 1020; display: flex; align-items: center; gap: .75rem;
    padding: .7rem 1.25rem; background: var(--cv-topbar); border-bottom: 1px solid var(--cv-border);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.topbar .date { color: var(--cv-muted); font-size: .85rem; font-weight: 500; }
.icon-btn {
    width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--cv-border); background: var(--cv-surface);
    color: var(--cv-text); display: inline-grid; place-items: center; transition: transform .15s, background .2s, border-color .2s;
}
.icon-btn:hover { border-color: var(--cv-primary); color: var(--cv-primary); transform: translateY(-1px); }
[data-bs-theme="light"] .t-dark, [data-bs-theme="dark"] .t-light { display: none; }
.content { width: 100%; max-width: 1280px; margin: 0 auto; padding: 1.75rem 1.5rem 3.5rem; flex: 1; }
@media (max-width: 575.98px) { .content { padding: 1.25rem 1rem 3rem; } }

/* ---------- Encabezado de página ---------- */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.page-title { font-weight: 800; font-size: clamp(1.55rem, 2.6vw, 2.05rem); margin: 0; }
.page-sub { color: var(--cv-muted); margin: .25rem 0 0; }
.head-actions { display: flex; gap: .6rem; flex-wrap: wrap; }

/* ---------- Tarjetas ---------- */
.card {
    --bs-card-bg: var(--cv-surface); --bs-card-border-color: var(--cv-border);
    border-radius: var(--cv-radius); box-shadow: var(--cv-shadow-sm);
}
.card-header { background: transparent; border-bottom: 1px solid var(--cv-border); padding: 1rem 1.25rem; }
.card-title-cv { font-family: var(--cv-font-head); font-weight: 700; margin: 0; font-size: 1.02rem; display: flex; align-items: center; gap: .6rem; }
.card-title-cv i { color: var(--cv-primary); }
.stat {
    position: relative; overflow: hidden; height: 100%; padding: 1.25rem; transition: transform .25s, box-shadow .25s;
}
.stat:hover { transform: translateY(-4px); box-shadow: var(--cv-shadow); }
.stat::after {
    content: ''; position: absolute; right: -36px; top: -36px; width: 140px; height: 140px; border-radius: 50%;
    background: radial-gradient(circle, var(--a), transparent 70%); opacity: .14; pointer-events: none;
}
.stat-icon {
    width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; color: #fff; font-size: 1.3rem;
    background: linear-gradient(135deg, var(--a), var(--b)); box-shadow: 0 12px 22px -10px var(--a);
}
.stat-label { color: var(--cv-muted); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.stat-value { font-family: var(--cv-font-head); font-weight: 800; font-size: 1.85rem; line-height: 1.15; letter-spacing: -.02em; }
.stat-foot { font-size: .82rem; color: var(--cv-muted); }
.tone-indigo { --a: #6366f1; --b: #8b5cf6; }
.tone-teal { --a: #14b8a6; --b: #06b6d4; }
.tone-amber { --a: #f59e0b; --b: #f97316; }
.tone-pink { --a: #a855f7; --b: #ec4899; }

/* ---------- Botones ---------- */
.btn {
    font-weight: 600; border-radius: 13px; padding: .62rem 1.15rem; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    transition: transform .15s, box-shadow .2s, filter .2s, background .2s, border-color .2s, color .2s;
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn-sm { padding: .42rem .8rem; border-radius: 11px; font-size: .84rem; }
.btn-lg { padding: .8rem 1.5rem; border-radius: 15px; font-size: 1rem; }
.btn-primary {
    --bs-btn-bg: #6366f1; --bs-btn-border-color: transparent; --bs-btn-hover-bg: #6366f1; --bs-btn-hover-border-color: transparent;
    --bs-btn-active-bg: #4f46e5; --bs-btn-active-border-color: transparent; --bs-btn-disabled-bg: #6366f1; --bs-btn-disabled-border-color: transparent;
    background-image: var(--cv-grad); box-shadow: 0 12px 22px -10px rgba(99, 102, 241, .9), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 16px 28px -10px rgba(99, 102, 241, .95), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-danger { background-image: linear-gradient(135deg, #f43f5e, #e11d48); border: 0; box-shadow: 0 12px 22px -10px rgba(244, 63, 94, .9); }
.btn-danger:hover { filter: brightness(1.08); transform: translateY(-2px); }
.btn-outline-secondary {
    --bs-btn-color: var(--cv-text); --bs-btn-border-color: var(--cv-border); --bs-btn-hover-bg: var(--cv-surface-2);
    --bs-btn-hover-color: var(--cv-primary); --bs-btn-hover-border-color: var(--cv-primary); --bs-btn-active-bg: var(--cv-surface-2);
    --bs-btn-active-color: var(--cv-primary); --bs-btn-active-border-color: var(--cv-primary); background: var(--cv-surface);
}
.btn-soft { --c: 79, 70, 229; background: rgba(var(--c), .11); color: rgb(var(--c)); border: 1px solid transparent; }
.btn-soft:hover, .btn-soft:focus-visible { background: rgba(var(--c), .2); color: rgb(var(--c)); transform: translateY(-1px); }
.btn-soft.c-danger { --c: 225, 29, 72; }
.btn-soft.c-success { --c: 5, 150, 105; }
.btn-soft.c-muted { --c: 71, 85, 105; }
[data-bs-theme="dark"] .btn-soft { --c: 165, 180, 252; }
[data-bs-theme="dark"] .btn-soft.c-danger { --c: 251, 113, 133; }
[data-bs-theme="dark"] .btn-soft.c-success { --c: 52, 211, 153; }
[data-bs-theme="dark"] .btn-soft.c-muted { --c: 148, 163, 184; }
.btn-icon { width: 36px; height: 36px; padding: 0; border-radius: 11px; }
.btn .spinner-border { --bs-spinner-width: 1rem; --bs-spinner-height: 1rem; --bs-spinner-border-width: .15em; }

/* ---------- Píldoras, estados y chips ---------- */
.pill {
    --c: 79, 70, 229; display: inline-flex; align-items: center; gap: .4rem; padding: .28rem .7rem; border-radius: 999px;
    font-size: .78rem; font-weight: 600; background: rgba(var(--c), .11); color: rgb(var(--c)); white-space: nowrap;
}
.pill.s-ok { --c: 5, 150, 105; } .pill.s-off { --c: 100, 116, 139; } .pill.s-warn { --c: 217, 119, 6; }
[data-bs-theme="dark"] .pill { --c: 165, 180, 252; }
[data-bs-theme="dark"] .pill.s-ok { --c: 52, 211, 153; } [data-bs-theme="dark"] .pill.s-off { --c: 148, 163, 184; }
.pill.dot::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(var(--c), .2); }
.pill-list { display: flex; flex-wrap: wrap; gap: .35rem; }
.veh-cell { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.veh-ico {
    width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; font-size: 1.05rem;
    background: rgba(99, 102, 241, .12); color: var(--cv-primary);
}
.veh-name { font-weight: 600; line-height: 1.25; }
.veh-sub { font-size: .78rem; color: var(--cv-muted); }

/* ---------- Tablas ---------- */
.table { --bs-table-bg: transparent; --bs-table-color: var(--cv-text); --bs-table-hover-bg: rgba(99, 102, 241, .06); --bs-table-hover-color: var(--cv-text); margin: 0; }
.table > :not(caption) > * > * { padding: .95rem 1.1rem; border-bottom-color: var(--cv-border); vertical-align: middle; }
.table thead th {
    font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--cv-muted); font-weight: 700;
    background: var(--cv-surface-2); white-space: nowrap; border-bottom: 1px solid var(--cv-border);
}
.table tbody tr:last-child > * { border-bottom: 0; }
.table tbody tr { transition: background .15s; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.row-link { font-weight: 600; text-decoration: none; }
@media (max-width: 767.98px) {
    .table-stack thead { display: none; }
    .table-stack, .table-stack tbody, .table-stack tr, .table-stack td { display: block; width: 100%; }
    .table-stack tbody { padding: .5rem; }
    .table-stack tr { border: 1px solid var(--cv-border); border-radius: 16px; margin-bottom: .75rem; padding: .35rem .95rem; background: var(--cv-surface); }
    .table-stack tr:last-child { margin-bottom: 0; }
    .table-stack td { display: flex; justify-content: space-between; align-items: center; gap: 1rem; border: 0 !important; padding: .5rem 0 !important; text-align: right; }
    .table-stack td::before { content: attr(data-label); color: var(--cv-muted); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; text-align: left; flex-shrink: 0; }
    .table-stack td:not([data-label])::before { display: none; }
    .table-stack td.cell-actions { justify-content: flex-end; padding-top: .7rem !important; border-top: 1px dashed var(--cv-border) !important; margin-top: .3rem; }
    .table-stack .pill-list { justify-content: flex-end; }
}

/* ---------- Formularios ---------- */
.form-label { font-weight: 600; font-size: .84rem; margin-bottom: .4rem; }
.form-control, .form-select {
    border-radius: 13px; border: 1px solid var(--cv-border); background-color: var(--cv-surface); color: var(--cv-text);
    padding: .68rem .95rem; transition: border-color .2s, box-shadow .2s, background .2s;
}
.form-control::placeholder { color: #94a3b8; }
.form-control:hover, .form-select:hover { border-color: #c7caee; }
.form-control:focus, .form-select:focus { border-color: var(--cv-primary); box-shadow: 0 0 0 4px rgba(99, 102, 241, .18); background-color: var(--cv-surface); color: var(--cv-text); }
.form-control:user-invalid, .form-select:user-invalid { border-color: #f43f5e; box-shadow: 0 0 0 4px rgba(244, 63, 94, .12); }
.input-group-text { background: var(--cv-surface-2); border: 1px solid var(--cv-border); color: var(--cv-muted); font-weight: 600; border-radius: 13px; }
.input-group > .form-control:focus, .input-group > .form-select:focus { z-index: 3; }
textarea.form-control { min-height: 96px; resize: vertical; }
.form-card .card-body { padding: 1.5rem; }
@media (min-width: 768px) { .form-card .card-body { padding: 2rem; } }
.form-section { padding: 1.5rem 0; border-top: 1px dashed var(--cv-border); }
.form-section:first-of-type { border-top: 0; padding-top: 0; }
.section-title { display: flex; align-items: center; gap: .7rem; font-family: var(--cv-font-head); font-weight: 700; font-size: 1.02rem; margin-bottom: 1rem; }
.step { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font-size: .8rem; font-weight: 800; color: #fff; background: var(--cv-grad); box-shadow: 0 6px 12px -6px rgba(99, 102, 241, .9); }
.form-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
@media (max-width: 767.98px) {
    .form-actions { position: sticky; bottom: 0; z-index: 5; margin: 1.5rem -1.5rem -1.5rem; padding: .9rem 1.5rem; background: var(--cv-topbar); border-top: 1px solid var(--cv-border); border-radius: 0 0 var(--cv-radius) var(--cv-radius); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
    .form-actions .btn { flex: 1; }
}

/* Servicios seleccionados */
.svc-list { list-style: none; margin: .9rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.svc-item {
    display: inline-flex; align-items: center; gap: .55rem; padding: .4rem .45rem .4rem .85rem; border-radius: 999px;
    background: rgba(99, 102, 241, .11); color: var(--cv-chip-text); font-weight: 600; font-size: .9rem; animation: pop .28s cubic-bezier(.2, .9, .3, 1.3);
}
.svc-remove { width: 26px; height: 26px; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(99, 102, 241, .18); color: inherit; font-size: .7rem; transition: background .15s, color .15s, transform .15s; }
.svc-remove:hover { background: #f43f5e; color: #fff; transform: rotate(90deg); }
.svc-empty { border: 1.5px dashed var(--cv-border); border-radius: 14px; padding: .9rem 1rem; color: var(--cv-muted); font-size: .88rem; margin-top: .9rem; display: flex; align-items: center; gap: .6rem; }

/* Panel de total */
.total-panel {
    position: relative; overflow: hidden; border-radius: 18px; padding: 1rem 1.25rem; color: #fff; height: 100%; min-height: 84px;
    background: var(--cv-grad); box-shadow: 0 18px 30px -16px rgba(99, 102, 241, .9); display: flex; flex-direction: column; justify-content: center;
}
.total-panel::after { content: ''; position: absolute; right: -30px; bottom: -50px; width: 150px; height: 150px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.total-panel .t-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; opacity: .85; font-weight: 600; }
.total-panel .t-value { font-family: var(--cv-font-head); font-size: 1.7rem; font-weight: 800; line-height: 1.15; }
.bump { animation: bump .3s ease; }

/* ---------- Alertas y mensajes ---------- */
.alert { border: 0; border-left: 4px solid currentColor; border-radius: 14px; box-shadow: var(--cv-shadow-sm); padding: .9rem 1.1rem; }
.flash { display: flex; align-items: flex-start; gap: .75rem; animation: slideDown .4s cubic-bezier(.2, .8, .2, 1); margin-bottom: 1.25rem; }
.flash > i { font-size: 1.2rem; line-height: 1.4; }
.flash .flash-body { flex: 1; font-weight: 500; }
.alert-danger ul { padding-left: 1.1rem; }
.empty-state { text-align: center; padding: 3.5rem 1.5rem; }
.empty-icon { width: 76px; height: 76px; border-radius: 24px; display: grid; place-items: center; margin: 0 auto 1.1rem; font-size: 2rem; color: var(--cv-primary); background: rgba(99, 102, 241, .11); animation: float 4s ease-in-out infinite; }
.empty-state h3 { font-size: 1.15rem; font-weight: 700; }
.empty-state p { color: var(--cv-muted); max-width: 380px; margin: 0 auto 1.25rem; }

/* ---------- Modales ---------- */
.modal-content { border: 1px solid var(--cv-border); border-radius: 22px; background: var(--cv-surface); box-shadow: 0 40px 80px -30px rgba(15, 23, 42, .6); }
.modal-header, .modal-footer { border: 0; padding: 1.25rem 1.5rem; }
.modal-body { padding: .25rem 1.5rem 1rem; }
.modal-backdrop.show { opacity: .55; }
.modal.fade .modal-dialog { transform: translateY(18px) scale(.97); transition: transform .3s cubic-bezier(.2, .9, .3, 1.2); }
.modal.show .modal-dialog { transform: none; }
.modal-ico { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; font-size: 1.8rem; margin: 0 auto 1rem; background: rgba(244, 63, 94, .12); color: #f43f5e; }

/* ---------- Paginación ---------- */
.page-link { border: 0; border-radius: 11px !important; margin: 0 .15rem; color: var(--cv-muted); font-weight: 600; background: transparent; min-width: 36px; text-align: center; }
.page-link:hover { background: rgba(99, 102, 241, .12); color: var(--cv-primary); }
.page-item.active .page-link { background-image: var(--cv-grad); color: #fff; box-shadow: 0 8px 16px -8px rgba(99, 102, 241, .9); }
.page-item.disabled .page-link { background: transparent; opacity: .45; }

/* ---------- Detalle ---------- */
.info-tile { background: var(--cv-surface-2); border: 1px solid var(--cv-border); border-radius: 16px; padding: .9rem 1rem; height: 100%; }
.info-tile .i-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--cv-muted); font-weight: 700; display: flex; align-items: center; gap: .4rem; }
.info-tile .i-value { font-weight: 700; font-size: 1.05rem; margin-top: .2rem; }
.quote-box { border-left: 4px solid var(--cv-primary); background: var(--cv-surface-2); border-radius: 0 14px 14px 0; padding: .9rem 1.1rem; }
.cost-head { background: var(--cv-grad); color: #fff; border-radius: var(--cv-radius) var(--cv-radius) 0 0; padding: 1.4rem 1.5rem; position: relative; overflow: hidden; }
.cost-head::after { content: ''; position: absolute; right: -40px; top: -60px; width: 170px; height: 170px; border-radius: 50%; background: rgba(255, 255, 255, .15); }
.cost-line { display: flex; justify-content: space-between; padding: .7rem 0; border-bottom: 1px dashed var(--cv-border); }
.cost-line:last-of-type { border-bottom: 0; }

/* ---------- Pantalla de éxito ---------- */
.success-check { width: 92px; height: 92px; }
.success-check circle { stroke: #10b981; stroke-width: 2.5; stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw .6s ease forwards; }
.success-check path { stroke: #10b981; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .4s .5s ease forwards; }
.success-check { filter: drop-shadow(0 10px 18px rgba(16, 185, 129, .35)); }

/* ---------- Login ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr; }
@media (min-width: 992px) { .auth { grid-template-columns: 1.1fr .9fr; } }
.auth-hero {
    display: none; position: relative; overflow: hidden; padding: 3.5rem; color: #fff;
    background-image: linear-gradient(150deg, #15173d 0%, #2a1b5e 55%, #4c1d95 100%); flex-direction: column; justify-content: space-between;
}
@media (min-width: 992px) { .auth-hero { display: flex; } }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; animation: float 14s ease-in-out infinite; }
.blob.b1 { width: 380px; height: 380px; background: #6366f1; top: -100px; right: -80px; }
.blob.b2 { width: 320px; height: 320px; background: #14b8a6; bottom: -120px; left: -80px; animation-delay: -5s; opacity: .35; }
.blob.b3 { width: 220px; height: 220px; background: #ec4899; top: 45%; left: 40%; animation-delay: -9s; opacity: .25; }
.auth-hero > :not(.blob) { position: relative; }
.auth-hero h2 { font-weight: 800; font-size: clamp(2rem, 3.2vw, 2.9rem); line-height: 1.1; max-width: 520px; }
.auth-feature { display: flex; align-items: center; gap: .85rem; margin-top: 1rem; color: #d7daf5; }
.auth-feature i { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14); color: #fff; }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 2rem 1.25rem; position: relative; }
.auth-card { width: 100%; max-width: 410px; animation: fadeUp .6s cubic-bezier(.2, .8, .2, 1) both; }
.auth-card .brand-mark { width: 54px; height: 54px; border-radius: 17px; font-size: 1.6rem; }

/* ---------- Animaciones ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: scale(1); } }
@keyframes bump { 50% { transform: scale(1.06); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(18px, -22px); } }
.fade-up { animation: fadeUp .55s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 70ms); }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .success-check circle, .success-check path { stroke-dashoffset: 0; }
}