/* Selva Blanca Page Styles */

/* Hero con imagen de fondo (override del video de emporio) */
.selva-hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
}

.selva-hero .hero-gradient {
    background: linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.65) 100%);
}

.selva-hero .emporio-hero-content {
    padding-bottom: 1rem;
}

/* Carrusel infinito - futuro section */
.futuro-section .futuro-wrapper {
    display: block;
    overflow: hidden;
    flex: 1;
    padding: 20px 0;
}

.futuro-track {
    display: flex;
    gap: 1.5rem;
}

/* Slides clickeables */
.futuro-track .futuro-slide {
    cursor: pointer;
}

/* Lightbox Gallery */
.gallery-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.gallery-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.gallery-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    cursor: pointer;
}

.gallery-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 2;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.gallery-close:hover {
    background: rgba(255, 255, 255, 0.15);
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 2;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.gallery-nav:hover {
    background: rgba(255, 255, 255, 0.25);
}

.gallery-prev { left: 1.5rem; }
.gallery-next { right: 1.5rem; }

.gallery-image-wrapper {
    position: relative;
    z-index: 1;
    max-width: 80vw;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-image.loaded { opacity: 1; }

.gallery-counter {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 0.95rem;
    z-index: 2;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.4rem 1rem;
    border-radius: 20px;
}

@media (max-width: 576px) {
    .gallery-image-wrapper { max-width: 95vw; }
    .gallery-nav { width: 40px; height: 40px; font-size: 1.2rem; }
    .gallery-prev { left: 0.5rem; }
    .gallery-next { right: 0.5rem; }
    .gallery-close { top: 0.75rem; right: 0.75rem; }
}

/* Ubicación - mapa solo, sin texto */
.ubicacion-mapa-section {
    width: 100%;
    height: 480px;
    overflow: hidden;
}

.ubicacion-mapa-section iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}
