/* ==============================================================================
   ARCHIVO AISLADO: blog-list-responsive.css
   NOTA: Adapta todas las vistas de blog a tablets y móviles (max-width: 992px y 768px).
   ============================================================================== */

/* ==============================================================================
   1. TABLETS Y DISPOSITIVOS MEDIANOS (max-width: 992px)
   ============================================================================== */
@media screen and (max-width: 992px) {
    .featured-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding-right: 0 !important;
    }

    .articles-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }

    .blog-hero-bg-image,
    .cta-bg-image,
    .newsletter-bg-img-box {
        opacity: 0.35 !important; /* Suaviza las imágenes de fondo laterales en tablet */
        width: 70% !important;
    }
}

/* ==============================================================================
   2. MÓVILES Y TABLETS VERTICALES (max-width: 768px)
   ============================================================================== */
@media screen and (max-width: 768px) {

    .blog-container {
        padding: 60px 10px 0 10px !important;
    }

    /* --- 2.1. HERO DEL BLOG --- */
    .blog-hero-section {
        padding: 50px 15px !important;
        min-height: auto !important;
        text-align: center !important;
    }

    .blog-hero-text-content {
        max-width: 100% !important;
    }

    .blog-hero-text-content h1 {
        font-size: 2.1rem !important;
        line-height: 1.15 !important;
    }

    .hero-subtitle,
    .hero-keywords {
        font-size: 0.95rem !important;
        letter-spacing: 0.5px !important;
    }

    /* Oculta o transforma la imagen de fondo lateral del hero para que no estorbe al texto en móvil */
    .blog-hero-bg-image {
        display: none !important;
    }


    /* --- 2.2. BARRA DE CATEGORÍAS --- */
    .blog-categories-bar {
        padding: 10px 0 !important;
    }

    .categories-scroll {
        padding: 0 10px 8px 10px !important;
        justify-content: flex-start !important;
        gap: 8px !important;
    }

    .cat-pill {
        padding: 10px 14px !important;
        font-size: 0.95rem !important;
        border-radius: 10px !important;
    }


    /* --- 2.3. ARTÍCULO DESTACADO --- */
    .blog-section {
        padding: 15px 0 !important;
    }

    .section-title {
        font-size: 1.6rem !important;
        margin-bottom: 16px !important;
        padding-left: 5px !important;
    }

    .featured-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
        padding-right: 0 !important;
    }

    .featured-card-main {
        min-height: 380px !important;
        padding: 20px !important;
    }

    .featured-main-content h3 {
        font-size: 1.5rem !important;
    }

    .featured-main-content p {
        font-size: 0.95rem !important;
        max-width: 100% !important;
    }

    .featured-sub-card {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        text-align: left !important;
        padding: 15px !important;
    }

    .featured-sub-card .sub-card-img img {
        width: 100% !important;
        height: 160px !important;
    }


    /* --- 2.4. PARRILLA DE ARTÍCULOS --- */
    .articles-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .article-img-wrapper img {
        height: 180px !important;
    }

    .article-card-body h3 {
        font-size: 1.05rem !important;
    }


    /* --- 2.5. CTA BANNER INFERIOR --- */
    .blog-cta-banner {
        padding: 40px 15px !important;
        margin-top: 30px !important;
        min-height: auto !important;
        text-align: center !important;
    }

    .cta-text-content {
        max-width: 100% !important;
    }

    .cta-text-content h2 {
        font-size: 1.8rem !important;
    }

    .cta-text-content p {
        font-size: 1.05rem !important;
    }

    .cta-bg-image {
        display: none !important; /* Oculta imagen lateral de fondo en móvil para legibilidad */
    }

    .cta-icons-grid {
        justify-content: center !important;
        margin-right: 0 !important;
        width: 100% !important;
    }

    .cta-icon-item {
        width: 95px !important;
        padding: 10px 8px !important;
    }


    /* --- 2.6. BANNER DE NEWSLETTER / SUSCRIPCIÓN --- */
    .newsletter-card1 {
        flex-direction: column !important;
        padding: 25px 20px !important;
        text-align: center !important;
    }

    .newsletter-bg-img-box {
        display: none !important;
    }

    .newsletter-info1 {
        flex-direction: column !important;
        gap: 15px !important;
        max-width: 100% !important;
    }

    .newsletter-icon1 {
        margin: 0 auto !important;
    }

    .newsletter-info1 h3 {
        font-size: 1.5rem !important;
    }

    .newsletter-info1 p {
        font-size: 0.95rem !important;
    }
}