html, body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

html {
    position: relative;
    min-height: 100%;
    color: #233024;
    overflow-x: hidden;
}

body {
    position: relative;
    min-height: 100vh;
    background: transparent !important;
    color: #233024;
}

html::before,
html::after {
    display: none;
}

a, .btn-link {
    color: #3c7c5b;
}

/* Readability adjustments for light-surfaced components */
.card,
.modal-content,
.dashboard-section,
.action-card,
.list-group-item,
.table,
label,
.form-control,
.form-select,
.nav-tabs .nav-link,
.dropdown-menu,
.popover,
.toast {
    color: #233024;
}

.form-control,
.form-select,
.glass-input {
    color: #233024;
}

.card a,
.dashboard-section a,
.action-card a,
.modal-content a {
    color: #3c7c5b;
}

.btn-primary {
    color: #fff;
    background-color: #2d5016;
    border-color: #1f3810;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #4a7c29;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    border-color: rgba(22, 163, 74, 0.6) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.7),
        0 0 0 4px rgba(21, 128, 61, 0.18),
        0 16px 36px -24px rgba(21, 128, 61, 0.35) !important;
}

.invalid:not([type=checkbox]) {
    border-color: rgba(185, 28, 28, 0.65) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.65),
        0 0 0 4px rgba(220, 38, 38, 0.18),
        0 16px 36px -24px rgba(185, 28, 28, 0.3) !important;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* Blazor error UI */
#blazor-error-ui {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem 1.5rem;
    background: #c0392b;
    color: #fff;
    z-index: 1000;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.25);
    font-size: 0.95rem;
}

#blazor-error-ui.show {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
}

#blazor-error-ui .dismiss {
    margin-left: auto;
    cursor: pointer;
    font-weight: 600;
}

#blazor-error-ui .reload {
    color: #ffe0d5;
    text-decoration: underline;
}

/* Reservation status panel */
.reservation-status-card .reservation-status-indicator {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 1rem;
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 12px 24px -20px rgba(0, 0, 0, 0.45);
}

.reservation-status-card .reservation-status-indicator .indicator-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.18);
}

.reservation-status-card .reservation-status-indicator.status-success {
    background: linear-gradient(135deg, #3bb45f, #1e7b40);
}

.reservation-status-card .reservation-status-indicator.status-pending {
    background: linear-gradient(135deg, #f6c343, #ef8a17);
}

.reservation-status-card .reservation-status-indicator.status-denied {
    background: linear-gradient(135deg, #f46d6d, #d93025);
}

.reservation-status-card .reservation-status-indicator.status-cancelled {
    background: linear-gradient(135deg, #9aa0a6, #64748b);
}

.reservation-status-card .reservation-status-indicator.status-info {
    background: linear-gradient(135deg, #7aaef7, #3d7bfd);
}

.reservation-status-card .reservation-status-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}



@media (min-width: 576px) {
    .reservation-status-card .status-step {
        flex: 1 1 calc(33.333% - 0.5rem);
    }
}

.reservation-status-card .status-step .step-dot {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    background: #e9ecef;
    color: #495057;
}

.reservation-status-card .status-step .step-title {
    font-weight: 600;
    line-height: 1.1;
}

.reservation-status-card .status-step.completed {
    background: rgba(25, 135, 84, 0.08);
    border-color: rgba(25, 135, 84, 0.22);
}

.reservation-status-card .status-step.completed .step-dot {
    background: #198754;
    color: #fff;
}

.reservation-status-card .status-step.current {
    background: rgba(13, 110, 253, 0.08);
    border-color: rgba(13, 110, 253, 0.22);
}

.reservation-status-card .status-step.current .step-dot {
    background: #0d6efd;
    color: #fff;
}

.reservation-status-card .status-step.cancelled {
    background: rgba(220, 53, 69, 0.08);
    border-color: rgba(220, 53, 69, 0.22);
}

/* ============================================
   Admin Dashboard - Liquid Glass Apple Style
   ============================================ */

.admin-dashboard {
    position: relative;
    min-height: 100vh;
    padding: clamp(4rem, 8vw, 6rem) clamp(1.5rem, 6vw, 4.5rem) 4rem;
    background: transparent;
    color: #1f2b25;
    overflow: hidden;
}

.admin-backdrop {
    display: none;
}

.admin-orb,
.orb-emerald,
.orb-azure,
.orb-amber {
    display: none;
}

.admin-shell {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: clamp(2rem, 4vw, 3.75rem);
}

.glass-panel {
    position: relative;
    background: linear-gradient(160deg, rgba(236, 248, 243, 0.32), rgba(219, 238, 231, 0.18));
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 28px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.58),
        0 32px 78px -38px rgba(15, 32, 32, 0.32);
    backdrop-filter: blur(34px) saturate(185%);
    -webkit-backdrop-filter: blur(34px) saturate(185%);
    overflow: hidden;
}

.glass-panel::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 26px;
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.16));
    pointer-events: none;
    opacity: 0.82;
    box-shadow:
        inset 0 0 0 0.6px rgba(255, 255, 255, 0.65),
        inset 0 -22px 46px rgba(2, 57, 54, 0.16);
}

.glass-panel > * {
    position: relative;
    z-index: 1;
}

.admin-hero {
    padding: clamp(2.8rem, 5vw, 3.8rem);
    display: flex;
    flex-direction: column;
    gap: 2.6rem;
    color: inherit;
}

.admin-hero__header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
}

.hero-kicker {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.28em;
    font-size: 0.75rem;
    color: rgba(31, 43, 37, 0.55);
    margin-bottom: 0.85rem;
}

.admin-hero h1 {
    font-size: clamp(2.6rem, 4.5vw, 3.4rem);
    font-weight: 700;
    margin-bottom: 0.85rem;
    letter-spacing: -0.03em;
    color: inherit;
}

.admin-hero p {
    max-width: 560px;
    line-height: 1.1;
    font-size: 1.05rem;
    color: rgba(31, 43, 37, 0.72);
}

.hero-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1.9rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(158, 221, 202, 0.9), rgba(92, 194, 155, 0.68));
    color: #0f2018;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(190, 231, 212, 0.85);
    box-shadow: 0 14px 30px rgba(92, 194, 155, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 44px rgba(92, 194, 155, 0.45);
}

.hero-button i {
    font-size: 1.2rem;
}

.admin-hero__metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: clamp(1.5rem, 3vw, 2.25rem);
}

.hero-highlight {
    padding: 1.8rem 2rem;
    border-radius: 22px;
    border: 1px solid rgba(210, 229, 220, 0.8);
    background: linear-gradient(145deg, rgba(240, 248, 244, 0.92), rgba(230, 241, 234, 0.75));
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.highlight-label {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    color: rgba(31, 43, 37, 0.55);
}

.highlight-value {
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #1f2b25;
}

.highlight-note {
    font-size: 0.95rem;
    color: rgba(31, 43, 37, 0.65);
}

.admin-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: clamp(1.5rem, 3vw, 2.4rem);
}

.admin-metric-card {
    display: flex;
    align-items: center;
    gap: 1.65rem;
    padding: 2rem 2.4rem;
    color: #1f2b25;
}

.metric-icon {
    width: 64px;
    height: 64px;
    min-width: 64px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(210, 232, 221, 0.9), rgba(195, 226, 214, 0.7));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1f2b25;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.metric-icon i {
    font-size: 1.7rem;
}

.metric-label {
    margin: 0;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(31, 43, 37, 0.55);
}

.admin-metric-card h3 {
    margin: 0.35rem 0 0.5rem;
    font-size: 2.3rem;
    font-weight: 700;
    color: inherit;
}

.metric-hint {
    font-size: 0.95rem;
    color: #035951;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: clamp(1.8rem, 3vw, 2.6rem);
}

.admin-panel {
    padding: clamp(2.1rem, 4vw, 2.9rem);
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    color: inherit;
}

.admin-panel__header h2 {
    font-size: 1.7rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 0.4rem;
}

.admin-panel__header p {
    color: rgba(31, 43, 37, 0.6);
    font-size: 0.95rem;
    margin: 0;
}

.admin-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.4rem;
}

.action-tile {
    position: relative;
    display: flex;
    gap: 1.2rem;
    padding: 1.4rem 1.6rem;
    border-radius: 22px;
    background: rgba(248, 252, 250, 0.9);
    border: 1px solid rgba(210, 229, 220, 0.8);
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    box-shadow: 0 8px 24px rgba(31, 59, 44, 0.08);
}

.action-tile:hover {
    transform: translateY(-4px);
    border-color: rgba(158, 206, 182, 0.8);
    box-shadow: 0 14px 32px rgba(31, 59, 44, 0.14);
}

.tile-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(208, 232, 220, 0.75), rgba(186, 221, 205, 0.6));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(31, 43, 37, 0.9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.tile-icon i {
    font-size: 1.6rem;
}

.action-tile i {
    line-height: 1.1;
}

.tile-body {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.tile-title {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: inherit;
}

.tile-hint {
    font-size: 0.88rem;
    color: rgba(31, 43, 37, 0.65);
    line-height: 1.1;
}

.admin-panel__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.reservation-row {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(200px, 1fr);
    gap: 1.5rem;
    padding: 1.4rem 1.6rem;
    border-radius: 20px;
    background: rgba(245, 250, 247, 0.92);
    border: 1px solid rgba(210, 229, 220, 0.78);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 10px 26px rgba(31, 59, 44, 0.1);
}

.reservation-row:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(31, 59, 44, 0.16);
}

.reservation-meta h3 {
    font-size: 1.2rem;
    margin-bottom: 0.35rem;
}

.reservation-date {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(31, 43, 37, 0.55);
}

.reservation-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    line-height: 1.1;
}

.reservation-client {
    font-size: 0.95rem;
    color: rgba(31, 43, 37, 0.65);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 1.2rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1px solid transparent;
    line-height: 1.1;
}

.status-pill--pending {
    background: rgba(255, 207, 122, 0.2);
    border-color: rgba(255, 198, 96, 0.45);
    color: #9a6b1f;
}

.status-pill--info {
    background: rgba(168, 214, 255, 0.2);
    border-color: rgba(150, 200, 255, 0.4);
    color: #245d8a;
}

.status-pill--success {
    background: rgba(2, 115, 94, 0.16);
    border-color: rgba(2, 115, 94, 0.38);
    color: var(--emerald-700);
}

.status-pill--danger {
    background: rgba(255, 182, 182, 0.22);
    border-color: rgba(255, 145, 145, 0.4);
    color: #a63a3a;
}

.status-pill--neutral {
    background: rgba(208, 218, 229, 0.22);
    border-color: rgba(182, 196, 209, 0.4);
    color: #4d5f70;
}

.admin-empty {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(248, 252, 250, 0.92);
    border-radius: 22px;
    border: 1px solid rgba(210, 229, 220, 0.8);
    color: rgba(31, 43, 37, 0.65);
    box-shadow: 0 10px 26px rgba(31, 59, 44, 0.1);
}

.admin-empty i {
    font-size: 2.8rem;
    display: block;
    margin-bottom: 1rem;
    color: rgba(31, 43, 37, 0.5);
}

.admin-empty p {
    margin: 0;
    font-size: 0.95rem;
}

@media (max-width: 1024px) {
    .admin-dashboard {
        padding: 3.5rem 2rem 3rem;
    }

    .admin-hero__header {
        align-items: flex-start;
    }

    .reservation-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .reservation-info {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 720px) {
    .admin-actions {
        grid-template-columns: 1fr;
    }

    .admin-metric-card {
        padding: 1.8rem;
    }

    .admin-hero__metrics {
        grid-template-columns: 1fr;
    }

    .hero-button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 540px) {
    .admin-dashboard {
        padding: 3rem 1.5rem 2.5rem;
    }

    .admin-hero {
        padding: 2.2rem 2rem;
    }

    .admin-panel {
        padding: 1.9rem;
    }
}

.reservation-status-card .status-step.cancelled .step-dot {
    background: #dc3545;
    color: #fff;
}

.reservation-status-card .reservation-status-alert {
    border-radius: 0.9rem;
    padding: 0.9rem 1rem;
}
/* ============================================
   Rancho Santa Teresa - Estilos Personalizados
   Tema Rústico con Efectos Liquid Glass
   ============================================ */

/* Variables de Color - Paleta Café y Verde Oscuro Rústico */
:root {
    --emerald-900: #022326;
    --emerald-700: #034040;
    --emerald-600: #035951;
    --emerald-500: #02735E;
    --primary-green: var(--emerald-500);
    --primary-green-dark: var(--emerald-900);
    --primary-green-light: var(--emerald-600);
    --accent-teal: var(--emerald-700);
    --accent-brown: #7a6754;
    --accent-brown-light: #a48b76;
    --bg-light: #ecf6f2;
    --bg-cream: #f6fbf8;
    --text-dark: #022a28;
    --text-muted: rgba(3, 64, 64, 0.6);
    --heading-color: #022a28;
    --border-color: rgba(3, 89, 81, 0.22);
    --shadow: rgba(2, 35, 38, 0.14);
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.4);
    --focus-ring: rgba(2, 115, 94, 0.18);
    --shadow-soft: 0 10px 28px -18px rgba(3, 64, 64, 0.28);
    --shadow-strong: 0 18px 48px -24px rgba(2, 35, 38, 0.35);
}

/* Reset y Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: transparent;
    color: inherit;
    line-height: 1.1;
}

h1,
h2,
h3,
h4,
h5 {
    color: var(--heading-color);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.015em;
    margin-bottom: 0.75rem;
}

h1 {
    font-size: clamp(2.4rem, 4.6vw, 3.4rem);
}

h2 {
    font-size: clamp(2rem, 3.6vw, 2.7rem);
}

h3 {
    font-size: clamp(1.6rem, 2.8vw, 2.1rem);
}

h4 {
    font-size: clamp(1.35rem, 2.2vw, 1.7rem);
}

h5 {
    font-size: clamp(1.1rem, 1.8vw, 1.35rem);
    font-weight: 600;
}

/* ============================================
   Efectos Liquid Glass
   ============================================ */

.liquid-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 var(--shadow);
}

.liquid-glass-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.liquid-glass-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px 0 var(--shadow);
    border-color: var(--primary-green-light);
}

/* ============================================
   Login Experience
   ============================================ */

.login-page {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(2.5rem, 6vw, 4.5rem);
    overflow: hidden;
    color: rgba(35, 48, 36, 0.85);
}

.login-media {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.login-media__slide {
    position: absolute;
    inset: -12%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: loginMediaSlide 36s ease-in-out infinite;
    animation-delay: calc(var(--slide-index, 0) * 6s);
    transform: scale(1.12);
    filter: saturate(108%) brightness(102%);
    transition: opacity 1.2s ease;
    will-change: opacity, transform;
    pointer-events: none;
}

.login-media__slide:nth-child(even) {
    animation-duration: 40s;
}

.login-media__slide--fallback {
    background:
        radial-gradient(circle at top, rgba(3, 89, 81, 0.35), transparent 65%),
        radial-gradient(circle at bottom, rgba(222, 192, 160, 0.28), transparent 70%),
        linear-gradient(135deg, #f5f6f4 0%, #ebe9e5 100%);
    animation: loginMediaPulse 18s ease-in-out infinite;
}

.login-media__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(245, 246, 244, 0.35) 0%, rgba(235, 233, 229, 0.65) 100%);
    mix-blend-mode: soft-light;
    pointer-events: none;
}

.login-content {
    position: relative;
    z-index: 1;
    width: min(1100px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: stretch;
}

.login-branding {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    max-width: 460px;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: clamp(1.6rem, 4vw, 2rem);
    border-radius: 28px;
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.14));
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 32px 74px -48px rgba(2, 35, 38, 0.55);
}

.login-branding__logo {
    width: clamp(72px, 8vw, 92px);
    height: auto;
    filter: drop-shadow(0 12px 28px rgba(2, 57, 54, 0.22));
}

.login-branding__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: rgba(3, 64, 64, 0.16);
    border: 1px solid rgba(3, 64, 64, 0.24);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
    font-weight: 600;
    color: #035951;
}

.login-branding__title {
    font-size: clamp(2.1rem, 5vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0;
    color: #022326;
}

.login-branding__subtitle {
    margin: 0;
    font-size: clamp(0.95rem, 2.2vw, 1.05rem);
    line-height: 1.6;
    color: rgba(35, 48, 36, 0.68);
}

.login-panel.glass-panel {
    padding: clamp(2.2rem, 4vw, 2.8rem);
    border-radius: 30px;
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    box-shadow: 0 40px 80px -50px rgba(2, 35, 38, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.45);
    display: flex;
    flex-direction: column;
    gap: clamp(1.6rem, 3vw, 2.2rem);
}

.login-panel__header h2 {
    margin: 0;
    font-size: clamp(1.65rem, 3vw, 2rem);
    font-weight: 600;
    color: #022326;
}

.login-panel__header p {
    margin: 0.4rem 0 0;
    color: rgba(35, 48, 36, 0.65);
    font-size: 0.95rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: clamp(1.4rem, 2.8vw, 1.8rem);
}

.login-form__fields {
    display: grid;
    gap: clamp(1.2rem, 2.4vw, 1.6rem);
}

.login-field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.login-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: rgba(35, 48, 36, 0.85);
    letter-spacing: 0.01em;
}

.login-form .glass-input {
    width: 100%;
}

.login-form .validation-message,
.login-form .text-danger {
    font-size: 0.82rem;
    margin-top: -0.2rem;
    color: #b71c1c;
}

.login-alert {
    margin-bottom: 0;
    border-radius: 16px;
    border: 1px solid rgba(185, 28, 28, 0.25);
    background: rgba(185, 28, 28, 0.08);
    color: #8b1f1f;
}

.login-submit {
    width: 100%;
    justify-content: center;
    font-weight: 600;
    padding: 0.95rem 1.5rem;
    margin-top: 0.5rem;
}

.login-submit .spinner-border {
    color: #fff;
}

.login-link {
    margin-top: 0.8rem;
    text-align: center;
    font-size: 0.95rem;
    color: rgba(35, 48, 36, 0.65);
}

.login-link a {
    color: #02735E;
    font-weight: 600;
    text-decoration: none;
}

.login-link a:hover {
    text-decoration: underline;
}

/* ============================================
   Document Gate Overlay
   ============================================ */

.doc-gate-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 14, 14, 0.58);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.doc-gate-overlay--loading {
    background: rgba(10, 14, 14, 0.32);
    pointer-events: none;
}

.doc-gate-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem 2.4rem;
    border-radius: 22px;
    box-shadow: 0 22px 60px -40px rgba(2, 35, 38, 0.6);
}

.doc-gate-loading p {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(35, 48, 36, 0.72);
}

.doc-gate-modal {
    width: min(580px, 100%);
    max-height: min(92vh, 920px);
    height: min(92vh, 920px);
    border-radius: 30px;
    padding: clamp(1.8rem, 4vw, 2.6rem);
    display: flex;
    flex-direction: column;
    gap: clamp(1.4rem, 3vw, 2rem);
    box-shadow: 0 38px 92px -48px rgba(2, 35, 38, 0.58);
    overflow: hidden;
}

.doc-gate-modal__body {
    flex: 1;
    min-height: 0;
    display: flex;
    overflow: hidden;
}

.doc-gate-modal__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(3, 64, 64, 0.14);
    border: 1px solid rgba(3, 64, 64, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.7rem;
    font-weight: 600;
    color: #035951;
}

.doc-gate-modal__header h2 {
    margin: 0.8rem 0 0;
    font-size: clamp(1.6rem, 3vw, 1.9rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #022326;
}

.doc-gate-modal__header p {
    margin: 0.6rem 0 0;
    color: rgba(35, 48, 36, 0.68);
    font-size: 0.95rem;
}

.doc-gate-modal__body ul {
    margin: 0;
    padding-left: 1.2rem;
    color: rgba(35, 48, 36, 0.68);
    font-size: 0.94rem;
    display: grid;
    gap: 0.45rem;
}

.doc-gate-modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.8rem;
    align-items: center;
}

.document-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    gap: 1rem;
    padding: clamp(1.2rem, 2vw, 1.6rem);
    border-radius: 24px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.82));
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.7),
        0 25px 60px -45px rgba(2, 35, 38, 0.65);
}

.document-content h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #022326;
}

.document-body {
    flex: 1;
    min-height: 0;
    border-radius: 18px;
    padding: clamp(1rem, 2vw, 1.4rem);
    background: #fff;
    color: rgba(2, 35, 38, 0.88);
    overflow-y: auto;
    box-shadow: inset 0 1px 0 rgba(2, 35, 38, 0.04);
}

.doc-gate-modal__footer .btn-glass {
    min-width: 180px;
}

.document-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    align-items: center;
}

.document-actions .btn-glass {
    width: 100%;
    justify-content: center;
}

@media (max-width: 600px) {
    .doc-gate-overlay {
        padding: 1.5rem;
    }

    .doc-gate-modal {
        max-height: none;
        height: auto;
    }

    .doc-gate-modal__body {
        max-height: none;
        display: block;
    }

    .doc-gate-modal__footer {
        flex-direction: column;
    }

    .doc-gate-modal__footer .btn-glass {
        width: 100%;
    }
}

@keyframes loginMediaSlide {
    0% {
        opacity: 0;
        transform: scale(1.1) translate3d(-3%, -3%, 0);
    }
    6%,
    18% {
        opacity: 1;
        transform: scale(1.05) translate3d(0, 0, 0);
    }
    26% {
        opacity: 0;
        transform: scale(1.12) translate3d(3%, 3%, 0);
    }
    100% {
        opacity: 0;
    }
}


@keyframes loginMediaPulse {
    0%,
    100% {
        transform: scale(1.05);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.08);
        opacity: 1;
    }
}

@media (max-width: 1080px) {
    .login-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .login-branding {
        margin: 0 auto;
        align-items: center;
        text-align: center;
    }

    .login-branding__badge {
        align-self: center;
    }

    .login-panel.glass-panel {
        margin: 0 auto;
        max-width: 480px;
    }
}

@media (max-width: 640px) {
    .login-page {
        padding: 2.2rem 1.6rem;
        align-items: flex-start;
    }

    .login-branding {
        background: linear-gradient(150deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.18));
        padding: 1.4rem;
    }

    .login-panel.glass-panel {
        padding: 1.8rem 1.5rem;
    }
}

/* ============================================
   Login / Register
   ============================================ */

.login-container,
.register-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
    padding: 2rem;
}

.login-card,
.register-card {
    width: 100%;
    max-width: 450px;
    background: var(--glass-bg);
    backdrop-filter: blur(15px) saturate(180%);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    box-shadow: 0 16px 48px 0 var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.register-card {
    max-width: 600px;
}

.login-header,
.register-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.brand-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.brand-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-control,
.form-select,
.glass-input {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    height: 3.1rem;
    line-height: 1.3;
    font-size: 1rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    border: 1.5px solid rgba(2, 70, 60, 0.65);
    background:
        linear-gradient(182deg, rgba(244, 252, 248, 0.92), rgba(222, 239, 232, 0.62));
    color: #233024;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.85),
        inset 0 -1px 0 rgba(3, 57, 54, 0.18),
        0 0 0 1px rgba(186, 226, 213, 0.75),
        0 18px 32px -24px rgba(2, 48, 44, 0.38);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    position: relative;
}

.form-control:hover,
.form-select:hover,
.glass-input:hover {
    border-color: rgba(2, 89, 81, 0.78);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.88),
        inset 0 -1px 0 rgba(3, 64, 61, 0.22),
        0 0 0 1px rgba(186, 226, 213, 0.85),
        0 20px 36px -24px rgba(2, 48, 44, 0.45);
}

.form-control::placeholder,
.glass-input::placeholder,
.form-select::placeholder {
    color: rgba(35, 48, 36, 0.45);
}

.form-control:focus,
.form-select:focus,
.glass-input:focus {
    outline: none;
    border-color: rgba(2, 115, 94, 0.7);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.85),
        inset 0 -1px 0 rgba(2, 57, 54, 0.18),
        0 0 0 2px rgba(255, 255, 255, 0.55),
        0 0 0 6px rgba(2, 115, 94, 0.32),
        0 28px 56px -28px rgba(2, 35, 38, 0.6);
    background: linear-gradient(182deg, rgba(243, 255, 250, 0.98), rgba(222, 242, 235, 0.93));
}

.form-select {
    appearance: none;
    background-image:
        linear-gradient(180deg, rgba(243, 255, 250, 0.92), rgba(222, 242, 235, 0.7)),
        url("data:image/svg+xml,%3csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M1 1L6 6L11 1' stroke='%2303564C' stroke-width='1.6' stroke-linecap='round'/%3e%3c/svg%3e");
    background-repeat: no-repeat, no-repeat;
    background-position: center, right 0.95rem center;
    background-size: cover, 12px 8px;
    padding-right: 2.85rem;
    height: 3.1rem;
    line-height: 1;
}

.form-select:focus {
    background-image:
        linear-gradient(182deg, rgba(243, 255, 250, 0.98), rgba(222, 242, 235, 0.85)),
        url("data:image/svg+xml,%3csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M1 1L6 6L11 1' stroke='%231F6F62' stroke-width='1.6' stroke-linecap='round'/%3e%3c/svg%3e");
}

.btn {
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: rgba(3, 64, 64, 0.9);
    color: #f3fbf9;
    box-shadow: 0 10px 26px -16px rgba(2, 35, 38, 0.35);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px -18px rgba(2, 35, 38, 0.4);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-block {
    width: 100%;
    margin-top: 1rem;
}

.register-link,
.login-link {
    text-align: center;
    margin-top: 1.5rem;
}

.register-link p,
.login-link p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.register-link a,
.login-link a {
    color: var(--primary-green);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.register-link a:hover,
.login-link a:hover {
    color: var(--primary-green-dark);
    text-decoration: underline;
}

.demo-credentials {
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(3, 89, 81, 0.08);
    border-radius: 12px;
    text-align: center;
}


.btn-glass {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1.8rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(157, 225, 200, 0.9), rgba(86, 197, 150, 0.65));
    color: #0c1d17;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 12px 32px rgba(86, 197, 150, 0.45);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-glass:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 44px rgba(86, 197, 150, 0.55);
}

.btn-glass i {
    font-size: 1.2rem;
}

.metric-hint {
    font-size: 0.9rem;
    color: #035951;
}

.metric-icon {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.05));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: rgba(16, 41, 25, 0.85);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}



/* ============================================
   Dashboard
   ============================================ */

.dashboard-container {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.dashboard-header {
    margin-bottom: 2.5rem;
}

.dashboard-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 4px 16px var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow);
}

.stat-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-green) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.stat-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-green);
    margin: 0;
}

.stat-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0.25rem 0 0;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.dashboard-section {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 16px var(--shadow);
    border: 1px solid var(--border-color);
}

.dashboard-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 1.5rem;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.action-card {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 16px;
    text-align: center;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
}

.action-card:hover {
    background: var(--primary-green);
    color: white;
    transform: scale(1.05);
    border-color: var(--primary-green);
}

.action-card i {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

/* ============================================
   Hero Section (Cliente Dashboard)
   ============================================ */

.dashboard-hero {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
    padding: 3rem 2rem;
    border-radius: 24px;
    margin-bottom: 2.5rem;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.dashboard-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.dashboard-hero h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.dashboard-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

/* ============================================
   Cotizaciones / Cards
   ============================================ */

.cotizaciones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.cotizacion-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 16px var(--shadow);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.cotizacion-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow);
}

.cotizacion-card .card-header {
    background: var(--bg-light);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--border-color);
}

.cotizacion-card .card-header h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-green);
    margin: 0;
}

.cotizacion-card .card-body {
    padding: 1.5rem;
}

.cotizacion-card .card-body p {
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
}

.cotizacion-card .card-body p i {
    color: var(--primary-green);
}

.cotizacion-card .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-top: 1rem;
}

.cotizacion-card .card-footer {
    padding: 1rem 1.5rem;
    background: var(--bg-cream);
    display: flex;
    gap: 0.75rem;
}

/* ============================================
   Badges
   ============================================ */

.badge {
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.85rem;
}

.bg-success {
    background: linear-gradient(150deg, rgba(3, 89, 81, 0.92), rgba(2, 35, 38, 0.82)) !important;
    color: rgba(246, 255, 251, 0.95) !important;
}

.bg-warning {
    background: linear-gradient(150deg, rgba(3, 64, 64, 0.92), rgba(2, 35, 38, 0.85)) !important;
    color: rgba(246, 255, 251, 0.9) !important;
}

.bg-danger {
    background: #F44336 !important;
    color: white;
}

.bg-info {
    background: linear-gradient(150deg, rgba(3, 89, 81, 0.92), rgba(2, 35, 38, 0.78)) !important;
    color: rgba(246, 255, 251, 0.95) !important;
}

.bg-secondary {
    background: #9E9E9E !important;
    color: white;
}

.bg-primary {
    background: linear-gradient(150deg, rgba(3, 64, 64, 0.96), rgba(2, 35, 38, 0.8)) !important;
    color: rgba(246, 255, 251, 0.95) !important;
}

.bg-success-subtle,
.bg-info-subtle,
.bg-warning-subtle,
.bg-primary-subtle {
    background: rgba(3, 64, 64, 0.12) !important;
    color: #023432 !important;
    border: 1px solid rgba(3, 64, 64, 0.22) !important;
}

.text-success,
.text-info,
.text-warning,
.text-primary {
    color: #035951 !important;
}

/* ============================================
   Empty States
   ============================================ */

.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 4rem;
    color: var(--border-color);
    margin-bottom: 1rem;
}

.empty-state p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* ============================================
   Calendario Semanal (Operador)
   ============================================ */

.week-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.week-day {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.week-day.today {
    background: var(--primary-green);
    color: white;
    border-color: var(--primary-green);
}

.week-day:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px var(--shadow);
}

.day-header {
    margin-bottom: 0.75rem;
}

.day-name {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.day-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
}

.event-count {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-green);
}

.week-day.today .event-count {
    color: white;
}

.no-events {
    color: var(--text-muted);
}

/* ============================================
   Alerts
   ============================================ */

.alert {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
}

.alert-danger {
    background: #FFEBEE;
    border-color: #F44336;
    color: #C62828;
}

.alert-success {
    background: rgba(3, 89, 81, 0.18);
    border-color: rgba(3, 64, 64, 0.35);
    color: #023432;
}

.alert-info {
    background: rgba(3, 64, 64, 0.12);
    border-color: rgba(3, 64, 64, 0.28);
    color: #023432;
}

.alert-primary {
    background: rgba(3, 64, 64, 0.16);
    border-color: rgba(3, 89, 81, 0.32);
    color: #012222;
}

.alert-warning {
    background: rgba(2, 35, 38, 0.1);
    border-color: rgba(3, 89, 81, 0.3);
    color: #023432;
}

/* ============================================
   List Groups
   ============================================ */

.list-group {
    list-style: none;
}

.list-group-item {
    background: white;
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.list-group-item:hover {
    box-shadow: 0 4px 12px var(--shadow);
    transform: translateX(4px);
}

/* ============================================
   Buttons Outline
   ============================================ */

.btn-outline-primary {
    background: transparent;
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
}

.btn-outline-primary:hover {
    background: var(--primary-green);
    color: white;
}

/* ============================================
   Paquetes Preview
   ============================================ */

.paquetes-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.paquete-preview-card {
    background: var(--bg-cream);
    padding: 1.5rem;
    border-radius: 16px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.paquete-preview-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-green);
}

.paquete-preview-card h5 {
    color: var(--primary-green);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.paquete-preview-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.price-tag {
    display: inline-block;
    background: var(--primary-green);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
    .dashboard-header h1 {
        font-size: 2rem;
    }

    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .quick-actions {
        grid-template-columns: 1fr;
    }

    .week-calendar {
        grid-template-columns: repeat(3, 1fr);
    }

    .login-card,
    .register-card {
        padding: 2rem 1.5rem;
    }
}

/* ============================================
   Animations
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dashboard-container {
    animation: fadeIn 0.5s ease-out;
}

/* ============================================
   Dashboard Actions
   ============================================ */

.dashboard-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.dashboard-actions .btn {
    flex: 1;
    min-width: 200px;
}

/* ============================================
   Apple-style Date Picker
   ============================================ */

.apple-date-input {
    position: relative;
    width: 100%;
    z-index: 200;
}

.apple-date-field {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(243, 244, 246, 0.96));
    border-radius: 18px;
    border: 1px solid rgba(17, 24, 39, 0.08);
    padding: 0.75rem 1rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 8px 24px -12px rgba(15, 23, 42, 0.35);
    transition: border 0.2s ease, box-shadow 0.2s ease;
    cursor: text;
}

.apple-date-field.open {
    border-color: rgba(3, 115, 94, 0.38);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 10px 30px -12px rgba(3, 64, 64, 0.35);
}

.apple-date-icon {
    color: rgba(3, 64, 64, 0.8);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.apple-date-field input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.95rem;
    color: #111827;
    letter-spacing: 0.02em;
}

.apple-date-field input::placeholder {
    color: rgba(107, 114, 128, 0.85);
}

.apple-date-toggle {
    border: none;
    background: rgba(3, 64, 64, 0.12);
    color: var(--primary-green);
    border-radius: 12px;
    width: 36px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.apple-date-toggle:hover {
    background: rgba(3, 64, 64, 0.18);
}

.apple-date-overlay {
    position: fixed;
    inset: 0;
    background: transparent;
    z-index: 205;
}

.apple-calendar {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 320px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    box-shadow: 0 24px 40px -20px rgba(15, 23, 42, 0.4);
    padding: 1.2rem;
    z-index: 210;
    color: #0f172a;
}

.apple-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.apple-calendar-month {
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    text-transform: capitalize;
}

.apple-calendar-nav {
    border: none;
    background: rgba(3, 64, 64, 0.12);
    border-radius: 12px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(3, 64, 64, 0.85);
    transition: background 0.2s ease;
}

.apple-calendar-nav:hover {
    background: rgba(3, 64, 64, 0.18);
}

.apple-calendar-body {
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.88);
    padding: 0.75rem;
}

.apple-calendar-weekdays,
.apple-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.35rem;
}

.apple-calendar-weekday {
    text-align: center;
    font-size: 0.7rem;
    text-transform: uppercase;
    color: rgba(15, 23, 42, 0.45);
    letter-spacing: 0.12em;
}

.apple-calendar-day {
    border: none;
    border-radius: 14px;
    padding: 0.45rem 0.35rem;
    font-size: 0.75rem;
    background: rgba(148, 163, 184, 0.12);
    color: #0f172a;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease, transform 0.1s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
}

.apple-calendar-day .day-number {
    display: block;
    font-size: 0.8rem;
    line-height: 1.1;
    font-weight: 500;
}

.apple-calendar-day .nd-label {
    font-size: 0.55rem;
    font-weight: 700;
    opacity: 0.9;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #ffffff;
}

.apple-calendar-day:hover:not(.disabled) {
    background: rgba(3, 64, 64, 0.18);
}

.apple-calendar-day.today {
    border: 1px solid rgba(3, 64, 64, 0.32);
}

.apple-calendar-day.selected {
    background: linear-gradient(135deg, var(--primary-green), var(--accent-teal));
    color: #fff;
    box-shadow: 0 10px 18px -12px rgba(3, 64, 64, 0.45);
}

.apple-calendar-day.outside {
    color: rgba(148, 163, 184, 0.65);
}

.apple-calendar-day.disabled {
    color: #ffffff;
    background: linear-gradient(135deg, #f87171, #dc2626);
    cursor: not-allowed;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.apple-calendar-day.disabled .day-number {
    color: #ffffff;
    font-weight: 700;
}

.apple-calendar-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.75rem;
}

.apple-calendar-footer .btn-link {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 500;
}

.apple-calendar-footer .btn-link:hover {
    text-decoration: underline;
}

/* ============================================
   Admin - Paquetes
   ============================================ */

.paquetes-container {
    padding: clamp(1.5rem, 2vw, 2.5rem);
    display: flex;
    flex-direction: column;
    gap: clamp(1.5rem, 2vw, 2.5rem);
}

.header-section {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.header-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.page-title {
    font-size: clamp(1.9rem, 2.5vw, 2.3rem);
    font-weight: 700;
    margin: 0;
    color: var(--heading-color);
}

.page-subtitle {
    margin: 0.25rem 0 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.btn-glass {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    border: none;
    padding: 0.75rem 1.2rem;
    border-radius: 14px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    backdrop-filter: blur(18px) saturate(170%);
    -webkit-backdrop-filter: blur(18px) saturate(170%);
}

.btn-glass i {
    font-size: 1.1rem;
}

.btn-glass span {
    white-space: nowrap;
}

.btn-glass {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 10px 26px -18px rgba(2, 35, 38, 0.25);
}

.btn-glass:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px -20px rgba(2, 35, 38, 0.3);
}

.btn-primary-glass {
    background: rgba(3, 64, 64, 0.85);
    color: #f3fbf9;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-primary-glass:hover {
    box-shadow: 0 18px 36px -20px rgba(2, 35, 38, 0.38);
}

.btn-glass:disabled,
.btn-glass.disabled,
.btn-primary-glass:disabled,
.btn-primary-glass.disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(243, 251, 249, 0.6);
}

.btn-secondary-glass {
    background: rgba(255, 255, 255, 0.2);
    color: var(--heading-color);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 10px 24px -20px rgba(2, 35, 38, 0.22);
}

.btn-danger-glass {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.92), rgba(200, 35, 51, 0.92));
    color: #fff;
    box-shadow: 0 14px 28px -18px rgba(220, 53, 69, 0.85);
}

.btn-edit {
    background: rgba(3, 64, 64, 0.12);
    color: var(--primary-green);
    box-shadow: inset 0 0 0 1px rgba(3, 64, 64, 0.12);
}

.btn-delete {
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
    box-shadow: inset 0 0 0 1px rgba(220, 38, 38, 0.18);
}

.btn-delete:hover {
    color: #fff;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.92), rgba(185, 28, 28, 0.92));
}

.loading-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 0;
}

.spinner-glass {
    padding: 1.75rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 14px 38px -24px rgba(15, 23, 42, 0.35);
}

.paquetes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: clamp(1.8rem, 3vw, 3.5rem);
    align-items: stretch;
}

.paquete-card-wrapper {
    display: flex;
}

.paquete-card {
    position: relative;
    width: 100%;
    min-height: 380px;
    padding: clamp(2.2rem, 3vw, 2.9rem);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(18px) saturate(165%);
    -webkit-backdrop-filter: blur(18px) saturate(165%);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: clamp(1.6rem, 2.8vw, 2.2rem);
    box-shadow:
        0 32px 78px -34px rgba(35, 48, 36, 0.4),
        0 14px 30px -20px rgba(35, 48, 36, 0.16);
    transform: translateZ(0);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.paquete-card::before {
    content: "";
    position: absolute;
    inset: 10px 12px 58% 12px;
    border-radius: 24px;
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease;
    background: radial-gradient(circle at top, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0));
    opacity: 0.8;
}

.paquete-card > * {
    position: relative;
    z-index: 1;
}

.paquete-card:hover {
    transform: translateY(-14px);
    box-shadow:
        0 36px 82px -34px rgba(35, 48, 36, 0.55),
        0 18px 44px -26px rgba(35, 48, 36, 0.28);
}

.paquete-card:hover::before {
    opacity: 0.85;
}

.paquete-card.inactive {
    opacity: 0.6;
    filter: saturate(0.7);
    transition: opacity 0.3s ease;
}

.paquete-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.paquete-header > div:first-child {
    flex: 1 1 220px;
    min-width: 0;
}


.paquete-header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1 1 auto;
    min-width: 0;
}

.paquete-icon {
    font-size: 1.6rem;
    color: var(--primary-green);
    line-height: 1;
}

.paquete-status .form-check {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0;
    min-height: auto;
}

.paquete-status .form-check-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding-top: 0;
    margin-left: 0.4rem;
}

.paquete-header .price-tag {
    flex: 0 1 clamp(190px, 32%, 230px);
    max-width: clamp(190px, 32%, 230px);
    margin-left: auto;
    min-height: 46px;
    align-self: flex-start;
}



.paquete-title-section {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1 1 auto;
    min-width: 0;
}

.paquete-name {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #1f2937;
    width: 100%;
    line-height: 1.15;
    max-width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(1.15em * 2.1);
}

.paquete-tipo {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary-green-light);
    background: rgba(3, 64, 64, 0.12);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    display: inline-block;
    line-height: 1.1;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
    box-sizing: border-box;
}

.paquete-status .status-switch {
    width: 2.8rem;
    height: 1.4rem;
    align-self: center;
    background-color: rgba(3, 64, 64, 0.16);
    border: 1px solid rgba(3, 64, 64, 0.26);
    cursor: pointer;
}

.paquete-status .form-check-input {
    margin-top: 0;
    margin-right: 0;
}

.paquete-status .status-switch:focus {
    box-shadow: 0 0 0 0.18rem var(--focus-ring);
    border-color: rgba(3, 64, 64, 0.35);
}

.paquete-status .status-switch:checked {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
}

.paquete-status .status-switch:checked:focus {
    box-shadow: 0 0 0 0.18rem rgba(2, 115, 94, 0.25);
}

.paquete-description {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.35;
    max-width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(1.35em * 2.3);
}

.paquete-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.section-title {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
    color: #1f2937;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
}

.section-title i {
    font-size: 1rem;
    color: var(--primary-green);
}

.precios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
}

.precio-item {
    position: relative;
    padding: 1rem 1.2rem;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.precio-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(3, 64, 64, 0.7);
    font-weight: 600;
}

.precio-value {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-green-dark);
}

.restricciones-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.restriccion-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #475569;
    font-size: 0.92rem;
}

.restriccion-item i {
    font-size: 1rem;
    color: var(--primary-green);
    line-height: 1;
}

.paquete-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.badge-glass {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.badge-info {
    background: rgba(3, 64, 64, 0.15);
    color: var(--primary-green);
}

.badge-success {
    background: rgba(3, 64, 64, 0.12);
    color: var(--primary-green);
}

.paquete-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.paquete-actions .btn-glass {
    flex: 1 1 140px;
    justify-content: center;
}

.empty-state {
    display: grid;
    place-items: center;
    padding: 3rem 0;
}

.empty-state-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    font-size: 2rem;
    color: var(--primary-green);
    background: rgba(58, 127, 98, 0.14);
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 1050;
    overflow-y: auto;
    overflow-x: hidden;
}

.modal-glass {
    width: min(460px, calc(100vw - 3rem));
    background: rgba(255, 255, 255, 0.92);
    border-radius: 18px;
    box-shadow: 0 24px 64px -28px rgba(15, 23, 42, 0.55);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-height: min(92vh, 980px);
    overflow: hidden;
}

.modal-glass-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.modal-glass-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    background: rgba(3, 64, 64, 0.12);
    color: var(--primary-green);
}

.modal-glass-icon-danger {
    background: rgba(220, 38, 38, 0.15);
    color: #b91c1c;
}

.modal-glass-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #1f2937;
}

.btn-close-glass {
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.2rem;
}

.modal-glass-body {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.1;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding-right: 0.15rem;
}

.modal-glass-warning {
    margin: 0;
    color: #b91c1c;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
}

.modal-glass-footer {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.modal-glass-lg {
    width: min(720px, calc(100vw - 3rem));
}

.modal-glass-xl {
    width: min(880px, 100%);
}

@media (max-height: 880px) {
    .modal-overlay {
        align-items: flex-start;
    }

    .modal-glass {
        margin-top: 2rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 640px) {
    .modal-glass {
        padding: 1.5rem;
    }

    .modal-glass-body {
        padding-right: 0;
    }

    .modal-glass-footer {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 640px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .paquete-actions {
        flex-direction: column;
    }

    .btn-glass {
        width: 100%;
        justify-content: center;
    }
}


/* ============================================
   Admin Habitaciones - Liquid Glass
   ============================================ */


.habitaciones-empty {
    padding: 3rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    align-items: center;
    color: rgba(35, 48, 36, 0.6);
}

.habitaciones-empty .spinner-border {
    width: 2.4rem;
    height: 2.4rem;
    color: #035951;
}

.habitaciones-empty i {
    font-size: 2.4rem;
    color: rgba(2, 115, 94, 0.42);
}

.habitaciones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: clamp(1.4rem, 3vw, 2.2rem);
}

.habitacion-card {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    border-radius: 26px;
    padding: clamp(1.6rem, 4vw, 2.1rem);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.habitacion-card.glass-panel {
    background: #ffffff;
    border: 1px solid rgba(3, 64, 64, 0.08);
    box-shadow:
        0 22px 44px -26px rgba(2, 35, 38, 0.3),
        0 6px 16px -10px rgba(2, 35, 38, 0.12);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.habitacion-card.glass-panel::before {
    display: none;
}

.habitacion-card.glass-panel:hover {
    transform: translateY(-10px);
    box-shadow:
        0 30px 60px -32px rgba(2, 35, 38, 0.35),
        0 8px 18px -10px rgba(2, 35, 38, 0.18);
}

.habitacion-card.glass-panel:hover::before {
    display: none;
}

.habitacion-card--inactive {
    opacity: 0.68;
    filter: saturate(0.82);
}

.habitacion-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.habitacion-card__identity {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    row-gap: 0.35rem;
    min-width: 0;
}

.habitacion-chip {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: rgba(35, 48, 36, 0.55);
}

.habitacion-id {
    font-size: 0.82rem;
    color: #024640;
    background: rgba(3, 115, 94, 0.16);
    padding: 0.22rem 0.65rem;
    border-radius: 999px;
    font-weight: 600;
}

.habitacion-card__body {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.habitacion-heading {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.habitacion-numero {
    margin: 0;
    font-size: 1.95rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #022326;
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.15;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.habitacion-heading p {
    margin: 0;
    color: rgba(35, 48, 36, 0.62);
    font-size: 0.92rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(1.35em * 1.8);
}

.habitacion-tags {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.45rem;
}

.habitacion-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.habitacion-meta dt {
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(35, 48, 36, 0.48);
}

.habitacion-meta dd {
    margin: 0.4rem 0 0;
    font-weight: 600;
}

.habitacion-card__footer {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.habitacion-card__footer .btn-glass {
    flex: 1 1 160px;
    justify-content: center;
}


.actividades-page {
    display: flex;
    flex-direction: column;
    gap: clamp(1.8rem, 3vw, 2.6rem);
    padding: clamp(3rem, 6vw, 4.6rem) clamp(1.5rem, 6vw, 4.4rem) 3rem;
}

.management-hero {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr) auto;
    align-items: stretch;
    gap: clamp(1.5rem, 3vw, 2.4rem);
    padding: clamp(2.4rem, 5vw, 3rem);
}

@media (max-width: 1024px) {
    .management-hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.6rem;
    }

    .hero-actions {
        justify-content: flex-start;
    }
}

.actividades-filtros {
    padding: clamp(1.8rem, 4vw, 2.4rem) clamp(1.2rem, 4vw, 2.2rem);
}

.actividades-callout {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: clamp(1.6rem, 4vw, 2.2rem);
    color: rgba(35, 48, 36, 0.72);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.26);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 20px 46px -34px rgba(2, 35, 38, 0.35);
}

.actividades-callout i {
    font-size: 1.35rem;
    color: #035951;
}

.actividades-list {
    padding: clamp(2rem, 4vw, 2.6rem);
}

.actividades-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2.6rem 1.6rem;
    color: rgba(35, 48, 36, 0.58);
    text-align: center;
    min-height: 220px;
    justify-content: center;
}

.actividades-empty i {
    font-size: 2.2rem;
    color: rgba(3, 64, 64, 0.45);
}

.actividades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(1.6rem, 3vw, 2.2rem);
}

.actividad-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: clamp(1.4rem, 2vw, 1.9rem);
    padding: clamp(1.8rem, 3.2vw, 2.5rem);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.32);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        0 26px 60px -36px rgba(2, 35, 38, 0.5),
        0 14px 38px -28px rgba(2, 35, 38, 0.18);
    backdrop-filter: blur(24px) saturate(155%);
    -webkit-backdrop-filter: blur(24px) saturate(155%);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.actividad-card:hover {
    transform: translateY(-10px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        0 32px 72px -34px rgba(2, 35, 38, 0.6),
        0 18px 44px -28px rgba(2, 35, 38, 0.25);
}

.actividad-card--inactive {
    opacity: 0.68;
    filter: saturate(0.82);
}

.actividad-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.2rem;
}

.actividad-card__identity {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    row-gap: 0.4rem;
}

.actividad-chip {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: rgba(35, 48, 36, 0.55);
}

.actividad-media-count {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
    color: #024640;
    font-weight: 600;
    font-size: 0.82rem;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.38);
    margin-left: auto;
}

.actividad-card__body {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

.actividad-heading h3 {
    margin: 0;
    font-size: clamp(1.55rem, 2.5vw, 1.85rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #022326;
    line-height: 1.15;
    min-height: calc(1.15em * 2.2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.actividad-heading p {
    margin: 0.4rem 0 0;
    color: rgba(35, 48, 36, 0.68);
    line-height: 1.35;
    max-width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(1.35em * 2.35);
}

.actividad-pricing {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.6rem;
}

.price-block {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.price-label {
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(35, 48, 36, 0.52);
}

.price-amount {
    font-size: 1.35rem;
    font-weight: 700;
    color: #022326;
}

.price-amount--free {
    color: #02735E;
}

.operator-state {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.01em;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.operator-state--available {
    background: rgba(2, 115, 94, 0.14);
    color: #024640;
}

.operator-state--unavailable {
    background: rgba(148, 163, 184, 0.16);
    color: #1f2937;
}

.operator-note {
    font-size: 0.82rem;
    color: rgba(35, 48, 36, 0.6);
}

.actividad-gallery {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.actividad-thumb {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 18px -12px rgba(2, 35, 38, 0.45);
}

.actividad-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05);
    transform: scale(1.03);
}

.actividad-thumb--more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.28);
    color: #024640;
    font-weight: 600;
    font-size: 0.9rem;
}

.actividad-card__footer {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.actividad-card__footer .btn-glass {
    flex: 1 1 160px;
    justify-content: center;
}

.actividades-modal {
    gap: 1.6rem;
}

.actividades-modal .modal-glass-body {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

.actividades-modal-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.actividades-modal-grid textarea.glass-input {
    min-height: 140px;
}

.actividades-modal .switch-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

@media (max-width: 720px) {
    .actividades-page {
        padding: 2.6rem 1.6rem 2.6rem;
    }

    .actividades-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .actividad-card__footer .btn-glass {
        flex: 1 1 100%;
    }
}

.menus-page {
    display: flex;
    flex-direction: column;
    gap: clamp(1.8rem, 3vw, 2.6rem);
    padding: clamp(3rem, 6vw, 4.6rem) clamp(1.5rem, 6vw, 4.4rem) 3rem;
}

.menus-filtros {
    padding: clamp(1.8rem, 4vw, 2.4rem) clamp(1.2rem, 4vw, 2.2rem);
}

.menus-callout {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: clamp(1.6rem, 4vw, 2.2rem);
    color: rgba(35, 48, 36, 0.72);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.24);
    border: 1px solid rgba(255, 255, 255, 0.42);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 20px 46px -34px rgba(2, 35, 38, 0.35);
}

.menus-callout i {
    font-size: 1.35rem;
    color: #035951;
}

.menus-list {
    padding: clamp(2rem, 4vw, 2.6rem);
}

.menus-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2.6rem 1.6rem;
    color: rgba(35, 48, 36, 0.58);
    text-align: center;
    min-height: 220px;
    justify-content: center;
}

.menus-empty i {
    font-size: 2.2rem;
    color: rgba(3, 64, 64, 0.45);
}

.menus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(1.6rem, 3vw, 2.2rem);
}

.menu-card.glass-panel {
    display: flex;
    flex-direction: column;
    gap: clamp(1.4rem, 2vw, 1.8rem);
    padding: clamp(1.8rem, 3vw, 2.4rem);
    border-radius: 28px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        0 26px 60px -36px rgba(2, 35, 38, 0.5),
        0 14px 38px -28px rgba(2, 35, 38, 0.18);
}

.menu-card.glass-panel::before {
    opacity: 0.78;
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.5), rgba(230, 244, 238, 0.16));
}

.menu-card--inactive {
    opacity: 0.68;
    filter: saturate(0.82);
}

.menu-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.2rem;
}

.menu-card__identity {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    row-gap: 0.4rem;
}

.menu-chip {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: rgba(35, 48, 36, 0.55);
}

.menu-type-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.menu-type-pill--sunrise {
    background: rgba(242, 190, 92, 0.28);
    color: #8a5b12;
}

.menu-type-pill--emerald {
    background: rgba(2, 115, 94, 0.18);
    color: #024640;
}

.menu-type-pill--midnight {
    background: rgba(15, 30, 50, 0.2);
    color: #0f1e32;
}

.menu-type-pill--aqua {
    background: rgba(69, 196, 176, 0.22);
    color: #03655a;
}

.menu-type-pill--garden {
    background: rgba(173, 209, 102, 0.22);
    color: #48621f;
}

.menu-type-pill--neutral {
    background: rgba(148, 163, 184, 0.18);
    color: #1f2937;
}

.menu-card__body {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

.menu-heading h3 {
    margin: 0;
    font-size: clamp(1.45rem, 2.4vw, 1.8rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #022326;
    line-height: 1.15;
    min-height: calc(1.15em * 2.1);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.menu-heading p {
    margin: 0.4rem 0 0;
    color: rgba(35, 48, 36, 0.68);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(1.35em * 2.2);
}

.menu-card__prices {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.4rem;
}

.menu-tags {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.menu-tags .pill {
    gap: 0.45rem;
}

.menu-tags .pill i {
    font-size: 0.9rem;
}

.menu-card__footer {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.menu-card__footer .btn-glass {
    flex: 1 1 160px;
    justify-content: center;
}

.menus-modal {
    gap: 1.6rem;
}

.menus-modal .modal-glass-body {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

.menus-modal-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.menus-modal-grid textarea.glass-input {
    min-height: 140px;
}

.menus-modal .switch-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.menus-editor {
    padding: clamp(2rem, 4vw, 2.6rem);
}

.menu-options-section {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.04);
    padding: clamp(1.6rem, 3vw, 2rem);
    margin-top: 1.25rem;
}

.menu-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.option-card {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    padding: 1.2rem 1.35rem 1.35rem;
    box-shadow: 0 18px 35px -18px rgba(0, 0, 0, 0.45);
    min-height: 170px;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.option-card .option-chip {
    margin-bottom: 0.2rem;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(10, 76, 60, 0.18), rgba(255, 255, 255, 0.18));
    color: #0a4c3c;
    font-size: 1.2rem;
}

.option-card .option-header {
    padding-bottom: 0.35rem;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
    margin-bottom: 0.45rem;
}

.option-card .option-hint {
    margin-bottom: 0.4rem;
    padding: 0.35rem 0.55rem;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
}

.option-card .option-lines {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding-top: 0.15rem;
}

.option-card .option-line input.glass-input {
    padding-inline: 0.8rem;
}

.option-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 38px -18px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.26);
}

.option-card .option-actions {
    margin-top: auto;
    padding-top: 0.6rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.12);
}

.option-card .option-actions .btn {
    padding: 0.45rem 0.65rem;
    border-radius: 10px;
    font-weight: 600;
}

.option-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    color: #0a4c3c;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 6px 16px -12px rgba(0, 0, 0, 0.35);
    font-size: 1.1rem;
}

.menu-options-preview {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.menu-option-line {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
    align-items: center;
}

@media (max-width: 720px) {
    .menus-page {
        padding: 2.6rem 1.6rem 2.6rem;
    }

    .menus-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .menu-card__footer .btn-glass {
        flex: 1 1 100%;
    }
}

.extras-page {
    display: flex;
    flex-direction: column;
    gap: clamp(1.8rem, 3vw, 2.6rem);
    padding: clamp(3rem, 6vw, 4.6rem) clamp(1.5rem, 6vw, 4.4rem) 3rem;
}

.extras-filtros {
    padding: clamp(1.8rem, 4vw, 2.4rem) clamp(1.2rem, 4vw, 2.2rem);
}

.extras-callout {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: clamp(1.6rem, 4vw, 2.2rem);
    color: rgba(35, 48, 36, 0.72);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.24);
    border: 1px solid rgba(255, 255, 255, 0.42);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 20px 46px -34px rgba(2, 35, 38, 0.35);
}

.extras-callout i {
    font-size: 1.35rem;
    color: #035951;
}

.extras-list {
    padding: clamp(2rem, 4vw, 2.6rem);
}

.extras-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2.6rem 1.6rem;
    color: rgba(35, 48, 36, 0.58);
    text-align: center;
    min-height: 220px;
    justify-content: center;
}

.extras-empty i {
    font-size: 2.2rem;
    color: rgba(3, 64, 64, 0.45);
}

.extras-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(1.6rem, 3vw, 2.2rem);
}

.extra-card.glass-panel {
    display: flex;
    flex-direction: column;
    gap: clamp(1.4rem, 2vw, 1.8rem);
    padding: clamp(1.8rem, 3vw, 2.4rem);
    border-radius: 28px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        0 26px 60px -36px rgba(2, 35, 38, 0.5),
        0 14px 38px -28px rgba(2, 35, 38, 0.18);
}

.extra-card.glass-panel::before {
    opacity: 0.78;
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.5), rgba(230, 244, 238, 0.16));
}

.extra-card--inactive {
    opacity: 0.68;
    filter: saturate(0.82);
}

.extra-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.2rem;
}

.extra-card__identity {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    row-gap: 0.4rem;
}

.extra-chip {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: rgba(35, 48, 36, 0.55);
}

.extra-price {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.32);
    color: #022326;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.extra-price--free {
    color: #02735E;
}

.extra-card__body {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

.extra-heading h3 {
    margin: 0;
    font-size: clamp(1.45rem, 2.4vw, 1.8rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #022326;
    line-height: 1.15;
    min-height: calc(1.15em * 2.1);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.extra-heading p {
    margin: 0.4rem 0 0;
    color: rgba(35, 48, 36, 0.68);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(1.35em * 2.2);
}

.extra-tags {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.extra-tags .pill {
    gap: 0.45rem;
}

.extra-tags .pill i {
    font-size: 0.9rem;
}

.extra-card__footer {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.extra-card__footer .btn-glass {
    flex: 1 1 160px;
    justify-content: center;
}

.extras-modal {
    gap: 1.6rem;
}

.extras-modal .modal-glass-body {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

.extras-modal-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.extras-modal-grid textarea.glass-input {
    min-height: 140px;
}

.extras-modal .switch-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.usuarios-page {
    display: flex;
    flex-direction: column;
    gap: clamp(1.8rem, 3vw, 2.6rem);
    padding: clamp(3rem, 6vw, 4.6rem) clamp(1.5rem, 6vw, 4.4rem) 3rem;
}

.usuarios-filtros {
    padding: clamp(1.8rem, 4vw, 2.4rem) clamp(1.2rem, 4vw, 2.2rem);
}

.usuarios-callout {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: clamp(1.6rem, 4vw, 2.2rem);
    color: rgba(35, 48, 36, 0.72);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.24);
    border: 1px solid rgba(255, 255, 255, 0.42);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 20px 46px -34px rgba(2, 35, 38, 0.35);
}

.usuarios-callout i {
    font-size: 1.35rem;
    color: #035951;
}

.usuarios-list {
    padding: clamp(2rem, 4vw, 2.6rem);
}

.usuarios-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2.6rem 1.6rem;
    color: rgba(35, 48, 36, 0.58);
    text-align: center;
}

.usuarios-empty i {
    font-size: 2.2rem;
    color: rgba(3, 64, 64, 0.45);
}

.usuarios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: clamp(1.6rem, 3vw, 2.2rem);
}

.usuario-card.glass-panel,
.documento-card.glass-panel,
.operator-card.glass-panel {
    display: flex;
    flex-direction: column;
    gap: clamp(1.4rem, 2vw, 1.9rem);
    padding: clamp(1.8rem, 3vw, 2.4rem);
    border-radius: 28px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #ffffff;
    border: 1px solid rgba(3, 64, 64, 0.08);
    box-shadow:
        0 22px 44px -26px rgba(2, 35, 38, 0.3),
        0 6px 16px -10px rgba(2, 35, 38, 0.12);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.usuario-card.glass-panel::before,
.documento-card.glass-panel::before,
.operator-card.glass-panel::before {
    display: none;
}

.usuario-card.glass-panel:hover,
.documento-card.glass-panel:hover,
.operator-card.glass-panel:hover {
    transform: translateY(-10px);
    box-shadow:
        0 30px 60px -32px rgba(2, 35, 38, 0.35),
        0 8px 18px -10px rgba(2, 35, 38, 0.18);
}

.usuario-card.glass-panel:hover::before,
.documento-card.glass-panel:hover::before,
.operator-card.glass-panel:hover::before {
    display: none;
}

.usuario-card--inactive {
    opacity: 0.68;
    filter: saturate(0.82);
}

.usuario-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    min-width: 0;
}

.usuario-avatar {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #0f2019;
    background: linear-gradient(135deg, rgba(210, 232, 221, 0.9), rgba(195, 226, 214, 0.7));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.usuario-header {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.usuario-header h3 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #022326;
    line-height: 1.15;
}

.usuario-email {
    font-size: 0.92rem;
    color: rgba(35, 48, 36, 0.6);
    overflow: hidden;
    text-overflow: ellipsis;
}

.usuario-card__body {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.usuario-tags {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.usuario-tags .pill {
    gap: 0.45rem;
    font-size: 0.82rem;
}

.usuario-tags .pill i {
    font-size: 0.9rem;
}

.usuario-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
}

.usuario-meta dt {
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(35, 48, 36, 0.48);
}

.usuario-meta dd {
    margin: 0.35rem 0 0;
    font-weight: 600;
}

.usuario-card__footer {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.usuario-card__footer .btn-glass {
    flex: 1 1 160px;
    justify-content: center;
}

.usuarios-modal {
    gap: 1.6rem;
    max-height: min(95vh, 980px);
    overflow-y: auto;
    scrollbar-gutter: stable;
    -webkit-overflow-scrolling: touch;
}

.usuarios-modal .modal-glass-body {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    flex: 0 0 auto;
    overflow: visible;
    padding-right: 0.5rem;
    padding-bottom: 1rem;
}

.usuarios-modal .modal-glass-footer {
    position: sticky;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    padding-top: 1rem;
    margin-top: 0.35rem;
    box-shadow: 0 -18px 38px -28px rgba(2, 35, 38, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.usuarios-modal-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

@media (max-width: 1100px) {
    .usuarios-modal {
        width: min(100%, calc(100vw - 1.5rem));
        align-self: flex-start;
        max-height: calc(100vh - 1.5rem);
    }
}

@media (max-width: 900px) {
    .usuarios-modal-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .usuarios-modal {
        max-height: calc(100vh - 1rem);
    }

    .usuarios-modal .modal-glass-body {
        padding-bottom: 1.75rem;
    }

    .usuarios-modal .modal-glass-footer {
        position: static;
        margin-top: 0;
        box-shadow: none;
    }
}

.usuarios-password-toggle {
    display: flex;
    justify-content: flex-start;
    margin-top: 0.5rem;
}

.checkbox-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(3, 64, 64, 0.08);
    color: #035951;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}

.checkbox-chip input {
    accent-color: #035951;
}

.checkbox-chip i {
    font-size: 1rem;
}

@media (max-width: 720px) {
    .usuarios-page {
        padding: 2.6rem 1.6rem 2.6rem;
    }

    .usuarios-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .usuario-card__footer .btn-glass {
        flex: 1 1 100%;
    }
}

.documentos-page {
    display: flex;
    flex-direction: column;
    gap: clamp(1.8rem, 3vw, 2.6rem);
    padding: clamp(3rem, 6vw, 4.6rem) clamp(1.5rem, 6vw, 4.4rem) 3rem;
}

.documentos-filtros {
    padding: clamp(1.8rem, 4vw, 2.4rem) clamp(1.2rem, 4vw, 2.2rem);
}

.documentos-callout {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: clamp(1.6rem, 4vw, 2.2rem);
    color: rgba(35, 48, 36, 0.72);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.24);
    border: 1px solid rgba(255, 255, 255, 0.42);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 20px 46px -34px rgba(2, 35, 38, 0.35);
}

.documentos-callout i {
    font-size: 1.35rem;
    color: #035951;
}

.documentos-list {
    padding: clamp(2rem, 4vw, 2.6rem);
}

.documentos-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2.6rem 1.6rem;
    color: rgba(35, 48, 36, 0.58);
    text-align: center;
}

.documentos-empty i {
    font-size: 2.4rem;
    color: rgba(3, 64, 64, 0.45);
}

.documentos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(1.6rem, 3vw, 2.2rem);
}

.documento-card.glass-panel {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    padding: clamp(1.8rem, 3vw, 2.4rem);
    border-radius: 28px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.32);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        0 26px 60px -36px rgba(2, 35, 38, 0.5),
        0 14px 38px -28px rgba(2, 35, 38, 0.18);
    backdrop-filter: blur(24px) saturate(155%);
    -webkit-backdrop-filter: blur(24px) saturate(155%);
}

.documento-card.glass-panel::before {
    content: "";
    position: absolute;
    inset: 12px 16px 58% 16px;
    border-radius: 22px;
    background: radial-gradient(circle at top, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0));
    pointer-events: none;
    opacity: 0.75;
    transition: opacity 0.3s ease;
}

.documento-card.glass-panel:hover {
    transform: translateY(-10px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        0 32px 72px -34px rgba(2, 35, 38, 0.6),
        0 18px 44px -28px rgba(2, 35, 38, 0.25);
}

.documento-card.glass-panel:hover::before {
    opacity: 0.85;
}

.documento-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    min-width: 0;
}

.documento-orden {
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(35, 48, 36, 0.55);
}

.documento-header {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
    flex: 1 1 auto;
}

.documento-header h3 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #022326;
}

.documento-meta {
    font-size: 0.85rem;
    color: rgba(35, 48, 36, 0.6);
}

.documento-card__body {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.documento-tags {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.documento-tags .pill {
    gap: 0.45rem;
}

.documento-tags .pill i {
    font-size: 0.9rem;
}

.documento-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.documento-meta-grid dt {
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(35, 48, 36, 0.48);
}

.documento-meta-grid dd {
    margin: 0.35rem 0 0;
    font-weight: 600;
}

.documento-card__footer {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.documento-card__footer .btn-glass {
    flex: 1 1 160px;
    justify-content: center;
}

.documentos-modal,
.documentos-firmas-modal {
    gap: 1.4rem;
}

.documentos-firmas-loading {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    padding: 2.4rem 1.6rem;
    color: rgba(35, 48, 36, 0.6);
}

.documentos-firmas-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.6rem;
}

.documentos-timeline {
    position: relative;
    padding-left: 1.6rem;
}

.documentos-timeline::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0.55rem;
    width: 1px;
    background: linear-gradient(180deg, rgba(3, 64, 64, 0.25), rgba(3, 64, 64, 0));
}

.documentos-timeline-item {
    position: relative;
    padding-left: 1.6rem;
    margin-bottom: 1.8rem;
}

.documentos-timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -0.85rem;
    top: 0.6rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(3, 64, 64, 0.9), rgba(3, 115, 94, 0.7));
    box-shadow: 0 0 12px rgba(3, 64, 64, 0.4);
}

.timeline-content {
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.36);
    border-radius: 22px;
    padding: 1.5rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.timeline-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.timeline-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
}

.timeline-identity {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.timeline-avatar {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #0f2019;
    background: linear-gradient(135deg, rgba(210, 232, 221, 0.9), rgba(195, 226, 214, 0.7));
}

.timeline-identity h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #022326;
}

.timeline-meta {
    font-size: 0.85rem;
    color: rgba(35, 48, 36, 0.6);
}

.timeline-body {
    margin-top: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.timeline-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.timeline-full {
    grid-column: 1 / -1;
}

.timeline-label {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(35, 48, 36, 0.48);
}

.timeline-value {
    display: block;
    margin-top: 0.35rem;
    font-weight: 600;
    color: #022326;
    word-break: break-word;
}

.timeline-signature {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.timeline-signature img {
    max-width: 260px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: #fff;
    padding: 0.5rem;
}

.documentos-firmas-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 3rem 1.6rem;
    color: rgba(35, 48, 36, 0.6);
    text-align: center;
}

.documentos-firmas-empty i {
    font-size: 2.6rem;
    color: rgba(3, 64, 64, 0.45);
}

@media (max-width: 720px) {
    .documentos-page {
        padding: 2.6rem 1.6rem 2.6rem;
    }

    .documentos-grid {
        grid-template-columns: min(100%, 1fr);
    }

    .documento-card__footer .btn-glass {
        flex: 1 1 100%;
    }

    .documentos-firmas-summary {
        flex-direction: column;
        align-items: flex-start;
    }
}

.operator-page {
    display: flex;
    flex-direction: column;
    gap: clamp(1.8rem, 3vw, 2.6rem);
    padding: clamp(3rem, 6vw, 4.6rem) clamp(1.5rem, 6vw, 4.4rem) 3rem;
}

.operator-callout {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: clamp(1.6rem, 4vw, 2.2rem);
    color: rgba(35, 48, 36, 0.72);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.24);
    border: 1px solid rgba(255, 255, 255, 0.42);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 20px 46px -34px rgba(2, 35, 38, 0.35);
}

.operator-callout i {
    font-size: 1.35rem;
    color: #035951;
}

.operator-events,
.operator-week {
    padding: clamp(2rem, 4vw, 2.6rem);
}

.operator-events .section-header,
.operator-week .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    margin-bottom: 20px;
}

.section-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: rgba(3, 64, 64, 0.12);
    color: #035951;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.operator-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: clamp(1.6rem, 3vw, 2.2rem);
}

.operator-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.operator-time {
    font-size: 1.15rem;
    font-weight: 700;
    color: #022326;
    letter-spacing: -0.01em;
}

.operator-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex: 1 1 auto;
}

.operator-card__body h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #022326;
    line-height: 1.15;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    hyphens: auto;
    min-height: calc(1.15em * 1.9);
}

.operator-card__body p {
    margin: 0;
    color: rgba(35, 48, 36, 0.58);
    font-size: 0.95rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    hyphens: auto;
    min-height: calc(1.35em * 1.6);
}

.operator-tags {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: auto;
    padding-top: 0.35rem;
}

.operator-card__footer {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
}

.operator-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.9rem;
    padding: 2.4rem 1.6rem;
    color: rgba(35, 48, 36, 0.6);
}

.operator-empty i {
    font-size: 2.4rem;
    color: rgba(3, 64, 64, 0.45);
}

.operator-week-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: clamp(1.2rem, 2.5vw, 1.8rem);
}

.operator-week-card {
    background: #ffffff;
    border: 1px solid rgba(3, 64, 64, 0.08);
    border-radius: 22px;
    padding: 1.2rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    box-shadow:
        0 18px 36px -26px rgba(2, 35, 38, 0.28),
        0 8px 18px -16px rgba(2, 35, 38, 0.12);
}

.operator-week-card header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
}

.operator-week-card .week-day {
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: rgba(35, 48, 36, 0.58);
}

.operator-week-card .week-number {
    font-size: 1.4rem;
    font-weight: 700;
    color: #022326;
}

.operator-week-card--today {
    border-color: rgba(3, 64, 64, 0.3);
    box-shadow:
        0 22px 42px -28px rgba(2, 35, 38, 0.3),
        0 6px 16px -12px rgba(2, 35, 38, 0.18);
}

.week-status {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

@media (max-width: 720px) {
    .operator-page {
        padding: 2.6rem 1.6rem 2.6rem;
    }

    .operator-events-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .operator-week-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
}

@media (max-width: 720px) {
    .extras-page {
        padding: 2.6rem 1.6rem 2.6rem;
    }

    .extras-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .extra-card__footer .btn-glass {
        flex: 1 1 100%;
    }
}

.habitaciones-page {
    display: flex;
    flex-direction: column;
    gap: clamp(1.8rem, 3vw, 2.6rem);
    padding: clamp(3rem, 6vw, 4.6rem) clamp(1.5rem, 6vw, 4.4rem) 3rem;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.hero-kicker {
    text-transform: uppercase;
    letter-spacing: 0.28em;
    font-size: 0.74rem;
    color: rgba(35, 48, 36, 0.55);
}

.management-hero h1 {
    margin: 0;
    font-size: clamp(2.4rem, 4vw, 3.1rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #1f2b25;
}

.management-hero p {
    margin: 0;
    color: rgba(35, 48, 36, 0.66);
    max-width: 520px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    align-self: center;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 1rem 1.2rem;
    border-radius: 18px;
    background: linear-gradient(170deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.22));
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #035951;
}

.stat-label {
    font-size: 0.74rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(35, 48, 36, 0.55);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-actions {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
}

.status-toast {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.35rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: linear-gradient(170deg, rgba(236, 248, 243, 0.55), rgba(220, 238, 231, 0.28));
    box-shadow: 0 20px 42px -26px rgba(2, 35, 38, 0.35);
    color: #0f2a23;
}

.status-toast i {
    font-size: 1.1rem;
}

.status-toast.success {
    border-color: rgba(22, 163, 74, 0.35);
}

.status-toast.warning {
    border-color: rgba(217, 119, 6, 0.32);
    color: #7a4b16;
}

.status-close {
    margin-left: auto;
    background: transparent;
    border: none;
    color: rgba(35, 48, 36, 0.55);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    transition: color 0.2s ease, background 0.2s ease;
}

.status-close:hover {
    background: rgba(35, 48, 36, 0.08);
    color: #1f2b25;
}

.hero-actions-doc {
    gap: 0.75rem;
}

.doc-editor-panel {
    margin-top: 1.5rem;
    padding: clamp(1.5rem, 3vw, 2rem) clamp(1.5rem, 4vw, 2.25rem);
}

.doc-editor-panel .form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.form-field-full {
    grid-column: 1 / -1;
}

.habitaciones-filtros {
    padding: clamp(1.8rem, 4vw, 2.4rem) clamp(1.2rem, 4vw, 2.2rem);
}

.habitaciones-callout {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: clamp(1.6rem, 4vw, 2.2rem);
    color: rgba(35, 48, 36, 0.72);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.24);
    border: 1px solid rgba(255, 255, 255, 0.42);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 20px 46px -34px rgba(2, 35, 38, 0.35);
}

.habitaciones-callout i {
    font-size: 1.35rem;
    color: #035951;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
}

.habitaciones-list {
    padding: clamp(2rem, 4vw, 2.6rem);
}


.cell-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.32rem 0.65rem;
    border-radius: 999px;
    background: rgba(2, 115, 94, 0.12);
    color: #035951;
    font-weight: 600;
    font-size: 0.78rem;
}

.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.pill-teal {
    background: rgba(2, 115, 94, 0.16);
    color: #035951;
}

.pill-emerald {
    background: rgba(2, 89, 81, 0.18);
    color: #024640;
}

.pill-amber {
    background: rgba(244, 197, 65, 0.24);
    color: #8b5e18;
}

.pill-neutral {
    background: rgba(148, 163, 184, 0.18);
    color: #1f2937;
}

.table-actions {
    display: inline-flex;
    justify-content: flex-end;
    gap: 0.65rem;
}

.action-button {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.82), rgba(236, 248, 243, 0.52));
    color: #035951;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.action-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px -18px rgba(3, 64, 64, 0.35);
}

.action-button.toggle {
    color: #0f5132;
}

.action-button.toggle.inactive {
    color: #b35512;
}

.switch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.switch-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.2rem;
    border-radius: 18px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.48), rgba(236, 248, 243, 0.32));
    border: 1px solid rgba(255, 255, 255, 0.42);
}

.switch-title {
    font-weight: 600;
    color: rgba(35, 48, 36, 0.9);
}

.switch-description {
    font-size: 0.8rem;
    color: rgba(35, 48, 36, 0.6);
}

.switch-control {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.switch-label {
    font-size: 0.82rem;
    color: rgba(35, 48, 36, 0.66);
}

.modal-glass-md {
    width: min(520px, 100%);
}

.modal-glass-subtitle {
    margin: 0.4rem 0 0;
    font-size: 0.9rem;
    color: rgba(35, 48, 36, 0.6);
}

.modal-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

@media (max-width: 1024px) {
    .management-hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.6rem;
    }

    .hero-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 720px) {
    .habitaciones-page {
        padding: 2.6rem 1.6rem 2.6rem;
    }

    .hero-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .table-wrapper {
        margin: 0 -0.8rem;
    }
}

@media (max-width: 560px) {
    .hero-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .table-actions {
        gap: 0.45rem;
    }

    .action-button {
        width: 34px;
        height: 34px;
        border-radius: 12px;
    }
}



/* ============================================
   Paquete Form - Liquid Glass
   ============================================ */

.paquete-form-page {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    padding: clamp(3.2rem, 6vw, 4.8rem) clamp(1.5rem, 6vw, 4.2rem) 4rem;
    display: flex;
    flex-direction: column;
    gap: clamp(2.2rem, 4vw, 3.2rem);
    z-index: 1;
}

.paquete-form-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
    padding: clamp(2.2rem, 4vw, 3rem);
    border-radius: 32px;
}

.form-header-text {
    max-width: 640px;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.form-hero-kicker {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.28em;
    font-size: 0.75rem;
    color: rgba(35, 48, 36, 0.55);
}

.paquete-form-header h1 {
    margin: 0;
    font-size: clamp(2.4rem, 4vw, 3.2rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #1f2b25;
}

.form-subtitle {
    margin: 0;
    color: rgba(35, 48, 36, 0.68);
    font-size: 1.05rem;
    line-height: 1.1;
}

.form-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.paquete-form {
    padding: clamp(2.4rem, 5vw, 3.2rem);
    border-radius: 32px;
    display: flex;
    flex-direction: column;
    gap: clamp(2rem, 4vw, 3rem);
}

.form-validation-summary {
    margin: 0;
    background: rgba(220, 53, 69, 0.08);
    border: 1px solid rgba(220, 53, 69, 0.18);
    border-radius: 18px;
    padding: 1rem 1.25rem;
    color: #7f1d1d;
    font-weight: 500;
}

.form-section {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.section-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(140deg, rgba(3, 115, 94, 0.16), rgba(3, 89, 81, 0.08));
    color: #02735E;
    box-shadow: inset 0 0 0 1px rgba(3, 115, 94, 0.22);
}

.section-icon i {
    font-size: 1.6rem;
}

.section-header h2 {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #1f2b25;
}

.section-header p {
    margin: 0.25rem 0 0;
    color: rgba(35, 48, 36, 0.64);
    font-size: 0.98rem;
    line-height: 1.25;
}

.section-hint {
    margin: -0.4rem 0 0;
    color: rgba(35, 48, 36, 0.58);
    font-size: 0.85rem;
}

.form-grid {
    display: grid;
    gap: 1.4rem 1.6rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.form-field label {
    font-weight: 600;
    letter-spacing: 0.01em;
    color: rgba(35, 48, 36, 0.88);
    display: flex;
    align-items: flex-end;
    min-height: 2.6rem;
    line-height: 1.25;
    word-break: normal;
}

.form-field .field-note,
.form-field small {
    color: rgba(35, 48, 36, 0.6);
    font-size: 0.78rem;
}

.form-field--wide {
    grid-column: 1 / -1;
}

textarea.glass-input {
    min-height: 160px;
    resize: vertical;
}

.media-library-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.4rem;
}

.btn-compact {
    padding: 0.7rem 1.4rem;
    font-size: 0.95rem;
}

.media-alert {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 1rem 1.25rem;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.2;
}

.media-alert i {
    font-size: 1.2rem;
}

.media-alert-warning {
    background: rgba(217, 119, 6, 0.12);
    border: 1px solid rgba(217, 119, 6, 0.24);
    color: #8B5E18;
}

.media-alert-info {
    background: rgba(3, 115, 94, 0.12);
    border: 1px solid rgba(3, 115, 94, 0.24);
    color: #035951;
}

.media-loading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(35, 48, 36, 0.68);
    font-size: 0.95rem;
}

.media-loading .spinner-border {
    width: 1.75rem;
    height: 1.75rem;
    color: #02735E;
}

.gallery-selected-grid {
    display: grid;
    gap: 1.4rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.gallery-card {
    position: relative;
    border-radius: 26px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.42);
    box-shadow: 0 22px 48px -30px rgba(2, 35, 38, 0.45);
}

.gallery-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.gallery-card-index {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.2rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: #022326;
    font-weight: 600;
    font-size: 0.9rem;
}

.gallery-card-actions {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.45rem;
}

.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.78);
    color: #035951;
    font-size: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    cursor: pointer;
}

.icon-button:hover:enabled {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px -20px rgba(2, 35, 38, 0.5);
}

.icon-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.icon-button.danger {
    color: #b91c1c;
    border-color: rgba(185, 28, 28, 0.28);
}

.icon-button.danger:hover:enabled {
    background: rgba(255, 235, 235, 0.92);
    box-shadow: 0 14px 26px -20px rgba(185, 28, 28, 0.5);
}

.icon-button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(3, 115, 94, 0.28);
}

.media-divider {
    height: 1px;
    margin: 1.6rem 0 1.2rem;
    background: linear-gradient(90deg, rgba(3, 89, 81, 0.18), rgba(255, 255, 255, 0));
}

.media-subtitle {
    margin: 0 0 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.82rem;
    color: rgba(35, 48, 36, 0.6);
}

.gallery-library-grid {
    display: grid;
    gap: 1.2rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.gallery-library-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.32);
    overflow: hidden;
    padding: 0;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    font: inherit;
    color: inherit;
}

.gallery-library-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 44px -30px rgba(2, 35, 38, 0.48);
}

.gallery-library-card.is-selected {
    border-color: rgba(3, 115, 94, 0.6);
    box-shadow: 0 18px 44px -26px rgba(3, 115, 94, 0.45);
}

.gallery-library-card:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(3, 115, 94, 0.28);
}

.gallery-library-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.gallery-library-footer {
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.82rem;
    color: rgba(35, 48, 36, 0.82);
}

.gallery-library-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gallery-library-status {
    font-weight: 600;
    color: #035951;
}

.gallery-library-card.is-selected .gallery-library-status {
    color: #1c4532;
}

.gallery-library-check {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    width: 32px;
    height: 32px;
    border-radius: 12px;
    background: rgba(3, 115, 94, 0.92);
    color: #f0fff9;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 24px -16px rgba(3, 115, 94, 0.6);
    font-size: 1rem;
}

.switch-grid {
    display: grid;
    gap: 1.1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.switch-tile {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1rem 1.2rem;
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.18));
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 46px -34px rgba(2, 35, 38, 0.45);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    cursor: pointer;
}

.switch-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 52px -32px rgba(2, 35, 38, 0.55);
}

.switch-body {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.switch-title {
    font-weight: 600;
    color: rgba(35, 48, 36, 0.9);
}

.switch-description {
    font-size: 0.8rem;
    color: rgba(35, 48, 36, 0.6);
}

.glass-switch {
    appearance: none;
    width: 52px;
    height: 30px;
    border-radius: 999px;
    background: rgba(3, 89, 81, 0.18);
    border: 1px solid rgba(3, 89, 81, 0.28);
    position: relative;
    flex-shrink: 0;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    box-shadow: inset 0 4px 6px rgba(3, 64, 64, 0.18);
}

.glass-switch::after {
    content: "";
    position: absolute;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.96);
    top: 3px;
    left: 4px;
    box-shadow: 0 6px 12px rgba(2, 35, 38, 0.25);
    transition: transform 0.25s ease;
}

.glass-switch:checked {
    background: linear-gradient(135deg, rgba(3, 89, 81, 0.85), rgba(2, 115, 94, 0.95));
    border-color: rgba(2, 115, 94, 0.9);
    box-shadow: 0 10px 20px -8px rgba(2, 115, 94, 0.6);
}

.glass-switch:checked::after {
    transform: translateX(22px);
}

.glass-switch:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(2, 115, 94, 0.25);
}

.selection-grid {
    display: grid;
    gap: 1.2rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.selection-card {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    border-radius: 24px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.16));
    border: 1px solid rgba(255, 255, 255, 0.38);
    padding: 1.2rem 1.4rem;
    box-shadow: 0 18px 44px -30px rgba(2, 35, 38, 0.45);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.selection-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 52px -32px rgba(2, 35, 38, 0.5);
}

.selection-card.is-active {
    border-color: rgba(3, 115, 94, 0.55);
    box-shadow: 0 20px 48px -28px rgba(3, 115, 94, 0.45);
}

.selection-card-main {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    cursor: pointer;
}

.selection-card-main .glass-checkbox {
    margin-top: 0.15rem;
}

.selection-card-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.selection-title {
    font-weight: 600;
    font-size: 1.05rem;
    color: rgba(35, 48, 36, 0.9);
}

.selection-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.selection-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: rgba(3, 89, 81, 0.12);
    color: #035951;
    font-weight: 600;
    font-size: 0.82rem;
}

.selection-badge.subtle {
    background: rgba(35, 48, 36, 0.12);
    color: rgba(35, 48, 36, 0.75);
}

.selection-meta {
    font-size: 0.8rem;
    color: rgba(35, 48, 36, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.selection-description {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: rgba(35, 48, 36, 0.62);
}

.glass-checkbox {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 1px solid rgba(3, 89, 81, 0.35);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.08);
    cursor: pointer;
    position: relative;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.glass-checkbox::after {
    content: "";
    position: absolute;
    width: 6px;
    height: 10px;
    border-right: 2px solid transparent;
    border-bottom: 2px solid transparent;
    top: 3px;
    left: 6px;
    transform: rotate(45deg) scale(0);
    transition: transform 0.2s ease;
}

.glass-checkbox:checked {
    background: linear-gradient(135deg, rgba(3, 115, 94, 0.95), rgba(2, 89, 81, 0.85));
    border-color: rgba(2, 115, 94, 0.9);
    box-shadow: 0 10px 18px -10px rgba(2, 115, 94, 0.55);
}

.glass-checkbox:checked::after {
    border-right-color: #f4fff9;
    border-bottom-color: #f4fff9;
    transform: rotate(45deg) scale(1);
}

.glass-checkbox:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(2, 115, 94, 0.25);
}

.inline-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: rgba(35, 48, 36, 0.7);
    cursor: pointer;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 960px) {
    .paquete-form-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-header-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .form-header-actions .btn-glass {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 720px) {
    .paquete-form-page {
        padding: 2.8rem 1.8rem 3rem;
    }

    .switch-grid {
        grid-template-columns: 1fr;
    }

    .gallery-card-image {
        height: 200px;
    }
}

@media (max-width: 600px) {
    .media-library-toolbar {
        justify-content: flex-start;
    }

    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .form-actions .btn-glass {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 520px) {
    .paquete-form-page {
        padding: 2.4rem 1.5rem 2.8rem;
    }

    .gallery-card-image {
        height: 180px;
    }

    .gallery-library-image {
        height: 140px;
    }

.selection-grid {
    grid-template-columns: 1fr;
}
}

/* ============================================
   Media Library Admin - Liquid Glass
   ============================================ */

.media-admin-page {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    padding: clamp(3.2rem, 6vw, 4.8rem) clamp(1.5rem, 6vw, 4.2rem) 4rem;
    display: flex;
    flex-direction: column;
    gap: clamp(2rem, 4vw, 3rem);
    z-index: 1;
}

.media-upload,
.media-gallery {
    padding: clamp(2.4rem, 5vw, 3.2rem);
    border-radius: 32px;
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.media-upload-dropzone {
    position: relative;
    display: grid;
    place-items: center;
    padding: clamp(2.2rem, 4vw, 3rem);
    border-radius: 28px;
    border: 1.5px dashed rgba(3, 115, 94, 0.35);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.18));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32), 0 20px 44px -30px rgba(2, 35, 38, 0.5);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.media-upload-dropzone:hover {
    transform: translateY(-4px);
    border-color: rgba(2, 115, 94, 0.55);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42), 0 24px 52px -32px rgba(2, 35, 38, 0.6);
}

.dropzone-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
    color: rgba(35, 48, 36, 0.72);
}

.dropzone-visual i {
    font-size: 2.4rem;
    color: #035951;
    background: rgba(3, 115, 94, 0.12);
    border-radius: 16px;
    padding: 0.85rem;
    box-shadow: inset 0 0 0 1px rgba(3, 115, 94, 0.2);
}

.dropzone-visual span {
    font-weight: 600;
    font-size: 1.05rem;
}

.upload-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.media-upload-hints {
    font-size: 0.85rem;
    color: rgba(35, 48, 36, 0.55);
}

.media-status {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1.25rem;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.2;
    box-shadow: 0 18px 40px -30px rgba(2, 35, 38, 0.45);
}

.media-status .spinner-border {
    width: 1.1rem;
    height: 1.1rem;
}

.media-status.success {
    background: rgba(52, 211, 153, 0.18);
    border: 1px solid rgba(22, 163, 74, 0.28);
    color: #14532d;
}

.media-status.warning {
    background: rgba(251, 191, 36, 0.16);
    border: 1px solid rgba(217, 119, 6, 0.28);
    color: #8B5E18;
}

.media-status.info {
    background: rgba(3, 115, 94, 0.14);
    border: 1px solid rgba(3, 115, 94, 0.26);
    color: #035951;
}

.media-gallery-empty {
    display: grid;
    place-items: center;
    gap: 1rem;
    padding: 3rem 1.5rem;
    text-align: center;
    color: rgba(35, 48, 36, 0.65);
}

.media-gallery-empty i {
    font-size: 2.4rem;
    color: #035951;
}

.media-gallery-empty .spinner-border {
    width: 2.3rem;
    height: 2.3rem;
    color: #035951;
}

.media-gallery-grid {
    display: grid;
    gap: 1.6rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.media-card {
    display: flex;
    flex-direction: column;
    border-radius: 26px;
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.16));
    border: 1px solid rgba(255, 255, 255, 0.38);
    box-shadow: 0 20px 48px -30px rgba(2, 35, 38, 0.5);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.media-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 56px -30px rgba(2, 35, 38, 0.58);
    border-color: rgba(3, 115, 94, 0.45);
}

.media-card-preview {
    position: relative;
    aspect-ratio: 4 / 3;
    background: rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.media-card-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.media-card-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.35rem;
}

.media-card-info {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

.media-card-name {
    font-weight: 600;
    color: rgba(35, 48, 36, 0.85);
}

.media-card-path {
    font-size: 0.78rem;
    color: rgba(35, 48, 36, 0.55);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
}

.media-card .icon-button {
    flex-shrink: 0;
}

/* ============================================
   Cotización Flow
   ============================================ */

.cotizacion-page {
    display: flex;
    flex-direction: column;
    gap: clamp(1.8rem, 3vw, 2.6rem);
    padding: clamp(3rem, 6vw, 4.6rem) clamp(1.5rem, 6vw, 4.4rem) 3rem;
}

.cotizacion-hero {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: clamp(1.4rem, 3vw, 2.4rem);
}

.cotizacion-hero.glass-panel {
    padding: clamp(1.9rem, 4vw, 2.6rem);
}

.cotizacion-hero-text {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    max-width: 720px;
}

.cotizacion-hero-text h1 {
    margin: 0;
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #022326;
}

.cotizacion-hero-text p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.25;
    color: rgba(35, 48, 36, 0.68);
}

.cotizacion-status-pills {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.78rem;
    font-weight: 600;
    background: rgba(3, 64, 64, 0.08);
    color: rgba(3, 64, 64, 0.6);
    border: 1px solid rgba(3, 64, 64, 0.12);
    transition: all 0.25s ease;
}

.status-pill--done {
    background: rgba(3, 115, 94, 0.16);
    border-color: rgba(3, 115, 94, 0.3);
    color: #024640;
    box-shadow: 0 12px 30px -24px rgba(3, 115, 94, 0.55);
}

.cotizacion-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem 1.8rem;
    text-align: center;
}

.cotizacion-loading__content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    color: rgba(35, 48, 36, 0.65);
}

.cotizacion-loading__content .spinner-border {
    width: 2.4rem;
    height: 2.4rem;
    color: #035951;
}

.cotizacion-layout {
    display: flex;
    gap: clamp(1.8rem, 3vw, 2.4rem);
    align-items: flex-start;
}

.cotizacion-main {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: clamp(1.6rem, 2.8vw, 2.2rem);
}

.cotizacion-sidebar {
    flex: 0 0 min(340px, 30%);
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    position: relative;
    position: sticky;
    top: clamp(2rem, 6vw, 3.2rem);
}

.cotizacion-section {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

.cotizacion-section.glass-panel {
    padding: clamp(1.9rem, 4vw, 2.5rem);
    overflow: visible;
}

.cotizacion-summary-panel.glass-panel {
    overflow: visible;
}

.cotizacion-section__header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cotizacion-section__header h2 {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #022326;
}

.cotizacion-section__header p {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(35, 48, 36, 0.62);
    max-width: 640px;
}

.cotizacion-section__body {
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
}

.cotizacion-summary {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.cotizacion-summary-panel {
    border-radius: 26px;
    padding: clamp(1.9rem, 4vw, 2.3rem);
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.14));
    box-shadow: 0 26px 64px -42px rgba(2, 35, 38, 0.5);
}

.cotizacion-summary-panel__body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: rgba(35, 48, 36, 0.78);
}

.cotizacion-summary-panel__body h5 {
    margin: 0;
    font-size: 1.45rem;
    color: #035951;
}

.cotizacion-summary-panel--empty {
    text-align: center;
    color: rgba(35, 48, 36, 0.62);
}

.cotizacion-summary-panel--empty i {
    color: #035951;
}

.cotizacion-empty {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 3rem 1.8rem;
}

.cotizacion-empty__content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    color: rgba(35, 48, 36, 0.65);
}

.cotizacion-empty__content i {
    font-size: 2.6rem;
    color: #035951;
}

.paquete-card {
    position: relative;
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.12));
    box-shadow: 0 26px 58px -38px rgba(2, 35, 38, 0.55);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    padding: clamp(1.7rem, 4vw, 2.1rem);
}

.paquete-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 64px -36px rgba(2, 35, 38, 0.6);
    border-color: rgba(3, 115, 94, 0.32);
}

.paquete-card.selected {
    border-color: rgba(3, 115, 94, 0.6);
    box-shadow: 0 36px 72px -38px rgba(3, 115, 94, 0.55);
}

.paquete-card .card-body {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 0;
}

.paquete-carousel {
    position: relative;
}

.paquete-carousel .carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: clamp(40px, 4vw, 48px);
    height: clamp(40px, 4vw, 48px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.78), rgba(216, 233, 226, 0.32));
    color: rgba(3, 64, 64, 0.75);
    box-shadow:
        0 18px 42px -28px rgba(2, 35, 38, 0.45),
        inset 0 0 0 0.6px rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease, background 0.25s ease;
    padding: 0;
}

.paquete-carousel .carousel-arrow i {
    font-size: 1.1rem;
}

.paquete-carousel .carousel-arrow--prev {
    left: clamp(0.6rem, 2vw, 1rem);
}

.paquete-carousel .carousel-arrow--next {
    right: clamp(0.6rem, 2vw, 1rem);
}

.paquete-carousel .carousel-arrow:hover,
.paquete-carousel .carousel-arrow:focus-visible {
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.88), rgba(216, 233, 226, 0.52));
    color: rgba(3, 64, 64, 0.92);
    box-shadow:
        0 24px 52px -28px rgba(3, 64, 64, 0.45),
        inset 0 0 0 0.6px rgba(255, 255, 255, 0.75);
    transform: translateY(-50%) scale(1.04);
}

.paquete-carousel .carousel-arrow:focus-visible {
    outline: 2px solid rgba(3, 115, 94, 0.45);
    outline-offset: 2px;
}

.paquete-carousel .carousel-arrow:active {
    transform: translateY(-50%) scale(0.96);
}

.cotizacion-section__body .card {
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.08));
    box-shadow: 0 18px 46px -32px rgba(2, 35, 38, 0.45);
}

.cotizacion-section__body .card-body {
    background: transparent;
}

.cotizacion-extra-list {
    display: flex;
    flex-direction: column;
    gap: clamp(0.85rem, 1.6vw, 1.2rem);
}

.cotizacion-extra-card {
    border-radius: 20px;
}

.cotizacion-extra-card__content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 576px) {
    .cotizacion-extra-card__content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 1.2rem;
    }
}

.cotizacion-extra-card__info {
    flex: 1 1 auto;
}

.cotizacion-extra-card__meta {
    flex: 0 0 auto;
    min-width: min(240px, 100%);
}

@media (min-width: 576px) {
    .cotizacion-extra-card__meta {
        min-width: 220px;
    }
}

.cotizacion-extra-card__meta .badge {
    width: 100%;
}

@media (min-width: 576px) {
    .cotizacion-extra-card__meta .badge {
        width: auto;
    }
}

.cotizacion-extra-card__info .form-select {
    width: 100%;
}

.paquete-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.price-tag,
.cotizacion-price-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    border-radius: 999px;
    padding: 0.48rem 1.2rem;
    background: linear-gradient(150deg, rgba(3, 89, 81, 0.94), rgba(3, 64, 64, 0.82));
    color: rgba(246, 255, 251, 0.95);
    font-weight: 650;
    font-size: clamp(0.84rem, 1.7vw, 0.92rem);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-align: center;
    white-space: normal;
    line-height: 1.35;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-sizing: border-box;
    word-break: break-word;
    box-shadow:
        inset 0 0 0 1.2px rgba(255, 255, 255, 0.38),
        0 18px 42px -24px rgba(2, 35, 38, 0.55);
}

.price-tag::after,
.cotizacion-price-chip::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0));
    opacity: 0.75;
    pointer-events: none;
    z-index: -1;
}

.cotizacion-habitaciones-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.summary-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    background: rgba(3, 64, 64, 0.12);
    border: 1px solid rgba(3, 64, 64, 0.18);
    color: rgba(3, 64, 64, 0.72);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.summary-pill i {
    color: #035951;
    font-size: 0.95rem;
}

.summary-pill--ok {
    background: rgba(3, 89, 81, 0.22);
    border-color: rgba(3, 89, 81, 0.35);
    color: #023432;
}

.summary-pill--ok i {
    color: #023432;
}

.summary-pill--warn {
    background: rgba(222, 192, 160, 0.26);
    border-color: rgba(141, 162, 144, 0.48);
    color: #8DA290;
}

.summary-pill--warn i {
    color: #8DA290;
}

.cotizacion-habitaciones-note {
    margin: 0.35rem 0 0;
    font-size: 0.82rem;
    color: rgba(3, 64, 64, 0.65);
}

.cotizacion-habitaciones-grid {
    display: grid;
    gap: clamp(1rem, 3vw, 1.5rem);
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.habitacion-grupo-card {
    position: relative;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.32), rgba(235, 243, 238, 0.12));
    box-shadow: 0 24px 60px -34px rgba(2, 35, 38, 0.45);
    padding: clamp(1.1rem, 3vw, 1.6rem);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.habitacion-grupo-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.habitacion-grupo-header h5 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: #023432;
}

.habitacion-grupo-header p {
    margin: 0.25rem 0 0;
    font-size: 0.82rem;
    color: rgba(3, 64, 64, 0.62);
}

.habitacion-grupo-count {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
    background: rgba(3, 64, 64, 0.15);
    color: #035951;
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.03em;
}

.habitacion-opciones {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.habitacion-opcion {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    padding: 0.9rem 1.1rem;
    border-radius: 18px;
    border: 1px solid rgba(3, 64, 64, 0.18);
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.38), rgba(235, 243, 238, 0.14));
    color: #023432;
    box-shadow: 0 18px 44px -34px rgba(2, 35, 38, 0.45);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    cursor: pointer;
}

.habitacion-opcion:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 56px -32px rgba(2, 35, 38, 0.5);
    border-color: rgba(3, 89, 81, 0.35);
}

.habitacion-opcion--seleccionada {
    border-color: rgba(3, 89, 81, 0.6);
    box-shadow: 0 28px 62px -30px rgba(3, 89, 81, 0.55);
    background: linear-gradient(155deg, rgba(3, 89, 81, 0.16), rgba(255, 255, 255, 0.22));
}

.habitacion-opcion--disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.habitacion-opcion--disabled:hover {
    transform: none;
    box-shadow: none;
}

.habitacion-opcion__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.35rem;
    font-weight: 600;
}

.habitacion-opcion__numero {
    font-size: 0.95rem;
    color: #023432;
}

.habitacion-opcion__header i {
    color: #035951;
}

.habitacion-opcion__body {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.82rem;
    color: rgba(3, 64, 64, 0.7);
}

.habitacion-opcion__capacidad {
    font-weight: 500;
    color: rgba(3, 64, 64, 0.72);
}

.habitacion-opcion__precio {
    font-weight: 600;
    color: #035951;
}

.cotizacion-empty--inline {
    padding: 1.8rem 1.2rem;
}

.paquete-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    color: rgba(35, 48, 36, 0.68);
    font-size: 0.9rem;
}

.paquete-feature-list i {
    color: #035951;
}

.paquete-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
}

.paquete-tags {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.paquete-tags .badge {
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(3, 64, 64, 0.12);
    color: #035951;
    border: 1px solid rgba(3, 64, 64, 0.18);
}

.cotizacion-summary-panel__body .alert {
    margin-bottom: 0;
    border-radius: 18px;
}

.cotizacion-summary-panel__body .alert + .alert {
    margin-top: 1rem;
}

.cotizacion-summary-panel__body .text-primary {
    color: #035951 !important;
}

.cotizacion-summary-panel__body hr {
    border-color: rgba(3, 64, 64, 0.12);
}

.cotizacion-summary-panel__body .btn-glass {
    align-self: flex-start;
}

.cotizacion-summary-panel__body .d-flex {
    width: 100%;
}

.step-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.9rem;
}

.step-actions .btn-glass {
    min-width: 140px;
    justify-content: center;
}

@media (max-width: 1080px) {
    .cotizacion-layout {
        flex-direction: column;
    }

    .cotizacion-sidebar {
        flex: 1 1 auto;
        width: 100%;
    }
}

@media (max-width: 720px) {
    .cotizacion-page {
        padding: 2.6rem 1.6rem 2.6rem;
    }

    .cotizacion-status-pills {
        gap: 0.4rem;
    }

    .cotizacion-status-pills .status-pill {
        font-size: 0.72rem;
        letter-spacing: 0.08em;
    }

    .step-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 0.75rem;
    }
}

@media (max-width: 640px) {
    .paquete-header .price-tag {
        flex-basis: 100%;
        margin-left: 0;
        max-width: 100%;
        min-height: auto;
    }
}

.glass-modal-dialog {
    max-width: min(880px, 94vw);
    margin: 1.8rem auto;
}

.glass-modal {
    position: relative;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.72), rgba(228, 240, 231, 0.22));
    box-shadow: 0 46px 120px -52px rgba(2, 35, 38, 0.55);
    backdrop-filter: blur(36px) saturate(185%);
    -webkit-backdrop-filter: blur(36px) saturate(185%);
    overflow: hidden;
    color: rgba(35, 48, 36, 0.88);
}

.glass-modal::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 26px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.62), rgba(235, 243, 238, 0.15));
    pointer-events: none;
    opacity: 0.9;
    box-shadow:
        inset 0 0 0 0.8px rgba(255, 255, 255, 0.65),
        inset 0 -26px 48px rgba(2, 57, 54, 0.14);
}

.glass-modal__header,
.glass-modal__body,
.glass-modal__footer {
    position: relative;
    z-index: 1;
    border: none;
    background: transparent;
    padding: clamp(1.6rem, 4vw, 2.2rem);
}

.glass-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    padding-bottom: clamp(1.1rem, 3vw, 1.5rem);
}

.glass-modal__title {
    margin: 0;
    font-size: clamp(1.3rem, 2.6vw, 1.6rem);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #023432;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.glass-modal__body {
    padding-top: 0;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.glass-modal__footer {
    padding-top: 0;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.glass-modal__close {
    opacity: 0.65;
    transition: opacity 0.25s ease;
}

.glass-modal__close:hover {
    opacity: 1;
}


@media (max-width: 960px) {
    .media-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .media-hero-meta {
        align-items: flex-start;
    }
}

@media (max-width: 720px) {
    .media-admin-page {
        padding: 2.8rem 1.8rem 3rem;
    }

    .media-card-path {
        max-width: 160px;
    }
}

@media (max-width: 520px) {
    .media-admin-page {
        padding: 2.4rem 1.5rem 2.8rem;
    }

    .media-gallery-grid {
        grid-template-columns: 1fr;
    }

    .media-card-body {
        align-items: flex-start;
    }
}


/* ============================================
   macOS-style Liquid Glass Sidebar
   ============================================ */

:root {
    --sidebar-base: rgba(255, 255, 255, 0.28);
    --sidebar-highlight: rgba(255, 255, 255, 0.52);
    --sidebar-border: rgba(255, 255, 255, 0.32);
    --sidebar-shadow: 0 26px 64px -36px rgba(15, 32, 32, 0.38);
    --text-primary: #233024;
    --text-secondary: rgba(35, 48, 36, 0.64);
    --accent-green: var(--emerald-500);
    --accent-hover: rgba(58, 127, 98, 0.12);
    --accent-active: rgba(58, 127, 98, 0.22);
    --divider-color: rgba(148, 163, 184, 0.2);
    --glass-blur: 22px;
}

/* Toggle button para móvil */
.navbar-toggler {
    display: none;
}

.toggle-button {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(245, 245, 245, 0.48));
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.25);
    cursor: pointer;
    z-index: 10000;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.toggle-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.28);
}

.toggle-icon,
.toggle-icon::before,
.toggle-icon::after {
    position: absolute;
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: var(--text-primary);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.toggle-icon {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.toggle-icon::before {
    content: '';
    transform: translateY(-6px);
}

.toggle-icon::after {
    content: '';
    transform: translateY(6px);
}

/* Contenedor principal del sidebar */
.sidebar-glass {
    position: relative;
    margin: 1.2rem 0.65rem;
    width: calc(100% - 1.3rem);
    min-width: 220px;
    max-width: 300px;
    height: calc(100vh - 2.4rem);
    display: flex;
    flex-direction: column;
    border-radius: 26px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.14));
    backdrop-filter: blur(var(--glass-blur)) saturate(215%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(215%);
    border: 1px solid var(--sidebar-border);
    box-shadow:
        var(--sidebar-shadow),
        inset 0 0 0 1px rgba(255, 255, 255, 0.28);
    overflow: hidden;
}

.sidebar-glass::before,
.sidebar-glass::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(8px);
    pointer-events: none;
}

.sidebar-glass::before {
    inset: -25% auto auto -25%;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle,
        rgba(58, 127, 98, 0.18) 0%,
        rgba(58, 127, 98, 0.06) 60%,
        transparent 100%);
}

.sidebar-glass::after {
    inset: auto -30% -40% auto;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle,
        rgba(3, 64, 64, 0.18) 0%,
        rgba(3, 64, 64, 0.05) 60%,
        transparent 100%);
}

/* Logo */
.sidebar-logo {
    padding: 2.8rem 1.2rem 2rem;
    display: flex;
    justify-content: center;
    border-bottom: 1px solid var(--divider-color);
    position: relative;
    z-index: 1;
}

.logo-image {
    width: auto;
    height: clamp(156px, 22vw, 188px);
    max-width: 96%;
    object-fit: contain;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), filter 0.35s;
    filter: drop-shadow(0 26px 46px rgba(35, 48, 36, 0.18));
}

.logo-image:hover {
    transform: scale(1.05) translateY(-4px);
    filter: drop-shadow(0 32px 54px rgba(35, 48, 36, 0.22));
}

/* Navegación scrollable */
.nav-scrollable {
    flex: 1;
    padding: 0.9rem 0;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    position: relative;
    z-index: 1;
}

.nav-scrollable::-webkit-scrollbar {
    width: 4px;
}

.nav-scrollable::-webkit-scrollbar-track {
    background: transparent;
}

.nav-scrollable::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.35);
    border-radius: 999px;
}

/* Agrupación de enlaces */
.nav-glass {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0 0.8rem;
}

.nav-divider {
    height: 1px;
    background: var(--divider-color);
    margin: 1rem 1rem;
}

.nav-link-glass {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.6rem 1rem;
    border-radius: 14px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    background: transparent;
    transition: color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
}

.nav-link-glass::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.25));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.nav-link-glass::after {
    content: '';
    position: absolute;
    inset: 18% auto 18% 6px;
    width: 4px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(84, 166, 127, 0.85), rgba(58, 127, 98, 0.5));
    opacity: 0;
    transform: scaleY(0.4);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

.nav-link-glass i {
    position: relative;
    font-size: 1rem;
    color: rgba(58, 127, 98, 0.62);
    transition: color 0.25s ease, transform 0.25s ease;
}

.nav-link-glass span {
    position: relative;
    color: var(--text-secondary);
    letter-spacing: 0.01em;
    transition: color 0.25s ease;
}

.nav-link-button {
    background: none;
    border: 0;
    font: inherit;
    text-align: left;
    display: flex;
    width: 100%;
}

.nav-link-glass:hover,
.nav-link-glass:focus-visible {
    background: rgba(255, 255, 255, 0.28);
    box-shadow:
        0 22px 38px -26px rgba(35, 48, 36, 0.45),
        0 6px 18px -12px rgba(35, 48, 36, 0.26);
}

.nav-link-glass:hover::before,
.nav-link-glass:focus-visible::before {
    opacity: 0.6;
}

.nav-link-glass:hover::after,
.nav-link-glass:focus-visible::after {
    opacity: 0.5;
    transform: scaleY(1);
}

.nav-link-glass:hover i,
.nav-link-glass:focus-visible i,
.nav-link-glass:hover span,
.nav-link-glass:focus-visible span {
    color: var(--accent-green);
}

.nav-link-glass.active {
    background: rgba(255, 255, 255, 0.32);
    box-shadow:
        0 26px 42px -28px rgba(35, 48, 36, 0.42),
        inset 0 0 0 1px rgba(255, 255, 255, 0.38);
    color: var(--accent-green);
}

.nav-link-glass.active::before {
    opacity: 0.85;
}

.nav-link-glass.active::after {
    opacity: 0.95;
    transform: scaleY(1);
}

.nav-link-glass.active i,
.nav-link-glass.active span {
    color: var(--accent-green);
}

/* Responsive */
@media (max-width: 992px) {
    .navbar-toggler,
    .toggle-button {
        display: block;
    }

    .sidebar-glass {
        position: fixed;
        inset: 0;
        width: min(320px, 90vw);
        margin: 1.2rem;
        transform: translateX(-120%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 9999;
    }

    .navbar-toggler:checked ~ .sidebar-glass,
    #sidebar-toggle:checked ~ .sidebar-glass {
        transform: translateX(0);
    }
}
.animated-gradient {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f6f4 0%, #ebe9e5 100%);
    transform: translateZ(0);
}

.animated-gradient::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background: radial-gradient(circle at center,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 100%);
    pointer-events: none;
    transform: translateZ(0);
}

.gradient-layer {
    position: absolute;
    width: 200%;
    height: 200%;
    opacity: 0.6;
    mix-blend-mode: normal;
    filter: blur(80px);
    will-change: transform;
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    perspective: 1000px;
    -webkit-perspective: 1000px;
    contain: layout style paint;
    transform-origin: center;
}

.gradient-layer.layer-1 {
    background: radial-gradient(circle at 30% 40%, rgba(141, 162, 144, 0.75) 0%, rgba(141, 162, 144, 0.5) 30%, transparent 60%);
    animation: gradientMove1 8s ease-in-out infinite;
}

.gradient-layer.layer-2 {
    background: radial-gradient(circle at 70% 60%, rgba(190, 199, 180, 0.7) 0%, rgba(190, 199, 180, 0.45) 35%, transparent 65%);
    animation: gradientMove2 10s ease-in-out infinite;
    animation-delay: -2s;
}

.gradient-layer.layer-3 {
    background: radial-gradient(circle at 50% 50%, rgba(222, 226, 217, 0.8) 0%, rgba(222, 226, 217, 0.55) 40%, transparent 70%);
    animation: gradientMove3 12s ease-in-out infinite;
    animation-delay: -4s;
}

.gradient-layer.layer-4 {
    background: radial-gradient(circle at 25% 70%, rgba(252, 236, 216, 0.75) 0%, rgba(252, 236, 216, 0.5) 35%, transparent 65%);
    animation: gradientMove4 9s ease-in-out infinite;
    animation-delay: -1s;
}

.gradient-layer.layer-5 {
    background: radial-gradient(circle at 80% 30%, rgba(222, 192, 160, 0.7) 0%, rgba(222, 192, 160, 0.45) 38%, transparent 68%);
    animation: gradientMove5 11s ease-in-out infinite;
    animation-delay: -3s;
}

@keyframes gradientMove1 {
    0%, 100% { transform: translate3d(-20%, -20%, 0) rotate(0deg) scale(1); }
    25% { transform: translate3d(5%, 10%, 0) rotate(90deg) scale(1.1); }
    50% { transform: translate3d(-10%, 20%, 0) rotate(180deg) scale(0.95); }
    75% { transform: translate3d(-25%, -5%, 0) rotate(270deg) scale(1.05); }
}

@keyframes gradientMove2 {
    0%, 100% { transform: translate3d(10%, 15%, 0) rotate(45deg) scale(1.05); }
    33% { transform: translate3d(-15%, -10%, 0) rotate(135deg) scale(0.9); }
    66% { transform: translate3d(20%, -15%, 0) rotate(225deg) scale(1.15); }
}

@keyframes gradientMove3 {
    0%, 100% { transform: translate3d(-5%, 5%, 0) rotate(90deg) scale(0.95); }
    30% { transform: translate3d(15%, -20%, 0) rotate(180deg) scale(1.1); }
    60% { transform: translate3d(-20%, 15%, 0) rotate(270deg) scale(0.85); }
}

@keyframes gradientMove4 {
    0%, 100% { transform: translate3d(8%, -12%, 0) rotate(120deg) scale(1); }
    40% { transform: translate3d(-18%, 8%, 0) rotate(240deg) scale(1.08); }
    80% { transform: translate3d(12%, -8%, 0) rotate(360deg) scale(0.92); }
}

@keyframes gradientMove5 {
    0%, 100% { transform: translate3d(-12%, 18%, 0) rotate(60deg) scale(1.03); }
    35% { transform: translate3d(18%, -12%, 0) rotate(150deg) scale(0.88); }
    70% { transform: translate3d(-8%, -15%, 0) rotate(300deg) scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
    .gradient-layer {
        animation: none !important;
        transition: opacity 0.3s ease;
    }
}
