@font-face {
    font-family: 'Castoro';
    src: url('../fonts/castoro/castoro-regular.woff') format('woff');
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins/Poppins-Regular.woff') format('woff');
    font-display: swap;    
}

* {
    padding: 0;
    margin: 0;
    font-family: 'Poppins';
    box-sizing: border-box;
    scroll-behavior: smooth;   
    
    --clr:#202121;
    --clr2: #696d6d;
    --clr3: #448d39;
    --clr4: #11250f;
}

body {
    width: 100%;
    max-width: 100vw;
    min-height: 100vh;
}

section {
    max-width: 100vw;
    
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;    
    
    font-weight: 600;        
    background: var(--clr);
}

header[id="menu"] {    
    position: fixed;
    top: 0;
    width: 100vw;    
    height: 130px;
    background: transparent;
    
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-transform: uppercase;

    padding: 0px 30px 0;        
    z-index: 100;
}


.oscureceHeader {
    animation: oscureceHeader;
}

.showHeader {    
    animation: muestraHeader;
}
.ocultaHeader {
    animation: ocultaHeader;
}

.showHeader, .ocultaHeader, .oscureceHeader {    
    animation-duration: .5s;
    animation-timing-function: ease-in-out;
    animation-fill-mode: forwards;
}

@keyframes muestraHeader {
    from {
        opacity: 0%;        
    }
    to {
        opacity: 100%;        
    }    
}

@keyframes ocultaHeader {
    from {
        opacity: 100%;        
    }
    to {
        opacity: 0%;        
    }    
}

@keyframes oscureceHeader {
    from {
        background: transparent;
    }
    to {
        background: rgba(0,0,0, .8);
    }
}

@keyframes shadow-animation {
    0% {        
        filter: drop-shadow(2px 1px 5px #eee) drop-shadow(-2px -2px 10px #448d39);
    }
    25% {        
        filter: drop-shadow(2px 0px 10px #448d39) drop-shadow(-2px 0px 5px #eee);
    }  
    50% {
        filter: drop-shadow(-5px -5px 10px var(--clr3)) drop-shadow(5px 5px 10px #eee);
    }  

    100% {
        filter: drop-shadow(2px 1px 5px #eee) drop-shadow(-2px -2px 10px #448d39);
    }
}

header[class="aboutme__article__header"] {
    margin-top: 150px;
    max-width: 80vw;    
    min-height: 100vh;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
}

.logo {
    position: relative;
    background-image: url('../img/logo.svg');
    background-repeat: no-repeat;
    padding: 20px;
    opacity: 80%;
    width: 70px;
    height: 70px;
}

header[id="menu"] nav {
    display: flex;    
    gap: 10px;    
}

header[id="menu"] nav a {
    position: relative;
    text-decoration: none;
    padding: 12px 20px;
    color: #fff;
    font-weight: 500;
    cursor: pointer;
}

header[id="menu"] nav a.active {
    background: var(--clr);
    color: #333;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;    
}


/* Menu No Hamburguesa  */ /* Menu No Hamburguesa  */ /* Menu No Hamburguesa  */ /* Menu No Hamburguesa  */

.nh-selected {
    transition: .5s;
    border-radius: 10px;
    background: rgba(0,0,0 , .2);
}


/* Menu No Hamburguesa  */ /* Menu No Hamburguesa  */ /* Menu No Hamburguesa  */ /* Menu No Hamburguesa  */




/* CSS Sección Home *//* CSS Sección Home *//* CSS Sección Home *//* CSS Sección Home */

@keyframes mostrarTexto {
    from {
        opacity: 0;        
        filter: blur(100);
        transform: translateY(-50px);
    }

    to {
        opacity: 1;        
        filter: blur(0);
        transform: translateY(0px);
    }    
}

h1, h2 {
    font-weight: 800;
    text-transform: uppercase;    
    letter-spacing: .1rem;
}

h4 {
    letter-spacing: .1rem;
    color: #eee;
    font-weight: 400;
}

/* CSS Sección Home *//* CSS Sección Home *//* CSS Sección Home *//* CSS Sección Home */


/* Sección Sobre Mi */ /* Sección Sobre Mi *//* Sección Sobre Mi *//* Sección Sobre Mi */

section[id="about"]
{   
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    width: 100%;  
    min-height: 100vh;  
}

div.texto h2 {
    text-align: center;
    color: #eee;
    font-family: 'Castoro';
    font-size: 4rem;  
    margin: 50px auto 50px auto;

}

section[id="about"] h2 span{
    color: rgba(200,200,200, .5);
}

div.texto h3 {    
    color: #448d39;
    font-size: 1.5em;
    letter-spacing: .4rem;    
}

div.texto h4 {
    font-style: oblique;
    margin-top: 50px;
}

section .mifoto {    
    position: relative;
    align-self: flex-start;
    border-radius: 50%;
    box-shadow: 5px 0px 10px #eee, -5px 0px 10px #448d39;
    filter: drop-shadow(5px 0px 10px #eee) drop-shadow(-5px 0px 10px #448d39);
}

section .mifoto img {     
    position: relative;   
    outline: none;    
    width: 400px;  
    height: 400px;  
    border-radius: 50%; 
    object-fit: cover;     

    animation: shadow-animation;
    animation-timing-function: ease-in-out;
    animation-duration: 4s;
    animation-iteration-count: infinite;
    animation-fill-mode: backwards;
    animation-direction: alternate-reverse;
}

div[class="mifoto"]::before {  
    z-index: 1;    
    content: '';    
    position: absolute;   
    top: -5px;     
    left: 0px;
    width: 410px;
    height: 410px;
    border-radius: 50%; 
    background: transparent;    
    box-shadow: 5px 0px 25px #448d39 inset, -5px 0px 25px #eee inset;   
}

section header .texto {        
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 0px;
}

div[class="texto"] > p:first-of-type {
    margin-top: 50px;
}

section header .texto > p {
    font-size: 1.2em;
    font-weight: 400;    
    color : #b5b8b5;    
    max-width: 70ch;
}

/* Sección Sobre Mi */ /* Sección Sobre Mi *//* Sección Sobre Mi *//* Sección Sobre Mi */



/* Menu Hamburguesa  */ /* Menu Hamburguesa  */ /* Menu Hamburguesa  */ /* Menu Hamburguesa  */

nav[id="#hamburguesa"] {    
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

nav[id="hamburguesa"] img {
    width: 40px;
    height: 40px;
    filter: invert(1);
    cursor: pointer;
}

#hamburguesa ul {
    padding: .5em;
    position: absolute;  
    background: rgba(0,0,0, .8);
    top: 130px;  
    right: 0px;
    width: 300px;
    display: none;    
    flex-direction: column;
    align-items: center;
    height: 300px;
}

#hamburguesa ul li {    
    padding: 12px 20px;
    list-style: none;
    letter-spacing: .1em;    
}

#hamburguesa ul li:hover {
    transition: .5s;    
    border-radius: 50px;
    letter-spacing: .3em;
}

.showMenu {
    display:flex !important;
    animation: abrirHamburguesa;
    animation-duration: .5s;
    animation-timing-function: ease-in-out;
    animation-fill-mode: forwards;
}


@keyframes abrirHamburguesa {
    from {
        /* transform: scale(1,0); */
        opacity: 0%;
    }
    to {
        opacity: 100%;
        /* transform: scale(1, 1); */
    }    
}


/* Menu Hamburguesa  *//* Menu Hamburguesa  *//* Menu Hamburguesa  *//* Menu Hamburguesa  */




/* AVISOS */ /* AVISOS */ /* AVISOS */ /* AVISOS */ /* AVISOS */ /* AVISOS */ 

span[id="avisos"] .alert {    
    position: absolute;
    top: 130px;
    margin-left: calc(50vw - 200px);

    width: 400px;
    height: 100px;
    border-radius: 10px;
    box-shadow: 2px 2px 5px #222;
    font-family: system-ui;
    font-size: 1.2em;    
    font-weight: 600;

    display: flex;
    justify-content: center;
    align-items: center;

    animation: toBlack;
    animation-duration: 1s;
    animation-timing-function: ease-in-out;    
    animation-delay: 1s;
    animation-fill-mode: forwards;
}

@keyframes toBlack {
    from {        
        opacity: 100%;
    }
    to {        
        opacity: 0%;
    }
}

span[id="avisos"] .alert-fail {
    background: rgba(255,0,0,.7);
    color: white;    
}

span[id="avisos"] .alert-ok {
    background: rgba(255,255,0,.4);
    color: black;    
}



/* SECCION PROYECTOS *//* SECCION PROYECTOS *//* SECCION PROYECTOS *//* SECCION PROYECTOS */

main.aboutme__article__main {    
    background: #eee;
    margin-top: 50px;
    padding: 50px;
    width: 100%;    
}

section.section__proyectos {    
    background: #eee;
    width: 100%;
}

div.tecnologias h3,
section.section__proyectos h3 {
    padding: 30px 20px;
    text-align: center;
    color: rgba(0,0,0, .7);
    font-family: 'Castoro';
    font-size: 3em;    
    text-transform: uppercase;    
    margin-bottom: 30px;
}

div.proyectos__container {    
    width: 80%;
    display: grid;
    grid-template-columns: repeat( auto-fit, minmax(400px, 1fr) );
    place-items: center;
    grid-gap: 20px;
}

div.proyecto__item {    
    width: 400px;
    height: 300px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    background-image: var(--bgimg);
    background-position: center;
    background-size: cover;
    
    box-shadow: 0px 2px 5px #555;
    transition: box-shadow .5s;
}

div.proyecto__item:hover {
    box-shadow: 0px 2px 25px #555;
    transition: box-shadow .5s;
}

div.info__proyecto__item {
    text-align: center;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 25px;
    background: rgba(255,255,255, .8);    
    opacity: 0;
    transition: opacity .5s;
}

div.info__proyecto__item:hover {
    transition: opacity .5s;
    opacity: 1;
}

div.info__proyecto__item h4 {        
    font-size: 3rem;
    color: black;
    -webkit-text-stroke: 1px #444;
    filter : drop-shadow(2px 2px 5px #222);
}

div.info__proyecto__item p {
    color: #1e4917;
    font-size: 1.5rem;
}


/* SECCION PROYECTOS *//* SECCION PROYECTOS *//* SECCION PROYECTOS *//* SECCION PROYECTOS */

/* TECNOLOGIAS */ /* TECNOLOGIAS */ /* TECNOLOGIAS */ /* TECNOLOGIAS */ 

div.tecnologias {
    padding: 25px;
    margin-top: 50px;
    width: 100%;    
}


.article__div__ul {
    width: 75%;
    margin: auto;
    height: 100px;

    background: var(--clr);
    
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    padding: 20px;
    background: rgba(255,255,255, .1);
    border-radius: 25px;
    box-shadow: 0px 2px 3px #555;
}

.article__div__ul li {
    list-style-type: none;
    font-size: 1.2em;
    font-weight: 400;            
    color : #b5b8b5;    
    padding: 10px;
    filter: drop-shadow(0px 0px 3px #222);
    
}

.article__div__ul li img {
    height: 50px;
    width: auto;
}

/* TECNOLOGIAS */ /* TECNOLOGIAS */ /* TECNOLOGIAS */ /* TECNOLOGIAS */ 


/* AVISOS */ /* AVISOS */ /* AVISOS */ /* AVISOS */ /* AVISOS */ /* AVISOS */ 

    @media screen and (max-width:870px) {

    #hamburguesa {
        display: flex;        
    }
    #nohamburguesa {
        display: none;
    }

    main[class="aboutme__article__main"] {
        width: 100vw;
        max-width: 100%;        
    }

    section[class="section__proyectos"] {
        width: 100%;
    }

    header[class="aboutme__article__header"] {       
        width: 100%;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 100vh;
        height: auto;                           
    }

    section .mifoto {    
        align-self: center;        
    }

    header[class="aboutme__article__header"] {
        margin-top: 0px;
    }

    ul.article__div__ul {
        display: grid;
        grid-template-columns: repeat( auto-fit, minmax(100px, 1fr) );
        height: auto;
    }

    
    div.texto h2 {        
        font-size: 2rem;  
    }

    
    div.texto h3 {    
        color: #448d39;
        font-size: 1em;
        letter-spacing: .2rem;    
    }
    
    div.texto h4 {
        font-size: .8rem;
        font-style: oblique;
        margin-top: 50px;
    }
    
    
    section .mifoto img {     
        width: 250px;  
        height: 250px;  
    }
    
    div[class="mifoto"]::before {          
        width: 255px;
        height: 255px;         
    }    
    
    section header .texto > p {
        font-size: .8em;        
    }
}

@media screen and (min-width:870px) and (max-width:1700px) {

    #hamburguesa {
        display: flex;        
    }
    #nohamburguesa {
        display: none;
    }

    header[class="aboutme__article__header"] {       
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: auto;        
    }

    section .mifoto {    
        align-self: center;        
    }

    header[class="aboutme__article__header"] {
        margin-top: 0px;
    }

    ul.article__div__ul {
        display: grid;
        grid-template-columns: repeat( auto-fit, minmax(100px, 1fr) );
        height: auto;
    }
}




@media screen and (min-width:1400px) {
    #hamburguesa {
        display: none;
    }
    #nohamburguesa {
        display:flex;
    }
}