/* ============================================================
   UAP DESIGN SYSTEM — Ingeniería de Precisión Clínica
   Paleta: #1a3a5c · #4a9fd4 · #ffffff · #f5f7fa
   Tipografía: Barlow Condensed (display) + Barlow (body)
   
   FUENTES — añadir en <head> antes de este CSS:
   <link href="https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=Barlow:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap" rel="stylesheet">
============================================================ */

:root {
    --navy: #1a3a5c;
    --navy-deep: #0d1e2e;
    --navy-mid: #1a4a6c;
    --accent: #4a9fd4;
    --accent-dim: rgba(74, 159, 212, 0.18);
    --white: #ffffff;
    --off-white: #f5f7fa;
    --border: #e0e5eb;
    --text: #1a2a3a;
    --muted: #5a6a7a;

    --fd: 'Barlow Condensed', sans-serif;
    /* display / títulos */
    --fb: 'Barlow', sans-serif;
    /* body / UI */

    --nav-h: 72px;
    --ease: all 0.3s ease;
    --r: 3px;
}

/* ── RESET ───────────────────────────────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--fb);
    background: var(--off-white);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    transition: var(--ease);
}

ul {
    list-style: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 3.5rem);
}

/* ── NAVBAR ──────────────────────────────────── */
.navbar {
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--nav-h);
    z-index: 1000;
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

.navbar.scrolled {
    background: rgba(13, 30, 46, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(74, 159, 212, 0.15), 0 8px 40px rgba(0, 0, 0, 0.4);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* Logo: imagen PNG + claim en columna */
.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo img {
    height: 30px;
    display: block;
}

.logo-claim {
    font-family: var(--fb);
    font-size: 0.52rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    line-height: 1;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-family: var(--fb);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.82);
}

.nav-links a:hover {
    color: var(--accent);
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--navy-deep);
    min-width: 170px;
    border: 1px solid rgba(74, 159, 212, 0.18);
    border-radius: var(--r);
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    z-index: 100;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.navbar .nav-links .dropdown-content a {
    display: block;
    padding: 0.65rem 1.2rem;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.75);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-transform: none;
    letter-spacing: 0;
}

.navbar .nav-links .dropdown-content a:hover {
    background: var(--accent-dim);
    color: var(--accent);
}

.btn-nav {
    font-family: var(--fb);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--navy-deep);
    background: var(--accent);
    padding: 0.55rem 1.5rem;
    border-radius: var(--r);
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-nav:hover {
    background: white;
    color: var(--navy);
}

.mobile-menu {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    flex-shrink: 0;
}

.mobile-menu span {
    display: block;
    width: 22px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: var(--ease);
}

/* ── HERO ────────────────────────────────────── */
.hero {
    position: relative;
    height: 100vh;
    min-height: 620px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(155deg,
            rgba(13, 30, 46, 0.93) 0%,
            rgba(26, 58, 92, 0.78) 55%,
            rgba(13, 30, 46, 0.65) 100%);
}

/* Rejilla de ingeniería */
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(74, 159, 212, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(74, 159, 212, 0.055) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(to bottom, transparent 5%, rgba(0, 0, 0, 0.5) 35%, rgba(0, 0, 0, 0.5) 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 5%, rgba(0, 0, 0, 0.5) 35%, rgba(0, 0, 0, 0.5) 80%, transparent 100%);
    pointer-events: none;
}

/* Cruz de visor decorativa */
.hero-crosshair {
    position: absolute;
    top: 20vh;
    right: clamp(2rem, 8vw, 8rem);
    width: 120px;
    height: 120px;
    opacity: 0.1;
    pointer-events: none;
}

.hero-crosshair::before,
.hero-crosshair::after {
    content: '';
    position: absolute;
    background: var(--accent);
}

.hero-crosshair::before {
    width: 1px;
    height: 100%;
    left: 50%;
}

.hero-crosshair::after {
    width: 100%;
    height: 1px;
    top: 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding-bottom: clamp(3.5rem, 9vh, 7rem);
    animation: heroReveal 1s ease both;
}

@keyframes heroReveal {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-family: var(--fb);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: white;
    margin-bottom: 1.4rem;
}

.hero-eyebrow::before {
    content: '';
    display: block;
    width: 32px;
    height: 1px;
    background: var(--accent);
}

.hero h1 {
    font-family: var(--fd);
    font-size: clamp(2.8rem, 5.5vw, 5.5rem);
    font-weight: 700;
    line-height: 1.02;
    color: white;
    max-width: 820px;
    letter-spacing: -0.01em;
    margin-bottom: 1.5rem;
}

.hero h1 em {
    font-style: normal;
    color: var(--accent);
}

.hero-desc {
    font-size: clamp(0.9rem, 1.4vw, 1.05rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.72);
    max-width: 500px;
    line-height: 1.85;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Botones hero */
.btn-primary {
    display: inline-block;
    font-family: var(--fb);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.9rem 2.2rem;
    background: var(--accent);
    color: white;
    border-radius: var(--r);
    border: 1.5px solid var(--accent);
    transition: var(--ease);
}

.btn-primary:hover {
    background: white;
    color: var(--navy);
    border-color: white;
}

.btn-ghost {
    display: inline-block;
    font-family: var(--fb);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.9rem 2.2rem;
    background: transparent;
    color: rgba(255, 255, 255, 0.82);
    border: 1.5px solid rgba(255, 255, 255, 0.28);
    border-radius: var(--r);
    transition: var(--ease);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.6);
    color: white;
}

/* Cita CEO */
.hero-quote-block {
    position: absolute;
    bottom: clamp(3rem, 8vh, 6rem);
    right: clamp(1.5rem, 5vw, 4rem);
    max-width: 260px;
    text-align: right;
    border-right: 2px solid var(--accent);
    padding-right: 1.1rem;
}

.hero-quote-block p {
    font-size: 0.9rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.65;
    margin-bottom: 0.45rem;
}

.hero-quote-block cite {
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--accent);
}

/* Indicador scroll */
.scroll-cue {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.scroll-cue span {
    font-size: 0.58rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
}

.scroll-cue::after {
    content: '';
    display: block;
    width: 1px;
    height: 44px;
    background: linear-gradient(to bottom, rgba(74, 159, 212, 0.6), transparent);
    animation: scrollDrop 2.2s ease infinite;
}

@keyframes scrollDrop {
    0% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.2;
    }
}

/* ── STATS BAR ───────────────────────────────── */
.stats-bar {
    background: var(--navy-deep);
    border-top: 1px solid rgba(74, 159, 212, 0.15);
    border-bottom: 1px solid rgba(74, 159, 212, 0.15);
    padding: 1.4rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.stat-item {
    text-align: center;
    padding: 0.4rem 1rem;
    border-right: 1px solid rgba(255, 255, 255, 0.07);
}

.stat-item:last-child {
    border-right: none;
}

.stat-value {
    font-family: var(--fd);
    font-size: clamp(1.6rem, 2.4vw, 2.2rem);
    font-weight: 700;
    color: white;
    line-height: 1;
    margin-bottom: 0.3rem;
    letter-spacing: -0.02em;
}

.stat-value em {
    color: var(--accent);
    font-style: normal;
}

.stat-label {
    font-size: 0.66rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.38);
}

/* ── SECTION LABELS ──────────────────────────── */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-family: var(--fb);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.7rem;
}

.section-label::before {
    content: '';
    display: block;
    width: 22px;
    height: 1px;
    background: var(--accent);
}

.section-label.center {
    justify-content: center;
}

h2.title {
    font-family: var(--fd);
    font-size: clamp(1.9rem, 3.2vw, 3rem);
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -0.01em;
    color: var(--navy);
    margin-bottom: 0.8rem;
}

h2.title.on-dark {
    color: white;
}

/* ── SECTORES ────────────────────────────────── */
.sectores-section {
    padding: clamp(4.5rem, 9vw, 8rem) 0;
    background: var(--off-white);
}

.sectores-header {
    margin-bottom: 2.8rem;
}

.sectores-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 400px;
    gap: 3px;
    border-radius: 4px;
    overflow: hidden;
}

.sc {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.sc img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.65s ease;
}

.sc:hover img {
    transform: scale(1.05);
}

.sc-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13, 30, 46, 0.96) 0%, rgba(13, 30, 46, 0.45) 55%, rgba(13, 30, 46, 0.08) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.2rem;
    transition: background 0.4s ease;
}

.sc:hover .sc-overlay {
    background: linear-gradient(to top, rgba(26, 74, 108, 0.97) 0%, rgba(26, 74, 108, 0.55) 60%, rgba(26, 74, 108, 0.12) 100%);
}

.sc-tag {
    font-size: 0.63rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.4rem;
}

.sc h3 {
    font-family: var(--fd);
    font-size: clamp(1.6rem, 2.2vw, 2.1rem);
    font-weight: 700;
    color: white;
    margin-bottom: 0.6rem;
}

.sc p {
    font-size: 0.86rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.65;
    max-width: 380px;
    margin-bottom: 1.1rem;
}

.sc-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    transition: gap 0.2s ease;
}

.sc:hover .sc-link {
    gap: 0.7rem;
}

/* ── CLIENTES MARQUEE ────────────────────────── */
.clientes-section {
    background: white;
    padding: 2.5rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.clientes-label {
    text-align: center;
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 1.4rem;
}

.marquee-wrap {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
    mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
}

.marquee-track {
    display: flex;
    gap: 1rem;
    width: max-content;
    animation: marquee 38s linear infinite;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.client-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--fb);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--navy);
    background: var(--off-white);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 0.4rem 1.1rem;
    white-space: nowrap;
}

.client-pill::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

/* ── TESTIMONIOS ─────────────────────────────── */
.testimonios-section {
    padding: clamp(4.5rem, 9vw, 8rem) 0;
    background: var(--off-white);
}

.testi-center {
    text-align: center;
    margin-bottom: 2.5rem;
}

.testi-center p {
    color: var(--muted);
    font-size: 0.92rem;
    margin-top: 0.5rem;
}

.testi-filters {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.testi-btn {
    font-family: var(--fb);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.38rem 1rem;
    border-radius: 100px;
    border: 1.5px solid var(--border);
    background: white;
    color: var(--navy);
    cursor: pointer;
    transition: var(--ease);
}

.testi-btn:hover {
    border-color: var(--navy);
}

.testi-btn.testi-active {
    background: var(--navy);
    color: white;
    border-color: var(--navy);
}

.testi-carousel-wrap {
    position: relative;
}

.testi-carousel {
    display: flex;
    gap: 1.2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
}

.testi-carousel::-webkit-scrollbar {
    display: none;
}

.testi-card {
    flex: 0 0 285px;
    scroll-snap-align: start;
    background: white;
    border-radius: var(--r);
    overflow: hidden;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s, transform 0.3s;
}

.testi-card:hover {
    box-shadow: 0 10px 36px rgba(26, 58, 92, 0.1);
    transform: translateY(-3px);
}

.testi-card.hidden {
    display: none;
}

.testi-card.featured {
    border-top: 3px solid var(--accent);
}

.testi-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.testi-body {
    padding: 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.testi-badge {
    display: inline-block;
    font-size: 0.63rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 0.18rem 0.6rem;
    border-radius: 100px;
    margin-bottom: 0.75rem;
    width: fit-content;
}

.testi-badge.san {
    background: #EFF6FF;
    color: #1d4ed8;
}

.testi-badge.ret {
    background: #F0FDF4;
    color: #15803d;
}

.testi-badge.ind {
    background: #FEF3C7;
    color: #92400e;
}

.testi-badge.urb {
    background: #F0F9FF;
    color: #0369a1;
}

.testi-badge.prox {
    background: #F1F5F9;
    color: #64748b;
}

.testi-quote {
    font-size: 0.86rem;
    font-style: italic;
    color: var(--text);
    line-height: 1.7;
    flex: 1;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.testi-person {
    border-top: 1px solid var(--border);
    padding-top: 0.8rem;
}

.testi-name {
    font-weight: 700;
    color: var(--navy);
    font-size: 0.83rem;
    line-height: 1.3;
}

.testi-role {
    color: var(--muted);
    font-size: 0.76rem;
    margin-top: 0.12rem;
}

.carousel-nav {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 1rem;
}

.carousel-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: white;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--ease);
    color: var(--navy);
}

.carousel-btn:hover {
    background: var(--navy);
    color: white;
    border-color: var(--navy);
}

/* ── HaaS ────────────────────────────────────── */
.haas-section {
    background: var(--navy);
    padding: clamp(4.5rem, 9vw, 8rem) 0;
    position: relative;
    overflow: hidden;
}

.haas-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(74, 159, 212, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(74, 159, 212, 0.04) 1px, transparent 1px);
    background-size: 80px 80px;
    pointer-events: none;
}

.haas-inner {
    position: relative;
    z-index: 1;
}

.haas-header {
    text-align: center;
    margin-bottom: 4rem;
}

.haas-subtitle {
    font-size: 1rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.58);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.85;
}

.haas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    position: relative;
}

.haas-grid::before {
    content: '';
    position: absolute;
    top: 27px;
    left: calc(100%/6);
    right: calc(100%/6);
    height: 1px;
    background: linear-gradient(to right, transparent 0%, rgba(74, 159, 212, 0.35) 20%, rgba(74, 159, 212, 0.35) 80%, transparent 100%);
}

.haas-step {
    text-align: center;
    padding: 0 1.5rem;
}

.haas-num-ring {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 1px solid rgba(74, 159, 212, 0.35);
    background: rgba(74, 159, 212, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.6rem;
}

.haas-num {
    font-family: var(--fd);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--accent);
}

.haas-step h3 {
    font-family: var(--fd);
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.75rem;
}

.haas-step p {
    font-size: 0.88rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.8;
}

.haas-note {
    text-align: center;
    margin-top: 3.5rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
}

.haas-note strong {
    color: rgba(255, 255, 255, 0.52);
}

/* ── CTA PRE-FOOTER ──────────────────────────── */
.cta-section {
    background: var(--navy-deep);
    padding: clamp(2.5rem, 5vw, 4rem) 0;
    text-align: center;
    border-top: 1px solid rgba(74, 159, 212, 0.1);
}

.cta-section p {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.95rem;
    font-weight: 300;
    margin-bottom: 2.5rem;
    margin-top: 0.5rem;
}

/* ── FOOTER ──────────────────────────────────── */
.footer {
    background: var(--navy-deep);
    padding: 4.5rem 0 0;
    border-top: 1px solid rgba(74, 159, 212, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-name {
    font-family: var(--fd);
    font-size: 1.7rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.06em;
    margin-bottom: 0.2rem;
}

.footer-tagline {
    font-size: 0.66rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.footer-email {
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.52);
}

.footer-email:hover {
    color: var(--accent);
}

.footer h4 {
    font-size: 0.63rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 1.2rem;
}

.footer ul li {
    margin-bottom: 0.65rem;
}

.footer ul a {
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.52);
}

.footer ul a:hover {
    color: var(--accent);
}

.footer-presence {
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.42);
    line-height: 2;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}

.footer-bottom p {
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.22);
}

.legal-links {
    display: flex;
    gap: 1.5rem;
}

.legal-links a {
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.22);
}

.legal-links a:hover {
    color: var(--accent);
}

/* ── SCROLL REVEAL ───────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-d1 {
    transition-delay: 0.12s;
}

.reveal-d2 {
    transition-delay: 0.24s;
}

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 1024px) {
    .sectores-grid {
        grid-template-rows: 280px 280px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {

    .nav-links,
    .btn-nav {
        display: none;
    }

    .mobile-menu {
        display: flex;
    }

    /* ── Mobile nav-links overlay (set by JS) ── */
    .nav-links[style*="display:flex"],
    .nav-links[style*="display: flex"] {
        align-items: center;
        text-align: center;
    }

    .nav-links[style*="display:flex"] a,
    .nav-links[style*="display: flex"] a {
        color: rgba(255, 255, 255, 0.9) !important;
        font-size: 0.95rem;
        padding: 0.4rem 0;
    }

    .nav-links[style*="display:flex"] a:hover,
    .nav-links[style*="display: flex"] a:hover {
        color: var(--accent) !important;
    }

    /* ── Mobile dropdown: always visible inside mobile menu ── */
    .nav-links[style*="display:flex"] .dropdown-content,
    .nav-links[style*="display: flex"] .dropdown-content {
        display: block !important;
        position: static !important;
        transform: none !important;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        box-shadow: none;
        margin-top: 0.4rem;
        min-width: 0;
        padding: 0.3rem 0;
    }

    .nav-links[style*="display:flex"] .dropdown-content a,
    .nav-links[style*="display: flex"] .dropdown-content a {
        color: rgba(255, 255, 255, 0.75) !important;
        font-size: 0.88rem;
        padding: 0.5rem 1rem;
        text-align: center;
    }

    .nav-links[style*="display:flex"] .dropdown-content a:hover,
    .nav-links[style*="display: flex"] .dropdown-content a:hover {
        color: var(--accent) !important;
        background: rgba(74, 159, 212, 0.12);
    }

    /* Show btn-nav inside mobile menu */
    .nav-links[style*="display:flex"]~.btn-nav,
    .nav-links[style*="display: flex"]~.btn-nav {
        display: inline-block !important;
        position: fixed;
        bottom: 2rem;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1000;
    }

    /* ── Lang switcher on mobile ── */
    .lang-switcher {
        margin-left: auto;
    }

    .hero-quote-block {
        display: none;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-item:nth-child(2) {
        border-right: none;
    }

    .stat-item:nth-child(3) {
        border-right: 1px solid rgba(255, 255, 255, 0.07);
    }

    .stat-item:nth-child(1),
    .stat-item:nth-child(2) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
        padding-bottom: 1.2rem;
    }

    .stat-item:nth-child(3),
    .stat-item:nth-child(4) {
        padding-top: 1.2rem;
    }

    .sectores-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 250px);
    }

    .haas-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .haas-grid::before {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
    }
}

@media (max-width: 500px) {
    .hero h1 {
        font-size: clamp(2.4rem, 9vw, 3.2rem);
    }
}

/* LIGHT NAVBAR FOR INTERNAL PAGES (NOT SCROLLED) */
.navbar-light:not(.scrolled) .nav-links a {
    color: var(--navy-deep);
    font-weight: 600;
}

.navbar-light:not(.scrolled) .nav-links a:hover {
    color: var(--accent);
}

.navbar-light:not(.scrolled) .btn-nav {
    background: var(--navy-deep);
    color: white;
}

.navbar-light:not(.scrolled) .btn-nav:hover {
    background: var(--accent);
    color: white;
}

.navbar-light:not(.scrolled) .mobile-menu span {
    background: var(--navy-deep);
}

.navbar-light:not(.scrolled) .logo img {
    content: url("logo-azul.png");
}

/* === SECTOR PAGES CSS (Centralized) === */
.sector-hero {
    position: relative;
    height: 72vh;
    min-height: 540px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.sector-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%
}

.sector-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(13, 30, 46, .15) 0%, rgba(13, 30, 46, .55) 55%, rgba(13, 30, 46, .96) 100%)
}

.sector-hero-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(74, 159, 212, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(74, 159, 212, .055) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(to bottom, transparent 20%, rgba(0, 0, 0, .4) 60%, rgba(0, 0, 0, .4) 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 20%, rgba(0, 0, 0, .4) 60%, rgba(0, 0, 0, .4) 100%);
    pointer-events: none
}

.sector-hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding-bottom: clamp(2.5rem, 5vh, 4rem);
    animation: heroReveal .9s ease both
}

.sector-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    font-family: var(--fb);
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem
}

.sector-eyebrow::before {
    content: '';
    display: block;
    width: 28px;
    height: 1px;
    background: var(--accent)
}

.sector-hero h1 {
    font-family: var(--fd);
    font-size: clamp(1.8rem, 3.8vw, 3.4rem);
    font-weight: 700;
    line-height: 1.05;
    color: white;
    max-width: 560px;
    letter-spacing: -.01em;
    margin-bottom: .9rem
}

.sector-hero h1 em {
    font-style: normal;
    color: var(--accent)
}

.sector-hero-desc {
    font-size: clamp(.82rem, 1.1vw, .95rem);
    font-weight: 300;
    color: rgba(255, 255, 255, .68);
    max-width: 460px;
    line-height: 1.8;
    margin-bottom: 2rem
}

.sector-hero-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap
}

.sector-hero-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap
}

.sh-stat {
    display: flex;
    flex-direction: column;
    gap: .2rem
}

.sh-stat-val {
    font-family: var(--fd);
    font-size: clamp(1.4rem, 2.2vw, 1.9rem);
    font-weight: 700;
    color: white;
    line-height: 1;
    letter-spacing: -.01em
}

.sh-stat-val em {
    font-style: normal;
    color: var(--accent)
}

.sh-stat-label {
    font-size: .62rem;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .38)
}

.sector-hero-ctas {
    display: flex;
    flex-direction: column;
    gap: .7rem;
    align-items: flex-end;
    flex-shrink: 0
}

@media(max-width:768px) {
    .sector-hero-bottom {
        flex-direction: column;
        align-items: flex-start
    }

    .sector-hero-ctas {
        align-items: flex-start
    }
}

/* NSR */
.nsr-section {
    background: var(--off-white);
    padding: clamp(2rem, 4vw, 3.5rem) 0
}

.nsr-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr 1fr;
    gap: 1.5px;
    background: var(--border);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 3rem
}

.nsr-card {
    background: white;
    padding: clamp(2rem, 4vw, 3rem);
    position: relative
}

.nsr-card.featured {
    background: var(--navy)
}

.nsr-card-tag {
    font-family: var(--fb);
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: .5rem
}

.nsr-card-tag::before {
    content: '';
    display: block;
    width: 16px;
    height: 1px;
    background: var(--accent)
}

.nsr-card h3 {
    font-family: var(--fd);
    font-size: clamp(1.3rem, 2vw, 1.8rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--navy);
    margin-bottom: 1.2rem;
    letter-spacing: -.01em
}

.nsr-card.featured h3 {
    color: white
}

.nsr-card p {
    font-size: .9rem;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: .8rem
}

.nsr-card.featured p {
    color: rgba(255, 255, 255, .65)
}

.nsr-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .55rem
}

.nsr-card ul li {
    font-size: .88rem;
    color: var(--muted);
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: .55rem
}

.nsr-card ul li::before {
    content: '';
    display: block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
    margin-top: .45rem
}

.nsr-card.featured ul li {
    color: rgba(255, 255, 255, .65)
}

.nsr-stat-row {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(74, 159, 212, .2);
    flex-wrap: wrap
}

.nsr-stat {
    display: flex;
    flex-direction: column;
    gap: .15rem
}

.nsr-stat-num {
    font-family: var(--fd);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1
}

.nsr-stat-txt {
    font-size: .68rem;
    color: rgba(255, 255, 255, .4);
    text-transform: uppercase;
    letter-spacing: .08em
}

/* Contaminantes */
.contam-section {
    background: white;
    padding: clamp(2rem, 4vw, 3.5rem) 0
}

.contam-table-wrap {
    overflow-x: auto;
    margin-bottom: .5rem
}

.contam-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .88rem;
    min-width: 680px
}

.contam-table thead tr {
    background: var(--navy)
}

.contam-table th {
    padding: 1rem 1.2rem;
    text-align: left;
    color: white;
    font-size: .65rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase
}

.contam-table th:first-child {
    border-radius: 4px 0 0 0
}

.contam-table th:last-child {
    border-radius: 0 4px 0 0
}

.contam-table tbody tr:nth-child(odd) td {
    background: var(--off-white)
}

.contam-table tbody tr:nth-child(even) td {
    background: white
}

.contam-table td {
    padding: .9rem 1.2rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-dark);
    vertical-align: top;
    line-height: 1.5
}

.contam-table td:first-child {
    font-weight: 700;
    color: var(--navy)
}

.risk-high {
    color: #c0392b;
    font-weight: 600
}

.risk-med {
    color: #e67e22;
    font-weight: 600
}

.vla-val {
    font-family: var(--fd);
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    display: block;
    line-height: 1
}

.vla-unit {
    font-size: .75rem;
    color: var(--muted);
    font-weight: 400
}

.oms-val {
    font-size: .8rem;
    color: #e67e22;
    font-weight: 600;
    display: block
}

.norm-note {
    font-size: .72rem;
    color: var(--muted);
    margin-top: .2rem;
    display: block;
    font-style: italic
}

.norm-strip {
    background: var(--off-white);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1.2rem 1.5rem;
    margin-bottom: 2.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start
}

.norm-strip p {
    font-size: .85rem;
    color: var(--muted);
    line-height: 1.7;
    margin: 0
}

.norm-strip p strong {
    color: var(--navy)
}

/* Calculadora */
.calc-section {
    background: var(--navy);
    border-radius: 8px;
    padding: 2.5rem;
    margin-top: 3rem;
    position: relative;
    overflow: hidden
}

.calc-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(74, 159, 212, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(74, 159, 212, .06) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none
}

.calc-inner {
    position: relative;
    z-index: 1
}

.calc-title {
    font-family: var(--fd);
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-weight: 700;
    color: white;
    margin-bottom: .4rem;
    letter-spacing: -.01em
}

.calc-subtitle {
    font-size: .85rem;
    color: rgba(255, 255, 255, .55);
    margin-bottom: 1.8rem;
    line-height: 1.6
}

.calc-controls {
    display: grid;
    grid-template-columns: 1.8fr 1fr .8fr auto;
    gap: .8rem;
    align-items: end;
    margin-bottom: 1.5rem
}

.calc-field {
    display: flex;
    flex-direction: column;
    gap: .35rem
}

.calc-label {
    font-size: .65rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .5)
}

.calc-select,
.calc-input {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: var(--r);
    color: white;
    padding: .65rem .9rem;
    font-family: var(--fb);
    font-size: .9rem;
    outline: none;
    transition: border-color .2s;
    -webkit-appearance: none
}

.calc-select:focus,
.calc-input:focus {
    border-color: var(--accent)
}

.calc-select option {
    background: var(--navy-deep);
    color: white
}

.calc-btn {
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--r);
    padding: .65rem 1.4rem;
    font-family: var(--fb);
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--ease);
    white-space: nowrap;
    align-self: end
}

.calc-btn:hover {
    background: white;
    color: var(--navy)
}

.calc-result {
    display: none;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 6px;
    padding: 1.5rem
}

.calc-result.visible {
    display: block
}

.calc-result-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem
}

.cr-box {
    background: rgba(255, 255, 255, .06);
    border-radius: 4px;
    padding: 1rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: .3rem
}

.cr-label {
    font-size: .63rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .4)
}

.cr-value {
    font-family: var(--fd);
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    line-height: 1
}

.cr-unit {
    font-size: .72rem;
    color: rgba(255, 255, 255, .45)
}

.cr-status {
    display: flex;
    gap: .6rem;
    align-items: center;
    font-size: .82rem;
    font-weight: 600;
    margin-top: .4rem
}

.cr-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0
}

.cr-pass .cr-dot {
    background: #2ecc71
}

.cr-pass .cr-status-text {
    color: #2ecc71
}

.cr-fail .cr-dot {
    background: #e74c3c
}

.cr-fail .cr-status-text {
    color: #e74c3c
}

.calc-note {
    font-size: .75rem;
    color: rgba(255, 255, 255, .35);
    margin-top: .8rem;
    font-style: italic
}

/* Marco legal */
.legal-section {
    background: var(--navy);
    padding: clamp(2rem, 4vw, 3.5rem) 0;
    position: relative;
    overflow: hidden
}

.legal-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(74, 159, 212, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(74, 159, 212, .04) 1px, transparent 1px);
    background-size: 80px 80px;
    pointer-events: none
}

.legal-inner {
    position: relative;
    z-index: 1
}

.legal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center
}

.legal-norm-card {
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    padding: 1.2rem 1.5rem
}

.legal-norm-card+.legal-norm-card {
    margin-top: .8rem
}

.legal-norm-name {
    font-weight: 700;
    color: white;
    font-size: .92rem;
    margin-bottom: .35rem
}

.legal-norm-desc {
    color: rgba(255, 255, 255, .6);
    font-size: .85rem;
    line-height: 1.55;
    margin: 0
}

/* Casos */
.casos-section {
    background: var(--off-white);
    padding: clamp(2rem, 4vw, 3.5rem) 0
}

.casos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.2rem
}

.caso-card {
    background: white;
    border-radius: 6px;
    padding: 1.8rem;
    border-left: 3px solid var(--accent);
    transition: box-shadow .3s, transform .3s
}

.caso-card:hover {
    box-shadow: 0 8px 30px rgba(26, 58, 92, .1);
    transform: translateY(-3px)
}

.caso-card h4 {
    font-family: var(--fd);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: .6rem
}

.caso-card p {
    font-size: .88rem;
    color: var(--muted);
    line-height: 1.65;
    margin: 0
}

.caso-meta {
    font-size: .78rem;
    color: var(--muted);
    margin-top: 1rem;
    padding-top: .8rem;
    border-top: 1px solid var(--border)
}

@media(max-width:1024px) {
    .nsr-grid {
        grid-template-columns: 1fr;
        gap: 1px
    }

    .legal-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem
    }

    .calc-controls {
        grid-template-columns: 1fr 1fr
    }

    .calc-btn {
        grid-column: span 2
    }

    .calc-result-grid {
        grid-template-columns: 1fr 1fr
    }
}

@media(max-width:640px) {
    .sector-hero-stats {
        gap: 1.5rem
    }

    .calc-controls {
        grid-template-columns: 1fr
    }

    .calc-btn {
        grid-column: auto
    }

    .calc-result-grid {
        grid-template-columns: 1fr
    }
}

/* ── LANG SWITCHER ───────────────────────────── */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1.5px solid rgba(255, 255, 255, 0.22);
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
    margin-left: 0.6rem;
}

.lang-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.55);
    font-family: var(--fb);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.32rem 0.65rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    line-height: 1;
}

.lang-btn:first-child {
    border-right: 1.5px solid rgba(255, 255, 255, 0.22);
}

.lang-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.08);
}

.lang-btn.lang-active {
    background: var(--accent);
    color: white;
}

/* Light navbar variant */
.navbar-light:not(.scrolled) .lang-switcher {
    border-color: rgba(13, 30, 46, 0.30);
}

.navbar-light:not(.scrolled) .lang-btn {
    color: rgba(13, 30, 46, 0.55);
}

.navbar-light:not(.scrolled) .lang-btn:first-child {
    border-right-color: rgba(13, 30, 46, 0.20);
}

.navbar-light:not(.scrolled) .lang-btn:hover {
    color: var(--navy-deep);
    background: rgba(13, 30, 46, 0.06);
}

.navbar-light:not(.scrolled) .lang-btn.lang-active {
    background: var(--accent);
    color: white;
}
/* ── RESPONSIVE 480px (missing from v13) ───────────────────────── */
@media (max-width: 480px) {
    .hero h1 { font-size: clamp(1.9rem, 7.5vw, 2.6rem); }
    .sector-hero { height: 55vh; min-height: 400px; }
    .sector-hero-bottom { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
    .sector-hero-ctas { align-items: flex-start; width: 100%; }
    .sector-hero-ctas a { width: 100%; text-align: center; display: block; }
    .sector-hero-stats { gap: 1.2rem; }
    .sh-stat-val { font-size: clamp(1.2rem, 5vw, 1.6rem); }
    .stat-value { font-size: clamp(1.4rem, 5vw, 2rem); }
    .nsr-card { padding: 1.5rem; }
    .calc-controls { grid-template-columns: 1fr; }
    .calc-btn { grid-column: auto; }
    .calc-result-grid { grid-template-columns: 1fr; }
    .calc-section { padding: 1.5rem; }
    .contacto-wrapper { padding: 2rem !important; grid-template-columns: 1fr !important; gap: 2.5rem !important; }
    .container { padding: 0 1rem; }
    .sectores-grid { grid-template-rows: repeat(4, 200px); }
    .legal-links { flex-direction: column; gap: 0.5rem; align-items: center; }
    .hero-actions { flex-direction: column; gap: 0.75rem; }
    .hero-actions a { text-align: center; }
}

/* ── HAMBURGER ANIMATION ───────────────────────────────────────── */
.mobile-menu span { transition: transform 0.2s ease, opacity 0.2s ease; }
.mobile-menu.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu.is-open span:nth-child(2) { opacity: 0; }
.mobile-menu.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
