*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    background-color: rgb(8, 5, 5);
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

nav{
    background-color: rgb(15, 5, 5);
    padding: 15px 0;
    border-bottom: 2px solid rgb(150, 10, 10);
}

.menu{
    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(200, 50, 50);
    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(200, 50, 50);
    padding-bottom: 3px;
}

header{
    position: relative;
    padding: 0;
    width: 100%;
    overflow: hidden;
    text-align: center;
}

#mifoto{
    width: 30%;
    border-radius: 50%;
    position: relative;
    z-index: 1;
    margin-top: 2em;
}

header::after{
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(to bottom, transparent, rgb(8, 5, 5));
    z-index: 0;
}

.cajita{
    width: 50%;
    background-color: transparent;
    margin: 1em auto 2em auto;
    border-radius: 20px;
    position: relative;
    z-index: 1;
}

.cajita h1{
    color: white;
    text-shadow: 0px 0px 15px red;
    font-size: 2.5em;
}

#enlace{
    font-family: Georgia, 'Times New Roman', Times, serif;
    color: rgb(200, 50, 50);
    text-decoration: underline;
}

#enlace:hover{
    color: white;
}

section{
    width: 80%;
    margin: 3em auto;
    box-shadow: 0px 0px 20px 2px rgb(100, 10, 10);
    padding: 2em;
    border-radius: 20px;
    background-color: rgb(18, 8, 8);
    border: 1px solid rgb(100, 15, 15);
}

h2{
    width: 100%;
    text-align: center;
    margin-bottom: 1em;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    text-shadow: 0px 0px 10px rgb(200, 50, 50);
    border-bottom: 3px dashed rgb(150, 20, 20);
    padding: 0.5em;
    color: white;
}

.doscolupnas{
    display: flex;
    gap: 2em;
    align-items: center;
}

.doscolupnas img{
    width: 40%;
    border-radius: 10px;
    object-fit: cover;
    filter: blur(6px);
    transition: filter 0.4s ease;

}
.doscolupnas img:hover{
    filter: blur(0px);
}


.doscolupnas p{
    color: rgb(210, 190, 190);
    line-height: 1.8;
    font-size: 0.95em;
}

.trescolupnas{
    display: flex;
    gap: 2em;
    flex-wrap: wrap;
    justify-content: center;
}

.tarjeta-leon{
    background-color: rgb(25, 12, 12);
    flex: 0 0 calc(30% - 2em);
    padding: 1em;
    border-radius: 10px;
    border: 1px solid rgb(100, 15, 15);
}

.tarjeta-leon h3{
    color: rgb(200, 50, 50);
    margin-bottom: 0.5em;
}

.tarjeta-leon h3 a{
    color: rgb(200, 50, 50);
    text-decoration: none;
}

.tarjeta-leon h3 a:hover{
    color: white;
}

.tarjeta-leon img{
    width: 100%;
    height: 250px;
    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(12, 5, 5);
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgb(100, 15, 15);
}

.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(200, 50, 50);
    font-size: 0.95em;
}

.padre-experiencia figure figcaption p{
    color: rgb(200, 180, 180);
    font-size: 0.82em;
    line-height: 1.6;
}

.padre-virus{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 1em;
}

.padre-virus figure{
    background-color: rgb(12, 5, 5);
    display: flex;
    flex-direction: column;
    gap: 1em;
    padding: 1em;
    border-radius: 10px;
    border: 1px solid rgb(100, 15, 15);
}

.virus-top{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.virus-top h3{
    color: rgb(200, 50, 50);
    font-size: 1em;
}

.virus-top img{
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.padre-virus figure figcaption p{
    color: rgb(200, 180, 180);
    font-size: 0.85em;
    line-height: 1.6;
}

footer{
    background-color: rgb(10, 5, 5);
    display: flex;
    color: white;
    width: 100%;
    box-sizing: border-box;
    gap: 20px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    border-top: 2px solid rgb(150, 10, 10);
}

.col-footer{
    padding: 1.5em;
    width: 33%;
}

.col-footer h2{
    color: rgb(200, 50, 50);
    border-bottom: 1px solid rgb(100, 15, 15);
    margin-bottom: 0.8em;
    text-shadow: none;
    font-size: 1em;
    text-align: left;
    width: 100%;
    padding: 0.3em 0;
}

.col-footer p{
    color: rgb(200, 180, 180);
    font-size: 0.85em;
    line-height: 1.6;
    margin-bottom: 0.5em;
}

#cap{
    color: rgb(200, 180, 180);
}

.formulario input{
    display: block;
    width: 80%;
    margin: 1em auto;
    padding: 0.5em;
    border: 2px solid rgb(150, 10, 10);
    background-color: rgb(20, 10, 10);
    color: white;
    border-radius: 5px;
}

.formulario textarea{
    display: block;
    width: 80%;
    margin: 1em auto;
    padding: 0.5em;
    border: 2px solid rgb(150, 10, 10);
    background-color: rgb(20, 10, 10);
    color: white;
    border-radius: 5px;
}

#btn-enviar{
    width: 40%;
    background-color: rgb(150, 10, 10);
    color: white;
    cursor: pointer;
    border-radius: 5px;
    padding: 0.5em;
    border: none;
}

#btn-enviar:hover{
    background-color: rgb(200, 20, 20);
}

a{
    text-decoration: none;
    color: rgb(200, 50, 50);
}

a:hover{
    color: white;
}

#return{
    background-color: rgb(120, 14, 14);
    padding: 1em;
    width: 50px;
    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: 300%;
    object-fit: cover;
    border-radius: 50%;
}

.menu a i{
    margin-right: 6px;
    font-size: 1em;
}

.menu a:hover i{
    animation: sacudir 0.5s ease;
}

.menu li:nth-child(1) a i{
    animation: rebotar 2s infinite;
}

.menu li:nth-child(2) a i{
    animation: pulsar 1.5s infinite;
}

.menu li:nth-child(3) a i{
    animation: girar 3s linear infinite;
}

.menu li:nth-child(4) a i{
    animation: sacudir 1s infinite;
}

.menu li:nth-child(5) a i{
    animation: girar 5s linear infinite;
    color: rgb(0, 200, 0);
}

.menu li:nth-child(6) a i{
    animation: latir 1s infinite;
}

@keyframes rebotar{
    0%, 100%{ transform: translateY(0); }
    50%{ transform: translateY(-5px); }
}

@keyframes pulsar{
    0%, 100%{ transform: scale(1); }
    50%{ transform: scale(1.3); }
}

@keyframes girar{
    0%{ transform: rotate(0deg); }
    100%{ transform: rotate(360deg); }
}

@keyframes sacudir{
    0%, 100%{ transform: rotate(0deg); }
    25%{ transform: rotate(-15deg); }
    75%{ transform: rotate(15deg); }
}

@keyframes latir{
    0%, 100%{ transform: scale(1); opacity: 1; }
    50%{ transform: scale(1.2); opacity: 0.7; }
}

@media (max-width: 1000px){

    section{
        width: 90%;
    }

    .padre-experiencia{
        grid-template-columns: 1fr 1fr;
    }

    .padre-virus{
        grid-template-columns: 1fr 1fr;
    }

    .doscolupnas{
        flex-direction: column;
    }

    .trescolupnas{
        justify-content: center;
    }

    .tarjeta-leon{
        flex: 0 0 calc(45% - 2em);
    }

    footer{
        flex-wrap: wrap;
    }

    .col-footer{
        width: 45%;
    }

    .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{
        width: 60%;
    }

    .cajita{
        width: 90%;
    }

    .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;
    }

    .padre-virus{
        grid-template-columns: 1fr;
    }

    footer{
        flex-direction: column;
    }

    .col-footer{
        width: 100%;
    }

    .formulario input,
    .formulario textarea{
        width: 95%;
    }

    #btn-enviar{
        width: 60%;
    }
}