/* Estilos para el botón "Mostrar más" */
.dfg-load-more-container {
    text-align: center;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.dfg-load-more-btn {
    background-color: #a7f3d0;
    color: #065f46;
    border: none;
    border-radius: 9999px;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.dfg-load-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(167, 243, 208, 0.5);
}

.dfg-load-more-btn.loading {
    cursor: not-allowed;
    background-color: #d1fae5;
}

/* ===== ESTILOS DE GALERÍAS Y TARJETAS ===== */
/* Estilos para el grid de la galería de categorías */
.cgp-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(4, 1fr); /* 4 columnas por defecto */
}

.cgp-item h4,
.dfg-card h4 {
    margin-bottom: 12px;
}

.cgp-thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.cgp-thumbs img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 6px;
}

/* Estilos Generales para las Tarjetas del Mes*/
.dfg-card {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dfg-card h4 {
    margin: 0 0 12px;
    font: 600 1rem/1.1rem sans-serif;
    color: #555;
    text-align: center;
}

.dfg-img-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.dfg-img-grid img {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 6px;
    object-fit: cover;
}

/* Estilos para la Cuadrícula del Mes */
.dfg-grid-container {
    display: grid;
    grid-template-columns: repeat(4, 260px);
    gap: 24px;
    justify-content: center;
    margin: 32px auto;
}

/* Estilos para el Carrusel del Mes */
.dfg-carousel-wrap {
    position: relative;
    max-width: 1396px;
    margin: 0 auto;
    overflow: hidden;
}

.dfg-carousel-container {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 18px 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.dfg-carousel-container::-webkit-scrollbar {
    display: none;
}

.dfg-carousel-container .dfg-card {
    flex: 0 0 260px;
    scroll-snap-align: start;
}

.dfg-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.6rem;
    color: #666;
    user-select: none;
    z-index: 2;
}

.dfg-left {
    left: 8px;
}

.dfg-right {
    right: 8px;
}

/* ===== MEDIA QUERIES PARA RESPONSIVIDAD ===== */
@media(max-width: 1200px) {
    .cgp-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media(max-width: 992px) {
    .dfg-grid-container {
        grid-template-columns: repeat(3, 260px);
    }
    .dfg-carousel-wrap {
        max-width: 832px;
    }
    .dfg-arrow {
        width: 36px;
        height: 36px;
        font-size: 1.4rem;
    }
}

@media(max-width: 768px) {
    .cgp-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width: 600px) {
    .dfg-grid-container {
        grid-template-columns: 1fr;
        max-width: 300px;
    }
    .dfg-carousel-wrap {
        max-width: 320px;
    }
    .dfg-carousel-container {
        gap: 0;
        justify-content: center;
    }
    .dfg-carousel-container .dfg-card {
        flex: 0 0 300px;
    }
    .dfg-arrow {
        display: none;
    }
    .cgp-grid {
        grid-template-columns: 1fr;
    }
}