@import url("roots.css");
.contenedor{
    width: 98%;
    max-width: 1500px;
    margin: auto;
}
.contenedor p{
    margin-bottom: 40px;
}
.logo{
    margin-top: 2%;
    width: 6%;
    border-radius: 50%;
    margin-bottom: 2%;
    transition: all .5s ease;
}
.logo:hover{
    transform: rotatez(360deg); /* Rotación en el eje z */
    box-shadow: 0 0 25px 2px black;
}
header nav{
    background-color: #01213fd5;
    margin-bottom: 10px;
    -webkit-transition: all ease .5s;
    -o-transition: all ease .5s;
    transition: all ease .5s;
    border-radius: 5px;
}
header nav ul{
    list-style: none;
    overflow: hidden;
    border-radius: 5px;
}
header nav ul li{
    float: left;
    width: 150px;
    text-align: center;
    margin-left: 2%;
}
header nav ul li a{
    display: block;
    font-family: ubuntuR;
    padding: 5%;
    color: white;
    text-decoration: none;
    transition: .5s ease;
}
header nav ul li a:hover{
    background-color: #023452;
    transform: scale(.95);
    color: white;
    border-radius: 5px;
}
.menu-fixed{
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
    width: 100%;
    padding-top: 1%;
    /* max-width: 1000px; */
} 
.menu-fixed ul li a{
    padding: 5px 20px;
}
/*RETRATOS*/
.contenedor-retratos{
    justify-content: center;
    align-items: center;
}

.retratos{
    display: flex;
    width: 100%;
    height: 150px;
    transition: all .5s ease;
    border-radius: 8px;
    box-shadow: 0 0 25px .5px rgb(182, 180, 180);
    margin-top: 5%;
    border: none;
    cursor: pointer;
}
.retratos:hover{
    transform: scale(.90);
    box-shadow: 0 0 25px .5px rgb(107, 106, 106);
}



/*GAELRIA DE IMAGENES*/
.image-body {
    display: flex;
    align-items: center;
    justify-content: center;
}

.contenedor-galeria {
    display: grid;
    place-items: center;
    width: 100%;
}

.galeria {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    max-width: 80%;
}

.contenedor-imagen {
    position: relative;
    left: 0;
    width: 100%;
    border-radius: 5px;
    height: 250px;
    overflow: hidden;
    background-color: #efefef;
    transition: 0.4s ease-in-out;
    box-shadow: 0 5px 12px rgb(0, 0, 0, 0.5);
    flex: 0.25;
}

.contenedor-imagen img {
    height: 50vh;
    width: 100%;
    object-fit: cover;
}

.contenedor-imagen:hover {
    flex: 2;
    cursor: pointer;
    border-radius: 8px;
}

/* FADE-UP */
.fade-up {
    opacity: 0; /* Comienza invisible */
    transform: translateY(20px); /* Se desplaza hacia abajo */
    transition: opacity 0.5s ease, transform 0.5s ease; /* Efecto de transición */
    margin: 20px 0; /* Espaciado entre elementos */
}

.fade-up.visible {
    opacity: 1; /* Visible */
    transform: translateY(0); /* Regresa a la posición original */
}

.lema{
    position: absolute;
    top: 50%;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 500;
    font-family: WinkyB;
    font-size: 3rem;
    color: rgb(255, 255, 255);
    text-align: center;
    text-shadow: 1px 1px 2px black;
}
.boton-inscripcion{
    position: absolute;
    top: 90%;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 777;
    font-family: WinkyB;
    font-size: 3rem;
    color: rgb(255, 255, 255);
    text-align: center;
    text-shadow: 1px 1px 2px black;
}

/* BOTÓN UP */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none; /* Oculto por defecto */
    background-color: #053d79;
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    transition: transform 0.6s, box-shadow 0.6s; /* Transición suave */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); /* Sombra inicial */
}
.back-to-top:hover {
    background-color: #031e3b;
    transform: rotatez(360deg); /* Rotación en el eje z */
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5); /* Sombra más intensa */
}
.contiene {
    perspective: 1000px; /* Agrega perspectiva para el efecto 3D */
}

/* POPUP */

.popup {
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Fondo semi-transparente */
}

.popup-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px; /* Ancho máximo del popup */
    border-radius: 10px; /* Bordes redondeados */
    text-align: center;
    color: black;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.footer{
    position: absolute;
    margin: auto;
    bottom: 0;
    left: 30%;
}

.separacion{
    margin-top: 5%;
}