/* Variables de colores y fuentes */
:root {
    --primary-color: #d13108;
    --primary-dark: #a32505;
    --secondary-color: #6c757d;
    --background-color: #f8f9fa;
    --text-color: #333;
    --sidebar-width: 240px;
    --sidebar-collapsed-width: 80px;
    --header-height: 70px;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
}

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

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    overflow-x: hidden;
}

/* Layout principal */
.main-content {
    margin-left: var(--sidebar-width);
    padding: 20px;
    transition: margin-left 0.3s ease;
    min-height: 100vh;
    padding-top: calc(var(--header-height) + 20px);
}

body.sidebar-collapsed .main-content {
    margin-left: var(--sidebar-collapsed-width);
}

/* Header moderno */
.modern-header {
    position: fixed;
    top: 0;
    right: 0;
    left: var(--sidebar-width);
    height: var(--header-height);
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    padding: 0 30px;
    z-index: 999; /* Reducido para que esté por debajo del sidebar */
    transition: left 0.3s ease;
    display: flex;
    align-items: center;
}

body.sidebar-collapsed .modern-header {
    left: var(--sidebar-collapsed-width);
}

/* Asegurar que el sidebar tenga mayor z-index */
.sidebar {
    z-index: 1000;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    background-color: #2c3e50;
    overflow-y: auto;
    transition: width 0.3s ease, transform 0.3s ease;
}

.header-top {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-title h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.header-subtitle {
    font-size: 0.85rem;
    color: var(--secondary-color);
}

.header-controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Botones y controles */
.btn {
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

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

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

.btn-secondary {
    background-color: white;
    border: 1px solid #ddd;
    color: var(--text-color);
}

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

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-small {
    padding: 4px 10px;
    font-size: 0.85rem;
}

/* Tabs y navegación */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

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

/* Dashboard Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    text-align: center;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 10px;
}

.stat-card h3 {
    color: var(--secondary-color);
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
}

/* Tablas */
.table-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    padding: 20px;
    overflow-x: auto;
    margin-bottom: 20px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.data-table th, .data-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.data-table th {
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.data-table tr:hover {
    background-color: #f9f9f9;
}

/* Badges y Estados */
.status-badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-active {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
}

.status-inactive {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
}

/* Filtros y Buscadores */
.filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.search-input {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    width: 300px;
    font-size: 0.95rem;
}

.filter-select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: white;
    min-width: 150px;
}

/* Toggles */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
    margin-right: 10px;
    vertical-align: middle;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 22px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: var(--primary-color);
}

input:checked + .toggle-slider:before {
    transform: translateX(18px);
}

/* Modales */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 30px;
    border: none;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
}

.close:hover {
    color: var(--text-color);
}

/* Formularios en modal */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary-color);
    outline: none;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 30px;
}

/* Calendario */
.calendar-container {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-header-day {
    text-align: center;
    font-weight: 600;
    padding: 10px;
    color: var(--secondary-color);
}

.calendar-day {
    min-height: 100px;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.calendar-day:hover:not(.empty) {
    background-color: #fff9f8;
    border-color: var(--primary-color);
}

.calendar-day.today {
    background-color: #fff0ed;
    border: 1px solid var(--primary-color);
}

.day-number {
    font-weight: 600;
    margin-bottom: 5px;
}

.event-indicator {
    font-size: 0.75rem;
    background-color: rgba(209, 49, 8, 0.1);
    color: var(--primary-color);
    padding: 2px 5px;
    border-radius: 4px;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsivo */
@media (max-width: 768px) {
    .main-content {
        margin-left: 0;
        padding-top: 80px;
    }
    
    .modern-header {
        left: 0;
        padding: 0 20px;
    }
    
    .main-content.sidebar-collapsed {
        margin-left: 0;
    }
    
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .sidebar-overlay.mobile-open {
        display: block;
    }
    
    .sidebar-toggle {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: white;
        border: none;
        border-radius: 8px;
        font-size: 1.2rem;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        position: fixed;
        top: 15px;
        left: 20px;
        z-index: 101;
    }

    .filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-input {
        width: 100%;
    }
}

/* Estilos para el selector de cuarteles */
.cuartel-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #f8f9fa;
    padding: 5px 10px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.cuartel-selector label {
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
    margin: 0;
}

.cuartel-selector select {
    padding: 5px 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background-color: white;
    font-size: 0.9rem;
    color: #212529;
    cursor: pointer;
}

.cuartel-selector select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(209, 49, 8, 0.1);
}

/* Editable Cells */
.editable-cell {
    cursor: pointer;
    position: relative;
    transition: background-color 0.2s;
}

.editable-cell:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.editable-cell::after {
    content: "✎";
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    opacity: 0;
    color: #aaa;
    transition: opacity 0.2s;
}

.editable-cell:hover::after {
    opacity: 1;
}

/* Estilos para Reportes */
.report-header {
    margin-bottom: 20px;
    text-align: center;
}

.report-periodo {
    color: #6c757d;
    font-size: 0.9rem;
}

.report-placeholder {
    text-align: center;
    padding: 40px;
    color: #6c757d;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px dashed #dee2e6;
}

/* Estilos para Chequeos */
.tab-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-button {
    padding: 8px 16px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-weight: 500;
    color: #6c757d;
    transition: all 0.2s;
}

.tab-button:hover {
    color: var(--primary-color);
}

.tab-button.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.chequeos-tab-content {
    display: none;
}

.chequeos-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Estadísticas de Chequeos */
.estadisticas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.estadistica-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    text-align: center;
}

.estadistica-valor {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 10px 0;
}

.estadistica-descripcion {
    font-size: 0.85rem;
    color: #6c757d;
    margin: 0;
}

.estadistica-tabla {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.estadistica-tabla h4 {
    margin-bottom: 15px;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.estadistica-tabla table {
    width: 100%;
    border-collapse: collapse;
}

.estadistica-tabla th, .estadistica-tabla td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.elemento-estadistica {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.elemento-estadistica.negativo h5 {
    color: var(--danger-color);
}

.estado-elemento {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    margin-right: 5px;
    background-color: #f0f0f0;
}

.estado-positivo {
    color: var(--success-color);
    background-color: rgba(40, 167, 69, 0.1);
}

.estado-negativo {
    color: var(--danger-color);
    background-color: rgba(220, 53, 69, 0.1);
}

/* Mejoras específicas para el formulario de mensajes (AÑADIDO) */
.message-form-container {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    max-width: 800px;
    margin: 0 auto;
}

/* Sobre-escribe el margin-bottom general para inputs específicos de mensajes */
.message-form-container .form-group {
    margin-bottom: 1.5rem;
}

.message-form-container .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #495057;
    font-weight: 600;
}

.message-form-container .form-group input, 
.message-form-container .form-group select, 
.message-form-container .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 8px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.message-form-container .form-group input:focus, 
.message-form-container .form-group select:focus, 
.message-form-container .form-group textarea:focus {
    border-color: #d13108; /* Color BomberBot */
    box-shadow: 0 0 0 0.2rem rgba(209, 49, 8, 0.25);
    outline: 0;
}

/* Mejorar visualización de carga */
.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #d13108;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Card Styles */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.card-body {
    padding: 25px;
}

/* --- ESTILOS PANEL DE EMERGENCIA (NUEVO) --- */
.emergency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    padding: 20px;
}

.emergency-card {
    background: #EBEBEB;
    border: 1px solid #FA1E1E;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 160px;
}

.emergency-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(250, 30, 30, 0.3);
    background: #fff;
}

.emergency-icon {
    font-size: 3rem;
    margin-bottom: 10px;
    display: block;
}

.emergency-title {
    font-weight: bold;
    color: #333;
    font-size: 1rem;
}

/* --- ESTILOS SIDEBAR REDUCIDO --- */
.reduced-sidebar {
    width: 200px !important;
}

.reduced-sidebar .nav-group:not(.sidebar-footer) {
    display: none !important;
}

.reduced-sidebar .sidebar-logo {
    padding: 15px !important;
    text-align: center;
}

.reduced-sidebar .sidebar-logo img {
    max-width: 35px !important;
}

.reduced-sidebar .sidebar-logo h2 {
    font-size: 0.8rem !important;
    margin-top: 5px !important;
    line-height: 1.2;
}

/* Botón para minimizar sidebar reducido */
.reduced-sidebar .sidebar-toggle {
    position: absolute;
    top: 15px;
    right: 10px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 4px;
    color: white;
    width: 25px;
    height: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: background-color 0.2s;
}

.reduced-sidebar .sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
}

.notification-toggle-container {
    margin: 15px 0;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.notification-toggle-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #666;
    cursor: pointer;
}

.notification-toggle-label span {
    font-weight: 500;
}

/* Estilos para el sidebar reducido mejorado */
.cuartel-info-container {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.2);
    margin: 15px 0;
    padding: 15px 0;
}

.cuartel-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.cuartel-icon {
    font-size: 1.5rem;
}

.cuartel-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: white;
}

.notification-button-container {
    margin: 15px 0;
    text-align: center;
}

.btn-notification {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.btn-notification-inactive {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-notification-active {
    background-color: #28a745;
    color: white;
    border: 1px solid #28a745;
}

.btn-notification:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.logout-btn-sidebar {
    width: 100%;
    padding: 12px;
    background-color: rgba(220, 53, 69, 0.8);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
    margin-top: 10px;
}

.logout-btn-sidebar:hover {
    background-color: #dc3545;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Estilos específicos para el sidebar reducido */
.reduced-sidebar .nav-group {
    margin-bottom: 0;
}

.reduced-sidebar .nav-group-title {
    font-size: 0.8rem;
    padding: 10px 15px;
    color: rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 5px;
}

.reduced-sidebar .nav-item {
    padding: 12px 15px;
    border-radius: 6px;
    margin: 2px 10px;
    transition: all 0.2s;
}

.reduced-sidebar .nav-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.reduced-sidebar .nav-item.active {
    background-color: rgba(255, 255, 255, 0.15);
    border-left: 3px solid var(--primary-color);
}

.reduced-sidebar .nav-icon {
    font-size: 1.1rem;
    margin-right: 10px;
}

.reduced-sidebar .nav-text {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Estilos para sidebar reducido cuando está colapsado */
.reduced-sidebar.collapsed {
    width: var(--sidebar-collapsed-width) !important;
}

.reduced-sidebar.collapsed .nav-group:not(.sidebar-footer) {
    display: none !important;
}

.reduced-sidebar.collapsed .cuartel-info-container {
    display: none !important;
}

.reduced-sidebar.collapsed .sidebar-logo h2 {
    display: none !important;
}

.reduced-sidebar.collapsed .sidebar-logo img {
    max-width: 35px !important;
    margin: 0 auto;
}

.reduced-sidebar.collapsed .notification-button-container,
.reduced-sidebar.collapsed .logout-btn-sidebar {
    display: block !important;
    text-align: center;
}

.reduced-sidebar.collapsed .btn-notification,
.reduced-sidebar.collapsed .logout-btn-sidebar {
    width: 50px;
    height: 50px;
    padding: 0;
    border-radius: 50%;
    font-size: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 5px auto;
}

.reduced-sidebar.collapsed .btn-notification::before,
.reduced-sidebar.collapsed .logout-btn-sidebar::before {
    font-size: 1.2rem;
}

.reduced-sidebar.collapsed .btn-notification::before {
    content: "🔔";
}

.reduced-sidebar.collapsed .logout-btn-sidebar::before {
    content: "🚪";
}

.reduced-sidebar.collapsed .sidebar-footer {
    padding: 10px 5px;
}

.reduced-sidebar.collapsed .user-info-sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

/* Mejoras visuales para el sidebar reducido */
.reduced-sidebar .sidebar-logo {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.reduced-sidebar .sidebar-logo img {
    max-width: 40px;
}

.reduced-sidebar .sidebar-logo h2 {
    font-size: 1rem;
    margin-top: 8px;
}

.reduced-sidebar .sidebar-footer {
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animaciones para mensajes flotantes */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Modal de Alerta Roja (Recepción) */
.emergency-alert-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #D13108; /* Rojo BomberBot */
    z-index: 2000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    animation: pulseBackground 2s infinite;
}

@keyframes pulseBackground {
    0% { background-color: #D13108; }
    50% { background-color: #a32505; }
    100% { background-color: #D13108; }
}

.alert-content {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    max-width: 600px;
    width: 90%;
    box-shadow: 0 10px 50px rgba(0,0,0,0.5);
}

.alert-icon-large {
    font-size: 5rem;
    margin-bottom: 20px;
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.alert-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.alert-subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.response-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.btn-response {
    padding: 20px;
    border: none;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
    text-transform: uppercase;
    width: 100%;
}

.btn-response:hover {
    transform: scale(1.02);
}

.btn-asisto {
    background-color: #28a745;
    color: white;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

.btn-demorado {
    background-color: #ffc107;
    color: #333;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
}

.btn-no-asisto {
    background-color: #333;
    color: white;
    box-shadow: 0 4px 15px rgba(51, 51, 51, 0.4);
}

/* Botón único para usuarios con cargo "OTROS" */
.btn-response.btn-recibido {
    background-color: #17a2b8;
    color: white;
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.4);
    padding: 25px;
    font-size: 1.5rem;
}

.btn-response.btn-recibido:hover {
    background-color: #138496;
    transform: scale(1.05);
}

/* Modal de Formulario de Emergencia */
.emergency-form-modal {
    /* Hereda estilos de modal base */
}
