/* TABLET - 768px a 1024px - MEJORADO */
@media (max-width: 1024px) and (min-width: 769px) {
    
    .pro-location1 .cs_case_study_1_list {
        display: flex;
        flex-direction: column;
        gap: 40px;
        padding: 0 30px;
    }
    
    .pro-location1 .cs_case_study {
        display: flex;
        align-items: center;
        background: #fff;
        border-radius: 25px;
        padding: 30px;
        box-shadow: 0 12px 40px rgba(0,0,0,0.1);
        transition: all 0.3s ease;
        border: 1px solid rgba(237,132,56,0.1);
    }
    
    .pro-location1 .cs_case_study:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    }
    
    .pro-location1 .cs_case_study_thumb {
        width: 320px;
        height: 240px;
        flex-shrink: 0;
        margin-right: 35px;
        border-radius: 20px;
        background-size: cover !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
        /* Asegurar que las imágenes se muestren */
        background-image: url('../../img/EasyOffice/LandingPage/seccion2/1.png') !important;
    }
    
    /* Diferentes imágenes para cada card en tablet */
    .pro-location1 .cs_case_study_thumb2 {
        background-image: url('../../img/EasyOffice/LandingPage/seccion2/2.png') !important;
    }
    
    .pro-location1 .cs_case_study_thumb3 {
        background-image: url('../../img/EasyOffice/LandingPage/seccion2/3.png') !important;
    }
    
    .pro-location1 .content-area {
        flex: 1;
    }
    
    .pro-location1 .content-area .title {
        font-size: 1.8rem !important;
        font-weight: 700 !important;
        color: #2c3e50 !important;
        margin-bottom: 15px !important;
    }
    
    .pro-location1 .features-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        margin: 20px 0;
    }
}

/* ==========================================
    MÓVIL - REDISEÑO COMPLETO Y HERMOSO
    ========================================== */
@media (max-width: 768px) {
    
    /* Contenedor principal - MARGIN SOLO EN MÓVIL */
    .pro-location1 {
        padding: 0 !important;
        margin: 15px !important; /* ¡AQUÍ ESTÁ TU MARGIN! */
        background: #fff !important; /* Mantener fondo blanco */
    }
    
    .pro-location1 .container,
    .pro-location1 .container-fluid {
        padding: 0 !important; /* Sin padding lateral */
        margin: 0 !important;
        max-width: 100% !important;
    }
    
    /* Encabezado principal - ESPACIADO OPTIMIZADO */
    .pro-location1 .heading1 {
        padding: 30px 20px 20px 20px !important; /* Menos padding bottom */
        margin: 0 !important;
    }
    
    .pro-location1 .heading1 h2 {
        font-size: 2.5rem !important;
        line-height: 1.2 !important;
        margin: 0 !important;
        text-align: center;
        font-weight: 700 !important;
    }
    
    .pro-location1 .heading1 h5 {
        font-size: 1.2rem !important;
        margin-bottom: 15px !important; /* Reducido de 25px */
        color: #ED8438 !important;
        font-weight: 600 !important;
    }
    
    /* ==========================================
        CARDS MÓVIL - ESPACIADO ULTRA OPTIMIZADO
        ========================================== */
    .pro-location1 .cs_case_study_1_list {
        padding: 0 18px !important; /* Espaciado lateral para simetría visual */
        margin: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important; /* Reducido de 30px a 20px */
    }
    
    .pro-location1 .cs_case_study {
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
        border-radius: 20px !important; /* Reducido de 25px */
        box-shadow: 0 8px 25px rgba(0,0,0,0.08) !important; /* Sombra más sutil */
        display: block !important;
        overflow: hidden !important;
        transition: all 0.3s ease !important;
    }
    
    .pro-location1 .cs_case_study:hover {
        transform: translateY(-3px) !important; /* Menos elevación */
        box-shadow: 0 12px 30px rgba(0,0,0,0.12) !important;
    }
    
    /* IMAGEN DE LA CARD - ALTURA OPTIMIZADA */
    .pro-location1 .cs_case_study_thumb {
        width: 100% !important;
        height: 180px !important; /* Reducido de 200px */
        margin: 0 !important;
        border-radius: 20px 20px 0 0 !important;
        background-size: cover !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
        display: block !important;
        position: relative !important;
        /* Forzar que se muestren las imágenes */
        background-image: url('../../img/EasyOffice/LandingPage/seccion2/1.png') !important;
    }
    
    /* Diferentes imágenes para cada card */
    .pro-location1 .cs_case_study_thumb2 {
        background-image: url('../../img/EasyOffice/LandingPage/seccion2/2.png') !important;
    }
    
    .pro-location1 .cs_case_study_thumb3 {
        background-image: url('../../img/EasyOffice/LandingPage/seccion2/3.png') !important;
    }
    
    /* CONTENIDO DE LA CARD - PADDING OPTIMIZADO */
    .pro-location1 .content-area {
        background: #fff !important;
        padding: 20px !important; /* Reducido de 25px */
        border-radius: 0 0 20px 20px !important;
        margin: 0 !important;
        position: relative !important;
    }
    
    .pro-location1 .content-area .title {
        font-size: 1.6rem !important; /* Reducido de 1.7rem */
        font-weight: 700 !important;
        color: #2c3e50 !important;
        margin-bottom: 10px !important; /* Reducido de 12px */
        text-align: left !important;
        line-height: 1.3 !important;
    }
    
    .pro-location1 .highlight-hover {
        margin-bottom: 15px !important; /* Reducido de 20px */
    }
    
    .pro-location1 .highlight-hover a {
        color: #ED8438 !important;
        font-size: 1rem !important;
        font-weight: 600 !important;
    }
    
    /* LISTA DE CARACTERÍSTICAS - SÚPER COMPACTA */
    .pro-location1 .features-list {
        list-style: none !important;
        padding: 0 !important;
        margin: 15px 0 !important; /* Reducido de 20px */
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important; /* Reducido de 10px a 8px */
        row-gap: 4px !important; /* Espacio vertical súper reducido */
    }
    
    .pro-location1 .features-list li {
        display: flex !important;
        align-items: center !important;
        font-size: 0.9rem !important;
        color: #555 !important;
        padding: 3px 0 !important; /* ¡SÚPER REDUCIDO! de 6px a 3px */
        font-weight: 500 !important;
        line-height: 1.2 !important; /* Más compacto */
    }
    
    .pro-location1 .features-list li span {
        margin-right: 8px !important;
        flex-shrink: 0 !important;
    }
    
    .pro-location1 .features-list li span svg {
        width: 18px !important;
        height: 18px !important;
    }
    
    /* BOTÓN COMPACTO */
    .pro-location1 .btn-area {
        margin-top: 20px !important; /* Reducido de 25px */
        text-align: center !important;
    }
    
    .pro-location1 .vl-btn1 {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 10px 20px !important; /* Más compacto */
        font-size: 0.95rem !important; /* Ligeramente menor */
        font-weight: 600 !important;
        border-radius: 20px !important; /* Reducido de 25px */
        text-decoration: none !important;
        transition: all 0.3s ease !important;
        box-shadow: 0 3px 12px rgba(237,132,56,0.25) !important;
        min-width: 150px !important; /* Reducido de 160px */
    }
    
    .pro-location1 .vl-btn1:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 6px 20px rgba(237,132,56,0.35) !important;
    }
    
    /* ESPACIADO ENTRE TARJETAS - ELIMINADO */
    .pro-location1 .space100.d-lg-none {
        height: 0px !important; /* Eliminado completamente */
        display: none !important;
    }
    
    .pro-location1 .space40.d-lg-none {
        height: 0px !important; /* Eliminado completamente */
        display: none !important;
    }
    
    /* Espaciado general ultra optimizado */
    .pro-location1 .space16,
    .pro-location1 .space18,
    .pro-location1 .space20,
    .pro-location1 .space24,
    .pro-location1 .space26,
    .pro-location1 .space28,
    .pro-location1 .space32 {
        height: 5px !important; /* Muy reducido */
    }
}

/* ==========================================
    MÓVILES MUY PEQUEÑOS - ULTRA COMPACTO
    ========================================== */
@media (max-width: 480px) {
    
    .pro-location1 .cs_case_study_1_list {
        padding: 0 15px !important; /* Espaciado lateral ajustado */
        gap: 15px !important; /* Aún más compacto */
    }
    
    .pro-location1 .heading1 {
        padding: 25px 15px 15px 15px !important; /* Más compacto */
    }
    
    .pro-location1 .heading1 h2 {
        font-size: 2.2rem !important;
    }
    
    .pro-location1 .heading1 h5 {
        margin-bottom: 10px !important; /* Muy reducido */
    }
    
    .pro-location1 .cs_case_study_thumb {
        height: 160px !important; /* Más compacto */
    }
    
    .pro-location1 .content-area {
        padding: 15px !important; /* Muy compacto */
    }
    
    .pro-location1 .content-area .title {
        font-size: 1.4rem !important;
        margin-bottom: 8px !important;
    }
    
    .pro-location1 .highlight-hover {
        margin-bottom: 12px !important;
    }
    
    .pro-location1 .features-list {
        grid-template-columns: 1fr !important; /* Una sola columna */
        gap: 6px !important; /* SÚPER compacto */
        row-gap: 2px !important; /* Espacio vertical mínimo */
        margin: 12px 0 !important;
    }
    
    .pro-location1 .features-list li {
        font-size: 0.85rem !important;
        padding: 2px 0 !important; /* ¡MÍNIMO ESPACIO! */
        line-height: 1.1 !important; /* Muy compacto */
    }
    
    .pro-location1 .btn-area {
        margin-top: 15px !important;
    }
    
    .pro-location1 .vl-btn1 {
        padding: 8px 18px !important;
        font-size: 0.9rem !important;
        min-width: 130px !important;
    }
}

/* ==========================================
    FALLBACK PARA IMÁGENES QUE NO CARGAN
    ========================================== */
@media (max-width: 768px) {
    .pro-location1 .cs_case_study_thumb::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, #ED8438, #d87e35);
        opacity: 0.1;
        border-radius: 25px 25px 0 0;
    }
    
    .pro-location1 .cs_case_study_thumb::after {
        content: '📍';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 2rem;
        opacity: 0.3;
    }
}