:root {
    --bg: #0a0a0a;
    --white: #f4f4f4;
    --black: #0a0a0a;
    --gray: #a8a8a8;
    --line: #2a2a2a;
    /* Manual de marca Mora */
    --mora-olive: #917f31;
    --mora-beige: #e9dcbe;
    --mora-cream: #fff9e8;
    --mora-green: #2d4934;
    --mora-gold: #c1a25a;
    --gold: #c1a25a;
    --gold-light: #e9dcbe;
    --orange: #917f31;
    --orange-dark: #2d4934;
    --silver: #c8c8c8;
    --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    --font-display: "Cormorant Garamond", "Times New Roman", serif;
    --font-body: "Montserrat", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

* { box-sizing: border-box; font-family: var(--font-body); }

body.theme-mora {
    margin: 0;
    background: radial-gradient(ellipse at 15% 0%, #2d4934 0%, #15241c 38%, #0a0f0c 100%);
    color: var(--white);
    min-height: 100vh;
}
body.theme-mora a { color: var(--gold); text-decoration: none; }
body.theme-mora a:hover { color: var(--gold-light); }

.brand-logo {
    display: block;
    width: auto;
    height: auto;
    max-height: 56px;
    max-width: 140px;
    object-fit: contain;
    flex-shrink: 0;
    border: none;
    background: transparent;
}
.brand-logo-sidebar { max-height: 48px; max-width: 120px; }
.brand-logo-sm { max-height: 40px; max-width: 100px; }
.brand-logo-public { max-height: 88px; max-width: 220px; }
.brand-logo-auth {
    max-height: 100px;
    max-width: 220px;
    margin: 0 auto 20px;
}
.brand-logo-auth-card {
    max-height: 72px;
    max-width: 180px;
    margin: 0 auto 16px;
}
.sidebar-brand .brand-logo { max-height: 52px; }
body.theme-mora .brand img,
body.theme-mora .brand-logo {
    border: none;
    background: transparent;
    border-radius: 0;
}
.auth-card .brand-logo-auth-card { display: block; }

.dashboard-upcoming { list-style: none; margin: 0; padding: 0; }
.dashboard-upcoming li {
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.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: 110px; 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:not(.public-nav-elegant):not(.sidebar-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:not(.public-nav-elegant):not(.sidebar-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);
}
.sidebar-nav a[href="whatsapp.php"] {
    display: none;
}
.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;
}
.services-page {
    display: grid;
    grid-template-columns: minmax(280px, 340px) 1fr;
    gap: 18px;
    align-items: start;
}
.services-create-card {
    position: sticky;
    top: 16px;
}
.services-catalog {
    display: grid;
    gap: 16px;
    min-width: 0;
}
.services-catalog__head h3 {
    margin: 0 0 4px;
}
.services-tabs {
    padding: 0;
    overflow: hidden;
}
.services-tabs__nav {
    display: flex;
    gap: 6px;
    padding: 12px 12px 0;
    overflow-x: auto;
    scrollbar-width: thin;
    border-bottom: 1px solid rgba(193, 162, 90, 0.18);
}
.services-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    padding: 10px 14px;
    border: 1px solid transparent;
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    background: transparent;
    color: #bdbdbd;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.services-tab:hover {
    color: #f2f2f2;
    background: rgba(255, 255, 255, 0.04);
}
.services-tab.is-active {
    color: var(--mora-cream, #fff9e8);
    background: rgba(45, 73, 52, 0.35);
    border-color: rgba(193, 162, 90, 0.35);
}
.services-tab__label {
    white-space: nowrap;
}
.services-tab__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 11px;
    line-height: 1;
}
.services-tab.is-active .services-tab__count {
    background: rgba(193, 162, 90, 0.25);
    color: var(--mora-beige, #e9dcbe);
}
.services-tabs__panels {
    padding: 16px;
}
.services-tab-panel[hidden] {
    display: none !important;
}
.services-tab-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.services-tab-panel__head h4 {
    margin: 0;
    font-size: 1.05rem;
    letter-spacing: 0.04em;
}
.services-tab-panel__empty {
    margin: 0;
    padding: 24px 12px;
    text-align: center;
}
.services-category-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(193, 162, 90, 0.2);
}
.services-category-card__head h4 {
    margin: 0;
    font-size: 1.05rem;
    letter-spacing: 0.04em;
}
.services-category-card__count {
    font-size: 12px;
    color: #9a9a9a;
    white-space: nowrap;
}
.services-table--catalog tbody tr.is-inactive {
    opacity: 0.72;
}
.services-status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.services-status-badge.is-active {
    background: rgba(76, 175, 80, 0.16);
    border: 1px solid rgba(129, 199, 132, 0.45);
    color: #b9f6ca;
}
.services-status-badge.is-inactive {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #bdbdbd;
}
.service-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.service-toggle-form,
.service-delete-form {
    display: inline;
}
.service-delete-form button {
    margin: 0;
}
.btn-danger {
    background: rgba(244, 67, 54, 0.18);
    border: 1px solid rgba(244, 67, 54, 0.45);
    color: #ffcdd2;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}
.btn-danger:hover {
    background: rgba(244, 67, 54, 0.3);
    border-color: rgba(244, 67, 54, 0.65);
}
.modal-card.modal-service-edit {
    width: min(520px, 96vw);
}
.service-edit-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 8px;
}
.services-empty {
    text-align: center;
}
@media (max-width: 980px) {
    .services-page {
        grid-template-columns: 1fr;
    }
    .services-create-card {
        position: static;
    }
}
.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; }

/* Header público: fijo, logo grande, ocultar al bajar / mostrar al subir */
body.public-site {
    padding-top: var(--public-topbar-height, 132px);
}
.topbar-public {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 200;
    padding: 16px 28px;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}
.topbar-public.is-hidden {
    transform: translateY(-100%);
    pointer-events: none;
}
.topbar-public .brand-public {
    align-items: center;
    gap: 18px;
}
.topbar-public .brand h1 {
    font-size: clamp(18px, 2.5vw, 24px);
    letter-spacing: 0.12em;
}
.topbar-public .brand p {
    font-size: 10px;
    letter-spacing: 0.18em;
}
body.public-site .container-public > .hero.mora-hero--photo:first-child {
    margin-top: calc(-1 * var(--public-topbar-height, 132px));
}

/* Botones flotantes (Reservar + WhatsApp) */
.float-actions {
    position: fixed;
    right: max(16px, env(safe-area-inset-right, 0px));
    bottom: max(16px, env(safe-area-inset-bottom, 0px));
    z-index: 180;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    pointer-events: none;
}
.float-actions > * {
    pointer-events: auto;
}
.float-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.float-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.32);
}
.float-action-btn:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px;
}

/* Reservar — abre modal */
body.theme-mora button.float-action-btn--book,
button.float-action-btn--book {
    padding: 14px 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: #1a1510;
    font-size: 15px;
    letter-spacing: 0.04em;
}
body.theme-mora button.float-action-btn--book:hover,
button.float-action-btn--book:hover {
    color: #1a1510;
    filter: brightness(1.05);
}
/* WhatsApp — colores oficiales */
body.theme-mora a.float-action-btn--wa,
body.theme-cronos a.float-action-btn--wa,
a.float-action-btn--wa.wa-float {
    width: 56px;
    height: 56px;
    padding: 0;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
}
body.theme-mora a.float-action-btn--wa:hover,
body.theme-cronos a.float-action-btn--wa:hover,
a.float-action-btn--wa.wa-float:hover {
    background: #20bd5a;
    color: #fff;
    transform: scale(1.06);
}
body.theme-mora a.float-action-btn--wa:active,
a.float-action-btn--wa.wa-float:active {
    background: #128c7e;
    color: #fff;
}
body.theme-mora a.float-action-btn--wa:focus-visible,
a.float-action-btn--wa.wa-float:focus-visible {
    outline: 3px solid #25d366;
    outline-offset: 3px;
}
.wa-float__icon {
    display: block;
    color: #fff;
    flex-shrink: 0;
}
.float-action-btn__label--wa {
    display: none;
}

@media (max-width: 720px) {
    .float-actions {
        right: max(12px, env(safe-area-inset-right, 0px));
        bottom: max(12px, env(safe-area-inset-bottom, 0px));
        gap: 8px;
    }
    body.theme-mora button.float-action-btn--book,
    button.float-action-btn--book {
        padding: 12px 18px;
        font-size: 14px;
        min-height: 48px;
    }
    body.theme-mora a.float-action-btn--wa,
    a.float-action-btn--wa.wa-float {
        width: 52px;
        height: 52px;
        min-width: 52px;
        min-height: 52px;
    }
    .wa-float__icon {
        width: 26px;
        height: 26px;
    }
}

@media (min-width: 721px) {
    body.theme-mora a.float-action-btn--wa,
    a.float-action-btn--wa.wa-float {
        width: auto;
        min-width: 56px;
        height: 56px;
        padding: 0 18px 0 14px;
        border-radius: 999px;
    }
    .float-action-btn__label--wa {
        display: inline;
        font-size: 14px;
        font-weight: 700;
        color: #fff;
    }
}
@media (max-width: 720px) {
    body.public-site {
        padding-top: var(--public-topbar-height, 120px);
    }
    .topbar-public:not(.topbar-public--elegant) {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 14px 16px 12px;
        text-align: center;
    }
    .topbar-public:not(.topbar-public--elegant) .brand-public {
        width: 100%;
        justify-content: center;
        gap: 0;
    }
    .topbar-public:not(.topbar-public--elegant) .brand-logo-public {
        max-height: 120px;
        max-width: min(92vw, 320px);
    }
    .topbar-public .brand-public > div {
        display: none;
    }
    .topbar-public:not(.topbar-public--elegant) .public-nav {
        width: 100%;
        display: flex;
        justify-content: center;
    }
}

.public-nav-login {
    display: inline-block;
    border: 1px solid rgba(193, 162, 90, 0.45);
    color: var(--mora-beige);
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(193, 162, 90, 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.mora-hero {
    min-height: 420px;
    border: 1px solid rgba(193, 162, 90, 0.28);
    background-image:
        linear-gradient(115deg, rgba(20, 28, 24, 0.92) 0%, rgba(45, 73, 52, 0.72) 55%, rgba(145, 127, 49, 0.35) 100%),
        radial-gradient(ellipse at 85% 15%, rgba(193, 162, 90, 0.16), transparent 55%);
    background-size: cover;
    background-position: center;
}
.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: var(--mora-beige);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 600;
    font-size: 12px;
}
.mora-section,
.cronos-section { margin-top: 22px; }
.section-title { margin: 0 0 8px; color: #fff; font-size: 30px; }
.section-title span { color: var(--gold); }
.mora-cards-compact .price-card-amount { font-size: 26px; }
.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; }
.mora-cta-strip,
.cronos-cta-strip { border-color: rgba(193, 162, 90, 0.38); background: linear-gradient(180deg, rgba(45, 73, 52, 0.55), rgba(10, 10, 10, 0.95)); }
.mora-auth-visual {
    background: linear-gradient(135deg, rgba(20, 28, 24, 0.95), rgba(45, 73, 52, 0.82));
}
.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 .calendar-card .day {
    background: #1c1c1c;
    border: 1px solid #444;
}
body.theme-cronos .calendar-card .day h4 {
    color: #ffffff;
    font-weight: 700;
    font-size: 15px;
    margin: 0 0 8px;
}
body.theme-cronos .calendar-card .day .day-empty {
    color: #9a9a9a;
    opacity: 1;
}
body.theme-cronos .calendar-card > .muted {
    color: #c8c8c8;
}

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 — texto negro sobre fondo claro */
body.theme-cronos .modal-calendar-overlay {
    background: rgba(0, 0, 0, 0.85);
}
body.theme-cronos .modal-card.modal-calendar-edit {
    background: #f7f7f7;
    border: 1px solid #d0d0d0;
    color: #111;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
body.theme-cronos .modal-card.modal-calendar-edit h3 {
    color: #111;
    margin: 0 36px 8px 0;
}
body.theme-cronos .modal-card.modal-calendar-edit label,
body.theme-cronos .modal-card.modal-calendar-edit .muted,
body.theme-cronos .modal-card.modal-calendar-edit p {
    color: #111;
}
body.theme-cronos .modal-card.modal-calendar-edit .muted.small {
    color: #444;
}
body.theme-cronos .calendar-edit-client {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 700;
    color: #111;
}
body.theme-cronos .calendar-edit-summary {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #ddd;
    font-size: 13px;
    line-height: 1.5;
    color: #111;
}
body.theme-cronos .calendar-edit-summary p { margin: 4px 0; color: #111; }
body.theme-cronos .calendar-edit-summary strong { color: #111; }
body.theme-cronos .calendar-edit-notes {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #ddd;
}
body.theme-cronos .calendar-edit-notes label {
    display: block;
    margin-bottom: 8px;
    color: #111;
    font-weight: 600;
}
body.theme-cronos .calendar-edit-notes-content {
    margin: 0;
    line-height: 1.5;
    font-size: 14px;
    color: #111;
}
body.theme-cronos .calendar-edit-notes-content.muted {
    color: #333 !important;
}
body.theme-cronos .calendar-notes-client {
    margin: 0 0 8px;
    color: #111;
    white-space: pre-wrap;
    word-break: break-word;
}
body.theme-cronos .calendar-notes-system {
    margin: 0;
    padding-top: 8px;
    border-top: 1px dashed #bbb;
    color: #333;
}
body.theme-cronos .modal-card.modal-calendar-edit input,
body.theme-cronos .modal-card.modal-calendar-edit select,
body.theme-cronos .modal-card.modal-calendar-edit textarea {
    background: #fff;
    border: 1px solid #bbb;
    color: #111;
}
body.theme-cronos .modal-card.modal-calendar-edit .modal-close-dark {
    background: #eee;
    border: 1px solid #ccc;
    color: #111;
}
body.theme-cronos .modal-card.modal-calendar-edit .modal-close-dark:hover {
    background: #ddd;
    color: #000;
}
body.theme-cronos .calendar-plates-block {
    background: #fff;
    border-color: #ddd;
}
body.theme-cronos .calendar-plates-block label,
body.theme-cronos .calendar-plates-block .muted {
    color: #111;
}
body.theme-cronos .modal-card.modal-calendar-edit .plate-chip {
    background: #eee;
    border: 1px solid #bbb;
    color: #111;
}
body.theme-cronos .modal-card.modal-calendar-edit .plate-chip a {
    color: #111;
}
body.theme-cronos .modal-card.modal-calendar-edit .plate-chip a:hover {
    color: #000;
}
body.theme-cronos .modal-card.modal-calendar-edit .plate-chip-remove {
    background: #fff;
    border-color: #999;
    color: #111;
}
body.theme-cronos .modal-card.modal-calendar-edit .calendar-quick-actions .btn-secondary {
    background: #e8e8e8;
    border: 1px solid #999;
    color: #111;
}
body.theme-cronos .modal-card.modal-calendar-edit .calendar-quick-actions .btn-danger {
    background: #fdecea;
    border: 1px solid #c62828;
    color: #111;
}
body.theme-cronos .modal-card.modal-calendar-edit .calendar-quick-actions button[type="submit"]:not(.btn-secondary):not(.btn-danger) {
    color: #111;
}
body.theme-cronos .modal-card.modal-calendar-edit .slot-btn {
    background: #fff;
    border: 1px solid #aaa;
    color: #111;
}
body.theme-cronos .modal-card.modal-calendar-edit .slot-btn.selected,
body.theme-cronos .modal-card.modal-calendar-edit .slot-btn:hover {
    background: #fff3e0;
    border-color: #e67e00;
    color: #111;
    font-weight: 700;
}
body.theme-cronos .modal-card.modal-calendar-edit .slot-status-text,
body.theme-cronos .modal-card.modal-calendar-edit #edit_slot_status {
    color: #333;
    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(193, 162, 90, 0.14);
    border-color: rgba(193, 162, 90, 0.55);
    color: var(--mora-cream);
}
body.theme-mora button.btn-accent,
body.theme-mora .btn-accent {
    background: linear-gradient(135deg, var(--mora-beige) 0%, var(--mora-gold) 100%);
    border: 1px solid var(--mora-gold);
    color: #1a1510;
    font-weight: 700;
}
body.theme-mora button.btn-accent:hover,
body.theme-mora .btn-accent:hover {
    filter: brightness(1.06);
    color: #1a1510;
}
.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;
}

/* ===== Mora State — landing informativa ===== */
body.theme-mora.public-site .hero-title,
body.theme-mora.public-site .section-title,
body.theme-mora.public-site .mora-experience-card h3,
body.theme-mora.public-site .mora-step-card h3,
body.theme-mora.public-site .mora-cta-strip h2 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.02em;
}
.hero.mora-hero--photo {
    background-image:
        linear-gradient(105deg, rgba(20, 28, 24, 0.86) 0%, rgba(45, 73, 52, 0.5) 50%, rgba(145, 127, 49, 0.22) 100%),
        var(--hero-image);
    background-size: cover;
    background-position: center;
    min-height: min(88vh, 720px);
    display: flex;
    align-items: flex-end;
}
.hero-title {
    margin: 0 0 14px;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 300;
    letter-spacing: 0.02em;
    line-height: 1.15;
    max-width: 18ch;
}
.hero-lead {
    margin: 0 0 24px;
    max-width: 52ch;
    color: #d8d0c4;
    font-size: 1.05rem;
    line-height: 1.65;
}
.showcase-eyebrow {
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 11px;
    color: var(--gold);
    font-weight: 700;
}
.section-head-center {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 28px;
}
.section-head-center .section-lead { margin-left: auto; margin-right: auto; }

.mora-showcase {
    margin-top: 48px;
    display: grid;
    gap: 0;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(193, 162, 90, 0.24);
}
.mora-showcase--split { grid-template-columns: 1.05fr 1fr; }
@media (max-width: 900px) {
    .mora-showcase--split { grid-template-columns: 1fr; }
}
.mora-showcase-media img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    display: block;
}
.mora-showcase-copy {
    padding: 36px 32px;
    background: linear-gradient(180deg, rgba(45, 73, 52, 0.42), rgba(12, 11, 10, 0.98));
}
.mora-checklist {
    margin: 20px 0;
    padding: 0;
    list-style: none;
}
.mora-checklist li {
    position: relative;
    padding: 8px 0 8px 22px;
    color: #ccc;
    line-height: 1.5;
}
.mora-checklist li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
}
.showcase-note {
    margin: 16px 0 0;
    font-size: 13px;
    color: #9a958a;
}

.mora-experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.mora-experience-card {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #333;
    background: #111;
    transition: transform 0.25s, box-shadow 0.25s;
}
.mora-experience-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}
.mora-experience-card__img {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}
.mora-experience-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.mora-experience-card:hover .mora-experience-card__img img { transform: scale(1.04); }
.mora-experience-card__tag {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(201, 169, 98, 0.5);
    color: var(--gold-light);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.mora-experience-card__body { padding: 20px 18px 22px; }
.mora-experience-card__body h3 {
    margin: 0 0 8px;
    font-size: 1.15rem;
    color: #fff;
    font-weight: 600;
}
.mora-experience-card__body p {
    margin: 0;
    color: #b5b0a8;
    font-size: 14px;
    line-height: 1.55;
}

.mora-amenity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}
.mora-amenity-card {
    padding: 22px 18px;
    border-radius: 14px;
    border: 1px solid #2e2e2e;
    background: linear-gradient(160deg, rgba(28, 26, 22, 0.9), rgba(14, 13, 12, 0.95));
}
.mora-amenity-icon {
    display: block;
    color: var(--gold);
    font-size: 18px;
    margin-bottom: 10px;
}
.mora-amenity-card h3 { margin: 0 0 8px; font-size: 1rem; color: #f0ebe3; }
.mora-amenity-card p { margin: 0; font-size: 13px; color: #a8a29a; line-height: 1.5; }

.mora-visual-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
@media (max-width: 768px) {
    .mora-visual-row { grid-template-columns: 1fr; }
}
.mora-visual-tile {
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16 / 10;
}
.mora-visual-tile img { width: 100%; height: 100%; object-fit: cover; }
.mora-visual-tile figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 28px 14px 12px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.mora-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
@media (max-width: 768px) {
    .mora-steps { grid-template-columns: 1fr; }
}
.mora-step-card {
    padding: 24px 20px;
    border-radius: 14px;
    border: 1px solid rgba(201, 169, 98, 0.22);
    background: rgba(20, 18, 14, 0.6);
}
.mora-step-num {
    display: block;
    font-size: 2rem;
    font-weight: 200;
    color: var(--gold);
    margin-bottom: 12px;
}
.mora-step-card h3 { margin: 0 0 8px; color: #fff; font-size: 1.05rem; }
.mora-step-card p { margin: 0; color: #aaa; font-size: 14px; line-height: 1.55; }

.mora-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 180px;
    gap: 10px;
}
.mora-gallery__item { border-radius: 12px; overflow: hidden; }
.mora-gallery__item--wide { grid-column: span 2; grid-row: span 2; }
.mora-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s;
}
.mora-gallery__item:hover img { transform: scale(1.03); }
@media (max-width: 900px) {
    .mora-gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 140px;
    }
    .mora-gallery__item--wide { grid-column: span 2; grid-row: span 1; }
}

.modal-booking--wide { max-width: 720px; }
.modal-booking--wizard {
    max-width: 640px;
    max-height: min(92vh, 820px);
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}
.modal-booking--wizard > .modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    z-index: 5;
}
.booking-wizard {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1;
}
.wizard-header {
    padding: 22px 24px 14px;
    border-bottom: 1px solid #333;
    flex-shrink: 0;
}
.wizard-header h3 {
    margin: 0 0 6px;
    font-size: 1.25rem;
    color: #fff;
}
.wizard-step-label {
    margin: 0 0 12px;
    font-size: 13px;
    color: var(--gold-light);
}
.wizard-progress {
    height: 4px;
    background: #2a2a2a;
    border-radius: 999px;
    overflow: hidden;
}
.wizard-progress-fill {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 999px;
    transition: width 0.35s ease;
}
.booking-form--wizard {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
    min-height: 280px;
    max-height: min(52vh, 480px);
}
.wizard-step {
    display: none;
}
.wizard-step.is-active {
    display: block;
    animation: wizardFadeIn 0.25s ease;
}
@keyframes wizardFadeIn {
    from { opacity: 0; transform: translateX(8px); }
    to { opacity: 1; transform: translateX(0); }
}
.wizard-step-heading {
    margin: 0 0 6px;
    font-size: 1.1rem;
    color: #fff;
    font-weight: 600;
}
.wizard-step-hint {
    margin: 0 0 16px;
    font-size: 13px;
}
.wizard-fields .form-group { margin-bottom: 12px; }
.wizard-service-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.wizard-cat-skip {
    margin-top: 14px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px dashed #444;
}
.wizard-cat-skip.has-selection {
    border-style: solid;
    border-color: rgba(193, 162, 90, 0.42);
    color: var(--gold-light);
}
.wizard-summary-box {
    margin-bottom: 16px;
}
.wizard-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 24px 20px;
    border-top: 1px solid #333;
    flex-shrink: 0;
    background: rgba(10, 10, 10, 0.95);
}
body.theme-mora .btn-secondary {
    background: #2a2a2a;
    border: 1px solid #555;
    color: #eee;
    padding: 11px 18px;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
}
body.theme-mora .btn-secondary:hover:not(:disabled) {
    border-color: var(--gold);
    color: var(--gold-light);
}
body.theme-mora .btn-secondary:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.wizard-footer .btn-secondary,
.wizard-footer .btn-accent {
    flex: 1;
    max-width: 200px;
}
.wizard-footer .wizard-btn-submit {
    max-width: none;
    flex: 1;
}
.wizard-btn-prev { margin-right: auto; }
.wizard-btn-next,
.wizard-btn-submit { margin-left: auto; }
.req { color: var(--gold); }
.booking-total-quote { margin: 10px 0 0; font-style: italic; }
.booking-service-text em {
    color: #9a958a;
    font-style: normal;
    font-size: 12px;
}

/* Editor de sitio (admin) */
.site-editor-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}
.site-editor-section {
    margin: 0 0 24px;
    padding: 18px 16px;
    border: 1px solid #333;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.2);
}
.site-editor-section legend {
    padding: 0 8px;
    color: var(--gold-light);
    font-weight: 700;
}
.site-editor-field {
    margin-bottom: 16px;
}
.site-editor-field textarea,
.site-editor-field .site-editor-wide,
.site-editor-json {
    width: 100%;
    max-width: 100%;
}
.site-editor-json {
    font-family: Consolas, 'Courier New', monospace;
    font-size: 12px;
}
.site-editor-image-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}
.site-editor-preview {
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #444;
}
.site-editor-actions {
    margin: 8px 0 24px;
}
.site-editor-custom {
    margin-top: 28px;
}
.site-editor-inline-delete {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
}
.site-editor-add-custom {
    margin-top: 16px;
}
.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}
@media (max-width: 720px) {
    .site-editor-image-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ===== Mora Estate — refinamiento elegante (sitio público) ===== */
body.theme-mora.mora-landing {
    --public-topbar-height: 108px;
    background:
        radial-gradient(ellipse 120% 80% at 50% -20%, rgba(45, 73, 52, 0.45), transparent 55%),
        radial-gradient(ellipse at 85% 100%, rgba(145, 127, 49, 0.12), transparent 45%),
        linear-gradient(180deg, #0f1612 0%, #0a0d0b 40%, #080807 100%);
}

body.theme-mora.mora-landing::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body.theme-mora.mora-landing .container-public {
    position: relative;
    z-index: 1;
    max-width: 1240px;
    padding-left: clamp(16px, 4vw, 32px);
    padding-right: clamp(16px, 4vw, 32px);
}

body.theme-mora.public-site .topbar-public--elegant {
    justify-content: center;
    padding: 14px clamp(20px, 4vw, 40px);
    background: linear-gradient(180deg, rgba(15, 22, 18, 0.92) 0%, rgba(15, 22, 18, 0.72) 100%);
    backdrop-filter: blur(16px) saturate(1.2);
    border-bottom: 1px solid rgba(193, 162, 90, 0.18);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
}

body.theme-mora.public-site .topbar-public__inner {
    width: min(1240px, 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

body.theme-mora.public-site .brand-public-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    line-height: 0;
}

body.theme-mora.public-site .brand-logo-public {
    max-height: 72px;
    max-width: 180px;
    mix-blend-mode: lighten;
    filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.35));
    transition: opacity 0.3s ease, transform 0.3s ease;
}

body.theme-mora.public-site .brand-public-link:hover .brand-logo-public {
    opacity: 0.92;
    transform: translateY(-1px);
}

body.theme-mora.public-site .public-nav-elegant {
    display: flex;
    align-items: center;
    gap: clamp(12px, 2.5vw, 28px);
}

body.theme-mora.public-site .public-nav-elegant a {
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(193, 162, 90, 0.28);
    background: rgba(45, 73, 52, 0.45);
    color: var(--mora-cream);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    opacity: 1;
    transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

body.theme-mora.public-site .public-nav-elegant a:hover {
    color: var(--mora-cream);
    background: rgba(45, 73, 52, 0.72);
    border-color: rgba(193, 162, 90, 0.55);
    transform: translateY(-1px);
}

body.theme-mora.public-site .public-nav-cta {
    padding: 10px 20px;
    border-radius: 999px;
    border: 1px solid rgba(193, 162, 90, 0.65);
    background: linear-gradient(135deg, rgba(193, 162, 90, 0.28), rgba(145, 127, 49, 0.22));
    color: var(--mora-cream);
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

body.theme-mora.public-site .public-nav-cta:hover {
    background: linear-gradient(135deg, rgba(193, 162, 90, 0.38), rgba(145, 127, 49, 0.3));
    border-color: var(--mora-gold);
    color: #fff9e8;
    transform: translateY(-1px);
}

body.theme-mora.mora-landing .hero.mora-hero--elegant {
    border: none;
    border-radius: 0;
    min-height: min(94vh, 820px);
    align-items: center;
    justify-content: flex-start;
    box-shadow: none;
}

body.theme-mora.mora-landing .hero.mora-hero--photo {
    background-image:
        linear-gradient(180deg, rgba(8, 12, 10, 0.55) 0%, rgba(15, 22, 18, 0.72) 45%, rgba(8, 10, 9, 0.88) 100%),
        var(--hero-image);
    background-position: center 30%;
}

body.theme-mora.mora-landing .hero-overlay {
    background:
        radial-gradient(ellipse 80% 60% at 20% 80%, rgba(45, 73, 52, 0.35), transparent 60%),
        linear-gradient(90deg, rgba(8, 10, 9, 0.82) 0%, rgba(8, 10, 9, 0.35) 55%, rgba(8, 10, 9, 0.15) 100%);
}

body.theme-mora.mora-landing .hero-content {
    max-width: 680px;
    padding: clamp(48px, 8vw, 96px) clamp(24px, 5vw, 48px);
}

body.theme-mora.mora-landing .hero-ornament {
    margin-bottom: 20px;
}

body.theme-mora.mora-landing .hero-ornament span {
    display: block;
    width: 48px;
    height: 1px;
    background: linear-gradient(90deg, var(--mora-gold), transparent);
    position: relative;
}

body.theme-mora.mora-landing .hero-ornament span::after {
    content: '';
    position: absolute;
    left: 0;
    top: -3px;
    width: 7px;
    height: 7px;
    border: 1px solid var(--mora-gold);
    transform: rotate(45deg);
    background: rgba(193, 162, 90, 0.2);
}

body.theme-mora.mora-landing .hero-kicker {
    font-size: 10px;
    letter-spacing: 0.28em;
    color: var(--mora-gold);
    font-weight: 500;
}

body.theme-mora.mora-landing .hero-title {
    max-width: 22ch;
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(2.4rem, 6vw, 4rem);
    line-height: 1.12;
    color: var(--mora-cream);
    margin-bottom: 18px;
}

body.theme-mora.mora-landing .hero-lead {
    color: rgba(233, 220, 190, 0.82);
    font-size: 1.02rem;
    font-weight: 300;
    line-height: 1.75;
    letter-spacing: 0.01em;
}

body.theme-mora.mora-landing .btn-accent,
body.theme-mora.mora-landing .btn-ghost {
    padding: 14px 26px;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 600;
}

body.theme-mora.mora-landing .btn-ghost {
    border-color: rgba(193, 162, 90, 0.45);
    background: rgba(45, 73, 52, 0.35);
    color: var(--mora-cream);
}

body.theme-mora.mora-landing .btn-ghost:hover {
    background: rgba(45, 73, 52, 0.55);
    border-color: rgba(193, 162, 90, 0.65);
    color: #fff9e8;
}

body.theme-mora.mora-landing .mora-section {
    margin-top: 0;
    padding: clamp(72px, 10vw, 110px) 0;
}

body.theme-mora.mora-landing .section-head-center {
    max-width: 720px;
    margin-bottom: clamp(36px, 5vw, 52px);
}

body.theme-mora.mora-landing .showcase-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 10px;
    letter-spacing: 0.28em;
    font-weight: 500;
    color: var(--mora-gold);
}

body.theme-mora.mora-landing .showcase-eyebrow::before,
body.theme-mora.mora-landing .showcase-eyebrow::after {
    content: '';
    width: 28px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(193, 162, 90, 0.65));
}

body.theme-mora.mora-landing .showcase-eyebrow::after {
    background: linear-gradient(90deg, rgba(193, 162, 90, 0.65), transparent);
}

body.theme-mora.mora-landing .section-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 300;
    color: var(--mora-cream);
    line-height: 1.18;
    margin-bottom: 14px;
}

body.theme-mora.mora-landing .section-title span {
    color: var(--mora-gold);
    font-style: italic;
    font-weight: 400;
}

body.theme-mora.mora-landing .section-lead {
    color: rgba(233, 220, 190, 0.72);
    font-weight: 300;
    line-height: 1.75;
    font-size: 1rem;
}

body.theme-mora.mora-landing .mora-showcase {
    margin-top: 0;
    border-radius: 2px;
    border: 1px solid rgba(193, 162, 90, 0.2);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

body.theme-mora.mora-landing .mora-showcase-copy {
    padding: clamp(36px, 5vw, 56px) clamp(28px, 4vw, 48px);
    background: linear-gradient(165deg, rgba(45, 73, 52, 0.35) 0%, rgba(12, 14, 12, 0.98) 100%);
}

body.theme-mora.mora-landing .mora-checklist li {
    color: rgba(233, 220, 190, 0.78);
    padding-left: 26px;
    font-weight: 300;
}

body.theme-mora.mora-landing .mora-checklist li::before {
    width: 6px;
    height: 6px;
    top: 15px;
    background: transparent;
    border: 1px solid var(--mora-gold);
}

body.theme-mora.mora-landing .mora-experience-card {
    border-radius: 2px;
    border: 1px solid rgba(193, 162, 90, 0.16);
    background: rgba(12, 14, 12, 0.75);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

body.theme-mora.mora-landing .mora-experience-card__img {
    aspect-ratio: 5 / 4;
}

body.theme-mora.mora-landing .mora-experience-card__img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(8, 10, 9, 0.75) 100%);
    pointer-events: none;
}

body.theme-mora.mora-landing .mora-experience-card__tag {
    top: auto;
    bottom: 16px;
    left: 16px;
    background: rgba(15, 22, 18, 0.72);
    border-color: rgba(193, 162, 90, 0.45);
    backdrop-filter: blur(8px);
    letter-spacing: 0.14em;
}

body.theme-mora.mora-landing .mora-experience-card__body {
    padding: 26px 24px 28px;
}

body.theme-mora.mora-landing .mora-experience-card__body h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--mora-cream);
}

body.theme-mora.mora-landing .mora-experience-card__body p {
    color: rgba(233, 220, 190, 0.68);
    font-weight: 300;
    line-height: 1.65;
}

body.theme-mora.mora-landing .mora-amenity-card {
    border-radius: 2px;
    padding: 28px 22px;
    border: 1px solid rgba(193, 162, 90, 0.14);
    background: linear-gradient(160deg, rgba(45, 73, 52, 0.18), rgba(10, 12, 10, 0.92));
    transition: border-color 0.3s ease, transform 0.3s ease;
}

body.theme-mora.mora-landing .mora-amenity-card:hover {
    border-color: rgba(193, 162, 90, 0.35);
    transform: translateY(-2px);
}

body.theme-mora.mora-landing .mora-amenity-icon {
    font-size: 14px;
    letter-spacing: 0.2em;
    color: var(--mora-gold);
}

body.theme-mora.mora-landing .mora-amenity-card h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 400;
}

body.theme-mora.mora-landing .mora-visual-tile {
    border-radius: 2px;
    border: 1px solid rgba(193, 162, 90, 0.12);
}

body.theme-mora.mora-landing .mora-visual-tile figcaption {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 500;
}

body.theme-mora.mora-landing .mora-step-card {
    border-radius: 2px;
    padding: 32px 26px;
    background: linear-gradient(180deg, rgba(45, 73, 52, 0.12), rgba(10, 12, 10, 0.85));
    border: 1px solid rgba(193, 162, 90, 0.18);
}

body.theme-mora.mora-landing .mora-step-num {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 300;
    color: var(--mora-gold);
    opacity: 0.85;
}

body.theme-mora.mora-landing .mora-step-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 400;
}

body.theme-mora.mora-landing .mora-gallery {
    gap: 14px;
    grid-auto-rows: 200px;
}

body.theme-mora.mora-landing .mora-gallery__item {
    border-radius: 2px;
    border: 1px solid rgba(193, 162, 90, 0.1);
}

body.theme-mora.mora-landing .mora-cta-strip--elegant {
    margin-top: clamp(48px, 8vw, 80px);
    padding: clamp(40px, 6vw, 56px) clamp(28px, 5vw, 48px);
    border-radius: 2px;
    border: 1px solid rgba(193, 162, 90, 0.28);
    background:
        linear-gradient(135deg, rgba(45, 73, 52, 0.42) 0%, rgba(12, 14, 12, 0.95) 55%, rgba(145, 127, 49, 0.12) 100%);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.32);
}

body.theme-mora.mora-landing .mora-cta-title {
    margin: 0 0 10px;
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    font-weight: 300;
    color: var(--mora-cream);
}

body.theme-mora.mora-landing .mora-cta-text {
    margin: 0;
    max-width: 52ch;
    color: rgba(233, 220, 190, 0.75);
    font-weight: 300;
    line-height: 1.7;
}

body.theme-mora.mora-landing .modal-card.modal-booking {
    border: 1px solid rgba(193, 162, 90, 0.35);
    box-shadow: 0 0 0 1px rgba(193, 162, 90, 0.1), 0 28px 70px rgba(0, 0, 0, 0.7);
    background: linear-gradient(165deg, #141a16 0%, #0a0d0b 55%, #0f1210 100%);
}

body.theme-mora.mora-landing .modal-close-dark {
    background: rgba(193, 162, 90, 0.1);
    border-color: rgba(193, 162, 90, 0.4);
    color: var(--mora-beige);
}

body.theme-mora.mora-landing .modal-close-dark:hover {
    background: rgba(193, 162, 90, 0.22);
    color: var(--mora-cream);
}

body.theme-mora .sidebar-brand .brand-logo,
body.theme-mora .brand-logo-auth {
    mix-blend-mode: lighten;
}

body.theme-mora .auth-card .brand-logo-auth-card {
    mix-blend-mode: normal;
    filter: brightness(0) saturate(100%) invert(18%) sepia(12%) saturate(1200%) hue-rotate(95deg) brightness(95%);
    max-height: 64px;
}

@media (max-width: 900px) {
    body.theme-mora.mora-landing {
        --public-topbar-height: 96px;
    }

    body.theme-mora.public-site .topbar-public__inner {
        justify-content: center;
        flex-wrap: wrap;
    }

    body.theme-mora.public-site .public-nav-elegant {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px 18px;
    }

    body.theme-mora.public-site .brand-logo-public {
        max-height: 64px;
        max-width: 150px;
    }

    body.theme-mora.mora-landing .hero-title {
        max-width: none;
    }
}

@media (max-width: 600px) {
    body.theme-mora.public-site .public-nav-elegant a:not(.public-nav-login) {
        display: none;
    }
}

/* ===== Editor visual del sitio (admin) ===== */
body.site-builder-admin {
    padding-top: 0;
}
body.site-builder-admin .app-topbar {
    display: none;
}
body.site-builder-admin .site-builder-main {
    max-width: none;
    margin: 0;
    padding: 0;
}
body.site-builder-admin .app-main .container {
    max-width: none;
}

.site-builder {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 0px);
    background: #0c0c0c;
}
.site-builder-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(193, 162, 90, 0.22);
    background: linear-gradient(180deg, #141816, #0e100f);
}
.site-builder-toolbar h3 {
    margin: 0 0 4px;
    color: #f2ebe0;
    font-size: 1.15rem;
}
.site-builder-toolbar__actions {
    margin-left: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.site-builder-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    border: 1px solid rgba(193, 162, 90, 0.35);
    color: #d8cdb8;
    background: rgba(193, 162, 90, 0.08);
}
.site-builder-badge.is-dirty {
    border-color: rgba(255, 193, 90, 0.55);
    color: #ffe8b8;
    background: rgba(193, 162, 90, 0.18);
}
.site-builder-layout {
    flex: 1;
    display: grid;
    grid-template-columns: 220px minmax(320px, 420px) 1fr;
    min-height: 0;
    height: calc(100vh - 88px);
}
.site-builder-sidebar {
    border-right: 1px solid #2a2a2a;
    padding: 14px 12px;
    overflow-y: auto;
    background: #101210;
}
.site-builder-sidebar__title {
    margin: 0 0 6px;
    color: #eee;
    font-size: 14px;
}
.site-builder-section-list {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    display: grid;
    gap: 6px;
}
.site-builder-section-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 10px;
    border-radius: 10px;
    border: 1px solid #2f2f2f;
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.site-builder-section-item.is-active {
    border-color: rgba(193, 162, 90, 0.55);
    background: rgba(193, 162, 90, 0.1);
}
.site-builder-section-item.is-dragging { opacity: 0.5; }
.site-builder-section-item.is-over { border-color: var(--mora-gold); }
.site-builder-drag {
    color: #666;
    font-size: 12px;
    user-select: none;
}
.site-builder-section-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ddd;
    font-size: 13px;
    flex: 1;
}
.site-builder-editor {
    border-right: 1px solid #2a2a2a;
    overflow-y: auto;
    background: #121412;
    padding: 14px;
}
.site-builder-editor__head h4 {
    margin: 0 0 12px;
    color: #f0ebe3;
}
.site-builder-panel .form-group {
    margin-bottom: 14px;
}
.site-builder-panel label {
    color: #c8c0b4;
}
.site-builder-panel input,
.site-builder-panel textarea,
.site-builder-panel select {
    width: 100%;
    background: #1a1c1a;
    border-color: #3a3a3a;
    color: #f2f2f2;
}
.site-builder-images {
    margin-top: 18px;
    padding: 12px;
    border: 1px dashed #444;
    border-radius: 10px;
}
.site-builder-image-upload {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}
.site-builder-image-preview {
    width: 96px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #444;
    background: #222;
}
.builder-repeater-row {
    display: grid;
    gap: 8px;
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 10px;
    border: 1px solid #333;
    background: rgba(255, 255, 255, 0.03);
}
.site-builder-preview {
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: #080808;
}
.site-builder-preview__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-bottom: 1px solid #2a2a2a;
    color: #bbb;
    font-size: 12px;
    background: #111;
}
.site-builder-preview iframe {
    flex: 1;
    width: 100%;
    border: 0;
    background: #0a0d0b;
}
.site-preview-banner {
    position: sticky;
    top: var(--public-topbar-height, 108px);
    z-index: 150;
    padding: 10px 16px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #ffe8b8;
    background: linear-gradient(90deg, rgba(145, 127, 49, 0.35), rgba(45, 73, 52, 0.55));
    border-bottom: 1px solid rgba(193, 162, 90, 0.4);
}
.site-preview-note {
    text-align: center;
    padding: 20px;
    font-size: 13px;
}
body.site-preview-mode .public-nav-cta,
body.site-preview-mode .float-actions {
    display: none !important;
}

@media (max-width: 1100px) {
    .site-builder-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto 55vh;
        height: auto;
    }
    .site-builder-preview iframe {
        min-height: 55vh;
    }
}

.builder-list-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    margin-bottom: 8px;
}
.builder-list-row input {
    width: 100%;
}
.builder-mini-label {
    display: block;
    font-size: 11px;
    color: #aaa;
    margin-bottom: 4px;
}
.site-builder-panel .ql-toolbar.ql-snow {
    border-color: #3a3a3a;
    background: #1a1c1a;
}
.site-builder-panel .ql-container.ql-snow {
    border-color: #3a3a3a;
    background: #1a1c1a;
    color: #f2f2f2;
    min-height: 120px;
    font-family: var(--font-body);
}
.site-builder-panel .ql-editor.ql-blank::before {
    color: #888;
    font-style: normal;
}
.site-builder-panel .ql-snow .ql-stroke {
    stroke: #ccc;
}
.site-builder-panel .ql-snow .ql-fill {
    fill: #ccc;
}
.site-builder-panel .ql-snow .ql-picker {
    color: #ddd;
}

/* ===== Login elegante Mora State ===== */
body.mora-login {
    padding-top: 0;
    background: #0a0d0b;
    font-family: 'Montserrat', system-ui, sans-serif;
}

body.mora-login .mora-login-main {
    max-width: none;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    min-height: 100dvh;
}

.mora-login-page {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    min-height: 100vh;
    min-height: 100dvh;
}

.mora-login-visual {
    position: relative;
    display: grid;
    grid-template-rows: 1.35fr 0.65fr;
    overflow: hidden;
    background: #0f1612;
}

.mora-login-visual__hero,
.mora-login-visual__tile {
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
    transition: transform 8s ease;
}

.mora-login-visual:hover .mora-login-visual__hero {
    transform: scale(1.06);
}

.mora-login-visual__mosaic {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    padding: 4px 0 0;
    background: #0a0d0b;
}

.mora-login-visual__tile {
    min-height: 140px;
}

.mora-login-visual__shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(115deg, rgba(10, 13, 11, 0.92) 0%, rgba(45, 73, 52, 0.55) 42%, rgba(10, 13, 11, 0.35) 100%),
        linear-gradient(0deg, rgba(10, 13, 11, 0.88) 0%, transparent 45%);
    pointer-events: none;
}

.mora-login-visual__content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(28px, 5vw, 56px);
    color: var(--mora-cream);
}

.mora-login-visual__logo {
    width: min(200px, 42vw);
    height: auto;
    margin-bottom: 28px;
    mix-blend-mode: lighten;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.45));
}

.mora-login-visual__eyebrow {
    margin: 0 0 10px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--mora-gold);
}

.mora-login-visual__title {
    margin: 0 0 14px;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(2.2rem, 4.5vw, 3.6rem);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: 0.02em;
    max-width: 12ch;
}

.mora-login-visual__title em {
    font-style: italic;
    color: var(--mora-beige);
}

.mora-login-visual__lead {
    margin: 0 0 22px;
    max-width: 38ch;
    font-size: 14px;
    line-height: 1.65;
    color: rgba(255, 249, 232, 0.82);
}

.mora-login-visual__features {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
}

.mora-login-visual__features li {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(193, 162, 90, 0.35);
    background: rgba(45, 73, 52, 0.42);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--mora-beige);
}

.mora-login-panel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(24px, 4vw, 48px);
    background:
        radial-gradient(ellipse 80% 60% at 100% 0%, rgba(193, 162, 90, 0.12), transparent 55%),
        linear-gradient(180deg, #121816 0%, #0c0f0d 100%);
    border-left: 1px solid rgba(193, 162, 90, 0.16);
}

.mora-login-back {
    position: absolute;
    top: clamp(18px, 3vw, 28px);
    right: clamp(18px, 3vw, 28px);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    color: rgba(233, 220, 190, 0.75);
    transition: color 0.2s ease;
}

.mora-login-back:hover {
    color: var(--mora-gold);
}

.mora-login-panel__inner {
    width: min(420px, 100%);
}

.mora-login-panel__head {
    margin-bottom: 28px;
    text-align: center;
}

.mora-login-panel__logo {
    display: none;
    width: 120px;
    height: auto;
    margin: 0 auto 18px;
    filter: brightness(0) saturate(100%) invert(88%) sepia(12%) saturate(600%) hue-rotate(5deg) brightness(105%);
}

.mora-login-panel__eyebrow {
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--mora-gold);
}

.mora-login-panel__head h2 {
    margin: 0 0 8px;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(2rem, 4vw, 2.6rem);
    font-weight: 400;
    color: var(--mora-cream);
    letter-spacing: 0.03em;
}

.mora-login-panel__sub {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: rgba(233, 220, 190, 0.68);
}

.mora-login-alert {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.45;
}

.mora-login-alert--error {
    background: rgba(120, 40, 40, 0.35);
    border: 1px solid rgba(220, 120, 120, 0.45);
    color: #ffd8d8;
}

.mora-login-alert--success {
    background: rgba(45, 73, 52, 0.45);
    border: 1px solid rgba(193, 162, 90, 0.4);
    color: var(--mora-beige);
}

.mora-login-form {
    display: grid;
    gap: 18px;
}

.mora-login-field {
    display: grid;
    gap: 8px;
}

.mora-login-field label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(233, 220, 190, 0.72);
}

.mora-login-field input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(193, 162, 90, 0.28);
    background: rgba(15, 22, 18, 0.85);
    color: var(--mora-cream);
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.mora-login-field input::placeholder {
    color: rgba(233, 220, 190, 0.35);
}

.mora-login-field input:focus {
    outline: none;
    border-color: rgba(193, 162, 90, 0.65);
    background: rgba(20, 28, 24, 0.95);
    box-shadow: 0 0 0 3px rgba(193, 162, 90, 0.14);
}

.mora-login-submit {
    margin-top: 6px;
    width: 100%;
    padding: 15px 20px;
    border: 1px solid rgba(193, 162, 90, 0.55);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(193, 162, 90, 0.32) 0%, rgba(145, 127, 49, 0.28) 100%);
    color: var(--mora-cream);
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.mora-login-submit:hover {
    transform: translateY(-1px);
    border-color: var(--mora-gold);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.mora-login-footer {
    margin: 26px 0 0;
    text-align: center;
    font-size: 13px;
    color: rgba(233, 220, 190, 0.55);
}

.mora-login-footer a {
    color: var(--mora-gold);
    text-decoration: none;
    font-weight: 600;
}

.mora-login-footer a:hover {
    color: var(--mora-beige);
    text-decoration: underline;
}

@media (max-width: 960px) {
    .mora-login-page {
        grid-template-columns: 1fr;
        grid-template-rows: min(42vh, 380px) auto;
    }

    .mora-login-visual {
        grid-template-rows: 1fr 0.45fr;
    }

    .mora-login-visual__content {
        justify-content: center;
        padding-top: 48px;
    }

    .mora-login-visual__title {
        max-width: none;
        font-size: clamp(1.8rem, 7vw, 2.4rem);
    }

    .mora-login-visual__lead,
    .mora-login-visual__features {
        display: none;
    }

    .mora-login-panel {
        border-left: 0;
        border-top: 1px solid rgba(193, 162, 90, 0.16);
        align-items: flex-start;
        padding-top: 36px;
    }

    .mora-login-panel__logo {
        display: block;
    }
}

@media (max-width: 520px) {
    .mora-login-visual__mosaic {
        grid-template-columns: repeat(3, 1fr);
    }

    .mora-login-visual__tile {
        min-height: 88px;
    }

    .mora-login-back {
        position: static;
        display: inline-block;
        margin-bottom: 20px;
    }

    .mora-login-panel {
        flex-direction: column;
        align-items: stretch;
    }

    .mora-login-panel__inner {
        margin: 0 auto;
    }
}

