@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
*{
    box-sizing: border-box;
    font-family: 'Edu AU VIC WA NT Hand';
    margin: 0;
    padding: 0;
}

html{
    /* me permite deslizar cuando hago clic en los links del menu */
    scroll-behavior: smooth;
}
/* MENU */
.contenedor-header{
    background: #002d00;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 99;
}
.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';
    font-size: 36px;
    color: #fa8107;
    text-decoration: none;
}
.contenedor-header header ul{
    display: flex;
    list-style: none;
}
.contenedor-header header nav ul li a{
    text-align: none;
    color: #fff;
    margin: 0 15px;
    padding: 3px;
    transition: .5s;
    text-decoration: none;
}
.contenedor-header header nav ul li a:hover{
    color: #fa8107;
}
.nav-responsive{
    background-color: #fa8107;
    color:#fff;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    display: none;
}
/* SECCION I N I C I O */
.inicio{
    background: linear-gradient(to top, rgba(30,35,38,.8), rgba(30,35,38,1)),
    url(img/fondo.jpg);
    background-size: cover;
    height: 100vh;
    color: #fff;
    display: flex;
    align-items: center;
}
.inicio .contenido-banner{
    padding: 20px;
    background-color: #1e2326;
    max-width: 350px;
    margin: auto;
    text-align: center;
    border-radius: 40px;
}
.inicio .contenido-banner img{
    margin-top: 40px;
    border: 10px solid #fa8107;
    display: block;
    width: 80%;
    margin: auto;
    border-radius: 100%;
}
.inicio .contenido-banner h1{
    margin-top: 40px;
    font-size: 42px;
    font-family: 'Righteous';
}
.inicio .contenido-banner h2{
    font-size: 15px;
    font-weight: normal;
}
.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: 40px 5px;
    font-size: 20px;
    transition: .3s;
}
.inicio .contenido-banner .redes a:hover{
    background-color: #fa8107;
}
.sobremi{
    background-color: #1e2326;
    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: #fa8107;
    font-weight: bold;
}
.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: #fa8107;
    width: 130px;
}
.sobremi .fila .col ul li span{
    background-color: #fa8107;
    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: #252A2E;
    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: #fa8107;
}
.sobremi .fila .col .contenedor-intereses .interes i{
    font-size: 30px;
    margin-bottom: 10px;
}
.sobremi 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;
}
.sobremi button .overlay{
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: #fa8107;
    z-index: -1;
    transition: 1s;
}
.sobremi button:hover .overlay{
    width: 100%;
}

/* SECCION S K I L L S */
.skills{
    background-color: #252A2E;
    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: 50%;
    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: #131517;
    position: relative;
    margin-bottom: 30px;
}
.skills .skill .progreso{
    background-color: #fa8107;
    position: absolute;
    top: 0;
    left: 0;
    height: 8px;
}
.skills .skill .barra-skill span{
    position: absolute;
    height: 40px;
    width: 40px;
    background-color: #fa8107;
    border-radius: 50px;
    line-height: 40px;
    text-align: center;
    top: -17px;
    right: -15px;
    font-size: 14px;
}
/* Estas clases se agregaran dinamicamente mediante javascript  para habilidades técnicas*/
.skills .skill .MachineLearning{
    width: 0%;
    animation: 2s MachineLearning forwards;
}
@keyframes MachineLearning {
    0%{width: 0%;}
    100%{width: 89%;}
}

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

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

.skills .skill .DataProcessingAnalysis{
    width: 0%;
    animation: 2s DataProcessingAnalysis forwards;
}
@keyframes DataProcessingAnalysis {
    0%{width: 0%;}
    100%{width: 100%;}
}
/* Estilos para las barras de progreso hadoop */
.skills .skill .hadoop{
    width: 0%;
    animation: 2s hadoop forwards;
}
@keyframes hadoop {
    0%{width: 0%;}
    100%{width: 50%;}
}

.skills .skill .hive{
    width: 0%;
    animation: 2s hive forwards;
}
@keyframes hive {
    0%{width: 0%;}
    100%{width: 50%;}
}
/* Estilos para las barras de progreso spark */
.skills .skill .spark{
    width: 0%;
    animation: 2s spark forwards;
}
@keyframes spark {
    0%{width: 0%;}
    100%{width: 50%;}
}
/* Estas clases se agregaran dinamicamente mediante javascript  para habilidades Profesionales*/
.skills .skill .comunicacion{
    width: 0%;
    animation: 2s comunicacion forwards;
}
@keyframes comunicacion {
    0%{width: 0%;}
    100%{width: 90%;}
}
/* Estilos para las barras de progreso trabajo en equipo */
.skills .skill .trabajoequipo{
    width: 0%;
    animation: 2s trabajoequipo forwards;
}
@keyframes trabajoequipo {
    0%{width: 0%;}
    100%{width: 100%;}
}
/* Estilos para las barras de progreso creatividad */
.skills .skill .creatividad{
    width: 0%;
    animation: 2s creatividad forwards;
}
@keyframes creatividad {
    0%{width: 0%;}
    100%{width: 80%;}
}

/* Estilos para las barras de progreso responsabilidad */
.skills .skill .responsabilidad{
    width: 0%;
    animation: 2s responsabilidad forwards;
}
@keyframes responsabilidad {
    0%{width: 0%;}
    100%{width: 100%;}
}
/* Estilos para las barras de progreso elaboración de informes */
.skills .skill .informes{
    width: 0%;
    animation: 2s informes forwards;
}
@keyframes informes {
    0%{width: 0%;}
    100%{width: 100%;}
}
/* Estilos para las barras de progreso elaboración de dedicación */
.skills .skill .dedicacion{
    width: 0%;
    animation: 2s dedicacion forwards;
}
@keyframes dedicacion {
    0%{width: 0%;}
    100%{width: 94%;}
}


/* SECCION CURRICULUM EN DONDE SE MUESTRA LA EDUCACIÓN Y LA EXPERIENCIA DE TRABAJO*/
.curriculum{
    background-color: #1e2326;
    color: #fff;
    padding: 50px 20px;
}
.curriculum .contenido-seccion{
    max-width: 1100px;
    margin: auto;
}
.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: 49%;
    padding: 0 20px;
}
.curriculum .fila .col h3{
    font-size: 28px;
    font-family: 'Righteous';
    margin-bottom: 25px;
}
.curriculum .fila .izquierda{
    border-right: 2px solid #252A2E;
}
.curriculum .fila .derecha{
    border-left: 2px solid #252A2E;
}
.curriculum .fila .item{
    padding: 25px;
    margin-bottom: 30px;
    background-color: #252A2E;
    position: relative;
}
.curriculum .fila .item h4{
    font-size: 20px;
    margin-bottom: 10px;
}
.curriculum .fila .item .casa{
    color: #fa8107;
    font-size: 22px;
    font-weight: bold;
    display: block;
}
.curriculum .fila .item .fecha{
    display: block;
    color: #fa8107;
    margin-bottom: 10px;
}
.curriculum .fila .item p{
    line-height: 24px;
}
.curriculum .fila .izq{
    border-right: 2px solid #fa8107;
    margin-right: 20px;
}
.curriculum .fila .der{
    border-left: 2px solid #fa8107;
    margin-left: 20px;
}
.curriculum .fila .item .conectori{
    height: 2px;
    background-color: #fa8107;
    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: #fa8107;
    float: right;
    position: relative;
    bottom: 4px;
}
.curriculum .fila .item .conectord{
    height: 2px;
    background-color: #fa8107;
    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: #fa8107;
    float: left;
    position: relative;
    bottom: 4px;
}
/* SECCION PORTFOLIO */
.portfolio {
    background-color: #252A2E;
    color: #fff;
    padding: 50px 20px;
}

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

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

.portfolio .galeria {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Centra los elementos */
    gap: 20px; /* Espacio uniforme entre recuadros */
}

.portfolio .galeria .proyecto {
    position: relative;
    width: 400px;  /* Tamaño fijo para uniformidad */
    height: fit-content; /* Mantiene proporciones iguales */
    cursor: pointer;
    overflow: hidden; /* Evita que el contenido sobresalga */
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio .galeria .proyecto img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ajusta la imagen sin distorsión */
    display: block;
}

.portfolio .galeria .proyecto .overlay {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    text-align: center;
    background: rgba(28,182,152,0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: opacity 0.5s ease-in-out;
    font-size: 18px;
    letter-spacing: 3px;
    opacity: 0;
}

.portfolio .galeria .proyecto .overlay h3 {
    margin-bottom: 20px;
    transition: margin-bottom 0.5s;
}

.portfolio .galeria .proyecto:hover .overlay {
    opacity: 1;
}

.portfolio .galeria .proyecto:hover .overlay h3 {
    margin-bottom: 0;
}


/* SECCION RECURSOS */
.recursos{
    background-color: #252A2E;
    color: #fff;
    padding: 50px 20px;
}
.recursos .contenido-seccion{
    max-width: 1100px;
    margin: auto;
}
.recursos h2{
    font-size: 48px;
    font-family: 'Righteous';
    text-align: center;
    padding: 20px 0;
}
.recursos .galeria{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}
.recursos .galeria .proyecto{
    position: relative;
    max-width: 340px;
    height: fit-content;
    margin: 10px;
    cursor: pointer;
}
.recursos .galeria .proyecto img{
    width: 100%;
    display: block;
}
.recursos .galeria .proyecto .overlay{
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    text-align: center;
    background: linear-gradient(rgba(28,182,152,.8), rgba(28,182,152,.8));
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: 1s;
    font-size: 18px;
    letter-spacing: 3px;
    opacity: 0;
}
.recursos .galeria .proyecto .overlay h3{
    margin-bottom: 20px;
    transition: 1s;
}
.recursos .galeria .proyecto .overlay:hover{
    opacity: 1;
}
.recursos .galeria .proyecto .overlay:hover h3{
    margin-bottom: 0px;
}
/* SECCION CONTACTO */
.contacto{
    background-image: url(img/contact_bg.png);
    background-color: #1e2326;
    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: #252A2E;
    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: #fa8107;
    z-index: -1;
    transition: 1s;
}
.contacto button:hover .overlay{
    width: 100%;
}
.contacto .col img{
    width: 100%;
}
.contacto .col .info{
    position: absolute;
    top: 40%;
    background-color: #252A2E;
    padding: 20px;
    max-swidth: 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: #fa8107;
    display: inline-block;
    margin-right: 20px;
}
footer{
    background-color: #252A2E;
    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: 40px 5px;
    font-size: 20px;
    transition: .3s;
}
footer .arriba{
    display: block;
    width: 50px;
    height: 50px;
    background-color: #fa8107;
    color: #fff;
    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: #252A2E;
        width: 180px;
    }
    nav.responsive ul{
        display: block !important;
    }
    nav.responsive ul li{
        border-bottom: 1px solid #fff;
        padding: 10px 0;
    }
}
@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%;
    }
}


/* Estilos de la ventana modal */
.modal {
    opacity: 0;
    visibility: hidden;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease-out, visibility 0.3s ease-out;
}

/* Clase para mostrar la modal */
.modal.show {
    opacity: 1;
    visibility: visible;
}

/* Contenedor de la modal */
.modal-contenido {
    background: white;
    padding: 20px;
    width: 90%; /* Ocupa el 90% del ancho de la pantalla */
    max-width: 1200px; /* Ancho máximo fijo */
    height: auto; /* Altura automática según el contenido */
    max-height: 80vh; /* Limita la altura al 80% del viewport */
    border-radius: 10px;
    position: relative;
    transform: translateY(-20px) scale(0.95);
    transition: transform 0.3s ease-out;
    display: grid; /* Usar CSS Grid */
    grid-template-columns: 60% 40%; /* Imagen 60%, Texto 40% */
    gap: 20px; /* Espacio entre la imagen y el texto */
    align-items: flex-start; /* Alinear elementos al inicio (arriba) */
}

/* Agregar animación de entrada */
.modal.show .modal-contenido {
    transform: translateY(0) scale(1);
}

/* Contenedor de la galería de imágenes */
.modal-galeria {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%; /* La imagen ocupa todo el ancho de su contenedor */
    height: auto; /* Altura automática */
    
}

.modal img {
    width: 100%; /* La imagen ocupa todo el ancho de su contenedor */
    height: auto; /* Altura automática para mantener la proporción */
    border-radius: 5px;
    max-height: 70vh; /* Limita la altura de la imagen */
}

/* Contenedor del texto */
.modal-texto {
    display: flex;
    flex-direction: column; /* Asegura que el título, descripción y enlace estén apilados */
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    text-align: left;
    padding: 10px;
    overflow-y: auto;
    max-height: 70vh;
    gap: 10px; /* Espacio entre elementos */
}

.modal-texto h2 {
    margin: 0;
    font-size: 24px;
}

.modal-texto p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
}

.modal-texto a {
    margin-top: 10px;
    display: inline-block;
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.modal-texto a:hover {
    text-decoration: underline;
}

/* Botón para cerrar */
.cerrar {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    transition: color 0.3s ease;
}

.cerrar:hover {
    color: red;
}

/* Botones de navegación */
.modal-prev, .modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.modal-prev {
    left: 10px;
}

.modal-next {
    right: 10px;
}

.modal-prev:hover, .modal-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Mejorar la accesibilidad */
.cerrar:focus, .modal-prev:focus, .modal-next:focus {
    outline: 2px solid #007bff;
}

@media (max-width: 768px) {
    .modal-contenido {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px; /* Corrección de unidad */
        justify-content: center;
    }

    .modal-galeria {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px; /* Corrección de unidad */
    }

    .modal-galeria img {
        width: 95%; /* Ajusta la imagen al ancho del contenedor */
        max-width: 100%; /* Evita que se desborde */
        max-height: 30vh; /* Reduce la altura máxima para que no se comprima */
        object-fit: contain; /* Mantiene la proporción sin cortes */
    }

    .modal-texto {
        width: 90%; /* Reduce el ancho del texto */
        text-align: justify; /* Justifica el texto */
        padding: 10px;
        max-height: 40vh; /* Limita la altura del texto para evitar que sea demasiado largo */
        overflow-y: auto; /* Agrega desplazamiento si el texto es muy largo */
    }
}

@media (max-width: 768px) {

    /* Ajuste de imágenes */
    img {
        display: block;
        width: 100%;
        max-width: 100%;
        border-radius: 8px;
        margin-bottom: 20px; /* Esto separa las imágenes */
    }
}
