/* =====================================================================
   ClicPlanet Rent a Car — estilos del panel
   Paleta anclada al rubro: verde = "disponible/en marcha".
   Display: Space Grotesk (técnico, automotriz). Cuerpo: Inter.
   ===================================================================== */

:root {
    --ink:        #141922;   /* sidebar / superficies oscuras */
    --ink-soft:   #1e2733;
    --ink-line:   #2a3542;
    --surface:    #f4f6f8;   /* fondo del contenido */
    --card:       #ffffff;
    --line:       #e6e9ee;
    --text:       #1a1f27;
    --muted:      #6b7684;
    --primary:    #12b886;   /* verde "disponible / go" */
    --primary-600:#0ca678;
    --primary-050:#e6f7f0;
    --amber:      #f59f00;   /* reservado / pendiente */
    --slate:      #748296;   /* mantenimiento */
    --danger:     #e03131;   /* fuera de servicio / cancelada */
    --radius:     14px;
    --radius-sm:  10px;
    --shadow:     0 1px 2px rgba(20,25,34,.05), 0 8px 24px rgba(20,25,34,.05);
    --font-display: 'Space Grotesk', system-ui, sans-serif;
    --font-body:    'Inter', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ---------- Botones ---------- */
.btn {
    font-family: var(--font-body);
    font-weight: 600;
    border: 0;
    border-radius: var(--radius-sm);
    padding: .7rem 1.15rem;
    cursor: pointer;
    transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-600); }
.btn-block { width: 100%; }

/* ---------- Campos ---------- */
.field { margin-bottom: 1rem; }
.field label {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: .4rem;
    letter-spacing: .01em;
}
.field input {
    width: 100%;
    font-family: var(--font-body);
    font-size: .98rem;
    padding: .75rem .9rem;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-050);
}

/* ---------- Alertas ---------- */
.alert {
    padding: .8rem 1rem;
    border-radius: var(--radius-sm);
    font-size: .9rem;
    margin-bottom: 1.1rem;
    border: 1px solid transparent;
}
.alert-error { background: #fff0f0; color: #b02a2a; border-color: #ffd6d6; }
.alert-ok    { background: var(--primary-050); color: #0b7a5a; border-color: #bcecda; }

/* =====================================================================
   LOGIN — pantalla partida
   ===================================================================== */
.auth {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
}

/* Panel de marca (izquierda) */
.auth-brand {
    position: relative;
    background: radial-gradient(120% 100% at 0% 0%, #1c2735 0%, var(--ink) 55%);
    color: #fff;
    padding: 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}
/* Motivo de "carril de ruta" en diagonal */
.auth-brand::after {
    content: "";
    position: absolute;
    right: -30%;
    top: -10%;
    width: 90%;
    height: 130%;
    background:
        repeating-linear-gradient(115deg,
            transparent 0 46px,
            rgba(18,184,134,.09) 46px 52px);
    transform: rotate(2deg);
    pointer-events: none;
}
.auth-brand .logo {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.15rem;
    letter-spacing: .01em;
}
.auth-brand .logo .dot {
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 4px rgba(18,184,134,.25);
}
.auth-brand h1 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 2.6rem;
    line-height: 1.08;
    margin: 0 0 1rem;
    max-width: 12ch;
    position: relative;
}
.auth-brand p {
    color: #9fb0c0;
    font-size: 1.02rem;
    max-width: 34ch;
    line-height: 1.55;
    position: relative;
}
.auth-brand .foot { font-size: .82rem; color: #6d7f90; position: relative; }

/* Formulario (derecha) */
.auth-form {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: #fff;
}
.auth-form .box { width: 100%; max-width: 380px; }
.auth-form h2 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.55rem;
    margin: 0 0 .35rem;
}
.auth-form .sub { color: var(--muted); font-size: .94rem; margin: 0 0 1.8rem; }

.auth-hint {
    margin-top: 1.4rem;
    padding: .85rem 1rem;
    background: var(--surface);
    border: 1px dashed var(--line);
    border-radius: var(--radius-sm);
    font-size: .82rem;
    color: var(--muted);
    line-height: 1.6;
}
.auth-hint code { color: var(--text); font-weight: 600; }

@media (max-width: 820px) {
    .auth { grid-template-columns: 1fr; }
    .auth-brand {
        padding: 2.2rem;
        min-height: auto;
    }
    .auth-brand h1 { font-size: 2rem; }
    .auth-brand p, .auth-brand .foot { display: none; }
}

/* =====================================================================
   PANEL — sidebar + contenido
   ===================================================================== */
.shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }

/* El velo del menú móvil se oculta en escritorio (si no, ocupa una celda del grid) */
.scrim { display: none; position: fixed; inset: 0; }

.sidebar {
    grid-column: 1;
    background: var(--ink);
    color: #c4d0dc;
    padding: 1.4rem 1rem;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
}
.sidebar .brand {
    display: flex; align-items: center; gap: .6rem;
    font-family: var(--font-display);
    font-weight: 600;
    color: #fff;
    font-size: 1.08rem;
    padding: .3rem .6rem 1.3rem;
}
.sidebar .brand .dot {
    width: 11px; height: 11px; border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 4px rgba(18,184,134,.22);
}
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav .label {
    font-size: .7rem; text-transform: uppercase; letter-spacing: .08em;
    color: #5f6f7e; padding: 1rem .6rem .4rem;
}
.nav a {
    display: flex; align-items: center; gap: .7rem;
    padding: .62rem .7rem;
    border-radius: var(--radius-sm);
    color: #b3c0cd;
    font-size: .92rem;
    font-weight: 500;
    transition: background .14s ease, color .14s ease;
}
.nav a i { font-size: 1.05rem; width: 20px; text-align: center; }
.nav a:hover { background: var(--ink-soft); color: #fff; }
.nav a.active { background: var(--ink-soft); color: #fff; }
.nav a.active i { color: var(--primary); }
.nav a.soon { opacity: .5; cursor: default; }
.nav a.soon:hover { background: transparent; color: #b3c0cd; }
.nav a .tag {
    margin-left: auto; font-size: .62rem; text-transform: uppercase;
    letter-spacing: .05em; color: #5f6f7e; border: 1px solid var(--ink-line);
    border-radius: 20px; padding: .05rem .45rem;
}
.sidebar .bottom { margin-top: auto; padding-top: 1rem; }

.main { grid-column: 2; display: flex; flex-direction: column; min-width: 0; }

.topbar {
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: .9rem 1.6rem;
    display: flex; align-items: center; gap: 1rem;
    position: sticky; top: 0; z-index: 20;
}
.topbar .menu-btn {
    display: none; background: none; border: 0; font-size: 1.4rem;
    color: var(--text); cursor: pointer;
}
.topbar h1 {
    font-family: var(--font-display);
    font-size: 1.15rem; font-weight: 600; margin: 0;
}
.topbar .user { margin-left: auto; display: flex; align-items: center; gap: .8rem; }
.topbar .user .who { text-align: right; line-height: 1.2; }
.topbar .user .who .name { font-weight: 600; font-size: .9rem; }
.topbar .user .who .role { font-size: .72rem; color: var(--muted); text-transform: capitalize; }
.topbar .avatar {
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--primary-050); color: var(--primary-600);
    display: grid; place-items: center; font-weight: 700;
    font-family: var(--font-display);
}
.logout-btn {
    background: none; border: 1px solid var(--line); color: var(--muted);
    border-radius: var(--radius-sm); padding: .45rem .7rem; cursor: pointer;
    font-size: .85rem; transition: color .14s, border-color .14s;
}
.logout-btn:hover { color: var(--danger); border-color: #f3c0c0; }

.content { padding: 1.8rem 1.6rem 2.4rem; }

/* Tarjetas de estadísticas */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.6rem;
}
.stat {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.15rem 1.25rem;
    box-shadow: var(--shadow);
}
.stat .top { display: flex; align-items: center; justify-content: space-between; }
.stat .ico {
    width: 40px; height: 40px; border-radius: 11px;
    display: grid; place-items: center; font-size: 1.2rem;
}
.stat .ico.ok    { background: var(--primary-050); color: var(--primary-600); }
.stat .ico.warn  { background: #fff5e0; color: #d98600; }
.stat .ico.slate { background: #eef1f5; color: var(--slate); }
.stat .ico.blue  { background: #e7f0ff; color: #2b6cff; }
.stat .num {
    font-family: var(--font-display);
    font-size: 1.9rem; font-weight: 600; margin-top: .7rem; line-height: 1;
}
.stat .cap { color: var(--muted); font-size: .84rem; margin-top: .3rem; }

/* Paneles con tablas */
.panel-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1rem; }
.box {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.box h3 {
    font-family: var(--font-display);
    font-size: 1rem; font-weight: 600; margin: 0;
    padding: 1.05rem 1.25rem; border-bottom: 1px solid var(--line);
}
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th {
    text-align: left; font-size: .72rem; text-transform: uppercase;
    letter-spacing: .04em; color: var(--muted); font-weight: 600;
    padding: .7rem 1.25rem; border-bottom: 1px solid var(--line);
}
td { padding: .8rem 1.25rem; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
.mono { font-family: var(--font-display); font-weight: 500; }

.badge {
    display: inline-block; font-size: .72rem; font-weight: 600;
    padding: .18rem .55rem; border-radius: 20px; text-transform: capitalize;
}
.badge.ok    { background: var(--primary-050); color: #0b7a5a; }
.badge.warn  { background: #fff5e0; color: #b47500; }
.badge.slate { background: #eef1f5; color: #566270; }
.badge.danger{ background: #fff0f0; color: #b02a2a; }

.empty { padding: 2rem 1.25rem; color: var(--muted); text-align: center; font-size: .9rem; }

@media (max-width: 900px) {
    .panel-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .shell { grid-template-columns: 1fr; }
    .sidebar {
        grid-column: 1; grid-row: 1;
        position: fixed; z-index: 60; left: 0; top: 0; width: 250px;
        transform: translateX(-100%); transition: transform .22s ease;
    }
    .main { grid-column: 1; }
    .shell.open .sidebar { transform: translateX(0); }
    .topbar .menu-btn { display: block; }
    .scrim {
        display: none; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 55;
    }
    .shell.open .scrim { display: block; }
}

/* =====================================================================
   MÓDULO VEHÍCULOS
   ===================================================================== */

/* Barra superior de la página */
.page-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; margin-bottom: 1.4rem; flex-wrap: wrap;
}
.page-head-info { color: var(--muted); font-size: .95rem; }
.page-head-info .count {
    font-family: var(--font-display); font-weight: 600;
    font-size: 1.15rem; color: var(--text); margin-right: .15rem;
}
.btn i { margin-right: .1rem; }

.back-link {
    display: inline-flex; align-items: center; gap: .4rem;
    color: var(--muted); font-size: .88rem; margin-bottom: 1rem;
}
.back-link:hover { color: var(--primary-600); }

/* Botón fantasma */
.btn-ghost {
    display: inline-flex; align-items: center; gap: .4rem;
    background: #fff; border: 1px solid var(--line); color: var(--text);
    border-radius: var(--radius-sm); padding: .55rem .9rem;
    font-size: .88rem; font-weight: 600; cursor: pointer;
    transition: border-color .14s, color .14s, background .14s;
}
.btn-ghost:hover { border-color: #cfd6de; background: #fafbfc; }
.btn-ghost.danger { color: var(--danger); border-color: #f1cccc; padding: .55rem .7rem; }
.btn-ghost.danger:hover { background: #fff5f5; }

/* Grilla de tarjetas */
.veh-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.15rem;
}
.veh-card {
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
    display: flex; flex-direction: column;
    transition: transform .14s ease, box-shadow .14s ease;
}
.veh-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(20,25,34,.10); }
.veh-photo { position: relative; aspect-ratio: 16 / 10; background: #eef1f5; }
.veh-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.veh-noimg {
    width: 100%; height: 100%; display: grid; place-items: center;
    color: #b7c0cb; font-size: 2.4rem;
}
.veh-estado { position: absolute; top: .6rem; left: .6rem; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.veh-body { padding: .9rem 1rem .4rem; flex: 1; }
.veh-name {
    font-family: var(--font-display); font-size: 1.02rem; font-weight: 600;
    margin: 0 0 .35rem; line-height: 1.25;
}
.veh-year { color: var(--muted); font-weight: 500; }
.veh-meta { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: .6rem; }
.veh-plate {
    background: #eef1f5; color: #495562; font-size: .78rem;
    padding: .12rem .5rem; border-radius: 6px; letter-spacing: .03em;
}
.veh-cat { color: var(--muted); font-size: .82rem; }
.veh-price { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--primary-600); }
.veh-price span { color: var(--muted); font-size: .8rem; font-weight: 500; }
.veh-actions {
    display: flex; align-items: center; justify-content: space-between;
    gap: .5rem; padding: .7rem 1rem; border-top: 1px solid var(--line);
}
.veh-actions form { margin: 0; }

/* Estado vacío */
.empty-state { text-align: center; padding: 3.5rem 1.5rem; }
.empty-state i { font-size: 2.6rem; color: #c2cbd5; }
.empty-state h3 { font-family: var(--font-display); margin: .8rem 0 .3rem; }
.empty-state p { color: var(--muted); margin: 0 0 1.3rem; }

/* =====================================================================
   FORMULARIO
   ===================================================================== */
.form-card {
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 1.6rem 1.7rem; margin-bottom: 1.3rem; max-width: 960px;
}
.form-section { border: 0; padding: 0; margin: 0 0 1.6rem; }
.form-section legend {
    font-family: var(--font-display); font-weight: 600; font-size: .95rem;
    color: var(--text); padding: 0 0 .9rem; border-bottom: 1px solid var(--line);
    width: 100%; margin-bottom: 1.1rem;
}
.form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem 1.2rem; }
.form-card .field { margin-bottom: 0; }
.form-card select,
.form-card textarea {
    width: 100%; font-family: var(--font-body); font-size: .98rem;
    padding: .75rem .9rem; border: 1.5px solid var(--line);
    border-radius: var(--radius-sm); background: #fff; color: var(--text);
}
.form-card select:focus,
.form-card textarea:focus {
    outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-050);
}
.field.has-error input, .field.has-error select { border-color: #f1a9a9; }
.field .err { display: block; color: #c0392b; font-size: .78rem; margin-top: .3rem; }

.switches { display: flex; gap: 1.5rem; align-items: center; grid-column: span 2; }
.switch { display: inline-flex; align-items: center; gap: .5rem; cursor: pointer; font-size: .92rem; }
.switch input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--primary); }
.switch span { color: var(--text); }

.form-foot {
    display: flex; justify-content: flex-end; gap: .7rem;
    border-top: 1px solid var(--line); padding-top: 1.2rem;
}

/* =====================================================================
   FOTOS (dropzone + grilla)
   ===================================================================== */
.fotos-card { max-width: 960px; }
.fotos-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; margin: 0 0 .3rem; }
.fotos-sub { color: var(--muted); font-size: .9rem; margin: 0 0 1.2rem; }

.dropzone {
    border: 2px dashed #cfd8e2; border-radius: var(--radius);
    background: #fafbfc; padding: 2.2rem 1rem; text-align: center;
    color: var(--muted); cursor: pointer; transition: border-color .15s, background .15s;
    display: flex; flex-direction: column; align-items: center; gap: .4rem;
    margin-bottom: 1.3rem;
}
.dropzone i { font-size: 2rem; color: var(--primary); }
.dropzone span { font-size: .95rem; }
.dropzone b { color: var(--primary-600); }
.dropzone small { font-size: .78rem; }
.dropzone.dragover { border-color: var(--primary); background: var(--primary-050); }
.dropzone.busy { opacity: .7; pointer-events: none; }

.foto-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .9rem; }
.foto-tile {
    position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-sm);
    overflow: hidden; border: 2px solid var(--line); background: #eef1f5;
}
.foto-tile.is-principal { border-color: var(--primary); }
.foto-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.foto-tile .star-on {
    position: absolute; top: .4rem; left: .4rem;
    background: var(--primary); color: #fff; font-size: .68rem; font-weight: 600;
    padding: .16rem .5rem; border-radius: 20px;
    display: inline-flex; align-items: center; gap: .25rem;
}
.foto-actions {
    position: absolute; bottom: 0; left: 0; right: 0;
    display: flex; justify-content: flex-end; gap: .3rem; padding: .4rem;
    background: linear-gradient(transparent, rgba(0,0,0,.45));
    opacity: 0; transition: opacity .15s;
}
.foto-tile:hover .foto-actions { opacity: 1; }
.foto-actions form { margin: 0; }
.foto-actions button {
    width: 30px; height: 30px; border: 0; border-radius: 8px; cursor: pointer;
    background: rgba(255,255,255,.92); color: var(--text); font-size: .85rem;
    display: grid; place-items: center;
}
.foto-actions button.danger { color: var(--danger); }
.foto-actions button:hover { background: #fff; }
.foto-tile.uploading { display: grid; place-items: center; }
.foto-tile .spin { font-size: 1.4rem; color: var(--primary); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 720px) {
    .form-grid { grid-template-columns: 1fr 1fr; }
    .switches { grid-column: span 2; }
}
@media (max-width: 480px) {
    .form-grid { grid-template-columns: 1fr; }
    .switches { grid-column: span 1; flex-direction: column; align-items: flex-start; gap: .7rem; }
}

/* =====================================================================
   MÓDULO CLIENTES
   ===================================================================== */
.toolbar { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.search-box { position: relative; display: flex; align-items: center; }
.search-box > i {
    position: absolute; left: .75rem; color: var(--muted); font-size: .95rem; pointer-events: none;
}
.search-box input {
    width: 280px; max-width: 60vw;
    padding: .6rem .9rem .6rem 2.2rem;
    border: 1.5px solid var(--line); border-radius: var(--radius-sm);
    font-family: var(--font-body); font-size: .92rem; background: #fff;
}
.search-box input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-050); }
.search-box .clear {
    position: absolute; right: .6rem; color: var(--muted); font-size: .8rem;
    display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
}
.search-box .clear:hover { background: #eef1f5; color: var(--text); }

.table-wrap { overflow-x: auto; }
.table-wrap table { min-width: 640px; }
.cli-name { font-weight: 600; }
.cli-sub { color: var(--muted); font-size: .82rem; }
.cli-sub .bi { margin-right: .15rem; }
.cli-doctype { font-size: .8rem; color: var(--muted); }
.row-actions { display: flex; gap: .4rem; align-items: center; justify-content: flex-end; }
.row-actions form { margin: 0; }
.row-actions .btn-ghost { padding: .45rem .7rem; }

/* Descripción de coberturas (recortada a 2 líneas) */
.cob-desc {
    max-width: 420px; color: var(--muted); font-size: .86rem; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* =====================================================================
   MÓDULO RESERVAS
   ===================================================================== */
.filter-tabs {
    display: flex; gap: .3rem; flex-wrap: wrap; margin-bottom: 1.2rem;
    border-bottom: 1px solid var(--line); padding-bottom: .1rem;
}
.filter-tabs a {
    padding: .5rem .9rem; font-size: .88rem; font-weight: 500; color: var(--muted);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0; border-bottom: 2px solid transparent;
}
.filter-tabs a:hover { color: var(--text); }
.filter-tabs a.active { color: var(--primary-600); border-bottom-color: var(--primary); font-weight: 600; }

/* Layout formulario + resumen */
.reserva-layout { display: grid; grid-template-columns: 1fr 320px; gap: 1.2rem; align-items: start; }
.reserva-layout .form-card { margin-bottom: 0; max-width: none; }

.precio-box {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 1.3rem; position: sticky; top: 90px;
}
.precio-box h3 {
    font-family: var(--font-display); font-size: 1rem; font-weight: 600;
    margin: 0 0 1rem; padding-bottom: .8rem; border-bottom: 1px solid var(--line);
}
.precio-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: .45rem 0; font-size: .92rem; color: var(--text);
}
.precio-row span { color: var(--muted); }
.precio-row.sub { border-top: 1px solid var(--line); margin-top: .3rem; padding-top: .7rem; }
.precio-row.total {
    border-top: 2px solid var(--line); margin-top: .4rem; padding-top: .8rem;
    font-family: var(--font-display); font-size: 1.05rem;
}
.precio-row.total b { color: var(--primary-600); font-size: 1.4rem; }
.desc-input { color: var(--muted); font-weight: 600; }
.desc-input input {
    width: 90px; text-align: right; padding: .35rem .5rem; font-size: .9rem;
    border: 1.5px solid var(--line); border-radius: 8px; font-family: var(--font-body);
}
.desc-input input:focus { outline: none; border-color: var(--primary); }
.precio-nota { font-size: .74rem; color: var(--muted); margin: .9rem 0 0; line-height: 1.4; }

/* Leyenda del calendario */
.cal-legend { display: flex; gap: 1.2rem; flex-wrap: wrap; margin-bottom: 1rem; font-size: .85rem; color: var(--muted); }
.cal-legend span { display: inline-flex; align-items: center; gap: .4rem; }
.cal-legend .dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }

/* Ajuste FullCalendar a la identidad */
#calendar { --fc-border-color: var(--line); --fc-today-bg-color: var(--primary-050); font-family: var(--font-body); }
.fc .fc-toolbar-title { font-family: var(--font-display); font-size: 1.2rem !important; }
.fc .fc-button-primary {
    background: var(--ink) !important; border-color: var(--ink) !important;
    text-transform: capitalize; font-size: .85rem !important;
}
.fc .fc-button-primary:not(:disabled).fc-button-active { background: var(--primary) !important; border-color: var(--primary) !important; }
.fc-event { cursor: pointer; border: none; font-size: .78rem; padding: 1px 3px; }

@media (max-width: 900px) {
    .reserva-layout { grid-template-columns: 1fr; }
    .precio-box { position: static; }
}

/* Aviso de one-way / lugar a coordinar en el resumen de reserva */
.precio-aviso {
    margin-top: .8rem; padding: .6rem .7rem; border-radius: 8px;
    background: #fff5e0; color: #9a6700; font-size: .78rem; line-height: 1.4;
    border: 1px solid #ffe2a8;
}
.precio-aviso .bi { margin-right: .2rem; }

/* =====================================================================
   CONFIGURACIÓN
   ===================================================================== */
.brand-logo { max-height: 34px; max-width: 190px; object-fit: contain; display: block; }
.auth-brand .brand-logo.light, .logo .brand-logo.light { max-height: 42px; max-width: 200px; }

.logo-row { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.logo-preview {
    width: 96px; height: 96px; border: 1px solid var(--line); border-radius: 14px;
    display: grid; place-items: center; background: #fff; overflow: hidden; flex-shrink: 0;
}
.logo-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.logo-preview span { color: #c2cbd5; font-size: 1.8rem; }
.color-input {
    width: 72px; height: 44px; padding: 4px; border: 1.5px solid var(--line);
    border-radius: 10px; cursor: pointer; background: #fff;
}
.cfg-nota { font-size: .78rem; color: var(--muted); margin: .6rem 0 0; }

/* =====================================================================
   GRÁFICOS DEL DASHBOARD
   ===================================================================== */
.chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.6rem; }
.chart-wrap { padding: 1rem 1.25rem 1.25rem; height: 260px; position: relative; }
@media (max-width: 900px) { .chart-grid { grid-template-columns: 1fr; } }
