@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/montserrat-400-normal.ttf') format('truetype');
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/montserrat-400-italic.ttf') format('truetype');
    font-style: italic;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/montserrat-500-normal.ttf') format('truetype');
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/montserrat-600-normal.ttf') format('truetype');
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/montserrat-700-normal.ttf') format('truetype');
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/montserrat-800-normal.ttf') format('truetype');
    font-style: normal;
    font-weight: 800;
    font-display: swap;
}

:root {
    --navy: #07182D;
    --navy-2: #0E2542;
    --blue: #125BAB;
    --blue-light: #8FB4E0;
    --steel: #5C6977;
    --steel-tint: #F2F4F6;
    --line: #E2E6EA;
    --white: #FFFFFF;
    --muted-on-navy: #8FA3BC;
    --light-on-navy: #DCE3EA;
    --maxw: 1180px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', -apple-system, sans-serif;
    color: var(--navy);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.wrap {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 32px;
}

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

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

ul {
    list-style: none;
}

h1,
h2,
h3,
h4 {
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.eyebrow::before {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--blue);
    display: inline-block;
}

.eyebrow.on-navy {
    color: var(--blue-light);
}

.eyebrow.on-navy::before {
    background: var(--blue-light);
}

section {
    padding: 96px 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 28px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    border-radius: 2px;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: all .2s ease;
}

.btn-primary {
    background: var(--blue);
    color: #fff;
}

.btn-primary:hover {
    background: #0e4a8c;
    transform: translateY(-1px);
}

.btn-outline {
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}

.btn-outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.btn-outline-dark {
    border-color: var(--line);
    color: var(--navy);
}

.btn-outline-dark:hover {
    border-color: var(--navy);
}

/* ---------- NAV ---------- */
#nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0);
    border-bottom: 1px solid transparent;
    transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}

#nav.scrolled {
    background: rgba(255, 255, 255, 0.97);
    border-bottom-color: var(--line);
    box-shadow: 0 2px 16px rgba(7, 24, 45, 0.05);
    backdrop-filter: blur(6px);
}

#nav .navrow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 78px;
}

#nav .logo-img {
    height: 30px;
    width: auto;
    transition: opacity .2s ease;
}

#nav .logo-dark {
    display: block;
}

#nav .logo-white {
    display: none;
}

#nav.on-dark .logo-dark {
    display: none;
}

#nav.on-dark .logo-white {
    display: block;
}

#nav ul {
    display: flex;
    gap: 38px;
    align-items: center;
}

#nav ul li a {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--steel);
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: color .2s ease, border-color .2s ease;
}

#nav.on-dark ul li a {
    color: var(--light-on-navy);
}

#nav ul li a:hover {
    color: var(--blue);
    border-color: var(--blue);
}

#nav.on-dark ul li a:hover {
    color: #fff;
    border-color: #fff;
}

#nav .btn {
    padding: 11px 22px;
    font-size: 12.5px;
}

#nav-toggle {
    display: none;
}

/* ---------- HERO ---------- */
#hero {
    position: relative;
    background: var(--navy);
    color: #fff;
    overflow: hidden;
    padding: 200px 0 140px;
    min-height: 92vh;
    display: flex;
    align-items: center;
}

#hero .wrap {
    position: relative;
    z-index: 2;
}

#hero .kicker {
    font-size: 13px;
    letter-spacing: 0.22em;
    color: var(--blue-light);
    font-weight: 700;
    margin-bottom: 28px;
    text-transform: uppercase;
}

#hero h1 {
    font-size: clamp(38px, 5.6vw, 68px);
    max-width: 920px;
}

#hero h1 .accent {
    color: var(--blue-light);
}

#hero .sub {
    font-size: 18px;
    color: var(--light-on-navy);
    max-width: 560px;
    margin: 26px 0 40px;
    line-height: 1.6;
    font-weight: 400;
}

#hero .cta-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

#hero .stats {
    display: flex;
    gap: 56px;
    margin-top: 80px;
    flex-wrap: wrap;
}

#hero .stat b {
    display: block;
    font-size: 34px;
    color: #fff;
    font-weight: 800;
}

#hero .stat span {
    font-size: 12px;
    color: var(--muted-on-navy);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-top: 4px;
    display: block;
}

#hero-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.9;
    animation: network-drift 16s ease-in-out infinite alternate;
    transform-origin: center;
    transform-box: fill-box;
}

.hero-network-lines line {
    stroke-dasharray: 12 8;
    animation: network-line-flow 2.8s linear infinite;
}

.hero-network-nodes {
    animation: network-pulse 3.6s ease-in-out infinite;
}

.hero-network-nodes circle {
    animation: network-node-pulse 3.6s ease-in-out infinite;
    transform-origin: center;
    transform-box: fill-box;
}

@keyframes network-drift {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(-18px, 12px) scale(1.035);
    }
}

@keyframes network-pulse {
    0%,
    100% {
        opacity: 0.82;
    }

    50% {
        opacity: 1;
    }
}

@keyframes network-node-pulse {
    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.12);
    }
}

@keyframes network-line-flow {
    to {
        stroke-dashoffset: -40;
    }
}

.scroll-cue {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--muted-on-navy);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: float 2.4s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translate(-50%, 0);
    }

    50% {
        transform: translate(-50%, 8px);
    }
}

.scroll-cue .line {
    width: 1px;
    height: 30px;
    background: linear-gradient(var(--blue-light), transparent);
}

/* ---------- REVEAL ANIMATION ---------- */
[reveal].reveal-ready {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s ease, transform .7s ease;
}

[reveal].reveal-ready.in-view {
    opacity: 1;
    transform: translateY(0);
}

[reveal="1"] {
    transition-delay: .05s;
}

[reveal="2"] {
    transition-delay: .15s;
}

[reveal="3"] {
    transition-delay: .25s;
}

[reveal="4"] {
    transition-delay: .35s;
}

/* ---------- SHARED SECTION STYLES ---------- */
.section-tint {
    background: var(--steel-tint);
}

.section-navy {
    background: var(--navy);
    color: #fff;
}

.section-head {
    max-width: 680px;
    margin-bottom: 56px;
}

.section-head h2 {
    font-size: clamp(28px, 3.4vw, 42px);
    color: var(--navy);
}

.section-navy .section-head h2 {
    color: #fff;
}

.section-head p {
    font-size: 16px;
    color: var(--steel);
    margin-top: 16px;
    line-height: 1.65;
}

.section-navy .section-head p {
    color: var(--light-on-navy);
}

.icn {
    width: 26px;
    height: 26px;
    stroke: #fff;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-circle.sm {
    width: 44px;
    height: 44px;
}

.icon-circle.sm .icn {
    width: 20px;
    height: 20px;
}

/* ---------- QUIENES SOMOS ---------- */
#nosotros .grid-2 {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    align-items: start;
}

#nosotros p.lead {
    font-size: 17px;
    line-height: 1.75;
    color: var(--steel);
    margin-bottom: 36px;
}

.fact-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.fact-row .fact b {
    display: block;
    font-size: 15px;
    color: var(--navy);
    margin-bottom: 6px;
}

.fact-row .fact span {
    font-size: 13px;
    color: var(--steel);
    line-height: 1.5;
}

.model-card {
    background: var(--navy);
    color: #fff;
    padding: 40px;
}

.model-card .m-eyebrow {
    font-size: 11px;
    letter-spacing: 0.12em;
    color: var(--blue-light);
    font-weight: 700;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.model-card h3 {
    font-size: 22px;
    margin-bottom: 26px;
    font-weight: 700;
    line-height: 1.35;
}

.model-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 13.5px;
    color: var(--light-on-navy);
}

.model-item:first-of-type {
    border-top: none;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--blue-light);
    flex-shrink: 0;
}

/* ---------- PROBLEMA ---------- */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.problem-card {
    background: #fff;
    border: 1px solid var(--line);
    padding: 32px 28px;
}

.problem-card .num {
    font-size: 34px;
    font-weight: 800;
    color: #D5DAE0;
    margin-bottom: 18px;
}

.problem-card h4 {
    font-size: 16px;
    margin-bottom: 10px;
}

.problem-card p {
    font-size: 13.5px;
    color: var(--steel);
    line-height: 1.6;
}

/* ---------- SOLUCION ---------- */
.pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 16px;
}

.pillar {
    background: var(--navy-2);
    padding: 36px 32px;
}

.pillar h3 {
    font-size: 17px;
    margin: 22px 0 12px;
    letter-spacing: 0.02em;
}

.pillar p {
    font-size: 14px;
    color: var(--light-on-navy);
    line-height: 1.65;
}

.headline-lockup {
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 800;
    line-height: 1.3;
    max-width: 820px;
}

.headline-lockup .dim {
    color: var(--muted-on-navy);
}

/* ---------- SERVICIOS ---------- */
.service-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 24px;
}

.service-card {
    padding: 40px;
}

.service-card.light {
    background: var(--steel-tint);
}

.service-card.dark {
    background: var(--navy);
    color: #fff;
}

.service-card .s-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.service-card h3 {
    font-size: 19px;
}

.service-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 14px;
    border-top: 1px solid var(--line);
}

.service-card.dark .service-list li {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--light-on-navy);
}

.service-list li:first-child {
    border-top: none;
}

/* ---------- COBERTURA ---------- */
#cobertura {
    background: var(--navy);
    color: #fff;
    overflow: hidden;
}

.coverage-wrap {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 48px;
    align-items: center;
}

#map-svg {
    width: 100%;
    height: auto;
}

#map-svg text {
    font-family: 'Montserrat', sans-serif;
}

.coverage-legend {
    margin-top: 28px;
}

.coverage-legend .leg-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--light-on-navy);
    margin-bottom: 12px;
}

.leg-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.coverage-note {
    font-size: 13px;
    color: var(--muted-on-navy);
    line-height: 1.7;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ---------- SECTORES ---------- */
.sector-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.sector-card {
    background: var(--steel-tint);
    padding: 26px 22px;
    transition: transform .2s ease, box-shadow .2s ease;
}

.sector-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(7, 24, 45, 0.08);
}

.sector-card.featured {
    background: var(--navy);
    color: #fff;
}

.sector-card h4 {
    font-size: 14.5px;
    margin: 16px 0 8px;
}

.sector-card p {
    font-size: 12px;
    color: var(--steel);
    line-height: 1.55;
}

.sector-card.featured p {
    color: var(--light-on-navy);
}

/* ---------- PROGRAMAS ---------- */
.program-band {
    background: var(--navy);
    padding: 64px 56px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.program-band .p-item {
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0 24px;
}

.program-band .p-item:last-child {
    border-right: none;
}

.program-band b {
    font-size: 52px;
    font-weight: 800;
    color: var(--blue-light);
    display: block;
}

.program-band span {
    font-size: 13px;
    color: var(--light-on-navy);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-top: 8px;
    display: block;
}

/* ---------- PROCESO ---------- */
.process-track {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: 20px;
}

.process-track::before {
    content: '';
    position: absolute;
    top: 26px;
    left: 52px;
    right: 52px;
    height: 1px;
    background: var(--line);
}

.process-step {
    flex: 1;
    text-align: center;
    position: relative;
    padding: 0 8px;
}

.process-step .p-num {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    margin: 0 auto 20px;
    position: relative;
    z-index: 2;
}

.process-step h4 {
    font-size: 14px;
    margin-bottom: 10px;
}

.process-step p {
    font-size: 12.5px;
    color: var(--steel);
    line-height: 1.55;
}

/* ---------- POR QUE VANTOR ---------- */
.reason-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px 28px;
}

.reason {
    display: flex;
    gap: 16px;
}

.reason h4 {
    font-size: 14.5px;
    margin-bottom: 8px;
}

.reason p {
    font-size: 13px;
    color: var(--steel);
    line-height: 1.6;
}

/* ---------- COMERCIO EXTERIOR ---------- */
.flow-wrap {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 48px;
}

.flow-box {
    flex: 1;
    background: var(--navy-2);
    padding: 28px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.flow-box h4 {
    font-size: 16px;
}

.flow-mid {
    flex: 1.3;
}

.flow-line {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--light-on-navy);
    margin-bottom: 18px;
}

.flow-line .fl-track {
    flex: 1;
    height: 1px;
    background: var(--blue);
    position: relative;
}

.flow-line .fl-track::after {
    content: '';
    position: absolute;
    right: -1px;
    top: -3px;
    width: 0;
    height: 0;
    border-top: 3px solid transparent;
    border-bottom: 3px solid transparent;
    border-left: 6px solid var(--blue);
}

.flow-line.secondary .fl-track {
    background: #3D6EA8;
}

.flow-line.secondary .fl-track::after {
    border-left-color: #3D6EA8;
}

.flow-line.secondary {
    color: var(--muted-on-navy);
}

.ports-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 44px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.port-chip {
    font-size: 12.5px;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--light-on-navy);
}

/* ---------- CTA / CONTACTO ---------- */
#contacto {
    background: var(--navy);
    color: #fff;
}

.contact-wrap {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 64px;
}

#contacto h2 {
    font-size: clamp(28px, 3.6vw, 40px);
    margin-bottom: 20px;
}

#contacto .sub {
    font-size: 15px;
    color: var(--light-on-navy);
    line-height: 1.7;
    margin-bottom: 32px;
}

.contact-point {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--light-on-navy);
}

.form-card {
    background: var(--navy-2);
    padding: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}

.field label {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--blue-light);
    font-weight: 700;
    margin-bottom: 8px;
    display: block;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    padding: 8px 2px;
    outline: none;
    transition: border-color .2s ease;
}

.field input::placeholder,
.field textarea::placeholder {
    color: #5C7591;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--blue-light);
}

.field select option {
    background: var(--navy);
}

.form-card .btn {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
}

.form-note {
    font-size: 11.5px;
    color: var(--muted-on-navy);
    margin-top: 14px;
    text-align: center;
}

/* ---------- FOOTER ---------- */
footer {
    background: #051220;
    color: var(--muted-on-navy);
    padding: 56px 0 28px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand img {
    height: 24px;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 13px;
    line-height: 1.7;
    max-width: 280px;
    color: var(--muted-on-navy);
}

.footer-col h5 {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--light-on-navy);
    margin-bottom: 18px;
    font-weight: 700;
}

.footer-col li {
    margin-bottom: 11px;
}

.footer-col a {
    font-size: 13px;
    color: var(--muted-on-navy);
    transition: color .2s ease;
}

.footer-col a:hover {
    color: #fff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 28px;
    font-size: 12px;
    flex-wrap: wrap;
    gap: 12px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width:900px) {
    #nav ul {
        position: fixed;
        top: 78px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        padding: 24px 32px;
        gap: 0;
        border-bottom: 1px solid var(--line);
        display: none;
        box-shadow: 0 12px 24px rgba(7, 24, 45, 0.08);
    }

    #nav ul.open {
        display: flex;
    }

    #nav ul li {
        width: 100%;
        padding: 14px 0;
        border-bottom: 1px solid var(--line);
    }

    #nav ul li a {
        color: var(--navy) !important;
    }

    #nav ul li:last-child {
        border-bottom: none;
        padding-top: 20px;
    }

    #nav ul li .btn {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    #nav-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        background: none;
        border: none;
        padding: 8px;
    }

    #nav-toggle span {
        width: 22px;
        height: 2px;
        background: var(--navy);
    }

    #nav.on-dark #nav-toggle span {
        background: #fff;
    }

    #nav.scrolled.on-dark #nav-toggle span {
        background: var(--navy);
    }

    section {
        padding: 64px 0;
    }

    .wrap {
        padding: 0 22px;
    }

    #hero {
        padding: 150px 0 80px;
        min-height: auto;
        text-align: left;
    }

    #hero .stats {
        gap: 32px;
        margin-top: 56px;
    }

    #nosotros .grid-2 {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .fact-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

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

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

    .coverage-wrap {
        grid-template-columns: 1fr;
    }

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

    .program-band {
        grid-template-columns: 1fr;
        padding: 40px 28px;
        gap: 32px;
    }

    .program-band .p-item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 28px;
    }

    .program-band .p-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .process-track {
        flex-direction: column;
        gap: 32px;
    }

    .process-track::before {
        display: none;
    }

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

    .flow-wrap {
        flex-direction: column;
    }

    .contact-wrap {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width:560px) {
    .problem-grid {
        grid-template-columns: 1fr;
    }

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

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

    #hero .cta-row {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ---------- UTILIDADES DE MARCADO ---------- */
.icon-sprite {
    display: none;
}

.nav-logo-link {
    display: flex;
    align-items: center;
}

.section-title-compact {
    font-size: clamp(26px, 3.2vw, 38px);
}

.section-title-compact--spaced {
    margin-bottom: 24px;
}

.section-title-compact--coverage {
    margin-bottom: 44px;
}

.section-head--compact {
    margin-bottom: 32px;
}

.service-icon {
    width: 16px;
    height: 16px;
}

.service-icon--blue {
    stroke: var(--blue);
}

.service-icon--blue-light {
    stroke: var(--blue-light);
}

.coverage-copy {
    font-size: 16px;
    color: var(--light-on-navy);
    line-height: 1.7;
    margin-bottom: 32px;
}

.leg-dot--hub {
    background: #125BAB;
}

.leg-dot--corridor {
    background: #8FB4E0;
}

.sector-icon {
    stroke: #fff;
}

.programs-section {
    padding: 0 0 96px;
}

.flow-track--reverse {
    order: 2;
}

.flow-label--reverse {
    order: 3;
}

.contact-icon {
    width: 18px;
    height: 18px;
    stroke: var(--blue-light);
}

.field--message {
    margin-bottom: 22px;
}

.privacy-note {
    margin-top: 10px;
    color: var(--muted-on-navy);
    font-size: 10.5px;
    line-height: 1.5;
    text-align: center;
}

/* ---------- MODO OSCURO ---------- */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 14px;
}

.theme-toggle {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: transparent;
    color: var(--navy);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

#nav.on-dark .theme-toggle {
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}

body.dark-mode {
    background: #0D1B2A;
    color: #F1F5F9;
}

body.dark-mode #nav.scrolled {
    background: rgba(13, 27, 42, 0.97);
    border-bottom-color: #29415C;
}

body.dark-mode #nav .logo-dark {
    display: none;
}

body.dark-mode #nav .logo-white {
    display: block;
}

body.dark-mode #nav ul li a,
body.dark-mode .theme-toggle {
    color: #DCE3EA;
}

body.dark-mode .theme-toggle {
    border-color: #46617F;
}

body.dark-mode #nav-toggle span,
body.dark-mode #nav.scrolled.on-dark #nav-toggle span {
    background: #fff;
}

body.dark-mode .section-tint,
body.dark-mode .service-card.light,
body.dark-mode .sector-card,
body.dark-mode .problem-card {
    background: #14263A;
}

body.dark-mode .problem-card,
body.dark-mode .fact-row {
    border-color: #29415C;
}

body.dark-mode .section-head h2,
body.dark-mode .fact-row .fact b {
    color: #F1F5F9;
}

body.dark-mode #nosotros p.lead,
body.dark-mode .fact-row .fact span,
body.dark-mode .problem-card p,
body.dark-mode .sector-card p,
body.dark-mode .process-step p,
body.dark-mode .reason p {
    color: #B8C7D8;
}

body.dark-mode .service-list li {
    border-color: #29415C;
}

body.dark-mode .sector-card.featured {
    background: var(--navy);
}

body.dark-mode .sector-card.featured p {
    color: var(--light-on-navy);
}

body.dark-mode .btn-outline-dark {
    border-color: #46617F;
    color: #F1F5F9;
}

@media (max-width:900px) {
    body.dark-mode #nav ul {
        background: #14263A;
        border-bottom-color: #29415C;
    }

    body.dark-mode #nav ul li {
        border-bottom-color: #29415C;
    }

    body.dark-mode #nav ul li a {
        color: #F1F5F9 !important;
    }
}

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

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
