body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #fff; /* Fondo inicial blanco */
    transition: background-color 1s ease;  
    opacity: 0;
    transition: opacity 1.5s ease; /* Animación para que aparezca el contenido */
}

body.visible {
    opacity: 1; /* Esto hace que el contenido aparezca gradualmente */
}

header {
    background-color: #5e69fa;
    color: white;
    padding: 20px;
    text-align: center;
    opacity: 0;
    transition: opacity 2s ease;
}

header.visible {
    opacity: 1; /* Animación de aparición de texto */
}

nav ul {
    list-style: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin-right: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
}

section {
    padding: 20px;
    width: 80%;
    max-width: 1200px;
    margin: 20px auto;
    text-align: center;
    opacity: 0;
    transition: opacity 2s ease;
}

section.visible {
    opacity: 1;
}

footer {
    background-color: #5e69fa;
    color: white;
    text-align: center;
    padding: 10px;
    width: 100%;
    margin-top: auto;
}

.social-links a {
    margin: 0 10px;
    color: rgb(11, 81, 231);
    font-size: 20px;
    text-decoration: none;
}

/* Carrusel */
.carousel {
    position: relative;
    width: 80%;
    margin: 0 auto;
    overflow: hidden;
    max-width: 1000px;
}

.carousel-images {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-images img {
    width: 100%;
    max-width: 100%;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
    background-color: rgba(23, 45, 240, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

/* Estilos de la galería de imágenes */
.popup-gallery .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.popup-gallery .gallery-grid img {
    width: 100%;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s;
}

.popup-gallery .gallery-grid img:hover {
    transform: scale(1.1);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(22, 43, 235, 0.7);
    overflow: auto;
    padding-top: 60px;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
}

/* Close Button */
.close {
    color: white;
    position: absolute;
    top: 15px;
    right: 35px;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}
