html, body {
    height: 100%;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: #f4f6f9;
}

.page {
    display: flex;
    min-height: 100vh;
}

/* ------- Barra lateral ------- */
.sidebar {
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
}

.nav-menu-root {
    width: 260px;
    height: 100%;
    background: #ffffff;
    border-right: 1px solid #eaedf2;
    color: #32424e;
    display: flex;
    flex-direction: column;
    transition: width .18s ease;
}

.nav-menu-root.is-collapsed {
    width: 76px;
}

.nav-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding: 1.1rem 1rem;
    border-bottom: 1px solid #eaedf2;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: .01em;
    color: #1f2d3a;
    min-width: 0;
}

.brand-icon {
    font-size: 1.35rem;
    color: #0d6efd;
    flex-shrink: 0;
}

.brand-logo {
    width: 2rem;
    height: 2rem;
    object-fit: contain;
    border-radius: .5rem;
    flex-shrink: 0;
}

.brand-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-collapse-btn {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e3e7ed;
    border-radius: .5rem;
    color: #7b8794;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}

.nav-collapse-btn:hover {
    background-color: #f4f6f9;
    color: #32424e;
}

.nav-links {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    padding: .75rem .65rem;
    gap: .1rem;
}

.nav-divider {
    height: 1px;
    background: #eaedf2;
    margin: .6rem .2rem;
}

.nav-group {
    display: flex;
    flex-direction: column;
}

.nav-group-header {
    display: flex;
    align-items: center;
    gap: .65rem;
    width: 100%;
    background: none;
    border: none;
    color: #32424e;
    text-align: left;
    padding: .55rem .8rem;
    border-radius: .55rem;
    font-size: .92rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .15s ease;
}

.nav-group-header:hover {
    background-color: #f4f6f9;
}

.nav-chevron {
    margin-left: auto;
    font-size: .75rem;
    color: #9aa5b1;
    transition: transform .15s ease;
    flex-shrink: 0;
}

.nav-chevron.is-open {
    transform: rotate(180deg);
}

.nav-subitems {
    display: flex;
    flex-direction: column;
    gap: .1rem;
    padding-left: 1.1rem;
    overflow: hidden;
}

.nav-subitems.is-closed {
    display: none;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: .65rem;
    color: #5a6672;
    text-decoration: none;
    padding: .5rem .8rem;
    border-radius: .55rem;
    font-size: .9rem;
    white-space: nowrap;
    transition: background-color .15s ease, color .15s ease;
}

.nav-item:hover {
    background-color: #f4f6f9;
    color: #1f2d3a;
}

.nav-item.active {
    background-color: #e8f0fe;
    color: #0d6efd;
    font-weight: 600;
}

.nav-icon {
    width: 1.3rem;
    text-align: center;
    font-size: 1rem;
    flex-shrink: 0;
    color: inherit;
}

.nav-footer {
    padding: .65rem .65rem 1rem;
    border-top: 1px solid #eaedf2;
}

.nav-user {
    margin-top: .35rem;
    padding-top: .5rem;
    border-top: 1px solid #eaedf2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
}

.nav-user-info {
    display: flex;
    flex-direction: column;
    padding: .3rem 0 .3rem .65rem;
    line-height: 1.25;
    min-width: 0;
}

.nav-user-info .nav-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-user-acciones {
    display: flex;
    gap: .25rem;
    flex-shrink: 0;
}

.nav-user-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    color: #5a6572;
    font-size: 1rem;
    text-decoration: none;
    transition: background .15s, color .15s;
}

.nav-user-btn:hover {
    background: #eef3fb;
    color: #0d6efd;
}

/* Menú colapsado: sin nombre/rol, y los dos íconos apilados y centrados. */
.nav-menu-root.is-collapsed .nav-user {
    flex-direction: column;
    justify-content: center;
    gap: .25rem;
}

.nav-menu-root.is-collapsed .nav-user-info {
    display: none;
}

.nav-menu-root.is-collapsed .nav-user-acciones {
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.nav-menu-root.is-collapsed .brand-text,
.nav-menu-root.is-collapsed .nav-label,
.nav-menu-root.is-collapsed .nav-chevron {
    display: none;
}

/* Menú colapsado: los subítems siguen visibles como iconos (tocar el grupo los muestra u oculta),
   para poder llegar a cualquier opción sin expandir el menú — clave en teléfonos. */
.nav-menu-root.is-collapsed .nav-subitems {
    padding-left: 0;
    background: #f7f9fc;
    border-radius: .55rem;
}

.nav-menu-root.is-collapsed .nav-subitems.is-closed {
    display: none;
}

.nav-menu-root.is-collapsed .nav-subitems .nav-item {
    justify-content: center;
    padding: .45rem .5rem;
}

.nav-menu-root.is-collapsed .nav-subitems .nav-icon {
    font-size: .92rem;
}

.nav-menu-root.is-collapsed .nav-group-header,
.nav-menu-root.is-collapsed .nav-item {
    justify-content: center;
}

.nav-menu-root.is-collapsed .nav-topbar {
    flex-direction: column;
    gap: .75rem;
}

/* Nombre del huésped como enlace para editar la reserva (lista de Reservas). */
.btn-nombre-huesped {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    cursor: pointer;
    text-align: left;
    text-decoration: none;
}

.btn-nombre-huesped:hover {
    text-decoration: underline;
}

/* Encabezado vistoso de cada opción en el builder de cotizaciones. */
.opcion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    background: linear-gradient(135deg, #f8fafc, #eef2ff);
    border-bottom: 1px solid #e5e7eb;
}

.opcion-header-main {
    display: flex;
    align-items: center;
    gap: .85rem;
    min-width: 0;
    flex: 1 1 260px;
}

.opcion-header-icon {
    width: 2.75rem;
    height: 2.75rem;
    flex-shrink: 0;
    border-radius: .9rem;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    background: linear-gradient(135deg, #5b96f8, #2f6fe0);
    box-shadow: 0 4px 12px rgba(47, 111, 224, 0.25);
}

.opcion-header-icon.c0 { background: linear-gradient(135deg, #5b96f8, #2f6fe0); box-shadow: 0 4px 12px rgba(47,111,224,.25); }
.opcion-header-icon.c1 { background: linear-gradient(135deg, #34d399, #059669); box-shadow: 0 4px 12px rgba(5,150,105,.25); }
.opcion-header-icon.c2 { background: linear-gradient(135deg, #fbbf24, #d97706); box-shadow: 0 4px 12px rgba(217,119,6,.25); }
.opcion-header-icon.c3 { background: linear-gradient(135deg, #a78bfa, #7c3aed); box-shadow: 0 4px 12px rgba(124,58,237,.25); }
.opcion-header-icon.c4 { background: linear-gradient(135deg, #f472b6, #db2777); box-shadow: 0 4px 12px rgba(219,39,119,.25); }

.opcion-header-text {
    min-width: 0;
    flex: 1 1 auto;
}

.opcion-nombre-input {
    border: 1px solid transparent;
    background: transparent;
    border-radius: .4rem;
    padding: .1rem .35rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
    width: 100%;
    max-width: 320px;
}

.opcion-nombre-input:hover {
    border-color: #d1d5db;
    background: #fff;
}

.opcion-nombre-input:focus {
    outline: none;
    border-color: #93c5fd;
    background: #fff;
    box-shadow: 0 0 0 .2rem rgba(59, 130, 246, .15);
}

.opcion-header-sub {
    font-size: .82rem;
    color: #6b7280;
    padding-left: .35rem;
    margin-top: .1rem;
}

.opcion-header-total {
    font-weight: 700;
    color: #1f6feb;
    margin-left: .35rem;
}

.opcion-header-actions {
    flex-shrink: 0;
}

/* Fotos del hotel (Configuración → Hoteles). */
.hotel-fotos-grid {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.hotel-foto-thumb {
    position: relative;
    width: 120px;
    height: 90px;
    border-radius: .5rem;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: #f8fafc;
}

.hotel-foto-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hotel-foto-quitar {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 1.5rem;
    height: 1.5rem;
    border: 0;
    border-radius: 50%;
    background: rgba(220, 38, 38, .9);
    color: #fff;
    font-size: .7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.hotel-foto-quitar:hover {
    background: #b91c1c;
}

.hotel-foto-add {
    width: 120px;
    height: 90px;
    border-radius: .5rem;
    border: 2px dashed #cbd5e1;
    color: #64748b;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .15rem;
    cursor: pointer;
    background: #f8fafc;
    transition: border-color .15s, color .15s;
}

.hotel-foto-add:hover {
    border-color: #93c5fd;
    color: #2563eb;
}

.hotel-foto-add.disabled {
    opacity: .6;
    cursor: default;
}

/* ------- Contenido ------- */
main {
    flex: 1;
    min-width: 0;
}

.content {
    max-width: 1600px;
    width: 100%;
}

/* ------- Tarjetas de métricas ------- */
.metric-card {
    background: #fff;
    border: 1px solid #e5e9f0;
    border-radius: .75rem;
    padding: 1rem 1.25rem;
    height: 100%;
}

.metric-card .metric-label {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #6c7a91;
    margin-bottom: .25rem;
}

.metric-card .metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1b2a4a;
}

.metric-card.money .metric-value {
    color: #1e7e46;
}

/* ------- Gráfica de barras (panel de cotizaciones) ------- */
.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: .5rem;
    height: 180px;
    padding-top: .5rem;
}

.chart-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    min-width: 0;
}

.chart-bar-track {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.chart-bar-fill {
    width: 60%;
    min-height: 3px;
    background: linear-gradient(180deg, #4d8cff, #0d6efd);
    border-radius: .3rem .3rem 0 0;
    transition: height .2s ease;
}

.chart-bar-label {
    font-size: .68rem;
    color: #6c7a91;
    margin-top: .35rem;
    white-space: nowrap;
}

/* ------- Tarjetas de estado (panel de cotizaciones) ------- */
.estado-card {
    border-radius: .75rem;
    padding: .85rem 1rem;
    height: 100%;
}

.estado-card .estado-value {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.1;
}

.estado-card .estado-label {
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-weight: 600;
    opacity: .85;
    margin-top: .15rem;
}

.estado-card.gray { background: #eef1f5; color: #5a6672; }
.estado-card.blue { background: #e8f0fe; color: #0d6efd; }
.estado-card.green { background: #e3f6ea; color: #1e7e46; }
.estado-card.red { background: #fdeaea; color: #c62839; }

/* ------- Filas de ranking (asesores / destinos) ------- */
.asesor-row {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .65rem 1.1rem;
    border-bottom: 1px solid #f0f2f6;
}

.asesor-row:last-child {
    border-bottom: none;
}

.asesor-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a78bfa, #7c3aed);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .82rem;
    flex-shrink: 0;
}

.asesor-avatar.sin-asesor {
    background: #c3cbd6;
}

.asesor-avatar.destino {
    background: linear-gradient(135deg, #4d8cff, #0d6efd);
    font-size: .95rem;
}

.asesor-info {
    flex: 1;
    min-width: 0;
}

.asesor-nombre {
    font-weight: 600;
    font-size: .86rem;
    margin-bottom: .3rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.asesor-bar {
    height: 6px;
    background: #f0f2f6;
    border-radius: 999px;
    overflow: hidden;
}

.asesor-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #a78bfa, #7c3aed);
    border-radius: 999px;
}

.asesor-bar-fill.destino {
    background: linear-gradient(90deg, #4d8cff, #0d6efd);
}

.asesor-count {
    font-weight: 700;
    font-size: 1rem;
    color: #1b2a4a;
    flex-shrink: 0;
}

/* ------- Varios ------- */
.card {
    border: 1px solid #e7eaf0;
    border-radius: .9rem;
    box-shadow: 0 1px 3px rgba(20, 30, 50, 0.04);
}

.card-header {
    background: #fff !important;
    border-bottom: 1px solid #eef1f5;
    padding: 1rem 1.35rem;
    font-size: 1.02rem;
}

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

.card-footer {
    background: #fff !important;
    border-top: 1px solid #eef1f5;
    padding: 1rem 1.35rem;
}

/* ------- Formularios elegantes ------- */
.form-label {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #7b8794;
    margin-bottom: .4rem;
}

.form-control,
.form-select {
    border: 1px solid #dde2ea;
    border-radius: .6rem;
    padding: .5rem .8rem;
    font-size: .9rem;
    color: #1f2d3a;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: #8fb8fb;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.12);
}

.form-control::placeholder {
    color: #b0b8c4;
}

.form-text {
    font-size: .8rem;
    color: #8a94a3;
}

.btn {
    border-radius: .6rem;
    font-weight: 600;
    font-size: .88rem;
    padding: .5rem 1.1rem;
}

.btn-primary {
    box-shadow: 0 1px 2px rgba(13, 110, 253, 0.18);
}

.btn-primary:hover {
    box-shadow: 0 3px 8px rgba(13, 110, 253, 0.28);
}

.form-section {
    padding-top: 1.35rem;
    margin-top: 1.35rem;
    border-top: 1px solid #eef1f5;
}

.form-section:first-of-type {
    padding-top: 0;
    margin-top: 0;
    border-top: none;
}

.form-section-title {
    display: flex;
    align-items: center;
    gap: .45rem;
    font-size: .74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #0d6efd;
    margin-bottom: 1rem;
}

.form-section-title i {
    font-size: .85rem;
}

.table > :not(caption) > * > * {
    vertical-align: middle;
}

.badge-libre {
    background-color: #d9f2e3;
    color: #1e7e46;
}

.badge-ocupada {
    background-color: #fde2e2;
    color: #b02a37;
}

/* ------- Listados modernos ------- */
.toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .6rem;
    margin-bottom: 1rem;
}

.search-box {
    position: relative;
    flex: 1 1 260px;
    max-width: 320px;
}

.search-box .bi-search {
    position: absolute;
    left: .8rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9aa5b1;
    font-size: .85rem;
    pointer-events: none;
}

.search-box input {
    padding-left: 2.2rem;
}

.filter-select {
    max-width: 190px;
}

.table-modern-wrap {
    background: #fff;
    border: 1px solid #eef1f5;
    border-radius: .85rem;
    overflow: hidden;
}

.table-modern {
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    min-width: 1150px;
}

.table-modern thead th {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #8a94a3;
    font-weight: 700;
    border-bottom: 1px solid #eef1f5;
    padding: .8rem 1rem;
    background: #fbfcfd;
    white-space: nowrap;
}

.table-modern tbody td {
    padding: .95rem 1.1rem;
    vertical-align: middle;
    border-bottom: 1px solid #f2f4f7;
    color: #32424e;
    font-size: .88rem;
    line-height: 1.4;
}

.table-modern tbody tr:last-child td {
    border-bottom: none;
}

.table-modern tbody tr:hover {
    background-color: #fafbfd;
}

/* Pills de estado */
.pill {
    display: inline-flex;
    align-items: center;
    padding: .28rem .65rem;
    border-radius: 999px;
    font-size: .74rem;
    font-weight: 700;
    white-space: nowrap;
}

.pill-blue { background: #e8f0fe; color: #0d6efd; }
.pill-green { background: #e3f6ea; color: #1e7e46; }
.pill-gray { background: #eef1f5; color: #5a6672; }
.pill-red { background: #fdeaea; color: #c62839; }
.pill-amber { background: #fff4dd; color: #97650f; }
.pill-purple { background: #f1e8fe; color: #7c3aed; }
.pill-teal { background: #dff7f3; color: #0f8a7a; }
.pill-indigo { background: #e8e9fc; color: #4338ca; }

/* Pasajero que se presentó a la salida: fila resaltada en verde. */
.fila-presente td { background: #e3f6ea !important; }

/* Reconexión de Blazor: pill discreta (abajo a la derecha) en vez de la pantalla gris completa.
   Solo se hace visible si el corte dura más de 3 s, para que los parpadeos breves no se noten. */
#components-reconnect-modal { display: none; }
#components-reconnect-modal.components-reconnect-show,
#components-reconnect-modal.components-reconnect-failed,
#components-reconnect-modal.components-reconnect-rejected {
    display: block;
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 2000;
    opacity: 0;
    animation: reconexion-aparecer .3s ease-in 3s forwards;
}
@keyframes reconexion-aparecer { to { opacity: 1; } }
.reconexion-pill {
    background: #1f2937;
    color: #fff;
    border-radius: 999px;
    padding: 8px 16px;
    font-size: .85rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
    display: flex;
    align-items: center;
    gap: 8px;
}
.reconexion-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, .35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: reconexion-girar .8s linear infinite;
}
@keyframes reconexion-girar { to { transform: rotate(360deg); } }
.pill-pink { background: #fce7f1; color: #be185d; }

/* Texto que hereda el color de la etiqueta del hotel (para diferenciar huéspedes por hotel) */
.text-hotel-blue { color: #0d6efd; }
.text-hotel-green { color: #1e7e46; }
.text-hotel-gray { color: #5a6672; }
.text-hotel-red { color: #c62839; }
.text-hotel-amber { color: #97650f; }
.text-hotel-purple { color: #7c3aed; }
.text-hotel-teal { color: #0f8a7a; }
.text-hotel-indigo { color: #4338ca; }
.text-hotel-pink { color: #be185d; }

/* Botones de acción compactos, tipo ícono */
.icon-actions {
    display: flex;
    gap: .3rem;
    justify-content: flex-end;
}

.btn-icon {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: .5rem;
    border: 1px solid #e3e7ed;
    background: #fff;
    color: #5a6672;
    font-size: .85rem;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.btn-icon:hover {
    background-color: #f4f6f9;
    color: #1f2d3a;
}

.btn-icon-success:hover { background-color: #e3f6ea; color: #1e7e46; border-color: #b9e6c9; }
.btn-icon-primary:hover { background-color: #e8f0fe; color: #0d6efd; border-color: #bcd6ff; }
.btn-icon-info:hover { background-color: #e6f6fb; color: #0f8fb5; border-color: #b7e6f2; }
.btn-icon-danger:hover { background-color: #fdeaea; color: #c62839; border-color: #f5c2c7; }

/* ------- Interfaz de error de Blazor ------- */
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* ------- Login ------- */
.login-body {
    height: 100%;
    display: flex;
    background-color: #f4f6f9;
}

.login-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.login-card {
    width: 100%;
    max-width: 360px;
    background: #ffffff;
    border: 1px solid #eaedf2;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(20, 30, 50, 0.06);
    padding: 2rem 1.75rem;
}

.login-logo {
    display: block;
    max-width: 240px;
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 0 auto 1rem;
}

.login-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: #e8f0fe;
    color: #0d6efd;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

/* ============ Calendario de habitaciones ============ */

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

.calendar-header-icon {
    width: 3rem;
    height: 3rem;
    flex-shrink: 0;
    border-radius: 1rem;
    background: linear-gradient(135deg, #5b96f8, #2f6fe0);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 4px 12px rgba(47, 111, 224, 0.25);
}

.calendar-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem 1.25rem;
    background: #fff;
    border: 1px solid #eef1f5;
    border-radius: .75rem;
    padding: .75rem 1.1rem;
    box-shadow: 0 1px 3px rgba(20, 30, 50, 0.04);
}

.calendar-legend-item {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .82rem;
    font-weight: 600;
    color: #4a5563;
}

.calendar-legend-dot {
    width: .7rem;
    height: .7rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.calendar-legend-dot-libre { background: #fff; border: 2px dashed #c3cbd6; }
.calendar-legend-dot-confirmada { background: linear-gradient(135deg, #5b96f8, #2f6fe0); }
.calendar-legend-dot-checkin { background: linear-gradient(135deg, #3fd08a, #159a5b); }
.calendar-legend-dot-checkout { background: linear-gradient(135deg, #f4716e, #d9364f); }

.calendar-hotel-card .card-header {
    padding: .9rem 1.25rem;
}

.calendar-wrap {
    background: #fff;
    border-radius: 0 0 .9rem .9rem;
    overflow-x: auto;
    overflow-y: hidden;
}

.calendar-table {
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    width: max-content;
}

.calendar-room-col {
    position: sticky;
    left: 0;
    z-index: 2;
    width: 172px;
    min-width: 172px;
    max-width: 172px;
    background: #fff;
    padding: .85rem 1.1rem;
    border-right: 2px solid #eef1f5;
    border-bottom: 1px solid #f2f4f7;
    text-align: left;
    vertical-align: middle;
    box-shadow: 2px 0 4px rgba(20, 30, 50, 0.02);
}

.calendar-room-col .fw-semibold {
    font-size: .95rem;
    color: #223040;
}

thead .calendar-room-col {
    z-index: 3;
    background: #fbfcfd;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #8a94a3;
    font-weight: 700;
    padding: .85rem 1.1rem;
}

.calendar-th-day {
    width: 80px;
    min-width: 80px;
    max-width: 80px;
    padding: .7rem .25rem;
    text-align: center;
    background: #fbfcfd;
    border-bottom: 1px solid #eef1f5;
    border-left: 1px solid #f5f7fa;
}

.calendar-th-dow {
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #8a94a3;
    font-weight: 700;
}

.calendar-th-num {
    font-size: 1.1rem;
    font-weight: 800;
    color: #32424e;
    margin-top: .1rem;
}

.calendar-th-day.calendar-col-today {
    background: #e3edff;
    box-shadow: inset 0 -3px 0 #2f6fe0;
}

.calendar-th-day.calendar-col-today .calendar-th-dow,
.calendar-th-day.calendar-col-today .calendar-th-num {
    color: #0d6efd;
}

.calendar-th-day.calendar-col-weekend {
    background: #f7f5fb;
}

.calendar-table tbody tr:nth-child(even) .calendar-cell-libre {
    background-color: #fafbfd;
}

.calendar-table tbody tr:hover .calendar-room-col {
    background: #f5f9ff;
}

.calendar-cell-libre {
    width: 80px;
    min-width: 80px;
    max-width: 80px;
    height: 62px;
    border-left: 1px solid #f5f7fa;
    border-bottom: 1px solid #f2f4f7;
    cursor: pointer;
    transition: background-color .12s ease;
    position: relative;
}

.calendar-cell-libre::after {
    content: "+";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 300;
    color: #2f6fe0;
    opacity: 0;
    transition: opacity .12s ease;
}

.calendar-cell-libre:hover {
    background-color: #eaf2ff;
}

.calendar-cell-libre:hover::after {
    opacity: 1;
}

.calendar-cell-libre.calendar-col-today {
    background-color: #f5f9ff;
}

.calendar-cell-libre.calendar-col-weekend {
    background-color: #fbfaff;
}

.calendar-bar {
    height: 62px;
    padding: 0;
    border-bottom: 1px solid #f2f4f7;
    vertical-align: middle;
    cursor: default;
}

.calendar-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .4rem;
    height: 44px;
    margin: 0 .4rem;
    border-radius: .65rem;
    padding: 0 .7rem;
    color: #fff;
    font-size: .82rem;
    font-weight: 700;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(20, 30, 50, 0.16);
    transition: transform .12s ease, box-shadow .12s ease;
}

.calendar-bar:hover .calendar-bar-inner {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(20, 30, 50, 0.22);
}

.calendar-bar-huesped {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-bar-icons {
    display: flex;
    align-items: center;
    gap: .35rem;
    flex-shrink: 0;
    font-size: .82rem;
    opacity: .95;
}

.calendar-bar-confirmada .calendar-bar-inner {
    background: linear-gradient(135deg, #5b96f8, #2f6fe0);
}

.calendar-bar-checkin .calendar-bar-inner {
    background: linear-gradient(135deg, #3fd08a, #159a5b);
}

.calendar-bar-checkout .calendar-bar-inner {
    background: linear-gradient(135deg, #f4716e, #d9364f);
}

/* ===== Multi-tenant: banners de pago, pantalla de bloqueo y modo "ver como" ===== */

.banner-pago {
    border-left: 4px solid currentColor;
}

.pantalla-bloqueo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
}

.bloqueo-card {
    max-width: 480px;
    text-align: center;
    background: #fff;
    border: 1px solid #e6e9ee;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    box-shadow: 0 8px 24px rgba(16, 38, 73, 0.08);
}

.bloqueo-icono {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: #fde8e8;
    color: #c0392b;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.franja-suplantando {
    display: flex;
    align-items: center;
    background: #4c2a85;
    color: #fff;
    border-radius: 10px;
    padding: 0.55rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.franja-suplantando a {
    color: #ffd166;
    font-weight: 600;
    text-decoration: none;
}

.franja-suplantando a:hover {
    text-decoration: underline;
}

.pill-estado-pago-0 { background: #eef1f5; color: #5a6572; }   /* Sin fecha límite */
.pill-estado-pago-1 { background: #e6f7ed; color: #1d7a46; }   /* Al día */
.pill-estado-pago-2 { background: #fff4d6; color: #9a6c00; }   /* En aviso */
.pill-estado-pago-3 { background: #ffe3d6; color: #b34700; }   /* En gracia */
.pill-estado-pago-4 { background: #fde0e0; color: #b02a37; }   /* Bloqueada */
