/* ============================================================
   UBLU — Landing corporativa tecnológica
   Paleta autorizada · diseño premium · animaciones ligeras
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
    /* Paleta oficial autorizada */
    --ublu-blue: #1D334E;       /* Azul institucional */
    --ublu-blue-2: #2B4B73;     /* Azul secundario */
    --ublu-deep: #0F1B29;       /* Azul profundo */
    --white: #FFFFFF;
    --gray-100: #F2F2F2;        /* Gris claro */
    --gray-300: #D8D8D8;        /* Gris neutro */
    --accent: #C9E365;          /* Verde de contraste — solo acentos */

    /* Derivados de interfaz (del mismo rango autorizado) */
    --bg: #FFFFFF;
    --bg-alt: #F2F2F2;
    --surface: #F7F9FB;
    --border: #E0E6EC;
    --border-strong: #D8D8D8;
    --text: #1D334E;
    --text-muted: #5A6B7E;
    --blue-soft: #4F7BB0;

    /* Sobre fondos oscuros */
    --on-dark: #FFFFFF;
    --on-dark-muted: #AFC2D6;
    --on-dark-border: rgba(255, 255, 255, 0.12);

    /* Gradientes */
    --grad-hero: linear-gradient(145deg, #0F1B29 0%, #14263B 55%, #1D334E 100%);
    --grad-deep: linear-gradient(160deg, #14263B 0%, #0F1B29 100%);

    /* Tipografía */
    --font-head: 'Space Grotesk', 'Inter', Arial, sans-serif;
    --font-body: 'Inter', Arial, sans-serif;

    /* Escala */
    --container: 1320px;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 22px;

    /* Sombras */
    --shadow-sm: 0 1px 2px rgba(15, 27, 41, 0.06);
    --shadow-md: 0 12px 34px rgba(15, 27, 41, 0.09);
    --shadow-lg: 0 26px 64px rgba(15, 27, 41, 0.16);

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --header-h: 84px;
}

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

html {
    font-size: 110%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 12px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.06rem;
    line-height: 1.62;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3 {
    font-family: var(--font-head);
    line-height: 1.12;
    margin: 0;
    letter-spacing: -0.01em;
    color: var(--text);
}
p { margin: 0; }

:focus-visible {
    outline: 3px solid var(--blue-soft);
    outline-offset: 3px;
    border-radius: 4px;
}

.skip-link {
    position: absolute;
    left: 16px; top: -60px;
    z-index: 1200;
    background: var(--ublu-blue);
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 16px; }

/* ---------- Layout ---------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: clamp(20px, 5vw, 48px);
}

.section {
    position: relative;
    padding-block: clamp(64px, 9vw, 120px);
}

.section__head {
    max-width: 780px;
    margin: 0 auto clamp(44px, 5vw, 68px);
    text-align: center;
}

.eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 16px;
    position: relative;
    padding-left: 30px;
}
.eyebrow::before {
    content: "";
    position: absolute;
    left: 0; top: 50%;
    width: 20px; height: 2px;
    background: var(--accent);
    transform: translateY(-50%);
}
.eyebrow--light { color: var(--on-dark-muted); }

.section__title {
    font-size: clamp(2rem, 3.7vw, 3rem);
    font-weight: 700;
}
.section__title--light { color: #fff; }

.section__lead {
    margin-top: 20px;
    font-size: clamp(1.08rem, 1.5vw, 1.26rem);
    color: var(--text-muted);
    max-width: 66ch;
}
.section__lead--center { margin-inline: auto; }
.section__lead--light { color: var(--on-dark-muted); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    padding: 14px 26px;
    border-radius: 100px;
    border: 1.5px solid transparent;
    transition: transform 0.25s var(--ease), background 0.25s var(--ease),
                box-shadow 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
    will-change: transform;
    text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--ublu-blue); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--ublu-blue-2); box-shadow: var(--shadow-md); }

.btn--light { background: #fff; color: var(--ublu-blue); box-shadow: var(--shadow-md); }
.btn--light:hover { box-shadow: var(--shadow-lg); }

.btn--ghost-light { background: transparent; color: #fff; border-color: var(--on-dark-border); }
.btn--ghost-light:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255,255,255,0.4); }

/* Acento verde — reservado al CTA principal del hero y cierre */
.btn--accent { background: var(--accent); color: var(--ublu-deep); font-weight: 700; box-shadow: 0 10px 30px rgba(201, 227, 101, 0.26); }
.btn--accent:hover { background: #d4ea7f; box-shadow: 0 16px 40px rgba(201, 227, 101, 0.34); }
.btn--accent:disabled { background: var(--gray-300); color: #7c8894; box-shadow: none; cursor: not-allowed; transform: none; }

.btn--lg { padding: 16px 34px; font-size: 1.05rem; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    height: var(--header-h);
    display: flex;
    align-items: center;
    transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
    border-bottom: 1px solid transparent;
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; }
.header__brand { position: relative; display: inline-flex; align-items: center; flex-shrink: 0; }
.header__logo { height: 51px; width: auto; transition: opacity 0.3s var(--ease); }
.header__logo--light { position: absolute; top: 0; left: 0; opacity: 1; }
.header__logo--dark { opacity: 0; }

.header__cta-mobile { display: none; }
.header__nav { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 40px); margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: clamp(16px, 2vw, 32px); }
.nav__link {
    font-size: 1.06rem;
    font-weight: 500;
    color: #fff;
    position: relative;
    padding: 4px 0;
    transition: color 0.25s var(--ease);
}
.nav__link::after {
    content: "";
    position: absolute;
    left: 0; bottom: -2px;
    width: 0; height: 2px;
    background: var(--accent);
    transition: width 0.28s var(--ease);
}
.nav__link:hover::after, .nav__link.is-active::after { width: 100%; }
.header__cta { flex-shrink: 0; }

.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    box-shadow: var(--shadow-sm);
    border-bottom-color: var(--border);
}
.site-header.is-scrolled .header__logo--dark { opacity: 1; }
.site-header.is-scrolled .header__logo--light { opacity: 0; }
.site-header.is-scrolled .nav__link { color: var(--text); }
.site-header.is-scrolled .nav-toggle__bar { background: var(--ublu-blue); }

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px; height: 44px;
    padding: 10px;
    background: transparent;
    border: 0;
    border-radius: 8px;
}
.nav-toggle__bar {
    display: block;
    height: 2px; width: 100%;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s var(--ease), opacity 0.2s var(--ease), background 0.3s var(--ease);
}
.nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 998;
    background: rgba(15, 27, 41, 0.5);
    opacity: 0;
    transition: opacity 0.3s var(--ease);
}
body.nav-open .nav-backdrop { opacity: 1; }

/* ============================================================
   SECCIÓN 01 — HERO (fondo: pasillo de servidores con neón azul)
   ============================================================ */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    background: var(--ublu-deep);
    color: #fff;
    padding-top: calc(var(--header-h) + clamp(40px, 6vw, 72px));
    padding-bottom: clamp(60px, 7vw, 96px);
    overflow: hidden;
    isolation: isolate;
}

/* Capa de la fotografía — lado izquierdo visible */
.hero__media {
    position: absolute;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    transform: scale(1.06); /* margen para parallax, sin revelar bordes */
}
.hero__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;        /* evita deformación */
    object-position: left center; /* prioriza el lado izquierdo de la imagen */
    will-change: transform;
}

/* Degradado: transparente a la izquierda (imagen) → oscuro a la derecha (texto) */
.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(90deg,
            rgba(15, 27, 41, 0.08) 0%,
            rgba(15, 27, 41, 0.14) 32%,
            rgba(15, 27, 41, 0.52) 56%,
            rgba(15, 27, 41, 0.82) 76%,
            rgba(15, 27, 41, 0.92) 100%),
        linear-gradient(180deg,
            rgba(15, 27, 41, 0.42) 0%,
            rgba(15, 27, 41, 0.08) 30%,
            rgba(15, 27, 41, 0.12) 70%,
            rgba(15, 27, 41, 0.60) 100%);
}

.hero__grid-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(126, 170, 220, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(126, 170, 220, 0.06) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: radial-gradient(ellipse 70% 70% at 82% 50%, #000 10%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 82% 50%, #000 10%, transparent 70%);
    pointer-events: none;
}
.hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 700px);
    justify-content: end;
    align-items: center;
    width: 100%;
}
.hero__title {
    font-size: clamp(2.6rem, 5.4vw, 4.4rem);
    font-weight: 700;
    margin-top: 0;
    color: #ffffff;
    text-shadow: 0 2px 24px rgba(10, 18, 29, 0.6);
}
.hero__lead {
    margin-top: 24px;
    font-size: clamp(1.1rem, 1.6vw, 1.38rem);
    color: #e2eaf3;
    max-width: 58ch;
    text-shadow: 0 1px 14px rgba(10, 18, 29, 0.55);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 36px; }
@keyframes linkBreath { 0%, 100% { opacity: 0.3; } 50% { opacity: 0.65; } }

/* Scroll hint */
.hero__scroll {
    position: absolute;
    left: 50%; bottom: 26px;
    transform: translateX(-50%);
    z-index: 1;
    display: grid;
    place-items: center;
    width: 30px; height: 48px;
}
.hero__scroll-mouse {
    width: 24px; height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 14px;
    position: relative;
}
.hero__scroll-mouse::after {
    content: "";
    position: absolute;
    left: 50%; top: 8px;
    width: 4px; height: 7px;
    border-radius: 2px;
    background: var(--accent);
    transform: translateX(-50%);
    animation: scrollDot 1.8s var(--ease) infinite;
}
@keyframes scrollDot { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translate(-50%, 12px); } 100% { opacity: 0; } }

/* ============================================================
   SECCIÓN 02 — QUIÉNES SOMOS
   ============================================================ */
.about { background: var(--bg); }
.about__grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(40px, 6vw, 84px);
    align-items: center;
}
.about__concepts {
    margin-top: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px 32px;
}
.concept-item { display: flex; gap: 16px; }
.concept-item__icon {
    flex-shrink: 0;
    width: 46px; height: 46px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--ublu-blue-2);
}
.concept-item__icon svg { width: 24px; height: 24px; }
.concept-item__title { font-size: 1.1rem; font-weight: 600; }
.concept-item__text { margin-top: 6px; font-size: 0.93rem; color: var(--text-muted); }

/* ============================================================
   MAPA DE VALOR UBLU (módulo interactivo, superficie azul noche)
   ============================================================ */
.about__visual { display: flex; justify-content: center; }
.neural {
    /* tokens locales del mapa (encapsulados) — fondo claro + radar azul suave */
    --map-glow: rgba(79, 123, 176, 0.08);
    --map-grid: rgba(79, 123, 176, 0.05);
    --map-ring: rgba(43, 75, 115, 0.3);
    --map-ring-soft: rgba(43, 75, 115, 0.16);
    --map-node-border: var(--accent);
    --map-node-icon: #2B4B73;
    --map-link: rgba(43, 75, 115, 0.32);
    --map-link-hot: #2B4B73;

    position: relative;
    isolation: isolate;
    width: min(100%, 560px);
    margin-inline: auto;
    padding: clamp(8px, 2.5vw, 20px);
    background: transparent;
    overflow: visible;
}
/* halo radar muy tenue alrededor del centro */
.neural::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(79, 123, 176, 0.06), transparent 52%);
    pointer-events: none;
    z-index: 0;
}
/* retícula geométrica casi imperceptible (base técnica) */
.neural::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--map-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--map-grid) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 42%, transparent 72%);
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 42%, transparent 72%);
    pointer-events: none;
    z-index: 0;
}
.neural__stage {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 1;
}
.neural__web { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.neural__rings circle { fill: none; stroke: var(--map-ring-soft); stroke-width: 1; }
.neural__rings .neural__ring-node { stroke: var(--map-ring); stroke-width: 1.4; }
.neural__guides line { stroke: var(--map-ring-soft); stroke-width: 1; stroke-dasharray: 2 10; }
.neural__links .nlink { stroke: var(--map-link); stroke-width: 1.4; fill: none; }
.neural__links .nlink-hot {
    stroke: var(--map-link-hot);
    stroke-width: 2;
    fill: none;
    opacity: 0;
    stroke-linecap: round;
    stroke-dasharray: 210;
    stroke-dashoffset: 210;
    filter: drop-shadow(0 0 4px rgba(127, 176, 255, 0.5));
}
.neural__dots circle { fill: var(--map-link-hot); opacity: 0.5; }

/* Bolita verde orbitando el anillo de los nodos */
.neural__orbit-dot {
    fill: var(--accent);
    transform-box: view-box;
    transform-origin: 240px 240px;
    animation: norbit 7s linear infinite;
    filter: drop-shadow(0 0 5px rgba(201, 227, 101, 0.7));
}
@keyframes norbit { to { transform: rotate(360deg); } }

/* resalta únicamente la conexión del nodo con el cursor encima */
.neural:has(.neural__node--tl:hover) .nlink-hot--tl,
.neural:has(.neural__node--tr:hover) .nlink-hot--tr,
.neural:has(.neural__node--br:hover) .nlink-hot--br,
.neural:has(.neural__node--bl:hover) .nlink-hot--bl {
    opacity: 1;
    animation: nflow 0.62s var(--ease) forwards;
}
@keyframes nflow { to { stroke-dashoffset: 0; } }

/* Núcleo central (pieza elevada multicapa) */
.neural__core {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 128px; height: 128px;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 5px;
    border-radius: 50%;
    background: var(--grad-hero);
    box-shadow:
        inset 0 2px 3px rgba(255, 255, 255, 0.2),
        inset 0 -7px 15px rgba(0, 0, 0, 0.35),
        0 16px 32px -10px rgba(29, 51, 78, 0.5);
    z-index: 3;
}
.neural__core::before { /* borde con reflejo verde controlado */
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 50%;
    border: 1.5px solid rgba(201, 227, 101, 0.55);
    -webkit-mask: linear-gradient(#000, rgba(0, 0, 0, 0.18));
    mask: linear-gradient(#000, rgba(0, 0, 0, 0.18));
}
.neural__core::after { /* halo exterior sutil sobre fondo claro */
    content: "";
    position: absolute;
    inset: -13px;
    border-radius: 50%;
    border: 1px solid rgba(79, 123, 176, 0.18);
    box-shadow: 0 0 34px rgba(79, 123, 176, 0.16);
}
.neural__core-logo { width: 40px; height: 40px; filter: brightness(0) invert(1); }
.neural__core-name { font-family: var(--font-head); font-weight: 700; font-size: 1.12rem; letter-spacing: 0.06em; color: #fff; }

/* Nodos (cápsulas blancas con borde verde de marca) */
.neural__node {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 118px; height: 118px;
    padding: 10px;
    border-radius: 50%;
    text-align: center;
    color: var(--ublu-blue);
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.2;
    background: #ffffff;
    border: 1.5px solid var(--map-node-border);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 10px 22px -12px rgba(29, 51, 78, 0.28);
    z-index: 2;
    transform: translate(-50%, -50%);
    transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
}
.neural__node-icon { color: var(--map-node-icon); display: grid; place-items: center; transition: color 0.22s var(--ease); }
.neural__node-icon svg { width: 22px; height: 22px; }
.neural__node-label { display: block; }
.neural__node:hover {
    transform: translate(-50%, calc(-50% - 4px));
    border-color: var(--accent);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 0 0 4px rgba(201, 227, 101, 0.18),
        0 18px 30px -14px rgba(29, 51, 78, 0.35);
}
.neural__node:hover .neural__node-icon { color: var(--ublu-blue); }
.neural__node:active { transform: translate(-50%, calc(-50% - 1px)); }
.neural__node:focus-visible {
    outline: none;
    transform: translate(-50%, calc(-50% - 4px));
    border-color: var(--accent);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 0 0 3px rgba(201, 227, 101, 0.5),
        0 18px 30px -14px rgba(29, 51, 78, 0.35);
}

.neural__node--tl { top: 21%; left: 21%; }
.neural__node--tr { top: 21%; left: 79%; }
.neural__node--br { top: 79%; left: 79%; }
.neural__node--bl { top: 79%; left: 21%; }

/* ============================================================
   SECCIÓN 03 — SOLUCIONES (oscura)
   ============================================================ */
.solutions { position: relative; background: var(--grad-deep); color: #fff; overflow: hidden; }
.solutions__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.sol-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--on-dark-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease);
}
.sol-card:hover {
    transform: translateY(-6px);
    border-color: rgba(201, 227, 101, 0.4);
    background: rgba(255, 255, 255, 0.055);
}
.sol-card__media {
    height: 270px;
    position: relative;
    border-bottom: 1px solid var(--on-dark-border);
    overflow: hidden;
    background: rgba(13, 24, 39, 0.4);
}
.viz { width: 100%; height: 100%; }
.sol-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s var(--ease);
}
.sol-card:hover .sol-card__img { transform: scale(1.05); }

/* Contact Center viz */
.viz-cc__bars rect { fill: rgba(126, 170, 220, 0.35); transform-box: fill-box; transform-origin: bottom; animation: barPulse 3.2s var(--ease) infinite; }
.viz-cc__bars rect:nth-child(odd) { animation-delay: -0.6s; }
.viz-cc__bars rect:nth-child(3n) { animation-delay: -1.2s; fill: rgba(201, 227, 101, 0.45); }
@keyframes barPulse { 0%, 100% { transform: scaleY(0.72); } 50% { transform: scaleY(1); } }
.viz-cc__trend { stroke: var(--accent); stroke-width: 2; stroke-dasharray: 400; stroke-dashoffset: 400; }
.sol-card:hover .viz-cc__trend { animation: drawLine 1.4s var(--ease) forwards; }
@keyframes drawLine { to { stroke-dashoffset: 0; } }

/* AI waveform viz */
.viz-ai__wave rect { fill: rgba(126, 170, 220, 0.5); transform-box: fill-box; transform-origin: center; animation: wave 1.6s ease-in-out infinite; }
.viz-ai__wave rect:nth-child(3n) { fill: rgba(201, 227, 101, 0.55); }
.viz-ai__wave rect:nth-child(odd) { animation-delay: -0.4s; }
.viz-ai__wave rect:nth-child(3n+1) { animation-delay: -0.8s; }
.viz-ai__wave rect:nth-child(4n) { animation-delay: -1.1s; }
@keyframes wave { 0%, 100% { transform: scaleY(0.5); } 50% { transform: scaleY(1); } }

/* Telco routing viz */
.viz-telco__links path { stroke-dasharray: 3 6; opacity: 0.6; animation: flowDash 2.4s linear infinite; }
@keyframes flowDash { to { stroke-dashoffset: -18; } }
.viz-telco__nodes circle { fill: rgba(126, 170, 220, 0.2); stroke: #4f7bb0; stroke-width: 1.6; }
.viz-telco__packet { fill: var(--accent); }
.viz-telco__packet--b { fill: #7fb0ff; }

.sol-card__body { padding: 28px 28px 32px; display: flex; flex-direction: column; flex: 1; }
.sol-card__index { font-family: var(--font-head); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.1em; color: var(--accent); }
.sol-card__title { font-size: 1.32rem; font-weight: 600; color: #fff; margin-top: 8px; }
.sol-card__desc { margin-top: 12px; color: var(--on-dark-muted); font-size: 0.96rem; }
.sol-card__list { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--on-dark-border); display: grid; gap: 11px; }
.sol-card__list li { position: relative; padding-left: 24px; font-size: 0.92rem; color: #dce7f2; }
.sol-card__list li::before {
    content: "";
    position: absolute;
    left: 0; top: 7px;
    width: 10px; height: 10px;
    border-radius: 50%;
    border: 2px solid var(--blue-soft);
    transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.sol-card:hover .sol-card__list li::before,
.sol-card:focus-within .sol-card__list li::before { border-color: var(--accent); background: rgba(201, 227, 101, 0.3); }
.solutions__note { margin-top: 30px; text-align: center; font-size: 0.82rem; color: var(--on-dark-muted); opacity: 0.8; }

/* ============================================================
   SECCIÓN 04 — ECOSISTEMA (oscura, interactiva)
   ============================================================ */
.ecosystem { position: relative; background: var(--ublu-deep); color: #fff; overflow: hidden; }
.ecosystem__grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(126, 170, 220, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(126, 170, 220, 0.05) 1px, transparent 1px);
    background-size: 58px 58px;
    mask-image: radial-gradient(ellipse 72% 80% at 50% 30%, #000, transparent 72%);
    -webkit-mask-image: radial-gradient(ellipse 72% 80% at 50% 30%, #000, transparent 72%);
    pointer-events: none;
}
.ecosystem .container { position: relative; z-index: 1; }
.eco { display: grid; gap: 36px; }
.eco__track {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    position: relative;
}
/* línea base que conecta los nodos */
.eco__track::before {
    content: "";
    position: absolute;
    top: 21px; left: 7%; right: 7%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(126,170,220,0.4) 12%, rgba(126,170,220,0.4) 88%, transparent);
    z-index: 0;
}
.eco__node {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 44px 8px 16px;
    border: 0;
    background: transparent;
    text-align: center;
    cursor: pointer;
    border-radius: var(--radius);
    transition: transform 0.3s var(--ease);
}
.eco__node:hover { transform: translateY(-5px); }
.eco__dot {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--ublu-deep);
    border: 2px solid var(--blue-soft);
    transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.eco__icon {
    width: 64px; height: 64px;
    margin-top: 0;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--on-dark-border);
    color: #a9c6e6;
    transition: border-color 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.eco__icon svg { width: 30px; height: 30px; }
.eco__name { font-size: 0.92rem; font-weight: 600; color: #dce7f2; }
.eco__node:hover .eco__icon,
.eco__node:focus-visible .eco__icon {
    border-color: rgba(201, 227, 101, 0.5);
    background: rgba(201, 227, 101, 0.08);
    color: #fff;
}
.eco__node:hover .eco__dot,
.eco__node:focus-visible .eco__dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px rgba(201, 227, 101, 0.16); }

.eco__panel {
    max-width: 640px;
    height: 180px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--on-dark-border);
    border-radius: var(--radius);
    padding: 26px 30px;
}
.eco__panel-step { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.eco__panel-title { font-size: 1.25rem; font-weight: 600; color: #fff; margin-top: 8px; }
.eco__panel-text { margin-top: 8px; color: var(--on-dark-muted); }

/* Tarjeta de info embebida por nodo (solo visible en móvil) */
.eco__node-info { display: none; }

/* ============================================================
   SECCIÓN 05 — BENEFICIOS
   ============================================================ */
.benefits { background: var(--bg); }
.benefits__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.benefit {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 26px;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
    overflow: hidden;
}
.benefit::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease);
}
.benefit:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.benefit:hover::after { transform: scaleX(1); }
.benefit__icon {
    width: 56px; height: 56px;
    margin: 0 0 18px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--border);
    color: var(--ublu-blue-2);
    transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.benefit__icon svg { width: 26px; height: 26px; }
.benefit:hover .benefit__icon { background: var(--ublu-blue); color: #fff; }
.benefit__title { font-size: 1.16rem; font-weight: 600; }
.benefit__text { margin-top: 10px; color: var(--text-muted); font-size: 0.94rem; max-width: 30ch; }

/* ============================================================
   SECCIÓN 06 — INDUSTRIAS
   ============================================================ */
.industries { background: var(--bg-alt); }
.industries__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ind {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 28px;
    overflow: hidden;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.ind::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease);
}
.ind:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.ind:hover::after { transform: scaleX(1); }
.ind__icon {
    width: 56px; height: 56px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--ublu-blue-2);
    margin-bottom: 18px;
    transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.ind__icon svg { width: 26px; height: 26px; }
.ind:hover .ind__icon { background: var(--ublu-blue); color: #fff; border-color: transparent; }
.ind__title { font-size: 1.14rem; font-weight: 600; }
.ind__text { margin-top: 10px; color: var(--text-muted); font-size: 0.93rem; max-width: 32ch; }

/* ============================================================
   SECCIÓN 07 — ENFOQUE CONSULTIVO (oscura)
   ============================================================ */
.approach { position: relative; background: var(--grad-deep); color: #fff; overflow: hidden; }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; position: relative; list-style: none; margin: 0; padding: 0; }
.steps::before {
    content: "";
    position: absolute;
    top: 28px; left: 10%; right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--blue-soft) 10%, var(--blue-soft) 90%, transparent);
    z-index: 0;
}
.step {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.step__num {
    display: grid;
    place-items: center;
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--ublu-blue-2);
    color: #fff;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.3rem;
    box-shadow: 0 0 0 6px var(--ublu-deep);
    margin-bottom: 22px;
    transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}
.step:hover .step__num { transform: scale(1.08); background: var(--accent); color: var(--ublu-deep); }
.step__title { font-size: 1.1rem; font-weight: 600; color: #fff; }
.step__text { margin-top: 10px; color: var(--on-dark-muted); font-size: 0.9rem; max-width: 24ch; }

/* ============================================================
   SECCIÓN 08 — CONTACTO (oscura)
   ============================================================ */
.contact { position: relative; background: var(--grad-hero); color: #fff; text-align: center; overflow: hidden; }
.contact__grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(126, 170, 220, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(126, 170, 220, 0.05) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 70% 80% at 50% 40%, #000, transparent 72%);
    -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 40%, #000, transparent 72%);
    pointer-events: none;
}
.contact__glow {
    position: absolute;
    top: 50%; left: 50%;
    width: 560px; height: 560px;
    max-width: 90vw;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(201, 227, 101, 0.08), transparent 60%);
    pointer-events: none;
}
.contact__inner { position: relative; z-index: 1; max-width: 760px; margin-inline: auto; }
.contact__symbol { width: 72px; height: 72px; margin: 0 auto 28px; filter: brightness(0) invert(1); opacity: 0.92; }
.contact__title { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 700; color: #fff; }
.contact__text { margin: 22px auto 38px; font-size: clamp(1rem, 1.5vw, 1.15rem); color: #cdd9e7; max-width: 60ch; }
.contact__cta { display: inline-flex; flex-direction: column; align-items: center; gap: 12px; }
.contact__note { font-size: 0.82rem; color: var(--on-dark-muted); }

/* ============================================================
   SECCIÓN 09 — FOOTER
   ============================================================ */
.site-footer { background: var(--ublu-deep); color: #fff; padding-top: clamp(56px, 7vw, 84px); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: clamp(32px, 5vw, 64px); padding-bottom: 48px; }
.footer__logo { height: 42px; width: auto; margin-bottom: 16px; }
.footer__slogan { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; color: var(--accent); margin-bottom: 14px; }
.footer__desc { color: var(--on-dark-muted); font-size: 0.95rem; max-width: 42ch; }
.footer__heading { font-family: var(--font-body); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #8198b2; margin-bottom: 18px; }
.footer__nav ul, .footer__col ul { display: grid; gap: 12px; }
.footer__nav a, .footer__col a { color: var(--on-dark-muted); font-size: 0.95rem; transition: color 0.25s var(--ease); }
.footer__nav a:hover, .footer__col a:hover { color: #fff; }
.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-block: 24px;
    border-top: 1px solid var(--on-dark-border);
    font-size: 0.88rem;
    color: #8198b2;
}
.footer__note { font-family: var(--font-head); font-weight: 600; color: var(--accent); }

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
[data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* Stagger inside grids */
.solutions__grid .sol-card:nth-child(2) { transition-delay: 0.08s; }
.solutions__grid .sol-card:nth-child(3) { transition-delay: 0.16s; }
.benefits__grid .benefit:nth-child(2) { transition-delay: 0.06s; }
.benefits__grid .benefit:nth-child(3) { transition-delay: 0.12s; }
.benefits__grid .benefit:nth-child(4) { transition-delay: 0.18s; }
.steps .step:nth-child(2) { transition-delay: 0.08s; }
.steps .step:nth-child(3) { transition-delay: 0.16s; }
.steps .step:nth-child(4) { transition-delay: 0.24s; }
.steps .step:nth-child(5) { transition-delay: 0.32s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
    .eco__track { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
    .eco__track::before { display: none; }
    .industries__grid { grid-template-columns: repeat(2, 1fr); }
    .benefits__grid { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
    .steps::before { display: none; }
}

@media (max-width: 860px) {
    :root { --header-h: 66px; }

    .header__cta { display: none; }
    .nav-toggle { display: flex; }
    .header__nav {
        position: fixed;
        top: 0; right: 0;
        height: 100dvh;
        width: min(82vw, 340px);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        padding: calc(var(--header-h) + 20px) 28px 32px;
        background: #fff;
        box-shadow: -20px 0 60px rgba(15, 27, 41, 0.18);
        transform: translateX(100%);
        transition: transform 0.38s var(--ease);
        z-index: 999;
        overflow-y: auto;
    }
    body.nav-open .header__nav { transform: translateX(0); }
    .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
    .nav__link { color: var(--text); font-size: 1.05rem; padding: 16px 0; border-bottom: 1px solid var(--border); }
    .nav__link::after { display: none; }
    .header__cta-mobile { display: inline-flex; margin-top: 24px; }

    .nav-toggle__bar { background: #fff; }
    .site-header.is-scrolled .nav-toggle__bar,
    body.nav-open .nav-toggle__bar { background: var(--ublu-blue); }
    body.nav-open .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    body.nav-open .nav-toggle__bar:nth-child(2) { opacity: 0; }
    body.nav-open .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .hero { min-height: auto; }
    .hero__inner { grid-template-columns: 1fr; justify-content: stretch; }
    .hero__photo { object-position: 60% center; }
    /* Refuerza el degradado detrás del texto en pantallas pequeñas */
    .hero__overlay {
        background:
            linear-gradient(180deg,
                rgba(15, 27, 41, 0.72) 0%,
                rgba(15, 27, 41, 0.52) 38%,
                rgba(15, 27, 41, 0.62) 72%,
                rgba(15, 27, 41, 0.86) 100%);
    }
    .hero__lead { max-width: none; }
    .hero__scroll { display: none; }
    .eyebrow { padding-left: 0; }
    .eyebrow::before { display: none; }

    .about__grid { grid-template-columns: 1fr; gap: 44px; }
    .about__visual { order: -1; }
    .solutions__grid { grid-template-columns: 1fr; }
    .eco__track { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }

    .footer__grid { grid-template-columns: 1fr 1fr; }
    .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 540px) {
    .hero__actions .btn { width: 100%; }
    .about__concepts { grid-template-columns: 1fr; }
    .neural { width: 100%; max-width: 420px; }
    .neural__core { width: 104px; height: 104px; }
    .neural__core-logo { width: 34px; height: 34px; }
    .neural__core-name { font-size: 1rem; }
    .neural__node { width: 100px; height: 100px; font-size: 0.76rem; gap: 5px; }
    .neural__node-icon svg { width: 19px; height: 19px; }
    .benefits__grid { grid-template-columns: 1fr; }
    .industries__grid { grid-template-columns: 1fr; }
    .eco__track { grid-template-columns: 1fr; }
    .eco__track .eco__node { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; gap: 18px; text-align: left; padding: 10px 6px; }
    .eco__dot { display: none; }
    /* En móvil la info se muestra bajo el icono; se oculta el panel compartido */
    .eco__panel { display: none; }
    .eco__node-info {
        display: block;
        flex-basis: 100%;
        width: 100%;
        margin: 0;
        overflow: hidden;
        max-height: 0;
        opacity: 0;
        transform: translateY(-4px);
        transition: max-height 0.32s var(--ease), opacity 0.26s var(--ease), transform 0.32s var(--ease), margin-top 0.32s var(--ease);
    }
    .eco__node.is-active .eco__node-info {
        max-height: 220px;
        opacity: 1;
        transform: translateY(0);
        margin-top: 4px;
        padding: 14px 16px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid var(--on-dark-border);
        border-left: 3px solid var(--accent);
        border-radius: var(--radius-sm);
    }
    .eco__node-info-title { font-size: 1.02rem; font-weight: 600; color: #fff; }
    .eco__node-info-text { margin-top: 6px; font-size: 0.92rem; color: var(--on-dark-muted); }
    .eco__icon { margin-top: 0; }
    .steps { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr; }
    .footer__bottom { flex-direction: column; text-align: center; gap: 8px; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
    [data-reveal] { opacity: 1; transform: none; }
    .neural__pulses, .viz-telco__packet, .hero__scroll { display: none; }
    .hero__photo { transform: none; }
    .neural__node { animation: none; }
}
