/* =========================================================
   NOMISIS NÓMINA
========================================================= */

.payroll-hero {
    position: relative;
    overflow: hidden;

    min-height: 720px;

    display: flex;
    align-items: center;

    padding: 135px 0 85px;

    background:
        radial-gradient(
            circle at 80% 25%,
            rgba(15,132,255,.15),
            transparent 32%
        ),
        linear-gradient(
            145deg,
            #04142e,
            #082c65
        );

    color: white;
}

.payroll-grid-bg {
    position: absolute;
    inset: 0;

    opacity: .06;

    background-image:
        linear-gradient(
            rgba(74,158,255,.75) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(74,158,255,.75) 1px,
            transparent 1px
        );

    background-size: 52px 52px;

    mask-image:
        linear-gradient(
            to bottom,
            black,
            transparent 95%
        );
}

.payroll-glow {
    position: absolute;

    width: 550px;
    height: 550px;

    border-radius: 50%;

    filter: blur(120px);

    pointer-events: none;
}

.payroll-glow-one {
    right: -220px;
    top: 20px;

    background:
        rgba(0,125,255,.24);
}

.payroll-glow-two {
    left: -300px;
    bottom: -320px;

    background:
        rgba(0,192,255,.12);
}

.payroll-hero-content {
    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns: .8fr 1.2fr;

    align-items: center;
    gap: 65px;
}

.payroll-badge {
    width: fit-content;

    display: flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 22px;

    color: #79bdff;

    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.5px;
}

.payroll-badge > span {
    width: 32px;
    height: 32px;

    display: grid;
    place-items: center;

    border-radius: 9px;

    background:
        linear-gradient(
            135deg,
            #1685ff,
            #0064df
        );

    box-shadow:
        0 9px 25px rgba(0,111,255,.3);

    color: white;

    font-size: 13px;
}

.payroll-hero h1 {
    max-width: 520px;

    font-size: clamp(48px, 5vw, 68px);
    line-height: .98;
    letter-spacing: -3px;
}

.payroll-hero h1 strong {
    display: block;

    color: #4eabff;
}

.payroll-hero-copy > p {
    max-width: 520px;

    margin-top: 24px;

    color: #afc3dd;

    font-size: 16px;
    line-height: 1.75;
}

.payroll-hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 12px;

    margin-top: 30px;
}

.payroll-secondary-button {
    min-height: 54px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 24px;

    border:
        1px solid rgba(255,255,255,.17);

    border-radius: 14px;

    background:
        rgba(255,255,255,.045);

    color: #d7e7fa;

    font-size: 13px;
    font-weight: 700;

    transition:
        background .2s ease,
        transform .2s ease;
}

.payroll-secondary-button:hover {
    transform: translateY(-2px);

    background:
        rgba(255,255,255,.09);
}

.payroll-quick-features {
    display: flex;
    flex-wrap: wrap;

    gap: 18px;

    margin-top: 25px;

    color: #829ab8;

    font-size: 10px;
    font-weight: 700;
}

.payroll-quick-features div {
    display: flex;
    align-items: center;
    gap: 6px;
}

.payroll-quick-features span {
    color: #26d69b;
}


/* =========================================================
   HERO SCREEN
========================================================= */

.payroll-hero-visual {
    position: relative;
}

.payroll-screen {
    overflow: hidden;

    border:
        1px solid rgba(255,255,255,.17);

    border-radius: 18px;

    background: #fff;

    box-shadow:
        0 40px 90px rgba(0,5,20,.38);

    transform:
        perspective(1400px)
        rotateY(-2deg);
}

.screen-toolbar {
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 14px;

    border-bottom:
        1px solid #e8edf4;

    background: #f9fbfd;
}

.screen-toolbar > div {
    display: flex;
    gap: 5px;
}

.screen-toolbar > div span {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #d6dee9;
}

.screen-toolbar small {
    color: #8c99aa;

    font-size: 7px;
    font-weight: 900;
    letter-spacing: 1px;
}

.payroll-screen img {
    width: 100%;
}

.payroll-floating {
    position: absolute;

    display: flex;
    align-items: center;
    gap: 9px;

    padding: 11px 14px;

    border:
        1px solid rgba(255,255,255,.12);

    border-radius: 12px;

    background:
        rgba(6,27,61,.94);

    box-shadow:
        0 15px 40px rgba(0,5,20,.28);

    backdrop-filter: blur(12px);
}

.payroll-floating small {
    display: block;

    color: #5f7899;

    font-size: 7px;
    font-weight: 900;
    letter-spacing: 1px;
}

.payroll-floating strong {
    display: block;

    color: #e4effc;

    font-size: 10px;
}

.payroll-floating-left {
    left: -25px;
    bottom: 35px;
}

.payroll-floating-left > span {
    width: 27px;
    height: 27px;

    display: grid;
    place-items: center;

    border-radius: 8px;

    background:
        rgba(31,205,145,.12);

    color: #25d69b;

    font-weight: 900;
}

.payroll-floating-right {
    right: -20px;
    top: 50px;
}

.live-dot {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: #22d69b;

    box-shadow:
        0 0 0 5px rgba(34,214,155,.08),
        0 0 12px rgba(34,214,155,.4);
}


/* =========================================================
   TRUST BAR
========================================================= */

.payroll-trust {
    padding: 23px 0;

    border-bottom:
        1px solid #e8edf4;

    background: white;
}

.payroll-trust-content {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}

.payroll-trust-content > span {
    color: #8190a4;

    font-size: 11px;
}

.payroll-trust-content > div {
    display: flex;
    flex-wrap: wrap;

    gap: 25px;
}

.payroll-trust-content strong {
    color: #29415f;

    font-size: 10px;
}


/* =========================================================
   FEATURE GRID
========================================================= */

.payroll-features-section {
    background: #fff;
}

.payroll-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: 15px;
}

.payroll-feature-card {
    position: relative;

    min-height: 245px;

    padding: 25px;

    border:
        1px solid #e0e7f0;

    border-radius: 19px;

    background:
        linear-gradient(
            180deg,
            #fff,
            #f9fbfe
        );

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.payroll-feature-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 20px 50px rgba(20,48,88,.09);
}

.payroll-feature-number {
    position: absolute;

    top: 20px;
    right: 22px;

    color: #b8c9dc;

    font-size: 9px;
    font-weight: 900;
}

.payroll-feature-icon {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    margin-bottom: 35px;

    border-radius: 12px;

    background: #eaf4ff;

    color: #0877f9;

    font-size: 13px;
    font-weight: 900;
}

.payroll-feature-card h3 {
    margin-bottom: 8px;

    color: #12315c;

    font-size: 18px;
}

.payroll-feature-card p {
    color: #74849a;

    font-size: 12px;
    line-height: 1.65;
}


/* =========================================================
   SHOWCASE GENERAL
========================================================= */

.payroll-showcase,
.payroll-detail-section,
.payroll-process-section,
.payroll-receipt-section {
    padding: 105px 0;
}

.payroll-showcase {
    background: #f5f9fe;
}

.payroll-showcase-grid,
.payroll-detail-grid,
.payroll-process-grid,
.payroll-receipt-grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;

    align-items: center;

    gap: 65px;
}

.showcase-copy {
    max-width: 470px;
}

.showcase-number {
    display: block;

    margin-bottom: 12px;

    color: #0877f9;

    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1.5px;
}

.showcase-copy h2,
.worker-heading h2,
.ecosystem-box h2 {
    color: #0b2854;

    font-size: clamp(34px, 4vw, 48px);
    line-height: 1.05;
    letter-spacing: -2px;
}

.showcase-copy h2 strong,
.worker-heading h2 strong,
.ecosystem-box h2 strong {
    display: block;

    color: #0877f9;
}

.showcase-copy > p {
    margin-top: 18px;

    color: #718199;

    font-size: 14px;
    line-height: 1.75;
}

.showcase-list {
    display: flex;
    flex-direction: column;

    gap: 10px;

    margin-top: 25px;

    padding: 0;

    list-style: none;
}

.showcase-list li {
    display: flex;
    align-items: center;

    gap: 9px;

    color: #4e627e;

    font-size: 12px;
    font-weight: 600;
}

.showcase-list li span {
    width: 20px;
    height: 20px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: #e8f8f2;

    color: #17ae79;

    font-size: 10px;
    font-weight: 900;
}


/* =========================================================
   REAL SCREEN
========================================================= */

.real-screen-card {
    overflow: hidden;

    border:
        1px solid #dce5ef;

    border-radius: 18px;

    background: white;

    box-shadow:
        0 25px 65px rgba(17,43,81,.14);
}

.real-screen-label {
    height: 38px;

    display: flex;
    align-items: center;
    gap: 7px;

    padding: 0 14px;

    border-bottom:
        1px solid #e9eef4;

    color: #71829a;

    font-size: 7px;
    font-weight: 900;
    letter-spacing: 1px;
}

.real-screen-label span {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: #20cd91;

    box-shadow:
        0 0 0 4px rgba(32,205,145,.08);
}

.real-screen-card img {
    display: block;

    width: 100%;
}


/* =========================================================
   DETAIL
========================================================= */

.payroll-detail-section {
    background: white;
}

.payroll-detail-grid {
    grid-template-columns: 1.2fr .8fr;
}

.calculation-tags {
    display: flex;
    flex-wrap: wrap;

    gap: 7px;

    margin-top: 24px;
}

.calculation-tags span {
    padding: 7px 10px;

    border:
        1px solid #dce7f4;

    border-radius: 8px;

    background: #f5f9ff;

    color: #4b6688;

    font-size: 9px;
    font-weight: 800;
}

.detail-callout {
    display: flex;
    align-items: flex-start;

    gap: 11px;

    margin-top: 25px;
    padding: 14px;

    border-left:
        3px solid #0877f9;

    border-radius: 0 10px 10px 0;

    background: #f3f8ff;
}

.detail-callout > span {
    width: 22px;
    height: 22px;

    flex: 0 0 22px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: #0877f9;

    color: white;

    font-size: 10px;
    font-weight: 900;
}

.detail-callout p {
    color: #62758e;

    font-size: 10px;
    line-height: 1.6;
}


/* =========================================================
   WORKER
========================================================= */

.payroll-worker-section {
    padding: 105px 0;

    background:
        linear-gradient(
            145deg,
            #061630,
            #082b61
        );

    color: white;
}

.worker-heading {
    display: grid;
    grid-template-columns: 1fr 1fr;

    align-items: end;

    gap: 70px;

    margin-bottom: 45px;
}

.worker-heading h2 {
    color: white;
}

.worker-heading h2 strong {
    color: #4eacff;
}

.worker-heading > p {
    max-width: 470px;

    color: #a9bdd7;

    font-size: 14px;
    line-height: 1.7;
}

.worker-screen {
    overflow: hidden;

    border:
        1px solid rgba(255,255,255,.14);

    border-radius: 20px;

    background: white;

    box-shadow:
        0 35px 80px rgba(0,8,25,.30);
}

.worker-screen img {
    width: 100%;
}

.worker-categories {
    display: grid;
    grid-template-columns: repeat(6, 1fr);

    gap: 8px;

    margin-top: 18px;
}

.worker-categories > div {
    padding: 12px;

    border:
        1px solid rgba(255,255,255,.10);

    border-radius: 10px;

    background:
        rgba(255,255,255,.045);
}

.worker-categories span {
    display: block;

    margin-bottom: 3px;

    color: #4eacff;

    font-size: 7px;
    font-weight: 900;
}

.worker-categories strong {
    color: #cbd9eb;

    font-size: 9px;
}


/* =========================================================
   PROCESOS
========================================================= */

.payroll-process-section {
    background: #f6f9fd;
}

.process-list {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 8px;

    margin-top: 26px;
}

.process-list > div {
    display: flex;
    align-items: center;

    gap: 9px;

    min-height: 42px;

    padding: 0 11px;

    border:
        1px solid #e0e7f0;

    border-radius: 9px;

    background: white;

    color: #52667f;

    font-size: 10px;
    font-weight: 700;
}

.process-list span {
    color: #1685ff;

    font-size: 7px;
    font-weight: 900;
}


/* =========================================================
   RECIBOS
========================================================= */

.payroll-receipt-section {
    background: white;
}

.payroll-receipt-grid {
    grid-template-columns: 1.2fr .8fr;
}

.receipt-visual {
    position: relative;
}

.receipt-screen {
    overflow: hidden;

    border:
        1px solid #dce5ef;

    border-radius: 18px;

    background: white;

    box-shadow:
        0 25px 65px rgba(17,43,81,.15);
}

.receipt-screen img {
    width: 100%;
}

.receipt-floating {
    position: absolute;

    right: -20px;
    bottom: 25px;

    display: flex;
    align-items: center;

    gap: 9px;

    padding: 11px 14px;

    border:
        1px solid #dce6f1;

    border-radius: 11px;

    background: rgba(255,255,255,.96);

    box-shadow:
        0 14px 35px rgba(17,43,81,.16);
}

.receipt-floating > span {
    width: 27px;
    height: 27px;

    display: grid;
    place-items: center;

    border-radius: 8px;

    background: #e9f9f3;

    color: #17ae79;

    font-size: 11px;
    font-weight: 900;
}

.receipt-floating small {
    display: block;

    color: #91a0b3;

    font-size: 7px;
    font-weight: 900;
}

.receipt-floating strong {
    display: block;

    color: #294463;

    font-size: 10px;
}


/* =========================================================
   ECOSISTEMA
========================================================= */

.payroll-ecosystem {
    padding: 80px 0;

    background: #f4f8fd;
}

.ecosystem-box {
    display: grid;
    grid-template-columns: 1fr 1fr;

    align-items: center;

    gap: 70px;

    padding: 50px;

    border:
        1px solid #dfe8f2;

    border-radius: 25px;

    background: white;
}

.ecosystem-box p {
    max-width: 520px;

    margin-top: 17px;

    color: #718199;

    font-size: 13px;
    line-height: 1.7;
}

.ecosystem-modules {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 10px;
}

.ecosystem-module {
    display: flex;
    align-items: center;

    gap: 11px;

    min-height: 65px;

    padding: 12px;

    border:
        1px solid #e1e8f1;

    border-radius: 12px;

    background: #fbfcfe;

    color: #5c6f88;

    font-size: 11px;
}

.ecosystem-module > span {
    width: 34px;
    height: 34px;

    display: grid;
    place-items: center;

    border-radius: 9px;

    background: #edf2f8;

    color: #60738c;

    font-weight: 900;
}

.ecosystem-module.active {
    border-color:
        rgba(8,119,249,.30);

    background: #f1f7ff;

    color: #173e70;
}

.ecosystem-module.active > span {
    background: #0877f9;

    color: white;
}


/* =========================================================
   FINAL
========================================================= */

.payroll-final {
    padding: 85px 0;

    background: #f4f8fd;
}

.payroll-final-box {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 50px;

    padding: 50px;

    border-radius: 26px;

    background:
        linear-gradient(
            135deg,
            #0877f9,
            #0759ce
        );

    box-shadow:
        0 25px 65px rgba(8,104,225,.20);

    color: white;
}

.payroll-final-box > div:first-child > span {
    display: block;

    margin-bottom: 9px;

    color: #c0e0ff;

    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1.4px;
}

.payroll-final h2 {
    max-width: 650px;

    font-size: clamp(30px, 4vw, 43px);
    line-height: 1.08;
    letter-spacing: -1.5px;
}

.payroll-final p {
    max-width: 580px;

    margin-top: 13px;

    color: #d8eaff;

    font-size: 13px;
}

.payroll-final-actions {
    min-width: 215px;

    display: flex;
    flex-direction: column;

    gap: 9px;
}


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

@media (max-width: 1050px) {

    .payroll-hero-content,
    .payroll-showcase-grid,
    .payroll-detail-grid,
    .payroll-process-grid,
    .payroll-receipt-grid {
        grid-template-columns: 1fr;

        gap: 45px;
    }

    .payroll-hero-copy {
        max-width: 700px;

        text-align: center;

        margin-inline: auto;
    }

    .payroll-badge {
        margin-inline: auto;
    }

    .payroll-hero-copy > p {
        margin-inline: auto;
    }

    .payroll-hero-actions,
    .payroll-quick-features {
        justify-content: center;
    }

    .payroll-feature-grid {
        grid-template-columns: 1fr 1fr;
    }

    .showcase-copy {
        max-width: 650px;
    }

    .worker-categories {
        grid-template-columns: repeat(3, 1fr);
    }

    .ecosystem-box {
        grid-template-columns: 1fr;
    }

    .payroll-final-box {
        flex-direction: column;
        align-items: flex-start;
    }

    .payroll-final-actions {
        width: 100%;

        flex-direction: row;
    }

    .payroll-final-actions .btn {
        flex: 1;
    }

}


@media (max-width: 720px) {

    .payroll-hero {
        min-height: auto;

        padding: 115px 0 70px;
    }

    .payroll-hero h1 {
        font-size: 46px;
    }

    .payroll-floating {
        display: none;
    }

    .payroll-trust-content {
        flex-direction: column;

        text-align: center;
    }

    .payroll-trust-content > div {
        justify-content: center;
    }

    .payroll-feature-grid {
        grid-template-columns: 1fr;
    }

    .payroll-showcase,
    .payroll-detail-section,
    .payroll-worker-section,
    .payroll-process-section,
    .payroll-receipt-section {
        padding: 75px 0;
    }

    .worker-heading {
        grid-template-columns: 1fr;

        gap: 20px;
    }

    .worker-categories {
        grid-template-columns: 1fr 1fr;
    }

    .process-list {
        grid-template-columns: 1fr;
    }

    .ecosystem-box {
        padding: 30px 22px;
    }

    .ecosystem-modules {
        grid-template-columns: 1fr;
    }

    .payroll-final-box {
        padding: 35px 25px;
    }

    .payroll-final-actions {
        flex-direction: column;
    }

}

/* Responsive safety: evita desbordamiento en páginas internas */
@media (max-width: 900px) {
    main, section, [class*="-grid"], [class*="-content"], [class*="-wrapper"], [class*="-panel"] { min-width: 0; }
}
@media (max-width: 520px) {
    [class*="-card"], [class*="-box"] { min-width: 0; }
}
