/* Estilos para la sección y tarjetas de eventos */
.events-section {
    padding: 60px 20px;
    background-color: #f8f9fa; /* Un fondo ligeramente gris para diferenciar la sección */
}

.events-section h2,
.events-section h3.section-title {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--color-primary);
}

.events-section h2 {
    font-size: 2.5em;
    margin-bottom: 40px;
}

.events-section h3.section-title {
    font-size: 1.8em;
    margin-top: 40px; /* Espacio entre Próximos y Pasados */
    margin-bottom: 30px;
    border-bottom: 2px solid var(--color-primary);
    display: inline-block;
    padding-bottom: 10px;
}

.events-container {
    max-width: 900px;
    margin: 0 auto;
}

.event-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-left: 5px solid var(--color-primary);
    border-radius: 8px;
    display: flex;
    flex-direction: row;
    align-items: center; /* Alinear verticalmente */
    margin-bottom: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    overflow: hidden; /* Para que los bordes redondeados funcionen bien */
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.event-date {
    background-color: #4C4E42;
    color: white;
    text-align: center;
    padding: 20px;
    align-self: stretch; /* Ocupar toda la altura */
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 100px;
    margin-right: 25px;
}

.event-date .day {
    font-size: 2.5em;
    font-weight: 700;
    display: block;
    line-height: 1;
}

.event-date .month {
    font-size: 1.2em;
    text-transform: uppercase;
    font-weight: 500;
}

.event-info {
    flex-grow: 1;
    padding: 15px 10px 15px 0;
}

.event-info h3.event-title {
    margin: 0 0 10px 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4em;
    color: var(--color-primary);
    text-align: left;
    border-bottom: none;
    display: block;
}

.event-info p {
    margin: 5px 0;
    color: #555;
    font-family: 'Roboto', sans-serif;
    display: flex;
    align-items: center;
}

.event-info p i {
    margin-right: 10px;
    color: var(--color-primary);
    width: 16px; /* Ancho fijo para alinear iconos */
    text-align: center;
}

.event-action {
    padding: 20px;
    text-align: center;
}

/* Estilo para eventos pasados */
.event-card.past {
    opacity: 0.75;
    border-left-color: #aaa;
    box-shadow: none;
}

.event-card.past:hover {
    transform: none;
    box-shadow: none;
}

.event-card.past .event-date {
    background-color: #999;
}

.event-card.past .event-info p i {
    color: #999;
}

.finalizado-text {
    font-style: italic;
    color: #777;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .event-card {
        flex-direction: column;
        align-items: stretch;
    }

    .event-date {
        margin-right: 0;
        margin-bottom: 15px;
        border-radius: 8px 8px 0 0;
    }

    .event-info {
        padding: 0 15px;
    }

    .event-action {
        padding-top: 15px;
    }
}
