@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;900&display=swap');

#controlador-calendario {
    font-family: 'Montserrat', sans-serif;
    max-width: 1200px;
    margin: 20px auto;
    background-color: #ffffff;
    color: #1a202c;
}

#boton-descargar-pdf {
    background-color: #cf102d;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    cursor: pointer;
    margin-bottom: 30px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
}

.layout-dos-niveles {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

#nivel-uno-calendario {
    width: 100%;
}

#contenedor-grillas {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

#nivel-dos-agenda {
    width: 100%;
    border-top: 3px dashed #cf102d;
    padding-top: 30px;
}

.titulo-agenda {
    color: #cf102d;
    font-weight: 900;
    font-size: 2em;
    margin: 0 0 30px 0;
    text-transform: uppercase;
}

.bloque-mes-agenda {
    margin-bottom: 25px;
    background: #f8fafc;
    padding: 20px;
    border-radius: 6px;
    border-left: 6px solid #cf102d;
    page-break-inside: avoid;
    break-inside: avoid;
}

.encabezado-mes-titulo {
    color: #cf102d;
    font-weight: 700;
    font-size: 1.1em;
    margin: 0 0 15px 0;
    letter-spacing: 1px;
}

.mes-grilla {
    border: 1px solid #e2e8f0;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    page-break-inside: avoid;
    break-inside: avoid;
}

.mes-grilla h3 {
    color: #cf102d;
    font-size: 0.9em;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    font-weight: 700;
}

.dias-semana, .dias-numeros {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
    font-size: 0.75em;
}

.dias-semana span {
    font-weight: 700;
    color: #cf102d;
    padding-bottom: 5px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 5px;
}

.dias-numeros span {
    padding: 5px 0;
    display: inline-block;
    width: 100%;
    box-sizing: border-box;
    border-radius: 4px;
}

.evento-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    text-decoration: none;
    color: inherit;
    padding: 6px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.evento-item:hover {
    background-color: #edf2f7;
}

.caja-color {
    width: 20px;
    height: 20px;
    margin-right: 15px;
    border-radius: 4px;
    flex-shrink: 0;
}

.info-evento {
    flex: 1;
}

.info-evento strong {
    color: #1a202c;
    font-size: 0.95em;
}

.info-evento span {
    color: #4a5568;
    font-size: 0.85em;
    display: block;
    margin-top: 2px;
}