@import url('https://fonts.googleapis.com/css2?family=Righteous&family=Work+Sans:wght@100;300;400;600;800&display=swap');

*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Work Sans', sans-serif;
}

html{
    scroll-behavior: smooth;
}

/* MENU */
.contenedor-header{
    background: #1e2326;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 99;
    border-bottom: 1px solid #333;
}
.contenedor-header header{
    max-width: 1100px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}
.contenedor-header header .logo a{
    font-family: 'Righteous', cursive;
    font-size: 36px;
    color: #88C8FF; /* Azul claro mecatrónico */
    text-decoration: none;
}
.contenedor-header header ul{
    display: flex;
    list-style: none;
}
.contenedor-header header nav ul li a{
    position: relative;
    display: block;
    text-transform: uppercase;
    margin: 0 15px;
    padding: 10px;
    text-decoration: none;
    color: #ffffff;
    font-family: 'Righteous', cursive;
    font-size: 16px;
    transition: .5s;
    z-index: 1;
}

/* Efecto hover del menu corregido para CSS estándar */
.contenedor-header header nav ul li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-top: 2px solid #88C8FF;
    border-bottom: 2px solid #88C8FF;
    transform: scaleY(2);
    opacity: 0;
    transition: .3s;
}
.contenedor-header header nav ul li a:hover {
    color: #88C8FF;
}
.contenedor-header header nav ul li a:hover::before {
    transform: scaleY(1.2);
    opacity: 1;
}

.nav-responsive{
    background-color: #88C8FF;
    color:#fff;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    display: none;
    font-size: 20px;
}

/* SECCION INICIO */
.inicio{
    /* Fondo oscuro técnico */
    background: url('IMG/Fondo-Photoroom.png'); 
    background-size: cover;
    height: 100vh;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.inicio .contenido-banner{
    padding: 20px;
    background-color: transparent;
    max-width: 600px;
    margin: auto;
}
.inicio .contenido-banner img{
    margin-top: 40px;
    border: 5px solid #88C8FF;
    display: block;
    width: 200px;
    height: 200px;
    object-fit: cover;
    margin: auto;
    border-radius: 50%;
    margin-bottom: 20px;
}
.inicio .contenido-banner h1{
    margin-top: 20px;
    font-size: 42px;
    font-family: 'Righteous', cursive;
    color: #fff;
}
.inicio .contenido-banner h2{
    font-size: 20px;
    font-weight: normal;
    color: #88C8FF;
    margin-bottom: 20px;
}
.inicio .redes a{
    color: #fff;
    display: inline-block;
    text-decoration: none;
    border: 1px solid #fff;
    border-radius: 100%;
    width: 40px;
    height: 40px;
    line-height: 40px;
    margin: 10px;
    font-size: 18px;
    transition: .3s;
}
.inicio .redes a:hover{
    background-color: #88C8FF;
    color: #1e2326;
    border-color: #88C8FF;
}
.inicio .btn-cv{
    cursor: pointer;
    background-color: transparent;
    border: 2px solid #fff;
    width: fit-content;
    display: block;
    margin: 30px auto;
    padding: 10px 22px;
    font-size: 14px;
    color: #fff;
    position: relative;
    z-index: 0;
    text-decoration: none;
}
.inicio .btn-cv .overlay{
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: #30c0a3;
    z-index: -1;
    transition: 1s;
}
.inicio .btn-cv:hover .overlay{
    width: 100%;
}
/* SECCION SOBRE MI */
.sobremi{
    background-color: #1e2326;
    color: #fff;
    padding: 80px 20px;
}
.sobremi .contenido-seccion{
    max-width: 1100px;
    margin: auto;
}
.sobremi h2{
    font-size: 48px;
    font-family: 'Righteous', cursive;
    text-align: center;
    padding: 20px 0;
    margin-bottom: 20px;
}
.sobremi .texto-presentacion p{
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    text-align: justify;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.sobremi .texto-presentacion span{
    color: #88C8FF;
    font-weight: bold;
    font-size: 24px;
    display: block;
    margin-bottom: 10px;
}
.sobremi .fila{
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}
.sobremi .fila .col{
    width: 48%;
}
.sobremi .fila .col h3{
    font-size: 28px;
    font-family: 'Righteous', cursive;
    margin-bottom: 25px;
    color: #88C8FF;
}
.sobremi .fila .col ul li{
    margin: 15px 0;
    list-style: none;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
}
.sobremi .fila .col ul li strong{
    color: #88C8FF;
    display: inline-block;
}
.sobremi .fila .col .contenedor-intereses{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.sobremi .fila .col .contenedor-intereses .interes{
    width: 100px;
    height: 100px;
    background-color: #252A2E;
    border-radius: 10px;
    margin: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: .3s;
    border: 1px solid transparent;
}
.sobremi .fila .col .contenedor-intereses .interes:hover{
    border-color: #88C8FF;
    transform: translateY(-5px);
}
.sobremi .fila .col .contenedor-intereses .interes i{
    font-size: 30px;
    margin-bottom: 10px;
    color: #fff;
}

/* SECCION SKILLS */
.skills{
    background-color: #252A2E;
    color: #fff;
    padding: 80px 20px;
}
.skills .contenido-seccion{
    max-width: 1100px;
    margin: auto;
}
.skills h2{
    font-size: 48px;
    font-family: 'Righteous', cursive;
    text-align: center;
    padding: 20px 0;
}
.skills .fila{
    display: flex;
    justify-content: space-between;
}
.skills .fila .col{
    width: 48%;
}
.skills .fila .col h3{
    font-size: 28px;
    font-family: 'Righteous', cursive;
    margin-bottom: 25px;
    color: #88C8FF;
}
.skills .skill{
    margin-bottom: 20px;
}
.skills .skill > span{
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
}
.skills .skill .barra-skill{
    height: 8px;
    width: 100%;
    background-color: #131517;
    position: relative;
    border-radius: 5px;
}
.skills .skill .progreso{
    background-color: #88C8FF;
    position: absolute;
    top: 0;
    left: 0;
    height: 8px;
    width: 0%; /* Inicia en 0 para la animación JS */
    border-radius: 5px;
    transition: width 2s ease;
}
.skills .skill .barra-skill span{
    position: absolute;
    height: 30px;
    width: 30px;
    background-color: #88C8FF;
    border-radius: 50%;
    line-height: 30px;
    text-align: center;
    top: -11px;
    right: -15px;
    font-size: 12px;
    color: #000;
    font-weight: bold;
}

/* Definimos anchos fijos por simplicidad o usamos JS para ponerlos.
   Aquí definiremos clases auxiliares si el JS las llama. */
.skill-1 { width: 90%; }
.skill-2 { width: 85%; }
.skill-3 { width: 95%; }
.skill-4 { width: 80%; }
.skill-5 { width: 75%; }
.skill-6 { width: 90%; }
.skill-7 { width: 85%; }
.skill-8 { width: 80%; }
.skill-9 { width: 95%; }


/* SECCION CURRICULUM */
.curriculum{
    background-color: #1e2326;
    color: #fff;
    padding: 80px 20px;
}
.curriculum .contenido-seccion{
    max-width: 1100px;
    margin: auto;
}
.curriculum h2{
    font-size: 48px;
    font-family: 'Righteous', cursive;
    text-align: center;
    padding: 20px 0;
}
.curriculum .fila{
    display: flex;
    justify-content: space-between;
}
.curriculum .fila .col{
    width: 49%;
}
.curriculum .fila .izquierda{
    border-right: 2px solid #252A2E;
}
.curriculum .fila .derecha{
    border-left: 2px solid #252A2E;
}
.curriculum .fila .item{
    padding: 20px;
    margin-bottom: 30px;
    background-color: #252A2E;
    position: relative;
    border-radius: 8px;
}
.curriculum .fila .item h4{
    font-size: 20px;
    margin-bottom: 10px;
    color: #fff;
}
.curriculum .fila .item .casa{
    color: #88C8FF;
    font-size: 16px;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}
.curriculum .fila .item .fecha{
    display: block;
    color: #aaa;
    margin-bottom: 10px;
    font-size: 14px;
}
.curriculum .fila .item p{
    line-height: 24px;
    font-size: 15px;
}
.curriculum .fila .izq{
    border-right: 2px solid #88C8FF;
    margin-right: 20px;
}
.curriculum .fila .der{
    border-left: 2px solid #88C8FF;
    margin-left: 20px;
}

/* SECCION PORTFOLIO */
.portfolio{
    background-color: #252A2E;
    color: #fff;
    padding: 80px 20px;
}
.portfolio .contenido-seccion{
    max-width: 1100px;
    margin: auto;
}
.portfolio h2{
    font-size: 48px;
    font-family: 'Righteous', cursive;
    text-align: center;
    padding: 20px 0;
}
.portfolio .galeria{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}
.portfolio .galeria .proyecto{
    position: relative;
    width: 320px;
    height: 250px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    cursor: pointer;
}
.portfolio .galeria .proyecto img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.portfolio .galeria .proyecto:hover img{
    transform: scale(1.1);
}
.portfolio .galeria .proyecto .overlay{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 35, 38, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    transition: .5s;
}
.portfolio .galeria .proyecto:hover .overlay{
    opacity: 1;
}
.portfolio .galeria .proyecto .overlay h3{
    color: #88C8FF;
    font-family: 'Righteous', cursive;
    margin-bottom: 10px;
    font-size: 22px;
}

/* CONTACTO */
.contacto{
    background-color: #1e2326;
    color: #fff;
    padding: 80px 20px;
}
.contacto .contenido-seccion{
    max-width: 1100px;
    margin: auto;
}
.contacto h2{
    font-size: 48px;
    font-family: 'Righteous', cursive;
    text-align: center;
    padding: 20px 0;
}
.contacto .fila{
    display: flex;
}
.contacto .col{
    width: 50%;
    padding: 10px;
    position: relative;
}
.contacto .col input, .contacto .col textarea{
    display: block;
    width: 100%;
    padding: 15px;
    border: none;
    margin-bottom: 20px;
    background-color: #252A2E;
    color: #fff;
    font-size: 16px;
    border-radius: 5px;
    font-family: 'Work Sans', sans-serif;
}
.contacto button{
    cursor: pointer;
    background-color: transparent;
    border: 2px solid #88C8FF;
    color: #fff;
    padding: 10px 20px;
    font-size: 16px;
    transition: .3s;
    font-weight: bold;
}
.contacto button:hover{
    background-color: #88C8FF;
    color: #1e2326;
}
.contacto .col img{
    width: 100%;
    border-radius: 10px;
    opacity: 0.6;
}
.contacto .col .info{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(30, 35, 38, 0.9);
    padding: 20px;
    border-radius: 10px;
    width: 80%;
}
.contacto .col .info ul{
    list-style: none;
}
.contacto .col .info ul li{
    margin-bottom: 10px;
}
.contacto .col .info ul li i{
    color: #88C8FF;
    margin-right: 10px;
}

footer{
    background-color: #252A2E;
    padding: 30px;
    text-align: center;
    color: #fff;
}
footer .arriba{
    display: inline-block;
    background-color: #88C8FF;
    color: #000;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    margin-bottom: 20px;
}
footer .redes a{
    color: #fff;
    margin: 0 10px;
    font-size: 20px;
    transition: 0.3s;
}
footer .redes a:hover{
    color: #88C8FF;
}

/* --- AGREGAR AL FINAL DEL STYLE.CSS --- */
/* Estas son las clases que el JavaScript activa para llenar las barras */

.skills .skill .skill-1 {
    width: 90%;
    background-color: #88C8FF; /* Color de la barra llena */
}

.skills .skill .skill-2 {
    width: 85%;
    background-color: #88C8FF;
}

.skills .skill .skill-3 {
    width: 95%;
    background-color: #88C8FF;
}

.skills .skill .skill-4 {
    width: 80%;
    background-color: #88C8FF;
}

.skills .skill .skill-5 {
    width: 70%;
    background-color: #88C8FF;
}

.skills .skill .skill-6 {
    width: 90%;
    background-color: #88C8FF;
}

.skills .skill .skill-7 {
    width: 85%;
    background-color: #88C8FF;
}

.skills .skill .skill-8 {
    width: 80%;
    background-color: #88C8FF;
}

.skills .skill .skill-9 {
    width: 95%;
    background-color: #88C8FF;
}

/* RESPONSIVE */
@media screen and (max-width: 800px){
    .contenedor-header header nav{
        position: fixed;
        top: 70px; /* Debajo del header */
        right: -100%;
        background: #1e2326;
        width: 60%;
        height: 100vh;
        transition: 0.5s;
        display: block; /* Asegurar bloque */
    }
    .contenedor-header header nav.responsive{
        right: 0;
    }
    .contenedor-header header nav ul{
        flex-direction: column;
        padding-top: 20px;
    }
    .contenedor-header header nav ul li{
        margin: 10px 0;
    }
    .nav-responsive{
        display: block;
    }
    .sobremi .fila, .skills .fila, .curriculum .fila, .contacto .fila{
        flex-direction: column;
    }
    .sobremi .fila .col, .skills .fila .col, .curriculum .fila .col, .contacto .col{
        width: 100%;
        margin-bottom: 20px;
    }
    .curriculum .fila .izquierda, .curriculum .fila .derecha{
        border: none;
    }
    .curriculum .fila .izq, .curriculum .fila .der{
        border-left: 2px solid #88C8FF;
        border-right: none;
        margin-left: 0;
        margin-right: 0;
        padding-left: 20px;
    }
}