/**
 * Estilos para el header institucional - VERSIÓN FINAL
 * Fondo blanco, imágenes más grandes, título visible
 */

.u-noPaddingContainer {
    background-color: #ffffff;
    border-bottom: 2px solid #e0e0e0;
    border-top: 1px solid #e0e0e0;
    position: relative; /* Cambiado de fixed a relative */
    top: 0; /* Ya no es fixed */
    left: 0;
    right: 0;
    z-index: 9999; /* El más alto de todos */
    width: 100%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.container-cabecera {
    max-width: 1300px;
    margin: 0 auto;
    padding: 15px 25px;
}

/* Distribución en dos filas: logos arriba, título e iconos abajo */
.row {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    -moz-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 10px;
}

/* Fila de logos */
.fila-logos {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: justify;
    -moz-box-pack: justify;
    -ms-flex-pack: justify;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    width: 100%;
}

.seccion-logos {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
    gap: 40px; /* Más espacio entre logos */
    -webkit-flex-wrap: wrap;
    -moz-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

/* Logos individuales - MÁS GRANDES */
.logo-sep-link {
    display: inline-block; /* Este SÍ es botón porque va a SEP */
    cursor: pointer;
}

.logo-sep {
    height: 70px; /* Aumentado significativamente */
    width: auto;
    display: block;
    border: 0;
}

.logo-tecnm {
    height: 75px; /* Aumentado significativamente */
    width: auto;
    display: block;
    border: 0;
    cursor: default; /* NO es botón */
}

.logo-itiz {
    height: 80px; /* Aumentado significativamente */
    width: auto;
    display: block;
    border: 0;
    cursor: default; /* NO es botón */
}

/* Fila de título e iconos */
.fila-titulo {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: justify;
    -moz-box-pack: justify;
    -ms-flex-pack: justify;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    width: 100%;
    border-top: 1px solid #eaeaea;
    padding-top: 12px;
}

/* Título del instituto - GRANDE Y VISIBLE */
.titulo-instituto {
    font-size: 28px;
    font-weight: bold;
    color: #6a1b32; /* Color institucional */
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    padding: 0;
    font-family: 'Arial', 'Helvetica', sans-serif;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
}

/* Iconos a la derecha */
.seccion-iconos {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-pack: end;
    -moz-box-pack: end;
    -ms-flex-pack: end;
    -webkit-justify-content: flex-end;
    justify-content: flex-end;
}

.idiomas {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    gap: 15px;
    -webkit-box-align: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
    margin: -5px 0 0 -5px;
}

.idiomas > * {
    margin: 5px 0 0 5px;
}

.idiomas a {
    display: inline-block;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    transition: all 0.3s ease;
    cursor: pointer;
}

.idiomas a:hover {
    -webkit-transform: translateY(-3px);
    -moz-transform: translateY(-3px);
    transform: translateY(-3px);
}

.idiomas img {
    height: 40px; /* Iconos también más grandes */
    width: auto;
    display: block;
    border: 0;
    border-radius: 6px;
    -webkit-box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    -moz-box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

/* Efecto hover solo para SEP (que sí es botón) y los iconos */
.logo-sep-link:hover .logo-sep {
    -webkit-transform: scale(1.08);
    -moz-transform: scale(1.08);
    transform: scale(1.08);
    -webkit-transition: transform 0.3s ease;
    -moz-transition: transform 0.3s ease;
    transition: transform 0.3s ease;
}

/* Media Queries */
@media screen and (max-width: 992px) {
    .logo-sep { height: 60px; }
    .logo-tecnm { height: 65px; }
    .logo-itiz { height: 70px; }
    .titulo-instituto { font-size: 24px; }
}

@media screen and (max-width: 768px) {
    .u-noPaddingContainer {
        top: 110px;
    }
    
    .fila-logos {
        -webkit-flex-direction: column;
        -moz-flex-direction: column;
        -ms-flex-direction: column;
        flex-direction: column;
        gap: 15px;
    }
    
    .seccion-logos {
        -webkit-box-pack: center;
        -moz-box-pack: center;
        -ms-flex-pack: center;
        -webkit-justify-content: center;
        justify-content: center;
        gap: 25px;
    }
    
    .fila-titulo {
        -webkit-flex-direction: column;
        -moz-flex-direction: column;
        -ms-flex-direction: column;
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .titulo-instituto {
        font-size: 22px;
        text-align: center;
    }
    
    .logo-sep { height: 55px; }
    .logo-tecnm { height: 60px; }
    .logo-itiz { height: 65px; }
    .idiomas img { height: 35px; }
}

@media screen and (max-width: 480px) {
    .u-noPaddingContainer {
        top: 130px;
    }
    
    .seccion-logos {
        gap: 20px;
    }
    
    .logo-sep { height: 45px; }
    .logo-tecnm { height: 50px; }
    .logo-itiz { height: 55px; }
    .titulo-instituto { font-size: 18px; }
    .idiomas img { height: 30px; }
}
/* --- Carrusel de Anexos --- */
.anexo-carousel-container {
    position: relative;
    max-width: 1000px;
    margin: auto;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

.carousel-slides-anexos {
    display: flex;
    width: 100%;
}

.carousel-slide-anexos {
    display: none; /* Se ocultan por defecto */
    justify-content: space-around;
    align-items: center;
    width: 100%;
    transition: opacity 0.5s ease-in-out;
}

.carousel-slide-anexos.active {
    display: flex !important; /* Solo se muestra la activa */
}

/* Estilo de los contenedores de imágenes individuales */
.carousel-slide-anexos div {
    flex: 1;
    text-align: center;
    padding: 10px;
}

.carousel-slide-anexos img {
    max-width: 100%;
    height: auto;
    max-height: 100px; /* Ajusta según el tamaño de tus banners */
    transition: transform 0.3s ease;
}

.carousel-slide-anexos img:hover {
    transform: scale(1.05);
}

/* Botones de navegación */
.prev-anexos, .next-anexos {
    cursor: pointer;
    background-color: rgba(0,0,0,0.1);
    color: #333;
    font-weight: bold;
    font-size: 24px;
    border: none;
    padding: 10px 15px;
    border-radius: 50%;
    transition: 0.3s;
    user-select: none;
    z-index: 10;
}   
/* ======================================== */
/* SITIOS DE INTERÉS                        */
/* ======================================== */

.sitios-interes-section {
    background-color: #eee;
    width: 85%;
    margin: 20px auto;
    max-width: 1500px;
    border-radius: 8px;
}

.sitios-interes-section h2 {
    color: #1b396a;
    font-size: 2rem;
    font-weight: 300;
    text-align: center;
    padding: 20px 0 10px;
    margin: 0;
}

.sitios-interes-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 20px 15px;
    gap: 20px;
}

.sitio-item {
    flex: 0 0 calc(25% - 20px);
    max-width: 200px;
    text-align: center;
    padding: 10px;
}

.img-interes {
    max-height: 80px;
    width: auto;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: grayscale(20%);
}

.img-interes:hover {
    transform: scale(1.1);
    filter: grayscale(0%);
}

/* ======================================== */
/* STICKY REDES SOCIALES                     */
/* ======================================== */

.sticky-container {
    position: fixed;
    right: 0;
    top: 250px;
    z-index: 1100;
}

.sticky {
    padding: 0;
    margin: 0;
    list-style: none;
}

.sticky li {
    list-style-type: none;
    background-color: #ffffff;
    margin-bottom: 15px;
    height: 48px;
    width: 48px;
    display: flex;
    align-items: center;
    overflow: hidden;
    transition: width 0.5s cubic-bezier(0.18, 0.89, 0.32, 1.28), background-color 0.3s;
    border-radius: 10px 0 0 10px;
    box-shadow: -3px 3px 10px rgba(0,0,0,0.2);
    cursor: pointer;
}

.sticky li:hover {
    width: 165px;
}

.sticky li.fb-btn:hover { background-color: #1877F2; }
.sticky li.yt-btn:hover { background-color: #FF0000; }

.sticky li img {
    min-width: 48px;
    height: auto;
    padding: 10px;
    transition: transform 0.5s, filter 0.3s;
}

.sticky li:hover img {
    filter: brightness(0) invert(1);
    transform: rotate(360deg);
}

.sticky li a {
    text-decoration: none !important;
    color: #333;
    font-weight: bold;
    font-size: 15px;
    white-space: nowrap;
    padding-left: 10px;
    transition: color 0.3s;
}

.sticky li:hover a {
    color: #ffffff !important;
}

/* ======================================== */
/* CONTACTO ITIZ - VERSIÓN MEJORADA         */
/* ======================================== */

#contacto-itiz {
    background: linear-gradient(135deg, #1b396a 0%, #2a4a8a 100%);
    color: white;
    width: 100%;
    padding: 60px 0 30px;
    position: relative;
    z-index: 1;
}

#contacto-itiz .contacto-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

#contacto-itiz .contacto-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

#contacto-itiz .contacto-texto {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    font-size: 1rem;
    padding-left: 55px;
}

#contacto-itiz .contacto-enlaces {
    list-style: none;
    padding: 0;
    margin: 0;
}

#contacto-itiz .contacto-enlaces li {
    margin-bottom: 15px;
}

#contacto-itiz .contacto-enlaces a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 8px 15px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
}

#contacto-itiz .contacto-enlaces a:hover {
    background: rgba(212, 175, 55, 0.2);
    color: #d4af37;
    transform: translateX(5px);
}

#contacto-itiz .contacto-enlaces i {
    width: 20px;
    color: #d4af37;
}

#contacto-itiz .social-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

#contacto-itiz .social-icon:hover {
    background: #d4af37;
    color: #1b396a;
    transform: scale(1.1);
}

#contacto-itiz .mapa-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    border: 3px solid rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
}

#contacto-itiz .mapa-img:hover {
    border-color: #d4af37;
    transform: scale(1.02);
}

#contacto-itiz .btn-mapa {
    display: inline-block;
    padding: 10px 25px;
    background: rgba(212, 175, 55, 0.2);
    color: #d4af37;
    text-decoration: none;
    border-radius: 30px;
    border: 1px solid #d4af37;
    transition: all 0.3s ease;
    font-weight: 600;
}

#contacto-itiz .btn-mapa:hover {
    background: #d4af37;
    color: #1b396a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

#contacto-itiz .copyright {
    color: rgba(255, 255, 255, 0.7);
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    #contacto-itiz {
        padding: 40px 0 20px;
    }
    
    #contacto-itiz .contacto-card {
        margin-bottom: 20px;
    }
    
    #contacto-itiz .contacto-texto {
        padding-left: 0;
    }
}
#contacto-itiz .row{
    display:flex !important;
    flex-direction:row !important;
    justify-content:space-between;
    align-items:stretch;
    gap:20px;
}

#contacto-itiz .row > div{
    flex:1;
    min-width:280px;
}
