/* Estilos para el Calendario de Eventos */

#calendario-section {
    background: #f8f9fa;
    padding: 60px 0;
}

#calendario-eventos {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Personalización de FullCalendar */
.fc {
    font-family: 'Poppins', sans-serif;
}

.fc .fc-toolbar-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a4b8c;
}

.fc .fc-button {
    background-color: #1a4b8c;
    border-color: #1a4b8c;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
    text-transform: capitalize;
}

.fc .fc-button:hover {
    background-color: #2a6eda;
    border-color: #2a6eda;
}

.fc .fc-button:disabled {
    opacity: 0.5;
}

.fc .fc-button-primary:not(:disabled):active,
.fc .fc-button-primary:not(:disabled).fc-button-active {
    background-color: #ff9900;
    border-color: #ff9900;
}

.fc-daygrid-day-number {
    color: #333;
    font-weight: 500;
}

.fc-day-today {
    background-color: rgba(26, 75, 140, 0.05) !important;
}

.fc-day-today .fc-daygrid-day-number {
    background-color: #1a4b8c;
    color: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fc-event {
    cursor: pointer;
    border-radius: 4px;
    padding: 2px 4px;
    font-size: 0.85rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.fc-event-title {
    font-weight: 500;
}

/* Modal de Detalle de Evento */
.evento-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.evento-modal-overlay.active {
    opacity: 1;
}

.evento-modal {
    background: white;
    border-radius: 20px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.evento-modal-overlay.active .evento-modal {
    transform: scale(1);
}

.evento-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.3s;
}

.evento-modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

.evento-modal-imagen {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.evento-modal-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.evento-modal-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(255, 165, 0, 0.4);
}

.evento-modal-badge i {
    margin-right: 6px;
}

.evento-modal-body {
    padding: 30px;
}

.evento-modal-body h2 {
    color: #1a4b8c;
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.evento-modal-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.evento-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.95rem;
}

.evento-info-item i {
    color: #1a4b8c;
    font-size: 1.1rem;
    width: 20px;
}

.evento-modal-descripcion {
    margin-bottom: 25px;
    line-height: 1.6;
    color: #444;
}

.evento-modal-acciones {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-modal-accion {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 0.95rem;
}

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

.btn-pdf:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.btn-enlace {
    background: #1a4b8c;
    color: white;
}

.btn-enlace:hover {
    background: #2a6eda;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 75, 140, 0.3);
}

/* Leyenda de colores */
.calendario-leyenda {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
    padding: 20px;
    background: white;
    border-radius: 10px;
}

.leyenda-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #666;
}

.leyenda-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .evento-modal {
        max-width: 95%;
        margin: 10px;
    }

    .evento-modal-imagen {
        height: 200px;
    }

    .evento-modal-body {
        padding: 20px;
    }

    .evento-modal-body h2 {
        font-size: 1.4rem;
    }

    .evento-modal-info {
        flex-direction: column;
        gap: 10px;
    }

    .evento-modal-acciones {
        flex-direction: column;
    }

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

    .fc .fc-toolbar {
        flex-direction: column;
        gap: 10px;
    }

    .fc .fc-toolbar-chunk {
        display: flex;
        justify-content: center;
    }

    .calendario-leyenda {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Animación de scroll suave */
@media (prefers-reduced-motion: no-preference) {
    .evento-modal-overlay {
        scroll-behavior: smooth;
    }
}
