:root {
    --navy: #001435;
    --navy-2: #04375d;
    --navy-3: #054466;
    --blue: #188ece;
    --blue-light: #429ffc;
    --ink: #25282b;
    --muted: #5d6974;
    --paper: #ffffff;
    --mist: #f2f4f6;
    --line: #dce3e8;
    --red: #e3002b;
    --shadow: 0 24px 70px rgba(0, 20, 53, 0.14);
    --container: 1300px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Avenir", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    background: var(--mist);
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
}

p {
    margin: 0;
    font-size: 17px;
    line-height: 1.78;
}

h1,
h2,
h3 {
    margin: 0;
    color: var(--navy-3);
    font-weight: 700;
    letter-spacing: -0.035em;
}

.container {
    width: min(calc(100% - 48px), var(--container));
    margin: 0 auto;
}

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

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

/* NAVBAR */
.paySoftNav {
    position: absolute;
    inset: 0 0 auto;
    z-index: 20;
    padding: 25px 0;
    color: var(--paper);
}

.nav-inner {
    display: flex;
    align-items: center;
    min-height: 52px;
}

.navbar-brand {
    position: relative;
    z-index: 22;
    flex: 0 0 auto;
}

.navbar-brand img {
    width: 176px;
    height: auto;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 36px;
    margin: 0 28px 0 auto;
    padding: 0;
    list-style: none;
}

.nav-link {
    position: relative;
    display: inline-block;
    padding: 10px 0;
    color: var(--paper);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .035em;
    text-decoration: none;
    text-transform: uppercase;
}

.nav-link::after {
    position: absolute;
    right: 0;
    bottom: 2px;
    left: 0;
    height: 2px;
    content: "";
    background: var(--blue-light);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .24s ease;
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
    transform: scaleX(1);
}

/* LANGUAGE DROPDOWN */
.lang-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-left: 10px;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--paper);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 10px;
    font-family: inherit;
}

.lang-btn::after {
    content: "";
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.2s;
}

.lang-dropdown.is-open .lang-btn::after {
    transform: rotate(225deg) translateY(0px);
}

.lang-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--paper);
    list-style: none;
    padding: 8px 0;
    margin: 0;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    min-width: 60px;
    z-index: 100;
    text-align: center;
}

.lang-dropdown.is-open .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-menu li a {
    display: block;
    padding: 6px 16px;
    color: var(--navy-3);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.lang-menu li a:hover,
.lang-menu li a.active {
    color: var(--blue);
    background: var(--mist);
}

.menu-toggle {
    display: none;
    position: relative;
    z-index: 22;
    width: 46px;
    height: 44px;
    margin-left: auto;
    padding: 10px;
    border: 0;
    color: var(--paper);
    background: transparent;
    cursor: pointer;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px 0;
    content: "";
    background: currentColor;
    transition: transform .2s ease, opacity .2s ease;
}

/* BUTTONS */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 50px;
    margin-top: 38px;
    padding: 13px 24px;
    border: 1px solid transparent;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}

.button::after {
    content: "→";
    font-size: 18px;
    line-height: 1;
}

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

.button-primary {
    color: var(--navy);
    background: var(--paper);
}

.button-primary:hover,
.button-primary:focus-visible {
    color: var(--paper);
    border-color: var(--blue);
    background: var(--blue);
}

.button-blue {
    color: var(--paper);
    background: var(--blue);
    border-color: var(--blue);
}

.button-blue:hover,
.button-blue:focus-visible {
    background: var(--navy-3);
    border-color: var(--navy-3);
}

/* CONTACTOS - HERO COM REDE SVG */
.contact-hero {
    position: relative;
    overflow: hidden;
    min-height: 650px;
    padding: 180px 0 110px;
    color: var(--paper);
    background: radial-gradient(circle at 77% 28%, rgba(24, 142, 206, .2), transparent 25%), linear-gradient(135deg, var(--navy) 0%, #032b50 100%);
}

.contact-hero::before {
    position: absolute;
    top: 122px;
    right: -62px;
    width: 280px;
    height: 280px;
    content: "";
    opacity: .42;
    background-image: radial-gradient(rgba(255, 255, 255, .55) 1.3px, transparent 1.3px);
    background-size: 14px 14px;
    transform: rotate(12deg);
}

.contact-hero::after {
    position: absolute;
    bottom: -70px;
    left: -72px;
    width: 220px;
    height: 220px;
    content: "";
    border: 44px solid rgba(24, 142, 206, .18);
    transform: rotate(45deg);
}

.contact-hero .hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
    gap: 84px;
    align-items: center;
}

.contact-hero .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 27px;
    color: #9dd7f6;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .17em;
    text-transform: uppercase;
}

.contact-hero .eyebrow::before {
    width: 28px;
    height: 3px;
    content: "";
    background: var(--blue-light);
}

.contact-hero h1 {
    max-width: 780px;
    color: var(--paper);
    font-size: clamp(50px, 5.4vw, 78px);
    line-height: .98;
    margin: 0;
}

.contact-hero h1 span {
    display: block;
    color: var(--blue-light);
}

.contact-hero .hero-copy {
    max-width: 680px;
    margin-top: 31px;
    color: #d8e4ec;
    font-size: 19px;
    line-height: 1.65;
}

.contact-hero-visual {
    position: relative;
    width: min(460px, 100%);
    min-height: 370px;
    margin-left: auto;
    display: grid;
    place-items: center;
}

.network-svg {
    width: 100%;
    height: auto;
    max-width: 480px;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.2));
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.85);
        opacity: 0.8;
    }

    70% {
        transform: scale(1.4);
        opacity: 0;
    }

    100% {
        transform: scale(0.85);
        opacity: 0;
    }
}

.pulse-ring {
    transform-origin: 200px 200px;
    animation: pulse-ring 2.5s infinite ease-out;
}

.section-kicker {
    display: block;
    margin-bottom: 21px;
    color: var(--blue);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.section-title {
    font-size: clamp(36px, 4vw, 55px);
    line-height: 1.08;
}

/* CONTENT SECTIONS */
.contact-section {
    padding: 110px 0;
    background: var(--paper);
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(300px, .82fr);
    gap: 78px;
    align-items: start;
}

.contact-form-panel {
    padding: 46px;
    background: #fff;
    border-top: 4px solid var(--blue);
    box-shadow: 0 18px 50px rgba(0, 20, 53, .09);
}

.contact-form-panel h2,
.direct-contact h2,
.locations h2,
.careers-cta h2 {
    color: var(--navy-3);
    font-size: clamp(32px, 3.3vw, 46px);
    line-height: 1.08;
}

.contact-form-intro {
    margin-top: 18px;
    color: var(--muted);
}

.contact-form {
    display: grid;
    gap: 22px;
    margin-top: 34px;
}

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

.field {
    display: grid;
    gap: 8px;
}

.field label {
    color: var(--navy-3);
    font-size: 14px;
    font-weight: 700;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 50px;
    padding: 13px 15px;
    border: 1px solid #cfd9e1;
    border-radius: 5px;
    color: var(--ink);
    background: #fff;
    font: inherit;
    font-size: 15px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.field textarea {
    min-height: 165px;
    resize: vertical;
    line-height: 1.55;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(24, 142, 206, .14);
}

.required-note {
    color: var(--muted);
    font-size: 13px;
}

.privacy-check {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.privacy-check input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--blue);
}

.privacy-check a {
    color: var(--navy-3);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.contact-form .button {
    justify-self: start;
    margin-top: 2px;
    border: 0;
    cursor: pointer;
}

.form-status {
    display: none;
    margin-top: 8px;
    padding: 18px 20px;
    border-left: 4px solid var(--blue);
    background: #eef6fb;
}

.form-status.is-visible {
    display: block;
}

.form-status h3 {
    margin-bottom: 6px;
    color: var(--navy-3);
    font-size: 18px;
    letter-spacing: 0;
}

.form-status p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.form-status.is-error {
    border-left-color: var(--red);
    background: #fdeef1;
}

.contact-form .button:disabled {
    opacity: .7;
    cursor: wait;
    transform: none;
}

.form-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.direct-contact {
    position: sticky;
    top: 28px;
    padding: 38px 34px;
    color: var(--paper);
    background: radial-gradient(circle at 85% 10%, rgba(66, 159, 252, .22), transparent 30%), linear-gradient(135deg, var(--navy) 0%, #032b50 100%);
    box-shadow: var(--shadow);
}

.direct-contact h2 {
    color: var(--paper);
    font-size: 31px;
}

.direct-contact>p {
    margin-top: 17px;
    color: #d8e4ec;
    font-size: 15px;
}

.contact-detail {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, .16);
}

.contact-detail strong {
    display: block;
    margin-bottom: 7px;
    color: #9dd7f6;
    font-size: 12px;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.contact-detail a,
.contact-detail span {
    color: var(--paper);
    font-size: 17px;
    line-height: 1.6;
    text-decoration: none;
}

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

.locations {
    padding: 110px 0;
    background: var(--mist);
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 52px;
}

.location-card {
    position: relative;
    min-height: 300px;
    padding: 34px 30px;
    overflow: hidden;
    border-top: 4px solid var(--blue);
    background: #fff;
    box-shadow: 0 12px 36px rgba(0, 20, 53, .07);
}

.location-card::after {
    position: absolute;
    right: -26px;
    bottom: -30px;
    width: 92px;
    height: 92px;
    content: "";
    border: 18px solid rgba(24, 142, 206, .08);
    transform: rotate(45deg);
}

.location-card h3 {
    color: var(--navy-3);
    font-size: 26px;
    letter-spacing: -.025em;
    margin-bottom: 24px;
}

.location-card address {
    color: var(--muted);
    font-style: normal;
    font-size: 15px;
    line-height: 1.8;
}

.map-link {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    color: var(--navy-3);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.map-link::after {
    content: "→";
    font-size: 17px;
}

.map-link:hover {
    color: var(--blue);
}

.careers-cta {
    overflow: hidden;
    padding: 94px 0;
    color: var(--paper);
    background: var(--navy-2);
    position: relative;
}

.careers-cta::before {
    position: absolute;
    top: -80px;
    right: 7%;
    width: 220px;
    height: 220px;
    content: "";
    opacity: .35;
    background-image: radial-gradient(rgba(255, 255, 255, .75) 1.2px, transparent 1.2px);
    background-size: 13px 13px;
    transform: rotate(11deg);
}

.careers-cta-inner {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 70px;
    align-items: center;
}

.careers-cta h2 {
    color: var(--paper);
    max-width: 720px;
}

.careers-cta p {
    max-width: 690px;
    margin-top: 20px;
    color: #d8e4ec;
}

.careers-cta .button {
    flex: 0 0 auto;
    margin-top: 0;
}

/* FOOTER */
.footerWidgets {
    color: var(--paper);
    background: var(--navy-2);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
}

.footerLinks {
    display: grid;
    grid-template-columns: .7fr 1.3fr;
    gap: 54px;
    padding: 64px max(5vw, 42px) 64px max(calc((100vw - var(--container)) / 2), 24px);
    background: #054371;
}

.footerSocial {
    padding: 64px max(calc((100vw - var(--container)) / 2), 48px) 64px 58px;
    background: #054371;
}

.footerLinks h2,
.footerSocial h2 {
    margin-bottom: 25px;
    color: var(--paper);
    font-size: 20px;
    letter-spacing: 0;
}

.footerLinks ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-empresa {
    display: grid;
    justify-content: center;
    justify-items: start;
}

.footerLinks a,
.footerLinks p,
.footerSocial p,
.footerSocial a {
    color: rgba(255, 255, 255, .82);
    font-size: 14px;
    line-height: 1.8;
    text-decoration: none;
}

.footerLinks a,
.footerSocial a {
    display: inline-block;
    margin-bottom: 5px;
}

.footerSocial a {
    display: block;
}

.footerLinks a:hover,
.footerSocial a:hover {
    color: var(--paper);
    text-decoration: underline;
}

.footerSocial img {
    width: 176px;
    margin-bottom: 27px;
}

.footer-bottom {
    padding: 27px 0 29px;
    color: var(--paper);
    background: var(--navy-2);
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.funding-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px 38px;
    margin-bottom: 25px;
}

.funding-logos img {
    width: auto;
    max-width: min(400px, 100%);
    height: 38px;
    object-fit: contain;
}

.footer-bottom p {
    font-size: 13px;
    text-align: center;
    margin: 0;
}

/* SCROLL TO TOP BUTTON */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background-color: var(--blue, #188ece);
    color: var(--paper, #ffffff);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 20, 53, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.scroll-to-top:hover,
.scroll-to-top:focus-visible {
    background-color: var(--navy-3, #054466);
    transform: translateY(0) scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 20, 53, 0.25);
}

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

/* RESPONSIVE */
@media (max-width: 850px) {
    .container {
        width: min(calc(100% - 36px), var(--container));
    }

    .menu-toggle {
        display: block;
    }

    .navbar-nav,
    .lang-dropdown {
        display: none;
    }

    .nav-inner.is-open .navbar-nav {
        position: fixed;
        inset: 0;
        z-index: 21;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 26px;
        margin: 0;
        padding: 110px 28px 50px;
        background: rgba(0, 20, 53, .98);
    }

    .nav-inner.is-open .nav-link {
        font-size: 20px;
    }

    .nav-inner.is-open .menu-toggle span {
        opacity: 0;
    }

    .nav-inner.is-open .menu-toggle::before {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-inner.is-open .menu-toggle::after {
        transform: translateY(-7px) rotate(-45deg);
    }

    .contact-hero {
        padding-top: 145px;
    }

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

    .contact-hero .hero-grid {
        gap: 58px;
    }

    .contact-hero-visual {
        width: min(500px, calc(100% - 20px));
        margin: 0 auto;
    }

    .direct-contact {
        position: static;
    }

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

    .careers-cta-inner {
        display: block;
    }

    .careers-cta .button {
        margin-top: 34px;
    }

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

    .footerLinks {
        padding-right: 24px;
        padding-left: 24px;
    }

    .footerSocial {
        padding: 55px 24px;
    }

    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 560px) {
    .contact-hero {
        padding: 140px 0 75px;
    }

    .contact-hero h1 {
        font-size: clamp(43px, 13vw, 60px);
    }

    .contact-hero-visual {
        min-height: 300px;
    }

    .contact-section,
    .locations {
        padding: 74px 0;
    }

    .contact-form-panel,
    .direct-contact {
        padding: 30px 22px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .careers-cta {
        padding: 76px 0;
    }

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

    .footer-empresa {
        justify-content: start;
    }

    .funding-logos img {
        height: 28px;
    }
}