/* ========================================================== */
/* == 🏠 ESTILOS RESPONSIVE PARA EL HOME 🏠 == */
/* ========================================================== */

/* Desktop - Estilos normales */
.container.my-5 {
    margin-top: 3rem !important;
    margin-bottom: 3rem !important;
}

/* ========================================================== */
/* TABLET Y MÓVIL (768px o menos) */
/* ========================================================== */
@media (max-width: 768px) {
    /* Container principal más compacto */
    .container.my-5,
    .container.mb-5 {
        margin-top: 1rem !important;
        margin-bottom: 1rem !important;
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    
    /* Títulos de sección más pequeños */
    .container h3 {
        font-size: 1.05rem !important;
        margin-bottom: 0.6rem !important;
        font-weight: 600;
    }
    
    /* Sección "Próximas funciones" */
    .feature-badge {
        font-size: 0.68rem;
        padding: 0.3rem 0.6rem;
    }
    
    .feature-badge i {
        font-size: 0.65rem;
        margin-right: 0.25rem !important;
    }
    
    .d-flex.gap-2 {
        gap: 0.4rem !important;
    }
    
    /* Headers de secciones */
    .d-flex.justify-content-between.align-items-center.mb-3,
    .d-flex.justify-content-between.align-items-md-center.mb-4 {
        margin-bottom: 0.6rem !important;
        gap: 0.5rem !important;
        flex-wrap: wrap;
    }
    
    /* Botones "Ver todo" */
    .btn-sm.btn-outline-success {
        font-size: 0.68rem;
        padding: 0.3rem 0.6rem;
        white-space: nowrap;
    }
    
    .btn-sm i {
        font-size: 0.65rem;
        margin-left: 0.15rem !important;
    }
    
    /* Texto descriptivo */
    .text-muted {
        font-size: 0.75rem;
    }
    
    /* Select de ubicación */
    .form-select {
        font-size: 0.75rem;
        padding: 0.3rem 0.5rem;
    }
    
    .form-label {
        font-size: 0.75rem;
        margin-right: 0.4rem !important;
        white-space: nowrap;
    }
    
    /* Espaciado entre secciones */
    .mb-5 {
        margin-bottom: 1.2rem !important;
    }
    
    hr.my-5 {
        margin-top: 0.8rem !important;
        margin-bottom: 0.8rem !important;
        opacity: 0.3;
    }
    
    /* Grid de productos - CRÍTICO PARA 2 COLUMNAS */
    .row.g-3 {
        --bs-gutter-x: 0.5rem !important;
        --bs-gutter-y: 0.7rem !important;
        margin-left: -0.25rem !important;
        margin-right: -0.25rem !important;
    }
    
    /* Mensaje de "no resultados" */
    .text-center.py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .text-center i.fa-5x {
        font-size: 2.5rem !important;
        margin-bottom: 1rem !important;
    }
    
    .text-center .fs-4 {
        font-size: 0.95rem !important;
    }
}

/* ========================================================== */
/* MÓVILES PEQUEÑOS (400px o menos) */
/* ========================================================== */
@media (max-width: 400px) {
    .container.my-5,
    .container.mb-5 {
        padding-left: 0.4rem !important;
        padding-right: 0.4rem !important;
    }
    
    .container h3 {
        font-size: 0.95rem !important;
    }
    
    .feature-badge {
        font-size: 0.65rem;
        padding: 0.25rem 0.5rem;
    }
    
    .btn-sm.btn-outline-success {
        font-size: 0.65rem;
        padding: 0.25rem 0.5rem;
    }
    
    .row.g-3 {
        --bs-gutter-x: 0.4rem !important;
        --bs-gutter-y: 0.6rem !important;
        margin-left: -0.2rem !important;
        margin-right: -0.2rem !important;
    }
}

/* ========================================================== */
/* MÓVILES EXTRA PEQUEÑOS (360px o menos) */
/* ========================================================== */
@media (max-width: 360px) {
    .container.my-5,
    .container.mb-5 {
        padding-left: 0.3rem !important;
        padding-right: 0.3rem !important;
    }
    
    .container h3 {
        font-size: 0.9rem !important;
    }
    
    .row.g-3 {
        --bs-gutter-x: 0.3rem !important;
        --bs-gutter-y: 0.5rem !important;
        margin-left: -0.15rem !important;
        margin-right: -0.15rem !important;
    }
}