/* =====================================================================
   Finanria · Sistema de diseño
   Complementa Bootstrap 5.3 (static/vendor). Sin dependencias externas.

   Índice
   1. Tipografía y tokens
   2. Base y utilidades
   3. Botones
   4. Tarjetas, KPIs y paneles
   5. Tablas (con modo "tarjeta" en móvil)
   6. Insignias de estado
   7. Formularios
   8. Layout de la aplicación (menú lateral + barra superior)
   9. Sitio público (encabezado, hero, buscador, categorías, pie)
   10. Autenticación
   11. Gráficos (barras y dona en CSS/SVG)
   12. Estados vacíos, toasts, modal, carga
   13. Impresión
   ===================================================================== */

/* ---------- 1. Tipografía y tokens ---------- */

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../vendor/inter/inter-latin-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../vendor/inter/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    /* Marca */
    --ar-navy-950: #071426;
    --ar-navy-900: #0b1f3a;
    --ar-navy-800: #12294b;
    --ar-navy-700: #1b365f;
    --ar-blue-600: #2563eb;
    --ar-blue-700: #1d4ed8;
    --ar-blue-50: #eff5ff;
    --ar-blue-100: #dbe7fe;

    /* Estados */
    --ar-green-600: #16a34a;
    --ar-green-50: #ecfdf3;
    --ar-red-600: #dc2626;
    --ar-red-50: #fef2f2;
    --ar-amber-600: #b45309;
    --ar-amber-50: #fffbeb;
    --ar-violet-600: #6d28d9;
    --ar-violet-50: #f5f3ff;

    /* Neutros */
    --ar-bg: #ffffff;
    --ar-surface: #f6f8fb;
    --ar-surface-2: #eef2f7;
    --ar-border: #e3e8ef;
    --ar-border-strong: #cfd6e1;
    --ar-text: #0f172a;
    --ar-text-2: #475569;
    --ar-text-3: #64748b;

    /* Forma */
    --ar-radius-sm: 8px;
    --ar-radius: 12px;
    --ar-radius-lg: 16px;
    --ar-shadow-xs: 0 1px 2px rgba(15, 23, 42, .05);
    --ar-shadow-sm: 0 1px 3px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .04);
    --ar-shadow-md: 0 8px 24px -8px rgba(15, 23, 42, .14), 0 2px 6px rgba(15, 23, 42, .05);
    --ar-shadow-lg: 0 24px 48px -16px rgba(11, 31, 58, .28);

    --ar-sidebar-w: 264px;
    --ar-topbar-h: 64px;

    /* Bootstrap */
    --bs-font-sans-serif: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --bs-body-font-family: var(--bs-font-sans-serif);
    --bs-body-color: var(--ar-text);
    --bs-body-bg: var(--ar-bg);
    --bs-primary: #2563eb;
    --bs-primary-rgb: 37, 99, 235;
    --bs-success-rgb: 22, 163, 74;
    --bs-danger-rgb: 220, 38, 38;
    --bs-link-color: var(--ar-blue-600);
    --bs-link-color-rgb: 37, 99, 235;
    --bs-link-hover-color: var(--ar-blue-700);
    --bs-link-hover-color-rgb: 29, 78, 216;
    --bs-border-color: var(--ar-border);
    --bs-border-radius: var(--ar-radius-sm);
    --bs-secondary-color: var(--ar-text-3);
    --bs-emphasis-color: var(--ar-text);
    --bs-focus-ring-color: rgba(37, 99, 235, .25);
}

/* ---------- 2. Base y utilidades ---------- */

html { -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--bs-body-font-family);
    font-size: .9375rem;
    font-feature-settings: "cv11", "ss01";
    -webkit-font-smoothing: antialiased;
    color: var(--ar-text);
    background: var(--ar-bg);
}
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { color: var(--ar-text); letter-spacing: -.015em; font-weight: 650; }
a { text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
.text-muted, .text-body-secondary { color: var(--ar-text-3) !important; }
.text-2 { color: var(--ar-text-2) !important; }
.fw-650 { font-weight: 650; }
.tabular { font-variant-numeric: tabular-nums; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.small-caps { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; color: var(--ar-text-3); }
.bg-surface { background: var(--ar-surface) !important; }
.link-plain { color: inherit; }
.link-plain:hover { color: var(--ar-blue-600); text-decoration: none; }
::selection { background: var(--ar-blue-100); }
:focus-visible { outline: 2px solid var(--ar-blue-600); outline-offset: 2px; }

/* Placa (estilo matrícula colombiana) */
.placa {
    display: inline-block;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .8rem; font-weight: 700; letter-spacing: .08em;
    color: #111827; background: #fcd34d;
    border: 1.5px solid #111827; border-radius: 5px;
    padding: .05rem .45rem; line-height: 1.5; white-space: nowrap;
}

/* Avatar con iniciales */
.avatar {
    --s: 36px;
    width: var(--s); height: var(--s); flex: 0 0 var(--s);
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: calc(var(--s) * .38); font-weight: 650; letter-spacing: .02em;
    color: var(--ar-navy-800); background: var(--ar-blue-100);
    text-transform: uppercase;
}
.avatar-lg { --s: 72px; }
.avatar-sm { --s: 30px; }

/* Ícono en caja */
.icon-box {
    --s: 40px;
    width: var(--s); height: var(--s); flex: 0 0 var(--s);
    border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.15rem;
    background: var(--ar-blue-50); color: var(--ar-blue-600);
}
.icon-box.is-green { background: var(--ar-green-50); color: var(--ar-green-600); }
.icon-box.is-red { background: var(--ar-red-50); color: var(--ar-red-600); }
.icon-box.is-amber { background: var(--ar-amber-50); color: var(--ar-amber-600); }
.icon-box.is-violet { background: var(--ar-violet-50); color: var(--ar-violet-600); }
.icon-box.is-navy { background: var(--ar-navy-900); color: #fff; }
.icon-box.is-gray { background: var(--ar-surface-2); color: var(--ar-text-2); }

/* ---------- 3. Botones ---------- */

.btn {
    --bs-btn-font-weight: 600;
    --bs-btn-font-size: .875rem;
    --bs-btn-padding-y: .5rem;
    --bs-btn-padding-x: .95rem;
    --bs-btn-border-radius: var(--ar-radius-sm);
    display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
    transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s;
}
.btn:hover { text-decoration: none; }
.btn-sm { --bs-btn-padding-y: .32rem; --bs-btn-padding-x: .65rem; --bs-btn-font-size: .8125rem; --bs-btn-border-radius: 7px; gap: .35rem; }
.btn-lg { --bs-btn-padding-y: .75rem; --bs-btn-padding-x: 1.35rem; --bs-btn-font-size: 1rem; --bs-btn-border-radius: 10px; }

.btn-primary, .btn-acento {
    --bs-btn-color: #fff; --bs-btn-bg: var(--ar-blue-600); --bs-btn-border-color: var(--ar-blue-600);
    --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--ar-blue-700); --bs-btn-hover-border-color: var(--ar-blue-700);
    --bs-btn-active-color: #fff; --bs-btn-active-bg: #1e40af; --bs-btn-active-border-color: #1e40af;
    --bs-btn-disabled-bg: var(--ar-blue-600); --bs-btn-disabled-border-color: var(--ar-blue-600);
    --bs-btn-focus-shadow-rgb: 37, 99, 235;
    box-shadow: 0 1px 2px rgba(37, 99, 235, .25), inset 0 1px 0 rgba(255, 255, 255, .12);
}
.btn-dark, .btn-navy {
    --bs-btn-color: #fff; --bs-btn-bg: var(--ar-navy-900); --bs-btn-border-color: var(--ar-navy-900);
    --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--ar-navy-700); --bs-btn-hover-border-color: var(--ar-navy-700);
    --bs-btn-active-bg: var(--ar-navy-950); --bs-btn-active-border-color: var(--ar-navy-950); --bs-btn-active-color: #fff;
}
.btn-light, .btn-outline-secondary, .btn-secondary {
    --bs-btn-color: var(--ar-text); --bs-btn-bg: #fff; --bs-btn-border-color: var(--ar-border-strong);
    --bs-btn-hover-color: var(--ar-text); --bs-btn-hover-bg: var(--ar-surface); --bs-btn-hover-border-color: #b8c2d1;
    --bs-btn-active-color: var(--ar-text); --bs-btn-active-bg: var(--ar-surface-2); --bs-btn-active-border-color: #b8c2d1;
    box-shadow: var(--ar-shadow-xs);
}
.btn-outline-primary {
    --bs-btn-color: var(--ar-blue-600); --bs-btn-bg: #fff; --bs-btn-border-color: #bcd0fb;
    --bs-btn-hover-color: var(--ar-blue-700); --bs-btn-hover-bg: var(--ar-blue-50); --bs-btn-hover-border-color: #93b4f8;
    --bs-btn-active-color: var(--ar-blue-700); --bs-btn-active-bg: var(--ar-blue-100); --bs-btn-active-border-color: #93b4f8;
}
.btn-danger {
    --bs-btn-bg: var(--ar-red-600); --bs-btn-border-color: var(--ar-red-600);
    --bs-btn-hover-bg: #b91c1c; --bs-btn-hover-border-color: #b91c1c;
    --bs-btn-active-bg: #991b1b; --bs-btn-active-border-color: #991b1b;
}
.btn-outline-danger {
    --bs-btn-color: var(--ar-red-600); --bs-btn-bg: #fff; --bs-btn-border-color: #f5c2c2;
    --bs-btn-hover-color: #b91c1c; --bs-btn-hover-bg: var(--ar-red-50); --bs-btn-hover-border-color: #ef9a9a;
    --bs-btn-active-color: #991b1b; --bs-btn-active-bg: #fee2e2; --bs-btn-active-border-color: #ef9a9a;
}
.btn-outline-success {
    --bs-btn-color: var(--ar-green-600); --bs-btn-bg: #fff; --bs-btn-border-color: #b7e4c7;
    --bs-btn-hover-color: #15803d; --bs-btn-hover-bg: var(--ar-green-50); --bs-btn-hover-border-color: #86d3a3;
}
.btn-white {
    --bs-btn-color: var(--ar-navy-900); --bs-btn-bg: #fff; --bs-btn-border-color: #fff;
    --bs-btn-hover-color: var(--ar-navy-900); --bs-btn-hover-bg: #eaf0fb; --bs-btn-hover-border-color: #eaf0fb;
}
.btn-ghost-light {
    --bs-btn-color: #fff; --bs-btn-bg: rgba(255, 255, 255, .08); --bs-btn-border-color: rgba(255, 255, 255, .22);
    --bs-btn-hover-color: #fff; --bs-btn-hover-bg: rgba(255, 255, 255, .16); --bs-btn-hover-border-color: rgba(255, 255, 255, .35);
}

/* Botones de ícono para acciones de tabla */
.btn-icon {
    width: 32px; height: 32px; padding: 0 !important;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 8px; border: 1px solid transparent;
    color: var(--ar-text-3); background: transparent;
    transition: background-color .15s, color .15s, border-color .15s;
}
.btn-icon:hover { background: var(--ar-surface-2); color: var(--ar-text); text-decoration: none; }
.btn-icon.is-primary:hover { background: var(--ar-blue-50); color: var(--ar-blue-600); }
.btn-icon.is-danger:hover { background: var(--ar-red-50); color: var(--ar-red-600); }
.btn-icon.is-success:hover { background: var(--ar-green-50); color: var(--ar-green-600); }
.acciones { display: inline-flex; gap: .15rem; justify-content: flex-end; }

/* ---------- 4. Tarjetas, KPIs y paneles ---------- */

.card {
    --bs-card-border-color: var(--ar-border);
    --bs-card-border-radius: var(--ar-radius);
    --bs-card-inner-border-radius: calc(var(--ar-radius) - 1px);
    --bs-card-cap-bg: #fff;
    --bs-card-spacer-y: 1.25rem;
    --bs-card-spacer-x: 1.25rem;
    border: 1px solid var(--ar-border);
    box-shadow: var(--ar-shadow-xs);
}
.card.shadow-sm { box-shadow: var(--ar-shadow-xs) !important; }
.card-header { background: #fff; border-bottom: 1px solid var(--ar-border); padding: .95rem 1.25rem; }
.card-footer { background: var(--ar-surface); border-top: 1px solid var(--ar-border); }

.panel-title { font-size: .975rem; font-weight: 650; margin: 0; display: flex; align-items: center; gap: .5rem; }
.panel-title .bi { color: var(--ar-text-3); }
.panel-sub { font-size: .8125rem; color: var(--ar-text-3); margin: 0; }

.kpi { padding: 1.15rem 1.25rem; height: 100%; }
.kpi-label { font-size: .8125rem; color: var(--ar-text-2); font-weight: 500; }
.kpi-value { font-size: 1.75rem; font-weight: 700; letter-spacing: -.025em; line-height: 1.15; margin-top: .35rem; font-variant-numeric: tabular-nums; }
.kpi-value small { font-size: .9rem; font-weight: 500; color: var(--ar-text-3); letter-spacing: 0; }
.kpi-foot { font-size: .78rem; color: var(--ar-text-3); margin-top: .35rem; }
a.card-link-wrap { color: inherit; display: block; height: 100%; }
a.card-link-wrap:hover { text-decoration: none; }
a.card-link-wrap .card { transition: border-color .15s, box-shadow .15s, transform .15s; }
a.card-link-wrap:hover .card { border-color: #c4d3ee; box-shadow: var(--ar-shadow-md); }

/* Lista de filas dentro de una tarjeta */
.list-rows { list-style: none; margin: 0; padding: 0; }
.list-rows > li, .list-rows > a {
    display: flex; align-items: center; gap: .85rem;
    padding: .8rem 1.25rem; border-top: 1px solid var(--ar-border); color: inherit;
}
.list-rows > :first-child { border-top: 0; }
.list-rows > a:hover { background: var(--ar-surface); text-decoration: none; }
.list-rows .grow { flex: 1 1 auto; min-width: 0; }
.list-rows .t1 { font-weight: 600; font-size: .875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-rows .t2 { font-size: .8rem; color: var(--ar-text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Pares descripción/valor */
.dl-grid { display: grid; grid-template-columns: 1fr; gap: .85rem; margin: 0; }
.dl-grid dt { font-size: .75rem; font-weight: 600; color: var(--ar-text-3); text-transform: uppercase; letter-spacing: .05em; margin-bottom: .1rem; }
.dl-grid dd { margin: 0; font-weight: 500; }
@media (min-width: 576px) { .dl-grid.cols-2 { grid-template-columns: 1fr 1fr; } }

/* 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-head h1 { font-size: 1.5rem; font-weight: 700; margin: 0; letter-spacing: -.02em; }
.page-head p { margin: .25rem 0 0; color: var(--ar-text-2); }
.page-head .acciones-pagina { display: flex; flex-wrap: wrap; gap: .5rem; }
.breadcrumb-ar { display: flex; align-items: center; gap: .4rem; font-size: .8125rem; color: var(--ar-text-3); margin-bottom: .5rem; }
.breadcrumb-ar a { color: var(--ar-text-2); }
.breadcrumb-ar .bi { font-size: .7rem; }

/* Barra de filtros */
.filtros { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; padding: .85rem 1rem; border-bottom: 1px solid var(--ar-border); }
.filtros .buscar { position: relative; flex: 1 1 240px; }
.filtros .buscar .bi { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); color: var(--ar-text-3); pointer-events: none; }
.filtros .buscar .form-control { padding-left: 2.25rem; }
.filtros .form-select { flex: 0 1 200px; width: auto; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .35rem .75rem; border-radius: 999px; font-size: .8125rem; font-weight: 500;
    border: 1px solid var(--ar-border); background: #fff; color: var(--ar-text-2);
}
.chip:hover { border-color: var(--ar-border-strong); color: var(--ar-text); text-decoration: none; }
.chip.active { background: var(--ar-navy-900); border-color: var(--ar-navy-900); color: #fff; }
.chip .count { font-size: .72rem; opacity: .75; }

/* ---------- 5. Tablas ---------- */

.table {
    --bs-table-bg: transparent;
    --bs-table-hover-bg: var(--ar-surface);
    --bs-table-border-color: var(--ar-border);
    margin-bottom: 0;
    font-size: .875rem;
}
.table > :not(caption) > * > * { padding: .8rem 1rem; }
.table thead th, .table thead.table-dark th {
    background: var(--ar-surface) !important; color: var(--ar-text-3) !important;
    font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em;
    white-space: nowrap; border-bottom: 1px solid var(--ar-border); border-top: 0;
}
.table td { vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tfoot th, .table tfoot td { background: var(--ar-surface); border-bottom: 0; }
.card > .table-responsive:first-child .table thead th:first-child { border-top-left-radius: calc(var(--ar-radius) - 1px); }
.card > .table-responsive:first-child .table thead th:last-child { border-top-right-radius: calc(var(--ar-radius) - 1px); }
.celda-principal { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.celda-principal .t1 { font-weight: 600; color: var(--ar-text); }
.celda-principal .t2 { font-size: .8rem; color: var(--ar-text-3); }
.celda-principal a.t1:hover { color: var(--ar-blue-600); }
.mini-auto { width: 56px; height: 34px; flex: 0 0 56px; border-radius: 8px; background: var(--ar-surface); border: 1px solid var(--ar-border); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.mini-auto svg { width: 48px; height: auto; }

/* En pantallas pequeñas, cada fila se convierte en tarjeta */
@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 tr { padding: .85rem 1rem; border-top: 1px solid var(--ar-border); }
    .table-stack tbody tr:first-child { border-top: 0; }
    .table-stack > :not(caption) > * > * { padding: .25rem 0; border: 0; }
    .table-stack td[data-label] { display: flex; justify-content: space-between; gap: 1rem; text-align: right !important; }
    .table-stack td[data-label]::before { content: attr(data-label); font-size: .75rem; font-weight: 600; color: var(--ar-text-3); text-transform: uppercase; letter-spacing: .04em; text-align: left; }
    .table-stack td.td-main { padding-bottom: .5rem; }
    .table-stack td.td-actions { padding-top: .5rem; text-align: left !important; }
    .table-stack td.td-actions .acciones { justify-content: flex-start; }
    .table-stack tfoot { display: block; }
    .table-stack tfoot tr { display: flex; justify-content: space-between; }
    .table-stack tfoot th, .table-stack tfoot td { display: block; width: auto; }
    .table-stack td.td-empty { text-align: center !important; }
}

/* Paginación */
.pagination { --bs-pagination-border-color: var(--ar-border); --bs-pagination-color: var(--ar-text-2); --bs-pagination-border-radius: var(--ar-radius-sm); --bs-pagination-font-size: .875rem; gap: .35rem; }
.pagination .page-link { border-radius: var(--ar-radius-sm) !important; }
.paginacion-ar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 1rem; border-top: 1px solid var(--ar-border); font-size: .8125rem; color: var(--ar-text-3); }

/* ---------- 6. Insignias de estado ---------- */

.badge { font-weight: 600; }
.estado {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .2rem .6rem .2rem .5rem; border-radius: 999px;
    font-size: .75rem; font-weight: 600; line-height: 1.4; white-space: nowrap;
    border: 1px solid transparent;
}
.estado::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.estado-ok { color: #15803d; background: var(--ar-green-50); border-color: #c6ecd4; }
.estado-info { color: var(--ar-blue-700); background: var(--ar-blue-50); border-color: #cfdcfb; }
.estado-warn { color: var(--ar-amber-600); background: var(--ar-amber-50); border-color: #fbe3ad; }
.estado-danger { color: #b91c1c; background: var(--ar-red-50); border-color: #f8cccc; }
.estado-neutral { color: var(--ar-text-2); background: var(--ar-surface-2); border-color: var(--ar-border); }
.estado-violet { color: var(--ar-violet-600); background: var(--ar-violet-50); border-color: #e2dafc; }
.tag { display: inline-flex; align-items: center; gap: .3rem; font-size: .75rem; font-weight: 600; padding: .15rem .5rem; border-radius: 6px; background: var(--ar-surface-2); color: var(--ar-text-2); white-space: nowrap; }

/* ---------- 7. Formularios ---------- */

.form-label { font-weight: 600; font-size: .8125rem; color: var(--ar-text); margin-bottom: .35rem; }
.form-control, .form-select {
    font-size: .9rem; border-color: var(--ar-border-strong); border-radius: var(--ar-radius-sm);
    padding: .55rem .8rem; min-height: 42px; box-shadow: var(--ar-shadow-xs);
    transition: border-color .15s, box-shadow .15s;
}
.form-select { padding-right: 2.25rem; }
.form-control:hover, .form-select:hover { border-color: #b3bdcc; }
.form-control:focus, .form-select:focus { border-color: var(--ar-blue-600); box-shadow: 0 0 0 3px rgba(37, 99, 235, .15); }
.form-control::placeholder { color: #94a3b8; }
.form-control-sm, .form-select-sm { min-height: 34px; padding-top: .3rem; padding-bottom: .3rem; font-size: .8125rem; }
.form-check-input { width: 1.1em; height: 1.1em; border-color: var(--ar-border-strong); }
.form-check-input:checked { background-color: var(--ar-blue-600); border-color: var(--ar-blue-600); }
.form-text { color: var(--ar-text-3); font-size: .78rem; }
.campo-error { color: var(--ar-red-600); font-size: .8rem; margin-top: .3rem; display: flex; gap: .3rem; align-items: flex-start; }
.campo-error::before { content: "\F33A"; font-family: "bootstrap-icons"; }
.has-error .form-control, .has-error .form-select { border-color: #f08b8b; background-color: #fffafa; }
.errorlist { list-style: none; padding: 0; margin: 0; }
.req { color: var(--ar-red-600); }

.form-section { padding: 1.5rem; border-top: 1px solid var(--ar-border); }
.form-section:first-child { border-top: 0; }
.form-section-head { margin-bottom: 1rem; }
.form-section-head h2 { font-size: 1rem; font-weight: 650; margin: 0; }
.form-section-head p { font-size: .8125rem; color: var(--ar-text-3); margin: .2rem 0 0; }
.form-actions { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; padding: 1rem 1.5rem; background: var(--ar-surface); border-top: 1px solid var(--ar-border); border-radius: 0 0 var(--ar-radius) var(--ar-radius); }
.check-card { display: flex; gap: .75rem; align-items: flex-start; padding: .85rem 1rem; border: 1px solid var(--ar-border); border-radius: var(--ar-radius-sm); background: var(--ar-surface); }
.check-card .form-check-input { margin-top: .15rem; flex: 0 0 auto; }
.check-card label { font-weight: 500; font-size: .875rem; }

.fila-accesorio { display: grid; grid-template-columns: 1fr 120px auto; gap: .75rem; align-items: end; padding: .85rem; border: 1px solid var(--ar-border); border-radius: var(--ar-radius-sm); background: #fff; margin-bottom: .6rem; }
.fila-accesorio.quitada { opacity: .5; background: var(--ar-surface); }
.fila-accesorio .quitar { display: inline-flex; align-items: center; gap: .4rem; font-size: .8125rem; color: var(--ar-text-2); cursor: pointer; padding: .5rem .25rem; white-space: nowrap; margin: 0; }
@media (max-width: 575.98px) { .fila-accesorio { grid-template-columns: 1fr 1fr; } .fila-accesorio > :first-of-type { grid-column: 1 / -1; } }

/* Resumen de totales (formulario de alquiler) */
.resumen { position: sticky; top: calc(var(--ar-topbar-h) + 1.25rem); }
.resumen-total { background: var(--ar-navy-900); color: #fff; border-radius: var(--ar-radius) var(--ar-radius) 0 0; padding: 1.25rem; }
.resumen-total .lbl { font-size: .8rem; color: rgba(255, 255, 255, .7); }
.resumen-total .val { font-size: 2rem; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; margin-top: .25rem; }
.resumen-lineas { list-style: none; padding: 0; margin: 0; font-size: .85rem; }
.resumen-lineas li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px dashed var(--ar-border); }
.resumen-lineas li:last-child { border-bottom: 0; }
.resumen-lineas span:last-child { font-variant-numeric: tabular-nums; font-weight: 600; }

/* ---------- 8. Layout de la aplicación ---------- */

body.app { background: var(--ar-surface); }
.app-sidebar {
    position: fixed; inset: 0 auto 0 0; width: var(--ar-sidebar-w); z-index: 1040;
    background: var(--ar-navy-900);
    background-image: radial-gradient(120% 60% at 0% 0%, rgba(37, 99, 235, .18), transparent 60%);
    color: #c7d2e4; display: flex; flex-direction: column;
}
.app-sidebar .brand { height: var(--ar-topbar-h); display: flex; align-items: center; gap: .6rem; padding: 0 1.25rem; color: #fff; font-weight: 700; font-size: 1.1rem; letter-spacing: -.01em; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.app-sidebar .brand:hover { text-decoration: none; }
.brand-mark { width: 32px; height: 32px; border-radius: 9px; background: var(--ar-blue-600); display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 1rem; box-shadow: 0 4px 12px rgba(37, 99, 235, .45); }
.app-nav { flex: 1 1 auto; overflow-y: auto; padding: 1rem .75rem; }
.app-nav .grupo { font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .09em; color: #6f82a3; padding: 1rem .75rem .4rem; }
.app-nav .grupo:first-child { padding-top: .25rem; }
.app-nav a {
    display: flex; align-items: center; gap: .7rem;
    padding: .55rem .75rem; margin-bottom: 2px; border-radius: 8px;
    color: #c7d2e4; font-size: .875rem; font-weight: 500;
    transition: background-color .15s, color .15s;
}
.app-nav a .bi { font-size: 1.05rem; color: #8a9bb8; transition: color .15s; }
.app-nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; text-decoration: none; }
.app-nav a:hover .bi { color: #fff; }
.app-nav a.active { background: rgba(37, 99, 235, .22); color: #fff; box-shadow: inset 2px 0 0 #60a5fa; }
.app-nav a.active .bi { color: #93c5fd; }
.app-nav a .ext { margin-left: auto; font-size: .7rem; opacity: .6; }
.app-sidebar .sidebar-user { padding: .9rem 1rem; border-top: 1px solid rgba(255, 255, 255, .06); display: flex; align-items: center; gap: .7rem; }
.app-sidebar .sidebar-user .avatar { background: rgba(255, 255, 255, .12); color: #fff; }
.app-sidebar .sidebar-user .n { color: #fff; font-weight: 600; font-size: .85rem; line-height: 1.2; }
.app-sidebar .sidebar-user .r { font-size: .75rem; color: #8a9bb8; }

.app-main { margin-left: var(--ar-sidebar-w); min-height: 100vh; display: flex; flex-direction: column; }
.app-topbar {
    position: sticky; top: 0; z-index: 1030; height: var(--ar-topbar-h);
    display: flex; align-items: center; gap: 1rem; padding: 0 1.75rem;
    background: rgba(255, 255, 255, .86); backdrop-filter: saturate(180%) blur(10px); -webkit-backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--ar-border);
}
.app-topbar .titulo { font-weight: 600; font-size: .95rem; color: var(--ar-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-topbar .fecha { font-size: .8125rem; color: var(--ar-text-3); }
.app-content { flex: 1 1 auto; padding: 1.75rem; width: 100%; max-width: 1440px; }
.app-footer { padding: 1rem 1.75rem 1.5rem; font-size: .78rem; color: var(--ar-text-3); }
.user-menu-btn { display: flex; align-items: center; gap: .6rem; padding: .3rem .5rem .3rem .3rem; border-radius: 999px; border: 1px solid var(--ar-border); background: #fff; color: var(--ar-text); font-size: .85rem; font-weight: 600; }
.user-menu-btn:hover { background: var(--ar-surface); }
.dropdown-menu { --bs-dropdown-border-color: var(--ar-border); --bs-dropdown-border-radius: var(--ar-radius); --bs-dropdown-font-size: .875rem; --bs-dropdown-link-hover-bg: var(--ar-surface); --bs-dropdown-link-active-bg: var(--ar-blue-600); --bs-dropdown-item-padding-y: .5rem; box-shadow: var(--ar-shadow-md); padding: .35rem; }
.dropdown-item { border-radius: 7px; display: flex; align-items: center; gap: .6rem; }
.dropdown-item .bi { color: var(--ar-text-3); }
.dropdown-header { font-size: .72rem; }

.sidebar-backdrop { display: none; }
@media (max-width: 991.98px) {
    .app-sidebar { transform: translateX(-100%); transition: transform .25s ease; box-shadow: var(--ar-shadow-lg); }
    body.sidebar-open .app-sidebar { transform: none; }
    body.sidebar-open .sidebar-backdrop { display: block; position: fixed; inset: 0; z-index: 1035; background: rgba(7, 20, 38, .45); }
    .app-main { margin-left: 0; }
    .app-topbar { padding: 0 1rem; }
    .app-content { padding: 1.25rem 1rem; }
    .app-footer { padding: 1rem; }
}
@media (max-width: 575.98px) { .page-head h1 { font-size: 1.3rem; } .page-head .acciones-pagina, .page-head .acciones-pagina .btn { width: 100%; } }

/* ---------- 9. Sitio público ---------- */

body.publico { background: #fff; }
.site-header { position: sticky; top: 0; z-index: 1030; background: rgba(255, 255, 255, .9); backdrop-filter: saturate(180%) blur(10px); -webkit-backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--ar-border); }
.site-header .navbar { --bs-navbar-padding-y: .8rem; }
.site-header .navbar-brand { display: flex; align-items: center; gap: .55rem; font-weight: 700; color: var(--ar-navy-900); letter-spacing: -.01em; }
.site-header .nav-link { font-weight: 500; font-size: .9rem; color: var(--ar-text-2); padding-left: .9rem !important; padding-right: .9rem !important; }
.site-header .nav-link:hover { color: var(--ar-text); text-decoration: none; }

.hero-pub {
    position: relative; overflow: hidden; color: #fff;
    background: var(--ar-navy-900);
    background-image:
        radial-gradient(60% 80% at 85% 10%, rgba(37, 99, 235, .45), transparent 60%),
        radial-gradient(40% 60% at 0% 100%, rgba(37, 99, 235, .25), transparent 60%);
    padding: 5rem 0 7.5rem;
}
.hero-pub::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to bottom, #000, transparent 85%); pointer-events: none; }
.hero-pub > .container { position: relative; z-index: 1; }
.hero-pub .eyebrow { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .8rem; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); font-size: .8rem; font-weight: 500; color: #dbe7fe; }
.hero-pub .eyebrow .punto { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgba(74, 222, 128, .25); }
.hero-pub h1 { color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 750; letter-spacing: -.035em; line-height: 1.05; margin: 1.25rem 0 1rem; }
.hero-pub h1 em { font-style: normal; color: #93c5fd; }
.hero-pub .lead { color: #b9c6dc; font-size: 1.1rem; max-width: 34rem; }
.hero-pub .hero-auto { width: 100%; max-width: 560px; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .35)); }
.hero-stats { display: flex; flex-wrap: wrap; gap: 2rem; margin-top: 2.25rem; }
.hero-stats div { font-size: .8125rem; color: #9fb0cc; }
.hero-stats strong { display: block; font-size: 1.5rem; color: #fff; font-weight: 700; letter-spacing: -.02em; }

.buscador { position: relative; z-index: 2; margin-top: -3.5rem; }
.buscador .card { border: 0; box-shadow: var(--ar-shadow-lg); border-radius: var(--ar-radius-lg); }
.buscador .card-body { padding: 1.25rem; }
.buscador .form-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ar-text-3); }

.seccion { padding: 5rem 0; }
.seccion-sm { padding: 3.5rem 0; }
.seccion-head { max-width: 40rem; margin-bottom: 2.5rem; }
.seccion-head .kicker { font-size: .8rem; font-weight: 600; color: var(--ar-blue-600); text-transform: uppercase; letter-spacing: .08em; }
.seccion-head h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 700; letter-spacing: -.025em; margin: .5rem 0 .6rem; }
.seccion-head p { color: var(--ar-text-2); font-size: 1.02rem; margin: 0; }

.cat-card { border-radius: var(--ar-radius-lg); overflow: hidden; height: 100%; transition: transform .2s, box-shadow .2s, border-color .2s; }
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--ar-shadow-md); border-color: #c4d3ee; }
.cat-card .foto { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(160deg, #f1f5fb 0%, #e3eaf5 100%); display: flex; align-items: center; justify-content: center; }
.cat-card .foto svg { width: 82%; height: auto; }
.cat-card .foto .estado { position: absolute; top: .85rem; left: .85rem; background: #fff; }
.cat-card .precio { font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.cat-card .precio small { font-size: .85rem; font-weight: 500; color: var(--ar-text-3); letter-spacing: 0; }

.acc-card { display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem; border: 1px solid var(--ar-border); border-radius: var(--ar-radius); background: #fff; height: 100%; }
.acc-card h3 { font-size: .95rem; font-weight: 650; margin: 0 0 .2rem; }
.acc-card p { font-size: .82rem; color: var(--ar-text-3); margin: 0 0 .5rem; }
.acc-card .precio { font-weight: 700; font-variant-numeric: tabular-nums; }

.paso { position: relative; padding-left: 3.5rem; }
.paso .num { position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 12px; background: var(--ar-navy-900); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.paso h3 { font-size: 1rem; font-weight: 650; margin: .4rem 0 .35rem; }
.paso p { color: var(--ar-text-2); font-size: .9rem; margin: 0; }

.cta-band { border-radius: 20px; padding: 3rem; color: #fff; background: var(--ar-navy-900); background-image: radial-gradient(70% 120% at 100% 0%, rgba(37, 99, 235, .55), transparent 60%); }
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 700; letter-spacing: -.02em; }
.cta-band p { color: #b9c6dc; }

.site-footer { background: var(--ar-navy-950); color: #8a9bb8; padding: 3.5rem 0 2rem; font-size: .875rem; }
.site-footer h3 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; margin-bottom: 1rem; }
.site-footer a { color: #b9c6dc; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .55rem; }
.site-footer .legal { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 2.5rem; padding-top: 1.5rem; font-size: .8rem; }
@media (max-width: 767.98px) { .hero-pub { padding: 3rem 0 6rem; } .seccion { padding: 3.5rem 0; } .cta-band { padding: 2rem 1.5rem; } }

/* ---------- 10. Autenticación ---------- */

body.auth { background: #fff; }
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr; }
@media (min-width: 992px) { .auth-wrap { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }
.auth-aside { display: none; position: relative; overflow: hidden; padding: 3rem; color: #fff; background: var(--ar-navy-900); background-image: radial-gradient(70% 70% at 100% 0%, rgba(37, 99, 235, .5), transparent 60%), radial-gradient(50% 60% at 0% 100%, rgba(37, 99, 235, .25), transparent 60%); }
@media (min-width: 992px) { .auth-aside { display: flex; flex-direction: column; justify-content: space-between; } }
.auth-aside .marca { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.15rem; color: #fff; }
.auth-aside h2 { color: #fff; font-size: 2.1rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.15; max-width: 26rem; }
.auth-aside p { color: #b9c6dc; max-width: 26rem; }
.auth-aside .lista { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.auth-aside .lista li { display: flex; gap: .65rem; align-items: center; color: #dbe7fe; margin-bottom: .7rem; font-size: .92rem; }
.auth-aside .lista .bi { color: #4ade80; }
.auth-aside svg.auto { width: 100%; max-width: 480px; margin: 1rem 0; filter: drop-shadow(0 25px 35px rgba(0, 0, 0, .35)); }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 2.5rem 1.25rem; }
.auth-box { width: 100%; max-width: 400px; }
.auth-box.ancho { max-width: 560px; }
.auth-box h1 { font-size: 1.6rem; font-weight: 700; letter-spacing: -.025em; margin: 1.25rem 0 .35rem; }
.auth-box .sub { color: var(--ar-text-2); margin-bottom: 1.75rem; }

/* ---------- 11. Gráficos ---------- */

.chart-bars { display: flex; align-items: flex-end; gap: clamp(.4rem, 2vw, 1.25rem); height: 210px; padding: 1.25rem 0 0; position: relative; }
.chart-bars::before { content: ""; position: absolute; inset: 1.25rem 0 0 0; background-image: linear-gradient(to top, var(--ar-border) 1px, transparent 1px); background-size: 100% 25%; pointer-events: none; }
.chart-bars .col-bar { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; position: relative; z-index: 1; min-width: 0; }
.chart-bars .bar { width: 100%; max-width: 44px; border-radius: 6px 6px 2px 2px; background: #bfd3fb; min-height: 3px; position: relative; transition: background-color .15s; }
.chart-bars .col-bar.actual .bar { background: var(--ar-blue-600); }
.chart-bars .col-bar:hover .bar { background: var(--ar-blue-700); }
.chart-bars .bar .tip { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--ar-navy-900); color: #fff; font-size: .72rem; font-weight: 600; padding: .2rem .45rem; border-radius: 6px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s; }
.chart-bars .col-bar:hover .tip, .chart-bars .col-bar.actual .tip { opacity: 1; }
.chart-x { display: flex; gap: clamp(.4rem, 2vw, 1.25rem); margin-top: .5rem; }
.chart-x span { flex: 1 1 0; text-align: center; font-size: .75rem; color: var(--ar-text-3); text-transform: capitalize; }

.donut-wrap { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.donut { width: 150px; height: 150px; flex: 0 0 150px; position: relative; }
.donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut .centro { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.donut .centro strong { font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.donut .centro span { font-size: .75rem; color: var(--ar-text-3); margin-top: .2rem; }
.leyenda { list-style: none; padding: 0; margin: 0; flex: 1 1 160px; }
.leyenda li { display: flex; align-items: center; gap: .6rem; padding: .4rem 0; font-size: .85rem; }
.leyenda .sw { width: 10px; height: 10px; border-radius: 3px; flex: 0 0 10px; }
.leyenda .v { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; }
.leyenda .p { color: var(--ar-text-3); font-size: .78rem; width: 3rem; text-align: right; }

.barra { height: 8px; border-radius: 999px; background: var(--ar-surface-2); overflow: hidden; }
.barra > span { display: block; height: 100%; border-radius: 999px; background: var(--ar-blue-600); }
.barra.is-green > span { background: var(--ar-green-600); }
.barra.is-amber > span { background: #f59e0b; }
.progress { height: 8px; border-radius: 999px; background: var(--ar-surface-2); }

/* ---------- 12. Estados vacíos, toasts, modal, carga ---------- */

.vacio { text-align: center; padding: 3rem 1.5rem; }
.vacio .ico { width: 56px; height: 56px; margin: 0 auto 1rem; border-radius: 16px; background: var(--ar-surface-2); color: var(--ar-text-3); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.vacio h3 { font-size: 1rem; font-weight: 650; margin-bottom: .35rem; }
.vacio p { color: var(--ar-text-3); font-size: .875rem; max-width: 24rem; margin: 0 auto; }
.vacio .btn { margin-top: 1.1rem; }

.toast-container { z-index: 1090; }
.toast { --bs-toast-border-radius: var(--ar-radius); --bs-toast-max-width: 380px; border: 1px solid var(--ar-border); box-shadow: var(--ar-shadow-md); background: #fff; font-size: .875rem; }
.toast .toast-body { display: flex; gap: .75rem; align-items: flex-start; padding: .9rem 1rem; }
.toast .t-ico { font-size: 1.15rem; line-height: 1.2; }
.toast-success .t-ico { color: var(--ar-green-600); }
.toast-danger .t-ico { color: var(--ar-red-600); }
.toast-warning .t-ico { color: #d97706; }
.toast-info .t-ico { color: var(--ar-blue-600); }
.toast-success { border-left: 3px solid var(--ar-green-600); }
.toast-danger { border-left: 3px solid var(--ar-red-600); }
.toast-warning { border-left: 3px solid #d97706; }
.toast-info { border-left: 3px solid var(--ar-blue-600); }

.modal { --bs-modal-border-radius: var(--ar-radius-lg); --bs-modal-border-color: var(--ar-border); --bs-modal-padding: 1.5rem; }
.modal-content { box-shadow: var(--ar-shadow-lg); }
.modal-backdrop { --bs-backdrop-bg: #071426; --bs-backdrop-opacity: .5; }
.modal-confirm .icon-box { --s: 48px; font-size: 1.35rem; border-radius: 14px; }
.modal-footer { background: var(--ar-surface); border-top: 1px solid var(--ar-border); border-radius: 0 0 var(--ar-radius-lg) var(--ar-radius-lg); }

.alert { border-radius: var(--ar-radius-sm); font-size: .875rem; border-width: 1px; }
.alert-info { --bs-alert-bg: var(--ar-blue-50); --bs-alert-border-color: #cfdcfb; --bs-alert-color: #1e3a8a; }
.alert-danger { --bs-alert-bg: var(--ar-red-50); --bs-alert-border-color: #f8cccc; --bs-alert-color: #991b1b; }
.alert-success { --bs-alert-bg: var(--ar-green-50); --bs-alert-border-color: #c6ecd4; --bs-alert-color: #14532d; }
.alert-warning { --bs-alert-bg: var(--ar-amber-50); --bs-alert-border-color: #fbe3ad; --bs-alert-color: #78350f; }
.alert ul { margin: 0; padding-left: 1rem; }

.btn .spinner-border { width: 1rem; height: 1rem; border-width: .15em; }
.is-loading { pointer-events: none; opacity: .85; }
.barra-carga { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 2000; background: linear-gradient(90deg, var(--ar-blue-600), #60a5fa); box-shadow: 0 0 8px rgba(37, 99, 235, .6); transition: width .4s ease, opacity .3s; opacity: 0; }
.barra-carga.activa { opacity: 1; width: 75%; transition: width 6s cubic-bezier(.1, .7, .2, 1), opacity .2s; }

/* Página de error */
.error-page { min-height: 60vh; display: flex; align-items: center; justify-content: center; text-align: center; }
.error-page .codigo { font-size: .8rem; font-weight: 700; color: var(--ar-blue-600); letter-spacing: .1em; }
.error-page h1 { font-size: 1.75rem; font-weight: 700; letter-spacing: -.02em; margin: .5rem 0; }

/* Ilustración de vehículo */
.auto-svg { display: block; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ---------- 13. Impresión ---------- */

@media print {
    .app-sidebar, .app-topbar, .app-footer, .site-header, .site-footer, .no-print, .toast-container, .barra-carga { display: none !important; }
    .app-main { margin: 0 !important; }
    .app-content { padding: 0 !important; max-width: none; }
    body, body.app { background: #fff !important; }
    .card { box-shadow: none !important; border-color: #ccc !important; }
    .table thead th { background: #f2f2f2 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.min-w-0 { min-width: 0; }
.auth-box #id_password { padding-right: 2.75rem; }
body.app .toast-container { top: calc(var(--ar-topbar-h) + .25rem) !important; }
.card:has(> .table-responsive) { overflow: hidden; }
@media (max-width: 767.98px) {
    .table-stack td[data-label] { display: grid; grid-template-columns: minmax(6rem, auto) 1fr; column-gap: 1rem; row-gap: .1rem; align-items: center; }
    .table-stack td[data-label]::before { grid-column: 1; grid-row: 1; align-self: start; padding-top: .1rem; }
    .table-stack td[data-label] > * { grid-column: 2; justify-self: end; }
}
@media (max-width: 575.98px) { .kpi-value { font-size: 1.35rem; white-space: nowrap; } .kpi { padding: 1rem; } }

/* ---------- Logo (by Pedro Villamil) ---------- */
.app-sidebar .brand { flex-direction: column; align-items: flex-start; justify-content: center; gap: .15rem; height: auto; min-height: var(--ar-topbar-h); padding: .85rem 1.25rem; }
.app-sidebar .brand .logo-img { height: 30px; width: auto; display: block; }
.app-sidebar .brand .firma { font-size: .66rem; font-weight: 500; letter-spacing: .06em; color: #8a9bb8; padding-left: 2px; }
.site-header .navbar-brand .logo-img { height: 38px; width: auto; display: block; }
.hero-logo { width: 100%; max-width: 520px; height: auto; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .35)); }
.auth-marca { width: 100%; max-width: 360px; height: auto; margin-bottom: 1.5rem; filter: drop-shadow(0 25px 35px rgba(0, 0, 0, .35)); }
@media (max-width: 575.98px) { .site-header .navbar-brand .logo-img { height: 30px; } }
.app-sidebar .brand .firma { text-decoration: none; display: inline-flex; align-items: center; gap: .3rem; }
.app-sidebar .brand .firma:hover { color: #fff; }
.app-sidebar .brand .firma .bi { font-size: .7rem; }
.app-footer .link-firma { color: var(--ar-text-2); }
.app-footer .link-firma:hover { color: var(--ar-blue-600); }

/* ---------- Fotos de vehículos ---------- */
.foto-cover { width: 100%; height: 100%; object-fit: cover; display: block; }
.mini-auto .foto-cover { border-radius: 0; }
.cat-card .foto:has(> .foto-cover) { padding: 0; }
.cat-card .foto > .foto-cover { position: absolute; inset: 0; }
.cat-card .foto > .estado { z-index: 1; }
.veh-hero { position: relative; min-height: 240px; }
.veh-hero > .foto-cover { position: absolute; inset: 0; }
.veh-hero .contador-fotos { position: absolute; right: .75rem; bottom: .75rem; z-index: 1; background: rgba(7, 20, 38, .72); color: #fff; border: 0; border-radius: 999px; padding: .3rem .7rem; font-size: .78rem; font-weight: 600; display: inline-flex; gap: .35rem; align-items: center; }
.veh-hero .contador-fotos:hover { background: rgba(7, 20, 38, .9); }
.foto-alquiler { position: relative; aspect-ratio: 16 / 10; border-radius: var(--ar-radius-sm); overflow: hidden; background: var(--ar-surface); display: flex; align-items: center; justify-content: center; }
.foto-alquiler > svg { width: 85%; }

.galeria { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; }
.galeria-item { position: relative; margin: 0; border-radius: var(--ar-radius-sm); overflow: hidden; border: 1px solid var(--ar-border); background: var(--ar-surface); aspect-ratio: 4 / 3; }
.galeria-item.es-portada { box-shadow: 0 0 0 2px var(--ar-blue-600); border-color: transparent; }
.galeria-ver { all: unset; cursor: zoom-in; display: block; width: 100%; height: 100%; }
.galeria-ver:focus-visible { outline: 2px solid var(--ar-blue-600); outline-offset: -2px; }
.galeria-ver img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.galeria-item:hover .galeria-ver img { transform: scale(1.03); }
.galeria-badge { position: absolute; top: .45rem; left: .45rem; background: var(--ar-blue-600); color: #fff; font-size: .7rem; font-weight: 600; padding: .15rem .5rem; border-radius: 999px; display: inline-flex; gap: .25rem; align-items: center; }
.galeria-acciones { position: absolute; top: .4rem; right: .4rem; display: flex; gap: .25rem; }
.galeria-acciones form { margin: 0; }
.galeria-acciones .btn-icon { background: rgba(255, 255, 255, .92); box-shadow: var(--ar-shadow-sm); width: 30px; height: 30px; }

.visor .modal-content { background: #071426; border: 0; overflow: hidden; }
.visor-img { width: 100%; max-height: 80vh; object-fit: contain; display: block; background: #071426; }
.visor-cerrar { position: absolute; top: .9rem; right: .9rem; z-index: 2; background-color: rgba(0, 0, 0, .35); border-radius: 50%; padding: .6rem; opacity: 1; }
.visor-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; }
.visor-nav:hover { background: rgba(255, 255, 255, .26); }
.visor-prev { left: .9rem; } .visor-next { right: .9rem; }
.visor-pie { color: #b9c6dc; font-size: .8rem; padding: .7rem 1rem; text-align: center; }

.zona-subida { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; text-align: center; padding: 1.5rem 1rem; border: 1.5px dashed var(--ar-border-strong); border-radius: var(--ar-radius); background: var(--ar-surface); color: var(--ar-text-2); cursor: pointer; transition: border-color .15s, background-color .15s; }
.zona-subida:hover, .zona-subida.arrastrando { border-color: var(--ar-blue-600); background: var(--ar-blue-50); }
.zona-subida input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.zona-subida .bi { font-size: 1.6rem; color: var(--ar-blue-600); }
.zona-subida strong { color: var(--ar-text); font-size: .9rem; }
.previas { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.previas img { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; border: 1px solid var(--ar-border); }

/* ---------- Carrusel de fotos ---------- */
.carrusel { position: absolute; inset: 0; }
.carrusel-pista { display: flex; width: 100%; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.carrusel-pista::-webkit-scrollbar { display: none; }
.carrusel-pista:focus-visible { outline: 2px solid var(--ar-blue-600); outline-offset: -2px; }
.carrusel-slide { flex: 0 0 100%; height: 100%; scroll-snap-align: center; scroll-snap-stop: always; }
.carrusel-slide img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; user-select: none; -webkit-user-drag: none; }
.carrusel-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); color: #0f172a; box-shadow: var(--ar-shadow-sm); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .2s; }
.carrusel:hover .carrusel-btn, .carrusel-btn:focus-visible { opacity: 1; }
@media (hover: none) { .carrusel-btn { display: none; } }
.carrusel-prev { left: .6rem; } .carrusel-next { right: .6rem; }
.carrusel-puntos { position: absolute; left: 0; right: 0; bottom: .6rem; z-index: 2; display: flex; justify-content: center; gap: .35rem; pointer-events: none; }
.carrusel-puntos span { width: 7px; height: 7px; border-radius: 999px; background: rgba(255, 255, 255, .55); box-shadow: 0 0 2px rgba(0, 0, 0, .4); transition: width .2s, background-color .2s; }
.carrusel-puntos span.activo { width: 18px; background: #fff; }
.carrusel-n { position: absolute; right: .6rem; top: .6rem; z-index: 2; background: rgba(7, 20, 38, .7); color: #fff; font-size: .72rem; font-weight: 600; padding: .2rem .55rem; border-radius: 999px; display: inline-flex; align-items: center; gap: .3rem; pointer-events: none; }
.cat-card .foto:has(> .carrusel) { padding: 0; }
.cat-card .foto > .estado { position: absolute; z-index: 3; }

.ficha-foto { position: relative; aspect-ratio: 4 / 3; background: var(--ar-surface); display: flex; align-items: center; justify-content: center; }
.ficha-foto > svg { width: 80%; }
.carrusel-grande .carrusel-btn { width: 42px; height: 42px; font-size: 1.1rem; }
.ficha-miniaturas { display: flex; gap: .5rem; padding: .75rem; overflow-x: auto; border-top: 1px solid var(--ar-border); }
.ficha-miniaturas button { flex: 0 0 76px; height: 56px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: none; opacity: .65; transition: opacity .15s, border-color .15s; }
.ficha-miniaturas button.activa, .ficha-miniaturas button:hover { opacity: 1; border-color: var(--ar-blue-600); }
.ficha-miniaturas img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ficha-precio { padding: 1rem 1.1rem; border-radius: var(--ar-radius); background: var(--ar-surface); border: 1px solid var(--ar-border); }
.ficha-precio .precio { font-size: 1.75rem; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ficha-precio .precio small { font-size: .9rem; font-weight: 500; color: var(--ar-text-3); }
.ficha-descripcion { line-height: 1.6; }
.visor.una-foto .visor-nav { display: none; }

/* ---------- Características del vehículo ---------- */
.caracteristicas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .5rem; }
.caracteristicas li { display: flex; align-items: center; gap: .55rem; padding: .55rem .7rem; border-radius: var(--ar-radius-sm); background: var(--ar-surface); border: 1px solid var(--ar-border); font-size: .85rem; font-weight: 500; }
.caracteristicas li .bi { color: var(--ar-blue-600); font-size: 1rem; flex: 0 0 auto; }
.caracteristicas.compactas { display: flex; flex-wrap: wrap; gap: .35rem; }
.caracteristicas.compactas li { padding: .2rem .55rem; font-size: .75rem; border-radius: 999px; gap: .35rem; }
.caracteristicas.compactas li .bi { font-size: .8rem; }
.caracteristicas li.mas { color: var(--ar-text-3); background: transparent; }
.texto-recortado { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Botón de modo claro / oscuro ---------- */
.btn-tema { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%; border: 1px solid var(--ar-border); background: var(--bs-body-bg); color: var(--ar-text-2); display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; transition: background-color .15s, color .15s; }
.btn-tema:hover { background: var(--ar-surface); color: var(--ar-text); }
.solo-oscuro { display: none !important; }
[data-bs-theme=dark] .solo-oscuro { display: inline-block !important; }
[data-bs-theme=dark] img.solo-oscuro { display: block !important; }
[data-bs-theme=dark] .solo-claro { display: none !important; }

/* =====================================================================
   MODO OSCURO
   ===================================================================== */
:root[data-bs-theme=dark] {
    color-scheme: dark;
    --ar-bg: #0b1424;
    --ar-surface: #0a1322;
    --ar-surface-2: #172640;
    --ar-border: #1e2e49;
    --ar-border-strong: #2b3e5e;
    --ar-text: #e6edf7;
    --ar-text-2: #aab7cc;
    --ar-text-3: #7d8ca6;
    --ar-blue-600: #3b82f6;
    --ar-blue-700: #2563eb;
    --ar-blue-50: rgba(59, 130, 246, .14);
    --ar-blue-100: rgba(96, 165, 250, .22);
    --ar-green-600: #22c55e;
    --ar-green-50: rgba(34, 197, 94, .13);
    --ar-red-600: #ef4444;
    --ar-red-50: rgba(239, 68, 68, .13);
    --ar-amber-600: #f59e0b;
    --ar-amber-50: rgba(245, 158, 11, .13);
    --ar-violet-600: #a78bfa;
    --ar-violet-50: rgba(167, 139, 250, .15);
    --ar-shadow-xs: 0 1px 2px rgba(0, 0, 0, .35);
    --ar-shadow-sm: 0 1px 3px rgba(0, 0, 0, .4);
    --ar-shadow-md: 0 10px 28px -10px rgba(0, 0, 0, .6);

    --bs-body-bg: #101c31;
    --bs-body-bg-rgb: 16, 28, 49;
    --bs-body-color: #e6edf7;
    --bs-body-color-rgb: 230, 237, 247;
    --bs-emphasis-color: #fff;
    --bs-secondary-color: #7d8ca6;
    --bs-secondary-bg: #172640;
    --bs-tertiary-bg: #0d182b;
    --bs-border-color: #1e2e49;
    --bs-link-color: #60a5fa;
    --bs-link-color-rgb: 96, 165, 250;
    --bs-link-hover-color: #93c5fd;
    --bs-link-hover-color-rgb: 147, 197, 253;
    --bs-heading-color: #e6edf7;
}
[data-bs-theme=dark] body.app { background: var(--ar-surface); }
[data-bs-theme=dark] body.publico, [data-bs-theme=dark] body.auth { background: var(--ar-bg); }
[data-bs-theme=dark] .card { --bs-card-bg: var(--bs-body-bg); --bs-card-cap-bg: var(--bs-body-bg); }
[data-bs-theme=dark] .card-header { background: var(--bs-body-bg); }
[data-bs-theme=dark] .app-topbar { background: rgba(11, 20, 36, .85); }
[data-bs-theme=dark] .site-header { background: rgba(11, 20, 36, .88); }
[data-bs-theme=dark] .site-header .navbar-toggler { color: var(--ar-text); }
[data-bs-theme=dark] .btn-light, [data-bs-theme=dark] .btn-outline-secondary, [data-bs-theme=dark] .btn-secondary {
    --bs-btn-color: var(--ar-text); --bs-btn-bg: #142238; --bs-btn-border-color: var(--ar-border-strong);
    --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #1b2c47; --bs-btn-hover-border-color: #3a5076;
    --bs-btn-active-color: #fff; --bs-btn-active-bg: #203352; --bs-btn-active-border-color: #3a5076;
}
[data-bs-theme=dark] .btn-outline-primary { --bs-btn-color: #93c5fd; --bs-btn-bg: transparent; --bs-btn-border-color: rgba(96, 165, 250, .45); --bs-btn-hover-color: #fff; --bs-btn-hover-bg: rgba(59, 130, 246, .2); --bs-btn-hover-border-color: #60a5fa; }
[data-bs-theme=dark] .btn-outline-danger { --bs-btn-color: #fca5a5; --bs-btn-bg: transparent; --bs-btn-border-color: rgba(248, 113, 113, .45); --bs-btn-hover-color: #fff; --bs-btn-hover-bg: rgba(239, 68, 68, .2); --bs-btn-hover-border-color: #f87171; }
[data-bs-theme=dark] .btn-outline-success { --bs-btn-color: #86efac; --bs-btn-bg: transparent; --bs-btn-border-color: rgba(74, 222, 128, .45); --bs-btn-hover-color: #fff; --bs-btn-hover-bg: rgba(34, 197, 94, .2); }
[data-bs-theme=dark] .btn-dark, [data-bs-theme=dark] .btn-navy { --bs-btn-bg: #1d3a66; --bs-btn-border-color: #1d3a66; --bs-btn-hover-bg: #26497f; --bs-btn-hover-border-color: #26497f; }
[data-bs-theme=dark] .chip { background: #142238; }
[data-bs-theme=dark] .chip.active { background: var(--ar-blue-600); border-color: var(--ar-blue-600); }
[data-bs-theme=dark] .user-menu-btn { background: #142238; }
[data-bs-theme=dark] .toast { background: #142238; }
[data-bs-theme=dark] .acc-card, [data-bs-theme=dark] .fila-accesorio { background: var(--bs-body-bg); }
[data-bs-theme=dark] .form-control, [data-bs-theme=dark] .form-select { background-color: #0c1729; }
[data-bs-theme=dark] .form-control::placeholder { color: #5f6f89; }
[data-bs-theme=dark] .has-error .form-control, [data-bs-theme=dark] .has-error .form-select { background-color: rgba(239, 68, 68, .08); }
[data-bs-theme=dark] .avatar { color: #bfdbfe; }
[data-bs-theme=dark] .icon-box.is-navy { background: #1d3a66; }
[data-bs-theme=dark] .estado-ok { color: #4ade80; border-color: rgba(74, 222, 128, .3); }
[data-bs-theme=dark] .estado-info { color: #93c5fd; border-color: rgba(147, 197, 253, .3); }
[data-bs-theme=dark] .estado-warn { color: #fbbf24; border-color: rgba(251, 191, 36, .3); }
[data-bs-theme=dark] .estado-danger { color: #f87171; border-color: rgba(248, 113, 113, .3); }
[data-bs-theme=dark] .estado-violet { color: #c4b5fd; border-color: rgba(196, 181, 253, .3); }
[data-bs-theme=dark] .cat-card .foto { background: linear-gradient(160deg, #1a2a45 0%, #132039 100%); }
[data-bs-theme=dark] .cat-card .foto > .estado { background: rgba(11, 20, 36, .85); }
[data-bs-theme=dark] .auto-svg path[fill="#0b1f3a"] { fill: #334a6e; }
[data-bs-theme=dark] .auto-svg ellipse { fill: #000; opacity: .35; }
[data-bs-theme=dark] .chart-bars .bar { background: rgba(96, 165, 250, .32); }
[data-bs-theme=dark] .chart-bars .col-bar.actual .bar { background: var(--ar-blue-600); }
[data-bs-theme=dark] .donut-pista { stroke: var(--ar-surface-2); }
[data-bs-theme=dark] .resumen-total { background: #0a1322; border-bottom: 1px solid var(--ar-border); }
[data-bs-theme=dark] .alert-info { --bs-alert-bg: rgba(59, 130, 246, .12); --bs-alert-border-color: rgba(96, 165, 250, .3); --bs-alert-color: #bfdbfe; }
[data-bs-theme=dark] .alert-danger { --bs-alert-bg: rgba(239, 68, 68, .12); --bs-alert-border-color: rgba(248, 113, 113, .3); --bs-alert-color: #fecaca; }
[data-bs-theme=dark] .alert-success { --bs-alert-bg: rgba(34, 197, 94, .12); --bs-alert-border-color: rgba(74, 222, 128, .3); --bs-alert-color: #bbf7d0; }
[data-bs-theme=dark] .alert-warning { --bs-alert-bg: rgba(245, 158, 11, .12); --bs-alert-border-color: rgba(251, 191, 36, .3); --bs-alert-color: #fde68a; }
[data-bs-theme=dark] .modal { --bs-modal-bg: var(--bs-body-bg); }
[data-bs-theme=dark] .dropdown-menu { --bs-dropdown-bg: #142238; --bs-dropdown-link-color: var(--ar-text); --bs-dropdown-link-hover-color: #fff; --bs-dropdown-link-hover-bg: #1b2c47; --bs-dropdown-divider-bg: var(--ar-border); }
[data-bs-theme=dark] .table { --bs-table-color: var(--ar-text); --bs-table-hover-color: var(--ar-text); --bs-table-hover-bg: rgba(255, 255, 255, .03); }
[data-bs-theme=dark] .table thead th { background: #0d182b !important; }
[data-bs-theme=dark] .zona-subida { background: #0c1729; }
[data-bs-theme=dark] .galeria-acciones .btn-icon { background: rgba(16, 28, 49, .9); color: var(--ar-text-2); }
[data-bs-theme=dark] .pagination { --bs-pagination-bg: #142238; --bs-pagination-disabled-bg: #0d182b; --bs-pagination-hover-bg: #1b2c47; }
[data-bs-theme=dark] ::selection { background: rgba(96, 165, 250, .35); }

/* La impresión siempre en claro */
@media print {
    :root[data-bs-theme=dark] { --ar-text: #0f172a; --ar-text-2: #475569; --ar-text-3: #64748b; --ar-surface: #f6f8fb; --ar-border: #e3e8ef; --bs-body-bg: #fff; --bs-body-color: #0f172a; }
    [data-bs-theme=dark] .table thead th { background: #f2f2f2 !important; }
}
[data-bs-theme=dark] .app-sidebar { background-color: #08111f; border-right: 1px solid var(--ar-border); }

/* Botón «Continuar con Google» (colores según las pautas de marca de Google) */
/* Botón «Continuar con Google» (colores oficiales de Google; igual en Android, iPhone y computador) */
.btn-google {
  -webkit-appearance: none; appearance: none; -webkit-tap-highlight-color: transparent;
  display: flex; align-items: center; justify-content: center; gap: .75rem;
  width: 100%; min-height: 52px; padding: .75rem 1.25rem;
  background: #fff; color: #1f1f1f; border: 1px solid #747775; border-radius: 12px;
  font-family: inherit; font-size: 1rem; font-weight: 600; line-height: 1.2; white-space: nowrap;
  box-shadow: 0 1px 2px rgba(60, 64, 67, .15); cursor: pointer;
  transition: background-color .15s ease, box-shadow .15s ease;
}
.btn-google svg { flex: 0 0 auto; width: 20px; height: 20px; }
.btn-google:hover { background: #f2f2f2; color: #1f1f1f; border-color: #747775; box-shadow: 0 1px 3px rgba(60, 64, 67, .25); }
.btn-google:active { background: #e8e8e8; color: #1f1f1f; border-color: #747775; }
.btn-google:focus-visible { outline: 3px solid #2F6FEB; outline-offset: 2px; }
[data-bs-theme=dark] .btn-google { background: #131314; color: #e3e3e3; border-color: #8e918f; box-shadow: none; }
[data-bs-theme=dark] .btn-google:hover { background: #1f1f20; color: #e3e3e3; border-color: #8e918f; }
[data-bs-theme=dark] .btn-google:active { background: #2a2a2b; color: #e3e3e3; }
.separador-o { display: flex; align-items: center; gap: .75rem; margin: 1.25rem 0; color: var(--ar-text-3); font-size: .85rem; }
.separador-o::before, .separador-o::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--ar-border); }

/* ===== Directorio de negocios (finanria.com) ===== */
.dir-cabecera { padding: .9rem 0; border-bottom: 1px solid var(--ar-border); background: var(--bs-body-bg); }
.dir-cabecera .logo-img { height: 34px; width: auto; }
.dir-cabecera .btn { white-space: nowrap; }

/* Portada: banda azul noche con el buscador como pieza principal */
.dir-portada { background: #0B1F3A; color: #fff; padding: 2.5rem 0 2rem; position: relative; overflow: hidden; }
.dir-portada::after { /* línea de carretera discontinua, del logo */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.22) 0 28px, transparent 28px 52px); }
.dir-portada h1 { color: #fff; font-size: clamp(1.9rem, 4.6vw, 3rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; margin: 0 0 .6rem; max-width: 20ch; }
.dir-bajada { color: #B9C7DD; font-size: 1.05rem; max-width: 40rem; margin: 0 0 1.5rem; }
.dir-migas ol { display: flex; flex-wrap: wrap; gap: .25rem .5rem; list-style: none; padding: 0; margin: 0 0 .9rem; font-size: .875rem; }
.dir-migas li + li::before { content: "›"; color: #7F93B3; margin-right: .5rem; }
.dir-migas a { color: #B9C7DD; text-decoration: none; }
.dir-migas a:hover { color: #fff; text-decoration: underline; }
.dir-migas [aria-current] { color: #fff; }
.dir-buscador { display: flex; align-items: center; gap: .5rem; max-width: 40rem; background: #fff; border-radius: 14px;
  padding: .4rem .4rem .4rem 1rem; box-shadow: 0 12px 32px rgba(0,0,0,.28); }
.dir-buscador > .bi { color: #5F6B7B; font-size: 1.1rem; }
.dir-buscador input { flex: 1 1 auto; min-width: 0; border: 0; outline: 0; background: transparent; color: #0B1F3A;
  font-size: 1.05rem; padding: .55rem .25rem; }
.dir-buscador input::placeholder { color: #6B7787; }
.dir-buscador:focus-within { box-shadow: 0 0 0 3px #5B9BFF, 0 12px 32px rgba(0,0,0,.28); }
.dir-buscador .btn { border-radius: 10px; padding: .6rem 1.15rem; white-space: nowrap; }
.dir-lugares { margin-top: 1.4rem; }
.dir-lugares-titulo { display: block; font-size: .8rem; color: #8FA3C2; margin-bottom: .5rem; }
.dir-lugares ul { display: flex; gap: .5rem; list-style: none; padding: 0 0 .25rem; margin: 0; overflow-x: auto; scrollbar-width: thin; }
.dir-lugares a { display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; padding: .45rem .8rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22); color: #fff; text-decoration: none; font-size: .9rem; transition: background-color .15s ease; }
.dir-lugares a:hover, .dir-lugares a:focus-visible { background: rgba(255,255,255,.12); }
.dir-cuenta { font-size: .75rem; color: #0B1F3A; background: #CFE0FF; border-radius: 999px; padding: 0 .45rem; font-weight: 700; }

/* Resultados */
.dir-resultados { padding-top: 1.75rem; padding-bottom: 3rem; }
.dir-res-cabeza { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.dir-grilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.1rem; }
.dir-tarjeta { position: relative; display: flex; flex-direction: column; background: var(--bs-body-bg); border: 1px solid var(--ar-border);
  border-radius: 16px; overflow: hidden; transition: border-color .15s ease, box-shadow .15s ease; }
.dir-tarjeta:hover { border-color: #2F6FEB; box-shadow: 0 6px 20px rgba(11,31,58,.10); }
.dir-tarjeta:focus-within { outline: 3px solid #2F6FEB; outline-offset: 2px; }
.dir-foto { aspect-ratio: 16 / 10; background: #E8EEF7; display: grid; place-items: center; overflow: hidden; }
.dir-foto img { width: 100%; height: 100%; object-fit: cover; }
.dir-foto.es-logo { background: #fff; }
.dir-foto.es-logo img { object-fit: contain; padding: 1.25rem; }
.dir-inicial { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; background: #0B1F3A; color: #fff; font-weight: 800; font-size: 1.75rem; }
.dir-cuerpo { padding: .9rem 1rem 1rem; display: flex; flex-direction: column; gap: .3rem; flex: 1 1 auto; }
.dir-cuerpo h3 { font-size: 1.08rem; font-weight: 700; margin: 0; }
.dir-enlace { color: inherit; text-decoration: none; }
.dir-enlace::after { content: ""; position: absolute; inset: 0; } /* toda la tarjeta lleva al catálogo */
.dir-enlace:focus-visible { outline: none; }
.dir-lugar, .dir-tipos { font-size: .875rem; color: var(--ar-text-2); margin: 0; }
.dir-desc { font-size: .9rem; margin: .15rem 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dir-pie-tarjeta { margin-top: auto; padding-top: .6rem; display: flex; justify-content: space-between; align-items: baseline; gap: .5rem;
  font-size: .875rem; color: var(--ar-text-2); border-top: 1px dashed var(--ar-border); }
.dir-desde strong { color: var(--bs-body-color); }
.dir-vacio { border: 1px dashed var(--ar-border); border-radius: 16px; padding: 2rem 1.25rem; text-align: center; color: var(--ar-text-2); }
.dir-registro { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  margin-top: 2.5rem; padding: 1.5rem; border: 1px solid var(--ar-border); border-radius: 16px; }
.dir-registro p { color: var(--ar-text-2); }
.dir-pie { padding: 1.5rem 0 2rem; border-top: 1px solid var(--ar-border); color: var(--ar-text-2); }
.min-w-0 { min-width: 0; }
@media (max-width: 575.98px) {
  .dir-cabecera .logo-img { height: 28px; }
  .dir-cabecera .btn-primary { padding: .45rem .75rem; font-size: .875rem; }
  .dir-portada { padding: 1.75rem 0 1.5rem; }
  .dir-buscador .btn { padding: .55rem .8rem; }
}
@media (prefers-reduced-motion: reduce) { .dir-tarjeta, .dir-lugares a { transition: none; } }
[data-bs-theme=dark] .dir-foto { background: #14243D; }
[data-bs-theme=dark] .dir-portada { background: #071426; }
[data-bs-theme=dark] .dir-inicial { background: #2F6FEB; }

/* ===== Logo del negocio: tarjeta del directorio, catálogo y vista previa ===== */
.dir-foto { position: relative; }
.dir-logo-badge { position: absolute; left: .85rem; bottom: -26px; width: 56px; height: 56px; border-radius: 50%;
  background: #fff; border: 3px solid var(--bs-body-bg); box-shadow: 0 2px 8px rgba(11,31,58,.18);
  display: grid; place-items: center; overflow: hidden; z-index: 1; }
.dir-logo-badge img { width: 100%; height: 100%; object-fit: contain; }
.dir-logo-badge [data-logo-inicial] { font-weight: 800; font-size: 1.4rem; color: #0B1F3A; }
.dir-foto:has(.dir-logo-badge) { overflow: visible; }
.dir-foto:has(.dir-logo-badge) > img { border-radius: 15px 15px 0 0; }
.dir-foto:has(.dir-logo-badge) + .dir-cuerpo { padding-top: 2.4rem; }
.dir-sin-fotos { font-size: .85rem; color: #5F6B7B; padding: 1rem; text-align: center; }
.cat-marca { display: flex; align-items: center; gap: .85rem; }
.cat-marca-logo { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 14px; background: #fff; border: 1px solid var(--ar-border);
  display: grid; place-items: center; overflow: hidden; font-weight: 800; font-size: 1.4rem; color: #0B1F3A; }
.cat-marca-logo img { width: 100%; height: 100%; object-fit: contain; }
.cat-marca-nombre { font-weight: 800; font-size: 1.15rem; line-height: 1.2; }
.logo-carga { display: flex; gap: 1rem; align-items: flex-start; }
.logo-carga-img { flex: 0 0 72px; width: 72px; height: 72px; border-radius: 16px; background: #fff; border: 1px solid var(--ar-border);
  display: grid; place-items: center; overflow: hidden; font-weight: 800; font-size: 1.6rem; color: #0B1F3A; }
.logo-carga-img img { width: 100%; height: 100%; object-fit: contain; }
.vista-negocio { position: sticky; top: 5rem; }
.vista-negocio .dir-tarjeta { max-width: 340px; }
.vista-negocio .dir-tarjeta:hover { border-color: var(--ar-border); box-shadow: none; }
.cat-marca.card { flex-direction: row; text-align: left; }

/* Código de la moneda junto a los precios: «$120.000 COP» */
.moneda { font-size: .68em; font-weight: 600; letter-spacing: .02em; opacity: .72; margin-left: .1em; white-space: nowrap; }
