:root {
    --marron-oscuro: #4b2c0d;
    --marron-principal: #724300;
    --beige: #f6ecda;
    --beige-claro: #f7f1e7;
    --beige-oscuro: #E6D7B8;
    --naranja-tierra: #b27a0b;
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'ubuntu' , sans-serif;
    background-color: var(--beige-claro);
    color: var(--marron-oscuro);
}

/* MENSAJE DE OFERTA */

/* contenedor  abuelo mensaje de oferta e inicio sesion */
.top-banner{
    background-color: var(--beige);
}

/* contenedor  padre mensaje de oferta e inicio sesion */
.banner-container{
    display: flex;
    align-items: center;
    color: var(--naranja-tierra);
    padding: 10px;
}

/* span oferta */
.offer-message{
    flex: 9;
    text-align: center;
    font-size: 1rem;
}

/* login */
.login-link {
    color: var(--naranja-tierra);
    border-left: 1px solid var(--naranja-tierra);
    padding: 0.5rem 1.2rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    flex: 1;
}

.login-link:hover {
    background-color: var(--beige);
    border: none;
    color: var(--marron-oscuro);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* BARRA DE NAVEGACION  */

.navbar {
    background-color: var(--beige-claro);
    padding: 1rem 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    /* box-shadow: 0 2px 10px rgba(0,0,0,0.2); */
    position: relative;
    margin: 0 3.5rem;
}

/* logo  */
.logo{
    padding: 0;
    margin-left: 20px;
    
}

.logo-img-nav{
    object-fit: cover; 
    flex-wrap: 2;
    width: 10.5rem;
    height: 4rem;
}

.logo:hover {
    transform: scale(1.05);
}

/* ===== MODAL LOGO PANTALLA COMPLETA ===== */
.logo-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 2rem;
}

.logo-modal.active {
    display: flex;
}

.modal-logo-content {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-logo-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: var(--naranja-tierra);
    color: var(--beige);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-logo-close:hover {
    background: var(--naranja-claro);
    transform: scale(1.1);
    color: rgb(191, 26, 26);
}

.modal-logo-container {
    padding: 2rem;
    background: var(--beige);
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: logoModalAppear 0.4s ease;
    aspect-ratio: 16/8;

}

@keyframes logoModalAppear {
    from {
        opacity: 0;
        transform: scale(0.8) rotate(-5deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}

.modal-logo-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    display: block;
}

/* contenedor de enlaces a la derecha */
.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

/* todos los a incluyendo el logo que es el enlace de inicio */

.link-nav-a {
    color: var(--marron-oscuro);
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    border-radius: 4px;
    position: relative;
    display: inline-block;
}

.nav-links .link-nav-a:hover {
    color: var(--beige-claro);
    background-color: var(--marron-oscuro);
    transform: scale(1.1);
}

/* ESTO FUE DESPLAZADO ================================================================= */
/* estos son los enlaces desplegables */

/* .dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--marron-oscuro);
    min-width: 180px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 100;
    top: 110%;
    left: 0;
    border-radius: 4px;
    overflow: hidden;
    animation: fadeIn 0.3s ease;
}

.dropdown-content a {
    color: var(--beige-claro);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
    transform-origin: left center;
}

.dropdown-content a:hover {
    background-color: var(--naranja-tierra);
    transform: scale(1.05);
    padding-left: 20px;
}

.dropdown:hover .dropdown-content {
    display: block;
    left: -6px;
}

.dropdown-toggle::after {
    content: ' ▼';
    font-size: 0.7em;
}

/* animacion para los traslados de .dropdown-content */

/* @keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}  =================================================================================*/
.admision-button{
    background-color: var(--naranja-tierra);
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.admision-button a{
    color: var(--beige-claro);
    font-weight: 600;
    padding: 7px;
    text-decoration: none;
}

.admision-button:hover{
    opacity: 0.8;
    transition: .3s;
}

/* funcionalidad en proceso menu hamburguesa visible (DESPLAZADO)=========================== */
/* .dropdown-h{
    position: relative;
    margin: 0;
    padding: 0;
}

.dropdown-link-h{
    color: var(--marron-oscuro);
    font-size: 1.3rem;
    font-weight: 900;
    text-decoration: none;
    background-color: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;

}

.dropdown-link-h:hover{
    transform: scale(1.55);
}


.dropdown-content-h {
    display: none;
    position: absolute;
    background-color: rgba(0, 0, 0, .8);
    min-width: 280px;
    height: auto;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 100;
    top: 50px;
    right: -30px;
    border-radius: 2px;
    overflow: hidden;
    animation: fadeInH 0.3s ease;
}


.dropdown-content-h a {
    color: var(--beige-claro);
    padding: 12px 16px;
    text-decoration: none;
    text-align: end;
    display: block;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.dropdown-content-h a:hover {
    background-color: var(--naranja-tierra);
    transform: scale(1.05);
    padding: 1.5rem 1rem;
}

@keyframes fadeInH {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateY(0); }
} */

/* ===== HEADER CARRUSEL ===== */

.page-header {
    width: 100%;
    background-color: var(--marron-claro);
    position: relative;
}

/* contenedo padre todo */
.header-carousel {
    position: relative;
    width: 100%;
    height: 73vh;
    overflow: hidden;
}

/* padre de solo el carrusel que contiene un contenedor y dentro su respectiva img */
.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* padre de la imagen */
.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 30%;
    display: block;
}

/* Botones de navegación */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(139, 69, 19, 0.7);
    color: var(--beige-claro);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--naranja-tierra);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 20px;
}

.prev-btn i{margin-right: 3px;}

.next-btn {
    right: 20px;
}

.next-btn i{
    margin-left: 3px;
}

/* Indicadores de la parte inferior*/
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--beige);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--beige);
    transform: scale(1.2);
}

.indicator:hover {
    background: var(--naranja-claro);
    border-color: var(--naranja-claro);
}

/* ===== SPAN FLOTANTE ===== */

.floating-element {
    position: absolute;
    bottom: 2%;
    left: 10%;
    background: var(--beige-claro); 
    border-radius: 12px;
    padding: 0.5rem 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    z-index: 5;
    min-width: 250px;
    cursor: pointer;
}

.floating-row {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
}

.floating-row:last-child {
    margin-bottom: 0;
}

.floating-image {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.floating-image:hover {
    transform: scale(1.05);
}

.icon-text {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
    color: var(--beige);
    padding: 0;
}

.icon-text i {
    font-size: 5.5rem;
    color: var(--marron-oscuro);
    animation: pulse 2s infinite;
}

/* Keyframes para la animación pulse */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.container-spanText {
    display: flex;
    flex-direction: column;
    text-decoration: none;

}

.container-spanText:hover{
    opacity: 0.8;
}

.container-spanText p{
    color: var(--naranja-tierra);
    font-size: 1.6rem;
    line-height: .5;
    margin-bottom: 1rem;
    text-decoration: none;

}

.container-spanText p:last-child{
    font-weight: 600;
}

/* ===== SECCIÓN FORJANDO JUVENTUD ===== */
.about-section {
    background-color: var(--beige-claro);
    padding: 4rem 1rem;
    position: relative;
}

.section-container {
    max-width: 1000px;
    margin: 0 auto;
}

/* Títulos */
.titles-container {
    text-align: center;
    margin-bottom: 3rem;
}

.main-title {
    font-size: 3rem;
    color: var(--naranja-tierra);
    font-weight: 400;
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.sub-title {
    font-size: 3rem;
    color: var(--naranja-tierra);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.year-text {
    font-size: 1rem;
    color: var(--marron-principal);
    font-weight: 400;
    letter-spacing: 2px;
    margin-top: 20px;
}

/* Grid de contenido */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.text-content {
    padding-right: 1rem;
}

.description {
    color: var(--marron-principal);
    line-height: 1.5;
    font-size: 1.8rem;
    margin: 0 4rem;
    font-weight: 400;
}

.image-contain {
    position: relative;

}

.content-image {
    width: 100%;
    height: 90%;
    object-fit: contain;
    border-radius: 12px;
}

.content-image {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-image:hover {
    transform: scale(1.02);
}

/* ===== SECCIÓN PROPUESTA ACADEMICA ===== */

.features-section {
    background-color: var(--beige-claro);
    padding: 4rem 1rem;
    position: relative;
    height: auto;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 10;
}

.section-title {
    font-size: 2.6rem;
    color: var(--naranja-tierra);
    font-weight: 400;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--naranja-tierra), var(--naranja-claro));
    border-radius: 2px;
}

/* Bloques con posicionamiento fijo para el efecto de apilamiento */
.feature-block {
    position: sticky;
    top: 100px; 
    margin-bottom: 0;
    background: var(--beige);
    border-radius: 15px;
    padding: 2.5rem 5.5rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    transition: all 0.5s ease;
    opacity: 0;
    transform: translateY(100px);
}

/* Estados de los bloques cuando están activos */
.feature-block.active {
    opacity: 1;
    transform: translateY(0);
}

.feature-block.stacking {
    z-index: 2;
}

.feature-block.top {
    z-index: 1;
}

/* Orden de apilamiento CON ZI*/
.block-1 { z-index: 3;
    background-color: var(--naranja-tierra);
}
.block-2 { z-index: 4; 
    background-color: var(--marron-principal);
}
.block-3 { z-index: 5; 
    background-color: var(--marron-oscuro);
}

.feature-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.feature-text {
    padding-right: 1rem;
    padding-left: 1rem;
}

.feature-title {
    font-size: 4.5rem;
    color: var(--beige-claro);
    margin-bottom: 2rem;
    font-weight: 600;
}

.feature-description {
    color: var(--beige-claro);
    line-height: 1.7;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    padding: 1rem 2rem 1rem 0;
}

.feature-btn {
    background: var(--marron-principal);
    color: var(--beige);
    border: none;
    padding: 0.3rem 0.5rem;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 3rem;
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.3);
}

.btn-deportiva{
    background-color: var(--naranja-tierra);
}

.feature-btn:hover {
    background: var(--marron-principal);
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(210, 105, 30, 0.4);
}

.feature-btn i {
    font-size: 2rem;
    transition: transform 0.3s ease;
    height: auto;
    position: relative;
    left: 5px;
    height: 2rem;
    background-color: var(--beige-claro);
    color: var(--marron-oscuro);
    padding: 0;
    border-radius: 5px;
}


.feature-image {
    position: relative;
}

.block-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* ===== SECCIÓN HISTÓRICA ===== */
.historical-section {
    background-color: var(--beige-claro);
    padding: 2rem 1rem;
    margin: 1rem 0;
}

.historical-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    border-top: 2px solid var(--naranja-tierra);
    border-bottom: 2px solid var(--naranja-tierra);
}

.historical-image {
    position: relative;
    width: auto;
    height: 100%;
}

.historical-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 3px solid var(--beige-oscuro);
    transition: transform 0.3s ease;
}

.historical-img:hover {
    transform: scale(1.02);
}

.historical-text {
    padding-left: 1rem;
}

.historical-paragraph {
    color: var(--marron-principal);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    text-align: justify;
}

.historical-paragraph:last-of-type {
    margin-bottom: 2rem;
}

.historical-quote {
    color: var(--marron-oscuro);
    font-size: 1.2rem;
    font-weight: 500;
    text-align: left;
    padding: 1rem;
    position: relative;
}

/* ===== SECCIÓN NUESTROS ESTUDIANTES - ANCHO COMPLETO ===== */
.students-section {
    background-color: var(--beige-claro);
    padding: 4rem 0; 
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 0 1rem; 
}

.section-title {
    font-size: 2.6rem;
    color: var(--naranja-tierra);
    font-weight: 400;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--naranja-tierra), var(--naranja-claro));
    border-radius: 2px;
}

/* Grid de estudiantes  */
.students-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem; 
    margin: 0;
    width: 100%;
}

.student-card {
    background: var(--beige);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    margin: 0; 
}

.student-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--beige-oscuro);
}

.student-image {
    width: 100%;
    height: 450px; 
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.student-card:hover .card-image {
    transform: scale(1.1);
}

.student-info {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--beige);
}

.student-category {
    color: var(--beige-claro);
    font-size: 1.4rem; /* Un poco más grande */
    font-weight: 600;
    margin: 0;
    flex: 1;
}

.kids{
    background-color: var(--naranja-tierra);
}

.primary{
    background-color: var(--marron-principal);
}

.secundary{
    background-color: var(--marron-oscuro);
}

.student-btn {
    background-color: transparent;
    color: var(--beige);
    border: 2px solid var(--beige);
    width: 60px; /* Un poco más grande */
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
    text-decoration: none;
}

.student-btn i{
    font-size: 3rem;
    position:relative;
    top: 4px;
    color: var(--beige-claro);
    transition: all 0.3s ease;
}

.student-btn:hover{
    background: var(--beige-claro);
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 6px 20px rgba(210, 105, 30, 0.4);
}

.student-btn:hover i{
    color: var(--marron-oscuro);
}


/* ===CERTIFICADOS=== */
.container-certificado{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.certificado-title{
    text-align: center;
    position:relative;
    width: 80%;
    margin: 50px auto;
    color: var(--naranja-tierra);
    font-size: 2.6rem;
    font-weight: 400;
}

.certificado-title::before{
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    position: absolute;
    background-color: var(--naranja-tierra);
    top: 50%;
    z-index: -1;
}

.certificado-title span{
    background-color: var(--beige-claro);
    padding: 0 15px;
}

.container-certificado-img{
    width: 80%;
    margin: 50px auto 50px;
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(240px,1fr));
    gap: 1.68rem
}



.container-certificado-img img{
    width: 100%;
    cursor: pointer;
    transition: 1s;
}

.container-certificado-img img:hover{
    transform: scale(1.2);
}

.ful-img{
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, .9);
    position: fixed;
    top: 0;
    left: 0;
    display: none;
    justify-content: center;
    z-index: 1111;
}

.ful-img span{
    position: absolute;
    top: 5%;
    right: 5%;
    font-size: 30px;
    color: var(--beige-claro);
    cursor: pointer;
}
.ful-img img{
    width: 90%;
    max-width: 700px;
    margin: 4rem;
    object-fit: contain;
}

/* ===== SECCIÓN ASESOR ===== */
.final-section {
    width: 100%;
    background: var(--beige-claro);
    padding: 0;
    margin: 0;
}

.final-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
    width: 100%;
}

/* Parte izquierda - Contenido */
.final-content {
    padding: 2rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    background: var(--naranja-tierra);
}

.content-item {
    display: flex;
    justify-content: center;
    align-items: center;
}


.content-icon {
    width: 32rem;
    height: 14rem;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.content-icon:hover {
    transform: scale(1.1);
}

.content-text {
    color: var(--beige-claro);
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1.3;
    margin: 0;
    padding: 1rem;
    max-width: 80%;
}

.content-btn {
    background: var(--marron-principal);
    color: var(--beige);
    border: none;
    border-radius: 3px;
    padding: 0 1.5rem;
    height: 5rem;
    font-size: 1.4rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 2rem;
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.3);
    text-decoration: none;
}

.content-btn:hover {
    background: var(--marron-oscuro);
    box-shadow: 0 8px 25px rgba(210, 105, 30, 0.4);
    transform: scale(1.021);

}

.content-btn i {
    font-size: 4.5rem;
    transition: transform 0.3s ease;
    position: relative;
    top: 6px;
    padding: 0;
    margin: 0;
}

.content-btn:hover i{
    transform: translateX(3px);
}


/* Parte derecha - Imagen */
.final-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.section-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.final-image:hover .section-image {
    transform: scale(1.05);
}

/* ===== FOOTER  ===== */

.footer-grid {
    background-color: var(--marron-oscuro);
    color: var(--beige-claro);
    padding: 3rem 2rem 1.5rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-container {
    width: 100%;
    margin: 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

/* Primera fila - 4 columnas */
.footer-row-1 {
    display: flex;
    justify-content: space-evenly;
    gap: 2.5rem;
    align-items: start;
    margin: auto 3.5rem;
    margin-bottom: 1rem;
    
}

/* Segunda fila - 4 columnas (2 vacías) */
.footer-row-2 {
    display: flex;
    gap: 1rem;
    justify-content: space-evenly;
    align-items: start;
    padding-top: 1.5rem;
    margin: auto 3.5rem;
}

/* Estilos para las columnas de la primera fila */
.footer-logo {
    flex: 1.7;
    text-align: left;
}

.logo-img {
    width: 260px; 
    height: 100px;
    object-fit: contain;
}

.footer-links {
    flex: 1;
    text-align: left;
    margin: 0 auto;

}


.footer-links h4{
    color: var(--naranja-tierra);
    margin-bottom: 0.5rem;
    font-weight: 400;
}


.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-block;
}

.footer-links li {
    margin-bottom: 0.3rem;

}

.footer-links a {
    color: var(--beige-claro);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1rem;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-contact {
    flex: 1;
    text-align: left;
    position: relative;
    right: 15px;
}

.footer-contact i{
    font-size: 0.75rem;
    font-weight: 100;
    color: var(--naranja-tierra);
    margin-right: 3px;
}


.footer-contact p {
    margin: 0;
    color: var(--beige-claro);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Estilos para la segunda fila */
.footer-social {
    flex: 1;
    text-align: left;
}

.social-icons {
    display: flex;
    gap: 0.5rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: var(--beige-claro);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-icon:hover {
    background-color: var(--naranja-claro);
    transform: scale(1.1);
}

.footer-copyright {
    flex: 1;
    text-align: right;
    color: var(--beige-claro);
    font-size: 0.95rem;
}

.footer-copyright p {
    margin: 0;
}

/* BTN WHATSAPP */
.btn-wsp {
    position: fixed;
    width: 63px;
    height: 63px;
    bottom: 20px;
    right: 20px;
    background: white;
    color: green;
    border-radius: 50px;
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;
    font-size: 2.8rem;
    box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.3);
    z-index: 100;
    transition: all 300ms ease;
    text-decoration: none;
}

.btn-wsp:hover{
    color: white;
    background-color: green;
}

/* ===== RESPONSIVE ===== */

/* menu hamburguesa no visible */
.menu-H {
    display: none;
    background: none;
    border: none;
    color: var(--marron-oscuro);
    font-weight: 900;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;

}

.menu-H:hover{
    transform: scale(1.55);
}

/* medias querys */

@media (min-width: 1600px) {

    .navbar{
        margin: 0 10rem;
    }

    .content-icon{
        width: 40rem;
        height: 18rem;
    }

    .footer-row-1,.footer-row-2 {
        justify-content: space-around;
        margin: auto 7rem;
    }

    .btn-wsp{
        right: 50px;
    }

}


@media (max-width: 1300px) {

    .logo-img{
        margin-left: -10px;
    }

    .header-carousel {
        height: 85vh;
    }

    .floating-element{
        bottom: 5%;
    }

    .container-certificado-img{
        width: 80%;
        margin: 50px auto 50px;
        display: grid;
        grid-template-columns: repeat(auto-fit,minmax(180px,1fr));
        gap: 1.9rem
    }

    .footer-row-1,.footer-row-2{
        margin: initial 2rem;
    }

    .footer-row-1{
    gap: 1rem;

    }

    .footer-contact p{
        font-size: 0.80rem;
    }
}


@media (max-width: 1030px) {
    .navbar{
        margin: 0 2rem;
    }
    
    .nav-links {
        gap: 0.5;
        font-size: 0.8rem;
    }

    .link-nav-a{
    padding: 0.5rem 0.5rem;
    }
    
    /* HEADER */
    .carousel-slide{
        height: 90vh;
    }

    /* ELEMENTO FLOTANTE */

    .floating-element {
        bottom: 5%;
        left: 4%;
        padding: 0.8rem;
        min-width: 280px;
    }
    
    .floating-image {
        max-width: 200px;
    }
    
    .icon-text i {
        font-size: 3.5rem;
    }
    
    .container-spanText p{
        font-size: 1.2rem;
        line-height: .1;
    }

    /* SECCION JUVENTUD DE EXITO */
    
    .about-section {
        padding: 3rem 1rem 0 1rem;
    }

    /* SECCION PROPUESTA ACADEMICA */

    .features-section {
        padding: 0rem 1rem;
    }
    
    .section-title {
        font-size: 2.4rem;
    }
    
    .feature-block {
        padding: 2rem;
        top: 80px;
    }
    
    .feature-content {
        grid-template-columns: 1fr;
    }
    
    .feature-text {
        padding-right: 0;
        order: 2;
        text-align: center;
    }
    
    .feature-image {
        order: 1;
    }
    
    .feature-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .feature-description {
        font-size: 1.05rem;
        margin-bottom: 1rem;
    }
    
    .block-image {
        height: 400px;
        object-position: 50% 30%;
    }
    
    .feature-block.stacking {
        transform: scale(0.9) translateY(-30px);
    }
    
    .feature-block.top {
        transform: scale(0.85) translateY(-60px);
    }

    /* CERTIFICADOS */

    .container-certificado-img{
        width: 80%;
        margin: 50px auto 50px;
        display: grid;
        grid-template-columns: repeat(auto-fit,minmax(140px,1fr));
        gap: 0.8rem
    }

    .container-certificado-img img{
        width: 100%;
        cursor: pointer;
        transition: 1s;
    }

    /* ASESOR */

    .content-text{
        font-size: 1.3rem;
    }

    /* FOOTER */

    .footer-grid {
        padding: 2.5rem 1rem 1rem;
    }
    
    .footer-container {
        gap: 2rem;
    }

    .footer-row-1 {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 2rem;
        margin: initial;
    }
    
    .footer-row-2 {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
        text-align: center;
        margin: initial;
    }
    
    .footer-logo,
    .footer-info,
    .footer-links,
    .footer-contact {
        flex: 1 1 calc(50% - 1rem);
        min-width: 200px;
        text-align: center;
    }

    .footer-contact{
    right: 15px;
    }
    
    .footer-social {
        flex: 1 1 100%;
        order: 1;
        text-align: center;
    }
    
    .footer-copyright {
        flex: 1 1 100%;
        order: 2;
        text-align: center;
    }
    
    .empty-space {
        display: none; /* Ocultamos los divs vacíos en responsive */
    }
    
    .logo-img {
        width: 220px; 
        height: 80px;
    }
    
    .social-icons {
        justify-content: center;
    }

    .footer-contact p{
        font-size: 0.95;
    }
}

/* QUERYS 900=============================================== */
@media (max-width: 950px) {
    /* SECCION ASESOR */
    .final-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto 400px;
        min-height: auto;
    }
    
    .final-content {
        padding: 3rem 2rem;
        gap: 0.8rem;
        order: 2;
    }

    .content-icon {
        width: 20rem;
        height: 10rem;
    }

    
    .final-image {
        order: 1;
        height: 400px;
    }
    
    .content-text {
        max-width: 70%;
    }
    
    .content-btn {
        padding: 0 2.2rem;
        font-size: 1rem;
        height: 4rem;
    }

    .content-btn i {
        font-size: 1;

    }
}
/* RESOLUCION MENOR A 800PX */
@media (max-width: 800px) {
    /* BARRA DE NAVEGACION */
    .navbar {
        flex-wrap: wrap;
        padding: 0rem;
        justify-content: space-between;
        margin: 0;

    }

    .logo-img-nav{ 
        margin-left: 20px;
    }

    .logo-modal {
        padding: 1.5rem;
    }
    
    .modal-logo-content {
        max-width: 95vw;
        max-height: 95vh;
    }
    
    .modal-logo-container {
        padding: 1.5rem;
    }
    
    .modal-logo-close {
        top: -45px;
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
    }

    .menu-H {
        display: block;
        margin-right: 1.5rem;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0;
        margin-top: 1rem;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid var(--marron-claro);
    }

    /* .dropdown-content {
        position: static;
        width: 100%;
        box-shadow: none;
        display: none;
        background-color: var(--marron-claro);
    }

    .dropdown-content a {
        color: var(--naranja-tierra);
    }

    .dropdown-content a:hover{
        color: var(--beige-claro);
    } */

    /* .dropdown:active .dropdown-content {
        display: none;
    } */

    /* .dropdown.active .dropdown-content {
        display: none;
    }

    .dropdown-toggle::after {
        content: ' ▼';
    } */

    .admision-button{
        background-color: transparent;
        margin-bottom: 0 1rem 0;
    }

    .admision-button a{
        color: var(--marron-oscuro);
        font-weight: 400;
    }

    .admision-button:hover{
        font-weight: 600;
        background-color: var(--marron-oscuro);
        opacity: 1;
    }

    .admision-button:hover a{
        color: var(--beige-claro);

    }


    /* .dropdown-h{
        position: absolute;
        opacity: 0;
        z-index: -10;
    }


    .dropdown-link-h{
        position: absolute;
        left: -100%;
    } */

    /* HEADER */
    .header-carousel {
        height: 80vh;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .prev-btn {
        left: 10px;
    }
    
    .next-btn {
        right: 10px;
    }
    
    .carousel-indicators {
        bottom: 15px;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }

    /* ELEMENTO FLOTANTE */

    .floating-element {
        bottom: 0;
        left: -50%;
        padding: 0.8rem;
        min-width: 100px;
    }
    
    .floating-image {
        max-width: 120px;
    }
    
    .icon-text i {
        font-size: 2rem;
    }
    
    .container-spanText p{
        font-size: 0.8rem;
        line-height: .1;
    }

    /* SECCION JUVENTUD DE EXITO */
    
    .about-section {
        padding: 3rem 1rem 0 1rem;
    }
    
    .main-title {
        font-size: 3rem;
    }
    
    .sub-title {
        font-size: 2.5rem;
    }
    
    .content-grid {
        gap: 3rem;
    }
    
    .content-image {
        height: 350px;
    }
    
    .description {
        font-size: 1.2rem;
        text-align: justify;
        margin: 0 2rem;
    }
    /* PROPUESTA ACADEMICA */
    .feature-title {
        margin-bottom: 0.5rem;
    }

    .feature-description {
        margin-bottom: 0.5rem;
    }


    /* SECCION HISTORICA */

    .historical-section {
        padding: 3rem 1rem;
        margin: 1.5rem 0;
    }
    
    .historical-content {
        gap: 3rem;
    }
    
    .historical-img {
        height: 450px;
    }
    
    .historical-text {
        padding-left: 0.5rem;
    }
    
    .historical-paragraph {
        font-size: 0.9rem;
    }
    
    .historical-quote {
        font-size: 1.3rem;
        padding: 1.5rem;
    }

    /* SECCION NUESTROS ESTUDIANTES */
    .students-section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 2.4rem;
    }
    
    .students-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 1rem; /* Gap más pequeño */

    }
    
    .student-card:nth-child(3) {
        grid-column: 1 / -1;
    }

    .student-card{
        width: 500px;
        height: auto;
        display: flex;
        justify-content: center;
        flex-direction: column;
        margin: auto;
    }
    
    .student-image {
        height: 600px;
    }
    
    .student-info {
        padding: 1.2rem;
    }
    
    .student-category {
        font-size: 1.3rem;
    }

    /* CERTIFICADOS */
    .certificado-title::before{
        width: 0;
    }

    .container-certificado-img{
        width: 80%;
        margin: 50px auto 50px;
        display: grid;
        grid-template-columns: repeat(auto-fit,minmax(105px,1fr));
        gap: 0.7rem
    }
}

/* RESOLUCION MENOR A 600PX */

@media (max-width: 600px) {
    
    /* NAVBAR */

    .logo-modal {
        padding: 1rem;
    }
    
    .modal-logo-content {
        max-width: 98vw;
        max-height: 98vh;
    }
    
    .modal-logo-container {
        padding: 1rem;
        border-radius: 10px;
    }
    
    .modal-logo-close {
        top: -40px;
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
    
    /* HEADER CARRUSEL */
    
    .header-carousel{
        height: 50vh;
    }

    .carousel-slide{
        height: 100%;
    }

    .slide-image{
        object-fit: cover;
        object-position: 50% 20%;
    }

    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    /* elemento flo */

    .floating-element{
        opacity: 0;
    }

    /* SECCION FORJANDO JUVENTUD */
    .about-section {
        padding: 2rem 1rem;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .sub-title {
        font-size: 1.8rem;
    }
    
    .year-text {
        font-size: 1rem;
    }
    
    .content-grid {
        gap: 1rem;
    }
    
    .content-image {
        height: 250px;
    }

    .content-image {
        height: 100%;
    }

    
    .description {
        font-size: 0.9rem;
        line-height: 1.6;
        padding: 0;
        margin: 0 1rem;
    }

    /* SECCION PROPUESTA ACADEMICA */
    
    .section-title {
        font-size: 2rem;
    }
    
    .feature-block {
        padding: 1.5rem;
        top: 60px;
    }
    
    .feature-title {
        font-size: 1.6rem;
        margin-bottom: initial;
    }
    
    .feature-description {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: initial;
    }
    
    .block-image {
        height: 250px;
    }
    
    .feature-btn {
        padding: 0.9rem 1.8rem;
        font-size: 1rem;
    }

    /* SECCION HISTORICA */
    .historical-section {
        padding: 2.5rem 1rem;
        margin: 1rem 0;
    }
    
    .historical-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .historical-image {
        order: 1;
    }
    
    .historical-text {
        order: 2;
        padding-left: 0;
    }
    
    .historical-img {
        height: 350px;
    }
    
    .historical-paragraph {
        font-size: 1rem;
        text-align: left;
        line-height: 1.7;
    }
    
    .historical-quote {
        font-size: 1.2rem;
        padding: 1.2rem;
        margin-top: 1rem;
    }

    /* NUESTROS ESTUDIANTES */
    .students-section {
        padding: 2.5rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .students-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 0.5rem; 
    }
    
    .student-card:nth-child(3) {
        grid-column: 1;
    }
    
    .student-card{
        width: 400px;
        
    }

    .student-image {
        height: 340px;
    }
    
    .student-info {
        padding: 1rem;
    }
    
    .student-category {
        font-size: 1.2rem;
    }
    
    .student-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    /* CERTIFICADOS */

    .container-certificado-img{
        width: 80%;
        margin: 50px auto 50px;
        display: grid;
        grid-template-columns: repeat(auto-fit,minmax(90px,1fr));
        gap: 0.6rem
    }

    /* SECCION ASESOR */
    .final-container {
        grid-template-rows: auto 350px;
    }
    
    .final-content {
        padding: 1rem;
        gap: 0.2rem;
    }
    
    .final-image {
        height: 350px;
    }
    
    .content-text {
        font-size: 1rem;
        line-height: 1.4;
    }
    
    .content-btn {
        height: 3rem;
        font-size: 1rem;
        gap: 1rem;
    }

    .content-btn i {
        font-size: 3rem;
    }


    /* FOOTER */

    .footer-grid {
        padding: 2rem 1rem 1rem;
    }
    
    .footer-row-1 {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        align-items: center;
    }
    
    .footer-row-2 {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        align-items: center;
    }
    
    .footer-logo,
    .footer-info,
    .footer-links,
    .footer-contact {
        flex: 1 1 100%;
        text-align: center;

    }
    
    .footer-social {
        order: 1;
    }

    .footer-contact {
        right: 0;
    }
    
    .footer-copyright {
        order: 2;
    }
    
    .logo-img {
        width: 200px; 
        height: 75px;
    }
    
    .social-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

@media (max-width: 500px){
    /* MENSAJE DE OFERTA */
    .offer-message{
        flex: 9;
        text-align: center;
        font-size: .7rem;
    }
    /* NAVBAR */

    .logo-img{
        margin-left: 5px;
    }


    .container-certificado-img{
        width: 80%;
        margin: 50px auto 50px;
        display: grid;
        grid-template-columns: repeat(auto-fit,minmax(150px,1fr));
        gap: 1.1rem
    }

    /* HEADER */

    .header-carousel{
        height: 50vh;
    }


    .slide-image{
        object-fit: cover;
        object-position: 50% 60%;
    }

}

/* RESOLUCION HASTA 400PX */

@media (max-width: 415px) {

    /* MENSAJE DE OFERTA */
    .offer-message{
        flex: 9;
        text-align: center;
        font-size: .5rem;
    }

    .login-link{
        font-size: 0.6rem;
    }
    /* NAVBAR */

    .modal-logo-container {
        padding: 0.8rem;
        border-radius: 8px;
    }
    
    .modal-logo-close {
        top: -35px;
        width: 25px;
        height: 25px;
        font-size: 0.9rem;
    }

    .logo{
        margin-left: 0;
    }
    /* HEADER */
    
    
    /* JUVENTUD DE EXITO */

    .content-grid {
        gap: 0.5rem;
    }

    .content-image img{
        height: 40%;
    }
    
    .description {
        font-size: 0.6rem;
        line-height: 1.6;
        margin: 0 0.5rem;
    }

    /* SECCION PROPUESTA ACADEMICA */
    .features-section {
        padding: 0 0.5rem;
    }
    
    .feature-block {
        padding: 1.2rem;
        border-radius: 15px;
    }
    
    .feature-title {
        font-size: 1.4rem;
    }
    
    .feature-description {
        font-size: 0.95rem;
    }
    
    .block-image {
        height: 200px;
    }
    
    .feature-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    /* SECCION HISTORICA */
    .historical-section {
        padding: 2rem 1rem;
    }
    
    .historical-content {
        gap: 2rem;
    }
    
    .historical-img {
        height: 280px;
    }
    
    .historical-paragraph {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1.2rem;
    }
    
    .historical-quote {
        font-size: 1.1rem;
        padding: 1rem;
    }
    
    .historical-quote::before,
    .historical-quote::after {
        font-size: 1.5rem;
    }

    /* SECCION NUESTROS ESTUDIANTES */
    .students-section {
        padding: 2rem 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .students-grid {
        gap: 0.8rem;
        padding: 0 0.3rem;
    }
    
    .student-card{
        width: 300px;
        height: auto;
        display: flex;
        justify-content: center;
        flex-direction: column;
        margin: auto;
    }
    
    .student-image {
        height: 250px;
    }
    
    .student-info {
        padding: 0.8rem;
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
    }
    
    .student-category {
        font-size: 1.1rem;
    }
    
    .student-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    /* SECCION CERTIFICADO */
    .container-certificado-img{
        width: 80%;
        margin: 50px auto 50px;
        display: grid;
        grid-template-columns: repeat(auto-fit,minmax(100px,1fr));
        gap: 1.1rem
    }
    
    .certificado-title{
        text-decoration: underline;
        font-size: 1.8rem;
    }

    .certificado-title::before{
        display: none;
    }

    .certificado-title span{
        padding: 0;
    }


    /* SECCION ASESOR */
    .final-container {
        grid-template-rows: auto 300px;
    }
    
    .final-content {
        padding: 1rem 1rem;
        gap: 0.3rem;
    }
    
    .final-image {
        height: 300px;
    }
    
    .content-text {
        font-size: 0.6rem;
        line-height: 1.6;
    }
    
    .content-btn {
        padding: 0 1rem;
        font-size: 0.9rem;
        gap: 0.3rem;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .content-btn i {
        order: -1;
    }
    
    .content-icon {
        width: 15rem;
        height: 8.95rem;
    }

    .footer-grid {
        padding: 1.5rem 0.5rem 0.5rem;
    }
    
    .footer-container {
        gap: 1.5rem;
    }
    
    .footer-row-1,
    .footer-row-2 {
        gap: 1.2rem;
    }
    
    .footer-info p:first-child {
        font-size: 1rem;
    }
    
    .footer-links a,
    .footer-contact p {
        font-size: 0.9rem;
    }
    
    .footer-copyright {
        font-size: 0.85rem;
    }
    
    .social-icons {
        gap: 0.8rem;
    }
    
    .social-icon {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
}
