/* =====================================================================
   DEVINT · Componentes compartidos del sitio
   Extiende el estilo incumbente (fondo oscuro, acentos cian #00d4ff).
   Prefijo dx- para no chocar con las clases dv- existentes.
   ===================================================================== */

:root {
    --dx-bg: #03050a;
    --dx-navy: #0a1f3f;
    --dx-cyan: #00d4ff;
    --dx-blue: #007cf0;
    --dx-green: #00ff9c;
    --dx-text: #f4f8fc;
    --dx-muted: rgba(226, 236, 248, 0.74);
    --dx-faint: rgba(226, 236, 248, 0.55);
    --dx-line: rgba(255, 255, 255, 0.1);
    --dx-surface: rgba(255, 255, 255, 0.035);
    --dx-radius: 16px;
    --dx-ease: cubic-bezier(0.16, 1, 0.3, 1);
    --dx-font-display: 'Montserrat', 'Segoe UI', sans-serif;
    --accent: var(--dx-cyan);
}

/* ===== SUPERFICIES DEL NAVEGADOR ===== */
html {
    scroll-behavior: smooth;
    scrollbar-color: #1d3a5f var(--dx-bg);
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--dx-bg); }
::-webkit-scrollbar-thumb { background: #1d3a5f; border-radius: 10px; border: 2px solid var(--dx-bg); }
::-webkit-scrollbar-thumb:hover { background: #28507f; }

::selection {
    background: rgba(0, 212, 255, 0.35);
    color: #fff;
}

input, textarea, select { caret-color: var(--dx-cyan); }

:focus-visible {
    outline: 2px solid var(--dx-cyan);
    outline-offset: 3px;
    border-radius: 6px;
}

a { text-underline-offset: 3px; }

body {
    background-color: var(--dx-bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3,
.dv-title,
.hero h1,
.dv-contact-title {
    font-family: var(--dx-font-display);
    text-wrap: balance;
}

main { position: relative; z-index: 1; }

/* Íconos Lucide */
.lucide {
    width: 1.2em;
    height: 1.2em;
    stroke-width: 1.75;
    flex-shrink: 0;
    vertical-align: -0.2em;
}

.dx-skip {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 2000;
    padding: 10px 16px;
    border-radius: 10px;
    background: var(--dx-cyan);
    color: #000;
    font-weight: 700;
    text-decoration: none;
    transform: translateY(-160%);
    transition: transform 0.2s ease;
}
.dx-skip:focus { transform: none; }

.dx-visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ===== TIPOGRAFÍA Y BLOQUES BASE ===== */
.dx-section {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 96px 20px;
}

.dx-head {
    max-width: 720px;
    margin-bottom: 48px;
}

.dx-head p,
.dx-lead + p,
.dx-page-hero-inner > p {
    color: var(--dx-muted);
    line-height: 1.7;
    font-size: 1.05rem;
    max-width: 68ch;
}

.dx-h1 {
    font-size: clamp(2.3rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -0.025em;
    margin-bottom: 22px;
}

.dx-h1 span,
.dx-problems h2 span { color: var(--dx-cyan); }

.dx-h2 {
    font-size: clamp(1.75rem, 3.4vw, 2.7rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.dx-h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.dx-lead {
    font-size: 1.15rem;
    line-height: 1.75;
    color: rgba(244, 248, 252, 0.9);
    max-width: 65ch;
    margin-bottom: 18px;
}

.dx-muted { color: var(--dx-faint); }
.dx-center { text-align: center; margin-top: 36px; }

.dx-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--dx-cyan);
    font: inherit;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(0, 212, 255, 0.35);
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    transition: gap 0.3s var(--dx-ease), text-decoration-color 0.3s ease;
}
.dx-link:hover { gap: 12px; text-decoration-color: var(--dx-cyan); }

.dx-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.dx-actions .btn-secondary { margin-left: 0; }

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s var(--dx-ease), box-shadow 0.3s ease, background 0.3s ease;
}

.btn-secondary { background: transparent; font-weight: 600; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0, 212, 255, 0.55); }
.btn-secondary:hover { background: rgba(0, 212, 255, 0.1); transform: translateY(-2px); }

/* ===== REVELADO AL HACER SCROLL =====
   Visible por defecto; solo se oculta cuando el JS está activo. */
.dx-js .dx-reveal:not(.is-in) {
    opacity: 0;
    transform: translateY(28px);
    filter: blur(6px);
}

.dx-reveal {
    transition:
        opacity 0.9s var(--dx-ease),
        transform 0.9s var(--dx-ease),
        filter 0.9s var(--dx-ease);
    transition-delay: calc(var(--d, 0) * 70ms);
}

/* ===== HERO DE PÁGINAS INTERNAS ===== */
.dx-page-hero {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 170px 20px 40px;
}

.dx-page-hero-inner { max-width: 860px; }

.dx-notice {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    margin-top: 20px;
    padding: 12px 18px;
    border-radius: 12px;
    background: rgba(250, 204, 21, 0.1);
    border: 1px solid rgba(250, 204, 21, 0.4);
    color: #fde68a;
}

/* ===================================================================
   INICIO
   =================================================================== */

/* hero.css centra el texto y lo corre con margin-left: -40%, que en
   pantallas anchas lo saca por la izquierda. Se alinea a la columna de 1200px. */
.hero { justify-content: flex-start; }

/* El canvas 3D (logo y red de nodos) va sobre el overlay oscuro para que el logo se vea blanco */
.hero .hero-overlay { z-index: 2; }
#canvas-container { z-index: 3; }

.hero-content {
    margin-left: max(20px, calc((100vw - 1200px) / 2));
    max-width: min(650px, 52vw);
}

/* Las tarjetas "trust" van en posición absoluta (home.css):
   se reserva su alto para que no se monten sobre la sección siguiente. */
@media (min-width: 901px) {
    .dv-trust .dv-trust-wrap { min-height: 330px; }
}

/* ----- Problemas ----- */
.dx-problems {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 56px;
    align-items: center;
    padding-top: 48px;
}

.dx-problems-media {
    position: relative;
    border-radius: var(--dx-radius);
    overflow: hidden;
    min-height: 520px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
}

.dx-problems-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 30% center;
}

.dx-problems-media figcaption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 120px 32px 32px;
    background: linear-gradient(to top, rgba(3, 5, 10, 0.95) 35%, rgba(3, 5, 10, 0));
}

.dx-problems-media h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.dx-problems-media p { color: var(--dx-muted); line-height: 1.6; max-width: 52ch; }

.dx-problem-list { list-style: none; }

.dx-problem-list li {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 16px;
    align-items: start;
    padding: 18px 0;
    border-bottom: 1px solid var(--dx-line);
}

.dx-problem-list li:first-child { padding-top: 0; }

.dx-problem-list .lucide {
    width: 46px;
    height: 46px;
    padding: 11px;
    border-radius: 50%;
    color: var(--dx-cyan);
    border: 1px solid rgba(0, 212, 255, 0.35);
    background: rgba(0, 212, 255, 0.06);
    transition: background 0.3s ease, color 0.3s ease;
}

.dx-problem-list li:hover .lucide { background: var(--dx-cyan); color: var(--dx-bg); }
.dx-problem-list h3 { font-size: 1.05rem; margin-bottom: 4px; }
.dx-problem-list p { color: var(--dx-muted); font-size: 0.95rem; line-height: 1.5; }

/* ----- Carrusel de soluciones (complementa home.css) ----- */
.dx-sectors-sub {
    margin-top: 12px;
    color: var(--dx-muted);
    font-size: 1.05rem;
}

.dv-bg.dx-bg-photo { background-position: center bottom; }

.dv-sector h3 { right: 25px; line-height: 1.15; }
.dv-sector p  { right: 25px; }

.dv-sector .dx-sector-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    opacity: 1;
    transform: none;
    color: var(--color);
    background: rgba(3, 5, 10, 0.55);
    z-index: 3;
}

.dv-sector .dx-sector-icon .lucide { width: 22px; height: 22px; }

/* ----- Contador en vivo ----- */
.dx-pulse {
    position: relative;
    z-index: 1;
    padding: 88px 20px;
    border-block: 1px solid var(--dx-line);
    background:
        radial-gradient(60% 120% at 50% 0%, rgba(0, 212, 255, 0.1), transparent 70%),
        rgba(10, 31, 63, 0.35);
    text-align: center;
}

.dx-pulse-inner { max-width: 900px; margin: 0 auto; }

.dx-pulse h2 {
    font-size: clamp(1.4rem, 2.8vw, 2.2rem);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 26px;
}

.dx-pulse h2 strong { color: #ff8a3d; }

.dx-pulse-live {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 999px;
    border: 1px solid rgba(0, 255, 156, 0.3);
    background: rgba(0, 255, 156, 0.05);
    margin-bottom: 18px;
    color: var(--dx-muted);
}

.dx-pulse-count {
    font-family: var(--dx-font-display);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dx-green);
    font-variant-numeric: tabular-nums;
}

.dx-live-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--dx-green);
    align-self: center;
    animation: dx-live 1.6s ease-out infinite;
}

@keyframes dx-live {
    0%   { box-shadow: 0 0 0 0 rgba(0, 255, 156, 0.6); }
    100% { box-shadow: 0 0 0 12px rgba(0, 255, 156, 0); }
}

/* ----- Tecnología S2C / S2G ----- */
.dx-tech-grid {
    display: grid;
    grid-template-columns: 1fr 1.05fr 1fr;
    gap: 64px;
    align-items: center;
}

.dx-arch {
    position: relative;
    padding: 26px;
    border-radius: var(--dx-radius);
    border: 1px solid var(--dx-line);
    background: var(--dx-surface);
}

.dx-arch h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--accent);
}

.dx-arch h3 span {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dx-muted);
}

.dx-node {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 12px;
    align-items: center;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--dx-line);
    background: rgba(255, 255, 255, 0.04);
}

.dx-node .lucide { width: 28px; height: 28px; color: var(--accent); justify-self: center; }
.dx-node strong { display: block; font-size: 0.98rem; }
.dx-node small  { color: var(--dx-muted); font-size: 0.82rem; line-height: 1.4; }

.dx-node-device {
    border-color: color-mix(in srgb, var(--accent) 45%, transparent);
    background: color-mix(in srgb, var(--accent) 8%, transparent);
}

/* Cables con paquetes de datos */
.dx-wire-v {
    position: relative;
    height: 46px;
    width: 0;
    margin: 0 auto;
    border-left: 2px dashed color-mix(in srgb, var(--accent) 55%, transparent);
}

.dx-wire-v::after,
.dx-arch::before {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

.dx-wire-v::after {
    left: -5px;
    animation: dx-down 1.6s linear infinite;
}

.dx-wire-out::after { animation-delay: 0.8s; }

.dx-wire-label {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent);
}

@keyframes dx-down {
    from { top: -4px; opacity: 0; }
    15%  { opacity: 1; }
    85%  { opacity: 1; }
    to   { top: calc(100% - 4px); opacity: 0; }
}

.dx-proto {
    text-align: center;
    font-size: 0.8rem;
    color: var(--dx-muted);
    line-height: 1.5;
    margin-top: 10px;
}

/* Cable horizontal hacia la nube */
.dx-arch::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -64px;
    width: 64px;
    border-top: 2px dashed color-mix(in srgb, var(--accent) 55%, transparent);
}

.dx-arch::before {
    top: calc(50% - 3px);
    left: 100%;
    animation: dx-right 1.4s linear infinite;
}

.dx-arch-right::after { right: auto; left: -64px; }
.dx-arch-right::before { left: auto; right: 100%; animation-name: dx-left; }

@keyframes dx-right {
    from { transform: translateX(0); opacity: 0; }
    20%  { opacity: 1; }
    to   { transform: translateX(56px); opacity: 0; }
}

@keyframes dx-left {
    from { transform: translateX(0); opacity: 0; }
    20%  { opacity: 1; }
    to   { transform: translateX(-56px); opacity: 0; }
}

.dx-cloud { text-align: center; }

.dx-cloud-core {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 4px;
    width: 132px;
    height: 132px;
    margin: 0 auto 24px;
    border-radius: 50%;
    border: 2px solid var(--dx-cyan);
    background: radial-gradient(circle, rgba(0, 212, 255, 0.18), rgba(3, 5, 10, 0.6) 70%);
    box-shadow: 0 18px 50px rgba(0, 212, 255, 0.25);
    animation: dx-breathe 4s ease-in-out infinite;
}

.dx-cloud-core .lucide { width: 40px; height: 40px; color: var(--dx-cyan); }
.dx-cloud-core strong { font-size: 0.9rem; }

@keyframes dx-breathe {
    50% { box-shadow: 0 18px 70px rgba(0, 212, 255, 0.45); }
}

.dx-pipeline {
    list-style: none;
    display: grid;
    gap: 8px;
    text-align: left;
}

.dx-pipeline li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid var(--dx-line);
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.95rem;
    animation: dx-step 7s ease-in-out infinite;
    animation-delay: calc(var(--i) * 1s);
}

.dx-pipeline .lucide { color: var(--dx-cyan); }

@keyframes dx-step {
    0%, 14%, 100% { border-color: var(--dx-line); background: rgba(255, 255, 255, 0.03); }
    4%, 10% {
        border-color: rgba(0, 212, 255, 0.7);
        background: rgba(0, 212, 255, 0.14);
    }
}

.dx-pillars {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 28px;
    margin-top: 64px;
    padding-top: 36px;
    border-top: 1px solid var(--dx-line);
}

.dx-pillars dt {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    margin-bottom: 6px;
}

.dx-pillars dt .lucide { color: var(--dx-cyan); }
.dx-pillars dd { color: var(--dx-muted); font-size: 0.92rem; line-height: 1.5; }

/* ----- Libro de casos (complementa home.css) ----- */
.dv-cases-split { position: relative; z-index: 1; max-width: 1400px; margin: 60px auto; }
.dv-cases-info p { margin: 0; }

.dx-page-text h3 { font-size: 1.6rem; line-height: 1.15; margin-bottom: 6px; }

.dx-page-context {
    color: var(--dx-cyan);
    font-size: 0.85rem;
    font-weight: 600;
}

.dx-page-text p {
    font-size: 0.98rem;
    line-height: 1.55;
    color: var(--dx-muted);
}

.dx-page-text p strong {
    display: block;
    color: #fff;
    font-size: 0.85rem;
}

.dx-page-text .dx-page-result {
    color: var(--dx-green);
    font-weight: 700;
    font-size: 1.05rem;
    margin-top: 4px;
}

.dv-book-nav button:disabled { opacity: 0.3; cursor: default; transform: none; box-shadow: none; }

/* ----- Clientes ----- */
.dx-clients-panel {
    padding: clamp(14px, 3vw, 32px);
    border-radius: var(--dx-radius);
    background: #fff;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}

.dx-clients-panel img { display: block; width: 100%; height: auto; }

/* ----- Llamado a la acción ----- */
.dx-cta-band {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 40px auto 120px;
    padding: 0 20px;
}

.dx-cta-inner {
    padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 64px);
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(0, 212, 255, 0.25);
    background:
        radial-gradient(70% 140% at 50% 0%, rgba(0, 212, 255, 0.18), transparent 70%),
        linear-gradient(180deg, #0a1f3f, #050b18);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.dx-cta-inner h2 {
    font-size: clamp(1.6rem, 3.4vw, 2.6rem);
    line-height: 1.15;
    max-width: 22ch;
    margin: 0 auto 14px;
}

.dx-cta-inner p { color: var(--dx-muted); max-width: 56ch; margin: 0 auto; line-height: 1.6; }
.dx-cta-inner .dx-actions { justify-content: center; }

/* ===================================================================
   SOLUCIONES
   =================================================================== */
.dx-sol-index { padding-top: 40px; }

.dx-sol-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.dx-sol-tile {
    position: relative;
    display: block;
    height: 400px;
    border-radius: var(--dx-radius);
    overflow: hidden;
    color: #fff;
    text-decoration: none;
    border: 1px solid var(--dx-line);
    isolation: isolate;
    transition: transform 0.5s var(--dx-ease), border-color 0.4s ease, box-shadow 0.4s ease;
}

.dx-sol-photo {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-size: cover;
    background-position: center bottom;
    transition: transform 0.9s var(--dx-ease);
}

.dx-sol-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(to top, rgba(3, 5, 10, 0.96) 30%, rgba(3, 5, 10, 0.2) 75%, rgba(3, 5, 10, 0.05));
}

.dx-sol-body {
    position: absolute;
    inset: auto 0 0 0;
    display: grid;
    gap: 8px;
    padding: 24px;
}

.dx-sol-body > .lucide {
    width: 44px;
    height: 44px;
    padding: 10px;
    border-radius: 12px;
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 16%, rgba(3, 5, 10, 0.6));
    border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
}

.dx-sol-body strong { font-family: var(--dx-font-display); font-size: 1.3rem; line-height: 1.15; }
.dx-sol-body > span { color: var(--dx-muted); font-size: 0.92rem; line-height: 1.45; }

.dx-sol-body .dx-sol-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: 4px;
}

.dx-sol-tile:hover,
.dx-sol-tile:focus-visible {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--accent) 70%, transparent);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5), 0 8px 30px color-mix(in srgb, var(--accent) 22%, transparent);
}

.dx-sol-tile:hover .dx-sol-photo { transform: scale(1.06); }

/* ----- Detalle ----- */
.dx-sol-hero {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 56px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 160px 20px 40px;
}

.dx-sol-hero:not(:has(figure)) { grid-template-columns: minmax(0, 860px); }

.dx-sol-hero-text > p:not(.dx-sol-claim) { color: var(--dx-muted); line-height: 1.7; max-width: 62ch; }

.dx-crumbs {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    color: var(--dx-faint);
    margin-bottom: 18px;
}

.dx-crumbs a { color: var(--dx-muted); }
.dx-crumbs a:hover { color: var(--dx-cyan); }

.dx-sol-hero .dx-h1 { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }

.dx-sol-badge.lucide {
    width: 56px;
    height: 56px;
    padding: 13px;
    border-radius: 16px;
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
    vertical-align: middle;
}

.dx-sol-claim {
    color: var(--accent);
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 12px;
}

.dx-sol-hero-media {
    position: relative;
    border-radius: var(--dx-radius);
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
}

.dx-sol-hero-media img { display: block; width: 100%; height: auto; }

/* Línea de escaneo: el "sensor" leyendo la imagen */
.dx-scan {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(to bottom,
        transparent 0%,
        color-mix(in srgb, var(--accent) 28%, transparent) 49%,
        color-mix(in srgb, var(--accent) 80%, transparent) 50%,
        transparent 51%);
    background-size: 100% 220%;
    mix-blend-mode: screen;
    animation: dx-scan 4.5s var(--dx-ease) infinite;
}

@keyframes dx-scan {
    from { background-position: 0 120%; opacity: 0.9; }
    70%  { opacity: 0.9; }
    to   { background-position: 0 -20%; opacity: 0; }
}

.dx-checks {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    column-gap: 40px;
}

.dx-checks li {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--dx-line);
    font-size: 1.02rem;
    line-height: 1.45;
}

.dx-checks .lucide {
    width: 30px;
    height: 30px;
    padding: 6px;
    border-radius: 50%;
    color: var(--dx-bg);
    background: var(--accent);
    stroke-width: 3;
}

.dx-checks-tight { grid-template-columns: 1fr; margin: 12px 0 16px; }
.dx-checks-tight li { padding: 10px 0; font-size: 0.98rem; }
.dx-checks-tight .lucide { width: 24px; height: 24px; padding: 5px; }

.dx-groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.dx-chips {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dx-chips li {
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.92rem;
    border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
    background: color-mix(in srgb, var(--accent) 8%, transparent);
}

.dx-apps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
}

.dx-apps li {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 24px;
    border-radius: 14px;
    background: var(--dx-surface);
    border: 1px solid var(--dx-line);
    font-weight: 600;
    line-height: 1.35;
    transition: transform 0.4s var(--dx-ease), border-color 0.3s ease;
}

.dx-apps .lucide { width: 34px; height: 34px; color: var(--accent); }
.dx-apps li:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 55%, transparent); }

.dx-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.dx-split-media {
    border-radius: var(--dx-radius);
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.dx-split-media img { display: block; width: 100%; height: auto; }
.dx-split-text > p { color: var(--dx-muted); line-height: 1.7; }

.dx-products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.dx-product {
    padding: 26px;
    border-radius: 14px;
    background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 7%, transparent), transparent 70%), var(--dx-surface);
    border: 1px solid var(--dx-line);
}

.dx-product h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.dx-product h3 .lucide { color: var(--accent); }
.dx-product p { color: var(--dx-muted); line-height: 1.55; font-size: 0.95rem; }

.dx-product ul { list-style: none; margin-top: 14px; display: grid; gap: 8px; }

.dx-product li {
    position: relative;
    padding-left: 18px;
    font-size: 0.93rem;
    line-height: 1.45;
}

.dx-product li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
}

.dx-fichas {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 480px));
    gap: 16px;
}

/* En el detalle las secciones van seguidas: menos aire entre ellas */
.dx-sol .dx-section { padding-block: 56px; }

.dx-ficha,
.dx-zoomable {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 1px solid var(--dx-line);
    border-radius: 14px;
    overflow: hidden;
    background: #0b1424;
    cursor: zoom-in;
    font: inherit;
    color: inherit;
}

.dx-ficha img,
.dx-zoomable img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.8s var(--dx-ease);
}

.dx-ficha img { aspect-ratio: 16 / 11; object-fit: cover; object-position: top; }

.dx-ficha span {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: inline-flex;
    gap: 6px;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(3, 5, 10, 0.8);
    font-size: 0.85rem;
    font-weight: 600;
}

.dx-ficha:hover img,
.dx-zoomable:hover img { transform: scale(1.03); }

/* Road map */
.dx-roadmap {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 40px 20px;
    margin-top: 44px;
}

.dx-roadmap li {
    position: relative;
    display: grid;
    align-content: start;
    gap: 6px;
    padding-top: 22px;
    border-top: 2px solid color-mix(in srgb, var(--accent) 50%, transparent);
}

.dx-road-n {
    position: absolute;
    top: -17px;
    left: 0;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--dx-bg);
    background: var(--accent);
}

.dx-roadmap strong { font-size: 1rem; }
.dx-roadmap small { color: var(--dx-muted); font-size: 0.88rem; line-height: 1.45; }

/* TRL */
.dx-trl {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 4px;
    margin-bottom: 18px;
}

.dx-trl li {
    display: grid;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--dx-muted);
    text-align: center;
}

.dx-trl li span {
    display: block;
    padding: 10px 6px 10px 14px;
    font-weight: 800;
    font-size: 0.85rem;
    color: #fff;
    background: var(--trl);
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%, 10px 50%);
    transform-origin: left center;
    transition: transform 0.6s var(--dx-ease), opacity 0.6s ease;
    transition-delay: calc(var(--d) * 90ms + 200ms);
}

.dx-js .dx-trl:not(.is-in) li span { transform: scaleX(0); opacity: 0; }

.dx-trl-lab  { --trl: #e5484d; }
.dx-trl-sim  { --trl: #f59e0b; }
.dx-trl-real { --trl: #16a34a; }

.dx-trl-legend { display: flex; flex-wrap: wrap; gap: 20px; font-size: 0.9rem; color: var(--dx-muted); }

.dx-trl-legend span { display: inline-flex; align-items: center; gap: 8px; }

.dx-trl-legend span::before {
    content: "";
    width: 12px;
    height: 12px;
    border-radius: 3px;
    background: var(--trl);
}

/* Siguiente solución */
.dx-next-sol { padding-top: 24px; }

.dx-next-sol a {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 6px 20px;
    padding: 28px 32px;
    border-radius: var(--dx-radius);
    border: 1px solid var(--dx-line);
    background: var(--dx-surface);
    color: #fff;
    text-decoration: none;
    transition: border-color 0.3s ease, transform 0.4s var(--dx-ease);
}

.dx-next-sol strong {
    grid-column: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--dx-font-display);
    font-size: clamp(1.3rem, 2.6vw, 1.8rem);
}

.dx-next-sol strong .lucide { color: var(--accent); }
.dx-next-sol a > .lucide { grid-row: 1 / span 2; grid-column: 2; width: 32px; height: 32px; color: var(--accent); transition: transform 0.4s var(--dx-ease); }
.dx-next-sol a:hover { border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.dx-next-sol a:hover > .lucide { transform: translateX(6px); }

/* ===================================================================
   PRODUCTOS · familias y comparador de interfaces
   =================================================================== */
#comparador, #catalogo, .dx-io-table tr[id] { scroll-margin-top: 120px; }

#catalogo.prod-header { padding-top: 3rem; }

.dx-families { padding-top: 32px; }

.dx-family-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.dx-family {
    display: grid;
    align-content: start;
    gap: 14px;
    padding: 28px;
    border-radius: var(--dx-radius);
    border: 1px solid var(--dx-line);
    background:
        radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%),
        var(--dx-surface);
    transition: border-color 0.3s ease;
}

.dx-family:hover { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }

.dx-family header { display: flex; gap: 16px; align-items: flex-start; }

.dx-family header .lucide {
    width: 48px;
    height: 48px;
    padding: 11px;
    border-radius: 14px;
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
}

.dx-family h3 { font-size: 1.5rem; line-height: 1.1; }
.dx-family-app { color: var(--accent); font-weight: 600; font-size: 0.95rem; line-height: 1.4; margin-top: 4px; }
.dx-family > p { color: var(--dx-muted); line-height: 1.6; }

.dx-family .dx-chips a {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
}

.dx-family .dx-chips li { transition: background 0.2s ease; }
.dx-family .dx-chips li:hover { background: color-mix(in srgb, var(--accent) 22%, transparent); }

/* Filtros del comparador */
.dx-io-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border: 0;
    margin-bottom: 14px;
}

.dx-io-chip { position: relative; cursor: pointer; }

.dx-io-chip input {
    position: absolute;
    opacity: 0;
    inset: 0;
    cursor: pointer;
}

.dx-io-chip span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid var(--dx-line);
    background: var(--dx-surface);
    font-size: 0.92rem;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.dx-io-chip span::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1.5px solid var(--dx-faint);
    transition: background 0.25s ease, border-color 0.25s ease;
}

.dx-io-chip:hover span { border-color: rgba(0, 212, 255, 0.5); }

.dx-io-chip input:checked + span {
    color: #fff;
    border-color: var(--dx-cyan);
    background: rgba(0, 212, 255, 0.16);
}

.dx-io-chip input:checked + span::before { background: var(--dx-cyan); border-color: var(--dx-cyan); }
.dx-io-chip input:focus-visible + span { outline: 2px solid var(--dx-cyan); outline-offset: 3px; }

.dx-io-clear { margin-left: 4px; }

.dx-io-result {
    min-height: 1.5em;
    margin-bottom: 18px;
    color: var(--dx-muted);
    font-size: 0.95rem;
}

.dx-io-result strong { color: var(--dx-cyan); }

/* Tabla */
.dx-table-wrap {
    overflow-x: auto;
    border-radius: var(--dx-radius);
    border: 1px solid var(--dx-line);
    background: rgba(5, 10, 20, 0.6);
}

.dx-io-table {
    width: 100%;
    min-width: 1080px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.92rem;
    font-variant-numeric: tabular-nums;
}

.dx-io-table th,
.dx-io-table td {
    padding: 10px 8px;
    text-align: center;
    border-bottom: 1px solid var(--dx-line);
}

.dx-io-table thead th {
    background: #0a1f3f;
    font-weight: 700;
    font-size: 0.85rem;
    line-height: 1.25;
    vertical-align: bottom;
}

.dx-io-table thead small {
    display: block;
    font-weight: 400;
    font-size: 0.74rem;
    color: var(--dx-faint);
    margin-top: 2px;
}

.dx-io-table th.dx-io-group {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    color: var(--dx-cyan);
    border-left: 1px solid var(--dx-line);
}

.dx-io-sticky {
    position: sticky;
    left: 0;
    z-index: 2;
    text-align: left !important;
    min-width: 150px;
    background: #07101f;
}

thead .dx-io-sticky { background: #0a1f3f; vertical-align: middle; }

tbody th.dx-io-sticky {
    font-family: var(--dx-font-display);
    font-weight: 700;
    border-left: 3px solid var(--accent);
}

tbody th.dx-io-sticky small {
    display: block;
    font-family: inherit;
    font-weight: 400;
    font-size: 0.76rem;
    color: var(--dx-faint);
}

.dx-io-famrow th {
    text-align: left !important;
    padding: 16px 14px 10px !important;
    background: color-mix(in srgb, var(--accent) 10%, #07101f);
    font-family: var(--dx-font-display);
    font-size: 1rem;
    color: var(--accent);
}

.dx-io-famrow th span { color: var(--dx-muted); font-family: 'Segoe UI', sans-serif; font-weight: 400; font-size: 0.88rem; margin-left: 8px; }
.dx-io-famrow .lucide { margin-right: 6px; }

.dx-io-val {
    display: inline-grid;
    place-items: center;
    min-width: 30px;
    height: 28px;
    padding: 0 8px;
    border-radius: 8px;
    font-weight: 700;
    color: #fff;
    background: color-mix(in srgb, var(--accent) 22%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
    white-space: nowrap;
    transition: background 0.3s ease, transform 0.3s var(--dx-ease);
}

.dx-io-note td {
    text-align: left !important;
    padding: 12px 14px !important;
    color: var(--dx-muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

.dx-io-note .lucide { color: var(--accent); }

.dx-io-table tbody tr[data-io] { transition: opacity 0.35s ease; }
.dx-io-table tbody tr[data-io]:hover td,
.dx-io-table tbody tr[data-io]:hover th { background-color: rgba(255, 255, 255, 0.03); }

/* Estado del filtro */
.dx-io-table.is-filtering tr[data-io]:not(.is-match) { opacity: 0.25; }
.dx-io-table.is-filtering tr.is-match .dx-io-val { background: color-mix(in srgb, var(--accent) 40%, transparent); }
.dx-io-table.is-filtering td.is-wanted .dx-io-val { transform: scale(1.12); background: var(--accent); color: var(--dx-bg); }
.dx-io-table.is-filtering th.is-wanted { color: var(--dx-cyan); box-shadow: inset 0 -2px 0 var(--dx-cyan); }

.dx-io-notes { list-style: none; display: grid; gap: 10px; margin: 28px 0 20px; }

.dx-io-notes li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: var(--dx-muted);
    line-height: 1.55;
    max-width: 80ch;
}

.dx-io-notes .lucide { color: var(--dx-cyan); margin-top: 3px; }

.dx-scroll-hint { display: none; }

@media (max-width: 900px) {
    .dx-family-grid { grid-template-columns: 1fr; }

    .dx-scroll-hint {
        display: flex;
        gap: 8px;
        align-items: center;
        margin-bottom: 12px;
        font-size: 0.88rem;
        color: var(--dx-faint);
    }
}

/* ===================================================================
   NOSOTROS
   =================================================================== */
.dx-about-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    gap: 64px;
    align-items: center;
}

.dx-award {
    border-radius: var(--dx-radius);
    overflow: hidden;
    background: #fff;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
}

.dx-award img { display: block; width: 100%; height: auto; }

.dx-award figcaption {
    padding: 16px 20px 20px;
    background: var(--dx-navy);
    color: var(--dx-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.dx-award figcaption strong { display: block; color: #fff; margin-bottom: 4px; }

.dx-quote {
    max-width: 920px;
    margin: 0 auto 64px;
    text-align: center;
}

.dx-quote p {
    font-family: var(--dx-font-display);
    font-size: clamp(1.6rem, 3.6vw, 2.8rem);
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.dx-caps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
}

.dx-caps li {
    padding: 8px 24px 8px;
    border-left: 1px solid var(--dx-line);
}

.dx-caps li:first-child { border-left: 0; padding-left: 0; }

.dx-caps .lucide {
    width: 40px;
    height: 40px;
    color: var(--dx-cyan);
    margin-bottom: 18px;
    transition: transform 0.5s var(--dx-ease);
}

.dx-caps li:hover .lucide { transform: translateY(-4px) scale(1.08); }
.dx-caps h3 { font-size: 1.1rem; margin-bottom: 8px; }
.dx-caps p { color: var(--dx-muted); font-size: 0.93rem; line-height: 1.55; }

/* Ciclo de estrategia */
.dx-cycle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.dx-cycle-ring {
    --r: 190px;
    position: relative;
    width: min(440px, 100%);
    aspect-ratio: 1;
    margin: 0 auto;
    border-radius: 50%;
    border: 1px dashed rgba(0, 212, 255, 0.3);
}

.dx-cycle-ring::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 50%;
    background: conic-gradient(from calc(var(--active, 0) * 60deg - 30deg), rgba(0, 212, 255, 0.35) 0 60deg, transparent 60deg);
    -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
            mask: radial-gradient(closest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
    transition: background 0.6s var(--dx-ease);
}

.dx-cycle-core {
    position: absolute;
    inset: 27%;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 6px;
    border-radius: 50%;
    text-align: center;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 12px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.14), rgba(3, 5, 10, 0.8) 75%);
    border: 1px solid rgba(0, 212, 255, 0.35);
}

.dx-cycle-core .lucide {
    width: 44px;
    height: 44px;
    color: var(--dx-cyan);
    animation: dx-spin 14s linear infinite;
}

@keyframes dx-spin { to { transform: rotate(360deg); } }

.dx-cycle-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    margin: -30px 0 0 -30px;
    border-radius: 50%;
    color: var(--dx-cyan);
    background: #07101f;
    border: 1px solid rgba(0, 212, 255, 0.4);
    transform: rotate(calc(var(--i) * 60deg)) translateY(calc(-1 * var(--r))) rotate(calc(var(--i) * -60deg));
    transition: background 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
}

.dx-cycle-dot.is-active {
    background: var(--dx-cyan);
    color: var(--dx-bg);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.45);
}

.dx-cycle-steps { list-style: none; }

.dx-cycle-steps li {
    padding: 14px 0;
    border-bottom: 1px solid var(--dx-line);
    opacity: 0.55;
    cursor: default;
    transition: opacity 0.4s ease;
}

.dx-cycle-steps li.is-active { opacity: 1; }

.dx-cycle-steps strong {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05rem;
    transition: color 0.4s ease;
}

.dx-cycle-steps li.is-active strong { color: var(--dx-cyan); }

.dx-cycle-steps strong span {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 0.85rem;
    border: 1px solid currentColor;
}

.dx-cycle-steps p { color: var(--dx-muted); font-size: 0.93rem; line-height: 1.5; margin: 6px 0 0 40px; }

/* Liderazgo */
.dx-leader {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 56px;
    align-items: center;
}

.dx-leader-photo {
    border-radius: var(--dx-radius);
    overflow: hidden;
    border: 1px solid var(--dx-line);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.dx-leader-photo img { display: block; width: 100%; height: auto; }
.dx-leader p:not(.dx-sol-claim) { color: var(--dx-muted); line-height: 1.6; margin-bottom: 16px; }

.dx-contact-list { list-style: none; display: grid; gap: 10px; }

.dx-contact-list li { display: flex; align-items: center; gap: 12px; }
.dx-contact-list .lucide { color: var(--dx-cyan); }
.dx-contact-list a { color: #fff; }
.dx-contact-list a:hover { color: var(--dx-cyan); }

/* ===================================================================
   CASOS
   =================================================================== */
.dx-case {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 24px;
}

.dx-case-main { grid-row: span 2; }

.dx-case figcaption {
    padding-top: 12px;
    color: var(--dx-muted);
    font-size: 0.93rem;
    line-height: 1.5;
}

.dx-case figcaption strong { display: block; color: #fff; margin-bottom: 2px; }

.dx-wide .dx-zoomable { border-radius: var(--dx-radius); }

/* Galería de soluciones desplegadas (mampostería por columnas) */
.dx-gallery {
    list-style: none;
    columns: 4 240px;
    column-gap: 14px;
}

.dx-gallery li {
    break-inside: avoid;
    margin-bottom: 14px;
}

.dx-gallery .dx-zoomable { border-radius: 12px; }

/* ===================================================================
   CONTACTO (complementa contact.css)
   =================================================================== */
.dv-info-icon .lucide { width: 24px; height: 24px; color: var(--dx-cyan); }

/* Campo trampa anti-spam: fuera de la vista pero presente en el formulario */
.dv-hp {
    position: absolute !important;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.dv-info-ceo { align-items: center; }

.dv-info-ceo img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--dx-line);
}

.dv-info-content a { color: inherit; }
.dv-info-content a:hover { color: var(--dx-cyan); }

/* ===================================================================
   FOOTER
   =================================================================== */
.dx-footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--dx-line);
    background: rgba(3, 5, 10, 0.9);
}

.dx-footer-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr 0.9fr 1.2fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 72px 20px 48px;
}

.dx-logo-light {
    width: 170px;
    height: auto;
    margin-bottom: 18px;
}

.dx-footer-brand p { color: var(--dx-muted); line-height: 1.6; max-width: 34ch; }

.dx-footer-award {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-top: 16px;
    font-size: 0.9rem;
}

.dx-footer-award .lucide { color: #facc15; margin-top: 2px; }

.dx-footer-col h2 {
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 18px;
}

.dx-footer-col ul { list-style: none; display: grid; gap: 10px; }

.dx-footer-col a {
    color: var(--dx-muted);
    text-decoration: none;
    font-size: 0.94rem;
    transition: color 0.2s ease;
}

.dx-footer-col a:hover { color: var(--dx-cyan); }

.dx-footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dx-muted);
    font-size: 0.94rem;
}

.dx-footer-contact .lucide { color: var(--dx-cyan); }

.dx-footer-base {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    border-top: 1px solid var(--dx-line);
    color: var(--dx-faint);
    font-size: 0.88rem;
}

.dx-footer-base a { color: var(--dx-muted); }
.dx-footer-base a:hover { color: var(--dx-cyan); }

.dx-footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
}

/* ===================================================================
   PÁGINAS LEGALES (términos, privacidad, cookies)
   =================================================================== */
.dx-legal { padding-top: 24px; }

.dx-legal-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 820px;
    margin-bottom: 40px;
}

.dx-legal-nav a {
    padding: 8px 16px;
    border: 1px solid var(--dx-line);
    border-radius: 999px;
    color: var(--dx-muted);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.dx-legal-nav a:hover { color: var(--dx-text); border-color: rgba(0, 212, 255, 0.4); }

.dx-legal-nav a[aria-current="page"] {
    color: var(--dx-bg);
    background: var(--dx-cyan);
    border-color: var(--dx-cyan);
    font-weight: 600;
}

.dx-legal-body {
    max-width: 820px;
    color: var(--dx-muted);
    line-height: 1.75;
    font-size: 1rem;
}

.dx-legal-body h2 {
    margin: 2.4em 0 0.6em;
    color: var(--dx-text);
    font-family: var(--dx-font-display);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.dx-legal-body p,
.dx-legal-body ul { margin: 0 0 1em; }

.dx-legal-body ul { padding-left: 1.25em; }
.dx-legal-body li { margin-bottom: 0.4em; }
.dx-legal-body li::marker { color: var(--dx-cyan); }
.dx-legal-body strong { color: var(--dx-text); font-weight: 600; }

.dx-legal-body a {
    color: var(--dx-cyan);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.dx-legal-body code {
    padding: 2px 6px;
    border-radius: 6px;
    background: var(--dx-surface);
    border: 1px solid var(--dx-line);
    color: var(--dx-text);
    font-size: 0.9em;
}

.dx-legal-fecha {
    color: var(--dx-faint);
    font-size: 0.9rem;
}

.dx-legal-datos {
    list-style: none;
    padding: 20px 24px !important;
    border: 1px solid var(--dx-line);
    border-radius: var(--dx-radius);
    background: var(--dx-surface);
}

.dx-legal-tabla {
    overflow-x: auto;
    margin: 0 0 1em;
    border: 1px solid var(--dx-line);
    border-radius: var(--dx-radius);
}

.dx-legal-tabla table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.dx-legal-tabla th,
.dx-legal-tabla td {
    padding: 12px 16px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--dx-line);
}

.dx-legal-tabla th {
    color: var(--dx-text);
    background: var(--dx-surface);
    font-weight: 600;
}

.dx-legal-tabla tr:last-child td { border-bottom: 0; }

/* Aviso de privacidad bajo el botón del formulario de contacto */
.dv-legal-aviso {
    margin-top: 12px;
    color: var(--dx-faint);
    font-size: 0.85rem;
    line-height: 1.5;
}

.dv-legal-aviso a { color: var(--dx-cyan); text-decoration: underline; }

/* ===================================================================
   WHATSAPP FLOTANTE
   =================================================================== */
.dx-whatsapp {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 990;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 58px;
    padding: 0 15px;
    border-radius: 999px;
    color: #fff;
    background: #25d366;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), 0 4px 14px rgba(37, 211, 102, 0.35);
    transition: transform 0.4s var(--dx-ease), box-shadow 0.3s ease, background 0.3s ease;
    animation: dx-wa-in 0.7s var(--dx-ease) 1.2s both;
}

.dx-whatsapp::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55);
    animation: dx-wa-ring 2.8s ease-out 2s infinite;
    pointer-events: none;
}

.dx-whatsapp svg { flex-shrink: 0; }

/* La etiqueta se despliega al pasar el cursor o con el foco */
.dx-whatsapp-label {
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: max-width 0.5s var(--dx-ease);
}

.dx-whatsapp:hover,
.dx-whatsapp:focus-visible {
    background: #1ebe5b;
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5), 0 6px 20px rgba(37, 211, 102, 0.45);
}

.dx-whatsapp:hover .dx-whatsapp-label,
.dx-whatsapp:focus-visible .dx-whatsapp-label { max-width: 120px; padding-right: 4px; }

.dx-whatsapp:focus-visible { outline-color: #fff; }

@keyframes dx-wa-in {
    from { opacity: 0; transform: translateY(20px) scale(0.85); }
}

@keyframes dx-wa-ring {
    0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); }
    60%, 100% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
}

@media (max-width: 640px) {
    .dx-whatsapp { right: 16px; bottom: 16px; height: 54px; padding: 0 13px; }
}

/* ===================================================================
   VISOR DE IMÁGENES
   =================================================================== */
/* Sin anillo de foco al volver de un visor abierto con el mouse */
[data-no-ring]:focus-visible { outline: none; }

html.dx-lb-lock { overflow: hidden; }

.dx-lightbox {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    color: #fff;
    background: transparent;
    overflow: hidden;
}

.dx-lightbox[open] {
    display: grid;
    grid-template-rows: auto 1fr auto;
    animation: dx-lb-in 0.35s var(--dx-ease);
}

.dx-lightbox::backdrop {
    background: rgba(2, 4, 9, 0.92);
    backdrop-filter: blur(10px);
}

@keyframes dx-lb-in { from { opacity: 0; } }

/* Barra superior */
.dx-lb-bar {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 18px;
    background: linear-gradient(to bottom, rgba(2, 4, 9, 0.85), rgba(2, 4, 9, 0));
}

.dx-lb-info {
    display: flex;
    align-items: baseline;
    gap: 14px;
    min-width: 0;
}

.dx-lb-count {
    flex-shrink: 0;
    font-family: var(--dx-font-display);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--dx-cyan);
    font-variant-numeric: tabular-nums;
}

.dx-lb-caption {
    margin: 0;
    color: var(--dx-muted);
    font-size: 0.95rem;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dx-lb-tools {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    padding: 4px;
    border-radius: 999px;
    border: 1px solid var(--dx-line);
    background: rgba(11, 20, 36, 0.85);
}

.dx-lb-tools button,
.dx-lb-tools a {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--dx-muted);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.dx-lb-tools button:hover,
.dx-lb-tools a:hover { background: rgba(0, 212, 255, 0.14); color: #fff; }

.dx-lb-tools .dx-lb-close { color: #fff; background: rgba(255, 255, 255, 0.08); margin-left: 4px; }
.dx-lb-tools .dx-lb-close:hover { background: #e5484d; }

.dx-lb-zoom {
    min-width: 46px;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--dx-muted);
    font-variant-numeric: tabular-nums;
}

/* Escenario */
.dx-lb-stage {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 0;
    padding: 8px 76px;
    overflow: hidden;
    touch-action: none;
}

.dx-lb-stage.is-zoomed { cursor: grab; }
.dx-lb-stage.is-dragging { cursor: grabbing; }

.dx-lb-stage img {
    max-width: none;
    max-height: none;
    border-radius: 10px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.75);
    user-select: none;
    opacity: 0;
    transform-origin: center;
    transition: transform 0.25s var(--dx-ease), opacity 0.35s ease;
}

.dx-lb-stage img.is-ready { opacity: 1; }
.dx-lb-stage.is-dragging img { transition: opacity 0.35s ease; }

.dx-lb-spinner {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid rgba(0, 212, 255, 0.2);
    border-top-color: var(--dx-cyan);
    animation: dx-spin 0.8s linear infinite;
}

.dx-lb-spinner[hidden] { display: none; }

/* Flechas */
.dx-lb-nav {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-top: -26px;
    border-radius: 50%;
    border: 1px solid var(--dx-line);
    background: rgba(11, 20, 36, 0.85);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.3s var(--dx-ease);
}

.dx-lb-nav[hidden] { display: none; }
.dx-lb-prev { left: 14px; }
.dx-lb-next { right: 14px; }
.dx-lb-nav:hover { border-color: var(--dx-cyan); background: rgba(0, 212, 255, 0.16); }
.dx-lb-prev:hover { transform: translateX(-2px); }
.dx-lb-next:hover { transform: translateX(2px); }

.dx-lb-hint {
    margin: 0;
    padding: 10px 18px 16px;
    text-align: center;
    font-size: 0.82rem;
    color: var(--dx-faint);
}

@media (max-width: 640px) {
    .dx-lb-bar { flex-direction: column-reverse; align-items: stretch; gap: 10px; padding: 10px 12px; }
    .dx-lb-tools { align-self: center; }
    .dx-lb-caption { white-space: normal; font-size: 0.88rem; }
    .dx-lb-stage { padding: 4px 8px; }
    .dx-lb-nav { top: auto; bottom: 46px; margin-top: 0; width: 46px; height: 46px; }
    .dx-lb-hint { display: none; }
}

@media (hover: none) {
    .dx-lb-hint { display: none; }
}

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 1100px) {
    .dx-roadmap { grid-template-columns: repeat(3, 1fr); }
    .dx-caps { grid-template-columns: repeat(3, 1fr); row-gap: 32px; }
    .dx-caps li:nth-child(4) { border-left: 0; padding-left: 0; }
}

@media (max-width: 1024px) {
    .dx-tech-grid { grid-template-columns: 1fr; gap: 40px; max-width: 520px; margin: 0 auto; }
    .dx-arch::after, .dx-arch::before { display: none; }
    .dx-pillars { grid-template-columns: repeat(2, 1fr); }
    .dx-sol-grid { grid-template-columns: repeat(2, 1fr); }
    .dx-problems { grid-template-columns: 1fr; }
    .dx-problems-media { min-height: 420px; }
    .dx-footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    /* hero.css desplaza el texto con margin-left: -40%; en pantallas angostas lo saca de la vista */
    /* max-width: none anula el min(650px, 52vw) de escritorio, que en un celular dejaba el texto en ~200px */
    .hero-content { margin-left: 0; padding: 0 20px; max-width: none; }
    .hero h1 { font-size: clamp(2.3rem, 10vw, 4rem); }
    .hero p { font-size: 1.05rem; }
    .hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
    .hero-buttons .btn-secondary { margin-left: 0; }

    /* Tarjetas "trust" apiladas: sin los desplazamientos orgánicos del escritorio */
    .dv-trust .dv-trust-card { left: 0; right: 0; top: 0; margin-bottom: 16px; }

    .dx-sol-hero,
    .dx-split,
    .dx-about-grid,
    .dx-cycle,
    .dx-leader,
    .dx-case { grid-template-columns: 1fr; }
    .dx-sol-hero { padding-top: 130px; gap: 36px; }
    .dx-about-grid .dx-award { max-width: 420px; }
    .dx-case-main { grid-row: auto; }
    .dx-leader-photo { max-width: 280px; }
    .dx-trl { grid-template-columns: repeat(3, 1fr); row-gap: 14px; }
    .dx-cycle-ring { --r: 150px; width: min(360px, 100%); }
}

@media (max-width: 640px) {
    .dx-section { padding: 64px 16px; }
    .dx-page-hero { padding: 130px 16px 24px; }
    .dx-sol-grid { grid-template-columns: 1fr; }
    .dx-sol-tile { height: 340px; }
    .dx-roadmap { grid-template-columns: 1fr 1fr; }
    .dx-caps { grid-template-columns: 1fr; }
    .dx-caps li { border-left: 0; padding: 0 0 24px; border-bottom: 1px solid var(--dx-line); }
    .dx-pillars { grid-template-columns: 1fr; }
    .dx-footer-inner { grid-template-columns: 1fr; padding-top: 56px; }
    .dx-cycle-ring { --r: 118px; width: min(290px, 100%); }
    .dx-cycle-dot { width: 48px; height: 48px; margin: -24px 0 0 -24px; }
    .dx-problems-media figcaption { padding: 100px 20px 22px; }
    .dx-pulse-live { border-radius: 16px; }
    .dx-cta-band { padding: 0 16px; margin-bottom: 80px; }
    .dx-next-sol a { padding: 22px; }
}

/* ===== MOVIMIENTO REDUCIDO ===== */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0s !important;
    }

    .dx-js .dx-reveal:not(.is-in),
    .dx-js .dx-trl:not(.is-in) li span {
        opacity: 1;
        transform: none;
        filter: none;
    }

    .dx-scan, .dx-arch::before, .dx-wire-v::after { display: none; }
}
