/* Fuentes */
@font-face {
    font-family: "Yearbook Solid";
    src: url("fuentes/YearbookSolid.woff");
}

@font-face {
    font-family: "Montserrat";
    src: url("fuentes/Montserrat-VariableFont_wght.ttf");
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
}

body {
    background-color: #000000;
    /* Fondo oscuro */
    color: #ffffff;
    /* Texto blanco */
    overflow-x: hidden;
    /* Elimina el desplazamiento horizontal */
}

/* Spinner */
.spinner-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #ffffff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Cabecera */
.cabecera {
    position: relative;
    height: 70vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-fondo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.7;

}

.pesarna-seleccionada {
    color: #5ce1e6 !important;
}

.galeria-texto-foto {
    display: flex;
    align-items: center;
    /* Centra verticalmente los elementos */
    justify-content: flex-start;
    /* Alinea los elementos al inicio horizontalmente */
    gap: 20px;
    /* Espacio entre la imagen y el texto */
    margin: 20px;
    /* Espaciado exterior opcional */

    /* animacion */
    opacity: 0;
    transform: translateY(50px);
    /* Inicialmente, desplazamos el elemento hacia abajo */
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.galeria-texto-foto.visible {
    opacity: 1;
    transform: translateY(0);
    /* Regresamos al lugar original */
}

.overlay {
    position: relative;
    z-index: 2;
    text-align: center;
    animation: fadeInUp 1s ease-in-out;
}

.cabecera h1 {
    font-family: 'Yearbook Solid', sans-serif;
    font-size: 2.5rem;
    color: #ffffff;
    margin: 10px 0;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    /* Sombra para resaltar el texto */
}

.descripcion-header {
    font-size: 1rem;
    margin: 10px 0;
    color: #dddddd;
}

.boton-donar {
    background-color: #004aad;
    /* Fondo en azul oscuro */
    color: #ffffff;
    /* Texto blanco */
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-weight: bold;
}

.boton-donar:hover {
    background-color: #5ce1e6ad;
    /* Color principal en hover */
    transform: translateY(-2px);
}

/* Menú de navegación */
.hamburger {
    display: none;
}

.nav-title {
    display: none;
}

.menu {
    list-style: none;
    display: flex;
    justify-content: space-evenly;
    background-color: #000000;
    /* Fondo oscuro */
    padding: 15px 0;
    border-bottom: 2px solid #5ce1e6;
    /* Línea en color principal */
    animation: menuSlideIn 1s forwards;
}

.menu li {
    margin: 0 15px;
    opacity: 0;
    animation: menuFadeIn 1s ease-out forwards;
    animation-delay: 0.2s;
}

.menu a {
    text-decoration: none;
    color: #ffffff;
    font-weight: bold;
    transition: color 0.3s ease;
}

.menu a:hover {
    color: #5ce1e6;
    /* Color principal al pasar el cursor */
}

.linea-donar {
    text-decoration: underline;
    text-decoration-color: #004aad;
    text-decoration-thickness: 4px;
}

/* Animación del menú */
@keyframes menuSlideIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes menuFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contenido principal */

.contenedor-contenido {
    display: flex;
    justify-content: center;
}

.contenido {
    padding: 40px 20px;
    max-width: 68%;

}

.contenido h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #004aad;
    /* Color principal */
}

.mensaje {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #dddddd;
}

.galeria {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    /* opacity: 0; */
    /* animation: galleryFadeIn 1.5s ease-in-out forwards; */
}

.tamaño-fotos {
    height: 200px;
    width: auto;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    /* opacity: 0; */
    /* animation: photoDropIn 1s ease-in-out forwards; */
    animation-delay: 0.5s;
}

.centrado {
    margin-top: 20px;
    margin-left: 20px;
}

/* Pie de página */
.pie {
    background-color: #000000;
    /* Fondo oscuro */
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    border-top: 2px solid #5ce1e6;
    /* Línea en color principal */
    max-width: 100%;
    /* Asegura que no se desborde */
    overflow-x: hidden;
    /* Oculta cualquier contenido que se desborde horizontalmente */
}

.redes {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    /* Permite que los elementos se envuelvan en pantallas pequeñas */
}

.redes a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.redes a:hover {
    color: #5ce1e6;
    /* Color principal al pasar el cursor */
}

.logo {
    height: 100px;
}

.logo-pequeño {
    height: 75px;
    border-radius: 50%;
    max-width: 100%;
    /* Impide que la imagen se haga más grande que el contenedor */
}

/* Animación de caída para las imágenes */
@keyframes textoDeslizarCentro {
    0% {
        transform: translateX(100%);
        /* Empieza desde la derecha */
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        /* Se mueve al centro */
        opacity: 1;
    }
}

/* Animación para la imagen */
@keyframes imagenDeslizarCentro {
    0% {
        transform: translateX(-100%);
        /* Empieza desde la izquierda */
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        /* Se mueve al centro */
        opacity: 1;
    }
}

.galeria-texto-foto.visible .tamaño-fotos {
    animation: imagenDeslizarCentro 1s ease forwards;
}

.galeria-texto-foto.visible p {
    animation: textoDeslizarCentro 1s ease forwards;
}




/* Para pantallas pequeñas */
@media (max-width: 768px) {
    nav {
        position: relative;
        margin-bottom: 20px;
        /* Espacio entre el nav y la siguiente sección */
    }

    /* Contenedor del título y la hamburguesa */
    .nav-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 20px;
        background-color: #000;
        border-bottom: 2px solid #5ce1e6;
    }

    /* Estilo para el título */
    .nav-title {
        display: block;
        font-size: 1.2rem;
        color: #ffffff;
        font-weight: bold;
    }

    /* Botón hamburguesa */
    .hamburger {
        display: block;
        font-size: 1.8rem;
        cursor: pointer;
        z-index: 1100;
    }


    /* Oculta el menú por defecto y lo posiciona */
    .menu {
        display: none;
        flex-direction: column;
        align-items: center;
        width: 100%;
        background-color: #000000;
        position: absolute;
        top: 100%;
        /* Se coloca justo debajo del contenedor nav */
        left: 0;
    }

    /* Muestra el menú al activarlo y añade espacio inferior para evitar solapamiento */
    .menu.active {
        display: flex;
        margin-bottom: 20px;
        /* Espacio extra debajo del menú */
    }

    /* Estilos para los items del menú */
    .menu li {
        margin: 10px 0;
        width: 100%;
        text-align: center;
    }

    .contenido h2 {
        font-size: 1.5rem;
    }

    .mensaje {
        font-size: 1rem;
    }

    .galeria {
        flex-direction: column;
    }

    .galeria-texto-foto {
        flex-direction: column;
        margin: 0px;
    }

    .contenido {
        max-width: none;
        text-align: center;
        padding-right: 0px;
        padding-left: 0px;
        margin: 16px;
    }

    .galeria>div:nth-child(2) {
        flex-direction: column-reverse;
    }

    .pie {
        padding: 12px;
    }

    .centrado {
        margin: 20px auto 0 auto;
        text-align: center;
    }

}