/* --- Estilos para la Galería Moderna --- */
/* --- Estilos para el Hero de la página de Galería --- */
.hero-wrap.hero-gallery {
  height: 600px;
  background-image: url('../images/web/GPPF.jpg'); /* Puedes cambiar esta imagen por la que prefieras */
  background-size: cover;
  background-position: center center;
}

/* --- Contenedor Principal de la Galería --- */
.gallery-container {
    padding: 60px 20px;
    max-width: 900px; /* Un ancho máximo para que se vea bien en pantallas grandes */
    margin: auto;
    background: #ffffff;
}

.gallery-container .titulo {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #111;
}

/* --- Filtros --- */
.filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    /* --- LÍNEAS AÑADIDAS --- */
    position: relative;
    z-index: 10;
}

.filters button {
    background-color: #f1f1f1;
    border: none;
    padding: 8px 18px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s, color 0.3s;
}

.filters button:hover {
    background-color: #ddd;
}

.filters button.active {
    background-color: #FDB521;
    color: #000;
    font-weight: bold;
}

/* --- Estilos para Sliders --- */
.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #e9e9e9; /* Fondo gris claro por si una imagen falla */
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Esto asegura que la imagen llene el espacio sin deformarse */
}

/* --- SLIDER PRINCIPAL (IMAGEN GRANDE) --- */
.mySwiper2 {
    width: 100%;
    aspect-ratio: 16 / 9; /* Proporción panorámica para evitar espacios en blanco */
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden; /* Oculta cualquier desbordamiento */
}

/* --- SLIDER DE MINIATURAS --- */
.mySwiper {
    height: 100px; /* Altura fija para la fila de miniaturas */
    box-sizing: border-box;
    padding: 0;
}

.mySwiper .swiper-slide {
    width: auto; /* IMPORTANTE: Dejamos que SwiperJS controle el ancho */
    height: 100%;
    opacity: 0.5;
    cursor: pointer;
    border-radius: 6px;
    overflow: hidden;
    transition: opacity 0.3s, border-color 0.3s;
    border: 3px solid transparent;
}

.mySwiper .swiper-slide-thumb-active {
    opacity: 1;
    border-color: #FDB521; /* Borde amarillo en la miniatura activa */
}

/* --- Flechas de Navegación --- */
.swiper-button-next,
.swiper-button-prev {
    color: #ffffff !important;
    background-color: rgba(0, 0, 0, 0.25);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    transition: background-color 0.3s;
}
.swiper-button-next:hover,
.swiper-button-prev:hover {
    background-color: rgba(0, 0, 0, 0.5);
}
.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 16px !important;
    font-weight: bold;
}