/* ==========================================
   HERO STATS - INICIO
========================================== */

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


/* ==========================================
   HERO STAT CARD
========================================== */

.hero-stat-card {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 1 250px;
    background-color: var(--blanco);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 16px 20px;
}

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

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

.hero-stat-texts {
    display: flex;
    align-items: center;
}

.hero-stat-title {
    width: 85px;
    color: var(--gris-texto);
    font-size: 0.85rem;
    line-height: 1.3;
}


/* ==========================================
   SECCIÓN NEGOCIO (INDUSTRIAS)
========================================== */

.section-negocio {
    padding: 30px 5% 0;
    text-align: center;
}

.section-negocio h4 {
    color: var(--azul-secundario);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

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

.section-negocio p {
    color: var(--gris-texto);
    font-size: 0.95rem;
}


/* --- Grid de cards --- */

.section-negocio-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    padding: 30px 5%;
}

.solucion-item {
    display: flex;
    flex-direction: column;
    background-color: var(--blanco);
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--gris-borde);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.solucion-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(10, 18, 38, 0.15);
}

.solucion-item-media {
    width: 100%;
    height: 120px;
    overflow: hidden;
}

.solucion-item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.solucion-item-body {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: justify;
    padding: 32px 16px 20px;
    gap: 8px;
    flex: 1;
}

.solucion-item-icon {
    position: absolute;
    top: -22px;
    left: 16px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--blanco);
    border: 1px solid var(--gris-borde);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

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

.solucion-item-title {
    color: var(--azul-oscuro);
    font-size: 0.95rem;
    font-weight: 600;
}

.solucion-item-subtitle {
    color: var(--gris-texto);
    font-size: 0.72rem;
    line-height: 1.5;
    flex: 1;
}

.solucion-item-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--azul-secundario);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    margin-top: 10px;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.solucion-item-link:hover {
    color: var(--azul-oscuro);
}

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


/* --- Responsive cards negocio --- */

@media (max-width: 1440px) {
    .section-negocio-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .section-negocio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .section-negocio-grid {
        grid-template-columns: 1fr;
        max-width: 380px;
        margin: 0 auto;
    }
}


/* ==========================================
   SECCIÓN MÓDULOS
========================================== */

.section-modulo {
    padding: 40px 5% 10px;
    text-align: center;
}

.section-modulo h4 {
    color: var(--azul-secundario);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

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

.modulo-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

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

.modulo-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(10, 18, 38, 0.14);
}

.modulo-item-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: var(--blanco);
    border: 1px solid var(--gris-borde);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

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

.modulo-item-title {
    color: var(--azul-oscuro);
    font-size: 0.9rem;
    font-weight: 600;
}

.modulo-item-subtitle {
    color: var(--gris-texto);
    font-size: 0.7rem;
    line-height: 1.5;
}

/* --- Responsive módulos --- */

@media (max-width: 1440px) {
    .modulo-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .modulo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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


/* ==========================================
   SECCIÓN SOLUCIONES
========================================== */

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

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

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

.soluciones-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 16px;
}

/* --- Solución card --- */

.solucion-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;

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

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

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

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

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

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

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


/* ==========================================
   SECCIÓN INFO (SISNAPP)
========================================== */

.info-section {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 60px;
    padding: 40px 5%;
    background: #e8f1fd;
}

.info-text {
    width: 400px;  
}

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

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

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

.info-text ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-flow: column;
    grid-template-rows: repeat(4, auto);
    gap: 10px 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.info-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;
}

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

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


/* ==========================================
   SECCIÓN ELECCIÓN (¿POR QUÉ ELEGIRNOS?)
========================================== */

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

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

.eleccion-grid {
    display: flex;
    justify-content: space-between;
}

.eleccion-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
    padding: 20px 10px;
    border-right: 1px solid var(--gris-borde);
}

.eleccion-card:last-child {
    border-right: none;
}

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

.eleccion-icon-img {
    width: 45px;
    height: 45px;
    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: 8px;
    width: 100%;
}

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

.eleccion-subtitle {
    display: block;
    width: 100%;
    min-height: 2.6em;
    text-align: center;
    color: var(--gris-texto);
    font-size: 0.8rem;
    line-height: 1.4;
}


/* ==========================================
   SECCIÓN PROCESO
========================================== */

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

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

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

.proceso-grid {
    display: flex;
    align-items: center;
    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-radius: 12px;
}

/* --- Flecha punteada (entre tarjetas) --- */

.proceso-arrow {
    position: relative;
    flex-shrink: 0;
    width: 45px;
    height: 20px;
    margin: 0 6px;
}

.proceso-arrow::before {
    content: "";
    position: absolute;
    left: 0;
    right: 9px;
    top: 50%;
    border-top: 2px dashed var(--gris-borde);
}

.proceso-arrow::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    border-left: 8px solid var(--gris-borde);
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
}

.proceso-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--blanco);
    border: 1px solid var(--gris-borde);
    display: flex;
    align-items: center;
    justify-content: center;
}

.proceso-icon-img {
    width: 30px;
    height: 30px;
    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.85rem;
    font-weight: 600;
    text-align: left;
}

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


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

@media (max-width: 1024px) {
    .soluciones-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .eleccion-grid {
        flex-wrap: wrap;
    }

    .eleccion-card {
        flex: 1 1 30%;
        margin-bottom: 20px;
        border-right: 1px solid var(--gris-borde);
    }

    .eleccion-card:nth-child(3n),
    .eleccion-card:last-child {
        border-right: none;
    }

    .eleccion-card:last-child {
        margin-bottom: 0;
    }

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

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

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

    .proceso-arrow {
        display: none;
    }
}

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

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

    .info-section {
        flex-direction: column;
        align-items: stretch;
        padding: 40px 5%;
        gap: 25px;
    }

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

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

    .info-text ul {
        grid-template-columns: 1fr;
        grid-auto-flow: row;
        grid-template-rows: none;
        gap: 12px;
    }

    .info-text li {
        white-space: normal;
    }

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

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

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

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

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

    .eleccion-grid {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .eleccion-card {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--gris-borde);
        padding: 20px 0;
    }

    .eleccion-card:last-child {
        border-bottom: none;
        padding-bottom: 10px;
    }

    .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-arrow {
        display: none;
    }
}

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

    .proceso-icon {
        width: 50px;
        height: 50px;
    }

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

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

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


/* ==========================================
   SECCIÓN PLATAFORMAS
========================================== */

.plataformas-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    background-color: var(--azul-claro);
    padding: 20px 5%;
    margin-top: 20px;
}

.plataformas-section h2 {
    color: var(--azul-secundario);
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-align: left;
    width: 200px;
    margin: 0;
}

.plataformas-list {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 40px;
    flex-wrap: nowrap;
    flex: 1;
}

.plataformas-list img {
    height: 55px;
    max-width: 160px;
    object-fit: contain;
    opacity: 0.9;
}


/* ==========================================
   CLIENTES - CARRUSEL DE MARCAS
========================================== */

.clientes-section {
    width: 100%;
    padding: 24px 5%;
    box-sizing: border-box;
    overflow: hidden;
    margin-top: 20px;
}

.clientes-section h2 {
    text-align: center;
    margin: 0 0 16px;
    font-size: 1.2rem;
    color: var(--azul-secundario);
    letter-spacing: 2px;
}

.cliente-carousel {
    width: 100%;
    box-sizing: border-box;
}

.cliente-carousel-title {
    text-align: center;
    margin: 0 0 10px;
    font-size: 1rem;
}

.cliente-carousel-inner {
    display: flex;
    align-items: center;
}

.cliente-carousel-arrow {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 40px;
    background: none;
    border: none;
    color: var(--azul-oscuro);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.cliente-carousel-arrow:hover {
    color: var(--azul-secundario);
}

.cliente-carousel-viewport {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.cliente-carousel-track {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cliente-carousel-slide {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    box-sizing: border-box;
}

.cliente-carousel-slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: opacity 0.25s ease;
}


/* ==========================================
   RESPONSIVE PLATAFORMAS / CLIENTES
========================================== */

@media (max-width: 1024px) {
    .plataformas-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .plataformas-section h2 {
        width: 100%;
    }

    .plataformas-list {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .plataformas-list img {
        height: 42px;
    }

    .clientes-section {
        padding: 16px 4%;
    }

    .cliente-carousel-slide {
        height: 45px;
    }

    .cliente-carousel-arrow {
        width: 24px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .plataformas-list {
        gap: 12px;
    }

    .plataformas-list img {
        height: 34px;
    }

    .cliente-carousel-slide {
        height: 35px;
    }

    .cliente-carousel-arrow {
        width: 20px;
        font-size: 1rem;
    }
}


/* ==========================================
   TARJETA ÚNICA DE INFORMACIÓN (INICIO)
========================================== */

.info-inicio-section {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
}

.info-inicio-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 80px;
}

.info-inicio-content {
    flex: 1;
    max-width: 480px;
}

.info-inicio-title {
    font-size: 32px;
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1.2;
    margin-bottom: 15px;
}

.info-inicio-subtitle {
    font-size: 15px;
    color: #555555;
    line-height: 1.5;
    margin-bottom: 25px;
}

.info-inicio-list {
    list-style: none;
    padding: 0;
    margin: 0 0 35px 0;
}

.info-inicio-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
}

.info-inicio-check-icon {
    width: 15px;
    height: 15px;
    object-fit: contain;
    filter: invert(35%) sepia(85%) saturate(1200%) hue-rotate(190deg);
}

.info-inicio-btn {
    display: inline-block;
    background-color: #0056fb;
    color: #ffffff;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 86, 251, 0.3);
    transition: background-color 0.2s ease;
}

.info-inicio-btn:hover {
    background-color: #0043c7;
}

.info-inicio-image {
    flex-shrink: 0;
}

.info-inicio-image img {
    width: 480px;
    height: 360px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

@media (max-width: 900px) {
    .info-inicio-container {
        flex-direction: column;
        align-items: stretch;
        text-align: left;
    }

    .info-inicio-content {
        max-width: 100%;
    }

    .info-inicio-image img {
        width: 100%;
        height: auto;
    }
}
