:root {
    --bg: #0a0a0a;
    --white: #f4f4f4;
    --black: #0a0a0a;
    --gray: #a8a8a8;
    --line: #2a2a2a;
    --gold: #ff8c00;
    --orange: #ff8c00;
    --orange-dark: #e67e22;
    --silver: #c8c8c8;
    --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; }
body.theme-cronos {
    margin: 0;
    background: radial-gradient(ellipse at 20% 0%, #1a1208 0%, #0a0a0a 45%, #050505 100%);
    color: var(--white);
    min-height: 100vh;
}
body.theme-cronos a { color: var(--orange); text-decoration: none; }
body.theme-cronos a:hover { color: #ffb347; }

.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid #ececec;
    padding: 12px 26px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.brand { display: flex; align-items: center; gap: 14px; }
.brand img { width: 86px; height: auto; border: 1px solid #efefef; background: #fff; border-radius: 10px; }
.brand h1 { margin: 0; font-size: 20px; letter-spacing: 2px; font-weight: 700; }
.brand p { margin: 2px 0 0; color: var(--gray); font-size: 11px; text-transform: uppercase; letter-spacing: 2px; }

nav { display: flex; gap: 10px; flex-wrap: wrap; }
nav a {
    padding: 9px 13px;
    border: 1px solid #ececec;
    border-radius: 999px;
    background: linear-gradient(180deg, #fff 0%, #f8f8f8 100%);
    font-size: 13px;
    transition: 0.2s ease;
}
nav a:hover { transform: translateY(-1px); border-color: #d7d7d7; }

.container { max-width: 1180px; margin: 24px auto; padding: 0 16px 30px; }
.app-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 270px 1fr;
}
.sidebar {
    background: linear-gradient(180deg, #151515 0%, #101010 100%);
    border-right: 1px solid #262626;
    padding: 18px 14px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}
.sidebar-brand {
    margin-bottom: 18px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
}
.sidebar .brand h1,
.sidebar .brand p {
    color: #f2f2f2;
}
.sidebar-nav {
    display: grid;
    gap: 8px;
}
.sidebar-nav a {
    display: block;
    border-radius: 12px;
    padding: 11px 12px;
    color: #f2f2f2;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 14px;
    transition: 0.2s ease;
}
.sidebar-nav a:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateX(2px);
}
.app-main {
    min-width: 0;
}
.app-topbar {
    position: sticky;
    top: 0;
}
.menu-toggle {
    display: none;
    background: #111;
    color: #fff;
    border: 1px solid #111;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 13px;
}
.sidebar-backdrop {
    display: none;
}
.app-main .container {
    max-width: none;
    margin: 16px;
    padding: 0 0 24px;
}
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e9e9e9;
    border-radius: 18px;
    padding: 20px;
    box-shadow: var(--shadow);
}
.elegant-card { margin-top: 18px; }

form { display: grid; gap: 10px; }
label { font-size: 13px; color: #5a5a5a; font-weight: 600; }
input, select, textarea, button {
    border: 1px solid #dedede;
    border-radius: 12px;
    padding: 11px 12px;
    font-size: 14px;
    background: #fff;
}
input:focus, select:focus, textarea:focus {
    border-color: #b4b4b4;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}
button {
    background: linear-gradient(135deg, #1a1a1a 0%, #2e2e2e 100%);
    color: var(--white);
    cursor: pointer;
    border: 1px solid #1f1f1f;
    font-weight: 600;
}
button:hover { opacity: 0.95; transform: translateY(-1px); }

table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: 12px; overflow: hidden; }
th, td { border: 1px solid #eeeeee; padding: 10px; font-size: 14px; text-align: left; }
th { background: #f8f8f8; }

.alert { padding: 12px 14px; border-radius: 10px; margin-bottom: 12px; box-shadow: var(--shadow); }
.alert.success { background: #effaf2; border: 1px solid #8fd9aa; }
.alert.error { background: #fff2f2; border: 1px solid #f2afaf; }

.kpi { font-size: 30px; font-weight: 700; margin: 6px 0; letter-spacing: 1px; }
.muted { color: var(--gray); font-size: 13px; }
.muted.small { font-size: 12px; line-height: 1.4; }
.client-match-hint { margin: 8px 0 0; font-size: 13px; }
.client-match-hint.is-found { color: #7dd87d; }

.hero {
    position: relative;
    min-height: 340px;
    border-radius: 24px;
    overflow: hidden;
    background-image: url('../../imagen.jpg');
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow);
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.25) 70%);
}
.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 620px;
    padding: 48px 34px;
}
.hero h2 { margin: 0 0 14px; font-size: 42px; line-height: 1.05; letter-spacing: 1px; }
.hero p { margin: 0 0 24px; font-size: 16px; color: #ebebeb; }
.btn-light {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    cursor: pointer;
}

.gallery-strip {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.gallery-item {
    min-height: 180px;
    border-radius: 18px;
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow);
}

.auth-shell {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 16px;
    align-items: stretch;
}
.auth-visual {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    min-height: 480px;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.auth-slide {
    background-size: cover;
    background-position: center;
}
.auth-branding {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 20px;
    background: rgba(0, 0, 0, 0.68);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    padding: 16px;
}
.auth-branding h2 { margin: 0 0 8px; font-size: 24px; }
.auth-branding p { margin: 0; color: #e5e5e5; }

.auth-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 520px;
}

.booking-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.6);
    z-index: 300;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.modal-overlay.is-open { display: flex; }

.modal-card {
    width: min(900px, 96vw);
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    position: relative;
}
.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    color: #111;
    font-weight: 700;
    cursor: pointer;
}

.slots-wrap {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.slot-btn {
    border: 1px solid #d6d6d6;
    background: #f8f8f8;
    color: #111;
    border-radius: 999px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 13px;
}
.slot-btn.selected {
    background: #111;
    color: #fff;
    border-color: #111;
}

.booking-form {
    gap: 14px 16px;
}
.booking-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.booking-form .form-group-full {
    grid-column: 1 / -1;
}
.booking-form .notes-group textarea {
    margin-top: 2px;
    min-height: 96px;
}

.appointments-form {
    gap: 12px;
}
.appointments-form input[list] {
    width: 100%;
}
.table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #ececec;
    border-radius: 12px;
}
.appointments-table {
    min-width: 720px;
}
.services-table {
    min-width: 680px;
}
.users-table {
    min-width: 680px;
}
.service-toggle-form {
    display: block;
}
.user-edit-btn {
    min-width: 44px;
    padding: 8px 10px;
    border-radius: 10px;
    background: #111;
    color: #fff;
}
.permissions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 8px;
}
.permission-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    background: #fafafa;
}
.report-bars {
    display: grid;
    gap: 10px;
}
.report-bar {
    display: grid;
    grid-template-columns: 90px 1fr auto;
    gap: 8px;
    align-items: center;
}
.report-bar div {
    height: 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, #111 0%, #3b3b3b 100%);
}

.success-modal {
    text-align: center;
    max-width: 560px;
}
.success-badge {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-size: 12px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.success-details {
    margin: 14px 0 16px;
    border: 1px solid #ececec;
    border-radius: 12px;
    padding: 12px;
    text-align: left;
    background: #fafafa;
}
.success-details p {
    margin: 6px 0;
}

.calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}
.calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}
.calendar-nav h3 {
    margin: 0;
}
.calendar-nav-btn {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid #d8d8d8;
    background: #fff;
    color: #111;
    font-size: 13px;
}
.calendar-nav-btn:hover {
    background: #f4f4f4;
}
.day {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #ebebeb;
    border-radius: 12px;
    min-height: 95px;
    padding: 8px;
}
.day h4 { margin: 0 0 8px; font-size: 13px; }
.appt {
    font-size: 12px;
    padding: 5px;
    background: linear-gradient(180deg, #f4f4f4 0%, #ececec 100%);
    border-radius: 8px;
    margin-bottom: 5px;
    color: #111;
}
.appt-clickable {
    width: 100%;
    text-align: left;
    border: 1px solid rgba(17, 17, 17, 0.08);
    cursor: pointer;
    line-height: 1.35;
    color: #111;
}
.appt-clickable:hover {
    filter: brightness(0.98);
}
.appt strong,
.appt .muted,
.appt-clickable strong,
.appt-clickable .muted {
    color: #111;
}
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px;
}
.status-pill {
    display: inline-block;
    margin-top: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2px;
}
.status-cancelled {
    background: #ffe2e2;
    color: #8f1d1d;
    border: 1px solid #f3b7b7;
}

.wa-shell {
    display: grid;
    grid-template-columns: 340px 1fr;
    min-height: 70vh;
    border: 1px solid #dcdcdc;
    border-radius: 16px;
    overflow: hidden;
    background: #f0f2f5;
    box-shadow: var(--shadow);
}
.wa-sidebar {
    border-right: 1px solid #d9d9d9;
    background: #fff;
    display: flex;
    flex-direction: column;
}
.wa-head {
    padding: 14px;
    border-bottom: 1px solid #e8e8e8;
    background: #f7f7f7;
}
.wa-search {
    padding: 10px;
    border-bottom: 1px solid #f0f0f0;
}
.wa-search input {
    width: 100%;
    border-radius: 999px;
    background: #f3f5f6;
}
.wa-chat-list {
    overflow-y: auto;
}
.wa-chat-item {
    width: 100%;
    display: grid;
    grid-template-columns: 40px 1fr auto;
    gap: 10px;
    align-items: center;
    text-align: left;
    border: 0;
    border-bottom: 1px solid #f2f2f2;
    border-radius: 0;
    padding: 10px;
    background: #fff;
    color: #111;
}
.wa-chat-item:hover {
    background: #f7f7f7;
}
.wa-chat-item.active {
    background: #eef6ff;
}
.wa-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #d6eadf;
    font-size: 12px;
    font-weight: 700;
}
.wa-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.wa-meta small {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #666;
}
.wa-time {
    font-size: 11px;
    color: #666;
}
.wa-main {
    display: grid;
    grid-template-rows: auto 1fr auto;
    background: #efeae2;
}
.wa-contact {
    display: flex;
    align-items: center;
    gap: 10px;
}
.wa-contact p {
    margin: 0;
}
.wa-messages {
    padding: 16px;
    overflow-y: auto;
    display: grid;
    gap: 10px;
}
.wa-bubble {
    max-width: 72%;
    padding: 9px 11px;
    border-radius: 10px;
    line-height: 1.35;
    font-size: 13px;
    color: #111;
    position: relative;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06);
}
.wa-bubble span {
    display: block;
    font-size: 10px;
    text-align: right;
    color: #666;
    margin-top: 4px;
}
.wa-bubble.in {
    background: #fff;
}
.wa-bubble.out {
    background: #d9fdd3;
    justify-self: end;
}
.wa-compose {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 8px;
    padding: 10px;
    background: #f7f7f7;
    border-top: 1px solid #e6e6e6;
}
.wa-compose input {
    border-radius: 999px;
}
.wa-send {
    background: #111;
    color: #fff;
}

@media (max-width: 980px) {
    .app-layout {
        grid-template-columns: 1fr;
    }
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: min(82vw, 310px);
        z-index: 220;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        border-right: 1px solid #2b2b2b;
        border-bottom: 0;
    }
    .sidebar.is-open { transform: translateX(0); }
    .sidebar-brand {
        margin-bottom: 10px;
    }
    .sidebar-nav {
        display: grid;
    }
    .app-topbar {
        position: sticky;
        top: 0;
        z-index: 180;
    }
    .menu-toggle {
        display: inline-flex;
    }
    .sidebar-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        z-index: 200;
    }
    .sidebar-backdrop.is-open {
        display: block;
    }
    .app-main .container {
        margin: 14px;
    }
    .appointments-page {
        grid-template-columns: 1fr;
    }
    .auth-shell { grid-template-columns: 1fr; }
    .gallery-strip { grid-template-columns: repeat(2, 1fr); }
    .gallery-item { min-height: 160px; }
    .gallery-item:last-child { display: none; }
    .hero h2 { font-size: 32px; }
    .hero-content { padding: 34px 24px; max-width: 100%; }
    .booking-cta { flex-direction: column; align-items: flex-start; }
    .calendar {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .calendar-nav {
        align-items: flex-start;
    }
    .day {
        min-height: 120px;
    }
}

@media (max-width: 640px) {
    .hero {
        min-height: 280px;
        border-radius: 18px;
        background-position: center top;
    }
    .hero-content {
        padding: 26px 18px;
    }
    .hero h2 {
        font-size: 26px;
        line-height: 1.15;
    }
    .hero p {
        font-size: 14px;
        margin-bottom: 16px;
    }
    .gallery-strip {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .gallery-item {
        min-height: 140px;
    }
    .gallery-item:last-child {
        display: block;
    }
    .appointments-page {
        grid-template-columns: 1fr;
    }
    .appointments-form {
        gap: 10px;
    }
    .table-wrap {
        overflow-x: visible;
        border: 0;
        border-radius: 0;
    }
    .appointments-table {
        min-width: 100%;
        border-collapse: separate;
        border-spacing: 0 10px;
        background: transparent;
    }
    .appointments-table thead {
        display: none;
    }
    .appointments-table tbody tr {
        display: block;
        background: #fff;
        border: 1px solid #ececec;
        border-radius: 12px;
        padding: 8px 10px;
        box-shadow: var(--shadow);
    }
    .appointments-table td {
        display: grid;
        grid-template-columns: 95px 1fr;
        gap: 8px;
        border: 0;
        padding: 6px 2px;
        font-size: 13px;
    }
    .appointments-table td::before {
        content: attr(data-label);
        font-weight: 700;
        color: #555;
    }
    .services-table {
        min-width: 100%;
        border-collapse: separate;
        border-spacing: 0 10px;
        background: transparent;
    }
    .services-table thead {
        display: none;
    }
    .services-table tbody tr {
        display: block;
        background: #fff;
        border: 1px solid #ececec;
        border-radius: 12px;
        padding: 8px 10px;
        box-shadow: var(--shadow);
    }
    .services-table td {
        display: grid;
        grid-template-columns: 95px 1fr;
        gap: 8px;
        border: 0;
        padding: 6px 2px;
        font-size: 13px;
    }
    .services-table td::before {
        content: attr(data-label);
        font-weight: 700;
        color: #555;
    }
    .service-toggle-form button {
        width: 100%;
    }
    .users-table {
        min-width: 100%;
        border-collapse: separate;
        border-spacing: 0 10px;
        background: transparent;
    }
    .users-table thead {
        display: none;
    }
    .users-table tbody tr {
        display: block;
        background: #fff;
        border: 1px solid #ececec;
        border-radius: 12px;
        padding: 8px 10px;
        box-shadow: var(--shadow);
    }
    .users-table td {
        display: grid;
        grid-template-columns: 95px 1fr;
        gap: 8px;
        border: 0;
        padding: 6px 2px;
        font-size: 13px;
    }
    .users-table td::before {
        content: attr(data-label);
        font-weight: 700;
        color: #555;
    }
    .calendar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .day {
        min-height: 130px;
        padding: 10px;
    }
    .day h4 {
        font-size: 14px;
    }
    .appt,
    .appt-clickable {
        font-size: 12px;
    }
    .wa-shell {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .wa-sidebar {
        max-height: 250px;
    }
    .wa-main {
        min-height: 420px;
    }
    .wa-bubble {
        max-width: 90%;
    }
}

/* ===== Cronos Plaza 2026 theme overrides ===== */
.topbar {
    background: rgba(10, 10, 10, 0.9);
    border-bottom: 1px solid #2a2a2a;
}
.brand img { border: 1px solid #2b2b2b; background: #111; }
.brand h1 { color: #fff; }
.brand p { color: #b0b0b0; }
.container-public { max-width: 1200px; }
.public-nav-login {
    display: inline-block;
    border: 1px solid rgba(255, 140, 0, 0.55);
    color: #ffb347;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(255, 140, 0, 0.08);
}
.card {
    background: linear-gradient(180deg, rgba(18, 18, 18, 0.98), rgba(10, 10, 10, 0.98));
    border: 1px solid #2b2b2b;
    color: #f2f2f2;
}
label, .muted { color: #bcbcbc; }
input, select, textarea, button {
    border: 1px solid #3a3a3a;
    background: #121212;
    color: #f2f2f2;
}
button, .btn-accent {
    background: linear-gradient(135deg, #ff8c00 0%, #d96a00 100%);
    border: 1px solid #ff9b2f;
    color: #111;
    font-weight: 700;
}
.hero.cronos-hero {
    min-height: 410px;
    border: 1px solid rgba(255, 140, 0, 0.2);
    background-image: linear-gradient(105deg, rgba(0,0,0,.78), rgba(0,0,0,.35)), url('https://autolavadocronosplaza.com/logo.jpeg');
    background-size: cover;
    background-position: center;
}
.hero-kicker {
    margin: 0 0 10px;
    color: #ffb347;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    font-size: 12px;
}
.cronos-section { margin-top: 22px; }
.section-title { margin: 0 0 8px; color: #fff; font-size: 30px; }
.section-title span { color: #ff8c00; }
.section-lead { margin-top: 0; color: #bbb; max-width: 920px; }
.price-grid {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}
.price-card {
    border: 1px solid #353535;
    border-radius: 16px;
    padding: 14px;
    background: linear-gradient(180deg, #111, #0b0b0b);
}
.price-card-tier { color: #ffb347; font-weight: 700; }
.price-card-label { margin: 6px 0; color: #d0d0d0; font-size: 13px; }
.price-card-amount { color: #fff; font-size: 34px; font-weight: 800; line-height: 1.05; }
.price-card-hot { border-color: rgba(255, 140, 0, 0.5); box-shadow: 0 0 0 1px rgba(255,140,0,.15), 0 0 24px rgba(255,140,0,.12); }
.price-card-accent { border-color: rgba(255, 170, 80, 0.4); }
.cronos-glow-banner {
    margin-top: 14px;
    border: 1px solid rgba(255, 140, 0, 0.38);
    border-radius: 18px;
    padding: 16px;
    background: linear-gradient(180deg, rgba(255,140,0,.08), rgba(0,0,0,.25));
}
.cronos-bullet-list { margin: 0; padding-left: 18px; color: #d2d2d2; line-height: 1.6; }
.cronos-micro { margin-top: 12px; color: #afafaf; font-size: 13px; }
.grid-2-equal { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.cronos-cta-strip { border-color: rgba(255,140,0,.38); background: linear-gradient(180deg, rgba(24, 16, 8, .95), rgba(10,10,10,.95)); }
.cronos-auth-visual {
    background: linear-gradient(120deg, rgba(0,0,0,.72), rgba(0,0,0,.38)), url('https://autolavadocronosplaza.com/logo.jpeg');
    background-size: cover;
    background-position: center;
    min-height: 420px;
}
.auth-logo { width: 90px; height: auto; border-radius: 14px; border: 1px solid #333; margin-bottom: 10px; }
.table-wrap { border: 1px solid #2e2e2e; }
th { background: #141414; color: #f2f2f2; border-color: #2f2f2f; }
td { border-color: #2a2a2a; color: #eee; }

/* Modal reserva — tema oscuro Cronos */
.modal-booking-overlay {
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(4px);
}
.modal-card.modal-booking {
    width: min(920px, 96vw);
    background: linear-gradient(165deg, #161616 0%, #0c0c0c 55%, #111 100%);
    border: 1px solid rgba(255, 140, 0, 0.35);
    box-shadow: 0 0 0 1px rgba(255, 140, 0, 0.12), 0 24px 60px rgba(0, 0, 0, 0.65);
    color: #f2f2f2;
    padding: 24px 22px 22px;
}
.modal-card.modal-booking h3 {
    margin: 0 36px 8px 0;
    color: #fff;
    font-size: 26px;
    letter-spacing: 0.3px;
}
.modal-booking-lead,
.modal-card.modal-booking .muted {
    color: #b8b8b8;
    margin: 0 0 16px;
    line-height: 1.5;
}
.modal-close-dark {
    background: rgba(255, 140, 0, 0.12);
    border: 1px solid rgba(255, 140, 0, 0.45);
    color: #ffb347;
    z-index: 2;
}
.modal-close-dark:hover {
    background: rgba(255, 140, 0, 0.25);
    color: #fff;
}
.modal-booking label {
    color: #e0e0e0;
    font-weight: 600;
}
.modal-booking input,
.modal-booking select,
.modal-booking textarea {
    background: #0f0f0f;
    border: 1px solid #3d3d3d;
    color: #fff;
}
.modal-booking input:focus,
.modal-booking select:focus,
.modal-booking textarea:focus {
    border-color: #ff8c00;
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.18);
}
.modal-booking .booking-services-panel {
    max-height: 280px;
    overflow-y: auto;
    border: 1px solid #333;
    border-radius: 14px;
    padding: 10px;
    background: #0a0a0a;
}
.modal-booking .booking-service-category h4 {
    margin: 10px 0 8px;
    font-size: 13px;
    color: #ff8c00;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}
.modal-booking .booking-service-category:first-child h4 {
    margin-top: 0;
}
.modal-booking .booking-service-list {
    display: grid;
    gap: 8px;
}
.modal-booking .booking-service-item {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border: 1px solid #333;
    border-radius: 12px;
    background: #141414;
    transition: border-color 0.15s, background 0.15s;
}
.modal-booking .booking-service-item:hover {
    border-color: rgba(255, 140, 0, 0.45);
}
.modal-booking .booking-service-item.is-selected {
    border-color: #ff8c00;
    background: linear-gradient(90deg, rgba(255, 140, 0, 0.14), rgba(255, 140, 0, 0.04));
    box-shadow: inset 0 0 0 1px rgba(255, 140, 0, 0.2);
}
.modal-booking .service-qty-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.modal-booking .qty-btn {
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 10px;
    background: #1f1f1f;
    border: 1px solid #444;
    color: #ffb347;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}
.modal-booking .qty-btn:hover {
    border-color: #ff8c00;
    background: rgba(255, 140, 0, 0.15);
}
.modal-booking .service-qty-input {
    width: 48px;
    text-align: center;
    padding: 8px 4px;
    -moz-appearance: textfield;
}
.modal-booking .service-qty-input::-webkit-outer-spin-button,
.modal-booking .service-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.modal-booking .booking-service-text {
    display: grid;
    gap: 2px;
    min-width: 0;
}
.modal-booking .booking-service-text strong {
    color: #ffb347;
    font-size: 12px;
}
.modal-booking .booking-service-text span {
    color: #f0f0f0;
    font-size: 13px;
    line-height: 1.35;
}
.modal-booking .booking-service-text em {
    color: #9a9a9a;
    font-style: normal;
    font-size: 12px;
}
.modal-booking .booking-total-box {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px dashed #444;
    background: #111;
    color: #aaa;
    font-size: 14px;
}
.modal-booking .booking-total-box.has-total {
    border-style: solid;
    border-color: rgba(255, 140, 0, 0.45);
    background: linear-gradient(180deg, rgba(255, 140, 0, 0.1), rgba(0, 0, 0, 0.2));
    color: #eee;
}
.modal-booking .booking-total-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
}
.modal-booking .booking-total-line strong {
    color: #ffb347;
    font-size: 20px;
}
.modal-booking .booking-total-names {
    margin: 8px 0 0;
    font-size: 12px;
    color: #b0b0b0;
    line-height: 1.4;
}
.modal-booking .slot-status-text {
    color: #c8c8c8;
    font-size: 13px;
    margin-bottom: 4px;
}
.modal-booking .slot-btn {
    border: 1px solid #444;
    background: #1a1a1a;
    color: #f2f2f2;
}
.modal-booking .slot-btn:hover {
    border-color: #ff8c00;
    color: #ffb347;
}
.modal-booking .slot-btn.selected {
    background: linear-gradient(135deg, #ff8c00, #d96a00);
    border-color: #ff9b2f;
    color: #111;
    font-weight: 700;
}
.modal-booking.success-modal .success-details {
    background: #141414;
    border-color: #333;
    color: #eee;
}
.modal-booking.success-modal .success-badge {
    background: linear-gradient(135deg, #ff8c00, #d96a00);
    color: #111;
}

/* Panel: reservas internas */
.appointments-page {
    align-items: start;
}
.internal-services-panel {
    max-height: 260px;
    overflow-y: auto;
    border: 1px solid #333;
    border-radius: 14px;
    padding: 10px;
    background: #0a0a0a;
    margin-bottom: 10px;
}
.internal-services-panel .booking-service-category h4 {
    margin: 10px 0 8px;
    font-size: 12px;
    color: #ff8c00;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.internal-service-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px;
    border: 1px solid #333;
    border-radius: 12px;
    background: #141414;
    margin-bottom: 8px;
}
.internal-service-item.is-selected {
    border-color: #ff8c00;
    background: rgba(255, 140, 0, 0.08);
}
.checkbox-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #ddd;
}
.checkbox-inline input {
    width: auto;
    accent-color: #ff8c00;
}
.appointments-list-card {
    max-height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
}
.appointments-list-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}
.appointments-list-head h3 {
    margin: 0;
}
.appointments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    max-height: min(72vh, 900px);
    padding-right: 4px;
}
.appointments-empty {
    margin: 0;
    padding: 20px 0;
    text-align: center;
}
.appointment-row-card {
    border: 1px solid #333;
    border-radius: 14px;
    padding: 14px 16px;
    background: linear-gradient(180deg, #161616, #101010);
    transition: border-color 0.15s;
}
.appointment-row-card:hover {
    border-color: rgba(255, 140, 0, 0.4);
}
.appointment-row-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}
.appointment-row-id {
    display: block;
    font-size: 11px;
    color: #888;
    margin-bottom: 2px;
}
.appointment-row-datetime {
    display: block;
    font-size: 15px;
    color: #fff;
}
.appointment-row-client {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 600;
    color: #f2f2f2;
}
.appointment-row-services {
    margin: 0 0 10px;
    font-size: 13px;
    line-height: 1.45;
    color: #ffb347;
}
.appointment-row-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #ccc;
}
.appointment-row-amount {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
}
.appointment-row-notes {
    margin: 10px 0 0;
    font-size: 12px;
    line-height: 1.4;
    border-top: 1px dashed #333;
    padding-top: 8px;
}
.status-pill.status-pendiente {
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.35);
}
.status-pill.status-confirmada {
    background: rgba(76, 175, 80, 0.15);
    color: #81c784;
    border: 1px solid rgba(76, 175, 80, 0.35);
}
.status-pill.status-completada {
    background: rgba(33, 150, 243, 0.15);
    color: #64b5f6;
    border: 1px solid rgba(33, 150, 243, 0.35);
}
.status-pill.status-cancelada {
    background: rgba(244, 67, 54, 0.12);
    color: #e57373;
    border: 1px solid rgba(244, 67, 54, 0.3);
}
.status-pill {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: capitalize;
    white-space: nowrap;
}

/* ===== Panel admin: tablas, alertas, calendario ===== */
body.theme-cronos table {
    background: #111;
    border-radius: 12px;
}
body.theme-cronos th {
    background: #1a1a1a;
    color: #f5f5f5;
    border-color: #333;
    font-weight: 600;
}
body.theme-cronos td {
    background: #121212;
    color: #e8e8e8;
    border-color: #2a2a2a;
}
body.theme-cronos tbody tr:hover td {
    background: #181818;
}
body.theme-cronos .table-wrap {
    border: 1px solid #333;
    border-radius: 12px;
    background: #0e0e0e;
}
body.theme-cronos .alert {
    color: #f2f2f2;
    border-radius: 10px;
}
body.theme-cronos .alert.success {
    background: rgba(76, 175, 80, 0.15);
    border: 1px solid rgba(129, 199, 132, 0.45);
    color: #c8e6c9;
}
body.theme-cronos .alert.error {
    background: rgba(244, 67, 54, 0.12);
    border: 1px solid rgba(229, 115, 115, 0.45);
    color: #ffcdd2;
}
body.theme-cronos .service-toggle-form button,
body.theme-cronos .user-edit-btn {
    background: linear-gradient(135deg, #ff8c00, #d96a00);
    color: #111;
    border: 1px solid #ff9b2f;
}
body.theme-cronos .permission-item {
    background: #141414;
    border-color: #333;
    color: #ddd;
}
body.theme-cronos code {
    background: #1a1a1a;
    color: #ffb347;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Calendario */
body.theme-cronos .calendar-card h3 { color: #fff; }
body.theme-cronos .calendar-nav-btn {
    border: 1px solid #444;
    background: #1a1a1a;
    color: #f2f2f2;
}
body.theme-cronos .calendar-nav-btn:hover {
    background: #252525;
    border-color: #ff8c00;
}
body.theme-cronos .calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 14px;
}
body.theme-cronos .legend-item {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid transparent;
}
body.theme-cronos .day {
    background: #141414;
    border-color: #2e2e2e;
}
body.theme-cronos .day h4 { color: #ffb347; }
body.theme-cronos .day-empty { opacity: 0.35; }

body.theme-cronos .appt {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 6px 8px;
    border-radius: 8px;
    margin-bottom: 5px;
    font-size: 12px;
    line-height: 1.25;
    border: 1px solid transparent;
    border-left-width: 3px;
}
body.theme-cronos .appt-time {
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.3px;
}
body.theme-cronos .appt-client {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
body.theme-cronos .appt--pendiente {
    background: rgba(255, 193, 7, 0.12);
    border-color: rgba(255, 193, 7, 0.35);
    border-left-color: #ffc107;
    color: #ffe082;
}
body.theme-cronos .appt--confirmada {
    background: rgba(76, 175, 80, 0.12);
    border-color: rgba(76, 175, 80, 0.35);
    border-left-color: #66bb6a;
    color: #c8e6c9;
}
body.theme-cronos .appt--completada {
    background: rgba(33, 150, 243, 0.12);
    border-color: rgba(33, 150, 243, 0.35);
    border-left-color: #42a5f5;
    color: #bbdefb;
}
body.theme-cronos .appt--cancelada {
    background: rgba(244, 67, 54, 0.1);
    border-color: rgba(244, 67, 54, 0.3);
    border-left-color: #ef5350;
    color: #ef9a9a;
    opacity: 0.75;
}
body.theme-cronos .appt-clickable {
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: filter 0.15s, transform 0.15s;
}
body.theme-cronos .appt-clickable:hover {
    filter: brightness(1.12);
    transform: translateY(-1px);
}
body.theme-cronos .appt-clickable strong,
body.theme-cronos .appt-clickable .muted,
body.theme-cronos .appt strong,
body.theme-cronos .appt .muted {
    color: inherit;
}

/* Modal editar cita */
body.theme-cronos .modal-calendar-overlay {
    background: rgba(0, 0, 0, 0.85);
}
body.theme-cronos .modal-card.modal-calendar-edit {
    background: linear-gradient(165deg, #161616, #0c0c0c);
    border: 1px solid rgba(255, 140, 0, 0.35);
    color: #f2f2f2;
    box-shadow: 0 0 0 1px rgba(255, 140, 0, 0.1), 0 24px 60px rgba(0, 0, 0, 0.7);
}
body.theme-cronos .modal-card.modal-calendar-edit h3 {
    color: #fff;
    margin: 0 36px 8px 0;
}
body.theme-cronos .calendar-edit-client {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 700;
    color: #ffb347;
}
body.theme-cronos .calendar-edit-summary {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 140, 0, 0.08);
    border: 1px solid rgba(255, 140, 0, 0.25);
    font-size: 13px;
    line-height: 1.5;
    color: #ddd;
}
body.theme-cronos .calendar-edit-summary p { margin: 4px 0; }
body.theme-cronos .calendar-edit-summary strong { color: #ffb347; }
body.theme-cronos .calendar-edit-notes {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid #333;
}
body.theme-cronos .calendar-edit-notes label {
    display: block;
    margin-bottom: 8px;
    color: #ffb347;
    font-weight: 600;
}
body.theme-cronos .calendar-edit-notes-content {
    margin: 0;
    line-height: 1.5;
    font-size: 14px;
}
body.theme-cronos .calendar-notes-client {
    margin: 0 0 8px;
    color: #f2f2f2;
    white-space: pre-wrap;
    word-break: break-word;
}
body.theme-cronos .calendar-notes-system {
    margin: 0;
    padding-top: 8px;
    border-top: 1px dashed #444;
}
body.theme-cronos .calendar-quick-actions .btn-secondary {
    background: #2a2a2a;
    border-color: #444;
    color: #eee;
}
body.theme-cronos .calendar-quick-actions .btn-danger {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid rgba(244, 67, 54, 0.5);
    color: #ffcdd2;
}
body.theme-cronos .modal-card.modal-calendar-edit .slot-btn {
    background: #1a1a1a;
    border: 1px solid #444;
    color: #f2f2f2;
}
body.theme-cronos .modal-card.modal-calendar-edit .slot-btn.selected,
body.theme-cronos .modal-card.modal-calendar-edit .slot-btn:hover {
    background: rgba(255, 140, 0, 0.2);
    border-color: #ff8c00;
    color: #fff;
}
body.theme-cronos .slot-status-text { color: #b0b0b0; font-size: 13px; }

@media (max-width: 980px) {
    body.theme-cronos .services-table tbody tr,
    body.theme-cronos .users-table tbody tr,
    body.theme-cronos .appointments-table tbody tr {
        background: #141414;
        border-color: #333;
    }
    body.theme-cronos .services-table td::before,
    body.theme-cronos .users-table td::before,
    body.theme-cronos .appointments-table td::before {
        color: #ffb347;
    }
}

/* Historial por placa (publico) */
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}
.btn-ghost {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}
.btn-ghost:hover {
    background: rgba(255, 140, 0, 0.15);
    border-color: rgba(255, 140, 0, 0.5);
    color: #ffb347;
}
.historial-hero {
    margin-bottom: 18px;
    padding: 28px 24px;
    border-radius: 20px;
    border: 1px solid rgba(255, 140, 0, 0.28);
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.1), rgba(0, 0, 0, 0.4));
}
.historial-hero h2 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 32px;
}
.historial-lead {
    margin: 0;
    color: #c8c8c8;
    max-width: 640px;
    line-height: 1.5;
}
.historial-search-card {
    margin-bottom: 16px;
}
.historial-search-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #ffb347;
}
.historial-search-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.historial-plate-input {
    flex: 1;
    min-width: 180px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 14px 16px;
    border-radius: 12px;
}
.historial-search-btn {
    padding: 14px 28px;
    font-size: 16px;
}
.historial-hidden { display: none !important; }
.historial-panel { margin-bottom: 14px; }
.historial-section-title {
    margin: 0 0 12px;
    color: #fff;
    font-size: 18px;
}
.historial-plate-badge {
    margin-bottom: 16px;
}
.plate-tag {
    display: inline-block;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 3px;
    color: #fff;
    padding: 8px 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ff8c00, #d96a00);
    border: 1px solid #ff9b2f;
}
.plate-vehicle {
    display: block;
    margin-top: 8px;
    color: #bbb;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0;
}
.historial-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}
.stat-box {
    padding: 12px;
    border-radius: 12px;
    background: #141414;
    border: 1px solid #333;
}
.stat-num {
    display: block;
    font-size: 26px;
    font-weight: 800;
    color: #ffb347;
}
.stat-lbl, .stat-val {
    display: block;
    font-size: 12px;
    color: #aaa;
    margin-top: 4px;
}
.stat-val { font-size: 13px; color: #e0e0e0; }
.historial-client-name {
    margin: 0;
    font-size: 18px;
    color: #fff;
}
.historial-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-left: 2px solid #333;
    margin-left: 8px;
    padding-left: 18px;
}
.timeline-item {
    position: relative;
    padding: 0 0 18px 0;
}
.timeline-dot {
    position: absolute;
    left: -25px;
    top: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff8c00;
    border: 2px solid #111;
}
.timeline-servicio .timeline-dot { background: #66bb6a; }
.timeline-interaccion .timeline-dot { background: #42a5f5; }
.timeline-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    align-items: baseline;
}
.timeline-head strong { color: #fff; }
.timeline-head time { font-size: 12px; color: #999; }
.timeline-body p { margin: 6px 0 0; color: #ccc; font-size: 14px; }
.timeline-meta { color: #888 !important; font-size: 12px !important; }
.timeline-amount { color: #ffb347; font-weight: 700; }
.btn-secondary-historial {
    background: #2a2a2a;
    border: 1px solid #444;
    color: #eee;
    padding: 10px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
}
.btn-secondary-historial:hover { border-color: #ff8c00; color: #ffb347; }
.historial-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 500;
    padding: 12px 20px;
    border-radius: 999px;
    background: #1a1a1a;
    border: 1px solid #ff8c00;
    color: #fff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}
.historial-toast.is-error {
    border-color: #e57373;
    color: #ffcdd2;
}
.historial-footer-link {
    text-align: center;
    margin: 20px 0 40px;
}
.historial-actions-row { margin-top: 12px; }

/* Placas en calendario */
.plates-chip-list {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.plate-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 140, 0, 0.12);
    border: 1px solid rgba(255, 140, 0, 0.35);
    font-weight: 700;
    letter-spacing: 1px;
}
.plate-chip a { color: #ffb347; text-decoration: none; }
.plate-chip a:hover { color: #fff; }
.plate-chip-remove {
    width: 22px;
    height: 22px;
    padding: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid #555;
    color: #ccc;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
}
.calendar-plates-block {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid #333;
}
body.theme-cronos .btn-secondary {
    background: #2a2a2a;
    border: 1px solid #444;
    color: #eee;
}
body.theme-cronos .calendar-quick-actions .btn-danger {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid rgba(244, 67, 54, 0.5);
    color: #ffcdd2;
}
