/* CCHotel - Estilos Globales, Tipografía y Responsive */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --color-primary: #1E3A8A; /* Azul Corporativo */
    --color-primary-dark: #1E293B;
    --status-libre: #10B981;
    --status-ocupada: #EF4444;
    --status-pendiente: #F59E0B;
    --status-mantenimiento: #8B5CF6;
    --status-sucia: #EC4899;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    line-height: 1.45;
}

/* Evitar desbordamientos y cortes de palabras extraños */
* {
    box-sizing: border-box;
}

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

/* Scrollbar estilizado para recepción */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #F1F5F9;
}
::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94A3B8;
}

/* Scrollbar oscuro para barra lateral */
#sidebar-panel ::-webkit-scrollbar-track {
    background: #0f172a;
}
#sidebar-panel ::-webkit-scrollbar-thumb {
    background: #334155;
}
#sidebar-panel ::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Badges de Estado Hotelero */
.badge-status-0 { /* Limpia / Libre */
    background-color: #ECFDF5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}
.badge-status-1 { /* Sucia */
    background-color: #FDF2F8;
    color: #9D174D;
    border: 1px solid #FBCFE8;
}
.badge-status-2 { /* Ocupada */
    background-color: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FECACA;
}
.badge-status-3 { /* Averiada / Mantenimiento */
    background-color: #F5F3FF;
    color: #5B21B6;
    border: 1px solid #DDD6FE;
}

/* Animaciones de Transición */
.fade-in {
    animation: fadeIn 0.18s ease-in-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Toasts flotantes */
.toast-slide-in {
    animation: slideInRight 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Cuadrícula de Planning */
.planning-cell {
    transition: all 0.15s ease-in-out;
}
.planning-cell:hover {
    filter: brightness(0.95);
    cursor: pointer;
}

/* Estilos de impresión para facturas y listados */
@media print {
    nav, header, footer, .no-print {
        display: none !important;
    }
    body {
        background: white !important;
        color: black !important;
    }
    .print-full-width {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}
