:root {
    --web-primario: #1e6dff;
    --web-primario-oscuro: #0b3a75;
    --web-primario-claro: #e8f0ff;
    --web-acento: #ffc400;
    --web-acento-claro: #fff8dc;
    --web-texto: #1f2a44;
    --web-tenue: #5b6785;
    --web-fondo: #f4f7fc;
    --web-borde: #dfe6f3;
    --web-sombra: rgba(11, 58, 117, 0.1);
    --web-sombra-fuerte: rgba(11, 58, 117, 0.3);
    --web-foco: rgba(30, 109, 255, 0.15);
    --web-velo: rgba(11, 58, 117, 0.7);
    --web-degradado-inicio: rgba(30, 109, 255, 0.82);
    --web-degradado-fin: rgba(11, 58, 117, 0.88);
}

.webSec {
    max-width: 1000px;
    padding: 1em 0 2em;
    color: var(--web-texto);
}

.webSecTitulo {
    font-size: 2.2em;
    font-weight: 700;
    color: var(--web-primario-oscuro);
    padding-bottom: 0.4em;
    margin-bottom: 0.8em;
    border-bottom: 3px solid var(--web-acento);
}

.webSecIntro {
    font-size: 1.05em;
    color: var(--web-tenue);
    margin-bottom: 1.5em;
}

.webSecVacio {
    background: #fff;
    border-left: 4px solid var(--web-primario);
    border-radius: 6px;
    padding: 1.2em 1.5em;
    color: var(--web-tenue);
}

.webSecIndice {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px var(--web-sombra);
    padding: 1.2em 1.5em;
    margin-bottom: 2em;
}

.webSecIndiceTitulo {
    font-size: 1.2em;
    font-weight: 700;
    color: var(--web-primario-oscuro);
    margin-bottom: 0.6em;
}

.webSecIndiceLista {
    margin: 0;
    padding-left: 1.4em;
    columns: 2 320px;
    column-gap: 2em;
}

.webSecIndiceLista > li {
    padding: 0.15em 0;
    break-inside: avoid;
}

.webSecIndiceLista a {
    color: var(--web-primario);
    text-decoration: none;
}

.webSecIndiceLista a:hover {
    text-decoration: underline;
}

.webSecArticulo {
    background: #fff;
    border-top: 4px solid var(--web-primario);
    border-radius: 8px;
    box-shadow: 0 2px 10px var(--web-sombra);
    padding: 1.5em;
    margin-bottom: 1.5em;
    scroll-margin-top: 1em;
}

.webSecArticuloCabecera {
    border-bottom: 1px solid var(--web-borde);
    padding-bottom: 0.6em;
    margin-bottom: 1em;
}

.webSecArticuloTitulo {
    font-size: 1.6em;
    font-weight: 700;
    color: var(--web-primario-oscuro);
    margin-bottom: 0.3em;
}

.webSecArticuloDato {
    margin: 0;
    font-size: 0.9em;
    color: var(--web-tenue);
}

.webSecArticuloCuerpo {
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.webSecArticuloCuerpo img,
.webSecArticuloCuerpo iframe,
.webSecArticuloCuerpo video {
    max-width: 100%;
    height: auto;
}

.webSecArticuloCuerpo table {
    max-width: 100%;
}

.webSecVolver {
    display: inline-block;
    margin-top: 1em;
    color: var(--web-primario);
    text-decoration: none;
    font-weight: 600;
}

.webSecVolver:hover {
    color: var(--web-primario-oscuro);
}

.webSecGrupo {
    font-size: 1.2em;
    font-weight: 700;
    color: var(--web-primario-oscuro);
    background: var(--web-primario-claro);
    border-left: 4px solid var(--web-primario);
    border-radius: 4px;
    padding: 0.5em 0.9em;
    margin: 1.5em 0 1em;
}

.webSecDocumentos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 1em;
}

.webSecDocumento {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6em;
    min-height: 150px;
    padding: 1.2em 0.8em;
    background: #fff;
    border: 1px solid var(--web-borde);
    border-radius: 8px;
    text-align: center;
    color: var(--web-texto);
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.webSecDocumento:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px var(--web-sombra);
    color: var(--web-primario-oscuro);
}

.webSecDocumentoIcono {
    font-size: 2.8em;
    color: #d93025;
}

.webSecDocumentoNombre {
    font-size: 0.9em;
    font-weight: 600;
}

.webSecDesplegables {
    display: flex;
    flex-direction: column;
    gap: 0.6em;
}

.webSecDesplegable {
    background: #fff;
    border: 1px solid var(--web-borde);
    border-radius: 8px;
    overflow: hidden;
}

.webSecDesplegable[open] {
    border-color: var(--web-primario);
    box-shadow: 0 2px 10px var(--web-sombra);
}

.webSecDesplegableTitulo {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5em;
    padding: 0.8em 1.1em;
    font-weight: 700;
    color: var(--web-primario-oscuro);
    cursor: pointer;
    list-style: none;
}

.webSecDesplegableTitulo::-webkit-details-marker {
    display: none;
}

.webSecDesplegableTitulo::after {
    content: "\25BE";
    margin-left: auto;
    color: var(--web-primario);
    transition: transform 0.2s;
}

.webSecDesplegable[open] > .webSecDesplegableTitulo {
    background: var(--web-primario-claro);
}

.webSecDesplegable[open] > .webSecDesplegableTitulo::after {
    transform: rotate(180deg);
}

.webSecDesplegableDocente {
    flex-basis: 100%;
    font-weight: 400;
}

.webSecDesplegableCuerpo {
    padding: 0.8em 1.1em 1em;
}

.webSecDato {
    margin: 0 0 0.6em;
    padding: 0.6em 0.8em;
    border-left: 3px solid var(--web-borde);
    background: var(--web-fondo);
    border-radius: 4px;
}

.webSecDatoDirector {
    border-left-color: var(--web-acento);
    background: var(--web-acento-claro);
}

.webSecDatoTenue {
    font-size: 0.88em;
    color: var(--web-tenue);
}

.webSecContador {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.6em;
    padding: 0 0.4em;
    border-radius: 999px;
    background: var(--web-primario);
    color: #fff;
    font-size: 0.8em;
}

.webSecGrados {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.6em;
}

.webSecGrado {
    display: block;
    padding: 0.8em 1em;
    background: #fff;
    border: 1px solid var(--web-borde);
    border-radius: 8px;
    color: var(--web-primario-oscuro);
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.webSecGrado:hover {
    transform: translateY(-3px);
    border-color: var(--web-primario);
    box-shadow: 0 6px 16px var(--web-sombra);
    color: var(--web-primario);
}

.webSecVolverArriba {
    margin: 0 0 0.5em;
}

.webSecTarea {
    padding: 1em 0;
    border-bottom: 1px solid var(--web-borde);
}

.webSecTarea:last-child {
    border-bottom: none;
}

.webSecTareaTitulo {
    font-size: 1.2em;
    font-weight: 700;
    color: var(--web-primario-oscuro);
    margin-bottom: 0.3em;
}

.webSecDatosContacto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1em;
    margin-bottom: 1.5em;
}

.webSecDatoContacto {
    display: flex;
    align-items: flex-start;
    gap: 0.7em;
    margin: 0;
    padding: 1em 1.2em;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px var(--web-sombra);
}

.webSecDatoContacto > .bi {
    font-size: 1.4em;
    color: var(--web-primario);
}

.webNotificaciones {
    position: fixed;
    top: 1em;
    right: 1em;
    z-index: 1090;
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    max-width: min(420px, calc(100vw - 2em));
}

.webNotificacion {
    padding: 0.9em 1.2em;
    border-radius: 6px;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: opacity 0.4s;
}

.webNotificacionOk {
    background: #198754;
}

.webNotificacionError {
    background: #dc3545;
}

.webNotificacionSaliendo {
    opacity: 0;
}

.webCampoTrampa {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.webCal {
    font-size: 0.95em;
}

.webCalCabecera {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5em;
}

.webCalBarra {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.4em;
}

.webCalMes {
    font-weight: 700;
    text-transform: capitalize;
}

.webCalHoy {
    border: 1px solid var(--web-primario);
    border-radius: 999px;
    background: #fff;
    color: var(--web-primario);
    font-size: 0.85em;
    font-weight: 600;
    padding: 0.2em 0.9em;
}

.webCalHoy:hover {
    background: var(--web-primario);
    color: #fff;
}

.webCalBoton {
    border: none;
    background: transparent;
    color: var(--web-primario);
    font-size: 1.2em;
    padding: 0.2em 0.5em;
}

.webCalDias {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    text-align: center;
}

.webCalNombreDia {
    font-size: 0.8em;
    font-weight: 700;
    color: var(--web-tenue);
    padding: 0.3em 0;
}

.webCalDia {
    border: none;
    background: var(--web-fondo);
    padding: 0.4em 0;
    border-radius: 4px;
    color: var(--web-texto);
}

.webCalDiaVacio {
    visibility: hidden;
}

.webCalDiaHoy {
    outline: 2px solid var(--web-acento);
}

.webCalDiaEvento {
    background: var(--web-primario);
    color: #fff;
    font-weight: 700;
}

.webCalDiaElegido {
    background: var(--web-acento);
    color: var(--web-primario-oscuro);
}

.webCalLista {
    margin: 1em 0 0;
    padding: 0;
    list-style: none;
}

.webCalListaTitulo {
    font-weight: 700;
    margin: 1em 0 0.3em;
}

.webCalEvento {
    border-bottom: 1px solid var(--web-borde);
    padding: 0.4em 0;
}

.webCalEvento a {
    color: var(--web-texto);
    text-decoration: none;
}

.webCalEvento a:hover {
    color: var(--web-primario);
}

.webCalEventoFecha {
    display: block;
    font-size: 0.8em;
    color: var(--web-tenue);
}

.webCalVacio {
    color: var(--web-tenue);
    margin-top: 1em;
}
