*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    background-color: rgb(8, 5, 5);
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

nav{
    position: relative;
    overflow: visible;
    padding: 15px 0;
    background-color: rgb(20, 8, 8);
    border-bottom: 2px solid rgb(180, 40, 40);
}

#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(220, 80, 80);
    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(220, 80, 80);
    padding-bottom: 3px;
}

header{
    position: relative;
    padding: 0;
    width: 100%;
    overflow: hidden;
    text-align: center;
    background-color: rgb(8, 5, 5);
}

#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, 5, 5));
}

.cajita{
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    z-index: 2;
}

.cajita h1{
    color: white;
    text-shadow: 0px 0px 15px rgb(200, 40, 40);
    font-size: 2.5em;
}

#enlace{
    color: rgb(220, 80, 80);
    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(100, 15, 15);
    padding: 2em;
    border-radius: 15px;
    background-color: rgb(15, 8, 8);
    border: 1px solid rgb(100, 20, 20);
}

h2{
    width: 100%;
    text-align: center;
    margin-bottom: 1em;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    text-shadow: 0px 0px 10px rgb(200, 40, 40);
    border-bottom: 3px dashed rgb(150, 20, 20);
    padding: 0.5em;
    color: white;
}

.doscolupnas{
    display: flex;
    gap: 2em;
    align-items: center;
}


#img-enlace{
    width: 500px;
    height: 350px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                box-shadow 0.4s ease;
}

#img-enlace:hover{
    transform: translateY(-12px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.doscolupnas p{
    color: rgb(210, 185, 185);
    line-height: 1.8;
    font-size: 0.95em;
}

.trescolupnas{
    display: flex;
    gap: 2em;
    flex-wrap: wrap;
    justify-content: center;
}

.tarjeta-leon{
    background-color: rgb(20, 10, 10);
    flex: 0 0 calc(30% - 2em);
    padding: 1em;
    border-radius: 10px;
    border: 1px solid rgb(100, 20, 20);
}

.tarjeta-leon h3{
    color: rgb(220, 80, 80);
    margin-bottom: 0.5em;
}

.tarjeta-leon h3 a{
    color: rgb(220, 80, 80);
    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;
}

.tarjeta-leon p{
    color: rgb(200, 175, 175);
    font-size: 0.85em;
    line-height: 1.6;
    margin-top: 0.5em;
}

.cuatrocolumnas{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5em;
}

.cuatrocolumnas .tarjeta-leon{
    flex: unset;
}

#chris-vs-roca video{
    border-radius: 10px;
    display: block;
    margin: 0 auto;
    width: 80%;
}

a{
    text-decoration: none;
    color: rgb(220, 80, 80);
}

a:hover{
    color: white;
}

#return{
    background-color: rgb(150, 20, 20);
    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%;
}

#estudios h2 i{
    animation: girar 4s linear infinite;
    color: rgb(220, 80, 80);
    margin-right: 8px;
}

.tarjeta-leon h3 i{
    animation: pulsar 1.5s infinite;
    color: rgb(220, 80, 80);
    margin-right: 6px;
}

.tarjeta-leon{
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tarjeta-leon:hover{
    transform: translateY(-5px);
    box-shadow: 0px 0px 15px rgb(220, 80, 80);
}

@keyframes girar{
    0%{ transform: rotate(0deg); }
    100%{ transform: rotate(360deg); }
}

@keyframes pulsar{
    0%, 100%{ transform: scale(1); }
    50%{ transform: scale(1.3); }
}

@media (max-width: 1000px){

    section{
        width: 90%;
    }

    .cuatrocolumnas{
        grid-template-columns: 1fr 1fr;
    }

    .doscolupnas{
        flex-direction: column;
    }

    .trescolupnas{
        justify-content: center;
    }

    .tarjeta-leon{
        flex: 0 0 calc(45% - 2em);
    }

    .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;
    }

    #chris-vs-roca video{
        width: 95%;
    }
}

@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: 10%;
    }

    #img-enlace{
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
}

    .trescolupnas{
        flex-direction: column;
    }

    .tarjeta-leon{
        flex: 0 0 100%;
    }

    .cuatrocolumnas{
        grid-template-columns: 1fr;
    }

    #chris-vs-roca video{
        width: 100%;
    }
}