/* =========================
   CALENDARIO PREMIUM
========================== */

#calendario {

    position: relative;

    overflow: hidden;

    padding: 120px 40px;

    background:
        linear-gradient(
            135deg,
            rgba(4,10,18,0.96),
            rgba(15,35,58,0.94)
        ),
        url('../images/back-nosotros.jpg');

    background-size: cover;
    background-position: center;
    background-attachment: fixed;

}

/* EFECTO LUZ */

#calendario::before {

    content: '';

    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at top left,
            rgba(45,140,255,0.18),
            transparent 35%
        );

}

/* CONTENEDOR */

.calendar-wrapper {

    position: relative;
    z-index: 2;

    max-width: 1400px;

    margin: auto;

    display: grid;

    grid-template-columns: 1fr 0.7fr;

    gap: 40px;

    align-items: start;

}

/* CARDS */

.calendar-card,
.events-card {

    background: rgba(255,255,255,0.08);

    backdrop-filter: blur(14px);

    border: 1px solid rgba(255,255,255,0.08);

    border-radius: 32px;

    padding: 40px;

    box-shadow:
        0 25px 50px rgba(0,0,0,0.25),
        0 10px 20px rgba(0,0,0,0.15);

}

/* HEADER */

.calendar-header {

    display: flex;

    align-items: center;
    justify-content: space-between;

    margin-bottom: 35px;

}

.calendar-header h2 {

    color: white;

    font-size: 36px;

    font-family: 'Playfair Display', serif;

}

/* BOTONES */

.calendar-header button {

    width: 52px;
    height: 52px;

    border-radius: 50%;

    border: none;

    background: rgba(45,140,255,0.18);

    color: white;

    font-size: 18px;

    cursor: pointer;

    transition: .3s ease;

}

.calendar-header button:hover {

    background: #2D8CFF;

    transform: scale(1.08);

}

/* DIAS */

.weekdays {

    display: grid;

    grid-template-columns: repeat(7, 1fr);

    gap: 12px;

    margin-bottom: 20px;

}

.weekdays div {

    text-align: center;

    color: rgba(255,255,255,0.65);

    font-size: 14px;

    font-weight: 600;

    letter-spacing: 1px;

    text-transform: uppercase;

}

/* CALENDARIO */

#calendar {

    display: grid;

    grid-template-columns: repeat(7, 1fr);

    gap: 12px;

}

/* DIAS DEL CALENDARIO */

.day {

    aspect-ratio: 1;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 16px;

    background: rgba(255,255,255,0.04);

    color: white;

    font-weight: 500;

    transition: .3s ease;

    cursor: pointer;

}

.day:hover {

    background: rgba(45,140,255,0.3);

    transform: translateY(-3px);

}

/* DIA ACTIVO */

.day.active {

    background: #2D8CFF;

    box-shadow:
        0 10px 25px rgba(45,140,255,0.35);

}

/* EVENTOS */

.events-card h3 {

    color: white;

    font-size: 32px;

    margin-bottom: 30px;

    font-family: 'Playfair Display', serif;

}

/* LISTA EVENTOS */

#eventList {

    list-style: none;

    display: flex;
    flex-direction: column;

    gap: 18px;

}

#eventList li {

    background: rgba(255,255,255,0.05);

    border: 1px solid rgba(255,255,255,0.05);

    border-radius: 18px;

    padding: 18px 22px;

    color: rgba(255,255,255,0.82);

    line-height: 1.7;

    transition: .3s ease;

}

#eventList li:hover {

    background: rgba(45,140,255,0.12);

    transform: translateX(6px);

}

/* RESPONSIVE */

@media(max-width: 992px){

    .calendar-wrapper {

        grid-template-columns: 1fr;

    }

}

@media(max-width: 768px){

    #calendario {

        padding: 90px 20px;

    }

    .calendar-card,
    .events-card {

        padding: 28px;

    }

    .calendar-header h2 {

        font-size: 28px;

    }

    .events-card h3 {

        font-size: 28px;

    }

}
/* =========================
   DIAS CON EVENTO
========================== */

.event-day {

    position: relative;

    background:
        linear-gradient(
            135deg,
            #2D8CFF,
            #56B2FF
        );

    color: white;

    font-weight: 700;

    box-shadow:
        0 10px 25px rgba(45,140,255,0.35);

}

/* PUNTO INDICADOR */

.event-day::after {

    content: '';

    position: absolute;

    bottom: 8px;

    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: white;

}

/* HOVER */

.event-day:hover {

    transform: translateY(-4px) scale(1.05);

}

/* TOOLTIP */

.event-day::before {

    content: attr(data-event);

    position: absolute;

    bottom: 110%;

    left: 50%;

    transform: translateX(-50%);

    background: rgba(0,0,0,0.9);

    color: white;

    padding: 10px 14px;

    border-radius: 12px;

    font-size: 13px;

    white-space: nowrap;

    opacity: 0;

    pointer-events: none;

    transition: .3s ease;

}

.event-day:hover::before {

    opacity: 1;

}