/* Estilos Globales y Reseteo Básico */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&display=swap');
:root {
    --primary-color: #013769; /* Azul oscuro - Similar al logo */
    --secondary-color: #F89C20; /* Naranja - Similar al logo */
    --accent-color: #00B1EB; /* Azul claro - Similar al logo */
    --text-color: #333;
    --light-bg: #f9f9f9;
    --white: #ffffff;
    --dark-grey: #555;
    --light-grey-border: #ddd;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;    
}

html {
    scroll-behavior: smooth; /* Para un scroll suave al hacer clic en enlaces internos */
}

/* Respeta la preferencia del usuario de reducir movimiento */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden; /* Evita el scroll horizontal */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

h2 {
    font-family: "Oswald", sans-serif;
    text-align: center;
    font-size: 2.2em;
    margin-top: 60px;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

p {
    margin-bottom: 15px;
}

a {
    color: #0077A8; /* Cian oscuro: 4.99:1 sobre blanco (cumple AA); el cian original daba 2.5:1 */
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--primary-color); /* Texto oscuro sobre naranja: contraste AA (el blanco daba 2.15:1) */
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    margin-top: 10px;
}

.button:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    text-decoration: none;
}

.button-centered {
    display: block;
    width: fit-content;
    margin: 30px auto;
}

header {
    width: 100%;
    min-height: 550px;
    background: linear-gradient(rgba(0, 0, 0, 0.317), rgba(0, 0, 0, 0.427)), url(../images/fotonueva.webp) no-repeat center center/cover;
    display: flex;  
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--white);
    text-align: center;
    position: relative;

}

.header-content {
    z-index: 2; 
    padding-top: 100px; 
    width: 100%; 
}

.hero-text h1 {
    font-size: 3.5em;
    margin-bottom: 10px;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.hero-text p {
    font-size: 1.5em;
    font-style: italic;
    color: var(--white);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
    margin-bottom: 0;
}

.navbar-container {
    width: 100%;
    position: absolute; 
    top: 0;
    left: 0;
    background-color: transparent; 
    transition: background-color 0.3s ease, padding 0.3s ease;
    padding: 15px 0;
    z-index: 100;
}

.navbar-container.sticky {
    position: fixed;
    background-color: var(--primary-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    padding: 10px 0;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo img {
    height: 60px;
    transition: height 0.3s ease;
}

.navbar-container.sticky .logo img {
    height: 50px;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: var(--white);
    font-weight: bold;
    font-size: 1.1em;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
}

nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

nav ul li a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Menú hamburguesa (oculto en desktop) */
.burger {
    display: none; /* Oculto por defecto en desktop */
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    z-index: 20; /* Por encima del nav si fuera necesario */
    background: transparent;
    border: 0;
    padding: 0;
}

.burger div {
    width: 30px;
    height: 3px;
    background-color: var(--white);
    border-radius: 5px;
    transition: all 0.3s linear;
}

section {
    padding: 20px 0;
    scroll-margin-top: 90px; /* Evita que la navbar fija tape el título al saltar a una ancla */
}

section:nth-of-type(odd) { /* Para alternar colores de fondo entre secciones */
    background-color: var(--light-bg);
}

section:nth-of-type(even) {
    background-color: var(--white);
}

/* Sección Acerca de la Escuela */
#about-school .about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px; /* Mayor espacio entre elementos */
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

#about-school .about-content img {
    max-width: 450px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

#about-school .about-content p {
    flex: 1;
    text-align: left;
    min-width: 300px;
    font-size: 1.1em; /* Texto un poco más grande */
    line-height: 1.8;
}

#hero-banner{
    width: 100%; /* 100vw generaba scroll horizontal por la barra de scroll */
    height: 550px;
    background-color:#261964;
    background-image: url(../images/banner2.webp);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: top;
   
}

#hero-banner img{
    width: 100%;
    height: 650px;
    object-fit: cover;
} 

.tecnicaturas-container, .projects-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    max-width: 1200px;
    height: auto;
    margin: 0 auto;
    padding: 0 20px;
}

.tecnicatura-card, .project-card {
    background-color: var(--white);
    border: 1px solid var(--light-grey-border);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    padding: 20px;
    text-align: justify;
    max-width: 350px;
    flex: 1 1 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex; 
    flex-direction: column;
    justify-content: space-between;
}

.tecnicatura-card:hover, .project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.tecnicatura-card h3, .project-card h3 {
    color: var(--primary-color);
    font-size: 1.8em;
    margin: 15px;
    text-align: center;
}

.tecnicatura-card p, .project-card p {
    color: var(--dark-grey);
    margin-bottom: 20px;
    flex-grow: 1;
}

.tecnicatura-card img{
    height: 70px;
     border-radius: 8px;
     object-fit: cover;
}
/* Proyectos Destacados (específico) */
.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px; /* Ligeros bordes redondeados para la imagen */
    margin-bottom: 20px;
}

.project-card h3 {
    font-size: 1.6em;
    margin-top: 0;
    padding: 0 15px;
}

.project-card p {
    padding: 0 15px;
}


#location-preview img {
    max-width: 800px; /* Imagen más grande */
    width: 800px;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    margin: 30px 0;
}

.ubicacion{
    display: flex;
    justify-content:center;
    align-items: center;
    gap: 5rem;
}

.direccion ul a{
    font-size: 1.2rem;
}

/* Slider de imágenes */
#image-slider {
    text-align: center;
    margin-bottom: 6rem;
}

.slider-container {
    position: relative;
    max-width: 900px;
    margin: auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.slide {
    display: none;
}

.slide img {
    width: 100%;
    height: 450px; 
    object-fit: contain;
    vertical-align: middle;
}

.text {
    color: var(--white);
    font-size: 1.5em;
    padding: 10px 12px;
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.427);
    font-weight: bold;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border: 0; /* Ahora son <button>: sin borde por defecto */
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.5);
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}
.prev{
    left: 0;

}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}

.dot-container {
    text-align: center;
    padding-top: 20px;
}

.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 4px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active, .dot:hover {
    background-color: var(--secondary-color);
}

.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1rem; /* Más padding superior */
    text-align: center;
}

#contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: flex-start; /* Alinea los elementos al inicio */
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: left;
}

#contact-info h3, #contact-info h4 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 1.6em;
}

#contact-info .contact-details {
    flex: 1 1 300px;
}

#contact-info .contact-details p {
    margin: 10px 0;
    font-size: 1.1em;
    font-weight: bold;
    text-align: start;
}

#contact-info .contact-details p a {
    color: var(--white);
    text-decoration: underline;
}

#contact-info .contact-details p a:hover {
    color: var(--accent-color);
}

.contact-details img{
    width:14rem;
}



#contact-info .social-media {
    margin-top: 20px;
}

#contact-info .social-media a {
    color: var(--white);
    font-size: 4em; /* Tamaño de los íconos SVG (width/height = 1em) */
    display: inline-flex;
    align-items: center;
    margin-right: 4rem;
    transition: color 0.3s ease;
}

#contact-info .social-media a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

.map-container {
    flex: 1 1 450px; /* Flex-basis ligeramente mayor para el mapa */
    max-width: 600px;
    text-align: center; /* Centra el título del mapa */
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: 0; /* Asegura que no haya borde predeterminado */
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.copyright {
    text-align: center;
    margin-top: 50px; /* Más margen superior */
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 25px;
    font-size: 0.9em;
}

/* Media Queries para Responsividad */
@media (max-width: 1024px) {
    .nav-links li {
        margin-left: 15px;
    }

    #about-school .about-content img {
        max-width: 350px;
    }

    .slider-container {
        max-width: 700px;
    }

    .slide img {
        height: 380px;
    }

    .text {
        font-size: 1.3em;
    }
}

@media (max-width: 768px) {
    #hero-banner {
    /* ¡Cambia la imagen aquí! */
    background-image: url(../images/BANNERLOGO.webp); 
    
  }
   
    header {
        min-height: 400px;
    }

    .header-content {
        padding-top: 80px;
    }
    
    .hero-text h1 {
        font-size: 2.5em;
    }

    .hero-text p {
        font-size: 1.2em;
    }

    /* Navbar en móviles */
    .burger {
        display: flex; /* Muestra el icono de la hamburguesa */
        /* z-index: 1000; */
    }

    nav ul {
        position: fixed;
        right: 0;
        top: 0;
        height: 100vh;
        width: 70%;
        background-color: var(--primary-color);
        flex-direction: column;
        align-items:flex-start;
        transform: translateX(100%); /* Oculta el menú fuera de la pantalla */
        transition: transform 0.5s ease-in-out;
        padding: 100px 4rem;
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
        /* z-index:;  Por debajo del burger, pero encima del contenido */
    }

    nav ul.nav-active {
        transform: translateX(0%); /* Muestra el menú */
    }

    nav ul li {
        opacity: 0; /* Oculta los links por defecto */
        margin: 20px 0;
    }
    
    /* Animación de los links al abrir el menú */
    nav ul.nav-active li:nth-child(1) { transition: all 0.5s ease 0.2s; opacity: 1; }
    nav ul.nav-active li:nth-child(2) { transition: all 0.5s ease 0.3s; opacity: 1; }
    nav ul.nav-active li:nth-child(3) { transition: all 0.5s ease 0.4s; opacity: 1; }
    nav ul.nav-active li:nth-child(4) { transition: all 0.5s ease 0.5s; opacity: 1; }
    nav ul.nav-active li:nth-child(5) { transition: all 0.5s ease 0.6s; opacity: 1; }
    nav ul.nav-active li:nth-child(6) { transition: all 0.5s ease 0.6s; opacity: 1; }

    /* Animación del icono de hamburguesa */
    .burger.toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); }
    .burger.toggle .line2 { opacity: 0; }
    .burger.toggle .line3 { transform: rotate(45deg) translate(-5px, -6px); }

    /* Contenido general */
    h2 {
        font-size: 2em;
        margin-top: 40px;
        margin-bottom: 30px;
    }

    section {
        padding: 50px 0;
    }

    #about-school .about-content {
        flex-direction: column;
        text-align: center;
    }

    #about-school .about-content img {
        margin-bottom: 30px;
    }

    .tecnicatura-card, .project-card {
        padding: 25px;
    }

    
    #location-preview img {
        max-width: 90%; 
        /* width: 800px; */
        height: 10rem;
        object-fit: cover;
        border-radius: 8px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.15);
        margin: 30px 0;
    }

    .ubicacion{
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }



    .slider-container {
        max-width: 90%;
    }

    .slide img {
        height: 300px;
    }

    .text {
        font-size: 1.1em;
        padding: 10px;
    }

    #contact-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }

    #contact-info .contact-details, .map-container {
        flex: 1 1 100%; /* Ocupan todo el ancho */
        max-width: 100%;
    }

    #contact-info h3, #contact-info h4 {
        margin-bottom: 10px;
    }
    
    #contact-info .social-media {
        margin-top: 10px;
    }

    .map-container iframe {
        height: 300px;
    }

    .copyright {
        margin-top: 30px;
        padding-top: 15px;
    }
    .contact-details img{
        width: 5rem;
    }

}

@media (max-width: 480px) {
    .logo img {
        height: 45px;
    }

    .hero-text h1 {
        font-size: 1.8em;
    }

    .hero-text p {
        font-size: 1em;
    }
    
    h2 {
        font-size: 1.6em;
    }

    section {
        padding: 20px 0;
    }

    .tecnicatura-card, .project-card {
        padding: 20px;
    }

    .tecnicatura-card h3, .project-card h3 {
        font-size: 1.4em;
    }

    .slide img {
        height: 250px;
    }

    .text {
        font-size: 0.9em;
        padding: 8px;
    }

    .prev, .next {
        padding: 12px;
        font-size: 18px;
    }

    .contact-details img{
    width:5rem;
}
}