:root {
    --ink: #253241;
    --muted: #5c6a76;
    --line: #d9e7ec;
    --teal: #55b0bf;
    --teal-dark: #2e91a4;
    --orange: #ff6426;
    --orange-dark: #e94f13;
    --green: #25d366;
    --surface: #ffffff;
    --soft: #f5fafb;
    --shadow: 0 18px 45px rgba(33, 57, 72, 0.14);
    --footer: #162430;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbfc 52%, #ffffff 100%);
    overflow-x: clip;
}

body,
button,
input,
select,
textarea {
    font: 16px/1.5 Arial, Helvetica, sans-serif;
}

body.is-loading {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img,
svg {
    display: block;
}

img {
    max-width: 100%;
    height: auto;
}

svg {
    width: 1.2em;
    height: 1.2em;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.page-loader {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.96), rgba(236, 249, 251, 0.94)),
        url("images/servicios_polish.jpg") center/cover;
    transition: opacity 420ms ease, visibility 420ms ease;
}

body:not(.is-loading) .page-loader {
    visibility: hidden;
    opacity: 0;
}

.loader-card {
    display: grid;
    width: min(310px, 78vw);
    gap: 20px;
    justify-items: center;
    padding: 34px 30px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(213, 232, 238, 0.78);
    border-radius: 8px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.loader-card img {
    width: 175px;
    object-fit: contain;
}

.loader-track {
    position: relative;
    width: 100%;
    height: 7px;
    overflow: hidden;
    background: #e2eef2;
    border-radius: 999px;
}

.loader-track span {
    position: absolute;
    inset: 0 auto 0 0;
    width: 42%;
    background: linear-gradient(90deg, var(--teal), var(--orange));
    border-radius: inherit;
    animation: loadBar 1100ms ease-in-out infinite;
}

@keyframes loadBar {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(240%);
    }
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: minmax(120px, 210px) 1fr auto;
    align-items: center;
    gap: 24px;
    min-height: 78px;
    padding: 10px clamp(20px, 6vw, 92px);
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(191, 211, 219, 0.7);
    box-shadow: 0 8px 24px rgba(28, 52, 65, 0.08);
    backdrop-filter: blur(12px);
}

.brand img {
    width: 170px;
    max-height: 66px;
    object-fit: contain;
    object-position: left center;
}

.site-nav {
    display: flex;
    justify-content: center;
    gap: clamp(18px, 3vw, 42px);
    color: #1b2630;
    font-weight: 700;
}

.site-nav a {
    position: relative;
    padding: 10px 0;
}

.site-nav a::after {
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 0;
    height: 3px;
    content: "";
    background: var(--orange);
    border-radius: 999px;
    transition: width 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
    width: 100%;
}

.header-cta,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.header-cta,
.btn-primary {
    color: #fff;
    background: linear-gradient(180deg, #ff7436 0%, var(--orange) 100%);
    box-shadow: 0 13px 24px rgba(255, 100, 38, 0.24);
}

.btn-secondary {
    color: var(--teal-dark);
    background: #fff;
    border-color: var(--teal);
}

.btn-large {
    min-height: 58px;
    font-size: 1.08rem;
}

.header-cta:hover,
.btn:hover {
    transform: translateY(-2px);
}

.nav-toggle,
.nav-button {
    display: none;
}

.hero {
    position: relative;
    display: grid;
    align-items: center;
    min-height: calc(100vh - 78px);
    overflow: hidden;
    isolation: isolate;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.94) 31%, rgba(255, 255, 255, 0.55) 55%, rgba(255, 255, 255, 0.08) 100%),
        url("images/servicios_polish.jpg") center right / cover no-repeat;
}

.hero::after {
    position: absolute;
    inset: auto 0 0;
    z-index: -1;
    height: 42%;
    content: "";
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(247, 251, 252, 0.96));
    pointer-events: none;
}

.hero-copy {
    max-width: 650px;
    padding: 78px 0 74px clamp(22px, 7vw, 112px);
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--teal-dark);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 580px;
    margin-bottom: 22px;
    font-size: clamp(2.85rem, 6vw, 5.35rem);
    line-height: 0.95;
    font-weight: 900;
}

h1::after,
.results-intro h2::after,
.section-heading h2::after {
    display: block;
    width: 72px;
    height: 5px;
    margin-top: 18px;
    content: "";
    background: var(--orange);
    border-radius: 999px;
}

h1 span,
.section-heading span {
    color: var(--teal-dark);
}

h2 {
    margin-bottom: 16px;
    font-size: clamp(1.75rem, 3vw, 2.6rem);
    line-height: 1.08;
    font-weight: 900;
}

h3 {
    margin-bottom: 8px;
    font-size: 1.05rem;
    line-height: 1.2;
    font-weight: 900;
}

.hero-text {
    max-width: 540px;
    margin-bottom: 28px;
    color: var(--muted);
    font-size: 1.18rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 30px;
}

.trust-list {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 22px;
    margin: 0;
    padding: 0;
    color: var(--muted);
    font-size: 0.9rem;
    list-style: none;
}

.trust-list li {
    position: relative;
    padding-left: 25px;
}

.trust-list li::before {
    position: absolute;
    left: 0;
    top: 1px;
    width: 17px;
    height: 17px;
    content: "";
    border: 2px solid var(--teal);
    border-radius: 50%;
}

.trust-list li::after {
    position: absolute;
    left: 5px;
    top: 6px;
    width: 7px;
    height: 4px;
    content: "";
    border-bottom: 2px solid var(--teal-dark);
    border-left: 2px solid var(--teal-dark);
    transform: rotate(-45deg);
}

.services,
.results {
    padding: 40px clamp(18px, 7vw, 112px);
}

.section-heading {
    max-width: 720px;
    margin: 0 auto 24px;
    text-align: center;
}

.section-heading h2::after {
    margin-right: auto;
    margin-left: auto;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.service-card,
.proof {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(202, 220, 226, 0.78);
    box-shadow: 0 14px 34px rgba(33, 57, 72, 0.1);
}

.service-card {
    position: relative;
    min-height: 190px;
    padding: 24px 22px 22px;
    border-radius: 8px;
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(85, 176, 191, 0.72);
    box-shadow: 0 22px 48px rgba(33, 57, 72, 0.16);
}

.service-icon {
    display: grid;
    width: 72px;
    height: 72px;
    margin-bottom: 16px;
    place-items: center;
    color: var(--teal-dark);
    background: linear-gradient(180deg, #eef7f9, #e5f1f5);
    border-radius: 50%;
}

.service-icon svg {
    width: 34px;
    height: 34px;
}

.service-card p {
    margin-bottom: 20px;
    color: var(--muted);
    font-size: 0.95rem;
}

.service-card a {
    position: absolute;
    right: 20px;
    bottom: 16px;
    color: var(--orange);
    font-size: 0.95rem;
    font-weight: 900;
}

.results {
    display: grid;
    grid-template-columns: minmax(0, 250px) minmax(0, 1fr);
    gap: 22px;
    align-items: stretch;
    min-width: 0;
}

.results-intro {
    align-self: center;
}

.results-intro p:last-child {
    color: var(--muted);
}

.compare-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    min-width: 0;
}

.compare-card {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    aspect-ratio: 2.05 / 1;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 210px;
    margin: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow);
    background: #fff;
}

.compare-card::after {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    content: "";
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 0 0 1px rgba(37, 50, 65, 0.08);
    transform: translateX(-50%);
}

.compare-image {
    position: relative;
    min-width: 0;
    min-height: 100%;
    overflow: hidden;
}

.compare-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms ease;
}

.compare-card:hover img {
    transform: scale(1.06);
}

.compare-image span {
    position: absolute;
    left: 14px;
    bottom: 14px;
    padding: 5px 12px;
    color: #fff;
    background: rgba(37, 50, 65, 0.74);
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 800;
}

.compare-image.after span {
    right: 14px;
    left: auto;
    background: rgba(46, 145, 164, 0.9);
}

.proof {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin: 0 clamp(18px, 7vw, 112px);
    overflow: hidden;
    border-radius: 8px;
}

.proof article {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 14px;
    align-items: center;
    padding: 18px 28px;
    border-right: 1px solid var(--line);
}

.proof article:last-child {
    border-right: 0;
}

.proof svg {
    width: 44px;
    height: 44px;
    color: var(--teal-dark);
}

.proof h3,
.proof p {
    margin: 0;
}

.proof p {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.35;
}

figcaption {
    font-weight: 900;
}

figcaption span {
    display: block;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.contact-band {
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 0.65fr);
    gap: clamp(24px, 5vw, 64px);
    align-items: center;
    margin: 24px clamp(18px, 7vw, 112px) 0;
    padding: clamp(28px, 5vw, 58px);
    color: #fff;
    background:
        linear-gradient(120deg, rgba(34, 88, 104, 0.96), rgba(85, 176, 191, 0.9)),
        url("images/banner-slice-3.jpg") center/cover;
    border-radius: 8px;
    box-shadow: 0 24px 58px rgba(36, 93, 110, 0.25);
}

.contact-copy h2,
.contact-copy p {
    color: #fff;
}

.contact-copy .eyebrow {
    color: #dff8fb;
}

.whatsapp-panel {
    display: grid;
    justify-items: center;
    gap: 16px;
    padding: 26px;
    text-align: center;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 8px;
    backdrop-filter: blur(12px);
}

.wa-orb {
    display: grid;
    width: 72px;
    height: 72px;
    place-items: center;
    color: #fff;
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 18px 32px rgba(37, 211, 102, 0.3);
}

.wa-orb svg {
    width: 38px;
    height: 38px;
}

.phone-link {
    color: #fff;
    font-size: 1.35rem;
    font-weight: 900;
}

.whatsapp-panel p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.82);
}

.floating-whatsapp,
.go-top {
    position: fixed;
    right: 22px;
    z-index: 25;
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    color: #fff;
    border: 0;
    border-radius: 50%;
    box-shadow: 0 16px 34px rgba(28, 52, 65, 0.2);
    transition: transform 180ms ease, opacity 180ms ease, visibility 180ms ease;
}

.floating-whatsapp {
    bottom: 92px;
    background: var(--green);
}

.go-top {
    bottom: 26px;
    background: var(--orange);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
}

.go-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.floating-whatsapp:hover,
.go-top:hover {
    transform: translateY(-3px);
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin-top: 42px;
    padding: 26px clamp(18px, 7vw, 112px);
    color: rgba(255, 255, 255, 0.72);
    background: var(--footer);
}

.site-footer p {
    margin: 0;
}

.fx-cuby {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.5);
    flex-wrap: wrap;
}

.fx-cuby__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.fx-cuby__icon {
    width: 18px;
    height: 18px;
    display: block;
}

.fx-cuby__name {
    color: #ff7b00;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.fx-cuby__link:hover .fx-cuby__name {
    filter: brightness(1.05);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.reveal {
    opacity: 0;
    transform: translate3d(0, 46px, 0) scale(0.985);
    transition: opacity 650ms ease, transform 650ms cubic-bezier(0.2, 0.85, 0.2, 1);
    backface-visibility: hidden;
    will-change: opacity, transform;
}

.reveal.from-top:not(.is-visible) {
    transform: translate3d(0, -34px, 0) scale(0.985);
}

.reveal.from-bottom:not(.is-visible) {
    transform: translate3d(0, 46px, 0) scale(0.985);
}

.reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

.service-grid .reveal:nth-child(2),
.compare-grid .reveal:nth-child(2) {
    transition-delay: 90ms;
}

.service-grid .reveal:nth-child(3),
.compare-grid .reveal:nth-child(3) {
    transition-delay: 160ms;
}

.service-grid .reveal:nth-child(4),
.compare-grid .reveal:nth-child(4) {
    transition-delay: 230ms;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 1ms !important;
        scroll-behavior: auto !important;
        transition-duration: 1ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 1100px) {
    .service-grid,
    .proof {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .proof article:nth-child(2) {
        border-right: 0;
    }

    .proof article:nth-child(-n + 2) {
        border-bottom: 1px solid var(--line);
    }
}

@media (max-width: 900px) {
    .site-header {
        grid-template-columns: 1fr auto auto;
        gap: 14px;
    }

    .nav-button {
        display: grid;
        width: 46px;
        height: 46px;
        place-items: center;
        padding: 10px;
        border: 1px solid var(--line);
        border-radius: 8px;
    }

    .nav-button span {
        width: 22px;
        height: 2px;
        background: var(--ink);
    }

    .site-nav {
        position: absolute;
        top: 100%;
        right: 20px;
        left: 20px;
        display: none;
        flex-direction: column;
        gap: 0;
        padding: 10px;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 8px;
        box-shadow: var(--shadow);
    }

    .site-nav a {
        padding: 12px 10px;
    }

    .nav-toggle:checked ~ .site-nav {
        display: flex;
    }

    .hero {
        align-items: end;
        min-height: 770px;
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.45) 38%, rgba(255, 255, 255, 0.98) 72%),
            url("images/servicios_polish.jpg") top center / auto 390px no-repeat;
    }

    .hero-copy {
        padding: 420px clamp(20px, 7vw, 56px) 48px;
    }

    .results,
    .contact-band {
        grid-template-columns: 1fr;
    }

    .results-intro {
        max-width: 640px;
    }

    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 680px) {
    .site-header {
        min-height: 68px;
        padding: 8px 16px;
    }

    .brand img {
        width: 130px;
        max-height: 52px;
    }

    .header-cta {
        width: 48px;
        min-height: 46px;
        padding: 0;
        overflow: hidden;
        color: transparent;
        gap: 0;
        font-size: 0;
    }

    .header-cta svg {
        flex: 0 0 auto;
        width: 21px;
        height: 21px;
        color: #fff;
    }

    h1 {
        font-size: 3rem;
    }

    .hero-actions,
    .btn {
        width: 100%;
    }

    .service-grid,
    .compare-grid,
    .proof {
        grid-template-columns: 1fr;
    }

    .results {
        padding-right: 16px;
        padding-left: 16px;
    }

    .compare-card {
        aspect-ratio: 1.45 / 1;
        min-height: 0;
    }

    .proof article,
    .proof article:nth-child(2) {
        border-right: 0;
    }

    .proof article:nth-child(-n + 3) {
        border-bottom: 1px solid var(--line);
    }

    .contact-band {
        margin-right: 0;
        margin-left: 0;
        border-radius: 0;
    }

    .floating-whatsapp,
    .go-top {
        right: 16px;
    }

    .floating-whatsapp {
        bottom: 20px;
    }

    .go-top {
        bottom: 84px;
    }
}
