/* SECCIÓN */
.Masonry-gallery-section {
    background: url('assets/images/path.png');
    background-repeat: no-repeat;
    background-size: cover;
    padding: 95px 0 70px;
}

/* CONTENEDOR */
.container-gallery-all {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 2rem;
}

/* GRID RESPONSIVE */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

/* TARJETA */
.gallery-item {
    background: #ffffff;
    padding: 8px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, .08),
        0 2px 4px rgba(0, 0, 0, .05);
    transition: all .35s ease;
}

.gallery-item:hover {
    transform: translateY(-6px);
    box-shadow:
        0 12px 24px rgba(0, 0, 0, .15),
        0 6px 12px rgba(0, 0, 0, .08);
}

/* IMAGEN */
.gallery-item img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
    border-radius: 12px;
    transition: transform .5s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

/* DESKTOP GRANDE */
@media (min-width: 1400px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* TABLET */
@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .gallery-item img {
        height: 280px;
    }
}

/* MÓVIL */
@media (max-width: 768px) {

    .Masonry-gallery-section {
        padding: 60px 0;
    }

    .container-gallery-all {
        padding: 1rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .gallery-item img {
        height: 250px;
    }
}

/* MÓVILES PEQUEÑOS */
@media (max-width: 480px) {

    .container-gallery-all {
        padding: .75rem;
    }

    .gallery-item {
        padding: 6px;
        border-radius: 12px;
    }

    .gallery-item img {
        height: 220px;
        border-radius: 8px;
    }
}

/*===========================SLIDER STYLE===============================*/

/* Reglas de Hoja de Estilo para Efectos Hover Dinámicos y Soporte Responsivo */
.slider-btn:hover {
    transform: translateY(-2px);
}

.btn-whatsapp:hover {
    background-color: #16a34a !important;
    box-shadow: 0 6px 20px rgba(22, 163, 74, 0.4) !important;
}

.btn-call:hover {
    background-color: #ffffff !important;
    color: #0c1a10 !important;
}

#pure-prev-btn:hover,
#pure-next-btn:hover {
    background-color: #22c55e !important;
    border-color: #22c55e !important;
}

/* Consultas de Medios Responsivas Estrictas */
@media (max-w: 991px) {
    .custom-pure-slider {
        height: 600px !important;
    }

    .slide-title {
        font-size: 40px !important;
    }

    .slide-subtitle {
        font-size: 14px !important;
    }
}

@media (max-w: 767px) {
    .custom-pure-slider {
        height: 500px !important;
    }

    .slide-title {
        font-size: 32px !important;
        margin-bottom: 20px !important;
    }

    .slide-subtitle {
        font-size: 13px !important;
        margin-bottom: 10px !important;
    }

    .slider-arrows {
        display: none !important;
    }

    /* Ocultar flechas en móvil para limpieza visual */
    .slider-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px !important;
    }

    .slide-buttons {
        gap: 10px !important;
    }
}


/* NAVEGACIÓN POR PESTAÑAS */
.gallery-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
}

.tab-btn {
    background: #ffffff;
    border: 2px solid transparent;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    color: #4b5563;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background: #f3f4f6;
}

.tab-btn.active {
    background: #000000; /* Puedes cambiar por tu color primario */
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* SOPORTE PARA VIDEO EN LA TARJETA */
.gallery-item video {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
    border-radius: 12px;
    transition: transform .5s ease;
}

.gallery-item:hover video {
    transform: scale(1.08);
}

/* ICONO DE VIDEO (OPCIONAL) */
.gallery-item a {
    position: relative;
    display: block;
}

.video-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    backdrop-filter: blur(4px);
    pointer-events: none;
}

/* MENSAJE CUANDO NO HAY ARCHIVOS */
.no-content {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #6b7280;
    font-size: 1.1rem;
}

/* ADAPTACIÓN RESPONSIVA DE VIDEOS */
@media (max-width: 992px) {
    .gallery-item video { height: 280px; }
}

@media (max-width: 768px) {
    .gallery-item video { height: 250px; }
}

@media (max-width: 480px) {
    .gallery-item video { height: 220px; }
}