html {
    scroll-behavior: smooth;
}

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

/* -------- NAV -------- */
.site-header {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: none;
}

.ulHorizontal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    list-style: none;
    margin: 0;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px;
    background-color: black;
}

.liHorizontal1 {
    display: flex;
    align-items: center;
}

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

/* Hamburger */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    margin-right: 20px;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background-color: white;
    transition: 0.3s;
}

/* -------- ABOUT -------- */
.about1 {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    gap: 30px;
}

.about {

    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border-bottom: #333 1px solid;

}

.about1 img {
    max-width: 280px;
    width: 100%;
    height: auto;
}

.about1 {

    border-bottom: #333 1px solid;
    mask: linear-gradient(90deg,
            transparent 0%,
            black 20%,
            black 80%,
            transparent 100%);

}

.presentacion {
    position: relative;
    padding-left: 20px;
}

.presentacion::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, black, transparent);
}

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

.profesion {
    font-size: clamp(24px, 3.4vw, 60px);
    margin: 10px 0;
}



/* -------- ACADEMIC - ALINEACIÓN PERFECTA -------- */
.academic ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.li-academic {
    display: flex;
    align-items: flex-start;
    margin: 20px 0;
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
    min-height: 60px;
}

.h3-School {
    min-width: 280px;
    margin: 0;
    font-weight: 700;
    font-size: 25px;
    line-height: 1.3;
    padding-right: 20px;
    display: flex;
    align-items: flex-start;
}

.separador {
    flex: 1;
    text-align: left;
    line-height: 1.5;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Para asegurar que el contenido de separador esté alineado */
.separador br {
    display: block;
    content: "";
    margin-top: 4px;
}






/* Para mobile - ajustar alineación */
@media (max-width: 768px) {

    .h2Profesion {
        display: none;
    }

    .li-academic {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        min-height: auto;
    }

    .h3-School {
        min-width: auto;
        width: 100%;
        padding-right: 0;
        font-size: 22px;
    }

    .h2Profesion {
        font-size: 20px;
    }

    .separador {
        width: 100%;
        font-size: 15px;
    }


    .li-academic {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 5px;
        padding: 5px;
  
    }

    .h3-School {
        min-width: auto;
        width: 100%;
    }

    .separador {
        width: 100%;
        text-align: left;
    }


    /* Nav solo aparece en mobile */
    .site-header {
        display: block;
    }

    .about1 {
        flex-direction: column;
        text-align: center;
        height: auto;
        border-bottom: #333 1px solid;


    }


    .about1 img {
        max-width: 200px;
        /* Foto más chica en mobile */
    }

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

    .li-academic {
        flex-direction: column;
        text-align: center;
    }

    .footer-container {
        flex-direction: column;
        gap: 15px;
    }


    .presentacion::before {

        background: none;
    }
}

/* -------- SKILLS -------- */
.skills {
    padding: 20px 6vw;
}

.logoNombre {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: center;
    gap: 2px;
    margin-top: 1px;
}

.logoSkill {
    height: 45px;
    width: auto;
}

.skills p {

    margin-top: 0;
    max-width: 500px;
    text-align: left;


}

.skills a {
    text-decoration: none;
    color: #007bff;
    font-weight: 600;
}

/* -------- FOOTER -------- */
.footer {
    background: #111;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    max-width: 900px;
    margin: 0 auto;
    padding: 10px;
}

.footer-bottom {
    margin-top: 10px;
    border-top: 1px solid #444;
    padding-top: 10px;
    font-size: 14px;
}



/* -------- MENU DESPLEGABLE -------- */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    display: flex;
    opacity: 1;
    justify-content: center;
    align-items: center;
}

.menu-content {
    background: white;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    position: relative;
    min-width: 300px;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: #333;
}

.menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.menu-list a {
    text-decoration: none;
    color: #333;
    font-size: 24px;
    font-weight: 700;
    transition: color 0.3s ease;
}

.menu-list a:hover {
    color: #007bff;
}


body.no-scroll {
    overflow: hidden;
}

.presentacion h3 a {
    text-decoration: none;
    color: #1b1b1b;
    transition: color 0.3s ease;
    cursor: pointer;
}

.presentacion h3 a:hover {
    color: #d40d0d;
}






/* ****** Animación base ************ */
@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.presentacion h3 {
    opacity: 0;
    animation: slideUpFade 0.8s ease forwards;
}

.presentacion h3:nth-of-type(1) {
    animation-delay: 0.3s;
}

.presentacion h3:nth-of-type(2) {
    animation-delay: 0.6s;
}

.presentacion h3:nth-of-type(3) {
    animation-delay: 0.9s;
}

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