/* =========================================================
   ECOSISTEMA CANOPUS
   Archivo independiente: assets/css/ecosistema.css
========================================================= */

.eco-canopus {
    --eco-blue: #0b67db;
    --eco-blue-dark: #092f71;
    --eco-violet: #6d4ed8;
    --eco-text: #122544;
    --eco-muted: #67758d;
    --eco-border: rgba(40, 104, 178, .15);
    --eco-card: rgba(255,255,255,.94);

    position: relative;
    overflow: hidden;
    padding: 100px 24px 110px;
    font-family: "Manrope", sans-serif;
    background:
        radial-gradient(circle at 8% 20%, rgba(63, 157, 255, .10), transparent 28%),
        radial-gradient(circle at 91% 74%, rgba(111, 78, 216, .08), transparent 28%),
        linear-gradient(180deg, #fff 0%, #f7fbff 50%, #fff 100%);
}

.eco-canopus *,
.eco-canopus *::before,
.eco-canopus *::after {
    box-sizing: border-box;
}

.eco-canopus__bg {
    position: absolute;
    inset: 0;
    opacity: .22;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(20, 96, 182, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20, 96, 182, .07) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
}

.eco-canopus__container {
    position: relative;
    z-index: 2;
    width: min(1360px, 100%);
    margin: 0 auto;
}

.eco-canopus__heading {
    width: min(820px, 100%);
    margin: 0 auto 56px;
    text-align: center;
}

.eco-canopus__heading > span {
    display: inline-block;
    margin-bottom: 15px;
    color: var(--eco-blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .18em;
}

.eco-canopus__heading h2 {
    margin: 0;
    color: var(--eco-text);
    font-size: clamp(38px, 5vw, 68px);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -.05em;
}

.eco-canopus__heading h2 strong {
    display: block;
    color: var(--eco-blue);
}

.eco-canopus__heading p {
    width: min(680px, 100%);
    margin: 22px auto 0;
    color: var(--eco-muted);
    font-size: 17px;
    line-height: 1.75;
}

.eco-canopus__layout {
    display: grid;
    grid-template-columns: minmax(560px, 1.06fr) minmax(390px, .94fr);
    gap: clamp(34px, 5vw, 72px);
    align-items: center;
}

.eco-map {
    position: relative;
    min-height: 660px;
}

.eco-map__connections {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}

.eco-line {
    fill: none;
    stroke: rgba(72, 132, 201, .22);
    stroke-width: 2.3;
    stroke-linecap: round;
    stroke-dasharray: 8 10;
    transition: stroke .3s ease, stroke-width .3s ease, opacity .3s ease;
}

.eco-line.is-active {
    stroke: url(#ecoLineGradient);
    stroke-width: 4;
    opacity: 1;
}

.eco-core {
    position: absolute;
    z-index: 3;
    top: 330px;
    left: 50%;
    width: 220px;
    height: 220px;
    transform: translate(-50%, -50%);
}

.eco-core__halo {
    position: absolute;
    inset: 12px;
    border-radius: 50%;
    border: 1px solid rgba(63, 155, 241, .22);
    box-shadow:
        0 0 0 22px rgba(63, 155, 241, .045),
        0 0 0 46px rgba(63, 155, 241, .025);
}

.eco-core__star {
    position: absolute;
    top: 12px;
    left: 50%;
    width: 112px;
    height: 112px;
    transform: translateX(-50%);
    filter: drop-shadow(0 18px 22px rgba(24, 105, 210, .26));
    animation: ecoFloat 4.5s ease-in-out infinite;
}

.eco-core__star svg {
    width: 100%;
    height: 100%;
}

.eco-core__brand {
    position: absolute;
    top: 130px;
    left: 50%;
    width: 250px;
    text-align: center;
    transform: translateX(-50%);
}

.eco-core__brand strong {
    display: block;
    color: var(--eco-blue-dark);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: .08em;
}

.eco-core__brand span {
    display: block;
    margin-top: 5px;
    color: var(--eco-muted);
    font-size: 12px;
}

@keyframes ecoFloat {
    0%,100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-6px); }
}

.eco-module {
    position: absolute;
    z-index: 4;
    display: flex;
    min-width: 220px;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--eco-border);
    border-radius: 18px;
    color: var(--eco-text);
    background: var(--eco-card);
    box-shadow: 0 15px 36px rgba(32, 75, 125, .10);
    cursor: pointer;
    text-align: left;
    backdrop-filter: blur(14px);
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.eco-module:hover,
.eco-module:focus-visible,
.eco-module.is-active {
    z-index: 6;
    outline: none;
    border-color: rgba(22, 113, 224, .38);
    transform: translateY(-4px) scale(1.025);
    box-shadow:
        0 22px 52px rgba(23, 91, 174, .18),
        0 0 0 5px rgba(63, 156, 239, .06);
}

.eco-module__icon {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    place-items: center;
    border-radius: 14px;
    color: var(--eco-blue);
    background: #edf5ff;
    font-size: 21px;
    font-weight: 800;
}

.eco-module.is-active .eco-module__icon,
.eco-module:hover .eco-module__icon {
    color: #fff;
    background: linear-gradient(145deg, #4cafef, #075ac8);
}

.eco-module small,
.eco-module strong {
    display: block;
}

.eco-module small {
    margin-bottom: 3px;
    color: #75839a;
    font-size: 11px;
}

.eco-module strong {
    color: var(--eco-text);
    font-size: 15px;
    font-weight: 800;
}

.eco-module--contabilidad {
    top: 96px;
    left: 0;
}

.eco-module--inventarios {
    top: 96px;
    right: 0;
}

.eco-module--facturacion {
    top: 300px;
    left: -10px;
}

.eco-module--compras {
    top: 300px;
    right: -10px;
}

.eco-module--cartera {
    top: 535px;
    left: 50%;
    transform: translateX(-50%);
}

.eco-module--cartera:hover,
.eco-module--cartera:focus-visible,
.eco-module--cartera.is-active {
    transform: translateX(-50%) translateY(-4px) scale(1.025);
}

.eco-orion {
    position: relative;
    overflow: hidden;
    padding: clamp(28px, 3vw, 40px);
    border: 1px solid rgba(91, 74, 210, .18);
    border-radius: 30px;
    background:
        radial-gradient(circle at 88% 8%, rgba(130, 92, 255, .16), transparent 30%),
        linear-gradient(145deg, rgba(255,255,255,.98), rgba(246,244,255,.95));
    box-shadow: 0 32px 80px rgba(38, 70, 128, .15);
}

.eco-orion__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 12px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #875cf4, #2865dd);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
}

.eco-orion h3 {
    margin: 0;
    color: var(--eco-text);
    font-size: clamp(30px, 3vw, 44px);
    line-height: 1.08;
    letter-spacing: -.04em;
}

.eco-orion > p {
    margin: 18px 0 26px;
    color: var(--eco-muted);
    font-size: 15px;
    line-height: 1.75;
}

.eco-orion__benefits {
    display: grid;
    gap: 12px;
}

.eco-orion__benefits article {
    display: flex;
    gap: 13px;
    padding: 14px;
    border: 1px solid rgba(70, 104, 175, .10);
    border-radius: 16px;
    background: rgba(255,255,255,.72);
}

.eco-orion__benefits article > span {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border-radius: 11px;
    color: #6547d3;
    background: #eee9ff;
    font-size: 11px;
    font-weight: 800;
}

.eco-orion__benefits strong,
.eco-orion__benefits small {
    display: block;
}

.eco-orion__benefits strong {
    color: var(--eco-text);
    font-size: 14px;
}

.eco-orion__benefits small {
    margin-top: 3px;
    color: var(--eco-muted);
    font-size: 12px;
    line-height: 1.45;
}

.eco-orion__examples {
    margin-top: 24px;
    padding: 18px;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(145deg, #123f86, #0a2459);
}

.eco-orion__examples > small {
    display: block;
    margin-bottom: 11px;
    color: #a9c9ff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .11em;
}

.eco-orion__examples ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.eco-orion__examples li {
    position: relative;
    padding-left: 17px;
    font-size: 12px;
    line-height: 1.45;
}

.eco-orion__examples li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #7dc5ff;
}

.eco-orion__footer {
    margin-top: 18px;
    color: #4d3aa9;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
}

@media (max-width: 1120px) {
    .eco-canopus__layout {
        grid-template-columns: 1fr;
    }

    .eco-map {
        width: min(820px, 100%);
        margin: 0 auto;
    }

    .eco-orion {
        width: min(760px, 100%);
        margin: 0 auto;
    }
}

@media (max-width: 720px) {
    .eco-canopus {
        padding: 76px 18px 86px;
    }

    .eco-canopus__heading {
        margin-bottom: 38px;
    }

    .eco-map {
        display: grid;
        min-height: auto;
        gap: 12px;
        padding-top: 205px;
    }

    .eco-map__connections {
        display: none;
    }

    .eco-core {
        top: 100px;
        width: 200px;
        height: 190px;
    }

    .eco-core__star {
        width: 98px;
        height: 98px;
    }

    .eco-core__brand {
        top: 116px;
    }

    .eco-module,
    .eco-module--contabilidad,
    .eco-module--inventarios,
    .eco-module--facturacion,
    .eco-module--compras,
    .eco-module--cartera,
    .eco-module--cartera:hover,
    .eco-module--cartera:focus-visible,
    .eco-module--cartera.is-active {
        position: relative;
        top: auto;
        right: auto;
        left: auto;
        width: 100%;
        transform: none;
    }

    .eco-module:hover,
    .eco-module:focus-visible,
    .eco-module.is-active {
        transform: translateY(-2px);
    }

    .eco-orion {
        margin-top: 18px;
        padding: 24px 20px;
        border-radius: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .eco-core__star {
        animation: none;
    }

    .eco-module,
    .eco-line {
        transition: none;
    }
}

/* =========================================================
   CONEXIÓN ACTIVA DE CARTERA
========================================================= */

.eco-map__connections .eco-line[data-eco-line="cartera"] {
    fill: none;
    stroke: rgba(72, 132, 201, 0.22);
    stroke-width: 2.3;
    opacity: 1;
}

.eco-map__connections .eco-line[data-eco-line="cartera"].is-active {
    stroke: #0b67db !important;
    stroke-width: 4px !important;
    opacity: 1 !important;
}