*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    background-color: rgb(8, 10, 18);
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

nav{
    position: relative;
    overflow: visible;
    padding: 15px 0;
    background-color: rgb(8, 12, 25);
    border-bottom: 2px solid rgb(40, 80, 180);
}

#video-fondo{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.3;
}

.menu{
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    list-style: none;
    align-items: center;
}

.menu li{
    margin: 0 20px;
    position: relative;
}

.menu a{
    text-decoration: none;
    color: rgb(80, 140, 255);
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-weight: bold;
    letter-spacing: 1px;
}

.menu a:hover{
    color: white;
}

.menu .activo{
    color: white;
    border-bottom: 2px solid rgb(80, 140, 255);
    padding-bottom: 3px;
}

header{
    position: relative;
    padding: 0;
    width: 100%;
    overflow: hidden;
    text-align: center;
    background-color: rgb(8, 10, 18);
}

#mifoto{
    width: 100%;
    height: 500px;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 0;
}

header::after{
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom, transparent, rgb(8, 10, 18));
}

.cajita{
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    z-index: 2;
}

.cajita h1{
    color: white;
    text-shadow: 0px 0px 15px rgb(40, 80, 200);
    font-size: 2.5em;
}

#enlace{
    color: rgb(80, 140, 255);
    text-decoration: underline;
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 1em;
}

#enlace:hover{
    color: white;
}

section{
    width: 80%;
    margin: 3em auto;
    box-shadow: 0px 0px 20px 2px rgb(20, 50, 130);
    padding: 2em;
    border-radius: 15px;
    background-color: rgb(12, 15, 28);
    border: 1px solid rgb(30, 60, 150);
}

h2{
    width: 100%;
    text-align: center;
    margin-bottom: 1em;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    text-shadow: 0px 0px 10px rgb(40, 80, 200);
    border-bottom: 3px dashed rgb(40, 80, 180);
    padding: 0.5em;
    color: white;
}

.doscolupnas{
    max-width: 300%;
    display: flex;
    gap: 2em;
    align-items: center;
}

#perfil h2 i{
    animation: girar 4s linear infinite;
    color: rgb(80, 140, 255);
    margin-right: 8px;
}

@keyframes girar{
    0%{ transform: rotate(0deg); }
    100%{ transform: rotate(360deg); }
}

.doscolupnas img{
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
}

#img-enlace{
    width: 400px;
    height: 350px;
    object-fit: cover;
    border-radius: 8px;
    filter: grayscale(100%);
    transition: filter 0.4s ease; 
}

#img-enlace:hover{
    filter: grayscale(0%);

}


.doscolupnas p{
    color: rgb(180, 200, 230);
    line-height: 1.8;
    font-size: 0.95em;
}

.trescolupnas{
    display: flex;
    gap: 2em;
    flex-wrap: wrap;
    justify-content: center;
}

.tarjeta-leon{
    background-color: rgb(15, 20, 40);
    flex: 0 0 calc(30% - 2em);
    padding: 1em;
    border-radius: 10px;
    border: 1px solid rgb(30, 60, 150);
}

.tarjeta-leon h3{
    color: rgb(80, 140, 255);
    margin-bottom: 0.5em;
}

.tarjeta-leon h3 a{
    color: rgb(80, 140, 255);
    text-decoration: none;
}

.tarjeta-leon h3 a:hover{
    color: white;
}

.tarjeta-leon img{
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: top;
    border-radius: 8px;
    display: block;
}

.padre-experiencia{
    display: grid;
    gap: 1.5em;
    grid-template-columns: 1fr 1fr 1fr;
}

.padre-experiencia figure{
    background-color: rgb(10, 12, 25);
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgb(30, 60, 150);
}

.padre-experiencia figure img{
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.padre-experiencia figure figcaption{
    padding: 1em;
}

.padre-experiencia figure figcaption h3{
    margin-bottom: 0.5em;
    color: rgb(80, 140, 255);
    font-size: 0.95em;
}

.padre-experiencia figure figcaption p{
    color: rgb(170, 195, 230);
    font-size: 0.82em;
    line-height: 1.6;
}

a{
    text-decoration: none;
    color: rgb(80, 140, 255);
}

a:hover{
    color: white;
}

#return{
    background-color: rgb(30, 60, 150);
    padding: 1em;
    width: 40px;
    height: 40px;
    text-align: center;
    position: fixed;
    bottom: 10px;
    right: 10px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#return img{
    width: 500%;
    height: 500%;
    object-fit: cover;
    border-radius: 50%;
}

@media (max-width: 1000px){

    section{
        width: 90%;
    }

    .padre-experiencia{
        grid-template-columns: 1fr 1fr;
    }

    .trescolupnas{
        justify-content: center;
    }

    .tarjeta-leon{
        flex: 0 0 calc(45% - 2em);
    }

    .doscolupnas{
        flex-direction: column;
    }

    .doscolupnas img{
        width: 45%;
    }

    .menu{
        flex-wrap: wrap;
        gap: 0.5em;
        padding: 0.5em;
    }

    .menu li{
        margin: 0 8px;
    }

    .menu a{
        font-size: 0.9em;
    }
}

@media (max-width: 500px){

    .menu{
        flex-wrap: wrap;
        gap: 0.5em;
        padding: 0.5em;
    }

    .menu li{
        margin: 0 8px;
    }

    .menu a{
        font-size: 0.8em;
    }

    #mifoto{
        height: 300px;
    }

    .cajita h1{
        font-size: 1.5em;
    }

    section{
        width: 95%;
        padding: 1em;
    }

    .doscolupnas{
        flex-direction: column;
    }

    .doscolupnas img{
        width: 100%;
    }

    .trescolupnas{
        flex-direction: column;
    }

    .tarjeta-leon{
        flex: 0 0 100%;
    }

    .padre-experiencia{
        grid-template-columns: 1fr;
    }
}