/* NEXUS - SOFTWARE PARA FRANQUICIAS */
/* ============================================================== */
.nexus {
    --nx-dark: #1b1b1c;
    /* Text palette defined by the client */
    --nx-black: #131313;
    --nx-gray: #212529;
    --nx-teal: #01c7b1;
    --nx-pink: #ff2469;
    overflow-x: clip;
}

/* main.css .tc-verde/.tc-rosa use these vars with !important: re-scope them to this page */
.nexus {
    --my-verde: var(--nx-teal);
    --my-rosa: var(--nx-pink);
}

#ar-nexus .preguntas-frecuentes .h2title {
    color: var(--nx-black, #131313);
}

.nexus-title {
    font-size: 2rem;
    line-height: 1.25;
    letter-spacing: -.02em;
}

.nexus-btn-verde,
.nexus-btn-verde:focus {
    background-color: var(--nx-teal);
    border-color: var(--nx-teal);
    color: #fff;
    border-radius: 2rem;
    padding: .45rem 3.5rem;
    font-size: 1.25rem;
}

    .nexus-btn-verde:hover {
        background-color: var(--my-verde-o);
        border-color: var(--my-verde-o);
        color: #fff;
    }

.nexus-hero .nexus-btn-verde {
    font-size: 1.05rem;
    padding: .4rem 3rem;
}

/* Hero */
.nexus-hero {
    margin-top: 62px;
    padding: 6rem 0 7rem;
    color: #fff;
    background: radial-gradient(ellipse 55% 75% at 50% 45%, var(--nx-teal) 0%, #0a7a6c 38%, #173d38 62%, var(--nx-dark) 82%);
}

.nexus-hero__logo {
    width: 100%;
    max-width: 300px;
    height: auto;
    margin-bottom: 2rem;
}

.nexus-hero h1 {
    font-size: 2.4rem;
    line-height: 1.15;
    letter-spacing: -.02em;
    margin-bottom: .75rem;
}

.nexus-hero__claim {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.nexus-hero__desc {
    font-size: 1rem;
    line-height: 1.5;
    max-width: 420px;
    margin-bottom: 1.25rem;
}

.nexus-hero__img {
    margin-top: 3rem;
}

@media (min-width: 992px) {
    .nexus-hero__img { margin-top: 0; }
}

/* Desktop hero layout: a narrower block than the site container, a text column as wide
   as the text and the mockup filling the rest. The webp has a wide empty area on the
   left and ~13% transparent shadow on the right ("Ventas totales" card at 23% of its
   width, ranking card edge at 87%), so it is scaled and shifted until the ranking card
   lands on the column edge (equal side margins) and the first card sits ~50px from the text. */
@media (min-width: 1200px) {
    .nexus-hero > .container-md {
        max-width: 1050px;
    }

    .nexus-hero .row {
        flex-wrap: nowrap;
    }

    .nexus-hero .nexus-hero__text {
        flex: 0 0 444px;
        width: 444px;
    }

    .nexus-hero .nexus-hero__text + [class*="col-"] {
        flex: 1 1 0;
        width: auto;
        min-width: 0;
    }

    /* -30.5% + 150% * .87 = 100% of the column */
    .nexus-hero__img {
        display: block;
        width: 150%;
        max-width: none;
        margin-left: -30.5%;
        pointer-events: none;
    }
}

/* Intro */
.nexus-intro {
    position: relative;
    padding: 5rem 0 7rem;
    color: #fff;
    background: radial-gradient(ellipse 45% 60% at 50% 35%, #a3245d 0%, #5b1e3a 40%, #2a1b22 65%, var(--nx-dark) 85%);
}

    .nexus-intro::before {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 52%;
        height: 55%;
        background: var(--nx-teal);
        clip-path: polygon(0 18%, 100% 0, 100% 72%, 0 100%);
        border-radius: 0 3rem 0 0;
    }

    .nexus-intro .container-md {
        position: relative;
    }

.nexus-intro__desc {
    font-size: 1rem;
    line-height: 1.5;
    max-width: 1000px;
    margin: 1rem auto 4rem;
}

.nexus-intro__device {
    position: relative;
    max-width: 640px;
}

.nexus-kpi.nexus-intro__kpi {
    position: absolute;
    right: -1.5rem;
    bottom: -3.5rem;
    width: 230px;
}

.nexus-checks {
    list-style: none;
    padding: 0;
    margin: 5rem 0 0;
}

    .nexus-checks li {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        display: flex;
        align-items: center;
        gap: .75rem;
    }

    .nexus-checks i {
        font-size: 1.4rem;
    }

@media (min-width: 992px) {
    .nexus-checks { margin: 0 0 4rem 3rem; }
}

/* Shared dashboard widgets (sample data) */
.nexus-kpi {
    position: relative;
    display: block;
    background: #fff;
    color: #1e293b;
    border-radius: 8px;
    padding: .9rem 1rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
    text-align: left;
}

.nexus-kpi__label {
    display: block;
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .02em;
    color: #64748b;
    padding-right: 2.5rem;
}

.nexus-kpi__icon {
    position: absolute;
    top: .8rem;
    right: .8rem;
    width: 34px;
    height: 34px;
    line-height: 34px;
    text-align: center;
    border-radius: 6px;
    background: #f1f5f9;
    color: #475569;
    font-size: .9rem;
}

.nexus-kpi__value {
    display: block;
    font-family: 'WorkSans-SemiBold';
    font-size: 1.45rem;
    margin-top: 1.1rem;
}

.nexus-kpi__trend {
    display: block;
    font-size: .75rem;
    color: #10a37f;
    margin-top: .5rem;
}

/* Vision */
.nexus-vision {
    position: relative;
    padding: 3.5rem 0 5rem;
}

    .nexus-vision::before {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        bottom: 3rem;
        left: 21%;
        background: linear-gradient(180deg, #fff5f8 0%, #ffc2d5 45%, var(--nx-pink) 100%);
    }

.nexus-vision__wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.nexus-vision__card {
    color: #fff;
    border-radius: 2.25rem;
    padding: 3.5rem 3.5rem 3rem;
    background: radial-gradient(ellipse 40% 55% at 60% 45%, #0cae98 0%, #0e5f55 40%, var(--nx-dark) 80%);
}

    .nexus-vision__card .nexus-title {
        margin-bottom: 2rem;
    }

.nexus-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .nexus-features li {
        margin-bottom: 1.25rem;
    }

    .nexus-features h3 {
        color: var(--nx-teal);
        font-size: 1rem;
        margin: 0;
    }

    .nexus-features h3 i {
        font-size: .95rem;
    }

    .nexus-features p {
        font-size: 1rem;
        margin: 0;
    }

.nexus-dash {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    grid-template-areas:
        "ticket trans"
        "prod sinv"
        "rank rank";
}

.nexus-dash__ticket { grid-area: ticket; }
.nexus-dash__trans  { grid-area: trans; }
.nexus-dash__prod   { grid-area: prod; }
.nexus-dash__sinv   { grid-area: sinv; }
.nexus-dash__rank   { grid-area: rank; }

@media (min-width: 1200px) {
    .nexus-vision__wrap {
        flex-direction: row;
        align-items: flex-start;
        gap: 0;
    }

    .nexus-vision__card {
        flex: 0 0 68%;
        padding-right: 11rem;
    }

    .nexus-dash {
        flex: 0 0 45%;
        margin: 4.5rem 0 0 -13%;
        grid-template-columns: 1fr .75fr;
        grid-template-areas:
            "ticket trans"
            "rank prod"
            "rank sinv"
            "rank .";
        align-items: start;
    }

    .nexus-dash__ticket { align-self: stretch; }
}

.nexus-ranking {
    background: #fff;
    color: #1e293b;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
}

.nexus-ranking__title {
    font-family: 'WorkSans-SemiBold';
    font-size: .95rem;
    margin: 0;
}

.nexus-ranking__sub {
    font-size: .72rem;
    color: #64748b;
    margin: .2rem 0 .8rem;
}

.nexus-ranking__row {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .45rem 0;
}

.nexus-ranking__pos {
    flex: 0 0 24px;
    height: 24px;
    line-height: 24px;
    border-radius: 50%;
    text-align: center;
    font-size: .7rem;
    background: #eef2f7;
    color: #64748b;
}

    .nexus-ranking__pos.gold   { background: #fdf0c8; color: #b7791f; }
    .nexus-ranking__pos.silver { background: #e2e8f0; color: #475569; }
    .nexus-ranking__pos.bronze { background: #fde2cc; color: #c05621; }

.nexus-ranking__info {
    flex: 1;
    min-width: 0;
}

.nexus-ranking__name {
    display: block;
    font-size: .8rem;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nexus-ranking__meta {
    display: block;
    font-size: .62rem;
    color: #94a3b8;
}

.nexus-ranking__bar {
    display: block;
    height: 5px;
    border-radius: 3px;
    background: #eef2f7;
    margin-top: .3rem;
}

    .nexus-ranking__bar span {
        display: block;
        height: 100%;
        border-radius: 3px;
        background: #13a38f;
    }

.nexus-ranking__nums {
    text-align: right;
    white-space: nowrap;
}

.nexus-ranking__amount {
    display: block;
    font-family: 'WorkSans-SemiBold';
    font-size: .72rem;
}

.nexus-ranking__trend {
    display: block;
    font-size: .62rem;
    color: #10a37f;
}

    .nexus-ranking__trend.down { color: #e53e3e; }

/* Crecimiento */
.nexus-crecimiento {
    padding: 4rem 0 5rem;
}

.nexus-crecimiento__desc {
    font-size: 1rem;
    line-height: 1.5;
    max-width: 800px;
    margin: 1rem auto 3.5rem;
}

.nexus-crecimiento__img {
    border-radius: 2rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
}

.nexus-item {
    margin-bottom: 1.75rem;
}

    .nexus-item img {
        width: 62px;
        height: 62px;
        margin-bottom: 1.25rem;
    }

    .nexus-item h3 {
        font-size: 1rem;
        margin-bottom: .4rem;
    }

    .nexus-item p {
        font-size: 1rem;
        line-height: 1.25;
        margin: 0;
    }

.nexus-item__gris {
    color: var(--nx-gray);
}

.nexus-crecimiento .nexus-title {
    color: var(--nx-black);
}

/* Contacto */
.nexus-contacto {
    position: relative;
    padding: 4rem 0 6rem;
    scroll-margin-top: 62px;
}

    .nexus-contacto::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        bottom: 5rem;
        width: 56%;
        background: linear-gradient(90deg, var(--nx-teal) 0%, #8fc6bd 40%, #fff 100%);
    }

    .nexus-contacto::after {
        content: "";
        position: absolute;
        right: 0;
        bottom: 0;
        width: 50%;
        height: 60%;
        background: var(--nx-dark);
        clip-path: polygon(0 0, 100% 25%, 100% 100%, 5% 70%);
        border-radius: 3rem 0 0 0;
    }

.nexus-contacto__wrap {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.nexus-contacto__info {
    color: #fff;
    background: var(--nx-dark);
    border: 2px solid var(--nx-pink);
    border-radius: 1.75rem;
    padding: 2.5rem 2.5rem 2rem;
}

    .nexus-contacto__info p {
        font-size: 1rem;
        line-height: 1.3;
        text-align: justify;
        margin: 1rem 0 2rem;
    }

.nexus-contacto__badges {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 2.5rem;
}

    .nexus-contacto__badges li {
        font-family: 'WorkSans-Bold';
        font-size: .72rem;
        text-transform: uppercase;
        color: var(--nx-teal);
    }

.nexus-contacto__form {
    background: #fff;
    border-radius: 2.25rem;
    padding: 2.5rem 2rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .3);
}

@media (min-width: 992px) {
    .nexus-contacto__wrap {
        flex-direction: row;
        align-items: center;
        gap: 0;
    }

    .nexus-contacto__info {
        flex: 0 0 44%;
        margin-right: -3rem;
        padding: 3.5rem 5.5rem 3rem 5rem;
    }

    .nexus-contacto__form {
        flex: 1;
        padding: 3.5rem 4.5rem 4rem;
    }
}

/* HubSpot form (embed with css:'' and the static preview share this markup) */
.nexus-contacto__form .hs-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem 4rem;
    align-items: start;
}

    .nexus-contacto__form .hs-form fieldset {
        display: contents;
    }

    .nexus-contacto__form .hs-form-field,
    .nexus-contacto__form .hs-fieldtype-text,
    .nexus-contacto__form .hs-mobilephone {
        margin: 0;
    }

    .nexus-contacto__form .hs-form label {
        font-size: 1rem;
        margin-bottom: .6rem;
    }

    .nexus-contacto__form .hs-form-required {
        color: var(--nx-pink);
    }

    .nexus-contacto__form .hs-input {
        height: 48px;
        border: 1px solid #8a8a8a !important;
        border-radius: .6rem;
        box-shadow: none;
    }

    .nexus-contacto__form select.hs-input {
        appearance: none;
        background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23555' stroke-width='2.5' stroke-linecap='round' d='M3 6l5 5 5-5'/%3E%3C/svg%3E") no-repeat right .8rem center / 18px;
        padding-right: 2.5rem;
    }

    .nexus-contacto__form .hs-button {
        -webkit-appearance: none;
        appearance: none;
        display: block;
        width: 100%;
        max-width: 260px;
        margin: 0 auto;
        min-height: 0;
        padding: .45rem 1.5rem;
        border: 0;
        border-radius: 2rem;
        font-family: 'WorkSans-Regular';
        font-weight: 400;
        font-size: 1.15rem;
        line-height: 1.4;
        color: #fff !important;
        background-color: var(--nx-pink) !important;
        box-shadow: none;
        cursor: pointer;
        transition: background-color .2s;
    }

    .nexus-contacto__form .hs-button:hover,
    .nexus-contacto__form .hs-button:focus-visible {
        background-color: var(--my-rosa-o) !important;
    }

    .nexus-contacto__form .hs-submit,
    .nexus-contacto__form .legal-consent-container,
    .nexus-contacto__form .hs_error_rollup,
    .nexus-contacto__form .submitted-message {
        grid-column: 1 / -1;
    }

    .nexus-contacto__form .hs-error-msgs {
        margin: .3rem 0 0;
    }

    /* Field description (Bootstrap styles <legend> as a large heading) */
    .nexus-contacto__form .hs-field-desc {
        float: none;
        width: auto;
        font-size: .8rem;
        line-height: 1.3;
        color: var(--nx-gray);
        margin: -.3rem 0 .6rem;
    }

    .nexus-contacto__form .hs-field-desc em {
        font-style: normal;
    }

    .nexus-contacto__form .inputs-list {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: .5rem;
    }

    .nexus-contacto__form .hs-form-checkbox-display,
    .nexus-contacto__form .hs-form-radio-display {
        display: flex;
        align-items: center;
        gap: .6rem;
        margin: 0;
        font-size: 1rem;
        cursor: pointer;
    }

    .nexus-contacto__form input[type="checkbox"].hs-input,
    .nexus-contacto__form input[type="radio"].hs-input {
        width: 18px;
        height: 18px;
        flex: 0 0 18px;
        padding: 0;
        border: 0 !important;
        accent-color: var(--nx-pink);
    }

    .nexus-contacto__form textarea.hs-input {
        height: auto;
        min-height: 110px;
        resize: vertical;
    }

@media (min-width: 768px) {
    .nexus-contacto__form .hs-form {
        grid-template-columns: 1fr 1fr;
    }

    .nexus-contacto__form .hs-submit {
        padding-top: .5rem;
    }
}

/* Clientes */
.nexus-clientes {
    padding-top: 3rem;
}

.nexus-clientes__title {
    display: inline-block;
    font-family: 'WorkSans-Regular' !important;
    font-size: 1.3rem;
    color: #fff;
    border-radius: .6rem;
    padding: .6rem 3.5rem;
    margin: 0;
    background: radial-gradient(ellipse 35% 120% at 50% 20%, #c8306f 0%, #6e2244 50%, var(--nx-dark) 100%);
}

    .nexus-clientes__title strong {
        font-family: 'WorkSans-Bold';
        font-weight: normal;
    }

.nexus-clientes__logos {
    padding: 3.5rem 0 5rem;
    background: linear-gradient(180deg, #fff 0%, #f0f0f0 100%);
}

    .nexus-clientes__logos img {
        display: block;
        width: auto;
        max-width: 100%;
        height: 90px;
        object-fit: contain;
        margin: 1rem auto;
    }

/* Desktop: each block fills at least one screen (below the fixed navbar), content centered */
@media (min-width: 992px) {
    .nexus-hero,
    .nexus-intro,
    .nexus-vision,
    .nexus-crecimiento,
    .nexus-contacto {
        min-height: calc(100vh - 62px);
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .nexus-hero > .container-md,
    .nexus-intro > .container-md,
    .nexus-vision > .container-md,
    .nexus-crecimiento > .container-md,
    .nexus-contacto > .container-md {
        width: 100%;
    }
}

/* Responsive */
@media (max-width: 991px) {
    .nexus-title { font-size: 2rem; }
    .nexus-hero { padding: 4rem 0; }
    /* main.css forces section padding with !important below 755px */
    .nexus .nexus-hero { padding-top: 6.5rem !important; }
    .nexus-hero__text { text-align: center; }
    .nexus-hero__logo, .nexus-hero__desc { margin-left: auto; margin-right: auto; }
    .nexus-intro__device { margin: 0 auto; }
    .nexus-intro::before { height: 35%; width: 100%; }
    .nexus-vision::before { left: 30%; }
    .nexus-item { text-align: center; }
}

@media (max-width: 575px) {
    /* main.css forces h1-h3 sizes with !important on mobile */
    .nexus .nexus-title { font-size: 1.8rem !important; line-height: 1.15 !important; }
    /* Scales down on very narrow phones so it never gets wider than the logo (85% width) */
    .nexus .nexus-hero h1 { font-size: min(2rem, 9.5vw) !important; line-height: 1.1 !important; }
    .nexus .nexus-features h3,
    .nexus .nexus-item h3 { font-size: 1rem !important; line-height: 1.3 !important; }
    .nexus .nexus-clientes__title { font-size: 1.2rem !important; line-height: 1.3 !important; }
    .nexus-intro::before { height: 290px; width: 100%; }
    .nexus-checks { margin-top: 5.5rem; }
    .nexus-checks li { font-size: .9rem; }
    .nexus-hero__logo { width: 85%; }
    .nexus .nexus-hero__claim { font-size: 1.125rem !important; margin-bottom: 1.5rem; }
    .nexus-hero__desc, .nexus-intro__desc, .nexus-crecimiento__desc,
    .nexus-item p, .nexus-contacto__info p { font-size: .9rem; }
    .nexus-btn-verde { padding: .45rem 2.5rem; }
    .nexus-kpi.nexus-intro__kpi { right: 0; bottom: -4rem; width: 190px; }
    .nexus-vision__card { padding: 2.5rem 1.5rem 2rem; border-radius: 1.5rem; }
    .nexus-features p { font-size: .9rem; }
    .nexus-dash { gap: .6rem; }
    .nexus-kpi__value { font-size: 1.15rem; }
    .nexus-contacto__info, .nexus-contacto__form { padding: 2rem 1.5rem; border-radius: 1.5rem; }
    .nexus-clientes__title { padding: .6rem 1.5rem; }
    .nexus-clientes__logos img { height: 64px; }
}
