/* Estilos generales (reutilizados del style.css principal) */
:root {
    --primary-color: #CE7940;    /* Naranja/Marrón (Principal) */
    --secondary-color: #243465; /* Azul Marino (Secundario) */
    --tertiary-color: #803B31;  /* Marrón Rojizo (Terciario/Acento) */

    --text-color: #333;
    --light-bg: #f4f4f4;
    --dark-bg: #222;
    --white-text: #fff;

    --font-family-header: 'Cinzel', serif;
    --font-family-body: 'Roboto', sans-serif;
}

/* Importar fuentes de Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&family=Cinzel:wght@400;700&display=swap');

body {
    font-family: var(--font-family-body);
    line-height: 1.8;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    background-color: var(--light-bg);
}

.container {
    width: 85%;
    max-width: 1100px;
    margin: auto;
    overflow: hidden;
    padding: 20px 0;
}

/* Encabezado */
header {
    background: var(--secondary-color);
    color: var(--white-text);
    padding-top: 30px;
    min-height: 70px;
    border-bottom: var(--primary-color) 3px solid;
    text-align: center;
    position: relative;
}

header .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

header h1 {
    padding: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    font-family: var(--font-family-header);
    font-size: 2.5rem;
    color: var(--primary-color);
}

header nav ul {
    list-style: none;
    padding: 0;
    margin-top: 10px;
}

header nav ul li {
    display: inline-block;
    padding: 0 15px;
}

header nav a {
    color: var(--white-text);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease; /* Transición suave para el color del texto */
}

header nav a:hover {
    color: var(--primary-color);
}

/* Active navigation link style */
header nav a.active {
    color: var(--primary-color); /* Highlight color for active link */
    border-bottom: 2px solid var(--primary-color); /* Underline for active link */
    padding-bottom: 3px;
}


.language-selector {
    display: flex;
    gap: 10px;
    position: absolute;
    top: 10px;
    right: 20px;
}

.language-selector img {
    width: 30px;
    height: 20px;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 4px;
    transition: border-color 0.3s, transform 0.3s;
}

.language-selector img:hover,
.language-selector img.active-lang {
    border-color: var(--primary-color);
    transform: scale(1.1);
}

/* Contenido de la galería */
/* Contenido de la galería */
.gallery-content {
    padding: 40px 0;
    text-align: center;
}

.gallery-content h2, .event-title {
    font-family: var(--font-family-header);
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 40px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.event-title:first-of-type {
    margin-top: 0;
}

.event-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.gallery-content p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--text-color);
}

/* --- Nuevos estilos para el Slider --- */
.event-section {
    margin-bottom: 40px;
}

.slider-container {
    position: relative;
    overflow: hidden;
    padding-bottom: 25px; /* Espacio para la paginación */
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slider-item {
    flex-shrink: 0;
    width: 100%;
    position: relative;
}

.slider-item img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    opacity: 0; /* Empieza invisible para el fade-in */
    transition: opacity 0.5s ease-in-out;
}

.lazy-image[src] {
    opacity: 1; /* Hace visible la imagen cuando se carga el `src` */
}

/* Controles de navegación del slider */
.slider-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: var(--white-text);
    border: none;
    cursor: pointer;
    font-size: 2rem;
    padding: 10px;
    z-index: 10;
    border-radius: 50%;
    transition: background-color 0.3s;
    user-select: none;
}

.slider-control:hover {
    background: rgba(0, 0, 0, 0.8);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.slider-control:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Paginación del slider (los puntos) */
/* Paginación del slider (los puntos) */
.slider-pagination {
    text-align: center;
    margin-top: 15px;
}

.dot {
    display: inline-block;
    height: 10px;
    width: 10px;
    background-color: #bbb;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* Pie de página */
footer {
    background: var(--dark-bg);
    color: var(--white-text);
    text-align: center;
    padding: 20px 0;
}

footer p {
    margin: 0;
    font-size: 0.9rem;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    display: block;
    animation: zoomIn 0.3s ease-out;
}

.lightbox-caption {
    color: #fff;
    font-size: 1.2rem;
    text-align: center;
    position: absolute;
    bottom: 20px;
    padding: 0 20px;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

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

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Adaptabilidad */
@media (max-width: 992px) {
    .container {
        width: 90%;
    }
    header h1 {
        font-size: 2rem;
    }
    header nav ul li {
        display: block;
        margin: 10px 0;
    }
    .language-selector {
        position: static;
        margin-top: 15px;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    .lightbox-content {
        max-width: 95%;
        max-height: 85vh;
    }
    .lightbox-caption {
        font-size: 1rem;
    }
    .close-btn {
        font-size: 30px;
        top: 10px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5rem;
    }
    .gallery-content {
        padding: 15px;
    }
}
