/* Paleta del sitio. Debe coincidir con la de components/comun/seccion-interna.css
   y components/inicio/inicio-layout.css: esas hojas se inyectan en un <style> del
   documento y su :root pisa a este mientras la sección está montada. */
:root {
    --color-principal: #0a7533;
    --color-principal-hover: #086228;
    --color-secundario: #e67817;
    --color-secundario-texto: #a3530d;

    /* Anillo de foco (WCAG 2.4.7 / 1.4.11: mínimo 3:1). El naranja de marca
       se queda en 2.97:1 sobre blanco, así que el foco lleva su propio tono. */
    --color-foco: #c46313;
}

/* Enlace "Saltar al contenido" — accesibilidad (WCAG 2.4.1) */
.skip-link {
    position: absolute;
    top: -50px;
    left: 0;
    background: var(--color-principal);
    color: #fff;
    padding: 10px 18px;
    z-index: 10001;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 0 0 8px 0;
    transition: top 0.25s ease;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid var(--color-foco);
    outline-offset: 2px;
}

body {
    font-family: 'Dosis', sans-serif;
    font-size: 17px;
}

a,
a:visited {
    color: var(--color-principal);
}

a:hover,
a:focus {
    color: var(--color-principal-hover);
}

/* Resaltado del foco de alto contraste (WCAG 2.4.7) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 3px solid var(--color-foco) !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 0 2px #ffffff !important;
}

a:hover {
    text-decoration: none;
}

#nombre {
    margin-left: 50px;
    margin-top: -7px;
}

/* este es un comentario en CSS*/

#imgHeader {
    position: relative;
    margin: 0 auto;
    width: 95%;
}

.menu-fixed {
    position: fixed;
    z-index: 1000;
    top: 0;
    /*max-width:1000px;*/
    left: 0;
    width: 100%;
    box-shadow: 0px 4px 3px rgba(0, 0, 0, .5);
}

#rowVerde {
    border: 1px double var(--color-principal);
    margin-right: 20px;
    border-radius: 10px 10px 10px 10px;
    -moz-border-radius: 10px 10px 10px 10px;
    -webkit-border-radius: 10px 10px 10px 10px;
}

#rowNaranja {
    border: 1px double var(--color-secundario);
    margin-right: 20px;
    border-radius: 10px 10px 10px 10px;
    -moz-border-radius: 10px 10px 10px 10px;
    -webkit-border-radius: 10px 10px 10px 10px;
}

.div_slider {
    width: 80%;
    position: relative;
    margin: 0 auto;
    margin-bottom: 2%;
    aspect-ratio: 828 / 315;
    max-height: 580px;
    overflow: hidden;
    background-color: #f6f6ed;
}

.div_slider .carousel-inner,
.div_slider .carousel-item,
.div_slider .carousel-media {
    width: 100%;
    height: 100%;
}

.div_slider .carousel-media {
    display: block;
}

.div_slider img,
.div_slider iframe {
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

.div_slider .sliderContainer {
    white-space: nowrap;
}

.div_slider .sliderContainer .slider {

    display: inline-block;
    margin-right: 11px;
    vertical-align: top;
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: 20%;
}

.left,
.right {
    position: absolute;
    top: 50%;
    font-size: 4em;
    height: 50px;
    border: none;
    background: transparent;

}

.left {
    left: 0px;
}

.right {
    right: 0px;
}

#divInfoSlider {
    background: black;
    opacity: 0.6;
    color: white;
    border-radius: 0px 0px 10px 10px;
}

#footer {

    background-repeat: no-repeat;
    background-size: cover;
    font-size: 18px;
    border-top: 1px solid #eee;
    /* `min-height` y no `height`: el pie del sitio anterior cabía en 150px, pero
       este lleva los bloques que exige el ITA y mide más de 1600. Con altura fija
       el contenido se salía de la caja sin sumar al alto del documento, así que
       el final de la página quedaba en blanco. */
    min-height: 150px;
    margin-top: 30px;
    margin-bottom: 0px;
}

#infoFooter {
    color: black;
    text-align: center;

}


#footerMapa {
    background-color: #96cb32;
    background-repeat: no-repeat;
    background-size: cover;
    font-size: 16px;
    border-top: 1px solid #eee;
    height: auto;
    margin-top: 40px;
    margin-bottom: 0px;
}

#enlacesFooter {
    border-right: 1px double #eee;
    margin-left: 0px;
    font-size: 18px;
}

#imgFooter {
    margin-top: 20px;
    width: 70px;
    height: 75px;
}

#titNosotros {
    text-align-last: center;
    color: var(--color-principal);
}

#Aligntext {
    text-align: center;
}

#menuNosotros {
    margin-top: 25%;
    margin-bottom: 25%
}

#nombreDocente {
    align-content: center;
}

#nombreSedes {
    color: var(--color-principal);
    border-bottom: 2px double var(--color-principal);
}

#nuestrosDocentes {
    color: var(--color-principal);
}

#imgDocentes {
    margin: 0 auto;
}

#separador {
    margin-top: 5%;
    margin-bottom: 5%;
    margin: 0 auto;
}

#breadcrumbActivo a {
    color: #595a5c;
}

#tituloPrincipal h1,
#tituloPrincipal h3 {
    color: #595a5c;
    font-weight: 200;
    font-size: 50px;
}

#tituloPrincipal h1 strong,
#tituloPrincipal h3 strong {
    color: var(--color-principal);
    font-weight: 200;
    font-size: 50px;
}

#informacionMenuInterno h3 {
    color: #FFF;
    padding: 7px;
    background-color: var(--color-principal);
    width: 85%;
}

#informacionMenuInternoSedes h3 {
    color: #FFF;
    padding: 7px;
    background-color: var(--color-principal);
    width: 100%;

}

#informacionInterna p {
    line-height: 1.3;
    margin-bottom: 20px;
    text-align: justify;
}

#itemActivo a {
    color: #595a5c;
}

#subtitulosInternos {
    font-size: 24px;
    color: #6e6e6e;
}

#mision {
    line-height: 1.2;
    margin-bottom: 20px;
    font-size: 16px;
    text-align: justify;
}

#vision {
    line-height: 1.2;
    margin-bottom: 20px;
    font-size: 16px;
    text-align: justify;
}

#politica {
    line-height: 1.2;
    margin-bottom: 20px;
    font-size: 16px;
    text-align: justify;
}

#historia {
    line-height: 1.2;
    margin-bottom: 20px;
    font-size: 16px;
    text-align: justify;
}

.verso-himno {
    line-height: 1.2;
    margin-bottom: 20px;
    text-align-last: center;
    font-size: 16px;
    margin: 0 auto;
}

#imgBandera {
    width: 200px;
    height: 400px;
}

#imgEscudo {
    width: 400px;
    height: 300px;
}

#imgPumin {
    width: 400px;
    height: 500px;
}

#pacto {
    line-height: 1.2;
    margin-bottom: 20px;
    font-size: 16px;
    text-align: justify;
}

#gestion {
    line-height: 1.2;
    margin-bottom: 20px;
    font-size: 16px;
    text-align: justify;
}

#divMenuSedes {
    border: 1px solid gray;
    padding: 0px;

}

#infoDivMenuSedes {
    background: black;
    color: white;
    text-align: center;
    padding: 10px;
    opacity: 0.3;
    width: 100%;
    height: 6%;

}

nav a:hover {
    color: var(--color-principal);
    text-decoration: none;
}

#activo {
    background: white;
    border-top: 1px solid #ddd;
    border-right: 1px solid #ddd;
    border-bottom: 1px solid white;
    border-left: 1px solid #ddd;


}

#activoMenuSecundario {
    background-color: #ddd;
    border-radius: 3px;
}

#navSedes {
    margin: 0 auto;
    margin-top: 20px;
    width: 23%;
    padding-right: 1%;
}

#fechaCartelera {
    color: #595959;
    font-size: 1em;
    font-weight: bold;
}

#autorCartelera {
    color: #595959;
    font-size: 1em;
}

#menuPlanes {
    border: 1px solid black;
    min-height: 150px;
    height: auto;
}

#imgMenuSecundario {
    width: 100px;
    height: 100px;
    margin-top: 8px;
}

#infoMenuPlanes {
    color: var(--color-principal);
    font-weight: bold;
    text-align: center;
    margin-bottom: 0px;
    font-size: 16px;
}

#contenedorPlanes {
    width: 100%;
    height: 50%;
    overflow-y: scroll;

}

#contenedorImgPlanes div {
    float: left;
    margin-left: 2%;
    margin-right: 2%;
}

#imgDescargasPlanes {
    widows: 50px;
    height: 50px;
    align-content: center;
}

#tituloNoticia {
    border-top: 3px solid var(--color-principal);
    color: var(--color-principal);
}

#imgNoticias {
    width: 500px;
    height: 250px;
}

.texto-noticias {
    text-align: justify;
    line-height: 1.5em;
    margin-bottom: 20px;
    margin: 10px 0px 10px;
    color: #595a5c;
    font-size: 16px;
}

#imgWidgetNoticias {
    widows: 200px;
    height: 500px;
}

#itemMenuSedesActivo {
    background-color: #ddd;
    border-radius: 5px 5px 5px 5px;
}

#enlacesMapaSitio {
    list-style: none;
    color: white;
    text-decoration: none;
    font-size: 18px;

}

#imgNoticias2 {
    width: 400px;
    height: 600px;
}

#imgPersonero {
    margin: 0 auto;
}

#mascotaFooter {
    width: 200px;
    height: 300px;
    margin: 0px 84px;
}

.institucionFooter {
    color: white;
    font-weight: bold;
}

.sombraTexto {
    text-shadow: 2px 4px 3px rgba(0, 0, 0, 0.3);
}

#altoThumbnail {
    height: 450px;
}

#imgMapa {
    max-width: 100%;
    height: auto;
}

#convocatoria {
    width: 100px;
    height: 100px;
}

#Rector {
    margin: 0px auto;
    float: inherit;
}

#textNegrilla {
    font-weight: bold;
}

#videos {
    max-width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
}


.card-title {
    font-size: 50px;
    color: #6e6e6e;
}

.social-bar {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.1);
    border-radius: 0 12px 12px 0;
    padding: 8px;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.social-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 8px 0;
    border-radius: 50%;
    color: #666;
    background-color: #f5f5f5;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Los cuatro iconos son SVG en línea: mismo tamaño y mismo grosor visual */
.social-bar a svg {
    display: block;
    width: 20px;
    height: 20px;
}

/* Colores para cada red social en hover */
.social-bar a.facebook:hover {
    background-color: #1877f2;
    color: white;
}

.social-bar a.instagram:hover {
    background-color: #e4405f;
    color: white;
}

.social-bar a.tiktok:hover {
    background-color: #010101;
    color: white;
}

.social-bar a.youtube:hover {
    background-color: #ff0000;
    color: white;
}

/* Efectos hover globales */
.social-bar a:hover {
    transform: translateX(5px) scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Nuevas clases para tarjetas */
.card-enlace {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    transition: all 0.3s ease;
    background-color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.card-enlace:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--color-principal);
}

.card-enlace .card-body {
    padding: 20px;
}

.card-enlace h2 {
    font-size: 1.5rem;
    margin-top: 15px;
    color: #444;
}

.card-enlace p {
    color: #595959;
    margin-bottom: 0;
}

.card-enlace a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.img-tarjeta {
    max-height: 120px;
    width: 100%;
    object-fit: contain;
    margin: 0 auto;
    display: block;
}

/* Soporte para preferencia de movimiento reducido (WCAG 2.2.2) */
@media (prefers-reduced-motion: reduce) {
    *,
    ::before,
    ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}