*{
    box-sizing: border-box;
}
:root{
    scrollbar-color: #413321 #c5bc8d;
}
html{
    scroll-behavior: smooth;
}
body{
    margin: 0;
    font-family: sans-serif;
    --color-fuert: #413321;
    --color-inter: #c5bc8d;
    --color-claro: #e0dcca;
    color: var(--color-fuert);
    background-color: var(--color-claro);
}
section[id]{
    scroll-margin-top: 50px;
}
body, div, ul, nav, header, footer, a, li, label{
    margin: 0;
    padding: 0;
    position: relative;
}
p{
    hyphens: auto;
    text-wrap: wrap;
}
/* ----------------- HEADER---------------------*/
.header{
    top: 0;
    z-index: 20;
    height: 50px;
    display: flex;
    font-size: 20px;
    position: sticky;
    align-items: center;
    container-name: header;
    backdrop-filter: blur(3px);
    background-color: #c5bc8d;
    container-type: inline-size;
    justify-content: space-between;
    box-shadow: 0px 0px 5px #41332171;
}
.header__open-nav-button{
    right: 10px;
    font-size: 3rem;
    font-weight: 600;
    position: absolute;
    color: var(--color-fuert);
}
.header__checkbox {
    display: none;
}
.header__nav{
    top: 0;   
    z-index: -1;
    display: none;
    height: 100dvh;
    width: 100dvw;    
    position: absolute;
    background-image: linear-gradient(to top, var(--color-fuert), var(--color-inter)45%, var(--color-claro) 50%, var(--color-inter));
}
.header__nav-list{
    margin: auto;
    display: flex;
    height: 40dvh;
    flex-direction: column;
    justify-content: space-evenly;
}
.header__checkbox:checked ~ .header__nav {    
    display: flex;
}
.header__logo{
    width: 50px;
    max-width: 100%;
    padding-top: 5px;
    margin: 10px 20px;
}
.header__nav-item{
    padding: 10px;
    display: flex;
    list-style: none;
    border-radius: 5px;
    flex-direction: row; 
    align-items: center; 
    transition: transform 0.1s linear, box-shadow 0.1s linear ;
}
.header__nav-item a{
    text-decoration: none;
    color: var(--color-fuert);
}
.header__nav-item .header__link:is(:hover,:active){
    transform: scale(1.1);
    text-decoration: underline;
}
.material-symbols-outlined{
    padding: 10px;
    text-decoration: none;
}
.material-symbols-outlined:hover{
    transform: scale(1.3);
}
/* ----------------- HEADER QUERIES----------------*/
@container header (min-width: 600px){
    .header__nav{
        width: auto;
        height: auto;
        display: block;
        position: static;
        align-items: center;
        background-image: none;
        justify-content: space-between;
    }
    .header__nav-list{
        gap: 20px;
        width: auto;
        height: auto;
        font-size: 1rem;
        font-weight: 500;
        margin-right: 40px;
        flex-direction: row;
        font-family: Arial, Helvetica, sans-serif;
    }
    .header__open-nav-button, .header__link{
        display: none;
    }
    .material-symbols-outlined{
        padding: 2px;
    }
    .material-symbols-outlined:hover{
        text-shadow: none;
    }
    .header__nav-item:hover{
        transform: scale(0.9);
        box-shadow: 0px 0px 5px rgba(48, 48, 48, 0.205);
    }
    .header__nav-item:active{
        transform: scale(0.9);
        background-color: #ffffff77;
        box-shadow: 0px 0px 3px rgba(255, 255, 255, 0.288);
    }
    .header__nav-item:active{
        color:  rgba(102, 102, 102, 0.548);
    }
    }
/* ----------------- HEADER FINAL----------------*/
/* ----------------- PROFILE----------------*/
.profile{
    container-name: profile ;
    container-type: inline-size;
}
.profile__wrapper{
    margin: auto;
    display: flex;
    overflow: hidden;
    max-width: 100dvw;
    flex-direction: column;
    justify-content: center;
}
.profile__button, .profile__button-label{
    cursor: pointer;  
    display: none;  
}
.profile__cortina{
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-image: radial-gradient(transparent,rgba(0, 0, 0, 0.5));
}
.profile__frase, .profile__autor {
    z-index: 0;
    margin: 25px;
    padding: 15px;
    color: #000;
    font-size: 20px;
    border-radius: 8px;
    font-weight: bolder;
    text-shadow: 0px 0px 25px #fff;
    font-family: 'Times New Roman', Times, serif;
    backdrop-filter: invert(100%) grayscale(100%);
}
.profile__autor{
    text-align: right;
}
.profile__img-container{
    overflow: hidden;
    background-size: cover;
    width: min(600px, 100%);
    height: min(400px,80dvw);
    background-position: center;
    background-image: url(Imagenes/Fisica1.jfif);
}
h1 {
    margin: 2dvh;
    padding: 10px;
    font-size: 2.6rem;
    text-wrap: balance;
    text-align: center;
    color: var(--color-fuert);
    font-family: 'Times New Roman', Times, serif;
}
.profile__description{
    display: flex;
    padding: 5px 15px;
    align-items: center;
    flex-direction: column;
    justify-content: center;
}
.profile__description p{
    padding: 0px 20px;
    text-wrap: balance;
    text-align: justify;
}
.profile__presentacion{
    padding: 0px 40px;
    text-wrap: balance;
    text-align: justify;
}
.profile__social-media{
    gap: 7dvw;
    margin: 8px;
    height: 50px;
    width: 50dvw;
    display: flex;
    align-items: center;
    justify-content: center;
}
.redes {
    font-size: 1.8rem;
    text-decoration: none;
    color: var(--color-fuert);
}
.profile__cv{
    font-size: 1px;
    margin-top: 4dvh;
    text-align: center;
}
.profile__cv + div{
    text-align: center;
    margin-bottom: 4dvh;
}
#cv{
    font-style: italic;
    text-decoration: none;
    color: var(--color-fuert);
}
.curriculum, .curriculum:visited, .curriculum:active{
    font-size: small;
    text-decoration: none;
    color: var(--color-fuert);
}
#cv_icono{
    margin: 0;
    padding: 0;
}
.redes:active {
    font-weight:900;
    transform: scale(1.1);
    text-shadow: 0px 0px 2px var(--color-fuert);
}
.profile__foto{
    width: 60dvw;
    height: 60dvw;
    overflow: hidden;
    margin-top: 4dvh;
    border-radius: 100%;
    left: calc(50% - 30dvw);
    border: var(--color-claro) 5px solid;
    box-shadow: 0px 0px 5px 0px var(--color-fuert);
}
.profile__foto > img {
    top: -15%;
    left: -5%;
    width: 110%;
    height: 150%;
    position:relative;
}
.SobreMi_titulo{
    width: 100%;
    margin-top:25px;
    margin-bottom: 0;
    text-align: center;
}
.lenguaje-barra-contenedor{
    width: 70%;
    height: 4dvh; 
    padding: 4px;
    border-radius: 5px;
    margin-bottom: 25px;
    background-color:var(--color-fuert);
}
.lenguajes{
    padding: 4dvh;
    display: flex;
    align-items: center;
    flex-direction: column;
    background-color: #c5bc8d;
    justify-content: space-between;
}
.lenguajes-contenedor{
    gap: 8px;
    display: flex;
    padding: 20px;
    flex-wrap: wrap;
    justify-items: center;
    justify-content:center;
}
input[type='radio'] {
    display: none;
}
.lenguaje-barra{
    width: 2%;
    height: 100%;
    display: flex;
    font-weight: bold;
    font-size: 0.9rem;
    padding-left: 5px;
    border-radius: 3px;
    align-items: center;
    transition: width ease-in 0.2s;
    background-color: var(--color-inter);
}
.lenguaje-label{
    filter: sepia(100%);
    transition: transform 0.1s linear;
}
.lenguaje-label:hover, input[type='radio']:checked + label, .boton-cerrarLen:hover{
    cursor: pointer;   
    transform: scale(1.25);
    filter: sepia(0%) drop-shadow(0px 0px 5px var(--color-fuert));
}
.lenguaje-mensaje{
    width: 90%;
    height: 35%;
    border-radius: 7px;
    margin-bottom: 3dvh;
    background-color: var(--color-claro);
}
.lenguaje-mensajeTitulo{
    padding: 5px;
    text-align: center;
    color: var(--color-claro);
    border-radius: 7px 7px 0px 0px;
    background-color: var(--color-fuert);
}
.lenguaje-mensajeContenido{
    height: 80%;
    padding: 10px;
    overflow: auto;
    font-size: 0.75rem;
    text-align: justify;
}
.boton-cerrarLen{
    display: none;
}
#exp{
    height: 7%;
    min-width: 20px;
    margin-bottom: 2px;
    font-weight: bolder;
    justify-content:end;
}
@container profile (min-width:600px){
    .boton-cerrarLen{
        top: 2%;
        right: 2%;
        padding: 7px;
        display: block;
        color: white;
        border-radius: 5px;
        position: absolute;
        transition: transform 0.1s linear;
        background-color: var(--color-fuert);
    }
    .boton-abrirLen{
        max-height: 25%;
        margin: 5% 0;
    }
    .profile__foto{
        left: 5%;
        width: 92%;
        height: 110%;
        margin-top: 0;
        overflow: hidden;
        position: relative;
        border-radius: 100%;
        transition: transform 0.3s ease;
        border: var(--color-claro) 5px solid;
        box-shadow: 0px 0px 5px 0px var(--color-fuert);
    }
    .profile__foto > img {
        top: -15%;
        left: -5%;
        width: 110%;
        height: 150%;
        position:relative;
    } 
    .profile__foto:hover{
        cursor: pointer;
        transform: scale(0.9);
        box-shadow: 0px 0px 20px 0px var(--color-fuert);
    }
    .SobreMi_titulo{
        margin-top: 4dvh;
    }
    .lenguajes{
        top: 7%;
        left: 36%;
        z-index: 5;
        height: 70dvh;
        padding: 20px;
        display: none;
        overflow: auto;
        max-height: 500px;
        position: absolute;
        border-radius: 7px;
        padding-left:35px ;
        width: min(400px,57%);
        background-color: var(--color-claro);
        clip-path: polygon(5% 8%, 0 0, 100% 0, 100% 100%, 5% 100%);
    }
    .lenguajes-contenedor{
        gap: 16px;    
        width: 90%;
        display: grid;
        margin: 10px 0px;
        grid-template-columns: repeat(auto-fit, 5dvh);
    }
    .lenguaje-mensaje{
        background-color: var(--color-inter);
    }
    .profile__wrapper{
        width: 90dvw;
        height: 87dvh;
        margin-top: 20px;
        max-width: 900px;
        max-height: 900px;
        position: relative;
        margin-bottom: 50px;
        justify-content: center;
        flex-direction: row-reverse ;
        border-radius:  15px 15px 15px 15px  ;
    }
    .profile__img-container{
        left: 0%;
        width: 50%;
        z-index: 1;
        height: 100%;
        position: absolute;
        background-position: center;
        border-radius:  15px 0px 0px 15px ;
        box-shadow: 0px 1px 5px #413321b4;
        transition: left 0.6s ease, border-radius 1s ease-out;
        animation: deslizar-aparecer 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }
    .profile__data-container{
        z-index: 0;
        width: 50%;
        display: flex;
        max-height: 100%;
        position: relative;
        align-items: center;
        justify-content: start;
        flex-direction: column;
        background-color: var(--color-inter);
    }
    .profile__description{
        width: 50%;
        order: none;
        font-size: min(2.5dvh, 1rem);
        background-color: var(--color-inter);
    }
    .profile__description p{
        width: 100%;
        padding: 20px;
        line-height: 20px;
        font-size: 0.9em;
    }
    .profile__presentacion{
        width: 90%;
        height: 40%;
        margin: 10px;
        overflow:auto;
        padding:0 20px;
        font-size: 13px;
        border-top: 1px var(--color-claro) solid;
        border-bottom: 1px var(--color-claro) solid;
    }
    h1{
        margin: 0;
        text-align: left;
        margin-left: 15px;
        text-wrap: balance;
        font-size: min(7dvh,3rem);
    }  
    .profile__social-media{
        margin-top: 10px;
        gap: 20px;
    }
    .redes:hover{
        transform: scale(1.1);
        text-shadow: 0px 0px 2px var(--color-fuert);
    }
    .redes{
        font-size: min(5dvh,2.3rem);
    }
    .profile__cortina{ 
        transition: backdrop-filter 0.2s linear;
    }
    @keyframes deslizar-aparecer {
        from{
            transform: translateX(-800px);
        }to{
            transform: translateX(0);
        }
    }
    .profile__frase, .profile__autor {
        padding: 0;
        border: none;
        display: none;
        backdrop-filter: none;
        font-size: min(3.2dvh, 1.5rem);
    }
    .profile__cortina:hover {
        backdrop-filter: blur(10px) sepia(100%) contrast(100%);    
    }
    .profile__cortina:hover > .profile__frase {
        display: block;    
    }
    .profile__cortina:hover > .profile__autor {
        display: block;    
    }
    .profile__button, .profile__button-label{
        position: absolute;
        z-index: 19;
    }
    .profile__wrapper:hover .profile__button-label{
        display: block;
    }
    .profile__button-label{
        width: 10%;
        right: 47%;
        padding:10px;
        height: 35px;
        text-align: center;
        background-color: var(--color-inter);
        transition: right 0.6s ease, clip-path, 0.7s ease;
        clip-path: polygon(100% 0%, 25% 0%, 0% 50%, 25% 100%, 100% 100%);
    }
    #skills:checked ~ .profile__img-container{
        left: 50%;
        border-radius:  0px 15px 15px 0px;
    }  
    #skills:checked ~ .profile__button-label{
        right: 43%;
        clip-path: polygon(0% 0%, 75% 0%, 100% 50%, 75% 100%, 0% 100%)   
    }          
}
/* ----------------- PROFILE END -----------------------*/
/* ----------------- ESTRELLITA -----------------------*/
.estrella-container{
    display: flex;
    height: 130px; 
    align-items: center;
    background-size:cover;
    justify-content: center;  
    font-family: 'Times New Roman', Times, serif;
    background-image: linear-gradient(to right, rgb(27, 27, 27), rgb(90, 90, 90), rgba(187, 187, 187, 0.644));
}
.estrellita{
    left:24%;
    top: 11%;
    width: 100px;
    height: 100px;
    position:absolute;
    border-radius: 20%;
    transform: rotate(45deg);
    backdrop-filter: invert(100%);
    animation: left-right 5s ease-in-out alternate-reverse infinite;
}
@keyframes left-right {
    from{
        left: 3%;
    }
    to{
        left: calc(93% - 100px);
    }
}
@container portafolio (min-width:600px){

    .estrella-container{
        width: 100%;
        margin: auto;
        display: flex;
        height: 130px;
        max-width: 1400px;
        margin-bottom: 30px;  
    }
    .estrellita{
        top: 0;
        left:-50%;
        width: 130px;
        height: 130px;
        animation: rotar;
        border-radius: 50%;
        animation-timeline: view();
        backdrop-filter: invert(100%);
    }
    @keyframes rotar {
        from{
            left: 88%;
            transform: scale(0.1);
                }
        to{
            left:33%;
            transform:scale(2);
        }
    }
    .automostrar{
        animation: automostrar-animacion both;
        animation-timeline: view(75% 5%);
    }
    @keyframes automostrar-animacion {
        from{
            opacity: 0;
            transform: translateY(200px) scale(0.3);            
        }
        to{
            opacity: 1;
            transform: translateY(0) scale(1) ;           
        }
    }
}
/* ----------------- ESTRELLITA END -----------------------*/
/* ----------------- PORTAFOLIO -----------------------*/
.portafolio{
    display: flex;
    text-align: center;
    background-size: cover;
    flex-direction: column;
    container-name: portafolio;
    container-type: inline-size;
    background-color: var(--color-inter);
}
.portafolio__project-container{
    gap: 3px;
    margin: 0;
    width: 100%;
    display: flex;
}
.portafolio__list{
    width: 100%;
    overflow: hidden;
}
.portafolio__project{
    width: 100%;
    height: 20dvh;
    place-content: center;
    background-size: cover;
    background-position: center;
    transition: scale 0.2s linear;
}
.portafolio__project:first-child{
    filter: invert(100%);
}
.portafolio__title{
    width: 13%;
    margin: auto;
    display: flex;
    margin-top: 15px;
    padding-top: 10px;
    font-size: 1.5rem;
    margin-bottom: 30px;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    color: var(--color-fuert);
    border-bottom: #000 1px solid;
}
.portafolio__project:hover{
    filter: grayscale(0%);
    scale: 1.07;
}
.portafolio__project-name{
    padding: 10px;
    font-size: 10px;
    font-family: 'Times New Roman', Times, serif;
}
.portafolio__link{
    padding: 3px;
    color: black;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.2s linear;
    background-color: rgba(255, 255, 255, 0.26);
}
.portafolio__link:hover{
    background-color: rgba(255, 255, 255, 0.589);
}
.link__data:hover{
    color: white;
    background-color: rgba(0, 0, 0, 0.589);
}
#fisica::after{
    padding: 20px 10px ;
    position: absolute;
    border-radius: 5px;
    content: 'Proximamente';
    font-family: sans-serif;
    color: rgb(255, 255, 255);
    font-size: calc(0.7rem + 0.5dvw);
    transform: translate(-210%, -20%);
    background-color: rgb(253, 52, 52);
}

/* ----------------- PORTAFOLIO QUERIES----------------*/
@container portafolio (min-width:600px){
    .portafolio__project-container{
        width: 100%;
        margin: auto;
        display: flex;
        overflow: hidden;
        max-width: 1400px;
        height: calc(var(--height) + 65px); 
    } 
    .portafolio__list{
        width: 100%;
        display: flex;
        overflow: hidden;
        position: relative;
        align-items: center;
        height:calc(var(--height) + 30px);
    }
    .portafolio__title{
        font-size: 2rem;
    }
    .portafolio__list .portafolio__project{
        left: 100%;
        position: absolute;
        width: var(--width);
        height: var(--height);
        animation: deslizar 20s linear infinite;
        animation-delay: calc((20s / var(--cantidad) * (var(--posicion) - 1) - 20s));
    }
    .portafolio__project-container:hover .portafolio__project{
        filter: grayscale(100%);
        animation-play-state: paused!important;
    }
    .portafolio__project-container:hover .portafolio__project:first-child{
        filter: invert(100%) grayscale(100%);
    }
    .portafolio__project-container:hover .portafolio__project:hover{
        filter: grayscale(0%);
    }
    .portafolio__project-container:hover .portafolio__project:first-child:hover, .portafolio__project-container:hover .portafolio__project:last-child:hover{
        filter: invert(100%);
    }
    #fisica::after{
        padding: 10px;
        animation: crecer-after 1s ease-in-out alternate-reverse infinite;
    }
    @keyframes crecer-after {
        from{
            transform: translate(-81%, -330%);
        }
        to{
            transform: translate(-81%, -280%);
        }
    } 
    @keyframes deslizar {
        from{
            left: 100%;
        }
        to{
            left: calc(var(--width) * -1);
        }   
    }
}
/* ----------------- PORTAFOLIO END----------------*/
/* ----------------- FORM----------------*/
.form{ 
    width: 100%;
    height: 100%;
    margin: auto;
    display: flex;
    max-width: 1400px;
    text-align: center;
    background-size: 30%;
    container-name: form; 
    flex-direction: column;
    background-repeat: repeat;
    background-position:bottom;
    container-type: inline-size;
    background-image: url(Imagenes/Logom.png);
    background-attachment: fixed;
}
.form__form{
    width: 80%;
    margin: auto;
    padding: 15px;   
    margin-top: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    background-color: var(--color-inter);
    border: solid rgba(46, 46, 46, 0.075) 1px;
    box-shadow: 0px 0px 3px rgba(61, 61, 61, 0.158);
}
.form__input-container :is(input, textarea){
    width: 100%;
    margin: 4px;
    border: none;
    color: black;
    font-size: 16px;
    padding: 9px 6px;
    border-radius: 6px;
    font-family: 'Times New Roman';
    background-color: var(--color-claro);
}
.form__input-container > label{
    color: #1b1b1b;
}
textarea{
    resize: none;
    min-height:120px;
}
.form__input-container input[type='submit']{
    font-weight: bolder;
    color: var(--color-claro);
    background-color: var(--color-fuert);
    font-family: Arial, Helvetica, sans-serif;
}
.form__input-container input[type='submit']:hover{
    transform: scale(1.01);
}
.form__input-container input[type='submit']:active{
    box-shadow: 0px 0px 10px var(--color-fuert);
}
.input__submit-animation{
    width: 80px;
    margin: auto;
    height: 80px;
    margin-top: 15px;
    margin-bottom: 15px;
    margin-bottom: 15px;
    transform:rotate(0deg);
    clip-path: circle(43%);
    background-size: contain;
    animation: color-cambio 7s linear infinite;
    background-image: url(Imagenes/esfera3.jfif);
}
@keyframes color-cambio {
    from{
        transform: rotate(0deg);
        filter: hue-rotate(0deg);
    }
    to{
        filter: hue-rotate(360deg);
        transform: rotate(360deg);
    }
}
/* ----------------- FORM QUERIES----------------*/
@container form (min-width: 600px){  
    .automostrar{
        animation: automostrar-animacion both;
        animation-timeline: view(75% 5%);
    }
    .portafolio__title{
        font-size: 2rem;
    }
    .padre{
        overflow: hidden;
    }
    .estrella-container{
        width: 100%;
        display: flex;
        height: 130px;
        max-width: 1400px;
    }
    .estrellita{
        top: 0%;
        width: 130px;
        height: 130px;
        animation: rotar;
        border-radius: 50%;
        transform: rotate(45deg);
        animation-timeline: view();
    }
    .form__form{
        gap: 12px;
        display: grid;
        width: 100dvw;
        max-width: 500px;
        grid-template-columns: 1fr 1fr;
    }
    .form__input-grande{
        grid-column: span 2;   
    }
}
/* ----------------- FORM END----------------*/
/* ----------------- FOOTER ----------------*/
footer * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Helvetica, sans-serif;
}
footer ul{
    list-style: none;
}
footer{
    background-color: rgb(43, 43, 43);
    color: var(--color-claro);
}
footer p{
    color: var(--color-inter);
    max-width: 25em;
    font-size: 0.9em;
    line-height: 23px;
}
footer a{
    color: var(--color-claro);
    text-decoration: none;
}
footer h4{
    margin-bottom: 1em;
    text-transform: uppercase;
}
footer .container{
    padding: 2em;
    margin: 0 auto;
    max-width: 1200px;
}
.footer{
    background-color: var(--color-fuert);
}
.footer::before{
    top: 0;
    left: 0;
    z-index: 0;
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
} 
.footer .container{
    position: relative;
}
.footer .footerTop .container, .footer .secondCol, .footer .footerBottom .container{
    gap: 2em;
    display: flex;
    justify-content: space-between;
}
.footerBottom .container{
    padding: 1em 2em;
    align-items: center;
}
.footer .menu li{
    margin-bottom: 0.6em;
}
.footer .menu a:hover{
    color: rgb(129, 129, 129);
}
.redes_footer{
    color: var(--color-claro);
    display: block;
    font-weight: 600;
    font-size: 1.8rem;
    margin-bottom: 1em;
}
.icons li{
    display: inline-block;
    margin: 0.5em 0.5em 0.5em 0;
}
.icons a{
    width: 1.9em;
    height: 1.9em;
    display: flex;
    font-size: 1.1em;
    transition: 0.3s;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    border: 1px #fff solid;
}
.icons a:hover{
    color: #111;
    background-color: var(--color-claro);
}
.footerBottom{
    border-top: 1px solid #dbdbdb;
}
@media screen and (max-width: 900px){
    .footer .footerTop .container, .footer .footerBottom .container{
        flex-direction: column;
    }
    .footer .secondCol{
        flex-wrap: wrap;
        justify-content: flex-start;
    }
}