@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 {
    /* me permite deslizar cuando hago click en los links del MENU */
    scroll-behavior: smooth;
}

/* MENU */
.contenedor-header {
    /* background: #2c5364; */
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 99;
    padding-top: 0;
}

.contenedor-header header {
    max-width: 1100px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    border: 1px solid #0F2027;
    border-radius: 10px;
    margin-top: 10px;
    background-color: #0F2027;
}

.contenedor-header header .logo a {
    font-family: 'Righteous';
    font-size: 36px;
    color: #e7f0ed;
    text-decoration: none;
}

.contenedor-header header ul {
    display: flex;
    list-style: none;
}

.contenedor-header header nav ul li a {
    text-align: none;
    font-family: 'Righteous', Times, serif;
    color: #dde2e4;
    margin: 0 15px;
    padding: 3px;
    transition: .5s;
    text-decoration: none;
}

.contenedor-header header nav ul a:hover {
    color: #1CB698;
}

.nav-responsive {
    background-color: #2C5364;
    color: #ffff;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    display: none;
}

/*SECCION VIDEO */

#hero1{
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 20px;
}

video{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
}

.capa {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:#1CB698;
    opacity: 0.5;
    mix-blend-mode: overlay;
    z-index: 2;
}

/* Media queries para la sección de video */
@media screen and (max-width: 980px) {
    #hero1 {
        min-height: 60vh;
        align-items: center;
        padding-bottom: 0;
    }
    
    video {
        object-position: center center;
    }
}

@media screen and (max-width: 480px) {
    #hero1 {
        min-height: 50vh;
    }
}

/* SECCION INICIO */
.inicio {
    background: linear-gradient(to top, rgba(156, 164, 168, 0.8), rgb(35, 77, 95)),
        url(img/FondoGX.jpeg); 
    background-size: 99%;
    height: 100vh;
    color: #ffff;
    display: flex;
    align-items: center;
}

.inicio .contenido-banner {
    padding: 20px;
    background-color: #0F2027;
    max-width: 350px;
    margin: auto;
    text-align: center;
    border-radius: 40px;
}

.inicio .contenido-banner img {
    margin-top: 40px;
    border: 10px solid #c9d3d0;
    display: block;
    width: 80%;
    margin: auto;
    border-radius: 100%;
}

.inicio .contenido-banner h1 {
    margin-top: 40px;
    font-size: 27px;
    font-family: 'Righteous', Times, serif;
}

.inicio .contenido-banner h2 {
    font-size: 15px;
}

.inicio .contenido-banner .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: 20px 5.5px;
    font-size: 20px;
    transition: .3s;
}

.inicio .contenido-banner .redes a:hover {
    background-color: #1CB698;
}

.sobremi {
    background-color: #0F2027;
    color: #fff;
    padding: 50px 20px;
}

.sobremi .contenido-seccion {
    max-width: 1100px;
    margin: auto;
}

.sobremi h2 {
    font-size: 48px;
    font-family: 'Righteous';
    text-align: center;
    padding: 20px 0;
}

.sobremi .contenido-seccion p {
    font: 18px;
    line-height: 22px;
    margin-bottom: 20px;
}

.sobremi .contenido-seccion p span {
    color: #2C5364;
    font-weight: bolder;
}

.sobremi .fila {
    display: flex;
    gap: 50px;
}

.sobremi .fila .col {
    width: 50%;
    padding: 20px;
    background-color: #1a1f24;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.sobremi .fila .col h3 {
    font-size: 28px;
    font-family: 'Righteous';
    margin-bottom: 25px;
    color: #1CB698;
    border-bottom: 2px solid #1CB698;
    padding-bottom: 10px;
}

.sobremi .fila .col ul {
    list-style: none;
    margin-top: 20px;
}

.sobremi .fila .col ul li {
    margin: 15px 0;
    padding: 10px;
    background-color: #252A2E;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.sobremi .fila .col ul li:hover {
    transform: translateX(10px);
}

.sobremi .fila .col ul li strong {
    display: inline-block;
    color: #1CB698;
    width: 130px;
    font-weight: bold;
}

.sobremi .fila .col ul li span {
    background-color: #2C5364;
    padding: 5px 10px;
    font-weight: bold;
    border-radius: 5px;
    margin-left: 10px;
}

.sobremi .fila .col .contenedor-intereses {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.sobremi .fila .col .contenedor-intereses .intereses {
    width: 100px;
    height: 100px;
    background-color: #252A2E;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: .3s;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.sobremi .fila .col .contenedor-intereses .intereses:hover {
    background-color: #1CB698;
    transform: translateY(-5px);
}

.sobremi .fila .col .contenedor-intereses .intereses i {
    font-size: 30px;
    margin-bottom: 10px;
    color: #dadada;
}

.sobremi button {
    cursor: pointer;
    background-color: transparent;
    border: 2px solid #ffff;
    width: fit-content;
    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: #2C5364;
    z-index: .1;
    transition: 1s;
}

.sobremi button:hover .overlay {
    width: 100%;
}

/* SECCION S K I L L S */

.skills {
    background-color: #0F2027;
    color: #fff;
    padding: 50px 20px;
}

.skills .contenido-seccion {
    max-width: 1100px;
    margin: auto;
}

.skills h2 {
    font-size: 38px;
    font-family: 'Righteous';
    text-align: center;
    padding: 20px 0;
}

.skills .fila {
    display: flex;
}

.skills .fila .col {
    width: 50%;
    padding: 0 20px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.skills .fila .col.animate {
    animation: fadeInUp 0.8s ease forwards;
}

.skills .fila .col:nth-child(1).animate {
    animation-delay: 0.2s;
}

.skills .fila .col:nth-child(2).animate {
    animation-delay: 0.4s;
}

.skills .skill {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.5s ease;
}

.skills .skill.animate {
    animation: slideInRight 0.5s ease forwards;
}

/* Animación para cada skill con retraso */
.skills .skill:nth-child(1).animate { animation-delay: 0.3s; }
.skills .skill:nth-child(2).animate { animation-delay: 0.4s; }
.skills .skill:nth-child(3).animate { animation-delay: 0.5s; }
.skills .skill:nth-child(4).animate { animation-delay: 0.6s; }
.skills .skill:nth-child(5).animate { animation-delay: 0.7s; }
.skills .skill:nth-child(6).animate { animation-delay: 0.8s; }

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.skills .skill> span{
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
}

.skills .skill .barra-skill {
    height: 8px;
    width: 80%;
    background-color: #131517;
    position: relative;
    margin-bottom: 30px;
}

.skills .skill .progreso {
    background-color: #2C5364;
    position: absolute;
    top: 0;
    left: 0;
    height: 8px;
}

.skills .skill .barra-skill span {
    position: absolute;
    height: 40px;
    width: 40px;
    background-color: #2C5364;
    border-radius: 50px;
    line-height: 40px;
    text-align: center;
    top: -17px;
    right: -15px;
    font-size: 14px;
}

/* Estas clases se agregaran dinamicamente mediante javascript */
.skills .skill .javascript {
    width: 0%;
    animation: 2s javascript forwards;
}

@keyframes javascript {
    0% {
        width: 0%;
    }

    100% {
        width: 85%;
    }
}

.skills .skill .htmlcss {
    width: 0%;
    animation: 2s htmlcss forwards;
}

@keyframes htmlcss {
    0% {
        width: 0%;
    }

    100% {
        width: 95%;
    }
}

.skills .skill .photoshop {
    width: 0%;
    animation: 2s photoshop forwards;
}

@keyframes photoshop {
    0% {
        width: 0%;
    }

    100% {
        width: 85%;
    }
}

.skills .skill .canva {
    width: 0%;
    animation: 2s canva forwards;
}

@keyframes canva {
    0% {
        width: 0%;
    }

    100% {
        width: 90%;
    }
}

.skills .skill .lightroom {
    width: 0%;
    animation: 2s lightroom forwards;
}

@keyframes lightroom {
    0% {
        width: 0%;
    }

    100% {
        width: 98%;
    }
}

.skills .skill .office {
    width: 0%;
    animation: 2s office forwards;
}

@keyframes office {
    0% {
        width: 0%;
    }

    100% {
        width: 80%;
    }
}

/* Prefesional Skills */

.skills .skill .comunicacion {
    width: 0%;
    animation: 2s comunicacion forwards;
}

@keyframes comunicacion {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

.skills .skill .lider {
    width: 0%;
    animation: 2s lider forwards;
}

@keyframes lider {
    0% {
        width: 0%;
    }

    100% {
        width: 85%;
    }
}

.skills .skill .atencion {
    width: 0%;
    animation: 2s atencion forwards;
}

@keyframes atencion {
    0% {
        width: 0%;
    }

    100% {
        width: 90%;
    }
}

.skills .skill .trabajoteam {
    width: 0%;
    animation: 2s trabajoteam forwards;
}

@keyframes trabajoteam {
    0% {
        width: 0%;
    }

    100% {
        width: 90%;
    }
}

.skills .skill .creatividad {
    width: 0%;
    animation: 2s creatividad forwards;
}

@keyframes creatividad {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

.skills .skill .dedicacion {
    width: 0%;
    animation: 2s dedicacion forwards;
}

@keyframes dedicacion {
    0% {
        width: 0%;
    }

    100% {
        width: 78%;
    }
}

/* SEECION CURRICULUM  */

.curriculum {
    background: linear-gradient(to top, rgba(30, 35, 38, .8), rgba(30, 35, 38, 1)),
        url(img/back_social.png);
    color: #fff;
    padding: 30px 20px;
}

.curriculum .contenido-seccion {
    max-width: 1100px;
    margin: auto;
}

.curriculum h2 {
    font-size: 38px;
    font-family: 'Righteous';
    text-align: center;
    padding: 20px 0;
}

.curriculum .fila {
    display: flex;
    justify-content: space-between;
}

.curriculum .fila .col {
    width: 49%;
    padding: 0 20px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.curriculum .fila .col.animate {
    animation: fadeInUp 0.8s ease forwards;
}

.curriculum .fila .izquierda.animate {
    animation-delay: 0.2s;
}

.curriculum .fila .derecha.animate {
    animation-delay: 0.4s;
}

.curriculum .fila .item {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.5s ease;
}

.curriculum .fila .item.animate {
    animation: slideInRight 0.5s ease forwards;
}

/* Animación para cada item con retraso */
.curriculum .fila .izquierda .item:nth-child(1).animate { animation-delay: 0.3s; }
.curriculum .fila .izquierda .item:nth-child(2).animate { animation-delay: 0.4s; }
.curriculum .fila .izquierda .item:nth-child(3).animate { animation-delay: 0.5s; }

.curriculum .fila .derecha .item:nth-child(1).animate { animation-delay: 0.3s; }
.curriculum .fila .derecha .item:nth-child(2).animate { animation-delay: 0.4s; }
.curriculum .fila .derecha .item:nth-child(3).animate { animation-delay: 0.5s; }

/* Animación para los conectores */
.curriculum .fila .item .conectori,
.curriculum .fila .item .conectord {
    opacity: 0;
    transition: all 0.5s ease;
}

.curriculum .fila .item.animate .conectori,
.curriculum .fila .item.animate .conectord {
    animation: fadeIn 0.5s ease forwards;
    animation-delay: 0.6s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.curriculum .fila .izquierda{
    border-right: 1px solid #d3d6d8;
}

.curriculum .fila .derecha{
    border-left: 1px solid #d3d6d8;
}

.curriculum .fila .item{
    padding: 25px;
    margin-bottom: 30px;
    background-color: #263544;
    position: relative; 
}

.curriculum .fila .item h4{
    font-size: 20px;
    margin-bottom: 10px;
}

.curriculum .fila .item .casa{
    color: #1CB698;
    font-size: 18px;
    font-weight: bold;
    display: block;
}

.curriculum .fila .item .fecha{
    display: block;
    color: #1CB698;
    margin-bottom: 10px;
}

.curriculum .fila .item p{
    line-height: 24px;
}

.curriculum .fila .izq{
    border-right: 2px solid #1CB698;
    margin-right: 18px; 
}

.curriculum .fila .der{
    border-left: 2px solid #1CB698;
    margin-left: 20px; 
}

.curriculum .fila .item .conectori{
    height: 2px;
    background-color: #1CB698;
    width: 45px;
    position: absolute;
    top: 50%;
    right: -45px;
    z-index: 5;
}

.curriculum .fila .item .conectori .circuloi{
    display: block;
    height: 10px;
    width: 10px;
    border-radius: 50%;
    background-color: #1CB698;
    float: right;
    position: relative;
    bottom: 4px;
}

.curriculum .fila .item .conectord{
    height: 2px;
    background-color: #1CB698;
    width: 45px;
    position: absolute;
    top: 50%;
    left: -45px;
    z-index: 5;
}

.curriculum .fila .item .conectord .circulod{
    display: block;
    height: 10px;
    width: 10px;
    border-radius: 50%;
    background-color: #1CB698;
    float: left;
    position: relative;
    bottom: 4px;
}

/* SEECION PORTAFOLIO */

.portafolio{
    background-color: #0F2027;
    color: #fff;
    padding: 30px 20px;
}

.portafolio .contenido-seccion {
    max-width: 1100px;
    margin: auto;
}

.portafolio h2 {
    font-size: 38px;
    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;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

/* Clase que se activará con JavaScript */
.portafolio .galeria .proyecto.animate {
    animation: fadeInUp 0.8s ease forwards;
}

/* Animación para cada proyecto con retraso */
.portafolio .galeria .proyecto.animate:nth-child(1) { animation-delay: 0.1s; }
.portafolio .galeria .proyecto.animate:nth-child(2) { animation-delay: 0.3s; }
.portafolio .galeria .proyecto.animate:nth-child(3) { animation-delay: 0.5s; }
.portafolio .galeria .proyecto.animate:nth-child(4) { animation-delay: 0.7s; }
.portafolio .galeria .proyecto.animate:nth-child(5) { animation-delay: 0.9s; }
.portafolio .galeria .proyecto.animate:nth-child(6) { animation-delay: 1.1s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.portafolio .galeria .proyecto a{
    color: #c9d3d0;
    font-family: 'Times New Roman', Times, serif;
}

.portafolio .galeria .proyecto img{
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.portafolio .galeria .proyecto:hover img {
    transform: scale(1.05);
}

.portafolio .galeria .proyecto .overlay{
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    text-align: center;
    background: linear-gradient(rgba(44, 83, 100, .8), rgba(44, 83, 100, .8));
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.5s ease;
    font-size: 18px;
    letter-spacing: 3px;
    opacity: 0;
    transform: scale(0.9);
}

.portafolio .galeria .proyecto .overlay h3{
    margin-bottom: 20px;
    transition: all 0.5s ease;
    transform: translateY(20px);
}

.portafolio .galeria .proyecto .overlay:hover{
    opacity: 1;
    transform: scale(1);
}

.portafolio .galeria .proyecto .overlay:hover h3{
    margin-bottom: 0px;
    transform: translateY(0);
}

/* SECCION CONTACTO */

.contacto{
    background-image: url(img/contact_bg.png);
    background-color: #0F2027;
    color: #fff;
    padding: 50px;
}

.contacto .contenido-seccion{
    max-width: 1100px;
    margin: auto;
}

.contacto h2{
    font-size: 38px;
    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: #252A2E;
    color: #fff;
    font-size: 18px;
}

.contacto button{
    cursor: pointer;
    background-color: transparent;
    border: 2px solid #ffff;
    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: #1CB698;
    z-index: -1;
    transition: 1s;
}

.contacto button:hover .overlay{
    width: 100%;
}

.contacto .col img{
    width: 100%;
    height: 70%;
}   

.contacto .col .info{
    position: absolute;
    top: 35%;
    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: 22px;
}

.contacto .col .info ul li i{
    color: #2C5364;
    display: inline-block;
    margin-right: 20px;
}

/* SECCION FOOTER */

footer{
    background-color: #0F2027;
    color: #fff;
    padding: 50px 0 30px 0;
    text-align: center;
    position: relative;
    width: 100%;
}

footer .redes{
    margin-bottom: 20px;
}

footer .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: 20px 5.5px;
    font-size: 20px;
    transition: .3s;
}

footer .redes a:hover {
    background-color: #1CB698;
    transform: scale(1.1);
    transition: all 0.3s ease;
}

footer .arriba{
    display: block;
    width: 50px;
    height: 50px;
    background-color: #1CB698;
    color: #dde2e4;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -25px;
    border-radius: 50%;
    line-height: 50px;
    font-size: 18px;
}

/* SECCION RESPONSIVE  */
@media screen and (max-width:980px){
    nav{
        display: none;
    }
    .nav-responsive{
        display: block;
    }
    nav.responsive{
        display: block;
        position: absolute;
        right: 0;
        top: 75px;
        background-color: #0F2027;
        width: 180px;
    }

    nav.responsive ul{
        display: block !important;
    }

    nav.responsive ul li{
        border-bottom: 1px  solid #c9d3d0;
        padding: 10px 0;
    }
}
@media screen and (max-width:700px) {
    .sobremi .fila {
        flex-direction: column;
        gap: 30px;
    }

    .sobremi .fila .col {
        width: 100%;
    }

    .skills .fila {
        display: block;
    }

    .skills .fila .col {
        width: 100%;
        animation-delay: 0.2s !important;
    }

    .curriculum .fila{
        display: block;
    }
    .curriculum .fila .col{
        width: 90%;
    }
    .curriculum .fila .derecha{
        margin-left: 20px;
    }

    .portafolio .galeria{
        display: block;
        width: 100%;
    }
    .portafolio .galeria .proyecto {
        max-width: 100%;
        animation-delay: 0.2s !important; /* Ajusta el retraso para móviles */
    }
    .portafolio .galeria .proyecto img{
        width: 100%;
    }
    .contacto .fila{
        display: block;
    }
    .contacto .fila .col{
        width: 100%;
    }
}

/* Clases para control de visibilidad */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}


.cv-button-container button {
    cursor: pointer;
    background-color: #0F2027;
    border: 2px solid #fff;
    padding: 10px 22px; 
    font-size: 16px; 
    color: #fff;
    position: relative;
    z-index: 10;
    border-radius: 30px; 
    transition: all 0.3s ease;
}

.cv-button-container button:hover {
    background-color: #1CB698;
}

.cv-button-container button .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: #2C5364; 
    z-index: -1;
    transition: 1s;
    border-radius: 30px;
}

.cv-button-container button:hover .overlay {
    width: 100%;
}

.cv-button-container button i {
    margin-left: 10px;
}


#hero1 .cv-button-container.desktop-only {
    position: absolute;
    bottom: 10%; 
    left: 50%;
    transform: translateX(-50%);
    z-index: 10; 
    text-align: center;
    width: auto; 
    max-width: none;
    margin: 0;
    backdrop-filter: blur(5px); 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); 
}

#hero1 .cv-button-container.desktop-only button {
    padding: 15px 30px; 
    font-size: 18px; 
}

#hero1 .cv-button-container.desktop-only button:hover {
    transform: translateY(-5px); 
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3); 
}


#sobremi .cv-button-container.mobile-only {
    text-align: center;
    margin: 20px auto; 
    width: fit-content; 
    display: block; 
    position: static; 
    bottom: auto;
    left: auto;
    right: auto;
    transform: none; 
    z-index: auto;
}


@media screen and (max-width: 980px) {
    
    #hero1 .cv-button-container.desktop-only {
        display: none;
    }

    
    #sobremi .cv-button-container.mobile-only {
        display: block;
    }

    
    #hero1 {
        position: relative;
        
        padding-bottom: 20px; 
    }

    
    #sobremi .contenido-seccion {
        padding-top: 20px; 
    }
}