/** 1--Base */
@import url('https://fonts.googleapis.com/css2?family=Righteous&family=Work+Sans:wght@100;300;400;600;800&display=swap');

* {
    box-sizing: border-box;
    font-family: 'Work Sans';
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

/** 2-Header */
.contenedor-header {
    background: black;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 99;
}

.contenedor-header header {
    max-width: 1100px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
}

.logo a {
    font-family: 'Righteous';
    font-size: 36px;
    color: rgb(150, 30, 30);
    text-decoration: none;
}

nav ul {
    display: flex;
    align-items: center;
}

nav ul li {
    list-style: none;
}

nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    margin: 10px;
    padding: 5px 0;
    transition: .5s;
    font-size: 18px;
}

nav ul li a:hover {
    color: rgb(150, 30, 30);
}

.menu-toggle {
    display: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
}

/** 9-Footer*/
footer{
    background-color: #2e2525;
    color: #fff;
    padding: 50px 0 30px 0;
    text-align: center;
    position: relative;
    width: 100%;
}
.redes{
    margin-bottom: 20px;
}
.redes a{
    color: #fff;
    display: inline-block;
    text-decoration: none;
    border: 1px solid #fff;
    border-radius: 100%;
    width: 42px;
    height: 42px;
    line-height: 42px;
    margin: 40px 5px;
    font-size: 20px;
    transition: .3s;
}
footer .arriba{
    display: block;
    width: 50px;
    height: 50px;
    background-color: rgb(150, 30, 30);
    color: #fff;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -25px;
    border-radius: 50%;
    line-height: 50px;
    font-size: 18px;
}

/**3-Inicio*/
.inicio{
    background: linear-gradient(to top, rgba(38, 30, 30, 0.8), rgb(38, 30, 30)), url(img/fondo.jpg);
    background-size: cover;
    color: #fff;
    display: flex;
    align-items: center;
    height: 100vh;
}

.inicio .contenido-banner{
    padding: 20px;
    margin: auto;
    background-color: black;
    text-align: center;
    border-radius: 40px;
    max-width: 350px;
}

.inicio .contenido-banner img{
    width: 50%;
    height: 50%;
    border-radius: 100%;
    border: 10px solid rgb(150, 30, 30);
    display: block;
    margin: auto;
    margin-top: 40px;
}

.inicio .contenido-banner h1{
    margin-top: 40px;
    font-size: 42px;
    font-family: 'Righteous';
}

.inicio .contenido-banner h2{
    font-size: 15px;
    font-weight: normal;
    margin-top: 20px;
}

/**4-Sobre mi*/
.sobremi{
    background-color: #261e1e;
    color:#fff;
    padding: 50px 20px;
}

.sobremi .contenido-seccion p span{
    color: rgb(150, 30, 30);
    font-weight: bold;
}

.sobremi h2{
    font-family: 'Righteous';
    text-align: center;
    padding: 20px 0;
    font-size: 48px;
}

.sobremi .contenido-seccion{
    max-width: 1100px;
    margin: auto;
}

.sobremi .contenido-seccion p{
    font: 18px;
    line-height: 22px;
    margin-bottom: 20px;
}

.sobremi .fila{
    display: flex;
}

.sobremi .fila .col{
    width: 50%;
}

.sobremi .fila .col h3{
    font-size: 28px;
    font-family: 'Righteous';
    margin-bottom: 25px;
}

.sobremi .fila .col ul{
    list-style: none;
}

.sobremi .fila .col ul li{
    margin: 12px 0;
}

.sobremi .fila .col ul li strong{
    display: inline-block;
    color: rgb(150, 30, 30);
    width: 130px;
}
.sobremi .fila .col ul li span{
    background-color: rgb(150, 30, 30);
    padding: 3px;
    font-weight: bold;
    border-radius: 5px;
}

.sobremi .fila .col .contenedor-intereses{
    display: flex;
    flex-wrap: wrap;
}

.sobremi .fila .col .contenedor-intereses .interes{
    width: 100px;
    height: 100px;
    background-color: #2e2525;
    border-radius: 10px;
    margin: 0 15px 15px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: .3s;
}

.sobremi .fila .col .contenedor-intereses .interes:hover{
    background-color: rgb(150, 30, 30);
    padding: 3px;
}
.sobremi .fila .col .contenedor-intereses .interes i{
    font-size: 30px;
    margin-bottom: 10px;
}

.sobremi .fila .col .contenedor-intereses .interes img{
    height: 40%;;
}

.sobremi button{
    cursor: pointer;
    background-color: transparent;
    border: 2px solid #fff;
    display: block;
    margin: 20px auto;
    padding: 10px 22px;
    font-size: 16px;
    color: #fff;
    position: relative;
    z-index: 10;
}
.sobremi button .overlay{
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: #b61c1c;
    z-index: -1;
    transition: 1s;
}
.sobremi button:hover .overlay{
    width: 100%;
}

/**5-Skills*/

.skills{
    background-color: #2e2525;
    color: #fff;
    padding: 50px 20px;
}

.skills .contenido-seccion{
    max-width: 1100px;
    margin: auto;
}
.skills h2{
    font-size: 48px;
    font-family: 'Righteous';
    text-align: center;
    padding: 20px 0;
}

.skills .fila{
    display: flex;
}

.skills .fila .col{
    width: 100%;
    padding: 0 20px;
}

.skills .fila .col h3{
    font-size: 28px;
    font-family: 'Righteous';
    margin-bottom: 25px;
}

.skills .skill > span{
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
}

.skills .skill .barra-skill{
    height: 8px;
    width: 80%;
    background-color: #171313;
    position: relative;
    margin-bottom: 30px;
}

.skills .skill .progreso{
    background-color: #b61c1c;
    position: absolute;
    top: 0;
    left: 0;
    height: 8px;
}

.skills .skill .barra-skill span{
    position: absolute;
    height: 40px;
    width: 40px;
    background-color: #b61c1c;
    border-radius: 50px;
    line-height: 40px;
    text-align: center;
    top: -17px;
    right: -15px;
    font-size: 14px;
}

.skills .skill .Java{
    width: 0%;
    animation: 2s Java forwards;
}
@keyframes Java {
    0%{width: 0%;}
    100%{width: 40%;}
}

.skills .skill .HTML{
    width: 0%;
    animation: 2s HTML forwards;
}
@keyframes HTML {
    0%{width: 0%;}
    100%{width: 60%;}
}

.skills .skill .CSS{
    width: 0%;
    animation: 2s CSS forwards;
}
@keyframes CSS {
    0%{width: 0%;}
    100%{width: 45%;}
}

.skills .skill .Javascript{
    width: 0%;
    animation: 2s Javascript forwards;
}
@keyframes Javascript {
    0%{width: 0%;}
    100%{width: 20%;}
}

.skills .skill .SQLServer{
    width: 0%;
    animation: 2s SQLServer forwards;
}
@keyframes SQLServer {
    0%{width: 0%;}
    100%{width: 50%;}
}

.skills .skill .MongoDB{
    width: 0%;
    animation: 2s MongoDB forwards;
}
@keyframes MongoDB {
    0%{width: 0%;}
    100%{width: 20%;}
}

.skills .skill .VSCode{
    width: 0%;
    animation: 2s VSCode forwards;
}
@keyframes VSCode {
    0%{width: 0%;}
    100%{width: 70%;}
}

.skills .skill .NetBeans{
    width: 0%;
    animation: 2s NetBeans forwards;
}
@keyframes NetBeans {
    0%{width: 0%;}
    100%{width: 55%;}
}

.skills .skill .Comunicacion{
    width: 0%;
    animation: 2s Comunicacion forwards;
}
@keyframes Comunicacion {
    0%{width: 0%;}
    100%{width: 60%;}
}

.skills .skill .Equipo{
    width: 0%;
    animation: 2s Equipo forwards;
}
@keyframes Equipo {
    0%{width: 0%;}
    100%{width: 75%;}
}

.skills .skill .Creatividad{
    width: 0%;
    animation: 2s Creatividad forwards;
}
@keyframes Creatividad {
    0%{width: 0%;}
    100%{width: 70%;}
}

.skills .skill .Dedicacion{
    width: 0%;
    animation: 2s Dedicacion forwards;
}
@keyframes Dedicacion {
    0%{width: 0%;}
    100%{width: 90%;}
}

.skills .skill .PM{
    width: 0%;
    animation: 2s PM forwards;
}
@keyframes PM {
    0%{width: 0%;}
    100%{width: 80%;}
}

/** 6-Curriculum */
.curriculum{
    background-color: #261e1e;
    color: #fff;
    padding: 50px 20px;
}
.curriculum .contenido-seccion{
    margin:auto;
    max-width: 1100px;
}
.curriculum h2{
    font-size: 48px;
    font-family: 'Righteous';
    text-align: center;
    padding: 20px 0;
}
.curriculum .fila{
    display:flex;
    justify-content: space-between;
}
.curriculum .fila .col{
    width: 50%;
    padding: 0 20px;
}
.curriculum .fila .col h3{
    font-size: 28px;
    font-family: 'Righteous';
    margin-bottom: 25px;
}
.curriculum .fila .izquierda{
    border-right: 2px solid #2e2525;
}
.curriculum .fila .derecha{
    border-left: 2px solid #2e2525;
}
.curriculum .fila .item{
    padding: 25px;
    margin-bottom: 30px;
    background-color: #2e2525;
    position: relative;
}
.curriculum .fila .item h4{
    font-size: 20px;
    margin-bottom: 10px;
}
.curriculum .fila .item .lugar{
    display: block;
    color: #b61c1c;
    font-size: 22px;
    font-weight: bold;
}
.curriculum .fila .item .fecha{
    display: block;
    color: #b61c1c;
    margin-bottom: 10px;
}
.curriculum .fila .item p{
    line-height: 24px;
}
.curriculum .fila .izq{
    border-right: 2px solid #b61c1c;
    margin-right: 20px;
}
.curriculum .fila .der{
    border-left: 2px solid #b61c1c;
    margin-left: 20px;
}
.curriculum .fila .item .conectori{
    height: 2px;
    background-color: #b61c1c;
    width: 47px;
    position: absolute;
    top: 50%;
    right: -47px;
    z-index: 5;
}
.curriculum .fila .item .conectori .circuloi{
    display: block;
    height: 10px;
    width: 10px;
    border-radius: 50%;
    background-color: #b61c1c;
    float: right;
    position: relative;
    bottom: 4px;
}
.curriculum .fila .item .conectord{
    height: 2px;
    background-color: #b61c1c;
    width: 47px;
    position: absolute;
    top: 50%;
    left: -47px;
    z-index: 5;
}
.curriculum .fila .item .conectord .circulod{
    display: block;
    height: 10px;
    width: 10px;
    border-radius: 50%;
    background-color: #b61c1c;
    float: left;
    position: relative;
    bottom: 4px;
}
/** 7-Portafolio */
.portafolio{
    background-color: #2e2525;
    color: #fff;
    padding: 50px 20px;
}
.portafolio .contenido-seccion{
    max-width: 1100px;
    margin: auto;
}
.portafolio h2{
    font-size: 48px;
    font-family: 'Righteous';
    text-align: center;
    padding: 20px 0;
}
.portafolio .galeria{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}
.portafolio .galeria .proyecto{
    position: relative;
    max-width: 340px;
    height: fit-content;
    margin: 10px;
    cursor: pointer;
}
.portafolio .galeria .proyecto img{
    width: 100%;
    display: block;
    height: 100%;
}
.portafolio .galeria .proyecto .overlay{
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    text-align: center;
    background: linear-gradient(rgba(182, 28, 28, 0.8), rgba(182, 28, 28, 0.8));
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: 1s;
    font-size: 18px;
    letter-spacing: 3px;
    z-index: 1;
    opacity: 0;
}

.portafolio .galeria .proyecto .overlay h3{
    margin-bottom: 20px;
    transition: 1s;
}
.portafolio .galeria .proyecto .overlay:hover{
    opacity: 1;
}
.portafolio .galeria .proyecto .overlay:hover h3{
    margin-bottom: 0px;
}

/**9-Contacto */
.contacto{
    background-image: url(img/contact_bg.png);
    background-color: #261e1e;
    color: #fff;
    padding: 50px 0;
}
.contacto .contenido-seccion{
    max-width: 1100px;
    margin: auto;
}
.contacto h2{
    font-size: 48px;
    font-family: 'Righteous';
    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: 18px;
    border: none;
    margin-bottom: 20px;
    background-color: #2e2525;
    color: #fff;
    font-size: 18px;
}
.contacto button{
    cursor: pointer;
    background-color: transparent;
    border: 2px solid #fff;
    width: fit-content;
    display: block;
    margin: 20px auto;
    padding: 10px 22px;
    font-size: 16px;
    color: #fff;
    position: relative;
    z-index: 10;
}
.contacto button .overlay{
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: #b61c1c;
    z-index: -1;
    transition: 1s;
}
.contacto button:hover .overlay{
    width: 100%;
}
.contacto .col img{
    width: 100%;
    height: 100%;
}
.contacto .col .info{
    position: absolute;
    top: 40%;
    background-color: #252A2E;
    padding: 20px;
    max-width: 350px;
    left: 50%;
    transform: translate(-50%, -50%);
}
.contacto .col .info ul{
    list-style: none;
}
.contacto .col .info ul li{
    margin-bottom: 20px;
}
.contacto .col .info ul li i{
    color: #ffffff;
    display: inline-block;
    margin-right: 20px;
}

/** 10-Responsiva*/
/* RESPONSIVA */
@media screen and (max-width: 980px) {
    .menu-toggle {
        display: block;
    }

    nav {
        display: none;
        position: absolute;
        top: 70px;
        right: 0;
        width: 40%;
        background-color: black;
    }

    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        width: 100%;
        margin: 10px 0;
        text-align: center;
        border-bottom: 1px solid #ffffff;
    }
}

@media screen and (max-width:700px){
    .sobremi .fila{
        display: block;
    }
    .sobremi .fila .col{
        width: fit-content;
    }

    .skills .fila{
        display: block;
    }
    .skills .fila .col{
        width: 100%;
    }
    .skills .fila .col .barra-skill{
        width: 100%;
    }

    .curriculum .fila{
        display: block;
    }
    .curriculum .fila .col{
        width: 90%;
    }
    .curriculum .fila .derecha{
        margin-left: 20px;
    }

    .portfolio .galeria{
        display: block;
        width: 100%;
    }
    .portfolio .galeria .proyecto{
        max-width: 100%;
    }
    .portfolio .galeria .proyecto img{
        width: 100%;
    }
    .contacto .fila{
        display: block;
    }
    .contacto .fila .col{
        width: 100%;
    }
}