:root {
    --navy: #063f78;
    --blue: #0877c9;
    --aqua: #1f9da4;
    --green: #1f8969;
    --coral: #df6b68;
    --ink: #152739;
    --muted: #5a6a78;
    --line: #d8e3ea;
    --mist: #eef7f8;
    --white: #ffffff;
    --shadow: 0 18px 48px rgba(14, 56, 86, 0.12);
    --content: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
}

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

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

.skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 100;
    padding: 8px 12px;
    color: var(--white);
    background: var(--navy);
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    transition: background-color 180ms ease, box-shadow 180ms ease;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 8px 30px rgba(15, 46, 74, 0.1);
}

.header-inner {
    width: min(calc(100% - 40px), var(--content));
    height: 84px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: block;
    width: 168px;
    height: 64px;
    overflow: hidden;
}

.brand img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.navigation {
    display: flex;
    align-items: center;
    gap: 30px;
}

.navigation a {
    color: var(--white);
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
}

.site-header.scrolled .navigation a {
    color: var(--ink);
}

.navigation a:hover,
.navigation a:focus-visible {
    color: #7ee2df;
}

.site-header.scrolled .navigation a:hover,
.site-header.scrolled .navigation a:focus-visible {
    color: var(--blue);
}

.navigation .nav-access {
    padding: 9px 14px;
    border: 1px solid rgba(255, 255, 255, 0.56);
    border-radius: 6px;
}

.site-header.scrolled .navigation .nav-access {
    border-color: var(--line);
}

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

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--white);
    transition: transform 160ms ease, opacity 160ms ease;
}

.site-header.scrolled .menu-toggle span {
    background: var(--navy);
}

.hero {
    position: relative;
    min-height: min(780px, 92vh);
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--white);
    background-image: url("portada.jpg");
    background-position: center;
    background-size: cover;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: rgba(1, 29, 65, 0.68);
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: min(calc(100% - 40px), var(--content));
    margin: 0 auto;
    padding: 150px 0 100px;
}

.hero .eyebrow {
    color: #9ee5e1;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--green);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 680px;
    margin: 0;
    font-size: clamp(3rem, 7vw, 6.8rem);
    font-weight: 750;
    letter-spacing: 0;
    line-height: 0.96;
}

.hero-copy {
    max-width: 590px;
    margin: 28px 0 0;
    color: #e8f5fa;
    font-size: 1.18rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 11px 18px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 0.92rem;
    font-weight: 750;
    text-decoration: none;
    transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-2px);
}

.button svg {
    width: 19px;
    height: 19px;
    fill: currentColor;
}

.button-primary {
    color: var(--white);
    background: var(--green);
}

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

.button-secondary {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.62);
    background: rgba(255, 255, 255, 0.08);
}

.button-secondary:hover,
.button-secondary:focus-visible {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.17);
}

.hero-location {
    position: absolute;
    right: max(20px, calc((100vw - var(--content)) / 2));
    bottom: 34px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    font-size: 0.86rem;
    font-weight: 650;
    text-decoration: none;
}

.hero-location svg {
    width: 18px;
    height: 18px;
    fill: #9ee5e1;
}

.trust-band {
    color: var(--white);
    background: var(--navy);
}

.trust-inner {
    width: min(calc(100% - 40px), var(--content));
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.trust-inner div {
    min-height: 118px;
    padding: 26px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.trust-inner div:last-child {
    border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.trust-inner strong {
    font-size: 1rem;
}

.trust-inner span {
    color: #bcd3e3;
    font-size: 0.85rem;
}

.section {
    width: min(calc(100% - 40px), var(--content));
    margin: 0 auto;
    padding: 110px 0;
}

.section-heading {
    max-width: 720px;
    margin-bottom: 48px;
}

.section h2,
.about h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.8rem);
    font-weight: 750;
    letter-spacing: 0;
    line-height: 1.08;
}

.section-heading > p:last-child,
.contact-copy > p {
    max-width: 620px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 1.05rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.service-card {
    min-height: 300px;
    padding: 30px 24px;
    border-right: 1px solid var(--line);
    background: var(--white);
    transition: background-color 180ms ease, transform 180ms ease;
}

.service-card:first-child {
    border-left: 1px solid var(--line);
}

.service-card:hover {
    z-index: 1;
    background: var(--mist);
    transform: translateY(-5px);
}

.service-number {
    display: block;
    margin-bottom: 68px;
    color: var(--coral);
    font-size: 0.78rem;
    font-weight: 800;
}

.service-card h3 {
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.2;
}

.service-card p {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.about {
    color: var(--white);
    background: #123c4c;
}

.about-inner {
    width: min(calc(100% - 40px), var(--content));
    margin: 0 auto;
    padding: 100px 0;
    display: grid;
    grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1.2fr);
    align-items: center;
    gap: 80px;
}

.about-mark {
    max-width: 420px;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
    background: var(--white);
}

.about-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about .eyebrow {
    color: #9ee5e1;
}

.about-copy > p:not(.eyebrow) {
    max-width: 650px;
    margin: 24px 0 0;
    color: #c9dfe6;
    font-size: 1.04rem;
}

.about-points {
    margin-top: 34px;
    padding-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.about-points span {
    position: relative;
    padding-left: 16px;
    color: #e6f2f4;
    font-size: 0.88rem;
    font-weight: 700;
}

.about-points span::before {
    position: absolute;
    top: 0.62em;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--coral);
    content: "";
}

.contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-copy .button {
    margin-top: 30px;
}

.contact-details {
    margin: 0;
    padding: 0;
    font-style: normal;
    border-top: 1px solid var(--line);
}

.contact-details div {
    padding: 22px 0;
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 8px 24px;
    border-bottom: 1px solid var(--line);
}

.contact-details span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 750;
    text-transform: uppercase;
}

.contact-details strong {
    font-size: 0.98rem;
}

.contact-details strong a {
    text-decoration: none;
}

.contact-details > div > a {
    grid-column: 2;
    color: var(--blue);
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
}

.site-footer {
    min-height: 130px;
    padding: 24px max(20px, calc((100vw - var(--content)) / 2));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    color: #c4d8e5;
    background: #072d4c;
}

.site-footer > div {
    display: flex;
    align-items: center;
    gap: 20px;
}

.site-footer img {
    width: 86px;
    height: 56px;
    object-fit: cover;
    object-position: center;
    border-radius: 4px;
}

.site-footer p {
    margin: 0;
    font-size: 0.8rem;
}

.site-footer > a {
    color: #dcecf3;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
}

.floating-whatsapp {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 15;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
    background: var(--green);
    box-shadow: 0 10px 24px rgba(10, 76, 55, 0.3);
    transition: transform 160ms ease, background-color 160ms ease;
}

.floating-whatsapp:hover,
.floating-whatsapp:focus-visible {
    background: #187257;
    transform: translateY(-3px);
}

.floating-whatsapp svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

@media (max-width: 920px) {
    .menu-toggle {
        display: block;
    }

    .navigation {
        position: fixed;
        inset: 84px 0 auto;
        padding: 24px 20px 30px;
        display: none;
        align-items: stretch;
        gap: 0;
        background: var(--white);
        box-shadow: var(--shadow);
    }

    .navigation.open {
        display: flex;
        flex-direction: column;
    }

    .navigation a,
    .site-header .navigation a {
        padding: 14px 0;
        color: var(--ink);
        border-bottom: 1px solid var(--line);
    }

    .navigation .nav-access,
    .site-header.scrolled .navigation .nav-access {
        margin-top: 16px;
        padding: 12px 14px;
        color: var(--white);
        text-align: center;
        border: 0;
        background: var(--navy);
    }

    .site-header .navigation .nav-access {
        color: var(--white);
    }

    .menu-toggle[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .trust-inner {
        grid-template-columns: 1fr;
    }

    .trust-inner div,
    .trust-inner div:last-child {
        min-height: auto;
        padding: 20px 0;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.16);
        border-left: 0;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-card:nth-child(odd) {
        border-left: 1px solid var(--line);
    }

    .service-card:nth-child(2) {
        border-right: 1px solid var(--line);
    }

    .about-inner {
        gap: 44px;
    }

    .contact {
        gap: 48px;
    }
}

@media (max-width: 680px) {
    .header-inner {
        width: min(calc(100% - 28px), var(--content));
        height: 72px;
    }

    .brand {
        width: 132px;
        height: 52px;
    }

    .navigation {
        inset: 72px 0 auto;
    }

    .hero {
        min-height: 92svh;
        background-position: 58% center;
    }

    .hero-inner {
        width: min(calc(100% - 32px), var(--content));
        padding: 120px 0 110px;
    }

    .hero h1 {
        font-size: clamp(2.8rem, 15vw, 4.2rem);
    }

    .hero-copy {
        margin-top: 20px;
        font-size: 1rem;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
        margin-top: 26px;
    }

    .hero-location {
        right: auto;
        bottom: 20px;
        left: 16px;
    }

    .section {
        width: min(calc(100% - 32px), var(--content));
        padding: 76px 0;
    }

    .section-heading {
        margin-bottom: 34px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card,
    .service-card:first-child,
    .service-card:nth-child(odd) {
        min-height: auto;
        padding: 24px 20px;
        border-right: 1px solid var(--line);
        border-bottom: 1px solid var(--line);
        border-left: 1px solid var(--line);
    }

    .service-number {
        margin-bottom: 32px;
    }

    .about-inner {
        width: min(calc(100% - 32px), var(--content));
        padding: 76px 0;
        grid-template-columns: 1fr;
    }

    .about-mark {
        max-width: 280px;
    }

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

    .contact-details div {
        grid-template-columns: 1fr;
    }

    .contact-details > div > a {
        grid-column: 1;
    }

    .site-footer {
        padding: 28px 16px 88px;
        align-items: flex-start;
        flex-direction: column;
    }

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

    .floating-whatsapp {
        right: 16px;
        bottom: 16px;
    }
}

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

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}
