* {
  box-sizing: border-box;
}

html {
  visibility: visible;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background-color: #0F0F0F;
  font-family: "Montserrat", sans-serif;
}

.montserrat-font {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}


nav {
    position: fixed;
    top: 24vh;
    left: 1rem;
    z-index: 1000;
    background-color: rgba(15, 15, 15, 0.63);
    backdrop-filter: blur(10px);
    margin: 0;
    padding: 1.2rem 0.8rem;
    border: 1px solid rgba(243, 236, 227, 0.42);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
    width: fit-content;
    min-width: 180px;
    transform: translateX(-100%);
    opacity: 0;
    animation: slideInNav 0.8s ease-out 0.5s forwards;
}

@keyframes slideInNav {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
.nav-list{
    color: rgb(243, 236, 227);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 1.5rem;
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none;
}
.nav-list li {
    min-height: 42px;
    width: 100%;
}
.nav-list a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    width: 100%;
    padding: 0 0.7rem;
    border-radius: 6px;
    transition: transform 0.1s ease, background-color 0.25s ease, color 0.25s ease;
}
.nav-list a:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

@media (max-width: 768px) {
    nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        min-width: 100%;
        border-radius: 0;
        padding: 0.8rem 1rem;
        height: auto;
        transform: translateY(-100%);
        opacity: 0;
        animation: slideDownNav 0.8s ease-out 0.5s forwards;
    }

    .nav-list {
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        gap: 0.7rem;
    }

    .nav-list li {
        min-height: auto;
    }

    #hero, #sobre-mi-det {
        padding-top: 4.5rem;
    }
}

@keyframes slideDownNav {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.nav-list a {
    color: rgb(243, 236, 227);
    text-decoration: none;
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    padding: 10px 15px;
    font-size: 17px;
}

.nav-list a:hover {
    color: #f3ece3;
    border-radius: 8px;
    transform: scale(1.09);
}

.nav-list li{
    list-style: none;
}


#hero{
    color: rgb(243, 236, 227);
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sobre-mi h1,
.sobre-mi h2,
.sobre-mi p {
    margin: 0;
}

.sobre-mi p{
    width: 76vh;
}

.sobre-mi{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    gap: 27px;
}

.especialidad{
    display: flex;
    align-items: center;
    gap: 8px;
}

.nombre{
    font-size: 4vh;
    font-weight: 700;
    margin: 0;
}

.descripcion{
    font-size: 2vh;
    font-weight: 400;
    line-height: 1.6;
    max-width: 70ch;
}

#hero,
#sobre-mi-det {
    max-width: 1100px;
    margin: 0 auto;
}

.contact{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.contact a:hover svg {
    transform: scale(1.30);
    transition: transform 0.3s ease;

}

#btnCorreo{
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    display: inline-block;
    padding: 10px 20px;
    background-color: #ffffff;
    color: #000000;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease-in-out, transform 0.3s ease-in-out;
}


#sobre-mi-det{
    border-top: solid 2px rgba(243, 236, 227, 0.63);
    border-radius: 20px;
    color: rgb(243, 236, 227);
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: normal;
    margin: 0 auto;
    padding: 20px;
    max-width: 150vh;
    width: 100%;
    height: 70vh;
    gap: 10vh;
}
    
.sobre-mi-det-texto{
    display: flex;
    flex-direction: column;
    font-size: 20px;
    text-align: left;
    gap: 20px;
}

@keyframes texto-aparcecer {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.text1{
    view-timeline-name: --reveal;

    animation-name: texto-aparcecer;
    animation-fill-mode: both;
    
    animation-timeline: --reveal;
    animation-range: 10% 50%;
}

.text2{
    view-timeline-name: --reveal;

    animation-name: texto-aparcecer;
    animation-fill-mode: both;
    
    animation-timeline: --reveal;
    animation-range: 5% 50%;
}

.text3{
    view-timeline-name: --reveal;

    animation-name: texto-aparcecer;
    animation-fill-mode: both;
    
    animation-timeline: --reveal;
    animation-range: 5% 50%;
}

.contenedor {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3vh;
    max-width: 1400px;
    margin: 4vh auto;
    justify-items: center;
}

.habilidades-contenedor-visible header {
    background-color: #1f2e5c;
    width: 39vh;
    text-align: center;
    border-radius: 8px;
}

.iconos {
    display: flex;
    justify-content: column;
    gap: 30px;
}

.icono{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: transform 0.1s ease-in-out;
}

.icono:hover {
    transform: scale(1.20);
}


.habilidades-contenedor-visible {
    border: 1px solid #2d3748;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    align-content: center;
    height: 24vh;
    border-radius: 8px;
    transition: transform 0.2s ease-in-out, background-color 0.2s ease-in-out;
}


.habilidades-contenedor-visible:hover {
    background-color: #121c2d;
    transform: scale(1.05);
}

@keyframes salida{
    0% {
        transform: translateY(19vh);
    }
    100% {
        transform: translateY(0);
    }
    
}

.habilidades-contenedor-visible{
    view-timeline-name: --reveal;

    animation-name: salida;
    animation-fill-mode: both;
    
    animation-timeline: --reveal;
    animation-range: 10% 50%;
}


#proyectos{
    color: rgb(243, 236, 227);
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    margin-top:25vh;
}

.cuadro-pro{
    display: flex;
    flex-direction: column;
    align-items: start; 
    flex-wrap: wrap;
    align-content: center;
    border-radius: 20px;
    color: rgb(243, 236, 227);
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    margin: 0 auto;
    padding: 20px;
    max-width: 150vh;
    width: 100%;
    gap: 5vh;
}

.proyectos-contenedor {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3vh;
    max-width: 1400px;
    margin: 0 auto;
    justify-items: center;
}

.proyectos-contenedor img {
    width: 70%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease-in-out;

}

.proyecto{
    border: solid 1px rgba(255, 255, 255, 0.209);
    gap: 20px;
    padding: 20px;
    border-radius: 8px;
    transition: transform 0.3s ease-in-out;
    width: 47vh;
}

.deta{
    width: 40vh;
}

.nombre-proyecto{
    font-size: 25px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
}

.proyecto img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.proyecto:hover {
    transform: scale(1.02);    
    border-left: solid 1px rgba(255, 255, 255, 0.2);
    border-bottom: solid 1px rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.29);
}

.botones{
    width: 20vh;
}


.btn-demo {
    display: inline-block;
    padding: 10px 20px;
    background-color: #020284;
    color: #f3ece3;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease-in-out, transform 0.3s ease-in-out;
    margin-top: 2vh;
}

.btn-demo:hover {
    background-color: #0e2854;
    transform: scale(1.05);
}

@keyframes proyecto-aparecer {
    0% {
        opacity: 0;
        transform: translateX(-20vh);
    }

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

.cuadro-pro{
    view-timeline-name: --reveal;

    animation-name: proyecto-aparecer;
    animation-fill-mode: both;
    
    animation-timeline: --reveal;
    animation-range: 10% 50%;
}


#proceso{
    flex-direction: column;
    align-items: start;
    flex-wrap: wrap;
    color: rgb(243, 236, 227);
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    margin: 0 auto;
    padding: 20px;
    max-width: 150vh;
    margin-bottom: 30vh;
}

.estudio{
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 21vh;
    gap: 4vh;
}

.exps {
    display: grid;
    padding: 18px 0;
    box-sizing: border-box;
    grid-auto-flow: column;
    border-radius: 8px;
    width: 53%;
    border: 1px solid rgba(243, 236, 227, 0.422);
    transition: background-color 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.exps:hover {
    transform: scale(1.02);
}

@keyframes estudio-aparecer {
    0% {
        opacity: 0;
        transform: translateX(-20vh);
    }

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

.estudio{
    view-timeline-name: --reveal;

    animation-name: estudio-aparecer;
    animation-fill-mode: both;
    
    animation-timeline: --reveal;
    animation-range: 10% 50%;
}

.exps::before {
    content: "";
    position: absolute;
    left: 32px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    border-radius: 2px;
}


.punto {
    justify-self: center;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ffd965; /* amarillo */
    box-shadow: 0 0 0 8px rgba(255,217,101,0.06);
}


.exp-1 {
    padding-left: 6px;
}

.exp-1 h3 {
    margin: 0;
    color: #ffd965; 
    font-size: 18px;
    font-weight: 800;
    line-height: 1.1;
}

.exp-1 .lugar {
    display: block;
    margin-top: 6px;
    color: #e6e8f2;
    font-weight: 600;
    font-size: 13px;
    opacity: 0.9;
}

.exp-1 .fecha {
    display: inline-block;
    margin-top: 6px;
    color: #bfc6df;
    font-size: 12px;
    margin-left: 8px;
    opacity: 0.85;
}

.exp-1 .desc {
    margin-top: 12px;
    color: #d0d5ea;
    font-size: 14px;
    line-height: 1.6;
    max-width: 75ch;
}