.event-list {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

.event-item {
    display: grid;
    grid-template-columns: 1fr 2fr 1.5fr 2fr 1fr;
    gap: 20px;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.event-item:hover {
    background: #f8f9fa;
}

.event-header {
    background: #002466;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.85em;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid #001233;
}

.event-header:hover {
    background: #002466;
}

.month-divider {
    background: #1a3975;
    color: white;
    padding: 15px 20px;
    font-weight: bold;
    font-size: 1.1em;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
    position: relative;
    z-index: 90;
}

.month-divider:hover {
    background: #002466;
}

.month-divider:after {
    content: '';
    border: solid white;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
    margin-left: 10px;
}

.month-divider.expanded:after {
    transform: rotate(-135deg);
    margin-top: 4px;
}

.month-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.month-content.expanded {
    max-height: 2000px; /* Aumentado para acomodar más contenido */
    transition: max-height 0.5s ease-in;
}

.calendar-dropdown {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.calendar-dropdown.calendar-dropdown-open {
    max-height: none;
    opacity: 1;
    padding: 20px;
}

.calendar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.event-type {
    font-weight: 500;
    color: #002466;
}

.event-date {
    font-weight: 500;
    color: #002466;
}

/* Estilos para el scroll */
.event-list::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.event-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.event-list::-webkit-scrollbar-thumb {
    background: #4b19c0ff;
    border-radius: 4px;
}

.event-list::-webkit-scrollbar-thumb:hover {
    background: #3a14a0;
}

/* Estilos para móviles */
@media (max-width: 768px) {
    .event-item {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 15px;
    }

    .event-header {
        position: sticky;
        top: 0;
    }

    .event-item > div {
        padding: 5px 0;
    }

    .event-item > div:not(:empty):before {
        content: attr(data-label);
        font-weight: bold;
        display: inline-block;
        width: 120px;
    }
}
