/* CSS Proximas Actividades - Estilo CENDI */

.modulo-proximas-actividades {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background-color: #F7F7F7;
    padding: 80px 0;
}

.proximas-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* Columna Izquierda: Lista */
.actividades-lista-col {
    flex: 2;
    min-width: 0;
}

.actividades-lista-container {
    position: relative;
    width: 100%;
}

.actividades-lista-box {
    background: #fdf6d6;
    padding: 10px 30px;
    border-radius: 12px;
    border: 1px solid #fee6b4;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    max-height: 480px;
    /* Altura para mostrar ~3 actividades */
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #3185cb #fdf6d6;
}

/* Personalización Scrollbar */
.actividades-lista-box::-webkit-scrollbar {
    width: 8px;
}

.actividades-lista-box::-webkit-scrollbar-track {
    background: #fdf6d6;
}

.actividades-lista-box::-webkit-scrollbar-thumb {
    background: #3185cb;
    border-radius: 10px;
}

.activity-row {
    display: flex;
    gap: 25px;
    padding: 25px 0;
    border-bottom: 1px dashed #a2825c;
    transition: background 0.3s ease, transform 0.3s ease;
    scroll-margin-top: 20px;
}

.activity-row:last-child {
    border-bottom: none;
}

/* Efecto Pulso */
@keyframes pulseHighlight {
    0% {
        transform: scale(1);
        background: rgba(49, 133, 203, 0);
    }

    50% {
        transform: scale(1.02);
        background: rgba(49, 133, 203, 0.1);
    }

    100% {
        transform: scale(1);
        background: rgba(49, 133, 203, 0);
    }
}

.activity-row.highlight-pulse {
    animation: pulseHighlight 0.8s ease-in-out 2;
    border-radius: 8px;
}

.activity-date-badge {
    background: #3185cb;
    color: #fff;
    padding: 12px;
    border-radius: 8px;
    min-width: 70px;
    height: 70px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.activity-date-badge .day {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    font-family: 'Lato', sans-serif;
}

.activity-date-badge .month {
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
}

.activity-info h4 {
    margin: 0 0 8px 0;
    font-size: 24px;
    color: #3185cb;
    font-family: 'Lobster Two', cursive;
}

.activity-info p {
    margin: 0;
    font-size: 16px;
    color: #a2825c;
    line-height: 1.5;
}

/* Calendario Estilos */
.calendario-col {
    flex: 1;
    min-width: 320px;
}

.calendar-card {
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    border: 1px solid #fee6b4;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.calendar-title {
    font-family: 'Lobster Two', cursive;
    font-size: 28px;
    text-align: center;
    color: #3185cb;
    margin-bottom: 20px;
}

.calendar-card table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 5px;
}

.calendar-card th {
    font-family: 'Lobster Two', cursive;
    color: #a2825c;
    font-size: 16px;
    padding: 10px 0;
    text-align: center;
}

.calendar-card td {
    width: 40px;
    height: 40px;
    text-align: center;
    vertical-align: middle;
    color: #a2825c;
    font-size: 15px;
    border-radius: 8px;
    position: relative;
    cursor: default;
}

.calendar-card td.today {
    background: #fdf6d6;
    font-weight: bold;
}

/* Marcadores de Eventos */
.event-marker-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.marker-single {
    background: #3185cb;
    color: #fff;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.marker-single:hover {
    transform: scale(1.1);
}

/* Efecto Cascada */
.marker-cascade {
    width: 100%;
    height: 100%;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s;
}

.marker-cascade:hover {
    transform: scale(1.1);
}

.marker-cascade span {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.marker-cascade .m1 {
    background: #fee6b4;
    top: -6px;
    right: -6px;
    z-index: 1;
}

.marker-cascade .m2 {
    background: #ffdb5e;
    top: -3px;
    right: -3px;
    z-index: 2;
}

.marker-cascade .m-text {
    background: #3185cb;
    color: #fff;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    top: 0;
    right: 0;
}

/* Estilos de No Actividades */
.no-activities {
    text-align: center;
    padding: 40px 0;
    color: #a2825c;
}

.no-activities i {
    font-size: 50px;
    opacity: 0.3;
    margin-bottom: 15px;
    display: block;
}

/* Responsividad */
@media (max-width: 1024px) {
    .proximas-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .actividades-lista-col,
    .calendario-col {
        width: 100%;
        max-width: 800px;
    }
}

@media (max-width: 480px) {
    .activity-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }

    .calendar-card {
        padding: 15px 10px;
    }

    .calendar-card td,
    .calendar-card th {
        font-size: 13px;
        width: 35px;
        height: 35px;
    }

    .marker-cascade .m1 {
        top: -4px;
        right: -4px;
    }

    .marker-cascade .m2 {
        top: -2px;
        right: -2px;
    }
}