*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
}

html, body{
    overflow-x: hidden;
}

body.menu-abierto,
html:has(body.menu-abierto),
html.modal-abierto,
html.modal-abierto body{
    overflow: hidden;
}

header{
    background-color: #2a2a40;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: -2px 10px 27px -8px rgba(0,0,0,0.75);
    border-bottom: #eeb53c 3px solid;
}

.header-pro{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

#logo{
    display: flex;
    flex-direction: row;
    justify-content: center;
    background-color: #2a2a40;
    margin-top: 5px;
    margin-left: 10px;
    padding-bottom: 5px;
    color: #fff;
}

#logo img{
    width: 60px;
    margin-top: 5px;
    height: auto;
}

#nombre-escuela{
    margin-left: 8px;
    padding-top: 20px;
}

#subtitulo{
    font-size: 11px;
}

#titulo{
    font-size: 15px;
}

nav{
    min-height: 100px;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

nav ul{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    max-width: 1000px;
    width: 100%;
}

nav ul li{
    margin: auto 0 auto 5px;
    font-size: 20px;
    text-decoration: none;
    position: relative;
    transition: 0.5s;
    cursor: pointer;
}

nav .links{
    color: #fff;
    margin-bottom: 20px;
}

.flecha{
    transition: transform .3s ease;
}

.item-menu.abierto > .titulo-menu .flecha{
    transform: rotate(180deg);
}

.links{
    position: relative;
    text-decoration: none;
    padding: 0 10px;
    color: #fff;
    cursor: pointer;
}

.links::after{
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #fff;
    transition: all .3s;
}

.links:hover::after{
    width: 100%;
}

ul li{
    list-style-type: none;
}

.item-menu {
    position: relative;
}

.item-menu > .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #2a2a40;
    width: auto;
    flex-direction: column;
    padding: 10px 0;
}

.item-menu:hover > .submenu {
    display: block;
}

.submenu {
    display: none;
    flex-direction: column;
    z-index: 100;
}

.submenu .item-menu > .submenu {
    top: 0;
    left: 100%;
    background: #3a3a5a;
}

.submenu li {
    padding: 10px;
    white-space: nowrap;
}

.submenu li:hover {
    background: #3a3a5a;
}

.flecha {
    margin-left: 10px;
}

.titulo-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    padding: 10px;
}

main{
    background-image: url(/assets/fondo.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 800px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: visible;
    z-index: 0;
}

#difuminado{
    position: absolute;
    width: 100%;
    min-height: 800px;
    background: radial-gradient(
        circle at 10% 50%,
        #2a2a40 40%,
        #fff0
    );
    z-index: 1;
}

#fondo-negro{
    position: absolute;
    width: 100%;
    min-height: 800px;
    background-color: rgba(0,0,0,0.5);
    z-index: 10;
}

#contenedor_texto_var{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin-top: 200px;
    margin-left: 20px;
    width: 100%;
    height: 200px;
    z-index: 20;
    color: #fff;
    font-weight: 600;
    font-size: 50px;
}

#texto_var::after {
  content: "|";
  animation: parpadeo 1s infinite;
}

@keyframes parpadeo {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0; }
}

#boton_main{
    background-color: #eeb53c;
    width: 150px;
    height: 50px;
    margin-left: 250px;
    font-size: 17px;
    font-weight: 600;
    z-index: 20;
    transition: .4s;
}

#boton_main:hover{
    scale: 1.1;
}

#boton_main a{
    text-decoration: none;
    color: #2a2a40;
}

#principal{
    width: 500px;
    margin-top: 50px;
    margin-right: 50px;
    z-index: 10;
}

#areas-interes{
    background: #AAA;
    background: linear-gradient(152deg,rgba(238, 238, 238, 1) 43%, rgba(251, 251, 251, 1) 43%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 36px;
    margin: auto;
    width: 100%;
    padding: 60px 16px 70px;
}

#interes-texto{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    font-size: 30px;
}

#interes-texto span{
    font-size: 15px;
    color: #767676;
}

#contenedor-interes{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.interes{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 22px 22px 20px;
    border: 1px solid #dcdce6;
    border-left: 4px solid #2a2a40;
    border-radius: 10px;
    background-color: #fff;
    color: #2a2a40;
    text-decoration: none;
    box-shadow: 0 6px 24px -14px rgba(42, 42, 64, 0.45);
    transition: transform .2s, box-shadow .2s, border-color .2s, background-color .2s;
}

.interes i{
    margin-bottom: 6px;
    font-size: 24px;
    color: #eeb53c;
}

.interes b{
    font-size: 14px;
    letter-spacing: .3px;
}

.interes span{
    font-size: 12px;
    color: #767676;
}

.interes:hover,
.interes:focus-visible{
    transform: translateY(-4px);
    border-left-color: #eeb53c;
    background-color: #2a2a40;
    color: #fff;
    box-shadow: 0 14px 30px -14px rgba(42, 42, 64, 0.7);
}

.interes:hover span,
.interes:focus-visible span{
    color: #d6d6e4;
}

.interes:focus-visible{
    outline: 3px solid #eeb53c;
    outline-offset: 2px;
}









form{
    max-width: 400px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

input, textarea {
    padding: 10px;
    border: 1px solid #acacac;
    background-color: #f4f4f4;
    border-radius: 5px;
    color: #000;
}

textarea{
    max-width: 400px;
    max-height: 144px;
}


button {
    padding: 10px;
    border: none;
    background: #2a2a40;
    color: white;
    cursor: pointer;
    border-radius: 5px;
}

.campo-oculto {
    position: absolute;
    width: 1px;
    height: 1px;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

button:hover {
    background: #3a3a5a;
}

:root{
    --nov-fondo: #fff;
    --nov-borde: #c7c7c7;
    --nov-sombra: rgba(0,0,0,0.75);
    --nov-sombra-hover: rgba(0,0,0,0.45);
    --nov-titulo: #1d1d2c;
    --nov-titulo-hover: #3b3b8f;
    --nov-fuerte: #000;
    --nov-texto: #979797;
    --nov-texto-modal: #444;
    --nov-chip-fondo: #eeeeee;
    --nov-chip-borde: #acacac;
    --nov-link: #2a5298;
    --nov-finalizada-fondo: #e3e3e3;
    --nov-finalizada-texto: #666;
    --nov-vigencia: #8a6a1f;
    --nov-btn-fondo: #fff;
    --nov-btn-borde: #2a2a40;
    --nov-btn-texto: #2a2a40;
    --nov-btn-hover: #f1f1f6;
    --nov-aviso: #1a7f37;
    --nov-skeleton: #ececec;
    --nov-skeleton-brillo: #f6f6f6;
    --nov-aclarar: 0%;
}

html[data-tema-novedades="oscuro"]{
    --nov-fondo: #1f2130;
    --nov-borde: #383b51;
    --nov-sombra: rgba(0,0,0,0.9);
    --nov-sombra-hover: rgba(0,0,0,0.7);
    --nov-titulo: #f1f1f6;
    --nov-titulo-hover: #f2c766;
    --nov-fuerte: #e8e9f0;
    --nov-texto: #b4b7c6;
    --nov-texto-modal: #d4d6e0;
    --nov-chip-fondo: #2c2f42;
    --nov-chip-borde: #4a4e66;
    --nov-link: #8fb3ff;
    --nov-finalizada-fondo: #3a3d50;
    --nov-finalizada-texto: #c0c2cf;
    --nov-vigencia: #f2c766;
    --nov-btn-fondo: #262839;
    --nov-btn-borde: #4a4e66;
    --nov-btn-texto: #e8e9f0;
    --nov-btn-hover: #30334a;
    --nov-aviso: #5fd38a;
    --nov-skeleton: #2a2c3d;
    --nov-skeleton-brillo: #34374a;
    --nov-aclarar: 45%;
}

@media (prefers-color-scheme: dark){
    html:not([data-tema-novedades="claro"]){
        --nov-fondo: #1f2130;
        --nov-borde: #383b51;
        --nov-sombra: rgba(0,0,0,0.9);
        --nov-sombra-hover: rgba(0,0,0,0.7);
        --nov-titulo: #f1f1f6;
        --nov-titulo-hover: #f2c766;
        --nov-fuerte: #e8e9f0;
        --nov-texto: #b4b7c6;
        --nov-texto-modal: #d4d6e0;
        --nov-chip-fondo: #2c2f42;
        --nov-chip-borde: #4a4e66;
        --nov-link: #8fb3ff;
        --nov-finalizada-fondo: #3a3d50;
        --nov-finalizada-texto: #c0c2cf;
        --nov-vigencia: #f2c766;
        --nov-btn-fondo: #262839;
        --nov-btn-borde: #4a4e66;
        --nov-btn-texto: #e8e9f0;
        --nov-btn-hover: #30334a;
        --nov-aviso: #5fd38a;
        --nov-skeleton: #2a2c3d;
        --nov-skeleton-brillo: #34374a;
        --nov-aclarar: 45%;
    }
}

#titulo-novedades{
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

#tema-novedades{
    display: inline-flex;
    padding: 3px;
    border: 1px solid #c7c7c7;
    border-radius: 20px;
    background: #fff;
}

#tema-novedades button{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 16px;
    background: transparent;
    color: #2a2a40;
    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    font-weight: 600;
}

#tema-novedades button:hover{
    background: #f1f1f6;
}

#tema-novedades button[aria-pressed="true"]{
    background: #2a2a40;
    color: #fff;
}

#tema-novedades button:focus-visible{
    outline: 3px solid #eeb53c;
    outline-offset: 1px;
}

@media (max-width: 480px){
    #titulo-novedades{
        align-items: flex-start;
        flex-direction: column;
    }

    #tema-novedades button span{
        display: none;
    }
}

#novedades{
    background-color: #fbfbfb;
    height: auto;
    min-height: 710px;
    padding-bottom: 20px;
    width: 100%;
    max-width: 1060px;
    margin: auto;
}

#titulo-novedades{
    width: 100%;
    max-width: 1060px;
    margin: auto;
    padding-top: 20px;
}

#titulo-novedades h2{
    padding-left: 10px;
    font-size: 30px;
    border-left: 6px solid #eeb53c;
    border-radius: 10px;
    font-family: "Inter", sans-serif;
}

#titulo-novedades p{
    margin-top: 5px;
    font-size: 15px;
    color: #767676;
}

#contenedor_novedades{
    display: flex;
    justify-content: space-between;
    max-width: 1060px;
    width: 100%;
    margin: 30px auto;
}

#novedad_principal{
    width: 520px;
    height: 500px;
    border-radius: 10px;
    border: 1px var(--nov-borde) solid;
    background-color: var(--nov-fondo);
    color: var(--nov-fuerte);
    box-shadow: 0px 0px 92px -60px var(--nov-sombra);
}

#novedad_principal_img{
    width: 520px;
    height: 200px;
    overflow: hidden;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

#novedad_principal_img img{
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
}

#novedad_principal_texto{
    width: 520px;
    height: 300px;
}

.novedad_principal_cat{
    display: flex;
    justify-content: space-between;
    margin: 15px auto 0;
    width: 490px;
    font-size: 12px;
}

.categoria_p{
    font-size: 10px;
    text-align: center;
    width: auto;
    min-width: 80px;
    height: 20px;
    background-color: var(--nov-chip-fondo);
    border: var(--nov-chip-borde) 1px solid;
    border-radius: 20px;
    line-height: 20px;
}

#fecha{
    line-height: 20px;
}

.novedad_principal_info{
    width: 490px;
    height: 240px;
    margin: 10px auto 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.subtitulo_novedad_p{
    margin-top: 5px;
    font-size: 13px;
    color: var(--nov-texto);
}

.enlace_p{
    font-size: 14px;
}

.enlace_p a{
    cursor: pointer;
    color: var(--nov-fuerte);
    text-decoration: none;
    transition: .4s;
}

.enlace_p a:hover{
    font-size: 15px;
    scale: 1.1;
}

#novedades_secundarias{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 500px;
}

.novedad_secundaria{
    display: flex;
    height: 150px;
    background-color: var(--nov-fondo);
    color: var(--nov-fuerte);
    border-radius: 10px;
    border: 1px var(--nov-borde) solid;
    box-shadow: 0px 0px 92px -60px var(--nov-sombra);
}

.novedad_secundaria_contenedor{
    width: 420px;
    margin: auto;
}

.novedad_secundaria_img{
    height: 150px;
    width: 100px;
    flex-shrink: 0;
    overflow: hidden;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.novedad_secundaria_img img{
    display: block;
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

.novedad_secundaria_cat{
    display: flex;
    justify-content: space-between;
    margin: auto;
    width: 390px;
    font-size: 12px;
}

.categoria{
    font-size: 10px;
    text-align: center;
    width: auto;
    min-width: 80px;
    height: 20px;
    background-color: var(--nov-chip-fondo);
    border: var(--nov-chip-borde) 1px solid;
    border-radius: 20px;
    line-height: 20px;
}

.novedad_secundaria_texto{
    display: flex;
    flex-direction: column;
    width: 390px;
    margin: 10px auto 0;
}

.novedad_secundaria_texto p b{
    font-size: 15px;
    font-family: "Inter", sans-serif;
}

.subtitulo_novedad{
    font-size: 12px;
    color: var(--nov-texto);
}

.enlace{
    margin-top: 10px;
    font-size: 12px;
}

.enlace a{
    cursor: pointer;
    color: var(--nov-fuerte);
    text-decoration: none;
    transition: .4s;
}

.enlace a:hover{
    scale: 1.1;
    font-size: 13px;
}

#contacto{
    background-color: #2a2a40;
    height: 500px;
}

#info-contacto{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    max-width: 1000px;
    width: 100%;
    margin: auto;
}

#datos{
    height: 400px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

#datos p b{
    font-size: 25px;
}

.dato{
    line-height: 40px;
    height: 40px;
    width: 300px;
}

.dato1{
    margin-top: 20px;
}

.dato-border{
    border-bottom: 2px solid #eeb53c;
    border-radius: 2px;
}

#mapa{
    margin-top: 80px;
}

footer{
    background-color: #1b1b1b;
    color: #fff;
    display: flex;
    flex-direction: column;
    text-align: center;
}

#data{
    max-width: 1000px;
    width: 100%;
    margin: 30px auto 0;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

.footer{
    width: 300px;
    height: 300px;
    text-align: left;
}

.footer p{
    font-size: 18px;
    font-weight: 700;
}

.footer ul{
    margin-top: 10px;
    width: 200px;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

.footer ul li a{
    color: #fff;
    text-decoration: none;
    transition: .3s;
}

.footer ul li a:hover{
    margin-left: 15px;
    color: #eeb53c;
}

#copyright{
    line-height: 70px;
    height: 70px;
    background-color: #000;
    color: #717171;
}

#menu-hamburguesa{
    display: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

@media screen and (max-width: 501px) {
    section{
        max-width: 500px;
    }

    header{
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 100;
    }

    #header-pro{
        justify-content: space-around;
    }

    #logo {
        width: 300px;
    }

    #logo img{
        width: 50px;
    }

    #nombre-escuela{
        width: auto;
    }

    #menu-hamburguesa{
        display: initial;
        height: 75.79px;
        margin-right: 5px;
        position: absolute;
        right: 0;
        z-index: 51;
    }

    #menu-hamburguesa i{
        line-height: 71px;
        margin-right: 5px;
    }

    nav{
        display: block;
        position: fixed;
        top: 75.79px;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: calc(100vh - 75.79px);
        background-color: rgba(42,42,64,.98);
        z-index: 50;
        transform: translateX(100%);
        transition: transform .35s ease;
        overflow-y: auto;
        max-width: 500px;
    }
    
    nav.abierto{
        transform: translateX(0);
        transition: transform .35s ease;
    }

    nav ul{
        width: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 30px 0;
        gap: 50px;
    }

    .item-menu > .submenu{
        display: none;
        position: static;
        width: 100%;
    }

    .submenu .item-menu > .submenu{
        display: none;
        position: static;
        width: 100%;
    }

    .item-menu.abierto > .submenu{
        display: flex;
        flex-direction: column;
    }

    .item-menu:hover > .submenu{
        display: none;
    }

    main, #difuminado, #fondo-negro{
        min-height: 550px;
    }

    main{
        margin-top: 75.79px;
    }

    #boton_main{
        margin: 0 auto;
    }

    #contenedor_texto_var{
        margin-left: 0;
        font-size: 30px;
        text-align: center;
    }

    #novedades, #contacto, #areas-interes{
        height: auto;
    }

    #titulo-novedades, #novedad_principal{
        width: 100%;
        max-width: 440px;
        margin: auto;
    }

    #contenedor_novedades{
        flex-direction: column;
        height: auto;
    }

    #novedad_principal img, #novedad_principal_img{
        width: 100%;
        max-width: 440px;
        height: 200px;
    }

    #novedad_principal_texto, .novedad_secundaria{
        width: 100%;
        max-width: 440px;
    }
    
    .novedad_principal_cat, .novedad_principal_info, #novedad_principal_texto{
        width: 410px;
        margin: 10px auto 0;
        max-height: 190px;
    }

    #novedades_secundarias{
        margin: 30px auto 0;
    }

    .novedad_secundaria_contenedor{
        max-width: 350px;
        margin: auto;
    }
    
    .novedad_secundaria_cat, .novedad_secundaria_texto{
        max-width: 310px;
    }





    
    #contenedor-interes{
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 20px;
        max-width: 400px;
        margin: auto;
    }

    #ultimo{
        margin-bottom: 20px;
    }

    #info-contacto{
        flex-direction: column;
    }
    
    #datos, #mapa, .footer ul{
        margin: auto;
    }

    #mapa{
        margin: 20px auto 20px;
    }

    #data{
        flex-direction: column;
    }

    .footer{
        margin: auto;
        width: 250px;
        text-align: center;
    }

    .footer p{
        font-size: 20px;
    }

    #copyright{
        height: auto;
        font-size: 15px;
    }
}

@media screen and (max-width: 426px) {
    section{
        max-width: 426px;
    }

    header{
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 100;
    }

    #header-pro{
        justify-content: space-around;
    }

    #logo {
        width: 300px;
    }

    #logo img{
        width: 50px;
    }

    #nombre-escuela{
        width: auto;
    }

    #menu-hamburguesa{
        display: initial;
        height: 75.79px;
        margin-right: 5px;
        position: absolute;
        right: 0;
        z-index: 51;
    }

    #menu-hamburguesa i{
        line-height: 71px;
        margin-right: 5px;
    }

    nav{
        display: block;
        position: fixed;
        top: 75.79px;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: calc(100vh - 75.79px);
        background-color: rgba(42,42,64,.98);
        z-index: 50;
        transform: translateX(100%);
        transition: transform .35s ease;
        overflow-y: auto;
        max-width: 426px;
    }
    
    nav.abierto{
        transform: translateX(0);
        transition: transform .35s ease;
    }

    nav ul{
        width: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 30px 0;
        gap: 50px;
    }

    nav ul li{
        font-size: 18px;
    }

    .titulo-menu{
        font-size: 17px;
        justify-content: center;
    }

    .item-menu > .submenu{
        display: none;
        position: static;
        width: 100%;
    }

    .submenu .item-menu > .submenu{
        display: none;
        position: static;
        width: 100%;
    }

    .item-menu.abierto > .submenu{
        display: flex;
        flex-direction: column;
    }

    main, #difuminado, #fondo-negro{
        min-height: 550px;
    }

    main{
        margin-top: 75.79px;
    }

    #boton_main{
        margin: 0 auto;
    }

    #contenedor_texto_var{
        font-size: 30px;
        text-align: center;
    }

    #novedades, #contacto, #areas-interes{
        height: auto;
    }

    #titulo-novedades, #novedad_principal{
        width: 100%;
        max-width: 300px;
        margin: auto;
    }

    #novedad_principal{
        height: auto;
    }

    #novedad_principal_texto{
        max-width: 300px;
    } 
    
    .novedad_principal_cat, .novedad_principal_info{
        width: 100%;
        max-width: 270px;
    }

    .novedad_principal_info{
        height: 100%;
        max-height: 140px;
    }

    #novedades_secundarias{
        flex-direction: column;
        height: 1000px;
        width: 100%;
        max-width: 300px;
        gap: 20px;
    }

    .novedad_secundaria{
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        height: 100%;
        max-height: 300px;
    }

    .novedad_secundaria_contenedor, .novedad_secundaria_cat, .novedad_secundaria_texto{
        width: 100%;
        max-width: 270px;
    }

    .novedad_secundaria_img{
        width: 100%;
        height: 130px;
        border-top-right-radius: 10px;
        border-bottom-left-radius: 0;
    }
    
    .novedad_secundaria_img img{
        width: 100%;
        height: 130px;
        border-top-right-radius: 10px;
        border-bottom-left-radius: 0;
    }






    
    #contenedor-interes{
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 20px;
        max-width: 400px;
        margin: auto;
    }

    #ultimo{
        margin-bottom: 20px;
    }

    #info-contacto{
        flex-direction: column;
    }
    
    #datos, #mapa, .footer ul{
        margin: auto;
    }

    #mapa{
        margin: 20px auto 20px;
    }

    #data{
        flex-direction: column;
    }

    .footer{
        margin: auto;
        width: 250px;
        text-align: center;
    }

    .footer p{
        font-size: 20px;
    }

    #copyright{
        height: auto;
        font-size: 15px;
    }
}

@media screen and (max-width: 376px) {

    .submenu{
        max-width: 375px;
    }

    nav.abierto{
        max-width: 375px;
    }

    nav ul li{
        font-size: 16px;
    }

    .titulo-menu{
        font-size: 15px;
        justify-content: center;
    }

    #novedades{
        height: auto;
    }

    #titulo-novedades, #novedad_principal{
        width: 100%;
        max-width: 300px;
        margin: auto;
    }

    #novedad_principal_texto{
        max-width: 300px;
    } 
    
    .novedad_principal_cat, .novedad_principal_info{
        width: 100%;
        max-width: 280px;
    }

    #novedades_secundarias{
        flex-direction: column;
        height: 1000px;
        width: 100%;
        max-width: 300px;
        gap: 20px;
    }

    .novedad_secundaria{
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        height: 100%;
        max-height: 300px;
    }

    .novedad_secundaria_img{
        width: 100%;
        height: 130px;
        border-top-right-radius: 10px;
        border-bottom-left-radius: 0;
    }
    
    .novedad_secundaria_img img{
        width: 100%;
        height: 130px;
        border-top-right-radius: 10px;
        border-bottom-left-radius: 0;
    }




    #contenedor-interes{
        max-width: 360px;
    }

    #datos{
        width: 100%;
        max-width: 360px;
        margin: auto;
        text-align: center;
    }

    .dato{
        margin: 0 auto;
    }

    #mapa{
        max-width: 360px;
    }
}

@media screen and (max-width: 321px) {
    #logo{
        width: 100%;
        max-width: 240px;
    }

    #nombre-escuela{
        padding-top: 10px;
    }

    #navbar.abierto{
        max-width: 320px;
    }

    .submenu{
        max-width: 320px;
    }

    #novedades{
        height: auto;
    }

    #titulo-novedades, #novedad_principal{
        width: 100%;
        max-width: 280px;
        margin: auto;
    }

    #novedad_principal_texto{
        max-width: 280px;
    } 
    
    .novedad_principal_cat, .novedad_principal_info, .novedad_secundaria_cat, .novedad_secundaria_texto, .novedad_secundaria_contenedor{
        width: 100%;
        max-width: 260px;
    }

    #novedades_secundarias{
        flex-direction: column;
        height: 1000px;
        width: 100%;
        max-width: 280px;
        gap: 20px;
    }

    .novedad_secundaria{
        flex-direction: column;
        width: 100%;
        max-width: 280px;
        height: 100%;
        max-height: 320px;
    }

    .novedad_secundaria_img{
        width: 100%;
        height: 130px;
        border-top-right-radius: 10px;
        border-bottom-left-radius: 0;
    }
    
    .novedad_secundaria_img img{
        width: 100%;
        height: 130px;
        border-top-right-radius: 10px;
        border-bottom-left-radius: 0;
    }



    #contenedor-interes{
        max-width: 310px;
    }

    #mapa iframe{
        width: 100%;
        max-width: 280px;
        margin: auto;
    }

    #copyright{
        font-size: 12px;
    }
}

body.modal-abierto{
    overflow: hidden;
}

.novedad_titulo{
    font-family: "Inter", sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--nov-titulo);
    line-height: 1.25;
}

#info_principal .novedad_titulo{
    font-size: 19px;
}

#novedades_secundarias .novedad_titulo{
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.subtitulo_novedad{
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.subtitulo_novedad_p{
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.novedad-color{
    color: var(--c);
}

@supports (color: color-mix(in srgb, red, blue)){
    .novedad-color{
        color: color-mix(in srgb, var(--c), #fff var(--nov-aclarar));
    }
}

.novedad-link{
    color: var(--nov-link);
    font-weight: 600;
    text-decoration: underline;
    overflow-wrap: anywhere;
}

.novedad-color .novedad-link{
    color: inherit;
}

.novedad-link:hover{
    text-decoration-thickness: 2px;
}

.clickeable{
    cursor: pointer;
    transition: transform .25s, box-shadow .25s;
}

.clickeable:hover{
    transform: translateY(-3px);
    box-shadow: 0px 10px 40px -18px var(--nov-sombra-hover);
}

.clickeable:hover .novedad_titulo{
    color: var(--nov-titulo-hover);
}

.leer-mas:focus-visible, .filtro-novedad:focus-visible, .novedad-btn:focus-visible, .novedad-modal-cerrar:focus-visible{
    outline: 3px solid #eeb53c;
    outline-offset: 2px;
}

.etiqueta-novedad{
    display: inline-block;
    margin-left: 6px;
    padding: 1px 8px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    vertical-align: middle;
}

.etiqueta-novedad.nueva{
    background-color: #eeb53c;
    color: #2a2a40;
}

.etiqueta-novedad.finalizada{
    background-color: var(--nov-finalizada-fondo);
    color: var(--nov-finalizada-texto);
}

img.sin-imagen{
    object-fit: contain !important;
    padding: 18px;
    background-color: #2a2a40;
}

#contenedor_novedades.sin-novedades,
#contenedor_novedades.solo-principal{
    justify-content: center;
}

.novedades-mensaje{
    width: 100%;
    padding: 50px 20px;
    text-align: center;
    color: #767676;
    font-size: 15px;
    border: 1px dashed #c7c7c7;
    border-radius: 10px;
}

.skeleton{
    background: linear-gradient(90deg, var(--nov-skeleton) 25%, var(--nov-skeleton-brillo) 50%, var(--nov-skeleton) 75%);
    background-size: 200% 100%;
    animation: skeleton-brillo 1.3s ease-in-out infinite;
}

.skeleton-linea{
    height: 12px;
    margin: 10px 0;
    border-radius: 6px;
}

.skeleton-linea.corta{
    width: 40%;
}

.skeleton-card .novedad_secundaria_contenedor{
    padding: 0 16px;
}

@keyframes skeleton-brillo{
    from{ background-position: 200% 0; }
    to{ background-position: -200% 0; }
}

@media (prefers-reduced-motion: reduce){
    .skeleton{ animation: none; }
    .clickeable, .clickeable:hover{ transition: none; transform: none; }
}

#filtros-novedades{
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 1060px;
    margin: 18px auto 0;
}

#filtros-novedades[hidden]{
    display: none;
}

.filtro-novedad{
    padding: 6px 14px;
    border: 1px solid #c7c7c7;
    border-radius: 20px;
    background: #fff;
    color: #2a2a40;
    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    font-weight: 600;
    transition: .2s;
}

.filtro-novedad:hover{
    background: #f1f1f6;
    border-color: #2a2a40;
}

.filtro-novedad[aria-pressed="true"]{
    background: #2a2a40;
    border-color: #2a2a40;
    color: #fff;
}

#novedades-filtradas{
    margin: 30px auto;
}

.novedad-modal{
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.novedad-modal[hidden]{
    display: none;
}

.novedad-modal-fondo{
    position: absolute;
    inset: 0;
    background: rgba(20, 20, 35, 0.7);
}

.novedad-modal-caja{
    position: relative;
    width: 100%;
    max-width: 640px;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--nov-fondo);
    color: var(--nov-fuerte);
    border-radius: 12px;
    border-top: 4px solid #eeb53c;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.novedad-modal-scroll{
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #eeb53c transparent;
}

.novedad-modal-scroll::-webkit-scrollbar{
    width: 10px;
}

.novedad-modal-scroll::-webkit-scrollbar-track{
    margin: 6px 0;
    background: transparent;
}

.novedad-modal-scroll::-webkit-scrollbar-thumb{
    border: 3px solid transparent;
    border-radius: 10px;
    background: #eeb53c padding-box;
}

.novedad-modal-scroll::-webkit-scrollbar-thumb:hover{
    background: #d9a12a padding-box;
}

.novedad-modal-cerrar{
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    background: rgba(42, 42, 64, 0.85);
    font-size: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

.novedad-modal-cerrar:hover{
    background: #2a2a40;
    border-color: #eeb53c;
}

.novedad-modal-img{
    position: relative;
    overflow: hidden;
    background-color: #2a2a40;
}

.novedad-modal-img::before{
    content: "";
    position: absolute;
    inset: -20px;
    background: var(--fondo-img, none) center / cover no-repeat;
    filter: blur(18px) brightness(0.7);
}

.novedad-modal-img img{
    position: relative;
    display: block;
    width: 100%;
    max-height: 360px;
    object-fit: contain;
}

.novedad-modal-cuerpo{
    padding: 20px 24px 24px;
}

.novedad-modal-meta{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: 12px;
}

.novedad-modal-meta .categoria{
    display: inline-block;
    padding: 0 12px;
}

.novedad-modal-meta .etiqueta-novedad{
    margin-left: 0;
}

#novedad-modal-titulo{
    margin: 14px 0 10px;
    font-family: "Inter", sans-serif;
    font-size: 22px;
    color: var(--nov-titulo);
    line-height: 1.25;
}

.novedad-modal-desc{
    font-size: 15px;
    line-height: 1.6;
    color: var(--nov-texto-modal);
    white-space: pre-line;
}

.novedad-modal-vigencia{
    margin-top: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--nov-vigencia);
}

.novedad-modal-vigencia[hidden]{
    display: none;
}

.novedad-modal-acciones{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.novedad-btn{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid var(--nov-btn-borde);
    border-radius: 8px;
    background: var(--nov-btn-fondo);
    color: var(--nov-btn-texto);
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: .2s;
}

.novedad-btn[hidden]{
    display: none;
}

.novedad-btn:hover{
    background: var(--nov-btn-hover);
}

.novedad-btn.principal{
    background: #eeb53c;
    border-color: #eeb53c;
    color: #2a2a40;
}

.novedad-btn.principal:hover{
    background: #e0a628;
}

.novedad-modal-aviso{
    min-height: 18px;
    margin-top: 8px;
    font-size: 13px;
    color: var(--nov-aviso);
    word-break: break-all;
}

@media (max-width: 480px){
    .novedad-modal{
        padding: 0;
        align-items: flex-end;
    }

    .novedad-modal-caja{
        max-height: 92vh;
        border-radius: 12px 12px 0 0;
    }

    .novedad-modal-cuerpo{
        padding: 16px;
    }

    #novedad-modal-titulo{
        font-size: 19px;
    }

    .novedad-btn{
        flex: 1 1 auto;
        justify-content: center;
    }

    #filtros-novedades{
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 0 10px 6px;
    }

    .filtro-novedad{
        flex: 0 0 auto;
    }
}

@media screen and (min-width: 502px) and (max-width: 1080px){
    #novedades{
        padding: 0 16px 20px;
    }

    #contenedor_novedades{
        flex-wrap: wrap;
        justify-content: center;
        gap: 24px;
    }

    #novedad_principal, #novedad_principal_img, #novedad_principal_texto{
        width: 100%;
        max-width: 520px;
    }

    #novedad_principal, #novedad_principal_texto{
        height: auto;
    }

    .novedad_principal_cat, .novedad_principal_info{
        width: auto;
        margin-left: 15px;
        margin-right: 15px;
    }

    .novedad_principal_info{
        height: auto;
        gap: 16px;
        padding-bottom: 15px;
    }

    #novedades_secundarias{
        width: 100%;
        max-width: 520px;
        height: auto;
        gap: 16px;
    }

    .novedad_secundaria_contenedor{
        flex: 1 1 auto;
        min-width: 0;
        width: auto;
        padding: 10px 14px;
    }

    .novedad_secundaria_cat, .novedad_secundaria_texto{
        width: 100%;
    }
}

#historial-novedades {
    background-color: #fbfbfb;
    width: 100%;
    max-width: 1060px;
    margin: 0 auto;
    padding-bottom: 40px;
}

#titulo-historial {
    width: 100%;
    max-width: 1060px;
    margin: auto;
    padding-top: 40px;
    padding-bottom: 20px;
}

#titulo-historial h2 {
    padding-left: 10px;
    font-size: 24px;
    border-left: 6px solid #aaa;
    border-radius: 10px;
    font-family: "Inter", sans-serif;
    color: #555;
}

#titulo-historial p {
    margin-top: 5px;
    font-size: 14px;
    color: #999;
}

.grilla-novedades {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    padding: 0 10px;
}

.grilla-novedades[hidden] {
    display: none;
}

.grilla-novedades .novedad_secundaria {
    flex: 1 1 280px;
    max-width: 340px;
    height: auto;
    min-height: 150px;
}

#contenedor-historial .novedad_secundaria,
.grilla-novedades .novedad_secundaria.vencida {
    opacity: 0.82;
}

.grilla-novedades .novedad_secundaria_img {
    width: 90px;
    height: auto;
}

.grilla-novedades .novedad_secundaria_contenedor {
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
    padding: 10px 14px;
    box-sizing: border-box;
}

.grilla-novedades .novedad_secundaria_cat,
.grilla-novedades .novedad_secundaria_texto {
    width: 100%;
}

#ver-historial-btn {
    display: block;
    margin: 0 auto 10px;
    padding: 12px 26px;
    background-color: #eeb53c;
    color: #2a2a40;
    border: none;
    border-radius: 8px;
    font-family: "Montserrat", sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: .3s;
}

#ver-historial-btn:hover {
    scale: 1.05;
}

#ver-historial-btn[hidden] {
    display: none;
}

#ies48-chatbot {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 500;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
    font-family: "Montserrat", sans-serif;
}

#ies48-chat-toggle {
    width: 58px;
    height: 58px;
    border: none;
    border-radius: 50%;
    background-color: #eeb53c;
    color: #2a2a40;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    transition: .3s;
}

#ies48-chat-toggle:hover {
    scale: 1.08;
}

#ies48-chat-toggle.con-avatar {
    width: 66px;
    height: 66px;
    padding: 0;
    overflow: hidden;
    border: 3px solid #eeb53c;
    background-color: #2a2a40;
    animation: ies48-flotar 3.2s ease-in-out infinite;
}

.ies48-toggle-avatar {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 50%;
    animation: ies48-saludar 7s ease-in-out infinite;
    transform-origin: 50% 90%;
}

@keyframes ies48-flotar {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes ies48-saludar {
    0%, 82%, 100% { transform: rotate(0); }
    86% { transform: rotate(-9deg); }
    90% { transform: rotate(8deg); }
    94% { transform: rotate(-5deg); }
    97% { transform: rotate(3deg); }
}

#ies48-chat-toggle:focus-visible,
#ies48-chatbot button:focus-visible {
    outline: 3px solid rgba(238, 181, 60, 0.6);
    outline-offset: 2px;
}

#ies48-chat-aviso {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 270px;
    padding: 8px 14px 8px 8px;
    border: none;
    border-radius: 14px 14px 4px 14px;
    background-color: #fff;
    color: #2a2a40;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
    animation: ies48-aparecer .35s ease-out;
}

#ies48-chat-aviso img {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

#ies48-chat-panel {
    width: 370px;
    max-width: calc(100vw - 40px);
    height: 540px;
    max-height: calc(100vh - 110px);
    flex-direction: column;
    background-color: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.32);
    transform-origin: bottom right;
}

#ies48-chat-panel:not([hidden]) {
    display: flex;
    animation: ies48-abrir .22s ease-out;
}

.ies48-chat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 12px 12px 14px;
    background-color: #2a2a40;
    border-bottom: 3px solid #eeb53c;
    color: #fff;
    font-weight: 600;
}

.ies48-chat-avatar {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid #eeb53c;
    overflow: hidden;
    background-color: #eeb53c;
}

.ies48-chat-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transform-origin: 50% 100%;
}

#ies48-chat-panel.pensando .ies48-chat-avatar img {
    animation: ies48-hablar .5s ease-in-out infinite alternate;
}

@keyframes ies48-hablar {
    from { transform: translateY(0) rotate(-2deg); }
    to { transform: translateY(-2px) rotate(2deg) scale(1.04); }
}

.ies48-chat-bienvenida {
    align-self: center;
    width: 112px;
    height: 112px;
    margin: 2px 0 4px;
    border-radius: 50%;
    border: 3px solid #eeb53c;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(42, 42, 64, 0.18);
    animation: ies48-entrar .6s cubic-bezier(.34, 1.56, .64, 1);
}

.ies48-chat-bienvenida img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

@keyframes ies48-entrar {
    from { opacity: 0; transform: scale(.6) rotate(-10deg); }
    to { opacity: 1; transform: scale(1) rotate(0); }
}

.ies48-chat-header-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    font-size: 15px;
}

.ies48-chat-header-info small {
    font-weight: 400;
    font-size: 11px;
    color: #b9c2e0;
}

.ies48-chat-header-info small::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 5px;
    border-radius: 50%;
    background-color: #4ade80;
}

.ies48-chat-header button {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    transition: .2s;
}

.ies48-chat-header button:hover {
    background-color: rgba(255, 255, 255, 0.12);
}

.ies48-chat-messages {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: #f5f5fa;
    scrollbar-width: thin;
    scrollbar-color: #cfd0de transparent;
}

.ies48-chat-msg {
    max-width: 85%;
    padding: 10px 13px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.45;
    overflow-wrap: anywhere;
    animation: ies48-aparecer .25s ease-out;
}

.ies48-chat-msg.bot {
    position: relative;
    margin-left: 34px;
    align-self: flex-start;
    background-color: #fff;
    color: #2a2a40;
    border: 1px solid #e2e2ec;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 2px rgba(42, 42, 64, 0.05);
}

.ies48-chat-msg.con-formato {
    white-space: pre-line;
}

.ies48-chat-msg .novedad-color {
    color: var(--c);
}

.ies48-chat-msg .novedad-link {
    color: #2a5298;
}

.ies48-chat-msg .novedad-color .novedad-link {
    color: inherit;
}

.ies48-chat-msg.bot::before {
    content: "";
    position: absolute;
    left: -34px;
    bottom: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #eeb53c url("assets/toti-avatar.webp") center / cover no-repeat;
    border: 1.5px solid #eeb53c;
}

.ies48-chat-acciones {
    margin-left: 34px;
}

.ies48-chat-msg.usuario {
    align-self: flex-end;
    background-color: #eeb53c;
    color: #2a2a40;
    font-weight: 500;
    border-bottom-right-radius: 4px;
}

.ies48-chat-typing {
    display: flex;
    gap: 4px;
    padding: 12px 14px;
}

.ies48-chat-typing span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #9a9ab0;
    animation: ies48-typing 1.2s infinite ease-in-out;
}

.ies48-chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.ies48-chat-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes ies48-typing {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
    30% { transform: translateY(-4px); opacity: 1; }
}

@keyframes ies48-aparecer {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes ies48-abrir {
    from { opacity: 0; transform: scale(.96) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.ies48-chat-acciones {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-self: flex-start;
    max-width: calc(100% - 40px);
    animation: ies48-aparecer .3s ease-out;
}

.ies48-chat-acciones button {
    padding: 8px 13px;
    border: 1.5px solid #2a2a40;
    border-radius: 999px;
    background-color: #fff;
    color: #2a2a40;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.25;
    text-align: left;
    cursor: pointer;
    transition: .2s;
}

.ies48-chat-acciones button i {
    margin-left: 3px;
    font-size: 10px;
    opacity: .6;
}

.ies48-chat-acciones button:hover {
    background-color: #2a2a40;
    color: #fff;
}

.ies48-chat-acciones button.secundaria {
    border-style: dashed;
    border-color: #9a9ab0;
    color: #56627b;
    font-weight: 500;
}

.ies48-chat-acciones button.secundaria:hover {
    background-color: #ebebf3;
    color: #2a2a40;
}

.ies48-chat-form {
    display: flex;
    flex-direction: row;
    max-width: none;
    margin: 0;
    gap: 8px;
    padding: 10px;
    border-top: 1px solid #e2e2ec;
    background-color: #fff;
}

.ies48-chat-form input {
    flex: 1;
    min-width: 0;
    padding: 10px 14px;
    border: 1px solid #d9d9e6;
    border-radius: 999px;
    font-size: 14px;
    font-family: inherit;
    color: #2a2a40;
}

.ies48-chat-form input:focus {
    outline: 2px solid rgba(238, 181, 60, 0.5);
    border-color: #eeb53c;
}

.ies48-chat-form button {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background-color: #eeb53c;
    color: #2a2a40;
    font-size: 15px;
    cursor: pointer;
    flex: 0 0 42px;
    transition: .2s;
}

.ies48-chat-form button:hover {
    background-color: #e0a52c;
}

@media (max-width: 480px) {
    #ies48-chatbot {
        right: 12px;
        bottom: 12px;
        gap: 10px;
    }

    #ies48-chat-panel {
        width: calc(100vw - 24px);
        max-width: none;
        height: calc(100vh - 96px);
        height: calc(100dvh - 96px);
        max-height: none;
        border-radius: 16px;
    }

    .ies48-chat-form input {
        font-size: 16px;
    }

    .ies48-chat-acciones button {
        padding: 9px 14px;
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #ies48-chatbot *,
    #ies48-chat-toggle,
    #ies48-chat-panel:not([hidden]) {
        animation: none !important;
    }
}

.titulo-seccion{
    width: 100%;
    max-width: 1060px;
    margin: 0 auto;
}

.titulo-seccion h2{
    padding-left: 10px;
    font-size: 30px;
    border-left: 6px solid #eeb53c;
    border-radius: 10px;
    font-family: "Inter", sans-serif;
}

.titulo-seccion p{
    margin-top: 5px;
    font-size: 15px;
    color: #767676;
}

#novedades,
#historial-novedades{
    background-color: #f1f1f6;
    box-shadow: 0 0 0 100vmax #f1f1f6;
    clip-path: inset(0 -100vmax);
}

#carreras{
    position: relative;
    width: 100%;
    padding: 60px 16px 70px;
    background:
        radial-gradient(circle at 92% 0%, rgba(238, 181, 60, 0.18), transparent 38%),
        radial-gradient(circle at 0% 100%, rgba(238, 181, 60, 0.10), transparent 35%),
        #2a2a40;
    scroll-margin-top: 20px;
}

#carreras .titulo-seccion h2{
    color: #fff;
}

#carreras .titulo-seccion p{
    color: #c9c9d8;
}

#grilla-carreras{
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    max-width: 1060px;
    margin: 30px auto 0;
}

.carrera{
    display: flex;
    flex-direction: column;
    padding: 24px 20px 20px;
    border: 1px solid transparent;
    border-top: 4px solid #eeb53c;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 16px 34px -20px rgba(0, 0, 0, 0.7);
    transition: transform .25s, box-shadow .25s;
}

.carrera:hover{
    transform: translateY(-4px);
    box-shadow: 0 24px 40px -18px rgba(0, 0, 0, 0.8);
}

.carrera-icono{
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 16px;
    border-radius: 14px;
    background: #2a2a40;
    color: #eeb53c;
    font-size: 22px;
}

.carrera-tipo{
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: #b07f16;
}

.carrera h3{
    margin: 4px 0 16px;
    font-family: "Inter", sans-serif;
    font-size: 18px;
    color: #1d1d2c;
    line-height: 1.25;
}

.carrera-links{
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #ececf2;
    list-style: none;
}

.carrera-links a{
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 8px;
    border-radius: 6px;
    color: #2a2a40;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .2s, color .2s;
}

.carrera-links a i{
    width: 16px;
    color: #8a8aa3;
    text-align: center;
}

.carrera-links a:hover,
.carrera-links a:focus-visible{
    background: #f4f1e6;
    color: #1d1d2c;
}

.carrera-links a:hover i,
.carrera-links a:focus-visible i{
    color: #b07f16;
}

a.dato{
    display: block;
    color: #fff;
    text-decoration: none;
    transition: color .2s, padding-left .2s;
}

a.dato:hover,
a.dato:focus-visible{
    padding-left: 6px;
    color: #eeb53c;
}

.como-llegar{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    margin-top: 10px;
    padding: 10px 18px;
    border-radius: 8px;
    background: #eeb53c;
    color: #2a2a40;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: transform .2s, background-color .2s;
}

.como-llegar:hover,
.como-llegar:focus-visible{
    background: #f2c766;
    transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce){
    .carrera, .carrera:hover, .interes, .interes:hover, .como-llegar:hover{
        transition: none;
        transform: none;
    }
}

@media screen and (max-width: 1080px){
    #grilla-carreras{
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media screen and (max-width: 720px){
    #contenedor-interes{
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 501px){
    #grilla-carreras,
    #contenedor-interes{
        grid-template-columns: minmax(0, 1fr);
    }

    .titulo-seccion h2{
        font-size: 24px;
    }

    #areas-interes{
        padding: 50px 16px;
    }

    #interes-texto{
        font-size: 24px;
    }

    .como-llegar{
        align-self: center;
    }
}

#boton_main{
    align-self: flex-start;
    width: auto;
    padding: 0 22px;
    white-space: nowrap;
}

#datos p.dato{
    height: auto;
    padding: 8px 0;
    line-height: 1.5;
}
