* {
    scroll-behavior: smooth;
    /* border: solid red 1px; */

}

html {
    scroll-behavior: smooth;

}

body {
    margin: 0;
    padding: 0;
    font-family: 'Lato', sans-serif;
    overflow-x: hidden;
    scrollbar-width: none;
}

.menu-overlay {
    display: none;
}


.desktop {
    box-sizing: border-box;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    height: 60px;
}

.navbar {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(83, 86, 93);
    color: white;
    z-index: 1000;
}


.navbar .nav-links a {
    text-decoration: none;
    font-weight: 500;
}



.navbar .nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.navbar .nav-links a:hover {
    color: rgb(255, 195, 0);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    color: white;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav-links li {
    cursor: pointer;
    position: relative;
    font-size: 0.95rem;
    transition: color 0.2s;
    font-weight: 500;
    color: white;
    justify-content: center;
}

.navbar li:nth-child(1) {
    border-right: 2px solid rgb(255, 195, 0);
    padding-right: 20px;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-size: 20px;
}

.nav-links li:first-child a {
    font-weight: 500;
    font-size: 22px;
}

.navbar-links.active {
    opacity: 1;
    transform: translateY(0);
}

.nav-links li:first-child img {
    margin-top: 5px;
    width: 55px;
    height: auto;
    transform: rotate(180deg);

}




/* --------------------------------------------------------- */
.ulHorizontal {
    top: 0;
    left: 0;
    list-style: none;
    margin: 0;
    display: none;
    align-items: center;
    height: 50px;
    background-color: rgba(83, 86, 93);

}

.liHorizontal1 {
    display: flex;
    align-items: center;
    border-left: solid 2px rgb(255, 195, 0);
}

.aHorizontal {
    font-size: 20px;
    text-decoration: none;
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    margin-right: 30px;
    margin-left: 20px;
}

.aHorizontal img {
    width: 100px;
}

.aHorizontal:hover {
    color: rgb(255, 195, 0);
}



/* **************** BOTON AMBURGUESA ***************/
.hamburger {
    position: relative;
    width: 25px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger .barra {
    display: block;
    width: 100%;
    height: 2px;
    background: white;
    border-radius: 1px;
    margin: 1px 0;
    transition: all 0.3s ease;
}

.hamburger .cruz {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 26px;
    color: white;
    display: none;
    pointer-events: none;
}

.hamburger.active .barra {
    display: none;
}

.hamburger.active .cruz {
    display: block;
}

/****************************************************/








/* ------------------ about1 ---------------- */
.about1 {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    align-content: center;
    justify-content: center;
    align-items: stretch;
    position: relative;
    min-height: calc(100vh - 60px);
    height: auto;

}

.about1::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 0;
}


.about1>* {
    position: relative;
    z-index: 1;
}

#top {
    scroll-margin-top: 60px;
}


.slider-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: -1;

}

.slider-track {
    display: flex;
    height: 100%;
    will-change: transform;
}


.slider-track img {
    width: 100vw;
    height: auto;
    object-fit: cover;
    flex-shrink: 0;
}


.caja1,
.caja2 {

    box-sizing: border-box;
    color: white;

}

.caja2 {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    margin-left: 20px;
}

.caja1 img {
    width: clamp(220px, 20vw, 350px);
    height: auto;

}

.presentacion {
    border: none;
    padding: 0;
}

.h2Profesion {

    margin: 0;
    text-align: left;
    font-size: clamp(2rem, 3vw, 4rem);
    color: white;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s ease, transform 1s ease;
    max-width: 700px;
}

.h2Profesion.show {
    opacity: 1;
    transform: translateY(0);
}

.profesion {

    font-size: clamp(1.5rem, 2vw, 2.3rem);
    margin: 10px 0;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s ease, transform 1s ease;
}

.profesion.show {
    opacity: 1;
    transform: translateY(0);
}

/* .p-about1 {
    text-align: justify;
    font-size: clamp(1rem, 1.2vw, 2rem);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    max-width: 500px;
    padding-bottom: 0;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s ease, transform 1s ease;
} */

.p-about1 {
    font-family: "Inter", "Segoe UI", sans-serif;
    font-size: clamp(1.05rem, 1.1vw, 1.3rem);
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1.5;
    max-width: 510px;
    color: rgba(255, 255, 255, 0.85);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    text-align: justify;
}


.p-about1.show {
    opacity: 1;
    transform: translateY(0);
}

.about1 .caja2>.btn-container {
    color: white;
    margin-left: 0;
    padding-left: 0;
}

.btn-container {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .6s ease, transform .6s ease;
}


.btn-container.show {
    opacity: 1;
    transform: translateY(0);
}

.learn-btn {
    display: inline-block;
    padding: 12px 28px;
    border: 2px solid #fff;
    text-decoration: none;
    color: #fff;
    font-size: 0.9rem;
    font-weight: bold;
    transition: 0.3s ease;

}

.learn-btn:hover {
    background-color: rgb(255, 195, 0);
    color: black;
    border-color: rgb(255, 195, 0);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 195, 0, 0.4);
}



/* --- ABOUT SECTION --- */

.about-section {
    background: #2b2b2b;
    padding: 40px 10%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
    /* height: calc(100vh - 73px); */
}

.about-text {
    color: #ffffff;
    min-width: 350px;
}

.about-title {
    font-size: 3rem;
    color: #f4d03f;
    font-weight: 800;
    margin-bottom: 10px;
}


.about-subtitle {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 25px;
}

.about-description {
    font-size: 1rem;
    color: #dcdcdc;
    line-height: 1.6;
    margin-bottom: 18px;
    text-align: justify;
    max-width: 650px;
}

.about-img-container {
    display: flex;
    justify-content: center;
}

.about-img {
    width: 100%;
    max-width: 650px;
    height: auto;
    aspect-ratio: 16/10;
    object-fit: contain;
    border-radius: 2px;
}




.proyectos-wrapper {
    background-color: #2b2b2b;
}

.Proyectos-title {
    background-color: #2b2b2b;
    font-size: 2rem;
    font-size: clamp(1.9rem, 2.5vw, 3rem);
    color: #f4d03f;
    font-weight: 800;
    margin-bottom: 10px;
    padding: 10px 10%;
    margin: 0;
    text-align: center;
}


/* ===== Animación About ===== */
/* Estado inicial */
.about-text>* {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.about-img-container {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Estado animado */
.about-section.animate .about-text>* {
    opacity: 1;
    transform: translateY(0);
}

.about-section.animate .about-img-container {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger textos */
.about-text>*:nth-child(1) {
    transition-delay: 0.1s;
}

.about-text>*:nth-child(2) {
    transition-delay: 0.2s;
}

.about-text>*:nth-child(3) {
    transition-delay: 0.3s;
}

.about-text>*:nth-child(4) {
    transition-delay: 0.8s;
}

.about-text>*:nth-child(5) {
    transition-delay: 1s;
}








/* --- VALUES SECTION (TARJETAS) --- */
.values-section {
    background: #2b2b2b;
    padding: 60px 10%;
    display: grid;
    grid-template-columns: repeat(3, 2fr);
    gap: 30px;
}

.values-section a {
    text-decoration: none;
}

.value-card {
    background: #1f1f1f;
    padding: 25px;
    border-left: 4px solid #f4d03f;
    border-radius: 5px;
    color: #fff;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    text-align: center;
}

.value-card:hover {
    background: #968c65;
}

/* RESPONSIVE CARDS */
@media (max-width: 900px) {
    .values-section {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .values-section {
        grid-template-columns: 1fr;
    }
}





/* ===== ANIMACIÓN PROYECTOS – VERSIÓN PRO ===== */
.Proyectos-title {
    margin: 0;
    padding: 20px 0;
    transform: translateY(16px);
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.Proyectos-title.animate {
    transform: translateY(0);
}

/* TARJETAS */
.values-section .value-card {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.35s linear,
        transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
}

.values-section.animate .value-card {
    opacity: 1;
    transform: translateY(0);
}

/* STAGGER TARJETAS */
.values-section.animate .value-card:nth-child(1) {
    transition-delay: 0.12s;
}

.values-section.animate .value-card:nth-child(2) {
    transition-delay: 0.24s;
}

.values-section.animate .value-card:nth-child(3) {
    transition-delay: 0.36s;
}

.values-section.animate .value-card:nth-child(4) {
    transition-delay: 0.48s;
}





/* ===== ABOUT STATS ===== */
.about-stats {
    margin-top: 25px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 30px;
}

.stat {
    color: #dcdcdc;
}

.stat p {
    margin: 6px 0 0;
    font-size: 0.9rem;
    line-height: 1.3;
}

.counter {
    font-size: 2.4rem;
    font-weight: 800;
    color: #f4d03f;
    display: block;
}


.counter::before {
    content: "+";
    margin-right: 2px;
}

/* Responsive */
@media (max-width: 600px) {
    .about-stats {
        grid-template-columns: 1fr;
    }
}






/* ----- CONTENEDOR GENERAL ----- */
.industries-section {
    background: #222;
    padding: 90px 6%;
    text-align: center;
    color: #ffffff;
}

/* ----- TITULOS ----- */
.industries-title {
    font-size: 3rem;
    color: #f4d03f;
    font-weight: 800;
    margin-bottom: 15px;
}

.industries-subtitle {
    font-size: 1.2rem;
    color: #cccccc;
    max-width: 800px;
    margin: 0 auto 50px auto;
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 35px;
}


.industries-grid a {
    text-decoration: none;
}


a .industry-card {
    text-decoration: none;
    cursor: pointer;
}


.industry-card {
    background: #1a1a1a;
    border-radius: 6px;
    padding: 35px 25px;
    border-top: 4px solid #f4d03f;
    transition: 0.3s;
    cursor: default;
    min-height: 500px;

}

.industry-card:hover {
    background: #2a2a2a;
    transform: translateY(-5px);


}

.industry-icon {
    width: 100%;
    height: 250px;

    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 15px;
}

.industry-card:hover h3,
.industry-card:hover p {
    color: #f4d03f;

}


.industry-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    display: block;
}

.industry-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: #ffffff;
}

.industry-card p {
    font-size: 1rem;
    line-height: 1.5;
    color: #d2d2d2;
}

/* ----- RESPONSIVE ----- */
@media (max-width: 1100px) {
    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .industries-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 600px) {
    .industries-grid {
        grid-template-columns: 1fr;
    }

    .industries-title {
        font-size: 2rem;
    }
}



/* ------------------ about ---------------- */
.about {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    box-sizing: border-box;
    width: 100%;
    color: white;
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 40px 20px;
}

.about::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 40, 0.6);
    z-index: 1;
}

.about>* {
    z-index: 2;
}

.academic ul {
    display: flex;
    flex-direction: column;
    list-style: none;
    padding: 0;
    margin: 0;
    max-width: 900px;
}

.li-academic {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin: 10px 0;
    padding: 35px 10px;
    border-bottom: 1px solid #317217;
    opacity: 0;
    transform: translateX(-80px);
    transition: transform 1s ease, opacity 1s ease;
}

.li-academic:nth-child(even) {
    transform: translateX(80px);
}

.li-academic.show {
    opacity: 1;
    transform: translateX(0);
}

.h3-School {
    width: 400px;
    margin: 0;
    font-weight: 700;
    font-size: 32px;
    line-height: 1.3;
    text-align: left;
}

.separador {
    box-sizing: border-box;
    width: 220px;
    font-size: 18px;
    text-align: left;
}


.contenedorBotones {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}





/* ============================= cards-section ============================= */


.cards-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* todo centrado */
    padding: 60px 20px;
    background-color: rgba(83, 86, 93);
    color: white;

}


.cards-section h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.cards-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: flex-start;
}


.card {
    background-color: #3a3a3a;
    border-radius: 3px;
    flex: 1 1 300px;
    max-width: 400px;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}


.cards-container a {
    text-decoration: none;
    color: white;
}

.card-link {
    position: absolute;
    inset: 0;
    z-index: 10;
}


.titulotarjetas {
    width: 100%;
    max-width: 1200px;
    text-align: center;
    margin-bottom: 40px;
    color: #f4d03f;
}


.card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.card-content p {
    font-size: 0.9rem;
    flex: 1;
    margin-bottom: 15px;
    line-height: 1.4;
}


.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    color: rgb(255, 195, 0);
}

/* Responsive */
@media (max-width: 1000px) {
    .cards-container {
        flex-direction: column;
        align-items: center;
    }
}





/* ------------------ about2 PORTFOLIO ---------------- */
.about2 {
    color: white;
    min-height: 100vh;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    align-content: center;
    box-sizing: border-box;
    background-color: #040026;
}

#portfolio {
    scroll-margin-top: 80px;
}

.skills {
    flex-direction: column;
    align-items: center;
    width: clamp(250px, 80vw, 550px);
    padding-left: 40px;
    padding-bottom: 0px;
}

.h2-skill {
    font-size: clamp(32px, 2.8vw, 60px);
    align-self: baseline;
    margin: 10px;
    margin-left: 0;
}

.p-skill {
    text-align: justify;
    font-size: 16px;
    line-height: 1.6;
    color: white;
    width: 90%;
    margin: 0;
    padding: 0;
    align-self: baseline;
    margin-bottom: 40px;
}

.cajaImagen {
    width: clamp(200px, 80vw, 500px);
    height: auto;
    transition: width 0.3s ease;
    padding-right: 40px;
    padding-top: 0;
}

.contenedorBotones {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
}


.contenedorBotones .cajaBotonVerMas:nth-child(2) {
    background-color: transparent;
    width: 150px;
    border: solid 2px white;
    height: 46px;
    border-radius: 0;
}

.contenedorBotones .cajaBotonVerMas:nth-child(2) a {
    color: white;
}

.contenedorBotones .cajaBotonVerMas:nth-child(2):hover {
    background-color: #4c495f;
}



/* ------------------ about3 (PORTFOLIO) ---------------- */


.about3 {
    color: black;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    align-content: center;
    box-sizing: border-box;
    background-color: rgb(202, 202, 202);
}

/* TARJETAS */
.ContenedorTarjetas {
    background-color: #040026;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    overflow-x: hidden;

}

.fila {
    display: grid;
    grid-template-columns: repeat(3, minmax(280px, 1fr));
    gap: 40px;
    width: 100%;
    max-width: 1300px;
    box-sizing: border-box;
    justify-content: center;
}

.tarjeta-link {
    text-decoration: none;
    display: inline-block;

}

.tarjeta {
    height: 500px;
    color: white;
    text-align: center;
    padding: 10px;
    font-size: 1.5rem;
    box-sizing: border-box;
    min-height: 400px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;


}

.tarjeta-image img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    display: block;
    background-color: white;
}

.tarjeta-content {
    padding: 20px;
    background-color: #00224b;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
}

.tarjeta-content h3 {
    /* margin: 0 0 10px; */
    font-size: 1.8rem;
    font-weight: 700;
}

.tarjeta-content p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
    color: #d0d8e0;
}

.arrow {
    align-self: flex-end;
    font-size: 2rem;
    color: #00e6e6;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}



.tarjeta:hover .arrow {
    transform: translateX(8px);
}

.tarjeta:hover {
    transform: translateY(-10px) scale(1.02);
    color: #5afdbfd2;

}


#BomWithNet {
    scroll-margin-top: 110px;
}

#KinematicAnalysis {
    scroll-margin-top: 110px;
}




/********* BOTON Ver Mas *****************/
/* .cajaBotonVerMas {
    background-color: #5afdbfd2;
    width: 100px;
    height: 50px;
    border-radius: 2px;
}

.botonVerMas {
    color: #040026;
    text-decoration: none;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.skills:nth-child(2) {
    align-content: flex-start;
}

.cajaBotonVerMas:hover {
    background-color: #93e9e9;
} */

/*******************************************/






.presentacion {
    position: relative;

}

.presentacion h3 {
    font-size: 20px;
    margin: 0 0 3px 0;
    font-weight: 400;
    color: #1b1b1b;
}



/* ----- CONTENEDOR GENERAL ----- */
.contact-section {
    background: #1e1e1e;
    padding: 90px 6%;
    color: #ffffff;
}

.contact-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

/* ----- INFO ----- */
.contact-info h2 {
    font-size: 3rem;
    color: #f4d03f;
    font-weight: 800;
    margin-bottom: 15px;
}

.contact-info p {
    font-size: 1.15rem;
    line-height: 1.6;
    color: #dddddd;
}

/* ----- FORMULARIO ----- */
.contact-form .form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.contact-form label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #f4d03f;
}

.contact-form input,
.contact-form textarea {
    background: #121212;
    border: 1px solid #333;
    padding: 12px 14px;
    color: #ffffff;
    border-radius: 4px;
    font-size: 1rem;
    outline: none;
    transition: 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #f4d03f;
    background: #1b1b1b;
}

.contact-form textarea {
    height: 140px;
    resize: none;
}

/* ----- BOTÓN ----- */
.contact-btn {
    padding: 14px 25px;
    background: transparent;
    color: #f4d03f;
    border: 2px solid #f4d03f;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 4px;
    transition: 0.3s;
    margin-top: 10px;
}

.contact-btn:hover {
    background: #f4d03f;
    color: #000;
    transform: translateY(-3px);
}

/* Estilo del botón de WhatsApp para la sección Contacto */
.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #25D366;
    /* Verde oficial */
    color: #fff;
    padding: 14px 28px;
    border-radius: 8px;
    /* Estilo semi-cuadrado acorde a ingeniería */
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
}

.whatsapp-btn i {
    font-size: 1.5rem;
    margin-right: 12px;
}

.whatsapp-btn:hover {
    background-color: #128c7e;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(18, 140, 126, 0.3);
    color: #fff;
    /* Asegura que el texto siga blanco */
}

/* Ajuste opcional para móviles */
@media (max-width: 768px) {
    .whatsapp-btn {
        width: 100%;
        box-sizing: border-box;
    }
}



/* Mensajes de error pequeños debajo de los inputs */
.error-msg {
    color: #ff4d4d;
    /* Rojo */
    font-size: 0.85rem;
    display: none;
    /* Oculto por defecto */
    margin-top: 5px;
    font-weight: 500;
}

/* Clase que JS agregará al input cuando sea inválido */
.input-error {
    border-bottom: 2px solid #ff4d4d !important;
    /* Forza el borde rojo */
}

/* Clase para mensaje de éxito */
.success-msg {
    color: #2ecc71;
    /* Verde */
    text-align: center;
}







/* ----- RESPONSIVE ----- */
@media (max-width: 900px) {
    .contact-container {
        grid-template-columns: 1fr;
    }

    .contact-info h2 {
        text-align: center;
    }

    .contact-info p {
        text-align: center;
        max-width: 600px;
        margin: 0 auto 30px auto;
    }
}








/*********** CONTACT ****************/
/* .contact-section {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    align-items: baseline;
    color: white;
   background-color: #3a3a3a;

    height: 100vh;
}


.contact {
    padding: 10px;
    margin-bottom: 50px;
    flex-direction: column;
    align-items: center;
    width: clamp(250px, 80vw, 550px);
    margin-top: 100px;
    max-width: 400px;
    margin-bottom: 20px;
    padding: 30px;
    padding-bottom: 0;
}

.contact p {
    width: 100%;
    text-align: justify;
    font-size: 16px;
    line-height: 1.6;
    align-self: baseline;
}

.contact-info {
    padding: 50px;
    padding-top: 0;
}

.contact h2 {
    font-size: clamp(32px, 2.8vw, 500px);
    align-self: baseline;
    margin-left: 0px;
    margin-bottom: 0;
}


.contact-form {
    max-width: 400px;
    width: 100%;
    width: clamp(250px, 80vw, 550px)
}

.form-group {
    margin-bottom: 15px;
    width: 100%;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding-bottom: 10px;
    padding-top: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: "Lato", sans-serif;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #008080;
}

.contact-form button {
    background-color: #2db3b3;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.contact-form button:hover {
    background-color: #40fd6f;
} */

/***************************************************/


/***********Academic*******************/
.academic {
    padding-left: 0;
}

.about .academic .cajaBotonVerMas {
    margin-left: 0;
}

.about article.academic {
    margin-left: 0;
}

.site-header {
    display: none;
}




/* ===== FOOTER GENERAL ===== */
.footer {
    background: #0d0d0d;
    color: #fff;
    padding: 60px 20px 20px;
    font-family: "Poppins", sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
}

.footer-col {
    flex: 1;
    min-width: 180px;
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 600;
    color: #f1c40f;
}

.footer-col p {

    text-decoration: none;
    color: #ffffff;
    transition: color 0.3s ease;
      margin-bottom: 10px;
    font-size: 0.95rem;
    opacity: 0.8;

}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
    font-size: 0.95rem;
    opacity: 0.8;
}

/* ===== LINKS ===== */
.footer-col ul li a {
    text-decoration: none;
    color: #ffffff;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: #f1c40f;
    /* Hover amarillo */
}

/* ===== BRAND ===== */
.brand-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 25px;
}

.brand-row img {
    width: 40px;
    height: auto;
}

.brand-row img:hover {
    transform: rotate(116deg);
    transition: 0.5s;
}

.footer-logo {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1px;
}


/* ===== MAPA ===== */
.footer-map {
    flex: 0 0 auto;
    max-width: 300px;
    /* <<< LIMITE DE ANCHO */
}

.map-container {
    width: 100%;
    max-width: 300px;
    /* <<< LIMITE DE ANCHO */
}

.map-container iframe {
    width: 100%;
    height: 180px;
    border: 0;
    border-radius: 10px;
}


/* ===== BOTTOM ===== */
.footer-bottom {
    text-align: center;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
}

.footer-bottom p {
    font-size: 0.85rem;
    opacity: 0.6;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .footer-container {
        gap: 30px;
    }
}

@media (max-width: 700px) {
    .footer-col {
        min-width: 100%;
    }

    .footer-map iframe {
        height: 250px;
    }

    .brand-row {
        justify-content: flex-start;
    }
}







/* .footer {
   background-color: #000;
    color: #ffffff;
     padding: 60px 20px 30px 20px; 
    border-top: 1px solid rgba(194, 187, 187, 0.08);
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    max-width: 1300px;
    margin: 0 auto;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-row img {
  width: 40px;
}

.footer-col img {
    width: 40px;
  
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: 600;
    margin-top: 0;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin: 10px 0;
    font-size: 0.95rem;
    opacity: 0.85;
}

.footer-col ul li a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-col ul li a:hover {
    opacity: 1;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    margin-top: 0;
}

.footer-brand p {
    font-size: 0.95rem;
    opacity: 0.8;
    max-width: 280px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 40px;
    text-align: center;
    padding-top: 20px;
}

.footer-bottom p {
    font-size: 0.85rem;
    opacity: 0.6;
} */



/* === FOOTER === */
/* .footer {
    background: linear-gradient(180deg, #2c3a63 0%, #080b26 100%);
    padding: 50px 60px 20px;
    color: #fff;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
}

.footer-col {
    min-width: 180px;
    flex: 1;
}

.footer-col h4,
.brand h3 {
    margin-bottom: 15px;
    font-size: 18px;
    color: #fff;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: #ccc;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.2s;
    color: white;
}

.footer-col ul li a:hover {
    color: #00c3ff;
}

.brand .subtitle {
    color: #00c3ff;
    font-size: 20px;
    margin-bottom: 15px;
}

.social-icons {
    margin-top: 10px;
}

.social-icons a {
    margin-right: 20px;
    color: #fff;
    font-size: 25px;
    transition: color 0.2s;
}

.social-icons a:hover {
    color: #00c3ff;
}

hr {
    border: 0;
    border-top: 1px solid #222a52;
    margin: 30px 0;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #bbb;
}

.footer-bottom a {
    color: #bbb;
    text-decoration: none;
    margin-left: 15px;
    transition: color 0.2s;
}

.footer-bottom a:hover {
    color: #00c3ff;
} */



.fila {
    width: 100%;
    max-width: 1300px;
}

.tarjeta {
    height: 450px;
    border-radius: 15px;
}

.tarjeta-image img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    display: block;
    background-color: white;
}

.tarjeta-content {
    padding: 20px;
    background-color: #00224b;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.arrow {
    align-self: center;
}

.tarjeta-content h3 {
    margin: 0 0 10px;
    font-size: 1.3rem;
    font-weight: 700;
    text-align: center;
}

.tarjeta-content p {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 20px;
    color: #d0d8e0;
    text-align: center;
}




/* *************** MENU DESPLEGABLE ****************** */
.menu-overlay {
    position: fixed;
    top: 50px;
    left: 0;
    width: 100%;
    height: calc(100vh - 50px);
    background-image: url("/static/assets/images/fondoPiedrasoscuro.png");
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transform: translateY(-2000px);
    transition: transform 0.6s ease;
    background-size: cover;
}

.menu-overlay.active {
    transform: translateY(0);
    visibility: visible;
    transition: transform 0.4s ease, opacity 0.4s ease, visibility 0s 0s;
}

.menu-overlay.active {
    align-items: flex-start;
}

.menu-content {
    display: flex;
    flex-direction: column;
    padding-left: 0px;
    padding-top: 0px;
    border-radius: 2px;
    text-align: center;
    width: 100%;
    position: relative;
    height: 100%;
    box-sizing: border-box;
    width: 85%;
}


.menu-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    list-style: none;
    padding: 0;
    margin: 0;

    align-items: flex-start;
    border-bottom: none;
    box-shadow: inset 0 -0.5px 0 0 yellow;
}

.menu-list h2 {
    color: white;
    margin-top: 10px;
    margin-bottom: 10px;
}


.menu-list li {
    margin: 10px 0;
}

.menu-list p {
    color: white;
}

.menu-list:last-of-type li {
    margin: 5px 0;
}

.menu-list a {
    text-decoration: none;
    color: white;
    font-size: 24px;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 16px;
}

.menu-list a:hover {
    color: yellow;
    font-weight: 800;
}

.menu-content>.menu-list:last-of-type p {
    margin: 1px 0;
    line-height: 1.4;
    box-shadow: none;
    align-self: center;
    font-size: 14px;
}

.menu-content>.menu-list:last-of-type {
    box-shadow: none;
    border-bottom: none;
}

.menu-content .menu-list:last-child {
    margin-top: auto;
    margin-bottom: 20px;
}

.menu-content ul:nth-of-type(2) {
    box-shadow: none;
}


.menu-content ul:nth-of-type(4) {
    box-shadow: none;
}



/************ MENU LIST ********************/
.liHorizontal1 img {
    position: absolute;
    top: 11px;
    right: 20px;
    width: 33px;
    filter:
        drop-shadow(0 0 10px rgba(211, 211, 200, 0.9)) drop-shadow(0 0 25px rgb(215, 238, 86));
}


.liHorizontal1 .img-hover {
    opacity: 0;
}

.liHorizontal1:hover .img-hover {
    opacity: 1;
}

.liHorizontal1:hover .img-normal {
    opacity: 0;
}


@media (max-width: 1050px) {
    .fila {
        grid-template-columns: repeat(2, minmax(280px, 1fr));
    }
}

@media (max-width: 700px) {
    .fila {
        grid-template-columns: 1fr;
    }
}

/**************   MOBILE ***************/
@media (max-width: 810px) {

    html,
    body {
        overflow-y: auto;
        scrollbar-width: none;
        height: 100%;
    }

    html::-webkit-scrollbar,
    body::-webkit-scrollbar {
        display: none;
    }

    .desktop {
        display: none;
    }

    .encabezado {
        display: none;
    }

    .site-header {
        display: block;
        padding: 0;
    }

    .ulHorizontal {
        position: fixed;
        box-sizing: border-box;
        width: 100%;
        display: flex;
        align-items: center;
        list-style: none;
        margin: 0;
        padding: 0;
        padding-left: 20px;
        padding-right: 20px;
        z-index: 1000;
    }

    .ulHorizontal li:nth-child(1),
    .ulHorizontal li:nth-child(2) {
        margin-right: 8px;
    }

    .ulHorizontal li:nth-child(3) {
        margin-right: 20px;
        margin-left: auto;
        border: none;
    }

    .no-scroll {
        position: fixed;
        overflow: hidden;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
    }

    .titulotarjetas {
        text-align: center;
    }

    .li-academic {
        align-items: center;
        justify-content: center;
    }

    .h3-School {
        text-align: center;
    }

    .separador {
        text-align: center;
    }

    .about1 {
        height: 100dvh;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background-color: grey;
    }

    .caja2 {
        align-items: center;
        margin: 0;
        margin-top: 20px;
        display: flex;
        flex-direction: column;
    }

    .p-about1 {
        margin-top: 20px;
        margin-left: 20px;
        margin-right: 20px;
        max-width: 350px;
        text-align: justify;
        justify-self: center;
        display: block;
    }

    .h2Profesion {
        text-align: center;
        margin-left: 10px;
        margin-right: 10px;
    }

    .caja1 img {
        padding-top: 10px;
    }

    .separator {
        padding-left: 10px;
        padding-right: 10px;
    }

    .separator-content {
        justify-content: space-evenly;
        align-items: center;
    }

    .separator-text {
        text-align: center;
        margin-right: 15px;
        margin-left: 15px;
    }

    .separator-content img {
        display: none;
    }

    .separator2 {
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    .separator2-text {
        width: 100%;
        text-align: center;
        margin-right: 0;
    }

    .cajaImagen {
        padding: 0;
    }

    .learn-btn {
        margin-top: 30px;
    }

}



/* RESPONSIVE ABOUT */
@media (max-width: 900px) {
    .about-section {
        grid-template-columns: 1fr;
        text-align: center;
        justify-content: center;
    }

    .about-text {
        margin: 0 auto;
        max-width: 600px;
    }

    .about-img-container {
        order: -1;
    }

    .about-img {
        max-width: 400px;
    }

    .about-description {
        font-size: 16px;
    }
}










/* --- NOTIFICACIONES FLOTANTES (TOASTS) --- */
.flash-overlay {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    /* Para que flote sobre todo, incluso el menú */
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast-message {
    min-width: 300px;
    padding: 16px 20px;
    border-radius: 8px;
    color: white;
    font-family: sans-serif;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateX(50px);
    animation: slideIn 0.5s forwards;
    /* Animación de entrada */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Colores según el tipo */
.toast-success {
    background-color: #2ecc71;
    /* Verde éxito */
    border-left: 5px solid #27ae60;
}

.toast-error {
    background-color: #e74c3c;
    /* Rojo error */
    border-left: 5px solid #c0392b;
}

.close-toast {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    margin-left: 15px;
    opacity: 0.7;
}

.close-toast:hover {
    opacity: 1;
}

/* Animación Keyframes */
@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}