/* ==========================================================
   INSIGHTS — Página de artículos y filtros
   ========================================================== */


/* ----------------------------------------------------------
   1. HERO
   ---------------------------------------------------------- */

.insights-hero {
    position: relative;
    height: 280px;
    background-image: url('../img/images/Insights-image-back.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.insights-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(29, 71, 126, 0.45);
}

.insights-hero h1 {
    position: relative;
    z-index: 1;
    font-family: var(--fuente-principal);
    font-size: 72px;
    font-weight: 600;
    color: #FFFFFF;
    text-align: center;
    margin: 0;
    line-height: 1.1;
    letter-spacing: 0;
}

.insights-hero-inner {
    position: absolute;
    inset: 0;
    max-width: 1440px;
    margin: 0 auto;
    z-index: 2;
    pointer-events: none;
}

.btn-regresar {
    position: absolute;
    top: 36px;
    left: 46px;
    width: 187px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 16px 32px;
    background: rgba(255, 255, 255, 1);
    border: 1px solid rgba(17, 32, 63, 1);
    border-radius: 8px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: rgba(17, 32, 63, 1);
    font-family: var(--fuente-principal);
    font-weight: 600;
    font-size: 18px;
    line-height: 110%;
    letter-spacing: 0;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    pointer-events: all;
    box-sizing: border-box;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.btn-regresar:hover {
    opacity: 0.85;
}


/* ----------------------------------------------------------
   2. FILTROS
   ---------------------------------------------------------- */

.insights-filters {
    background: #F1F7FF;
    padding: 95px 0;
}

.insights-filters-title {
    font-family: var(--fuente-secundaria);
    font-weight: 700;
    font-size: 24px;
    line-height: 36px;
    letter-spacing: 0;
    color: rgba(29, 71, 126, 1);
    margin-bottom: 48px;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 20px;
    border-radius: 8px;
    border: 2px solid rgba(29, 71, 126, 1);
    background: transparent;
    color: rgba(29, 71, 126, 1);
    font-family: var(--fuente-principal);
    font-weight: 600;
    font-size: 20px;
    line-height: 120%;
    letter-spacing: 0;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.chip.active {
    background: rgba(29, 71, 126, 1);
    color: #FFFFFF;
}

.chip:hover {
    opacity: 0.8;
}


/* ----------------------------------------------------------
   3. GRID DE ARTÍCULOS
   ---------------------------------------------------------- */

.insights-cards-section {
    background: #F1F7FF;
    padding: 40px 0 80px;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 48px;
}

.insights-grid .solucion-card {
    width: 100%;
    height: auto;
    min-height: 580px;
    flex-shrink: unset;
}

.insights-grid .solucion-card.hidden {
    display: none;
}


/* ----------------------------------------------------------
   4. VER MÁS
   ---------------------------------------------------------- */

.insights-ver-mas {
    display: flex;
    justify-content: center;
}

.btn-insights-ver-mas {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    padding: 0 56px;
    background: #FFFFFF;
    border: 1.5px solid #11203F;
    border-radius: 8px;
    color: #11203F;
    font-family: var(--fuente-principal);
    font-weight: 600;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-insights-ver-mas:hover {
    opacity: 0.85;
}


/* ==========================================================
   RESPONSIVE — TABLET (max-width: 1024px)
   ========================================================== */

@media (max-width: 1024px) {
    .insights-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .insights-hero h1 {
        font-size: 48px;
    }
}


/* ==========================================================
   RESPONSIVE — TABLET PEQUEÑO (max-width: 768px)
   ========================================================== */

@media (max-width: 768px) {
    .insights-hero {
        height: 220px;
    }

    .insights-hero h1 {
        font-size: 40px;
    }

    .btn-regresar {
        top: 16px;
        left: 16px;
        width: auto;
        height: auto;
        font-size: 14px;
        padding: 8px 16px;
        gap: 10px;
    }

    .insights-filters {
        padding: 48px 0 40px;
    }

    .insights-filters-title {
        font-size: 20px;
        line-height: 1.4;
        margin-bottom: 32px;
    }

    .chip {
        font-size: 14px;
        height: auto;
        padding: 8px 16px;
        white-space: normal;
        text-align: center;
        line-height: 1.3;
    }

    .insights-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .insights-cards-section {
        padding: 32px 0 60px;
    }
}


/* ==========================================================
   RESPONSIVE — MÓVIL GRANDE (max-width: 600px)
   ========================================================== */

@media (max-width: 600px) {
    .insights-hero {
        height: 200px;
    }

    .insights-hero h1 {
        font-size: 32px;
    }

    .insights-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .insights-filters {
        padding: 40px 0 32px;
    }
}


/* ==========================================================
   RESPONSIVE — MÓVIL (max-width: 480px)
   ========================================================== */

@media (max-width: 480px) {
    .insights-hero {
        height: 170px;
    }

    .insights-hero h1 {
        font-size: 26px;
    }

    .btn-regresar {
        top: 12px;
        left: 12px;
        font-size: 13px;
        padding: 6px 12px;
        gap: 8px;
        border-radius: 6px;
    }

    .insights-filters {
        padding: 32px 0 24px;
    }

    .insights-filters-title {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .filter-chips {
        gap: 8px;
    }

    .chip {
        font-size: 13px;
        height: auto;
        padding: 7px 12px;
        border-radius: 6px;
        white-space: normal;
        text-align: center;
        line-height: 1.3;
    }

    .insights-cards-section {
        padding: 24px 0 48px;
    }

    .insights-grid {
        gap: 16px;
        margin-bottom: 32px;
    }

    .insights-grid .solucion-card {
        min-height: unset;
    }

    .btn-insights-ver-mas {
        width: 100%;
        font-size: 16px;
    }
}