
* { margin: 0; padding: 0; box-sizing: border-box; }

body { font-family: Arial, sans-serif; color: #333; line-height: 1.6; }

.container { width: 90%; max-width: 1100px; margin: auto; }

header { background: white; border-bottom: 1px solid #ddd; position: sticky; top: 0; z-index: 1000; }

.header-container { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; }

nav a { margin-left: 20px; text-decoration: none; color: #333; font-weight: bold; }
nav a:hover { color: #4CAF50; }

/*.hero { background: #4CAF50; color: white; height: 70vh; display: flex; align-items: center; justify-content: center; text-align: center; }*/

.hero-content h1 { font-size: 2.5rem; margin-bottom: 10px; }

.section { padding: 60px 0; }
.gray { background: #f5f5f5; }

h2 { text-align: center; margin-bottom: 30px; }

.btn-primary { background: #4CAF50; color: white; padding: 12px 25px; border: none; cursor: pointer; }
.btn-primary:hover { background: #388E3C; }

.gallery-wrapper { display: flex; align-items: center; }

.gallery {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.gallery::-webkit-scrollbar {
    display: none;
}

.gallery img {
    width: 320px;
    height: 220px;
    object-fit: cover;
    margin: 10px;
    border-radius: 12px;
    flex-shrink: 0;
    scroll-snap-align: center;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.gallery img:hover {
    transform: scale(1.05);
    filter: brightness(1.05);
}

.gallery-btn {
    background: rgba(76, 175, 80, 0.9);
    color: white;
    border: none;
    padding: 12px 14px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: transform 0.2s ease, background 0.2s ease;
}

.gallery-btn:hover {
    transform: scale(1.1);
    background: rgba(76, 175, 80, 1);
}

/* Lightbox navigation */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0,0,0,0.55);
    border: none;
    color: white;
    font-size: 2rem;
    line-height: 1;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    z-index: 2100;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.45);
    border: none;
    color: white;
    font-size: 2.2rem;
    padding: 12px 16px;
    border-radius: 10px;
    cursor: pointer;
    z-index: 2100;
}

.lightbox-nav.prev {
    left: 20px;
}

.lightbox-nav.next {
    right: 20px;
}

.lightbox-nav:hover,
.lightbox-close:hover {
    background: rgba(0,0,0,0.7);
}

/* Video responsivo */
.video {
    width: 100%;
    max-width: 350px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
    .hero {
        height: 50vh;
    }

    .gallery img {
        width: 240px;
        height: 170px;
    }

    .gallery-btn {
        padding: 10px 12px;
        font-size: 1rem;
    }

    .lightbox-nav {
        font-size: 1.8rem;
        padding: 10px 14px;
    }

    .lightbox-close {
        font-size: 1.7rem;
        padding: 5px 10px;
    }
}

/* FOOTER */
footer {
    background: #222;
    color: white;
    padding: 40px 0 0 0;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
}

.footer-info, .footer-map {
    flex: 1;
    min-width: 280px;
}

.footer-info a {
    color: #4CAF50;
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    padding: 20px;
    margin-top: 20px;
    background: #111;
}

.info { font-size: 0.85rem; margin-top: 10px; }

.hero {
    position: relative;
    width: 100%;
    height: 70vh;
    background-image: url('../img/galeria/cartel.jpg'); /* ruta correcta desde styles.css */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.35); /* oscurece un poco para que se vea el texto */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Lightbox centrado y tamaño controlado */
.lightbox {
    display: none; /* importante: oculto por defecto */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
    z-index: 2000;
    overflow: auto;
    padding: 20px;
}

.lightbox img {
    max-width: 90%;   /* ancho máximo 90% de la pantalla */
    max-height: 80vh; /* altura máxima 80% del viewport */
    object-fit: contain; /* mantiene proporciones */
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}