/* ============================================
   CIJTEC — Landing
   Paleta corporativa: azul profundo, azul medio,
   celeste tecnológico, blanco y grises suaves.
   ============================================ */

:root {
    --blue-950: #050d22;
    --blue-900: #081431;
    --blue-800: #0c1d44;
    --blue-700: #122a64;
    --blue-600: #1c3f8f;
    --blue-500: #2557c4;
    --blue-400: #4a82ee;
    --cyan-500: #149bd1;
    --cyan-400: #25b5e6;
    --cyan-300: #6cd0ee;

    --white: #ffffff;
    --gray-50: #f6f9fd;
    --gray-100: #eef2f8;
    --gray-200: #dfe6f0;
    --gray-300: #c2cddd;
    --gray-500: #67768f;
    --gray-700: #34425a;
    --gray-900: #0a1426;

    --grad-primary: linear-gradient(135deg, #25b5e6 0%, #2557c4 100%);
    --grad-primary-soft: linear-gradient(135deg, rgba(37, 181, 230, 0.15), rgba(37, 87, 196, 0.15));
    --grad-dark: linear-gradient(135deg, #050d22 0%, #0c1d44 50%, #122a64 100%);

    --shadow-sm: 0 4px 14px rgba(8, 20, 49, 0.06);
    --shadow-md: 0 14px 36px rgba(8, 20, 49, 0.10);
    --shadow-lg: 0 28px 70px rgba(8, 20, 49, 0.20);
    --shadow-glow: 0 10px 28px rgba(37, 87, 196, 0.32);

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --container: 1200px;
    --transition: 0.35s cubic-bezier(.4, 0, .2, 1);

    --font: 'Inter', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    color: var(--gray-900);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.text-accent {
    background: linear-gradient(135deg, var(--cyan-400), var(--blue-400));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    font-family: inherit;
}

.btn--primary {
    background: var(--grad-primary);
    color: var(--white);
    box-shadow: var(--shadow-glow);
    position: relative;
    overflow: hidden;
}

.btn--primary::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent 50%);
    opacity: 0;
    transition: opacity var(--transition);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(37, 87, 196, 0.45);
}

.btn--primary:hover::after { opacity: 1; }

.btn--ghost {
    background: rgba(255, 255, 255, 0.04);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.btn--ghost:hover {
    border-color: var(--cyan-400);
    background: rgba(37, 181, 230, 0.10);
    color: var(--cyan-300);
}

.btn--lg {
    padding: 16px 28px;
    font-size: 16px;
}

.btn--full { width: 100%; }

.btn--header {
    padding: 11px 22px;
    font-size: 14px;
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    background: rgba(8, 20, 49, 0.78);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: padding var(--transition), background var(--transition), box-shadow var(--transition);
}

.header.scrolled {
    padding: 10px 0;
    background: rgba(5, 13, 34, 0.94);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.logo {
    display: inline-flex;
    align-items: center;
    line-height: 0;
    /* Pill blanco para preservar los colores originales del logo
       sobre fondos azul oscuro. */
    background: var(--white);
    padding: 8px 16px;
    border-radius: 999px;
    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.18),
        0 0 0 1px rgba(255, 255, 255, 0.04);
    transition: transform var(--transition), box-shadow var(--transition);
}

.logo:hover {
    transform: translateY(-1px);
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(37, 181, 230, 0.25);
}

.logo__img {
    height: 26px;
    width: auto;
    display: block;
}

.header.scrolled .logo {
    padding: 6px 14px;
}

.header.scrolled .logo__img { height: 24px; }

.footer .logo {
    padding: 8px 14px;
}

.footer .logo__img { height: 24px; }

.nav__list {
    display: flex;
    gap: 8px;
    list-style: none;
}

.nav__list a {
    color: rgba(255, 255, 255, 0.78);
    font-size: 14.5px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all var(--transition);
}

.nav__list a:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.06);
}

.nav__list a.active {
    color: var(--cyan-300);
    background: rgba(37, 181, 230, 0.10);
}

.nav__toggle {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
}

.nav__toggle span {
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all var(--transition);
}

.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 100vh;
    padding: 140px 0 90px;
    background: var(--grad-dark);
    color: var(--white);
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 18% 28%, rgba(37, 181, 230, 0.20), transparent 55%),
        radial-gradient(circle at 82% 72%, rgba(37, 87, 196, 0.28), transparent 55%);
    pointer-events: none;
}

.hero__bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

.hero__bg::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(108, 208, 238, 0.5) 50%, transparent);
    opacity: 0.6;
}

.hero__inner {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(56, 200, 240, 0.10);
    border: 1px solid rgba(56, 200, 240, 0.25);
    color: var(--cyan-300);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero__badge-dot {
    width: 8px;
    height: 8px;
    background: var(--cyan-400);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(56, 200, 240, 0.18);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(56, 200, 240, 0.18); }
    50% { box-shadow: 0 0 0 8px rgba(56, 200, 240, 0.05); }
}

.hero__title {
    font-size: clamp(34px, 4.6vw, 56px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 22px;
}

.hero__subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.78);
    max-width: 580px;
    margin-bottom: 36px;
}

.hero__actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.hero__metrics {
    display: flex;
    gap: 40px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.metric {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px;
    color: var(--white);
}

.metric__num {
    font-size: 32px;
    font-weight: 800;
    color: var(--cyan-400);
    line-height: 1;
}

.metric > span:not(.metric__num):not(.metric__label) {
    font-size: 22px;
    font-weight: 700;
    color: var(--cyan-400);
}

.metric__label {
    width: 100%;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4px;
}

/* ===== Hero Visual / Dashboard mock ===== */
.hero__visual {
    position: relative;
}

.dashboard {
    position: relative;
    background: linear-gradient(180deg, #fefefe, #eef3fb);
    border-radius: var(--radius-lg);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 0 60px rgba(37, 181, 230, 0.20);
    overflow: hidden;
    transform: perspective(1500px) rotateY(-6deg) rotateX(3deg);
    transition: transform var(--transition);
}

.dashboard::after {
    /* Línea sutil de "señal" tecnológica */
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 30%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(37, 181, 230, 0.5) 50%, transparent);
    pointer-events: none;
    opacity: 0.7;
}

.dashboard:hover {
    transform: perspective(1500px) rotateY(-2deg) rotateX(1deg);
}

.dashboard__top {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--blue-950);
    padding: 12px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dashboard__live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #5cd28d;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.dashboard__live::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #28c840;
    box-shadow: 0 0 0 0 rgba(40, 200, 64, 0.6);
    animation: pulseLive 2s infinite;
}

@keyframes pulseLive {
    0% { box-shadow: 0 0 0 0 rgba(40, 200, 64, 0.6); }
    70% { box-shadow: 0 0 0 8px rgba(40, 200, 64, 0); }
    100% { box-shadow: 0 0 0 0 rgba(40, 200, 64, 0); }
}

.dashboard__dots {
    display: flex;
    gap: 6px;
}

.dashboard__dots span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.dashboard__dots span:nth-child(1) { background: #ff5f57; }
.dashboard__dots span:nth-child(2) { background: #ffbd2e; }
.dashboard__dots span:nth-child(3) { background: #28c840; }

.dashboard__url {
    flex: 1;
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 12px;
    border-radius: 6px;
}

.dashboard__body {
    display: grid;
    grid-template-columns: 140px 1fr;
    min-height: 380px;
}

.dashboard__sidebar {
    background: #f0f5fb;
    padding: 18px 12px;
    border-right: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.side-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 8px;
    font-size: 12.5px;
    color: var(--gray-700);
    font-weight: 500;
}

.side-item.active {
    background: var(--grad-primary);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(44, 99, 209, 0.3);
}

.side-icon {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    background: currentColor;
    opacity: 0.7;
}

.side-item.active .side-icon { opacity: 1; }

.dashboard__main {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.kpis {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.kpi {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(8, 20, 49, 0.04);
    position: relative;
    overflow: hidden;
    transition: border-color var(--transition), transform var(--transition);
}

.kpi::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--grad-primary);
    opacity: 0.85;
}

.kpi:hover {
    transform: translateY(-2px);
    border-color: rgba(37, 181, 230, 0.4);
}

.kpi__label {
    font-size: 10.5px;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.kpi__value {
    font-size: 20px;
    font-weight: 800;
    color: var(--blue-700);
    letter-spacing: -0.01em;
}

.kpi__trend {
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    align-self: flex-start;
}

.kpi__trend.up { background: #d6f5e2; color: #157d45; }
.kpi__trend.down { background: #fde0e0; color: #a82e2e; }

.chart {
    background: var(--white);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid var(--gray-200);
}

.chart__bars {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 80px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--gray-100);
}

.chart__bars span {
    flex: 1;
    background: linear-gradient(180deg, var(--cyan-400), var(--blue-500));
    border-radius: 4px 4px 0 0;
    height: var(--h);
    animation: barGrow 1s ease-out;
}

@keyframes barGrow {
    from { height: 0; }
    to { height: var(--h); }
}

.chart__label {
    font-size: 11px;
    color: var(--gray-500);
    margin-top: 8px;
}

/* ===== Mini tabla del dashboard ===== */
.dtable {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    overflow: hidden;
    font-size: 12px;
}

.dtable__head,
.dtable__row {
    display: grid;
    grid-template-columns: 1.4fr 1.1fr 0.7fr 0.5fr;
    gap: 8px;
    align-items: center;
    padding: 9px 12px;
}

.dtable__head {
    background: linear-gradient(180deg, #f3f7fc, #e9eff8);
    border-bottom: 1px solid var(--gray-200);
    color: var(--gray-500);
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 700;
}

.dtable__row {
    border-bottom: 1px solid var(--gray-100);
    transition: background var(--transition);
}

.dtable__row:last-child { border-bottom: none; }
.dtable__row:hover { background: #f6faff; }

.dcell-project {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-900);
    font-weight: 600;
}

.dcell-tag {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: var(--tag, var(--blue-500));
    color: var(--white);
    font-size: 10.5px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.dchip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 700;
    width: fit-content;
}

.dchip::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.4);
}

.dchip--ok { background: #e0f3e8; color: #157d45; }
.dchip--warn { background: #fdf2dc; color: #a87015; }
.dchip--done { background: #dfeaff; color: #1d4799; }

.dcell-margin {
    font-weight: 800;
    font-size: 12px;
}

.dcell-margin.up { color: #157d45; }
.dcell-margin.down { color: #a82e2e; }

.dcell-owner {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--grad-primary-soft);
    color: var(--blue-700);
    font-size: 10px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid rgba(37, 181, 230, 0.25);
    justify-self: end;
}

/* Floating cards */
.floating-card {
    position: absolute;
    background: var(--white);
    padding: 14px 18px;
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--gray-900);
    z-index: 3;
    animation: float 5s ease-in-out infinite;
}

.floating-card strong { display: block; font-size: 14px; }
.floating-card span { font-size: 12px; color: var(--gray-500); }

.floating-card--1 {
    top: 20%;
    left: -40px;
}

.floating-card--2 {
    bottom: 12%;
    right: -30px;
    animation-delay: -2.5s;
}

.fc-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--grad-primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fc-icon--alt {
    background: linear-gradient(135deg, #1c8a4e, #25b06c);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ===== Sections base ===== */
.section {
    padding: 100px 0;
    position: relative;
}

.section--light {
    background: var(--gray-50);
    color: var(--gray-900);
}

.section--dark {
    background: linear-gradient(135deg, var(--blue-900), var(--blue-800));
    color: var(--white);
    overflow: hidden;
}

.section--dark::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 80% 20%, rgba(56, 200, 240, 0.12), transparent 50%);
    pointer-events: none;
}

.section--blue {
    background: linear-gradient(135deg, var(--blue-700), var(--blue-600));
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.section--blue::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 80%, rgba(56, 200, 240, 0.15), transparent 50%);
    pointer-events: none;
}

.section__head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 60px;
    position: relative;
    z-index: 2;
}

.eyebrow {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(44, 99, 209, 0.1);
    color: var(--blue-600);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 18px;
}

.eyebrow--light {
    background: rgba(56, 200, 240, 0.15);
    color: var(--cyan-300);
}

.section__title {
    font-size: clamp(28px, 3.6vw, 44px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin-bottom: 16px;
    color: var(--gray-900);
}

.section__title--light { color: var(--white); }

.section__lead {
    font-size: 17px;
    color: var(--gray-500);
}

.section__lead--light { color: rgba(255, 255, 255, 0.78); }

/* ===== Grid ===== */
.grid {
    display: grid;
    gap: 24px;
    position: relative;
    z-index: 2;
}

.grid--3 { grid-template-columns: repeat(3, 1fr); }

/* ===== Problem cards ===== */
.problem-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 30px 26px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    position: relative;
    overflow: hidden;
}

.problem-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: -50%;
    width: 60%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(37, 181, 230, 0.05), transparent);
    transform: translateX(-100%);
    transition: transform 0.7s ease;
    pointer-events: none;
}

.problem-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--cyan-400);
}

.problem-card:hover::after {
    transform: translateX(220%);
}

.problem-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(56, 200, 240, 0.15), rgba(44, 99, 209, 0.15));
    color: var(--blue-600);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.problem-card h3 {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--gray-900);
}

.problem-card p {
    font-size: 14.5px;
    color: var(--gray-500);
    line-height: 1.6;
}

/* ===== Solution ===== */
.solution {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.check-list {
    list-style: none;
    margin: 28px 0 36px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
}

.check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--grad-primary);
    flex-shrink: 0;
    position: relative;
    box-shadow: 0 4px 12px rgba(56, 200, 240, 0.3);
}

.check::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-55%, -65%) rotate(45deg);
    width: 6px;
    height: 11px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
}

/* Solution flow visual */
.flow {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    max-width: 480px;
    margin: 0 auto;
}

.flow__node {
    position: absolute;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 14px 20px;
    border-radius: 14px;
    color: var(--white);
    font-weight: 600;
    font-size: 14px;
    box-shadow: var(--shadow-md);
    animation: float 4s ease-in-out infinite;
}

.flow__node--1 { top: 6%; left: 8%; }
.flow__node--2 { top: 18%; right: 6%; animation-delay: -1s; }
.flow__node--3 { bottom: 10%; left: 14%; animation-delay: -2s; }

.flow__center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: var(--grad-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 20px 60px rgba(44, 99, 209, 0.5),
        0 0 0 8px rgba(56, 200, 240, 0.15),
        0 0 0 16px rgba(56, 200, 240, 0.08);
    animation: pulseCenter 3s ease-in-out infinite;
}

@keyframes pulseCenter {
    0%, 100% {
        box-shadow:
            0 20px 60px rgba(44, 99, 209, 0.5),
            0 0 0 8px rgba(56, 200, 240, 0.15),
            0 0 0 16px rgba(56, 200, 240, 0.08);
    }
    50% {
        box-shadow:
            0 20px 60px rgba(44, 99, 209, 0.6),
            0 0 0 16px rgba(56, 200, 240, 0.2),
            0 0 0 28px rgba(56, 200, 240, 0.05);
    }
}

.flow__center-inner {
    text-align: center;
    color: var(--white);
}

.flow__brand {
    display: block;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 1px;
}

.flow__sub {
    display: block;
    font-size: 12px;
    opacity: 0.85;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.flow__lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.flow__lines span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(56, 200, 240, 0.4), transparent);
    transform-origin: left center;
}

.flow__lines span:nth-child(1) { transform: rotate(35deg); }
.flow__lines span:nth-child(2) { transform: rotate(-30deg); }
.flow__lines span:nth-child(3) { transform: rotate(155deg); }
.flow__lines span:nth-child(4) { transform: rotate(-150deg); }

/* ===== Modules ===== */
.modules {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.module {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 26px;
    border: 1px solid var(--gray-100);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.module::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--cyan-400), var(--blue-500));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

.module:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--gray-200);
}

.module:hover::before { transform: scaleX(1); }

.module__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: 0 6px 14px rgba(44, 99, 209, 0.25);
}

.module h4 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--gray-900);
}

.module p {
    font-size: 13.5px;
    color: var(--gray-500);
    line-height: 1.55;
}

/* ===== Use case ===== */
.usecase {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.usecase__points {
    margin-top: 36px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.upoint {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.upoint__num {
    font-size: 22px;
    font-weight: 800;
    color: var(--cyan-400);
    line-height: 1;
}

.upoint p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
}

.usecase__visual {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    color: var(--gray-900);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-lg);
}

.stat-card__label {
    display: block;
    font-size: 12px;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.stat-card__value {
    display: block;
    font-size: 42px;
    font-weight: 800;
    color: var(--blue-700);
    margin: 8px 0 14px;
}

.stat-card__chart {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 80px;
}

.stat-card__chart span {
    flex: 1;
    background: linear-gradient(180deg, var(--cyan-400), var(--blue-500));
    border-radius: 4px 4px 0 0;
    height: var(--h);
    animation: barGrow 1.2s ease-out;
}

.stat-card--alt {
    background: rgba(10, 24, 50, 0.6);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.stat-card--alt .stat-card__label { color: rgba(255, 255, 255, 0.6); }

.status-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 14px;
}

.status-list > div {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    font-size: 14px;
}

.status-list strong {
    margin-left: auto;
    font-weight: 800;
    color: var(--cyan-400);
}

.dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dot--blue { background: var(--blue-400); }
.dot--cyan { background: var(--cyan-400); }
.dot--green { background: #28c840; }
.dot--yellow { background: #f5b342; }

/* ===== Service cards ===== */
.service-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 32px 28px;
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    position: relative;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.service-card__num {
    display: inline-block;
    font-size: 14px;
    font-weight: 800;
    color: var(--cyan-500);
    background: rgba(56, 200, 240, 0.12);
    padding: 6px 12px;
    border-radius: 8px;
    margin-bottom: 18px;
}

.service-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--gray-900);
}

.service-card p {
    font-size: 14.5px;
    color: var(--gray-500);
    line-height: 1.6;
}

.service-card--cta {
    background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: none;
}

.service-card--cta h3 { color: var(--white); }
.service-card--cta p { color: rgba(255, 255, 255, 0.85); margin-bottom: 20px; }

/* ===== Timeline ===== */
.timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
    z-index: 2;
}

.timeline__item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 30px 26px;
    border-radius: var(--radius-md);
    transition: all var(--transition);
    position: relative;
}

.timeline__item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--cyan-400);
    transform: translateY(-4px);
}

.timeline__dot {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--grad-primary);
    color: var(--white);
    font-size: 18px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    box-shadow: 0 8px 20px rgba(56, 200, 240, 0.3);
}

.timeline__item h4 {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 8px;
}

.timeline__item p {
    font-size: 14.5px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
}

/* ===== Contact ===== */
.contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact__channels {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 32px;
}

.contact__channel {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.contact__channel:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
    border-color: var(--cyan-400);
}

.contact__channel strong {
    display: block;
    font-size: 16px;
    color: var(--gray-900);
}

.contact__channel span {
    display: block;
    font-size: 13px;
    color: var(--gray-500);
    margin-top: 2px;
}

.cc-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--white);
}

.cc-icon--wa { background: linear-gradient(135deg, #25d366, #128c7e); }
.cc-icon--mail { background: linear-gradient(135deg, var(--cyan-500), var(--blue-500)); }

/* Contact form */
.contact__form {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-100);
}

.contact__form h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 24px;
}

.field {
    margin-bottom: 18px;
}

.field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.field input,
.field textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--gray-200);
    border-radius: 10px;
    font-size: 15px;
    color: var(--gray-900);
    background: var(--gray-50);
    font-family: inherit;
    transition: all var(--transition);
    resize: vertical;
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--cyan-500);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(56, 200, 240, 0.12);
}

.field input::placeholder,
.field textarea::placeholder {
    color: var(--gray-300);
}

.form__note {
    font-size: 12px;
    color: var(--gray-500);
    text-align: center;
    margin-top: 14px;
}

.form__success {
    display: none;
    margin-top: 18px;
    padding: 14px 18px;
    background: #d3f5e0;
    color: #1c8a4e;
    border-radius: 10px;
    font-weight: 600;
    text-align: center;
    font-size: 14px;
}

.form__success.visible { display: block; }

/* ===== Footer ===== */
.footer {
    background: var(--blue-900);
    color: rgba(255, 255, 255, 0.7);
    padding: 70px 0 0;
}

.footer__inner {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 50px;
}

.footer__brand p {
    margin-top: 18px;
    font-size: 14px;
    line-height: 1.7;
    max-width: 360px;
}

.footer__col h5 {
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer__col a {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 10px;
    transition: color var(--transition);
}

.footer__col a:hover { color: var(--cyan-400); }

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 22px 0;
    font-size: 13px;
}

.footer__bottom .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    color: rgba(255, 255, 255, 0.5);
}

/* ===== Floating WhatsApp ===== */
.wa-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.4);
    z-index: 90;
    transition: all var(--transition);
    animation: pulseWa 2.5s infinite;
}

.wa-float:hover {
    transform: scale(1.1);
}

@keyframes pulseWa {
    0%, 100% { box-shadow: 0 12px 30px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.5); }
    50% { box-shadow: 0 12px 30px rgba(37, 211, 102, 0.4), 0 0 0 14px rgba(37, 211, 102, 0); }
}

/* ===== Antes vs Después ===== */
.section--soft {
    background:
        linear-gradient(180deg, var(--white) 0%, var(--gray-50) 60%, var(--gray-100) 100%);
    color: var(--gray-900);
    position: relative;
    overflow: hidden;
}

.section--soft::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 0% 50%, rgba(37, 181, 230, 0.06), transparent 45%),
        radial-gradient(circle at 100% 50%, rgba(37, 87, 196, 0.06), transparent 45%);
    pointer-events: none;
}

.compare {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 28px;
    align-items: stretch;
    position: relative;
    z-index: 2;
}

.compare__card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}

.compare__card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.compare__card--before {
    background: var(--gray-50);
    border-color: var(--gray-200);
}

.compare__card--after {
    position: relative;
    background:
        linear-gradient(180deg, #ffffff, #f6faff);
    border-color: rgba(37, 181, 230, 0.35);
    box-shadow:
        var(--shadow-md),
        0 0 0 1px rgba(37, 181, 230, 0.1);
}

.compare__card--after::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--grad-primary);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.compare__head {
    margin-bottom: 18px;
}

.compare__tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(168, 46, 46, 0.08);
    color: #a82e2e;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 10px;
}

.compare__tag--after {
    background: var(--grad-primary-soft);
    color: var(--blue-600);
}

.compare__head h3 {
    font-size: 22px;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -0.01em;
}

.compare__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.compare__list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    color: var(--gray-700);
    line-height: 1.5;
}

.compare__icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.compare__icon--x {
    background: rgba(168, 46, 46, 0.10);
    color: #a82e2e;
}

.compare__icon--check {
    background: var(--grad-primary);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(37, 181, 230, 0.3);
}

.compare__bridge {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 4px;
}

.compare__bridge-line {
    position: absolute;
    inset: 0;
    margin: auto 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(168, 46, 46, 0.25), rgba(37, 181, 230, 0.45));
}

.compare__bridge-arrow {
    position: relative;
    z-index: 2;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--white);
    color: var(--blue-600);
    border: 1.5px solid rgba(37, 181, 230, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(37, 87, 196, 0.18);
}

/* ===== Reveal animation ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero__inner,
    .solution,
    .usecase,
    .contact {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .hero__visual { max-width: 580px; margin: 0 auto; }
    .floating-card--1 { left: 0; }
    .floating-card--2 { right: 0; }

    .grid--3,
    .modules,
    .timeline {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .compare__bridge {
        transform: rotate(90deg);
        height: 60px;
        margin: -10px 0;
    }

    .compare__bridge-line {
        background: linear-gradient(90deg, rgba(168, 46, 46, 0.25), rgba(37, 181, 230, 0.45));
    }

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

@media (max-width: 768px) {
    .nav,
    .btn--header {
        display: none;
    }

    .nav.open {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(5, 13, 34, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        padding: 18px 20px 24px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
    }

    .nav.open .nav__list {
        flex-direction: column;
        gap: 2px;
    }

    .nav.open .nav__list a {
        padding: 12px 14px;
        font-size: 15px;
    }

    .nav__toggle { display: flex; }

    .container { padding: 0 20px; }

    .logo { padding: 6px 12px; }
    .logo__img { height: 22px; }
    .header.scrolled .logo { padding: 5px 11px; }
    .header.scrolled .logo__img { height: 20px; }

    .section { padding: 64px 0; }
    .section__head { margin-bottom: 44px; }
    .hero { padding: 120px 0 60px; min-height: auto; }

    .hero__title { line-height: 1.15; }
    .hero__subtitle { font-size: 16px; }

    .hero__metrics {
        gap: 22px 28px;
        flex-wrap: wrap;
    }

    .hero__actions { flex-direction: column; align-items: stretch; }
    .hero__actions .btn { justify-content: center; }

    .grid--3,
    .modules,
    .timeline,
    .usecase__points {
        grid-template-columns: 1fr;
    }

    .dashboard { transform: none; }
    .dashboard__body { grid-template-columns: 1fr; min-height: auto; }
    .dashboard__sidebar {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        padding: 12px;
        gap: 8px;
        border-right: none;
        border-bottom: 1px solid var(--gray-200);
    }
    .side-item { flex-shrink: 0; }
    .dashboard__main { padding: 18px; gap: 14px; }
    .dashboard__live { display: none; }

    .dtable__head,
    .dtable__row {
        grid-template-columns: 1.4fr 1fr 0.7fr 0.5fr;
        gap: 6px;
        padding: 9px 10px;
    }

    .compare__card { padding: 26px 22px; }
    .compare__head h3 { font-size: 20px; }

    .floating-card { display: none; }

    .contact__form { padding: 26px 22px; }
    .contact__channel { padding: 16px 18px; }

    .footer__inner {
        grid-template-columns: 1fr;
        gap: 36px;
        text-align: center;
    }

    .footer__brand p { margin-left: auto; margin-right: auto; }

    .footer__bottom .container {
        flex-direction: column;
        text-align: center;
    }

    .flow { max-width: 360px; }
    .flow__center { width: 160px; height: 160px; }
    .flow__brand { font-size: 22px; }

    .wa-float {
        width: 52px;
        height: 52px;
        bottom: 18px;
        right: 18px;
    }
}

@media (max-width: 480px) {
    .hero { padding: 110px 0 50px; }
    .hero__title { font-size: 30px; }
    .hero__subtitle { font-size: 15.5px; }
    .section__title { font-size: 25px; }
    .section__lead { font-size: 15.5px; }
    .kpis { grid-template-columns: 1fr 1fr; gap: 8px; }
    .kpi { padding: 10px 12px; }
    .kpi__value { font-size: 18px; }
    .status-list { grid-template-columns: 1fr; }
    .stat-card__value { font-size: 34px; }
    .btn--lg { padding: 14px 22px; font-size: 15px; }
    .hero__badge { font-size: 12px; padding: 6px 12px; }
    .upoint { padding: 14px; }
    .timeline__item { padding: 24px 22px; }
    .problem-card,
    .module,
    .service-card { padding: 24px 20px; }

    /* Tabla del dashboard: más compacta y oculta la columna de responsable
       en pantallas muy pequeñas para no romper el layout. */
    .dtable__head,
    .dtable__row {
        grid-template-columns: 1.5fr 1.1fr 0.7fr;
        font-size: 11.5px;
    }
    .dtable__head span:nth-child(4),
    .dtable__row > .dcell-owner { display: none; }

    .compare__list li { font-size: 14.5px; }
    .compare__head h3 { font-size: 19px; }
}
