/* ==========================================
   HERO STATS - SISNAPP
   Icono y título lado a lado, subtítulo debajo de ambos.
   Todos los stats en una sola fila y centrados.
========================================== */

.hero-stats {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: stretch;
    gap: 30px;
    padding: 15px 8% 10px;
    background: transparent;
    position: relative;
    z-index: 2;
    margin-top: -50px;
}

/* --- Card: icono + título centrados, subtítulo debajo --- */

.hero-stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;

    flex: 1 1 0;
    min-width: 0;
    background-color: var(--blanco);
    border: 1px solid var(--gris-borde);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 16px 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(10, 18, 38, 0.15);
}

.hero-stat-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-width: 0;
}

.hero-stat-icon-img {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    object-fit: contain;
    filter: invert(28%) sepia(93%) saturate(1443%) hue-rotate(200deg) brightness(94%) contrast(88%);
}

.hero-stat-title {
    color: var(--azul-secundario);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
    min-height: 2.4em;
    display: flex;
    align-items: center;
    text-align: center;
}

.hero-stat-subtitle {
    width: 200px;
    max-width: 100%;
    min-height: 3em;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--gris-texto);
    font-size: 0.8rem;
    line-height: 1.5;
}


/* ==========================================
   SECCIÓN MÓDULOS - SISNAPP
   Mismo diseño que hero-stats, title azul oscuro
========================================== */

.modulos-section {
    padding: 10px 5%;
    text-align: center;
    background: transparent;
}

.modulos-section h2 {
    color: var(--azul-oscuro);
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.modulos-section > p {
    color: var(--gris-texto);
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.modulos-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

/* --- Módulo card --- */

.modulo-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;

    background-color: var(--blanco);
    border: 1px solid var(--gris-borde);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 16px 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.modulo-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(10, 18, 38, 0.15);
}

.modulo-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-width: 0;
}

.modulo-icon-img {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    object-fit: contain;
    filter: invert(28%) sepia(93%) saturate(1443%) hue-rotate(200deg) brightness(94%) contrast(88%);
}

.modulo-title {
    color: var(--azul-oscuro);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
    min-height: 2.4em;
    display: flex;
    align-items: center;
    text-align: center;
}

.modulo-subtitle {
    width: 215px;
    max-width: 100%;
    min-height: 3em;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--gris-texto);
    font-size: 0.8rem;
    line-height: 1.5;
}


/* ==========================================
   SECCIÓN SOLUCIÓN - SISNAPP
   Texto + imagen, lista en una sola columna
========================================== */

.solucion-section {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 60px;
    padding: 20px 5%;
    background: #e8f1fd;
    margin-top: 15px;
}

.solucion-text {
    width: 420px;
}

.solucion-text h3 {
    color: var(--azul-secundario);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 10px;
}

.solucion-text h2 {
    color: var(--azul-oscuro);
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 15px;
}

.solucion-text p {
    color: var(--gris-texto);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 25px;
}

.solucion-text ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.solucion-text li {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gris-texto);
    font-size: 0.85rem;
    line-height: 1.3;
}

.solucion-text li::before {
    content: "\2713";
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    background: var(--azul-secundario);
    border-radius: 50%;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.solucion-img {
    flex: 1.5;
    display: flex;
    justify-content: center;
}

.solucion-img img {
    width: 100%;
    height: 450px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

/* ==========================================
   SECCIÓN ELECCIÓN (NOSOTROS)
========================================== */

.eleccion-section {
    padding: 10px 5%;
    text-align: center;
    margin-top: 10px;
}

.eleccion-section h2 {
    color: var(--azul-oscuro);
    font-size: 1.6rem;
    margin-bottom: 30px;
}

.eleccion-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.eleccion-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap:20px;
    background-color: var(--blanco);
    border: 1px solid var(--gris-borde);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 15px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.eleccion-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(10, 18, 38, 0.15);
}

.eleccion-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.eleccion-icon-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: invert(28%) sepia(93%) saturate(1443%) hue-rotate(200deg) brightness(94%) contrast(88%);
}

.eleccion-texts {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.eleccion-card:nth-child(1) .eleccion-texts,
.eleccion-card:nth-child(2) .eleccion-texts,
.eleccion-card:nth-child(3) .eleccion-texts {
    gap: 0;
}

.eleccion-title {
    display: block;
    width: 200px;
    min-height: 2.4em;
    line-height: 1.2;
    text-align: center;
    color: var(--azul-oscuro);
    font-size: 0.9rem;
    font-weight: 600;
}

.eleccion-card:nth-child(4) .eleccion-title,
.eleccion-card:nth-child(5) .eleccion-title {
    width: 125px;
}

.eleccion-subtitle {
    display: block;
    width: 190px;
    text-align: center;
    color: var(--gris-texto);
    font-size: 0.75rem;
    line-height: 1.4;
}


/* ==========================================
   SECCIÓN PROCESO - SISNAPP
   Icono azul a la izquierda, title y subtitle a la derecha.
   Conectores de puntos entre cards (sin flechas).
========================================== */

.proceso-section {
    padding: 10px 5%;
    text-align: center;
    margin-top: 10px;
}

.proceso-section h2 {
    color: var(--azul-oscuro);
    font-size: 1.6rem;
    margin-bottom: 30px;
}

.proceso-grid {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
}

.proceso-card {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 0;
    position: relative;
    text-align: left;
    padding: 20px;
    background-color: var(--blanco);
    border: 1px solid var(--gris-borde);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* --- Puntos que conectan entre tarjetas --- */

.proceso-dot {
    position: relative;
    flex-shrink: 0;
    width: 60px;
    height: 24px;
    margin: 0 8px;
    align-self: center;
}

.proceso-dot::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    border-top: 4px dotted var(--azul-secundario);
}

.proceso-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.proceso-icon-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    filter: invert(28%) sepia(93%) saturate(1443%) hue-rotate(200deg) brightness(94%) contrast(88%);
}

.proceso-texts {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    min-width: 0;
}

.proceso-title {
    color: var(--azul-oscuro);
    font-size: 0.8rem;
    font-weight: 600;
    text-align: left;
}

.proceso-subtitle {
    color: var(--azul-oscuro);
    font-size: 0.65rem;
    line-height: 1.4;
    text-align: left;
}


/* ==========================================
   SECCIÓN IMPULSO - SISNAPP
========================================== */

.impulso-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 30px;
    margin: 10px 5%;
    text-align: left;
    background: #e8f1fd;
    border-radius: 16px;
}

.impulso-text {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.impulso-text h2 {
    color: var(--azul-oscuro);
    font-size: 1.4rem;
    line-height: 1.2;
    margin-bottom: 10px;
    width: 350px;
}

.impulso-text p {
    color: var(--gris-texto);
    font-size: 0.8rem;
    line-height: 1.5;
    max-width: 380px;
}

.impulso-grid {
    flex: 1.5;
    min-width: 0;
    display: flex;
    align-items: stretch;
    gap: 20px;
    padding: 0 20px;
}

.impulso-card {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 0;
    min-width: 0;
    padding: 12px 14px;
    background-color: var(--blanco);
    border: 1px solid var(--gris-borde);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.impulso-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.impulso-icon-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: invert(28%) sepia(93%) saturate(1443%) hue-rotate(200deg) brightness(94%) contrast(88%);
}

.impulso-texts {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    min-width: 0;
}

.impulso-title {
    color: var(--azul-oscuro);
    font-size: 0.8rem;
    font-weight: 600;
    text-align: left;
}

.impulso-subtitle {
    color: var(--gris-texto);
    font-size: 0.7rem;
    line-height: 1.4;
    text-align: left;
}


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

@media (max-width: 1024px) {
    .solucion-section {
        gap: 40px;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
    }

    .hero-stat-card {
        flex: 1 1 calc(50% - 20px);
        max-width: 480px;
    }

    .modulos-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .eleccion-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .proceso-grid {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .proceso-card {
        flex: 1 1 calc(50% - 20px);
        max-width: 480px;
    }

    .proceso-dot {
        display: none;
    }

    .impulso-section {
        flex-direction: column;
        align-items: stretch;
        gap: 25px;
        padding: 30px;
        margin: 10px 5%;
        border-radius: 16px;
    }

    .impulso-text {
        text-align: center;
    }

    .impulso-text h2 {
        width: 100%;
        max-width: 350px;
        margin: 0 auto 10px;
    }

    .impulso-text p {
        margin: 0 auto;
    }

    .impulso-grid {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        width: 100%;
        padding: 0;
    }

    .impulso-card {
        flex: 1 1 100%;
        width: 100%;
        max-width: 480px;
    }
}

@media (max-width: 768px) {
    .solucion-section {
        flex-direction: column;
        align-items: stretch;
        padding: 40px 5%;
        gap: 25px;
    }

    .solucion-text {
        flex: 1 1 100%;
        width: 100%;
        max-width: 100%;
    }

    .solucion-text h2 {
        font-size: 1.4rem;
    }

    .solucion-img {
        flex: 1 1 100%;
        width: 100%;
    }

    .solucion-img img {
        width: 100%;
        height: 260px;
    }

    .impulso-section {
        flex-direction: column;
        align-items: stretch;
        gap: 25px;
        padding: 30px 20px;
        margin: 10px 5%;
        border-radius: 16px;
    }

    .impulso-text {
        text-align: center;
    }

    .impulso-text h2 {
        width: 100%;
        max-width: 350px;
        margin: 0 auto 10px;
    }

    .impulso-text p {
        margin: 0 auto;
    }

    .impulso-grid {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        width: 100%;
        padding: 0;
    }

    .impulso-card {
        flex: 1 1 100%;
        width: 100%;
        max-width: 480px;
    }

    .hero-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 20px 5% 10px;
    }

    .hero-stat-card {
        width: 100%;
        justify-content: center;
        padding: 12px 10px;
    }

    .eleccion-section {
        padding: 10px 5% 5px;
    }

    .eleccion-grid {
        grid-template-columns: 1fr;
        max-width: 340px;
        margin: 0 auto;
    }

    .eleccion-title,
    .eleccion-card:nth-child(4) .eleccion-title,
    .eleccion-card:nth-child(5) .eleccion-title {
        width: auto;
        max-width: 200px;
    }

    .proceso-section {
        padding: 5px 5% 10px;
    }

    .proceso-grid {
        flex-direction: column;
        gap: 15px;
    }

    .proceso-card {
        flex: 1 1 100%;
        width: 100%;
        max-width: 480px;
        margin: 0 auto;
    }

    .proceso-dot {
        display: none;
    }
}

@media (max-width: 480px) {
    .proceso-section h2 {
        font-size: 1.3rem;
    }

    .proceso-icon-img {
        width: 30px;
        height: 30px;
    }

    .proceso-title {
        font-size: 0.8rem;
    }

    .proceso-subtitle {
        font-size: 0.65rem;
    }

    .impulso-text h2 {
        font-size: 1.2rem;
    }

    .impulso-icon-img {
        width: 28px;
        height: 28px;
    }

    .impulso-title {
        font-size: 0.75rem;
    }

    .impulso-subtitle {
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        grid-template-columns: 1fr;
        max-width: 360px;
        margin: 0 auto;
    }

    .modulos-grid {
        grid-template-columns: 1fr;
        max-width: 360px;
        margin: 0 auto;
    }
}
