/* ========================================== */
/* IMPACTO - VERSIÓN CON DESPLEGABLE         */
/* ========================================== */

.impacto-section {
    background:
        linear-gradient(135deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.65)),
        url('../img/Fondo_impacto.webp') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    padding: 60px 0 50px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

/* Efecto de overlay con color naranja suave */
.impacto-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(243, 156, 18, 0.10) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(243, 156, 18, 0.06) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.impacto-section .container {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Header - Texto blanco */
.impacto-header {
    text-align: center;
    margin-bottom: 30px;
}

.impacto-header h2 {
    font-size: 2.8rem;
    color: #ffffff;
    margin-bottom: 8px;
    font-weight: 700;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.impacto-header h2 span {
    background: linear-gradient(135deg, #f7931f, #f37021);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

.impacto-header .section-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* ========================================== */
/* CONTENEDOR DE INDICADORES - CENTRADO      */
/* ========================================== */

.impacto-grid-wrapper {
    display: flex;
    justify-content: center;
}

.impacto-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
    max-width: 900px;
    width: 100%;
}

/* ========================================== */
/* TARJETA DE IMPACTO                        */
/* ========================================== */

.impacto-card {
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 18px 12px 16px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.10);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.impacto-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(243, 156, 18, 0.3);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.impacto-icon {
    font-size: 1.2rem;
    color: #f7931f;
    margin-bottom: 4px;
}

.impacto-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: #f7931f;
    line-height: 1.1;
    margin-bottom: 3px;
}

.impacto-number .counter {
    display: inline-block;
}

.impacto-label {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.3;
    font-weight: 500;
}

.impacto-label small {
    display: block;
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
    margin-top: 1px;
}

/* ========================================== */
/* INDICADORES OCULTOS - DESPLEGABLES        */
/* ========================================== */

.impacto-hidden {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.4s ease;
    opacity: 0;
}

.impacto-hidden.open {
    max-height: 2000px;
    opacity: 1;
}

/* ========================================== */
/* BOTÓN DESPLEGAR                           */
/* ========================================== */

.impacto-toggle-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.btn-impacto-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 32px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-impacto-toggle:hover {
    background: rgba(243, 156, 18, 0.2);
    border-color: rgba(243, 156, 18, 0.3);
    transform: translateY(-2px);
}

.btn-impacto-toggle i {
    transition: transform 0.4s ease;
    color: #f7931f;
}

.btn-impacto-toggle.open i {
    transform: rotate(180deg);
}

.btn-impacto-toggle span {
    color: #f7931f;
}

/* ========================================== */
/* CRECIMIENTO - 2DA FILA                    */
/* ========================================== */

.crecimiento-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 18px;
}

.crecimiento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    max-width: 700px;
    width: 100%;
}

.crecimiento-card {
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(12px);
    padding: 16px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3px solid #f7931f;
    text-align: center;
    transition: all 0.3s ease;
}

.crecimiento-card:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(243, 156, 18, 0.3);
    transform: translateY(-3px);
}

.crecimiento-card .impacto-number {
    font-size: 1.6rem;
    color: #f7931f;
    margin-bottom: 2px;
}

.crecimiento-card .impacto-number i {
    font-size: 1.4rem;
    color: #f7931f;
}

.crecimiento-card .impacto-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 2px;
}

.crecimiento-card .impacto-desc {
    font-size: 0.62rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.3;
}

/* ========================================== */
/* INDICADORES COMPLETOS - OCULTOS           */
/* ========================================== */

.impacto-hidden .impacto-grid {
    margin-top: 18px;
}

/* ========================================== */
/* RESPONSIVE                                */
/* ========================================== */

@media (max-width: 1024px) {
    .impacto-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 14px;
        max-width: 800px;
    }

    .impacto-number {
        font-size: 1.5rem;
    }

    .crecimiento-grid {
        max-width: 600px;
        gap: 14px;
    }
}

@media (max-width: 820px) {
    .impacto-section {
        padding: 50px 0 40px 0;
        background-attachment: scroll;
    }

    .impacto-header h2 {
        font-size: 1.8rem;
    }

    .impacto-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 500px;
        gap: 12px;
    }

    .impacto-card {
        padding: 14px 10px 12px;
    }

    .impacto-number {
        font-size: 1.4rem;
    }

    .impacto-icon {
        font-size: 1rem;
    }

    .impacto-label {
        font-size: 0.62rem;
    }

    .crecimiento-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 500px;
        gap: 12px;
    }

    .crecimiento-card {
        padding: 12px 10px;
    }

    .crecimiento-card .impacto-number {
        font-size: 1.3rem;
    }

    .crecimiento-card .impacto-label {
        font-size: 0.65rem;
    }

    .crecimiento-card .impacto-desc {
        font-size: 0.55rem;
    }

    .btn-impacto-toggle {
        padding: 10px 24px;
        font-size: 0.8rem;
    }
}

@media (max-width: 550px) {
    .impacto-section {
        padding: 40px 0 30px 0;
    }

    .impacto-header h2 {
        font-size: 1.4rem;
    }

    .impacto-header .section-subtitle {
        font-size: 0.8rem;
    }

    .impacto-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
        gap: 10px;
    }

    .impacto-card {
        padding: 12px 8px 10px;
        border-radius: 10px;
    }

    .impacto-number {
        font-size: 1.2rem;
    }

    .impacto-icon {
        font-size: 0.85rem;
        margin-bottom: 2px;
    }

    .impacto-label {
        font-size: 0.55rem;
    }

    .impacto-label small {
        font-size: 0.48rem;
    }

    .crecimiento-grid {
        grid-template-columns: 1fr;
        max-width: 280px;
        gap: 10px;
    }

    .crecimiento-card {
        padding: 12px 14px;
    }

    .crecimiento-card .impacto-number {
        font-size: 1.2rem;
    }

    .crecimiento-card .impacto-label {
        font-size: 0.7rem;
    }

    .crecimiento-card .impacto-desc {
        font-size: 0.6rem;
    }

    .btn-impacto-toggle {
        padding: 8px 18px;
        font-size: 0.7rem;
        gap: 6px;
    }
}

@media (max-width: 380px) {
    .impacto-grid {
        gap: 6px;
    }

    .impacto-card {
        padding: 8px 4px 8px;
        border-radius: 8px;
    }

    .impacto-number {
        font-size: 1rem;
    }

    .impacto-label {
        font-size: 0.48rem;
    }

    .impacto-icon {
        font-size: 0.7rem;
    }

    .impacto-header h2 {
        font-size: 1.2rem;
    }
}

/* ========================================== */
/* ANIMACIÓN DE ENTRADA                      */
/* ========================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.impacto-card {
    animation: fadeInUp 0.4s ease both;
}

.impacto-card:nth-child(1) {
    animation-delay: 0.03s;
}

.impacto-card:nth-child(2) {
    animation-delay: 0.06s;
}

.impacto-card:nth-child(3) {
    animation-delay: 0.09s;
}

.impacto-card:nth-child(4) {
    animation-delay: 0.12s;
}

.crecimiento-card {
    animation: fadeInUp 0.4s ease both;
}

.crecimiento-card:nth-child(1) {
    animation-delay: 0.15s;
}

.crecimiento-card:nth-child(2) {
    animation-delay: 0.18s;
}

.crecimiento-card:nth-child(3) {
    animation-delay: 0.21s;
}