/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    min-height: 100vh;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.header {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.header h1 {
    font-size: 1.5rem;
    font-weight: 600;
}

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

/* Navegación */
.nav {
    background-color: #34495e;
    border-bottom: 3px solid #3498db;
}

.nav .container {
    display: flex;
    gap: 0;
    overflow-x: auto;
}

.nav-link {
    color: #ecf0f1;
    text-decoration: none;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
}

.nav-link:hover {
    background-color: #2c3e50;
    color: #3498db;
}

.nav-link.active {
    background-color: #3498db;
    color: white;
    border-bottom-color: #2980b9;
}

/* Main content */
.main {
    flex: 1;
    padding: 2rem 0;
    min-height: calc(100vh - 120px);
}

/* Botones */
.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    line-height: 1.5;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

.btn-success {
    background-color: #27ae60;
    color: white;
}

.btn-success:hover {
    background-color: #229954;
}

.btn-warning {
    background-color: #f39c12;
    color: white;
}

.btn-warning:hover {
    background-color: #e67e22;
}

.btn-danger {
    background-color: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background-color: #c0392b;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

.btn-large {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
    display: block;
}

/* Alertas */
.alert {
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
    border-left: 4px solid;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left-color: #27ae60;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border-left-color: #e74c3c;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border-left-color: #f39c12;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left-color: #3498db;
}

/* Página de login */
.login-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.login-container {
    width: 100%;
    max-width: 400px;
}

.login-box {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h1 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.login-form .form-group {
    margin-bottom: 1rem;
}

.login-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #ecf0f1;
    color: #7f8c8d;
}

/* Formularios */
.form-group {
    margin-bottom: 1rem;
}

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

.form-section {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form-section h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #ecf0f1;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2c3e50;
}

input, select, textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Estadísticas del dashboard */
.stats-section {
    margin-bottom: 2rem;
}

.stats-section h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

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

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-left: 4px solid;
}

.stat-card.total {
    border-left-color: #34495e;
}

.stat-card.available {
    border-left-color: #27ae60;
}

.stat-card.occupied {
    border-left-color: #e74c3c;
}

.stat-card.cleaning {
    border-left-color: #f39c12;
}

.stat-card.maintenance {
    border-left-color: #95a5a6;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #7f8c8d;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Resumen rápido en rooms.php */
.stats-summary {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.summary-item {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    min-width: 120px;
    border-left: 4px solid;
}

.summary-item .count {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
}

.summary-item .label {
    font-size: 0.8rem;
    color: #7f8c8d;
    text-transform: uppercase;
}

/* Habitaciones */
.rooms-section {
    margin-bottom: 2rem;
}

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

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

.room-card {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.room-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.room-card.available {
    border-color: #27ae60;
    background-color: #e8f6f3;
}

.room-card.occupied {
    border-color: #e74c3c;
    background-color: #fdf2f2;
}

.room-card.cleaning {
    border-color: #f39c12;
    background-color: #fef9e7;
}

.room-card.maintenance {
    border-color: #95a5a6;
    background-color: #f8f9fa;
}

.room-number {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.room-type {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.room-status {
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Habitaciones pequeñas */
.rooms-grid-small {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.5rem;
}

.room-card-small {
    padding: 0.75rem;
    font-size: 0.9rem;
}

.room-card-small .room-number {
    font-size: 1.2rem;
}

/* Lista de habitaciones en rooms.php */
.rooms-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.room-item {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    border-left: 4px solid;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    align-items: center;
}

.room-main {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.room-number-large {
    font-size: 2rem;
    font-weight: bold;
    min-width: 80px;
}

.room-type-text {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.room-status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    color: white;
}

.room-status-badge.available {
    background-color: #27ae60;
}

.room-status-badge.occupied {
    background-color: #e74c3c;
}

.room-status-badge.cleaning {
    background-color: #f39c12;
}

.room-status-badge.maintenance {
    background-color: #95a5a6;
}

.guest-info {
    font-size: 0.9rem;
    color: #7f8c8d;
    line-height: 1.4;
}

.room-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 150px;
}

.status-form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.status-select {
    flex: 1;
    padding: 0.5rem;
    font-size: 0.8rem;
}

.quick-actions {
    display: flex;
    gap: 0.5rem;
}

/* Acciones rápidas */
.quick-actions {
    margin-bottom: 2rem;
}

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

.action-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.3s ease;
    border: 2px solid #ecf0f1;
    text-align: center;
}

.action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    border-color: #3498db;
}

.action-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.action-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.action-desc {
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Modales */
.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 999;
}

.modal-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #ecf0f1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #7f8c8d;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #ecf0f1;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Focus visible para accesibilidad */
*:focus-visible {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* ==============================================
   ESTILOS MODERNOS PARA EL DASHBOARD MEJORADO
   ============================================== */

/* Header mejorado */
.header-brand {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.header-subtitle {
    font-size: 0.85rem;
    color: #bdc3c7;
    font-weight: 300;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.header-time {
    text-align: right;
    font-size: 0.8rem;
    line-height: 1.2;
}

.header-time .time {
    font-weight: 600;
    font-size: 0.9rem;
}

.header-time .date {
    color: #bdc3c7;
    font-size: 0.75rem;
}

/* Dashboard header */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #ecf0f1;
}

.dashboard-title h2 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
    font-weight: 600;
}

.dashboard-subtitle {
    color: #7f8c8d;
    font-size: 0.95rem;
    margin: 0;
}

.dashboard-actions {
    display: flex;
    gap: 1rem;
}

/* Métricas modernas */
.metrics-section {
    margin-bottom: 3rem;
}

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

.metric-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border-left: 4px solid;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1));
    border-radius: 50%;
    transform: translate(50%, -50%);
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.metric-card.primary {
    border-left-color: #3498db;
}

.metric-card.success {
    border-left-color: #27ae60;
}

.metric-card.danger {
    border-left-color: #e74c3c;
}

.metric-card.warning {
    border-left-color: #f39c12;
}

.metric-card.secondary {
    border-left-color: #95a5a6;
}

.metric-card.info {
    border-left-color: #9b59b6;
}

.metric-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.metric-card.primary .metric-icon {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.metric-card.success .metric-icon {
    background: linear-gradient(135deg, #27ae60, #229954);
}

.metric-card.danger .metric-icon {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.metric-card.warning .metric-icon {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.metric-card.secondary .metric-icon {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
}

.metric-card.info .metric-icon {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.metric-content {
    flex: 1;
}

.metric-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.metric-label {
    color: #7f8c8d;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.metric-percentage {
    font-size: 0.8rem;
    color: #95a5a6;
    font-weight: 600;
}

.metric-status {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-status.high {
    background-color: #e74c3c;
    color: white;
}

.metric-status.medium {
    background-color: #f39c12;
    color: white;
}

.metric-status.low {
    background-color: #27ae60;
    color: white;
}

/* Secciones mejoradas */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-title h2 {
    color: #2c3e50;
    margin-bottom: 0.25rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.section-subtitle {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin: 0;
}

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

.view-toggles {
    display: flex;
    background: #f8f9fa;
    border-radius: 6px;
    padding: 0.25rem;
}

.toggle-btn {
    background: transparent;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.toggle-btn.active {
    background: white;
    color: #3498db;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Tarjetas de habitación modernas */
.room-card-modern {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    border: 2px solid #ecf0f1;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.room-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    transition: all 0.3s ease;
}

.room-card-modern.available::before {
    background: linear-gradient(90deg, #27ae60, #2ecc71);
}

.room-card-modern.occupied::before {
    background: linear-gradient(90deg, #e74c3c, #ec7063);
}

.room-card-modern.cleaning::before {
    background: linear-gradient(90deg, #f39c12, #f4d03f);
}

.room-card-modern.maintenance::before {
    background: linear-gradient(90deg, #95a5a6, #bdc3c7);
}

.room-card-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #3498db;
}

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

.room-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
}

.room-status-indicator i {
    font-size: 0.8rem;
}

.room-card-modern.available .room-status-indicator i {
    color: #27ae60;
}

.room-card-modern.occupied .room-status-indicator i {
    color: #e74c3c;
}

.room-card-modern.cleaning .room-status-indicator i {
    color: #f39c12;
}

.room-card-modern.maintenance .room-status-indicator i {
    color: #95a5a6;
}

.room-details {
    margin-bottom: 1rem;
}

.room-type {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.room-status-text {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.room-card-modern.available .room-status-text {
    color: #27ae60;
}

.room-card-modern.occupied .room-status-text {
    color: #e74c3c;
}

.room-card-modern.cleaning .room-status-text {
    color: #f39c12;
}

.room-card-modern.maintenance .room-status-text {
    color: #95a5a6;
}

.room-footer {
    display: flex;
    justify-content: flex-end;
}

.btn-icon {
    background: #f8f9fa;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7f8c8d;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-icon:hover {
    background: #3498db;
    color: white;
}

/* Vista de lista para habitaciones */
.rooms-list-view {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.rooms-list-view .room-card-modern {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 1.5rem;
}

.rooms-list-view .room-header {
    margin-bottom: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    min-width: 80px;
}

.rooms-list-view .room-details {
    flex: 1;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.rooms-list-view .room-footer {
    margin-left: auto;
}

/* Tarjetas de acciones rápidas modernas */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.action-card-modern {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    border: 2px solid #ecf0f1;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.action-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.action-card-modern:hover::before {
    transform: scaleX(1);
}

.action-card-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #3498db;
    text-decoration: none;
    color: inherit;
}

.action-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3498db, #2980b9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.action-content {
    flex: 1;
}

.action-content h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.action-content p {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.action-stats {
    display: flex;
    gap: 1rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #95a5a6;
}

.action-arrow {
    color: #bdc3c7;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.action-card-modern:hover .action-arrow {
    color: #3498db;
    transform: translateX(3px);
}

/* Sección de actividad */
.activity-section {
    margin-bottom: 3rem;
}

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

.activity-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 2px solid #ecf0f1;
    transition: all 0.3s ease;
}

.activity-card:hover {
    border-color: #3498db;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.activity-header {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #ecf0f1;
}

.activity-header h3 {
    color: #2c3e50;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.activity-content {
    text-align: center;
}

.activity-metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
}

.progress-ring {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: conic-gradient(#3498db 0%, #3498db var(--progress), #ecf0f1 var(--progress));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 0.5rem;
}

.progress-ring::before {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
}

.progress-value {
    position: relative;
    z-index: 1;
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
}

.attention-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.attention-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.attention-item.success {
    background: #d4edda;
    color: #155724;
}

.attention-item i {
    color: #f39c12;
    flex-shrink: 0;
}

.attention-item.success i {
    color: #27ae60;
}

/* Modal moderno */
.modal-modern {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay-modern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 999;
}

.modal-content-modern {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.modal-header-modern {
    padding: 1.5rem;
    border-bottom: 1px solid #ecf0f1;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: #f8f9fa;
}

.modal-title-section h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
}

.modal-subtitle {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.modal-close-modern {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #7f8c8d;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
}

.modal-close-modern:hover {
    color: #e74c3c;
}

.modal-body-modern {
    padding: 2rem;
}

.modal-footer-modern {
    padding: 1rem 1.5rem;
    border-top: 1px solid #ecf0f1;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    background: #f8f9fa;
}

/* Información de habitación en modal */
.room-info-modern {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.room-basic-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.info-item i {
    color: #3498db;
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.info-item div {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-item strong {
    color: #2c3e50;
    font-size: 0.9rem;
}

.info-item span {
    color: #7f8c8d;
    font-size: 0.95rem;
}

.status-badge-modern {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: white;
}

.status-badge-modern.available {
    background: #27ae60;
}

.status-badge-modern.occupied {
    background: #e74c3c;
}

.status-badge-modern.cleaning {
    background: #f39c12;
}

.status-badge-modern.maintenance {
    background: #95a5a6;
}

.checkin-info-modern {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
}

.checkin-header {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #ecf0f1;
}

.checkin-header h4 {
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.guest-details-modern {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.guest-info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: white;
    border-radius: 6px;
}

.guest-info-item.full-width {
    grid-column: 1 / -1;
}

.guest-info-item i {
    color: #3498db;
    font-size: 1rem;
    width: 16px;
    text-align: center;
}

.guest-info-item div {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.guest-info-item strong {
    color: #2c3e50;
    font-size: 0.85rem;
}

.guest-info-item span {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.status-actions-modern {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
}

.status-actions-modern h4 {
    color: #2c3e50;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
}

.status-buttons-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
}

.btn-status {
    padding: 0.75rem 1rem;
    border: 2px solid;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
}

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

.btn-status.available {
    border-color: #27ae60;
    color: #27ae60;
}

.btn-status.available:hover {
    background: #27ae60;
    color: white;
}

.btn-status.occupied {
    border-color: #e74c3c;
    color: #e74c3c;
}

.btn-status.occupied:hover {
    background: #e74c3c;
    color: white;
}

.btn-status.cleaning {
    border-color: #f39c12;
    color: #f39c12;
}

.btn-status.cleaning:hover {
    background: #f39c12;
    color: white;
}

.btn-status.maintenance {
    border-color: #95a5a6;
    color: #95a5a6;
}

.btn-status.maintenance:hover {
    background: #95a5a6;
    color: white;
}

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

/* Loading y estados */
.loading-spinner {
    text-align: center;
    padding: 2rem;
    color: #7f8c8d;
}

.loading-spinner i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.error-message {
    text-align: center;
    padding: 2rem;
    color: #e74c3c;
    background: #fdf2f2;
    border-radius: 8px;
}

.error-message i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Responsive para los nuevos estilos */
@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .metric-card {
        padding: 1rem;
    }
    
    .metric-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .metric-number {
        font-size: 1.8rem;
    }
    
    .quick-actions-grid {
        grid-template-columns: 1fr;
    }
    
    .action-card-modern {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .action-arrow {
        transform: rotate(90deg);
    }
    
    .activity-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .section-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .rooms-list-view .room-card-modern {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .rooms-list-view .room-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .guest-details-modern {
        grid-template-columns: 1fr;
    }
    
    .status-buttons-modern {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .modal-modern {
        width: 95%;
        margin: 1rem;
    }
    
    .modal-body-modern {
        padding: 1rem;
    }
    
    .header-info {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .header-time {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .metric-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .room-card-modern {
        padding: 1rem;
    }
    
    .room-number {
        font-size: 1.3rem;
    }
    
    .action-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .progress-ring {
        width: 60px;
        height: 60px;
    }
    
    .progress-ring::before {
        width: 45px;
        height: 45px;
    }
    
    .status-buttons-modern {
        grid-template-columns: 1fr;
    }
    
    .btn-status {
        flex-direction: row;
        justify-content: center;
    }
}