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

.tariff-page p,
.tariff-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;
}

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

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

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

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

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

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

.tariff-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);
}

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

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

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

/* La última sección enlaza directamente con la única V del footer. */
.tariff-legal::before,
.tariff-legal::after {
    display: none;
}

.tariff-legal {
    padding-bottom: 82px;
}

.tariff-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/tarifario-oficina-conciliacion-progreso.webp') center / cover no-repeat;
}

.tariff-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;
}

.tariff-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(8,13,23,.96) 0%, rgba(8,13,23,.86) 38%, rgba(8,13,23,.38) 65%, rgba(8,13,23,.18) 100%);
}

.tariff-hero__content {
    padding: 135px 0 120px;
}

.tariff-hero__content > * {
    max-width: 650px;
}

.tariff-hero h1 {
    margin: 24px 0 0;
    color: var(--progreso-white);
    font: 700 clamp(58px, 6vw, 92px)/.94 Georgia, "Times New Roman", serif;
    text-wrap: balance;
}

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

.tariff-hero p {
    margin: 0;
    max-width: 620px;
    color: rgba(255,255,255,.88);
    font-size: 18px !important;
    line-height: 1.55 !important;
}

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

.tariff-hero .tariff-button {
    margin-top: 32px;
}

.tariff-button--gold {
    background: var(--progreso-gold);
    color: var(--progreso-ink);
}

.tariff-button:hover,
.tariff-button:focus-visible {
    transform: translateY(-3px);
    background: var(--progreso-white);
    color: var(--progreso-ink);
}

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

.tariff-heading h2,
.tariff-contact h2 {
    margin: 20px 0 0;
    font: 700 clamp(44px, 4.8vw, 70px)/1 Georgia, "Times New Roman", serif;
    text-wrap: balance;
}

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

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

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

.tariff-steps article,
.tariff-checks 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);
}

.tariff-steps article > span,
.tariff-checks article > span {
    color: var(--progreso-gold);
    font: 700 36px/1 Georgia, "Times New Roman", serif;
}

.tariff-steps h3,
.tariff-checks h3 {
    margin: 28px 0 12px;
    color: var(--progreso-navy);
    font-size: 24px;
    line-height: 1.15;
}

.tariff-steps p,
.tariff-checks p {
    margin: 0;
}

.tariff-notice {
    max-width: 1040px;
    margin: -8px auto 42px;
    padding: 24px 28px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
    align-items: center;
    border-left: 5px solid var(--progreso-gold);
    background: rgba(255,255,255,.07);
}

.tariff-notice > span {
    color: var(--progreso-gold-bright);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
}

.tariff-notice p {
    margin: 0;
    color: rgba(255,255,255,.78);
}

.tariff-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.tariff-card {
    position: relative;
    min-height: 500px;
    padding: 34px 28px 94px;
    border: 1px solid rgba(213,165,91,.52);
    border-top: 5px solid var(--progreso-gold);
    border-radius: 0 0 22px 22px;
    background: var(--progreso-navy);
    box-shadow: 0 20px 45px rgba(0,0,0,.18);
    transition: transform .25s ease, background .25s ease;
}

.tariff-card:hover {
    transform: translateY(-6px);
    background: #102438;
}

.tariff-card__number {
    position: absolute;
    top: 24px;
    right: 25px;
    color: rgba(255,255,255,.12);
    font: 700 48px/1 Georgia, "Times New Roman", serif;
}

.tariff-card__label {
    margin: 0;
    color: var(--progreso-gold-bright);
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: .12em !important;
    text-transform: uppercase;
}

.tariff-card h3 {
    min-height: 66px;
    margin: 20px 0 18px;
    color: var(--progreso-white);
    font-size: 26px;
    line-height: 1.15;
}

.tariff-card__price {
    margin: 0 0 24px;
    color: var(--progreso-gold-bright);
    font: 700 52px/1 var(--progreso-body-font) !important;
}

.tariff-card__price span {
    font-size: 24px;
}

.tariff-card__price small {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.tariff-card__detail {
    margin: 0;
    color: rgba(255,255,255,.76);
}

.tariff-card > a {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 30px;
    display: flex;
    justify-content: space-between;
    color: var(--progreso-white);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
}

.tariff-card > a span {
    color: var(--progreso-gold-bright);
    font-size: 20px;
}

.tariff-checks {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.tariff-legal__layout {
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    gap: 26px;
}

.tariff-legal__rules {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.tariff-legal__rules article {
    padding: 26px;
    border: 1px solid rgba(213,165,91,.45);
    background: rgba(255,255,255,.05);
}

.tariff-legal__rules span {
    color: var(--progreso-gold-bright);
    font-size: 26px;
    font-weight: 700;
}

.tariff-legal__rules p {
    margin: 18px 0 0;
    color: rgba(255,255,255,.8);
}

.tariff-legal__sources {
    display: grid;
    gap: 18px;
}

.tariff-legal__sources a {
    padding: 28px;
    border-left: 5px solid var(--progreso-gold);
    background: var(--progreso-white);
    color: var(--progreso-ink);
    transition: transform .2s ease;
}

.tariff-legal__sources a:hover,
.tariff-legal__sources a:focus-visible {
    transform: translateX(5px);
}

.tariff-legal__sources a > span {
    display: block;
    color: var(--progreso-bronze);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.tariff-legal__sources strong {
    display: block;
    margin-top: 12px;
    font-size: 24px;
}

.tariff-legal__sources p {
    margin: 14px 0 0;
}

.tariff-contact {
    margin-top: 62px;
    padding-top: 54px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 48px;
    align-items: center;
    border-top: 1px solid rgba(213,165,91,.45);
}

.tariff-contact h2 {
    margin-top: 16px;
    max-width: 760px;
    color: var(--progreso-white);
    font-size: clamp(38px, 3.8vw, 58px);
}

.tariff-contact p {
    max-width: 720px;
    margin: 18px 0 0;
    color: rgba(255,255,255,.74);
}

.tariff-contact__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.tariff-contact__actions > a:last-child {
    color: var(--progreso-gold-bright);
    font-size: 24px;
    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: 1120px) {
    .tariff-cards,
    .tariff-checks {
        grid-template-columns: repeat(2, 1fr);
    }

    .tariff-legal__layout {
        grid-template-columns: 1fr;
    }
}

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

    .tariff-section {
        padding: 78px 0;
    }

    .tariff-heading h2,
    .tariff-contact h2 {
        font-size: clamp(36px, 11vw, 50px);
        line-height: 1.02;
        overflow-wrap: break-word;
    }

    .tariff-hero {
        min-height: 700px;
        background-position: 22% center;
    }

    .tariff-hero__overlay {
        background: rgba(8,13,23,.78);
    }

    .tariff-hero__content {
        padding: 170px 0 110px;
        text-align: center;
    }

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

    .tariff-hero h1 {
        max-width: 100%;
        font-size: clamp(36px, 12vw, 58px);
        line-height: .98;
        overflow-wrap: normal;
    }

    .tariff-hero p {
        font-size: 15px !important;
    }

    .tariff-steps,
    .tariff-cards,
    .tariff-checks,
    .tariff-legal__rules {
        grid-template-columns: 1fr;
    }

    .tariff-notice,
    .tariff-contact {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .tariff-card {
        min-height: 450px;
    }
}

@media (prefers-reduced-motion: reduce) {
    [data-reveal] {
        opacity: 1;
        transform: none;
    }
}
