*{
    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(60, 120, 220);
}

#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(120, 180, 255);
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-weight: bold;
    letter-spacing: 1px;
}

.menu a:hover{
    color: white;
}


.dropdown-menu{
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgb(10, 15, 35);
    border: 1px solid rgb(50, 100, 200);
    border-radius: 8px;
    list-style: none;
    min-width: 180px;
    z-index: 100;
    padding: 0.5em 0;
    box-shadow: 0px 5px 20px rgba(50, 100, 200, 0.4);
}

.dropdown:hover .dropdown-menu{
    display: block;
}

.dropdown-menu li{
    margin: 0;
}

.dropdown-menu li a{
    display: block;
    padding: 0.6em 1.2em;
    color: rgb(120, 180, 255);
    font-size: 0.9em;
    border-bottom: 1px solid rgb(20, 35, 70);
}

.dropdown-menu li:last-child a{
    border-bottom: none;
}

.dropdown-menu li a:hover{
    background-color: rgb(20, 35, 80);
    color: white;
}


header{
    position: relative;
    padding: 0;
    width: 100%;
    overflow: hidden;
}

#mifoto{
    width: 100%;
    height: 650px;
    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(60, 120, 220);
    font-size: 2.5em;
}

.cajita h2{
    color: rgb(120, 180, 255);
    font-size: 1.1em;
    border-bottom: none;
    text-shadow: none;
    padding: 0;
    margin-top: 0.3em;
    width: auto;
    text-align: center;
    font-weight: normal;
}


section{
    width: 80%;
    margin: 3em auto;
    box-shadow: 0px 0px 20px 2px rgb(30, 70, 160);
    padding: 2em;
    border-radius: 10px;
    background-color: rgb(12, 15, 28);
    border-top: 3px solid rgb(60, 120, 220);
}

h2{
    width: 100%;
    text-align: center;
    margin-bottom: 1em;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    text-shadow: 0px 0px 10px rgb(60, 120, 220);
    border-bottom: 2px solid rgb(50, 100, 200);
    padding: 0.5em;
    color: rgb(120, 180, 255);
}


.doscolupnas{
    display: flex;
    gap: 2em;
    align-items: center;
}

.doscolupnas img{
    width: 40%;
    border-radius: 10px;
    object-fit: cover;
}

.doscolupnas p{
    color: rgb(180, 200, 230);
    line-height: 1.8;
    font-size: 0.95em;
}


.grid-mision{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5em;
}

.tarjeta-mision{
    background-color: rgb(15, 20, 40);
    border-radius: 10px;
    border: 1px solid rgb(40, 80, 160);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.tarjeta-mision img{
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.tarjeta-mision-info{
    padding: 1em;
}

.tarjeta-mision-info h3{
    color: rgb(120, 180, 255);
    margin-bottom: 0.4em;
}

.tarjeta-mision-info p{
    color: rgb(170, 195, 230);
    font-size: 0.85em;
    line-height: 1.6;
}


.grid-equipo{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5em;
}

.tarjeta-equipo{
    background-color: rgb(15, 20, 40);
    border-radius: 10px;
    padding: 1.2em;
    border: 1px solid rgb(40, 80, 160);
}

.tarjeta-equipo h3{
    color: rgb(120, 180, 255);
    margin-bottom: 0.6em;
    font-size: 1em;
}

.tarjeta-equipo p{
    color: rgb(170, 195, 230);
    font-size: 0.85em;
    line-height: 1.6;
}


#quiz p{
    color: rgb(120, 180, 255);
    font-weight: bold;
    margin: 1em 0 0.5em 0;
}

#quiz label{
    display: block;
    color: rgb(170, 195, 230);
    font-size: 0.9em;
    margin: 0.3em 0;
    cursor: pointer;
}

#quiz label:hover{
    color: white;
}

#quiz input{
    accent-color: rgb(60, 120, 220);
    margin-right: 0.5em;
    cursor: pointer;
}

#quiz a{
    color: rgb(120, 180, 255);
    text-decoration: none;
}

#quiz a:hover{
    color: white;
    text-decoration: underline;
}


footer{
    background-color: rgb(8, 12, 25);
    text-align: center;
    padding: 1.5em;
    font-size: 0.85em;
    color: rgb(80, 130, 200);
    border-top: 2px solid rgb(60, 120, 220);
}


#return{
    background-color: rgb(40, 90, 180);
    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%;
}

a{
    color: rgb(120, 180, 255)
}

#mision h2 i{
    animation: girar 3s linear infinite;
    color: rgb(120, 180, 255);
    margin-right: 8px;
}

.tarjeta-mision-info h3 i{
    margin-right: 6px;
    color: rgb(120, 180, 255);
    animation: pulsar 1.5s infinite;
}

.tarjeta-mision{
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tarjeta-mision:hover{
    transform: translateY(-5px);
    box-shadow: 0px 0px 15px rgb(60, 120, 220);
}

@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%;
    }

    .grid-mision{
        grid-template-columns: 1fr 1fr;
    }

    .grid-equipo{
        grid-template-columns: 1fr 1fr;
    }

    .doscolupnas img{
        width: 45%;
    }

    .menu{
        flex-wrap: wrap;
        gap: 0.5em;
        padding: 0.5em;
    }

    .menu li{
        margin: 0 8px;
    }

    .menu a{
        font-size: 0.85em;
    }

    .dropdown-menu{
        font-size: 0.85em;
    }
}

@media (max-width: 500px){

    .menu{
        flex-wrap: wrap;
        gap: 0.5em;
    }

    .menu li{
        margin: 0 8px;
    }

    #mifoto{
        height: 300px;
    }

    .cajita h1{
        font-size: 1.5em;
    }

    .cajita h2{
        font-size: 0.9em;
    }

    section{
        width: 95%;
        padding: 1em;
    }

    .doscolupnas{
        flex-direction: column;
    }

    .doscolupnas img{
        width: 100%;
    }

    .grid-mision{
        grid-template-columns: 1fr;
    }

    .grid-equipo{
        grid-template-columns: 1fr;
    }

    #quiz label{
        font-size: 0.85em;
    }
}