/* ---------- Layout ---------- */

.agenda-layout{

    display:grid;

    grid-template-columns:1fr 300px;

    gap:24px;

}

.agenda-panel{

    background:#f6f6f6;

    border:1px solid #ddd;

    border-radius:14px;

    padding:20px;

    position:sticky;

    top:20px;

    height:fit-content;

}

/* ---------- Selector ---------- */

.agenda-top{

    display:flex;

    justify-content:flex-start;

    margin-bottom:18px;

}

#agenda-grado{

    width:190px;

    height:52px;

    padding:0 16px;

    border-radius:12px;

    border:1px solid #d0d0d0;

    background:#fff;

    font-size:15px;

    font-weight:600;

}

/* ---------- Calendario ---------- */

.fc-daygrid-day{

    min-height:120px;

}

.fc-day-today{

    background:#fffce6!important;

}

.fc-h-event {
    background-color: transparent;
	margin: 5px;
}

.fc-daygrid-event {
    border-radius: 0px 0px 5px 0px;
}


/* ---------- Contador ---------- */

.agenda-contador{

    margin-left:auto;

    background:#2E2D6F;

    color:white;

    width:22px;

    height:22px;

    border-radius:50%;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:11px;

    font-weight:bold;

}

/* ---------- Evento pequeño ---------- */

.agenda-evento{
    background:#ececec;
    border-left:4px solid #DFDC04;
    border-radius:0px 5px 5px 0px;
    padding:5px 7px;
    margin-bottom:0px;
    white-space:normal;
    word-break:break-word;
}

.agenda-titulo{
    color:#2E2D6F;
    font-size:12px;
    font-weight:700;
    line-height:1.25;
}

/* ---------- Panel ---------- */

.agenda-panel-header h3{

    margin:0;

    color:#2E2D6F;

}

#agenda-fecha{

    font-size:13px;

    color:#777;

}

.agenda-card{

    display:block;

    background:white;

    border-left:6px solid #DFDC04;

    border-radius:0 8px 8px 0;

    padding:12px;

    margin-top:12px;

    text-decoration:none;

    transition:.2s;

}

.agenda-card:hover{

    transform:translateX(4px);

    background:#f9f9f9;

}

.agenda-card-title{

    color:#2E2D6F;

    font-weight:700;

}

.agenda-card-author{

    color:#777;

    font-size:12px;

}



/* ---------- Responsive ---------- */

@media(max-width:900px){

    .agenda-layout{

        grid-template-columns:1fr;

    }

    .agenda-panel{

        position:static;

        order:2;

    }

    .fc-daygrid-day{

        min-height:85px;

    }

}

#agenda-calendario{
    min-width:0;
}

.agenda-panel{
    display:flex;
    flex-direction:column;
    gap:14px;
    min-height:500px;
}

.agenda-vacio{
    color:#777;
    margin-top:20px;
    text-align:center;
}


.agenda-layout{
    display:grid;
    grid-template-columns:minmax(0,1fr) 320px;
    gap:24px;
    align-items:start;
}

#agenda-calendario{
    min-width:0;
}

.agenda-panel{
    display:block;
    background:#f6f6f6;
    border:1px solid #ddd;
    border-radius:14px;
    padding:20px;
    position:sticky;
    top:20px;
    min-height:420px;
}

.agenda-dia-activo{
    outline:2px solid #2E2D6F;
    outline-offset:-2px;
}





@media (max-width:900px){

    .agenda-layout{
        grid-template-columns:1fr;
    }

    .agenda-panel{
        position:static;
        margin-top:16px;
    }

    /* Celdas más limpias */
    .fc-daygrid-day{
        min-height:64px;
    }

    /* Ocultar completamente los títulos dentro del calendario */
    .fc-daygrid-event,
    .agenda-evento{
        display:none !important;
    }

    /* Mantener visible el contador */
    .agenda-contador{
        width:20px;
        height:20px;
        font-size:11px;
    }

    /* Dar más aire al número del día */
    .fc-daygrid-day-number{
        font-size:14px;
        font-weight:600;
        padding:6px;
    }
}