:root {
    --background-color: #121212;
    --text-color: #ffffff;
    --nav-color: #333333;
    --button-color: #555555;
    --button-hover-color: #666666;
    --logo-bg-color: transparent;
}

[data-theme="light"] {
    --background-color: #ffffff;
    --text-color: #000000;
    --nav-color: #f0f0f0;
    --button-color: #dddddd;
    --button-hover-color: #cccccc;
    --logo-bg-color: transparent;
}

[data-theme="dark"] {
    --logo-bg-color: #ffffff;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
}

/* Header and logo */
header {
    background-color: var(--nav-color);
    color: var(--text-color);
    text-align: center;
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
}

header img {
    max-height: 50px;
    margin-right: 15px;
    background-color: var(--logo-bg-color);
    padding: 5px;
    border-radius: 5px;
    width: auto;
}

/* Navigation bar */
nav {
    display: flex;
    justify-content: center;
    background-color: var(--nav-color);
    padding: 10px 0;
    flex-wrap: wrap;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    margin: 5px 10px;
    padding: 8px 15px;
    background-color: var(--button-color);
    border-radius: 5px;
    transition: background-color 0.3s;
}

nav a:hover {
    background-color: var(--button-hover-color);
}

/* Sections */
section {
    padding: 30px 20px;
    text-align: center;
}

h1, h2 {
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 15px;
}

/* "Quienes Somos" Section */
#quienes-somos {
    background-color: var(--nav-color);
    color: var(--text-color);
    border-radius: 10px;
    padding: 30px;
    max-width: 800px;
    margin: 30px auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

#quienes-somos p {
    text-align: justify;
    line-height: 1.8;
    font-size: 16px;
}

/* Contact Section */
#contacto {
    background-color: var(--background-color);
    color: var(--text-color);
    padding: 40px 20px;
    text-align: center;
}

#contacto h2 {
    margin-bottom: 30px;
}

.contacto-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.contacto {
    background-color: var(--nav-color);
    border-radius: 10px;
    padding: 20px;
    max-width: 350px;
    text-align: left;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.contacto h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: bold;
    color: var(--text-color);
}

.contacto p {
    margin: 5px 0;
    color: var(--text-color);
    font-size: 14px;
}

.contacto a {
    color: var(--button-hover-color);
    text-decoration: none;
    font-weight: bold;
}

.contacto a:hover {
    text-decoration: underline;
}

/* Images in sections */
section img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 10px 0;
    max-height: 400px;
    object-fit: cover;
}

/* Footer */
footer {
    background-color: var(--nav-color);
    color: var(--text-color);
    text-align: center;
    padding: 10px 0;
    position: fixed;
    bottom: 0;
    width: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    header img {
        max-height: 40px;
    }

    .contacto-container {
        flex-direction: column;
        align-items: center;
    }

    #quienes-somos {
        padding: 20px;
    }

    .contacto {
        max-width: 100%;
    }

    section img {
        max-height: 200px;
    }
}
/* General Button Styles */
button {
    border: none;
    cursor: pointer;
    font-size: 20px;
    padding: 10px;
    border-radius: 50%;
    transition: background-color 0.3s, transform 0.2s;
}

.carousel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    max-width: 100%;
    height: 300px;
    background-color: #222;
    border-radius: 10px;
    margin: 20px auto;
}

.carousel img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 10px;
}

/* Botones del carrusel */
.carousel .prev, .carousel .next {
    position: absolute;
    top: 50%; /* Centrado verticalmente en relación al carrusel */
    transform: translateY(-50%); /* Ajuste para centrar */
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 24px;
    padding: 10px;
    border-radius: 50%;
    z-index: 2;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.carousel .prev {
    left: 10px; /* Alineado al borde izquierdo */
}

.carousel .next {
    right: 10px; /* Alineado al borde derecho */
}

.carousel .prev:hover, .carousel .next:hover {
    background-color: rgba(0, 0, 0, 0.7);
    transform: scale(1.1); /* Efecto de agrandamiento */
}

/* Ajustes responsivos */
@media (max-width: 768px) {
    .carousel {
        height: 200px; /* Reducir la altura del carrusel en pantallas pequeñas */
    }
    .carousel .prev, .carousel .next {
        font-size: 20px; /* Botones más pequeños */
        padding: 8px; /* Reducción del relleno */
    }
}


/* Toggle Theme Button */
#theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--button-color);
    color: var(--text-color);
    font-size: 16px;
    border: none;
    border-radius: 50px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

#theme-toggle i {
    margin-right: 8px;
}

#theme-toggle:hover {
    background-color: var(--button-hover-color);
    transform: scale(1.05);
}

/* Fondo dinámico */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1; /* Para que el fondo esté detrás del contenido */
    background: radial-gradient(circle, #1a1a1a, #000000); /* Fondo base */
}

.particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: sparkle 5s linear infinite;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

/* Animación de destello */
@keyframes sparkle {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 1;
    }
    50% {
        opacity: 0.2;
    }
    100% {
        transform: translate3d(var(--x), var(--y), 0) scale(0.5);
        opacity: 0;
    }
}

/* Configurar las partículas */
.particle:nth-child(1) { --x: 50vw; --y: 80vh; animation-duration: 4s; }
.particle:nth-child(2) { --x: 30vw; --y: 10vh; animation-duration: 6s; }
.particle:nth-child(3) { --x: 80vw; --y: 60vh; animation-duration: 7s; }
.particle:nth-child(4) { --x: 20vw; --y: 30vh; animation-duration: 5s; }
.particle:nth-child(5) { --x: 70vw; --y: 20vh; animation-duration: 6.5s; }
.particle:nth-child(6) { --x: 10vw; --y: 50vh; animation-duration: 4.5s; }
.particle:nth-child(7) { --x: 90vw; --y: 40vh; animation-duration: 5.5s; }
.particle:nth-child(8) { --x: 40vw; --y: 70vh; animation-duration: 7.5s; }
.particle:nth-child(9) { --x: 60vw; --y: 15vh; animation-duration: 6s; }
.particle:nth-child(10) { --x: 80vw; --y: 80vh; animation-duration: 4s; }

/* Modal de Imagen */
.image-modal {
    display: none; /* Oculto por defecto */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 999;
    justify-content: center;
    align-items: center;
}

.modal-image {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    color: white;
    cursor: pointer;
    transition: transform 0.3s;
}

.close-modal:hover {
    transform: scale(1.2);
}
/* Botones de navegación */
nav a {
    display: flex;
    align-items: center;
    gap: 8px; /* Espacio entre el ícono y el texto */
    color: var(--text-color);
    text-decoration: none;
    margin: 5px 10px;
    padding: 8px 15px;
    background-color: var(--button-color);
    border-radius: 5px;
    transition: background-color 0.3s;
}

nav a:hover {
    background-color: var(--button-hover-color);
}

/* Tamaño del ícono */
nav a i {
    font-size: 16px;
}
