:root {
    --yellow: #f9ba0b;
    --yellow-dark: #e3a700;
    --black: #050505;
    --ink: #111111;
    --muted: #5b5b5b;
    --white: #ffffff;
    --max-width: 1180px;
    --shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 94px;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
}

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.container {
    width: min(calc(100% - 40px), var(--max-width));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    left: 16px;
    top: -60px;
    z-index: 2000;
    padding: 10px 16px;
    background: var(--black);
    color: var(--white);
    border-radius: 6px;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 16px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(10px);
}

.nav-wrap {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.brand {
    flex: 0 1 310px;
}

.brand img {
    width: 300px;
    height: auto;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: clamp(24px, 4vw, 50px);
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.main-nav a {
    position: relative;
    padding: 12px 0;
}

.main-nav a:not(.nav-cta)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 6px;
    width: 0;
    height: 3px;
    background: var(--yellow);
    transition: width 0.2s ease;
}

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

.main-nav .nav-cta {
    padding: 13px 28px;
    background: var(--yellow);
    border-radius: 4px;
    transition: transform 0.2s ease, background 0.2s ease;
}

.main-nav .nav-cta:hover,
.main-nav .nav-cta:focus-visible {
    background: var(--yellow-dark);
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    padding: 10px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    margin: 5px 0;
    background: var(--black);
    border-radius: 3px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.hero {
    position: relative;
    min-height: 610px;
    display: grid;
    align-items: center;
    color: var(--white);
    background: url("assets/hero-grua.jpg") center center / cover no-repeat;
    isolation: isolate;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.52) 34%, rgba(0, 0, 0, 0.05) 70%);
}

.hero-content {
    padding-block: 80px;
}

.hero-kicker {
    margin: 0 0 -4px;
    font-size: clamp(24px, 3vw, 42px);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.01em;
}

.hero h1 {
    margin: 0;
    max-width: 720px;
    font-size: clamp(82px, 12vw, 170px);
    line-height: 0.86;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.06em;
}

.hero-subtitle {
    margin: 8px 0 6px;
    color: var(--yellow);
    font-size: clamp(25px, 3.1vw, 43px);
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-coverage {
    margin: 0 0 28px;
    max-width: 590px;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 13px 30px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

.button-primary {
    color: var(--black);
    background: var(--yellow);
}

.button-primary:hover,
.button-primary:focus-visible {
    background: #ffc72e;
}

.button-dark {
    margin-top: 10px;
    color: var(--white);
    background: var(--black);
}

.section {
    padding-block: 90px;
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
    gap: clamp(50px, 8vw, 100px);
    align-items: center;
}

.section-title {
    position: relative;
    display: inline-block;
    margin: 0 0 36px;
    font-size: clamp(27px, 3vw, 38px);
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -12px;
    width: 66px;
    height: 6px;
    background: var(--yellow);
}

.about-copy p {
    margin: 0 0 19px;
    font-size: 17px;
    color: #2f2f2f;
}

.about-copy p:last-child {
    margin-bottom: 0;
}

.about-media {
    margin: 0;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-media img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.about-media:hover img {
    transform: scale(1.025);
}

.why-us {
    padding-block: 80px 90px;
    color: var(--white);
    background: var(--black);
}

.why-us h2 {
    margin: 0 0 58px;
    text-align: center;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.1;
    font-weight: 900;
    text-transform: uppercase;
}

.why-us h2 span {
    color: var(--yellow);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.benefit-card {
    min-height: 170px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    text-align: center;
    border-right: 1px dashed rgba(255, 255, 255, 0.48);
}

.benefit-card:last-child {
    border-right: 0;
}

.benefit-card svg,
.benefit-card .benefit-icon {
    width: 62px;
    height: 62px;
    margin-bottom: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.benefit-card .benefit-icon {
    object-fit: contain;
}

.benefit-card h3 {
    margin: 0;
    font-size: 13px;
    line-height: 1.25;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.coverage-services {
    padding-bottom: 50px;
}

.coverage-grid {
    display: grid;
    grid-template-columns: minmax(320px, 0.95fr) minmax(320px, 1.05fr);
    gap: clamp(70px, 10vw, 145px);
    align-items: center;
}

.coverage-map img {
    width: min(100%, 520px);
    margin-inline: auto;
}

.services-copy {
    padding-right: clamp(0px, 5vw, 60px);
}

.service-item {
    margin-bottom: 26px;
}

.service-item h3 {
    margin: 0 0 3px;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.service-item p {
    margin: 0;
    max-width: 500px;
    color: #333;
    font-size: 17px;
}

.center-logo {
    display: flex;
    justify-content: center;
    padding-top: 50px;
}

.center-logo img {
    width: min(100%, 420px);
}

.site-footer {
    background: var(--yellow);
    color: var(--black);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr 0.8fr;
    gap: clamp(40px, 8vw, 100px);
    padding-block: 58px 48px;
    align-items: start;
}

.footer-about p {
    margin: 0;
    max-width: 430px;
    font-size: 15px;
}

.site-footer h2 {
    margin: 0 0 18px;
    font-size: 20px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-contact h2 {
    margin-bottom: 5px;
}

.footer-contact a,
.footer-contact span {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 800;
}

.footer-contact a:hover {
    text-decoration: underline;
}

.footer-contact svg {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    color: var(--white);
    background: white;
    border: 2px solid var(--white) !important;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.16);
}

.social-links .social-icon {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.social-links a:hover,
.social-links a:focus-visible {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 9px 20px rgba(0, 0, 0, 0.22);
}

.social-links svg,
.social-links .social-icon {
    width: 32px;
    height: 32px;
    fill: currentColor;
    stroke: currentColor;
    stroke-width: 1.5;
}

.social-links .social-icon {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.footer-bottom {
    padding-block: 14px;
    color: rgba(255, 255, 255, 0.8);
    background: var(--black);
    text-align: center;
    font-size: 13px;
}

.whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 900;
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    color: var(--white);
    background: #25d366;
    border: 3px solid var(--white);
    border-radius: 50%;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
    transition: transform 0.2s ease;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
    transform: scale(1.08);
}

.whatsapp-float svg {
    width: 34px;
    height: 34px;
    fill: currentColor;
}

:focus-visible {
    outline: 3px solid #2f77ff;
    outline-offset: 4px;
}

@media (max-width: 900px) {
    html {
        scroll-padding-top: 76px;
    }

    .container {
        width: min(calc(100% - 32px), var(--max-width));
    }

    .nav-wrap {
        min-height: 76px;
    }

    .brand {
        flex-basis: auto;
    }

    .brand img {
        width: 220px;
    }

    .menu-toggle {
        display: block;
        position: relative;
        z-index: 1002;
    }

    .menu-toggle.is-open span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.is-open span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.is-open span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .main-nav {
        position: fixed;
        inset: 76px 0 auto 0;
        display: grid;
        gap: 0;
        padding: 12px 16px 22px;
        background: var(--white);
        box-shadow: 0 18px 35px rgba(0, 0, 0, 0.16);
        transform: translateY(-130%);
        visibility: hidden;
        transition: transform 0.25s ease, visibility 0.25s ease;
    }

    .main-nav.is-open {
        transform: translateY(0);
        visibility: visible;
    }

    .main-nav a {
        padding: 16px 14px;
        border-bottom: 1px solid #ededed;
    }

    .main-nav .nav-cta {
        margin-top: 12px;
        text-align: center;
        border-bottom: 0;
    }

    .hero {
        min-height: 580px;
        background-position: 68% center;
    }

    .hero-overlay {
        background: linear-gradient(90deg, rgba(0, 0, 0, 0.83) 0%, rgba(0, 0, 0, 0.66) 48%, rgba(0, 0, 0, 0.16) 100%);
    }

    .hero-content {
        padding-block: 70px;
    }

    .about-grid,
    .coverage-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .about-grid,
    .coverage-grid {
        gap: 48px;
    }

    .about-media {
        max-width: 620px;
        margin-inline: auto;
    }

    .benefits-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0;
    }

    .benefit-card {
        border-right: 1px dashed rgba(255, 255, 255, 0.42);
        border-bottom: 1px dashed rgba(255, 255, 255, 0.42);
    }

    .benefit-card:nth-child(2n) {
        border-right: 0;
    }

    .benefit-card:nth-last-child(-n + 2) {
        border-bottom: 0;
    }

    .benefit-card:last-child {
        grid-column: 1 / -1;
        border-right: 0;
        border-bottom: 0;
    }

    .services-copy {
        padding-right: 0;
    }

    .footer-grid {
        gap: 34px;
    }
}

@media (max-width: 560px) {
    .container {
        width: min(calc(100% - 26px), var(--max-width));
    }

    .brand img {
        width: 180px;
    }

    .section {
        padding-block: 64px;
    }

    .hero {
        min-height: 610px;
        background-position: 72% center;
    }

    .hero-overlay {
        background: linear-gradient(90deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.73) 56%, rgba(0, 0, 0, 0.25) 100%);
    }

    .hero-kicker {
        font-size: 23px;
    }

    .hero h1 {
        font-size: clamp(74px, 25vw, 105px);
    }

    .hero-subtitle {
        font-size: clamp(19px, 6vw, 28px);
        letter-spacing: 0.04em;
    }

    .hero-coverage {
        max-width: 330px;
        font-size: 11px;
    }

    .button {
        width: 100%;
        max-width: 340px;
    }

    .about-copy p,
    .service-item p {
        font-size: 16px;
    }

    .why-us {
        padding-block: 62px 72px;
    }

    .why-us h2 {
        margin-bottom: 36px;
    }

    .benefit-card {
        min-height: 154px;
        padding-inline: 12px;
    }

    .benefit-card svg,
    .benefit-card .benefit-icon {
        width: 52px;
        height: 52px;
    }

    .benefit-card h3 {
        font-size: 11px;
    }

    .coverage-grid {
        gap: 30px;
    }

    .coverage-map img {
        width: min(100%, 430px);
    }

    .center-logo {
        padding-top: 38px;
    }

    .center-logo img {
        width: min(90%, 340px);
    }

    .footer-grid {
        padding-block: 46px 40px;
    }

    .whatsapp-float {
        right: 15px;
        bottom: 15px;
        width: 56px;
        height: 56px;
    }
}

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

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* =========================================================
   ANIMACIONES SUAVES
   Agregadas sin modificar la estructura ni distribución.
   ========================================================= */

body.is-loading {
    overflow: hidden;
}

.site-preloader {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 18px;
    color: var(--black);
    background: var(--white);
    opacity: 1;
    visibility: visible;
    transition: opacity 0.55s ease, visibility 0.55s ease;
}

.site-preloader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-mark {
    display: flex;
    align-items: flex-end;
    gap: 7px;
    height: 44px;
}

.preloader-mark span {
    width: 10px;
    height: 18px;
    background: var(--yellow);
    border-radius: 2px;
    animation: preloaderBars 0.85s ease-in-out infinite alternate;
}

.preloader-mark span:nth-child(2) {
    height: 34px;
    animation-delay: 0.14s;
}

.preloader-mark span:nth-child(3) {
    height: 25px;
    animation-delay: 0.28s;
}

.site-preloader p {
    margin: 0;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

@keyframes preloaderBars {
    from {
        transform: scaleY(0.65);
        opacity: 0.55;
    }
    to {
        transform: scaleY(1.15);
        opacity: 1;
    }
}

.site-header {
    transition: box-shadow 0.28s ease, background-color 0.28s ease;
}

.site-header.is-scrolled {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

/* La imagen conserva su mismo encuadre; únicamente recibe movimiento suave. */
.hero {
    overflow: hidden;
    background-image: none;
}

.hero::before {
    content: "";
    position: absolute;
    inset: -2px;
    z-index: -2;
    background: url("assets/hero-grua.jpg") center center / cover no-repeat;
    transform: scale(1.075);
    animation: heroImageEntrance 8.5s cubic-bezier(0.2, 0.75, 0.25, 1) forwards;
    will-change: transform;
}

@keyframes heroImageEntrance {
    to {
        transform: scale(1);
    }
}

/* Efectos de aparición inspirados en fadeInUp, fadeInLeft y fadeInRight. */
.js .reveal {
    opacity: 0;
    transition:
        opacity 0.78s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.78s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}

.js .reveal-fade-up {
    transform: translate3d(0, 34px, 0);
}

.js .reveal-fade-left {
    transform: translate3d(-42px, 0, 0);
}

.js .reveal-fade-right {
    transform: translate3d(42px, 0, 0);
}

.js .reveal-zoom-in {
    transform: scale(0.94);
}

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

/* Hover sutil: no cambia tamaños ni columnas. */
.benefit-card,
.service-item,
.about-media,
.coverage-map img,
.center-logo img {
    transition:
        transform 0.3s ease,
        filter 0.3s ease,
        box-shadow 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
    .benefit-card:hover {
        transform: translateY(-7px);
    }

    .benefit-card:hover svg,
    .benefit-card:hover .benefit-icon {
        color: var(--yellow);
        transform: scale(1.07);
    }

    .benefit-card svg,
    .benefit-card .benefit-icon {
        transition: color 0.3s ease, transform 0.3s ease;
    }

    .service-item:hover {
        transform: translateX(8px);
    }

    .about-media:hover {
        transform: translateY(-5px);
        box-shadow: 0 22px 48px rgba(0, 0, 0, 0.16);
    }

    .coverage-map img:hover,
    .center-logo img:hover {
        transform: scale(1.02);
        filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.13));
    }
}

.button,
.nav-cta {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.button::after,
.nav-cta::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, 0.48) 47%, transparent 69%);
    transform: translateX(-140%);
    transition: transform 0.65s ease;
}

.button:hover::after,
.button:focus-visible::after,
.nav-cta:hover::after,
.nav-cta:focus-visible::after {
    transform: translateX(140%);
}

.scroll-top {
    position: fixed;
    right: 28px;
    bottom: 102px;
    z-index: 890;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    padding: 0;
    color: var(--black);
    background: var(--yellow);
    border: 2px solid var(--white);
    border-radius: 50%;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease, background 0.2s ease;
}

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

.scroll-top:hover,
.scroll-top:focus-visible {
    background: #ffc72e;
    transform: translateY(-3px);
}

.scroll-top svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 560px) {
    .scroll-top {
        right: 20px;
        bottom: 84px;
        width: 42px;
        height: 42px;
    }

    .js .reveal-fade-left,
    .js .reveal-fade-right {
        transform: translate3d(0, 28px, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    body.is-loading {
        overflow: auto;
    }

    .site-preloader {
        display: none;
    }

    .hero::before {
        animation: none;
        transform: none;
    }

    .js .reveal,
    .js .reveal-fade-up,
    .js .reveal-fade-left,
    .js .reveal-fade-right,
    .js .reveal-zoom-in {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
