*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    background-color: rgb(8, 12, 8);
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

nav{
    position: relative;
    overflow: visible;
    padding: 15px 0;
    background-color: rgb(10, 20, 10);
}

#video-fondo{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.4;
}

.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, 200, 120);
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-weight: bold;
}

.menu a:hover{
    color: rgb(180, 255, 180);
}


.dropdown-menu{
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgb(10, 30, 10);
    border: 1px solid rgb(50, 150, 50);
    border-radius: 8px;
    list-style: none;
    min-width: 180px;
    z-index: 100;
    padding: 0.5em 0;
    box-shadow: 0px 5px 20px rgba(0, 100, 0, 0.5);
}

.dropdown:hover .dropdown-menu{
    display: block;
}

.dropdown-menu li{
    margin: 0;
}

.dropdown-menu li a{
    display: block;
    padding: 0.6em 1.2em;
    color: rgb(150, 220, 150);
    font-size: 0.9em;
    border-bottom: 1px solid rgb(30, 60, 30);
}

.dropdown-menu li:last-child a{
    border-bottom: none;
}

.dropdown-menu li a:hover{
    background-color: rgb(20, 60, 20);
    color: white;
}


header{
    position: relative;
    padding: 0;
    width: 100%;
    overflow: hidden;
}

#mifoto{
    width: 100%;
    height: 720px;
    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, 12, 8));
}

.cajita{
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    z-index: 2;
}

.cajita h1{
    color: white;
    text-shadow: 0px 0px 15px rgb(50, 200, 50);
    font-size: 2.5em;
}

.cajita h2{
    color: rgb(120, 200, 120);
    font-size: 1.2em;
    border-bottom: none;
    text-shadow: none;
    padding: 0;
    margin-top: 0.3em;
    width: auto;
    text-align: center;
}


section{
    width: 80%;
    margin: 3em auto;
    box-shadow: 0px 0px 20px 2px rgb(20, 80, 20);
    padding: 2em;
    border-radius: 30px;
    background-color: rgb(12, 22, 12);
}

h2{
    width: 100%;
    text-align: center;
    margin-bottom: 1em;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    text-shadow: 0px 0px 10px rgb(50, 180, 50);
    border-bottom: 3px dashed rgb(40, 130, 40);
    padding: 0.5em;
    color: white;
}


.doscolupnas{
    display: flex;
    gap: 2em;
    align-items: center;
}

.doscolupnas img{
    width: 40%;
    border-radius: 10px;
    object-fit: cover;
}

.doscolupnas p{
    color: rgb(190, 220, 190);
    line-height: 1.8;
    font-size: 0.95em;
}

.grid-apariciones{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5em;
}

.tarjeta-aparicion{
    background-color: rgb(18, 35, 18);
    border-radius: 10px;
    padding: 1em;
    border: 1px solid rgb(40, 100, 40);
}

.tarjeta-aparicion img{
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    margin-bottom: 0.8em;
}

.tarjeta-aparicion h3{
    color: rgb(100, 200, 100);
    text-shadow: 0px 0px 5px rgb(30, 100, 30);
    margin-bottom: 0.4em;
}

.tarjeta-aparicion p{
    color: rgb(180, 210, 180);
    font-size: 0.85em;
    line-height: 1.6;
}


.grid-familia{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5em;
}

.tarjeta-familia{
    background-color: rgb(18, 35, 18);
    border-radius: 10px;
    padding: 1em;
    border: 1px solid rgb(40, 100, 40);
    display: flex;
    gap: 1em;
    align-items: flex-start;
}

.tarjeta-familia img{
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.tarjeta-familia-info h3{
    color: rgb(100, 200, 100);
    margin-bottom: 0.5em;
}

.tarjeta-familia-info p{
    color: rgb(180, 210, 180);
    font-size: 0.85em;
    line-height: 1.6;
}


footer{
    background-color: rgb(10, 20, 10);
    text-align: center;
    padding: 1.5em;
    font-size: 0.85em;
    color: rgb(100, 160, 100);
}


#return{
    background-color: rgb(30, 100, 30);
    padding: 1em;
    color: white;
    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(100, 200, 100);
}

#destino h2 i{
    animation: desvanece 2s infinite;
    color: rgb(100, 200, 100);
    margin-right: 8px;
}

#destino .doscolupnas img{
    transition: transform 0.3s ease, filter 0.3s ease;
}

#destino .doscolupnas img:hover{
    transform: scale(1.03);
    filter: grayscale(80%) brightness(0.7);
}

@keyframes desvanece{
    0%, 100%{ opacity: 1; transform: scale(1); }
    50%{ opacity: 0.3; transform: scale(0.9); }
}

@media (max-width: 1000px){

    section{
        width: 90%;
    }

    .grid-familia{
        grid-template-columns: 1fr;
    }

    .grid-apariciones{
        grid-template-columns: 1fr 1fr;
    }

    .grid-mision{
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 500px){

    section{
        width: 95%;
        padding: 1em;
    }

    .cajita h1{
        font-size: 1.5em;
    }

    .doscolupnas{
        flex-direction: column;
    }

    .doscolupnas img{
        width: 100%;
    }

    .grid-familia{
        grid-template-columns: 1fr;
    }

    .tarjeta-familia{
        flex-direction: column;
        align-items: center;
    }

    .tarjeta-familia img{
        width: 100%;
        height: 200px;
    }

    .grid-apariciones{
        grid-template-columns: 1fr;
    }

    .grid-mision{
        grid-template-columns: 1fr;
    }

    .menu{
        flex-wrap: wrap;
        gap: 0.5em;
    }

    .menu li{
        margin: 0 8px;
    }
}