﻿/* ==========================================================
   ECOSISTEMA
========================================================== */

.ecosystem-page {
    background: #fff;
}


/* ==========================================================
   HERO
========================================================== */

.ecosystem-page-hero {
    padding: 110px 0 90px;
    background: radial-gradient(circle at top right,#edf6fd 0%,transparent 45%), #ffffff;
}

.ecosystem-page-hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}


  


.ecosystem-page-hero__visual {
    display: flex;
    justify-content: center;
}

    .ecosystem-page-hero__visual img {
        width: 100%;
        max-width: 760px;
        border-radius: 30px;
        box-shadow: 0 30px 80px rgba(20,40,80,.12);
    }



/* ==========================================================
   FLOW
========================================================== */

.ecosystem-flow {
    padding: 110px 0;
    background: #F8FBFE;
}

.ecosystem-flow__header {
    max-width: 900px;
    margin: auto;
    text-align: center;
    margin-bottom: 70px;
}

    .ecosystem-flow__header h2 {
        font-size: 3rem;
        line-height: 1.2;
        color: #1F2E3B;
        margin: 15px 0 25px;
    }

    .ecosystem-flow__header span {
        color: #4C7697;
    }

    .ecosystem-flow__header p {
        color: #65798C;
        font-size: 1.15rem;
        line-height: 1.9;
    }

.ecosystem-flow__steps {
    display: grid;
    grid-template-columns: repeat(5,1fr);
    gap: 25px;
}

.ecosystem-step {
    position: relative;
    background: white;
    border-radius: 24px;
    padding: 35px;
    text-align: center;
    border: 1px solid #E6EEF6;
    transition: .30s;
}

    .ecosystem-step:hover {
        transform: translateY(-8px);
        box-shadow: 0 25px 50px rgba(30,70,120,.10);
    }

    .ecosystem-step::after {
        content: "";
        position: absolute;
        right: -13px;
        top: 50%;
        width: 26px;
        height: 2px;
        background: #8CB8E5;
    }

    .ecosystem-step:last-child::after {
        display: none;
    }

    .ecosystem-step i {
        font-size: 3rem;
        color: #2D7EF7;
        margin-bottom: 18px;
    }

    .ecosystem-step h3 {
        font-size: 1.25rem;
        color: #1F2E3B;
        margin-bottom: 15px;
    }

    .ecosystem-step p {
        color: #6C7F90;
        line-height: 1.7;
    }



/* ==========================================================
   MODULOS
========================================================== */

.ecosystem-modules {
    padding: 120px 0;
}

.ecosystem-modules__header {
    text-align: center;
    margin-bottom: 70px;
}

    .ecosystem-modules__header h2 {
        font-size: 3rem;
        color: #1F2E3B;
    }

    .ecosystem-modules__header span {
        display: block;
        color: #4C7697;
    }

.ecosystem-modules__grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 30px;
}

.ecosystem-module-card {
    background: white;
    border-radius: 24px;
    padding: 40px;
    border: 1px solid #E5EDF5;
    transition: .35s;
}

    .ecosystem-module-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 25px 60px rgba(20,40,80,.10);
    }

    .ecosystem-module-card i {
        font-size: 2.8rem;
        color: #2D7EF7;
        margin-bottom: 18px;
    }

    .ecosystem-module-card h3 {
        font-size: 1.45rem;
        color: #22303D;
        margin-bottom: 15px;
    }

    .ecosystem-module-card p {
        color: #687D90;
        line-height: 1.8;
    }



/* ==========================================================
   BENEFICIOS
========================================================== */

.ecosystem-benefits {
    padding: 0 0 120px;
}

.ecosystem-benefits__card {
    background: white;
    border-radius: 34px;
    padding: 70px;
    border: 1px solid #E7EEF5;
    box-shadow: 0 25px 70px rgba(20,40,80,.08);
}

    .ecosystem-benefits__card h2 {
        font-size: 3rem;
        text-align: center;
        line-height: 1.2;
        margin: 20px auto 60px;
        max-width: 900px;
        color: #1F2E3B;
    }

        .ecosystem-benefits__card h2 span {
            display: block;
            color: #4C7697;
        }

.ecosystem-benefits__grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 35px;
    margin-bottom: 60px;
}

    .ecosystem-benefits__grid div {
        display: flex;
        gap: 20px;
        align-items: flex-start;
    }

    .ecosystem-benefits__grid i {
        font-size: 2rem;
        color: #2D7EF7;
    }

    .ecosystem-benefits__grid strong {
        display: block;
        font-size: 1.2rem;
        color: #1F2E3B;
        margin-bottom: 8px;
    }

    .ecosystem-benefits__grid p {
        color: #6E8294;
        line-height: 1.8;
    }

.ecosystem-benefits .erp-btn {
    display: flex;
    margin: auto;
    width: max-content;
}



/* ==========================================================
   RESPONSIVE
========================================================== */

@media(max-width:1200px) {

    .ecosystem-page-hero__container {
        grid-template-columns: 1fr;
        text-align: center;
    }

  

    .ecosystem-flow__steps {
        grid-template-columns: 1fr;
    }

    .ecosystem-step::after {
        display: none;
    }

    .ecosystem-modules__grid {
        grid-template-columns: repeat(2,1fr);
    }
}

@media(max-width:768px) {

    .ecosystem-page-hero {
        padding: 70px 0;
    }

    .ecosystem-page-hero__title {
        font-size: 2.8rem;
    }

    .ecosystem-flow__header h2 {
        font-size: 2.2rem;
    }

    .ecosystem-modules__header h2 {
        font-size: 2.2rem;
    }

    .ecosystem-benefits__card {
        padding: 40px 25px;
    }

        .ecosystem-benefits__card h2 {
            font-size: 2.2rem;
        }

    .ecosystem-modules__grid {
        grid-template-columns: 1fr;
    }

    .ecosystem-benefits__grid {
        grid-template-columns: 1fr;
    }
}



/* ==========================================================
   ECOSYSTEM TIMELINE
========================================================== */

.ecosystem-timeline {
    position: relative;
    max-width: 980px;
    margin: 0 auto;
    display: grid;
    gap: 28px;
}

    .ecosystem-timeline::before {
        content: "";
        position: absolute;
        top: 36px;
        bottom: 36px;
        left: 36px;
        width: 3px;
        border-radius: 999px;
        background: linear-gradient( 180deg, var(--erp-primary), var(--erp-soft-blue) );
    }

.ecosystem-timeline__step {
    position: relative;
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 24px;
    align-items: center;
}

.ecosystem-timeline__icon {
    position: relative;
    z-index: 2;
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    background: var(--erp-surface);
    border: 1px solid var(--erp-border);
    color: var(--erp-primary);
    font-size: 2rem;
    box-shadow: var(--erp-shadow-sm);
}

.ecosystem-timeline__content {
    padding: 28px 34px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--erp-border);
    border-radius: var(--erp-radius-xl);
    box-shadow: 0 16px 44px rgba(34, 49, 59, 0.06);
    transition: var(--erp-transition);
}

.ecosystem-timeline__step:hover .ecosystem-timeline__content {
    transform: translateX(8px);
    box-shadow: var(--erp-shadow-md);
    border-color: rgba(75, 116, 145, 0.32);
}

.ecosystem-timeline__content span {
    display: inline-flex;
    margin-bottom: 8px;
    color: var(--erp-primary);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ecosystem-timeline__content h3 {
    margin: 0 0 8px;
    color: var(--erp-text);
    font-size: 1.28rem;
    font-weight: 900;
}

.ecosystem-timeline__content p {
    margin: 0;
    color: var(--erp-text-secondary);
    line-height: 1.7;
}

.ecosystem-flow__message {
    width: fit-content;
    max-width: 760px;
    margin: 56px auto 0;
    padding: 24px 34px;
    display: flex;
    align-items: center;
    gap: 18px;
    background: var(--erp-surface);
    border: 1px solid var(--erp-border);
    border-radius: var(--erp-radius-xl);
    box-shadow: var(--erp-shadow-sm);
    text-align: center;
}

    .ecosystem-flow__message i {
        color: var(--erp-primary);
        font-size: 1.7rem;
    }

    .ecosystem-flow__message p {
        margin: 0;
        color: var(--erp-text-secondary);
        font-size: 1.08rem;
        font-weight: 700;
    }

    .ecosystem-flow__message strong {
        color: var(--erp-primary);
    }

@media (max-width: 720px) {
    .ecosystem-timeline::before {
        left: 28px;
    }

    .ecosystem-timeline__step {
        grid-template-columns: 56px 1fr;
        gap: 16px;
    }

    .ecosystem-timeline__icon {
        width: 56px;
        height: 56px;
        border-radius: 18px;
        font-size: 1.55rem;
    }

    .ecosystem-timeline__content {
        padding: 24px;
    }

    .ecosystem-flow__message {
        width: 100%;
        align-items: flex-start;
        text-align: left;
    }
}