/* =========================================================
   OrbitWave LLC — hoja de estilos principal
   Paleta: azul medianoche + acentos azul eléctrico / cian
   ========================================================= */
:root {
    --ink: #040a15;
    --navy: #07122a;
    --navy-2: #0c1d3d;
    --navy-3: #132a52;
    --bg: #f4f7fc;
    --surface: #ffffff;
    --text: #0b1628;
    --muted: #5a6a82;
    --muted-dark: rgba(226, 236, 252, 0.72);
    --primary: #2f76db;
    --primary-2: #1c5cc0;
    --accent: #7fc7ff;
    --accent-2: #a8e1ff;
    --line: rgba(11, 22, 40, 0.08);
    --line-dark: rgba(255, 255, 255, 0.09);
    --radius: 22px;
    --radius-sm: 14px;
    --shadow-sm: 0 1px 2px rgba(11, 22, 40, 0.04), 0 4px 14px rgba(11, 22, 40, 0.05);
    --shadow: 0 2px 4px rgba(11, 22, 40, 0.03), 0 18px 44px rgba(11, 22, 40, 0.08);
    --shadow-lg: 0 30px 80px rgba(4, 10, 21, 0.35);
    --grad-brand: linear-gradient(135deg, #3d8bff 0%, #2f76db 45%, #1c5cc0 100%);
    --grad-text: linear-gradient(180deg, #ffffff 30%, #b6dcff 100%);
    --font: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: rgba(127, 199, 255, 0.35); color: inherit; }
.container { width: min(1200px, calc(100% - 2.5rem)); margin: 0 auto; }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 6px;
}

/* ---------- Transiciones de página y aparición ---------- */
.page-transition-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--ink);
    opacity: 1;
    pointer-events: none;
    transition: opacity .45s ease;
}
.page-transition-overlay.is-hidden { opacity: 0; }
.page-transition-overlay.is-active { opacity: 1; pointer-events: all; }

body.is-ready { animation: ow-fade-in .6s ease both; }
@keyframes ow-fade-in { from { opacity: 0; } to { opacity: 1; } }

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal-on-scroll.is-visible { opacity: 1; transform: none; }

/* ---------- Tipografía ---------- */
h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -0.035em; }
h1 {
    font-size: clamp(2.6rem, 5.2vw, 4.4rem);
    line-height: 1.04;
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-wrap: balance;
}
.section-title {
    font-size: clamp(2rem, 3.8vw, 3rem);
    line-height: 1.1;
    color: var(--text);
    text-wrap: balance;
}
.section-subtitle {
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.75;
    max-width: 62ch;
    margin: 1rem 0 0;
}
.section-heading { margin-bottom: 3rem; max-width: 760px; }
.section-heading.is-center { margin-left: auto; margin-right: auto; text-align: center; }
.section-heading.is-center .section-subtitle { margin-left: auto; margin-right: auto; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .45rem .95rem .45rem .7rem;
    border-radius: 999px;
    background: rgba(127, 199, 255, 0.08);
    border: 1px solid rgba(127, 199, 255, 0.22);
    color: var(--accent-2);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .02em;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(6px);
}
.eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(127, 199, 255, 0.18), 0 0 14px var(--accent);
    flex: 0 0 auto;
}
.kicker {
    display: inline-block;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 1rem;
}
.section-dark .kicker, .cta .kicker { color: var(--accent); }

/* ---------- Botones ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .95rem 1.55rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: .98rem;
    letter-spacing: -.005em;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: inherit;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s ease, border-color .25s ease, color .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
    background: var(--grad-brand);
    color: #fff;
    box-shadow: 0 10px 30px rgba(47, 118, 219, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn-primary:hover { box-shadow: 0 16px 40px rgba(47, 118, 219, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.22); }
.btn-primary::after {
    content: "→";
    font-weight: 600;
    transition: transform .25s var(--ease);
}
.btn-primary:hover::after { transform: translateX(3px); }
.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.18);
    color: #fff;
    backdrop-filter: blur(8px);
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.32); }
.section-light .btn-secondary,
.section-flat .btn-secondary,
.content-surface .btn-secondary {
    color: var(--text);
    border-color: var(--line);
    background: #fff;
}
button.btn[disabled] { opacity: .65; cursor: progress; transform: none; }

/* ---------- Encabezado ---------- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(4, 10, 21, 0.78);
    backdrop-filter: saturate(160%) blur(16px);
    -webkit-backdrop-filter: saturate(160%) blur(16px);
    border-bottom: 1px solid var(--line-dark);
    transition: background .3s ease, box-shadow .3s ease;
}
.topbar.is-scrolled {
    background: rgba(4, 10, 21, 0.92);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.28);
}
.topbar-contact {
    border-bottom: 1px solid var(--line-dark);
    max-height: 44px;
    overflow: hidden;
    transition: max-height .3s ease, opacity .3s ease;
}
.topbar.is-scrolled .topbar-contact { max-height: 0; opacity: 0; border-bottom-color: transparent; }
.topbar-contact-inner {
    display: flex;
    justify-content: flex-end;
    gap: 1.6rem;
    padding: .5rem 0;
    font-size: .82rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.66);
    flex-wrap: wrap;
}
.contact-link { display: inline-flex; align-items: center; gap: .5rem; transition: color .2s ease; }
.contact-link:hover, .contact-link:focus-visible { color: #fff; }
.contact-icon { width: 14px; height: 14px; flex: 0 0 auto; fill: currentColor; opacity: .85; }

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem 0;
    position: relative;
}
.brand { display: flex; align-items: center; gap: .8rem; color: #fff; font-weight: 800; font-size: 1.05rem; letter-spacing: -.02em; flex-shrink: 0; }
.brand-logo { width: auto; height: 42px; max-width: 170px; object-fit: contain; filter: drop-shadow(0 4px 14px rgba(47, 118, 219, 0.35)); }
.brand-mark { width: 42px; height: 42px; border-radius: 14px; background: var(--grad-brand); }
.brand small { display: block; color: rgba(255, 255, 255, 0.55); font-weight: 500; font-size: .76rem; letter-spacing: 0; margin-top: .1rem; }

.nav-menu { display: flex; align-items: center; gap: .8rem; margin-left: auto; }
.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--line-dark);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    cursor: pointer;
    padding: 0;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    position: relative;
    transition: transform .25s ease, top .25s ease, opacity .2s ease;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); background: #fff; }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); background: #fff; }

.nav-links { display: flex; gap: .15rem; align-items: center; }
.nav-link, .nav-dropdown-toggle {
    position: relative;
    color: rgba(255, 255, 255, 0.78);
    padding: .65rem .95rem;
    border-radius: 999px;
    border: 0;
    font: inherit;
    font-size: .93rem;
    font-weight: 600;
    cursor: pointer;
    background: transparent;
    white-space: nowrap;
    transition: background .2s ease, color .2s ease;
}
.nav-link:hover, .nav-link:focus-visible,
.nav-dropdown-toggle:hover, .nav-dropdown-toggle:focus-visible { color: #fff; background: rgba(255, 255, 255, 0.06); }
.nav-link.active, .nav-dropdown-toggle.active { color: #fff; }
.nav-link.active::after, .nav-dropdown-toggle.active::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 2px;
    width: 18px;
    height: 2px;
    margin-left: -9px;
    border-radius: 2px;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}
/* Último enlace (Contáctenos) como botón destacado */
.nav-links > a.nav-link:last-child {
    margin-left: .6rem;
    color: #fff;
    background: var(--grad-brand);
    padding: .65rem 1.25rem;
    box-shadow: 0 8px 24px rgba(47, 118, 219, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.nav-links > a.nav-link:last-child:hover { box-shadow: 0 12px 30px rgba(47, 118, 219, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
.nav-links > a.nav-link:last-child.active::after { display: none; }

.nav-item { position: relative; padding-bottom: .7rem; margin-bottom: -.7rem; }
.nav-dropdown-toggle { display: inline-flex; align-items: center; gap: .45rem; }
.nav-dropdown-toggle::after {
    content: "";
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    opacity: .75;
    transition: transform .2s ease;
}
.nav-item:hover .nav-dropdown-toggle::after,
.nav-item.is-open .nav-dropdown-toggle::after { transform: translateY(1px) rotate(225deg); }

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    min-width: 340px;
    padding: .5rem;
    margin: 0;
    list-style: none;
    border-radius: 18px;
    background: rgba(9, 20, 40, 0.96);
    backdrop-filter: blur(18px);
    border: 1px solid var(--line-dark);
    box-shadow: var(--shadow-lg);
    z-index: 30;
    display: grid;
    gap: .15rem;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 8px);
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown,
.nav-item.is-open .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
    transition: opacity .2s ease, transform .2s ease, visibility 0s;
}
.nav-dropdown a {
    display: block;
    padding: .75rem .9rem;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-size: .92rem;
    font-weight: 600;
    line-height: 1.4;
    transition: background .2s ease, color .2s ease, padding .2s ease;
}
.nav-dropdown a:hover, .nav-dropdown a:focus-visible, .nav-dropdown a.active {
    background: rgba(127, 199, 255, 0.09);
    color: #fff;
    padding-left: 1.1rem;
}

/* ---------- Hero ---------- */
.page-hero {
    position: relative;
    padding: 5.5rem 0 6rem;
    color: #fff;
    background:
        radial-gradient(900px 520px at 85% 10%, rgba(47, 118, 219, 0.32), transparent 60%),
        radial-gradient(700px 480px at 0% 100%, rgba(127, 199, 255, 0.14), transparent 60%),
        linear-gradient(180deg, var(--ink) 0%, var(--navy) 55%, var(--navy-2) 100%);
    overflow: hidden;
    isolation: isolate;
}
/* Retícula sutil */
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 20%, transparent 75%);
}
/* Anillos orbitales */
.page-hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 1100px;
    height: 1100px;
    right: -380px;
    top: -420px;
    border-radius: 50%;
    border: 1px solid rgba(127, 199, 255, 0.12);
    box-shadow:
        0 0 0 90px rgba(127, 199, 255, 0.018),
        0 0 0 91px rgba(127, 199, 255, 0.08),
        0 0 0 200px rgba(127, 199, 255, 0.012),
        0 0 0 201px rgba(127, 199, 255, 0.05);
    pointer-events: none;
}
.page-hero > .container { position: relative; }
.hero-grid {
    display: grid;
    gap: 4rem;
    align-items: center;
    grid-template-columns: 1.12fr .88fr;
}
.hero-grid h1 { font-size: clamp(2.6rem, 4.3vw, 4rem); }
.hero-copy {
    color: var(--muted-dark);
    font-size: 1.15rem;
    line-height: 1.75;
    max-width: 56ch;
    margin: 1.5rem 0 2.2rem;
}
.hero-copy strong { color: #fff; font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; }

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 2.2rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line-dark);
}
.hero-trust div { display: grid; gap: .15rem; }
.hero-trust strong {
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -.03em;
    color: #fff;
    line-height: 1.1;
}
.hero-trust span { font-size: .85rem; color: rgba(226, 236, 252, 0.6); }

.hero-visual { position: relative; }
.hero-visual::before {
    content: "";
    position: absolute;
    inset: 8% -6% -6% 8%;
    background: radial-gradient(closest-side, rgba(47, 118, 219, 0.55), transparent);
    filter: blur(40px);
    z-index: 0;
}
.hero-visual .main-image {
    position: relative;
    z-index: 1;
    height: 560px;
    border-radius: 28px;
    overflow: hidden;
    background: var(--navy-2);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    isolation: isolate;
}
.hero-visual .main-image::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(4, 10, 21, 0) 45%, rgba(4, 10, 21, 0.65) 100%);
}
.hero-slideshow { position: relative; width: 100%; height: 100%; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease; pointer-events: none; }
.hero-slide.is-active { opacity: 1; }
.hero-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.06);
    transition: transform 7s linear;
}
.hero-slide.is-active img { transform: scale(1); }

.hero-float {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: .85rem;
    max-width: 290px;
    padding: .95rem 1.1rem;
    border-radius: 18px;
    background: rgba(9, 20, 40, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    animation: ow-float 6s ease-in-out infinite;
}
.hero-float.is-one { left: -2.2rem; bottom: 3rem; }
.hero-float.is-two { right: -1.4rem; top: 2.4rem; animation-delay: -3s; }
.hero-float-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--grad-brand);
    flex: 0 0 auto;
    box-shadow: 0 8px 20px rgba(47, 118, 219, 0.45);
}
.hero-float-icon svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hero-float strong { display: block; font-size: .92rem; color: #fff; }
.hero-float span { display: block; font-size: .78rem; color: rgba(226, 236, 252, 0.68); line-height: 1.45; }
@keyframes ow-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Hero de páginas internas: text + media */
.page-hero .content-grid { gap: 4rem; align-items: center; }
.page-hero .content-grid .media {
    min-height: 440px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-lg);
}
.page-hero .content-grid .text p { color: var(--muted-dark); }

/* ---------- Secciones ---------- */
.section { padding: 6.5rem 0; position: relative; }
.section-light { background: var(--bg); }
.section-flat { background: #fff; }
.section-dark {
    background:
        radial-gradient(800px 400px at 15% 0%, rgba(47, 118, 219, 0.18), transparent 60%),
        linear-gradient(180deg, var(--navy) 0%, var(--ink) 100%);
    color: #fff;
}
.section-dark .section-title { color: #fff; }
.section-dark .section-subtitle { color: var(--muted-dark); }
.section-dark .content-surface { background: transparent; border: 0; box-shadow: none; padding: 0; }

/* ---------- Tecnologías (carrusel continuo) ---------- */
.section-tech {
    padding: 3.2rem 0 3.4rem;
    background: #fff;
    border-bottom: 1px solid var(--line);
}
.tech-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}
.tech-head h2 { font-size: 1.05rem; font-weight: 800; letter-spacing: -.01em; color: var(--text); }
.tech-head p { margin: 0; color: var(--muted); font-size: .95rem; max-width: 60ch; }
.tech-marquee {
    position: relative;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.tech-track {
    display: flex;
    gap: 1rem;
    width: max-content;
    animation: ow-marquee 38s linear infinite;
}
.tech-marquee:hover .tech-track { animation-play-state: paused; }
@keyframes ow-marquee { to { transform: translateX(calc(-50% - .5rem)); } }
.tech-chip {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    padding: .85rem 1.3rem .85rem 1rem;
    border-radius: 999px;
    background: var(--bg);
    border: 1px solid var(--line);
    font-weight: 700;
    font-size: .95rem;
    color: #24344d;
    white-space: nowrap;
    transition: background .25s ease, border-color .25s ease, transform .25s var(--ease);
}
.tech-chip img {
    width: 26px;
    height: 26px;
    object-fit: contain;
    filter: grayscale(1) opacity(.7);
    transition: filter .3s ease;
}
.tech-chip:hover { background: #fff; border-color: rgba(47, 118, 219, 0.25); transform: translateY(-2px); }
.tech-chip:hover img { filter: none; }

/* Compatibilidad con la retícula original */
.tech-grid { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: .75rem; }
.tech-card {
    display: flex; align-items: center; justify-content: center; aspect-ratio: 1;
    background: #fff; border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.logo-icon { width: 48px; height: 48px; object-fit: contain; }

/* ---------- Tarjetas de impacto (imagen completa) ---------- */
.impact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.impact-card {
    position: relative;
    min-height: 460px;
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    isolation: isolate;
}
.impact-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    transition: transform .9s var(--ease);
}
.impact-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(4, 10, 21, 0.05) 20%, rgba(4, 10, 21, 0.55) 55%, rgba(4, 10, 21, 0.95) 100%);
}
.impact-card:hover img { transform: scale(1.06); }
.impact-card .tag {
    align-self: flex-start;
    padding: .35rem .75rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--accent-2);
    background: rgba(127, 199, 255, 0.12);
    border: 1px solid rgba(127, 199, 255, 0.25);
    backdrop-filter: blur(8px);
    margin-bottom: 1rem;
}
.impact-card h3 { font-size: 1.45rem; color: #fff; margin-bottom: .6rem; }
.impact-card p { margin: 0; color: rgba(226, 236, 252, 0.78); line-height: 1.65; font-size: .97rem; }

/* ---------- Servicios ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; counter-reset: svc; }
.service-card {
    counter-increment: svc;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: .75rem .75rem 1.6rem;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s ease;
    position: relative;
    overflow: hidden;
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 60px rgba(11, 22, 40, 0.12);
    border-color: rgba(47, 118, 219, 0.22);
}
.service-card .thumb {
    position: relative;
    height: 210px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 1.4rem;
    isolation: isolate;
}
.service-card .thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(4, 10, 21, 0.35));
    pointer-events: none;
}
.service-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.service-card:hover .thumb img { transform: scale(1.06); }
.service-card .tag,
.service-card h3,
.service-card p,
.service-card ul,
.service-card .btn { margin-left: .85rem; margin-right: .85rem; }
.service-card .tag {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: .5rem;
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: .7rem;
}
.services-grid .service-card .tag::before {
    content: counter(svc, decimal-leading-zero);
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0;
    color: var(--muted);
}
.service-card h3 { color: var(--text); font-size: 1.3rem; line-height: 1.25; margin-bottom: .7rem; }
.service-card p, .service-card li { color: var(--muted); line-height: 1.7; font-size: .98rem; }
.service-card p { margin-top: 0; margin-bottom: 1.4rem; }
.service-card .btn {
    margin-top: auto;
    align-self: flex-start;
    padding: 0;
    background: none;
    box-shadow: none;
    color: var(--primary);
    border-radius: 0;
    font-size: .95rem;
}
.service-card .btn:hover { transform: none; color: var(--primary-2); box-shadow: none; }
.service-card .btn::after { content: "→"; }

/* ---------- Propuesta de valor ---------- */
.value-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 5rem; align-items: center; }
.value-media { position: relative; }
.value-media img {
    width: 100%;
    height: 540px;
    object-fit: cover;
    border-radius: 28px;
    box-shadow: var(--shadow);
}
.value-media::before {
    content: "";
    position: absolute;
    inset: -1.25rem auto auto -1.25rem;
    width: 60%;
    height: 60%;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(47, 118, 219, 0.16), rgba(127, 199, 255, 0.08));
    z-index: -1;
}
.value-badge {
    position: absolute;
    right: -1.5rem;
    bottom: 2.2rem;
    padding: 1.2rem 1.4rem;
    border-radius: 20px;
    background: var(--navy);
    color: #fff;
    box-shadow: var(--shadow-lg);
    max-width: 240px;
}
.value-badge strong { display: block; font-size: 1rem; margin-bottom: .2rem; }
.value-badge span { font-size: .85rem; color: var(--muted-dark); line-height: 1.5; display: block; }
.value-copy p { color: var(--muted); font-size: 1.08rem; line-height: 1.8; margin: 1.2rem 0 0; }

.pill-list { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.8rem; }
.pill-list span {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .55rem 1rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--text);
    font-weight: 700;
    font-size: .9rem;
    box-shadow: var(--shadow-sm);
}
.pill-list span::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--grad-brand);
    box-shadow: 0 0 0 3px rgba(47, 118, 219, 0.14);
    flex: 0 0 auto;
}

/* ---------- Proceso ---------- */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
    position: relative;
}
.process-step {
    position: relative;
    padding: 2rem 1.6rem 1.8rem;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line-dark);
    transition: background .3s ease, border-color .3s ease, transform .35s var(--ease);
}
.process-step:hover { background: rgba(127, 199, 255, 0.06); border-color: rgba(127, 199, 255, 0.28); transform: translateY(-4px); }
.process-num {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 3rem;
    line-height: 1;
    color: transparent;
    background: linear-gradient(180deg, var(--accent-2), rgba(127, 199, 255, 0.25));
    -webkit-background-clip: text;
    background-clip: text;
    margin-bottom: 1.4rem;
    display: block;
}
.process-step h3 { font-size: 1.18rem; color: #fff; margin-bottom: .55rem; }
.process-step p { margin: 0; color: var(--muted-dark); font-size: .95rem; line-height: 1.7; }

/* ---------- Funcionalidades (páginas internas) ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; counter-reset: feat; }
.feature {
    counter-increment: feat;
    padding: 1.6rem 1.5rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
    transition: transform .3s var(--ease), box-shadow .3s ease, border-color .3s ease;
}
.feature::before {
    content: counter(feat, decimal-leading-zero);
    display: block;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.8rem;
    line-height: 1;
    color: var(--primary);
    margin-bottom: 1rem;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(47, 118, 219, 0.2); }
.feature strong { display: block; font-size: 1.1rem; color: var(--text); margin-bottom: .45rem; letter-spacing: -.02em; }
.feature p { color: var(--muted); line-height: 1.7; margin: 0; font-size: .96rem; }

.content-surface {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
}
.content-grid { display: grid; gap: 3.5rem; grid-template-columns: 1fr 1fr; align-items: center; }
.content-grid.reverse { grid-template-columns: 1.05fr .95fr; }
.content-surface .content-grid { margin-top: 4.5rem !important; }
.content-grid .media {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    min-height: 400px;
    isolation: isolate;
    box-shadow: var(--shadow);
}
.content-grid .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.content-grid .media:hover img { transform: scale(1.04); }
.content-grid .text p, .content-grid .text li { color: var(--muted); line-height: 1.8; font-size: 1.04rem; }
.content-grid .text ul { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: .85rem; }
.content-grid .text li {
    position: relative;
    padding: .95rem 1.1rem .95rem 3.1rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--text);
    font-weight: 600;
    font-size: .98rem;
    line-height: 1.55;
}
.content-grid .text li::before {
    content: "";
    position: absolute;
    left: 1.05rem;
    top: 50%;
    width: 22px;
    height: 22px;
    margin-top: -11px;
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"), var(--grad-brand);
    background-size: 12px, 100%;
    background-position: center, center;
    background-repeat: no-repeat;
}

/* ---------- CTA ---------- */
.cta {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    text-align: center;
    color: #fff;
    border-radius: 32px;
    padding: clamp(3rem, 7vw, 5.5rem) clamp(1.5rem, 6vw, 5rem);
    background:
        radial-gradient(600px 300px at 50% 0%, rgba(127, 199, 255, 0.28), transparent 70%),
        linear-gradient(160deg, var(--navy-3) 0%, var(--navy) 55%, var(--ink) 100%);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.cta::before, .cta::after {
    content: "";
    position: absolute;
    z-index: -1;
    left: 50%;
    border-radius: 50%;
    border: 1px solid rgba(127, 199, 255, 0.14);
    pointer-events: none;
}
.cta::before { width: 760px; height: 760px; margin-left: -380px; top: -520px; }
.cta::after { width: 1100px; height: 1100px; margin-left: -550px; top: -760px; border-color: rgba(127, 199, 255, 0.07); }
.cta .section-heading { margin-left: auto; margin-right: auto; }
.cta .section-title, .cta h2 { color: #fff !important; max-width: 22ch; margin: 0 auto; }
.cta p { color: var(--muted-dark); font-size: 1.1rem; line-height: 1.75; max-width: 60ch; margin: 1.2rem auto 2.2rem; }
.cta .btn { padding: 1.1rem 2rem; font-size: 1.02rem; }
.section:has(> .container > .cta) { padding-top: 2rem; background: var(--bg); }

/* ---------- Contacto ---------- */
.contact-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 1.5rem; align-items: stretch; }
.contact-card, .contact-form {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 26px;
    box-shadow: var(--shadow);
    padding: clamp(1.6rem, 3vw, 2.6rem);
}
.contact-left {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    color: #fff;
    background:
        radial-gradient(500px 300px at 100% 0%, rgba(47, 118, 219, 0.35), transparent 70%),
        linear-gradient(170deg, var(--navy-2), var(--ink));
    border-color: rgba(255, 255, 255, 0.08);
}
.contact-left::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 520px;
    height: 520px;
    right: -260px;
    bottom: -260px;
    border-radius: 50%;
    border: 1px solid rgba(127, 199, 255, 0.14);
    box-shadow: 0 0 0 70px rgba(127, 199, 255, 0.02), 0 0 0 71px rgba(127, 199, 255, 0.08);
}
.contact-brand {
    display: inline-flex;
    padding: 1rem 1.25rem;
    border-radius: 18px;
    background: #fff;
    margin-bottom: 1.8rem;
}
.contact-brand img { max-width: 240px; width: 100%; height: auto; }
.contact-summary { color: var(--muted-dark); font-size: 1.1rem; line-height: 1.75; margin: 0 0 2rem; }
.contact-info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.contact-info-list li {
    display: grid;
    gap: .15rem;
    padding: 1rem 1.2rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line-dark);
}
.contact-info-list li strong { font-size: .76rem !important; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.contact-info-list li a, .contact-info-list li span { color: #fff; font-weight: 600; word-break: break-word; }
.contact-info-list li a:hover { color: var(--accent-2); }
.contact-copy { color: var(--muted); line-height: 1.7; }
.contact-detail-list { display: grid; gap: .85rem; margin-top: 1.1rem; }
.contact-detail { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: .9rem; align-items: start; padding: .95rem 1rem; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); }
.contact-detail strong { display: block; color: var(--text); margin-bottom: .15rem; }
.contact-detail a, .contact-detail span { color: var(--muted); line-height: 1.6; word-break: break-word; }
.contact-detail-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-brand); }
.contact-detail-icon svg { width: 20px; height: 20px; fill: #fff; }

.form-row { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
label { display: block; margin: .9rem 0 .5rem; color: var(--text); font-weight: 700; font-size: .9rem; }
input, textarea {
    width: 100%;
    padding: .95rem 1.05rem;
    border-radius: 14px;
    border: 1px solid rgba(11, 22, 40, 0.12);
    background: var(--bg);
    color: var(--text);
    font: inherit;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
input::placeholder, textarea::placeholder { color: #94a3b8; }
input:focus, textarea:focus { border-color: rgba(47, 118, 219, 0.55); background: #fff; box-shadow: 0 0 0 4px rgba(47, 118, 219, 0.12); }
textarea { min-height: 170px; resize: vertical; }
.alert {
    margin-bottom: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 14px;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.22);
    color: #14532d;
    font-weight: 600;
    line-height: 1.6;
}

/* ---------- Pie de página ---------- */
.footer {
    position: relative;
    padding: 5rem 0 2rem;
    background: var(--ink);
    color: rgba(255, 255, 255, 0.86);
    overflow: hidden;
}
.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(127, 199, 255, 0.55), transparent);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr 1fr; gap: 3rem; padding-bottom: 3rem; }
.footer h3 { margin: 0 0 .8rem; color: #fff; font-size: 1.2rem; }
.footer h4 { margin: 0 0 1.2rem; color: #fff; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.footer p, .footer li, .footer a { color: rgba(226, 236, 252, 0.62); line-height: 1.75; font-size: .95rem; }
.footer-grid > div:first-child p { max-width: 40ch; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer-list a { transition: color .2s ease; }
.footer-list a:hover, .footer-list a:focus-visible { color: #fff; }
.footer-contact { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: .6rem; }
.footer-contact a { color: rgba(255, 255, 255, 0.86); display: inline-flex; align-items: center; gap: .6rem; transition: color .2s ease; }
.footer-contact a:hover { color: var(--accent-2); }
.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    border-top: 1px solid var(--line-dark);
    padding-top: 1.6rem;
}
.footer-inner p { margin: 0; font-size: .86rem; color: rgba(226, 236, 252, 0.45); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .hero-grid, .content-grid, .content-grid.reverse, .contact-wrap, .value-grid { grid-template-columns: 1fr; gap: 3rem; }
    .services-grid, .impact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .feature-grid, .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tech-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .hero-float.is-one { left: 1rem; }
    .hero-float.is-two { right: 1rem; }
    .value-badge { right: 1rem; }
    .page-hero .content-grid .media { min-height: 360px; }
}
@media (max-width: 900px) {
    .nav { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .75rem; }
    .brand { min-width: 0; }
    .nav-toggle { display: inline-flex; justify-self: end; }
    .nav-menu { grid-column: 1 / -1; width: 100%; flex-direction: column; align-items: stretch; }
    .nav-links {
        display: none;
        width: 100%;
        margin: .4rem 0 .6rem;
        padding: .6rem;
        border-radius: 18px;
        background: rgba(9, 20, 40, 0.96);
        border: 1px solid var(--line-dark);
    }
    .nav-links.is-open { display: flex; flex-direction: column; align-items: stretch; gap: .2rem; }
    .nav-links .nav-link, .nav-links .nav-dropdown-toggle { width: 100%; justify-content: space-between; padding: .9rem 1rem; border-radius: 12px; text-align: left; }
    .nav-link.active::after, .nav-dropdown-toggle.active::before { left: 1rem; margin-left: 0; bottom: 6px; }
    .nav-links > a.nav-link:last-child { margin: .4rem 0 0; justify-content: center; text-align: center; }
    .nav-item { width: 100%; padding-bottom: 0; margin-bottom: 0; }
    .nav-dropdown {
        position: static;
        min-width: 0;
        margin-top: .25rem;
        transform: none !important;
        background: rgba(255, 255, 255, 0.04);
        box-shadow: none;
        backdrop-filter: none;
        display: none;
        opacity: 1;
        visibility: visible;
        transition: none;
    }
    .nav-item:hover .nav-dropdown, .nav-item:focus-within .nav-dropdown { display: none; }
    .nav-item.is-open .nav-dropdown { display: grid; }
}
@media (max-width: 700px) {
    .section { padding: 4.5rem 0; }
    .page-hero { padding: 3.5rem 0 4rem; }
    .container { width: calc(100% - 2rem); }
    h1 { font-size: clamp(2.2rem, 10vw, 3rem); }
    .services-grid, .impact-grid, .feature-grid, .process-grid, .form-row, .footer-grid { grid-template-columns: 1fr; }
    .hero-visual .main-image { height: 380px; }
    .hero-float { position: static; max-width: none; margin-top: .75rem; animation: none; }
    .hero-trust { gap: 1.5rem; }
    .impact-card { min-height: 380px; }
    .value-media img { height: 380px; }
    .value-badge { position: static; margin-top: 1rem; max-width: none; }
    .tech-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .contact-detail { grid-template-columns: 1fr; }
    .topbar-contact-inner { justify-content: center; gap: 1rem; }
    .brand small { display: none; }
    .content-grid .media { min-height: 280px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .page-transition-overlay { display: none; }
    body.is-ready { animation: none; }
    .reveal-on-scroll { opacity: 1 !important; transform: none !important; transition: none !important; }
    .tech-track, .hero-float { animation: none !important; }
    .hero-slide, .hero-slide img, .btn, .service-card, .feature, .impact-card img { transition: none !important; }
}
