.modal-page {
    overflow-x: hidden;
    background: var(--progreso-white);
    color: var(--progreso-ink);
    font-family: var(--progreso-body-font);
}

.modal-page p,
.modal-page li {
    font-family: var(--progreso-body-font) !important;
    font-size: var(--progreso-body-size) !important;
    font-weight: var(--progreso-body-weight) !important;
    line-height: var(--progreso-body-leading) !important;
    letter-spacing: var(--progreso-body-spacing) !important;
    font-synthesis: none;
}

.modal-container {
    width: min(1320px, calc(100% - 96px));
    margin: 0 auto;
}

.modal-kicker {
    display: block;
    color: var(--progreso-gold-bright);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: .22em;
}

.modal-section {
    --section-divider: var(--progreso-white);
    position: relative;
    padding: 112px 0;
}

.modal-section > .modal-container {
    position: relative;
    z-index: 5;
}

.modal-section::after,
.modal-section::before {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    clip-path: polygon(0 0, 50% 100%, 100% 0);
    pointer-events: none;
}

.modal-section::after {
    z-index: 6;
    bottom: calc(0px - var(--progreso-v-depth));
    height: var(--progreso-v-depth);
    background: var(--progreso-gold);
}

.modal-section::before {
    z-index: 7;
    bottom: calc(var(--progreso-v-line) - var(--progreso-v-depth));
    height: calc(var(--progreso-v-depth) - var(--progreso-v-line) + 2px);
    background: var(--section-divider);
}

.modal-section--white {
    --section-divider: var(--progreso-white);
    background: var(--progreso-white);
}

.modal-section--white .modal-kicker {
    color: var(--progreso-bronze);
}

.modal-section--navy {
    --section-divider: var(--progreso-ink);
    background: var(--progreso-ink);
    color: var(--progreso-white);
}


.modal-hero {
    position: relative;
    z-index: 8;
    min-height: 720px;
    margin-bottom: calc(0px - var(--progreso-v-depth));
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--progreso-v-depth)), 50% 100%, 0 calc(100% - var(--progreso-v-depth)));
    background: var(--progreso-ink) url('/assets/images/hero/orientacion-progreso-claro.webp') center / cover no-repeat;
}

.modal-hero::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 5;
    width: 100%;
    height: var(--progreso-v-depth);
    background: var(--progreso-gold);
    clip-path: polygon(0 0, 50% 100%, 100% 0, 50% calc(100% - var(--progreso-v-line)));
    pointer-events: none;
}

.modal-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(8,13,23,.94) 0%, rgba(8,13,23,.82) 35%, rgba(8,13,23,.24) 62%, rgba(8,13,23,.06) 100%);
}

.modal-hero__content {
    padding: 128px 0 112px;
}

.modal-hero__content > * {
    max-width: 500px;
}

.modal-hero h1 {
    margin: 26px 0 0;
    color: var(--progreso-white);
    max-width: 780px;
    font: 700 clamp(56px, 5.2vw, 84px)/.96 "Segoe UI", Arial, sans-serif;
}

.modal-rule {
    width: 110px;
    height: 4px;
    margin: 30px 0;
    background: var(--progreso-gold);
}

.modal-hero p {
    margin: 0;
    color: rgba(255,255,255,.88);
    font-size: 18px !important;
    line-height: 1.6 !important;
}

.modal-hero__scroll {
    position: absolute;
    left: 50%;
    bottom: 26px;
    z-index: 9;
    width: 32px;
    height: 46px;
    border: 1px solid rgba(255,255,255,.65);
    border-radius: 18px;
    transform: translateX(-50%);
}

.modal-hero__scroll span {
    position: absolute;
    top: 8px;
    left: 50%;
    width: 4px;
    height: 9px;
    border-radius: 4px;
    background: var(--progreso-gold);
    transform: translateX(-50%);
}

.modal-heading {
    max-width: 860px;
    margin: 0 auto 54px;
    text-align: center;
}

.modal-heading h2,
.modal-criteria h2,
.modal-contact h2 {
    margin: 22px 0 0;
    font: 700 clamp(42px, 4.5vw, 68px)/1.02 "Segoe UI", Arial, sans-serif;
    text-wrap: balance;
}

.modal-heading > p {
    max-width: 760px;
    margin: 22px auto 0;
    color: var(--progreso-muted);
}

.modal-heading--light > p {
    color: rgba(255,255,255,.78);
}


.modal-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.modal-option {
    position: relative;
    min-height: 590px;
    padding: 42px;
    border: 1px solid rgba(213,165,91,.55);
    border-top: 6px solid var(--progreso-gold);
    border-radius: 0 0 28px 28px;
    background: rgba(242,222,158,.18);
    box-shadow: 0 18px 38px rgba(8,13,23,.09);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.modal-option:hover {
    transform: translateY(-6px);
    border-color: var(--progreso-gold);
    box-shadow: 0 24px 48px rgba(8,13,23,.14);
}

.modal-option__number {
    position: absolute;
    top: 30px;
    right: 34px;
    color: rgba(20,50,75,.16);
    font: 700 58px/1 "Segoe UI", Arial, sans-serif;
}

.modal-option__icon {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: var(--progreso-navy);
}

.modal-option__icon svg {
    width: 46px;
    height: 46px;
    fill: none;
    stroke: var(--progreso-gold-bright);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.modal-option h3 {
    margin: 34px 0 16px;
    color: var(--progreso-navy);
    font: 700 32px/1.15 "Segoe UI", Arial, sans-serif;
}

.modal-option p {
    margin: 0;
    color: var(--progreso-ink);
}

.modal-option ul {
    margin: 26px 0 34px;
    padding: 0;
    list-style: none;
}

.modal-option li {
    position: relative;
    margin-bottom: 14px;
    padding-left: 22px;
    color: var(--progreso-ink);
}

.modal-option li::before {
    content: '';
    position: absolute;
    top: .68em;
    left: 0;
    width: 7px;
    height: 7px;
    background: var(--progreso-gold);
}

.modal-option > a {
    position: absolute;
    left: 42px;
    bottom: 38px;
    color: var(--progreso-navy);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
}

.modal-option > a span {
    margin-left: 12px;
    color: var(--progreso-bronze);
    font-size: 22px;
}

.modal-comparison {
    overflow: hidden;
    border: 1px solid rgba(213,165,91,.58);
    border-radius: 20px;
    background: rgba(20,50,75,.48);
}

.modal-comparison__row {
    display: grid;
    grid-template-columns: .65fr 1fr 1.15fr;
    border-top: 1px solid rgba(255,255,255,.15);
}

.modal-comparison__row:first-child {
    border-top: 0;
}

.modal-comparison__row > * {
    padding: 23px 26px;
    border-left: 1px solid rgba(255,255,255,.15);
}

.modal-comparison__row > :first-child {
    border-left: 0;
}

.modal-comparison__row strong {
    color: var(--progreso-gold-bright);
    font-size: 16px;
    font-weight: 600;
}

.modal-comparison__row span {
    color: rgba(255,255,255,.82);
}

.modal-comparison__head {
    background: var(--progreso-gold);
}

.modal-comparison__head span {
    color: var(--progreso-ink);
    font-weight: 600;
}

.modal-common__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.modal-common__grid article {
    padding: 34px 30px;
    border: 1px solid rgba(213,165,91,.48);
    border-top: 5px solid var(--progreso-gold);
    border-radius: 0 0 24px 24px;
    background: rgba(242,222,158,.18);
}

.modal-common__grid article > span {
    color: var(--progreso-gold);
    font-size: 34px;
    font-weight: 700;
}

.modal-common__grid h3 {
    margin: 28px 0 12px;
    color: var(--progreso-navy);
    font-size: 24px;
}

.modal-common__grid p {
    margin: 0;
}

.modal-legal__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.modal-legal__grid > a {
    min-height: 250px;
    padding: 30px;
    border: 1px solid rgba(213,165,91,.56);
    border-top: 5px solid var(--progreso-gold);
    border-radius: 0 0 22px 22px;
    background: var(--progreso-navy);
    color: var(--progreso-white);
    transition: transform .2s ease, background .2s ease;
}

.modal-legal__grid > a:hover,
.modal-legal__grid > a:focus-visible {
    transform: translateY(-4px);
    background: var(--progreso-blue-mid);
}

.modal-legal__grid span {
    display: block;
    color: var(--progreso-gold-bright);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.modal-legal__grid strong {
    display: block;
    margin-top: 14px;
    font: 700 25px/1.2 "Segoe UI", Arial, sans-serif;
}

.modal-legal__grid p {
    margin: 18px 0 0;
    color: rgba(255,255,255,.78);
}

.modal-legal__note {
    margin: 28px auto 0;
    max-width: 900px;
    color: rgba(255,255,255,.7);
    text-align: center;
}

.modal-contact {
    position: relative;
    padding: calc(72px + var(--progreso-v-depth)) 0 78px;
    background: var(--progreso-white);
    color: var(--progreso-ink);
}

.modal-contact .modal-kicker {
    color: var(--progreso-bronze);
}

.modal-contact__inner {
    width: min(1040px, calc(100% - 96px));
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.modal-contact h2 {
    max-width: 820px;
    font-size: clamp(36px, 3.2vw, 50px);
    line-height: 1.04;
}

.modal-contact p {
    max-width: 820px;
    margin: 20px 0 0;
    color: var(--progreso-ink);
}

.modal-contact__actions {
    margin-top: 34px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 26px;
}

.modal-button {
    min-height: 56px;
    padding: 0 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--progreso-ink);
    border-radius: 26px;
    background: var(--progreso-ink);
    color: var(--progreso-white);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    transition: background .2s ease, color .2s ease;
}

.modal-button:hover,
.modal-button:focus-visible {
    background: var(--progreso-white);
    color: var(--progreso-ink);
}

.modal-contact__phone {
    margin-top: 0;
    color: var(--progreso-ink);
    font-size: 20px;
    font-weight: 700;
}

[data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .65s ease, transform .65s ease;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

@media (max-width: 1040px) {
    .modal-container {
        width: min(100% - 56px, 920px);
    }

    .modal-section {
        padding: 88px 0;
    }

    .modal-options {
        gap: 20px;
    }

    .modal-option {
        padding: 34px 28px;
    }

    .modal-option > a {
        left: 28px;
    }

    .modal-contact__inner {
        width: min(100% - 56px, 920px);
    }

    .modal-contact__actions {
        align-items: center;
    }
}

@media (max-width: 760px) {
    .modal-container {
        width: calc(100% - 30px);
    }

    .modal-section {
        padding: 72px 0;
    }

    .modal-hero {
        min-height: 700px;
        background-position: 64% center;
    }

    .modal-hero__overlay {
        background: linear-gradient(180deg, rgba(8,13,23,.72) 0%, rgba(8,13,23,.72) 100%);
    }

    .modal-hero__content {
        padding: 175px 0 100px;
        text-align: center;
    }

    .modal-hero__content > * {
        margin-right: auto;
        margin-left: auto;
    }

    .modal-hero h1 {
        font-size: clamp(58px, 18vw, 82px);
    }

    .modal-hero p {
        font-size: 16px !important;
    }

    .modal-heading {
        margin-bottom: 40px;
        text-align: left;
    }

    .modal-heading h2,
    .modal-criteria h2,
    .modal-contact h2 {
        font-size: clamp(38px, 11vw, 52px);
    }

    .modal-options,
    .modal-common__grid,
    .modal-legal__grid {
        grid-template-columns: 1fr;
    }

    .modal-comparison {
        overflow: visible;
        border: 0;
        background: transparent;
    }

    .modal-comparison__head {
        display: none;
    }

    .modal-comparison__row {
        margin-bottom: 18px;
        display: grid;
        grid-template-columns: 1fr;
        border: 1px solid rgba(213,165,91,.55);
        border-radius: 16px;
        background: var(--progreso-navy);
    }

    .modal-comparison__row > * {
        padding: 15px 20px;
        border: 0;
        border-top: 1px solid rgba(255,255,255,.12);
    }

    .modal-comparison__row > :first-child {
        border-top: 0;
    }

    .modal-option {
        min-height: 0;
        padding-bottom: 96px;
    }

    .modal-contact__actions {
        flex-direction: column;
        width: 100%;
    }

    .modal-button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .modal-hero__scroll {
        display: none;
    }

    [data-reveal] {
        opacity: 1;
        transform: none;
    }

    .modal-option {
        transition: none;
    }
}
