/* ===================================================================
   ORBIX AUTOMATION · Hoja de estilos
   Paleta: Azules industriales modernos
   =================================================================== */

:root {
    /* ============ PALETA DE AZULES ============ */
    --blue-950: #030C1F;
    --blue-900: #061A40;
    --blue-800: #0A2540;
    --blue-700: #003F88;
    --blue-600: #0353A4;
    --blue-500: #006DAA;
    --blue-400: #0496FF;
    --blue-300: #00A8E8;
    --blue-200: #41B6FF;
    --blue-100: #B9E0FF;
    --blue-50:  #ECF6FF;
    --blue-25:  #F5FAFF;

    /* ============ NEUTROS ============ */
    --white: #ffffff;
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --gray-900: #0F172A;

    /* ============ SEMÁNTICOS ============ */
    --text: var(--blue-900);
    --text-soft: var(--gray-600);
    --text-light: var(--gray-500);
    --bg: var(--white);
    --bg-alt: var(--blue-50);
    --border: var(--gray-200);
    --primary: var(--blue-400);
    --primary-dark: var(--blue-600);
    --accent: var(--blue-300);

    /* ============ GRADIENTES ============ */
    --grad-primary: linear-gradient(135deg, var(--blue-700) 0%, var(--blue-400) 50%, var(--blue-300) 100%);
    --grad-text: linear-gradient(135deg, var(--blue-400) 0%, var(--blue-300) 100%);
    --grad-dark: linear-gradient(135deg, var(--blue-950) 0%, var(--blue-800) 50%, var(--blue-700) 100%);
    --grad-card: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(236,246,255,0.7) 100%);

    /* ============ SOMBRAS ============ */
    --shadow-sm: 0 1px 3px rgba(6, 26, 64, 0.08);
    --shadow-md: 0 4px 16px rgba(6, 26, 64, 0.10);
    --shadow-lg: 0 12px 40px rgba(6, 26, 64, 0.15);
    --shadow-xl: 0 24px 60px rgba(6, 26, 64, 0.20);
    --shadow-blue: 0 12px 40px rgba(4, 150, 255, 0.30);

    /* ============ TYPOGRAFÍA ============ */
    --font-display: 'Manrope', 'Inter', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    /* ============ ESPACIADO ============ */
    --container: 1280px;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-xl: 30px;

    /* ============ TRANSICIONES ============ */
    --t-fast: .2s ease;
    --t-base: .35s cubic-bezier(.2,.8,.2,1);
    --t-slow: .6s cubic-bezier(.2,.8,.2,1);
}

/* =================================================================
   RESET
   ================================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--t-fast); }
button { font-family: inherit; cursor: pointer; border: 0; background: transparent; }
ul { list-style: none; }
input, textarea { font-family: inherit; font-size: inherit; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--blue-900);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
}

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

/* =================================================================
   TYPO HELPERS
   ================================================================= */
.gradient-text {
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--blue-500);
    background: var(--blue-50);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 18px;
}
.eyebrow--light {
    color: var(--blue-100);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(185, 224, 255, 0.18);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(4, 150, 255, 0.10);
    border: 1px solid rgba(4, 150, 255, 0.25);
    color: var(--blue-500);
    font-weight: 600;
    font-size: 13px;
    padding: 8px 16px;
    border-radius: 999px;
    margin-bottom: 22px;
}
.badge i { color: var(--blue-300); }

/* =================================================================
   BUTTONS
   ================================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 15px;
    padding: 13px 26px;
    border-radius: 999px;
    cursor: pointer;
    transition: all var(--t-base);
    white-space: nowrap;
    text-decoration: none;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}
.btn--lg { padding: 16px 32px; font-size: 16px; }

.btn--primary {
    background: var(--grad-primary);
    color: var(--white);
    box-shadow: var(--shadow-blue);
}
.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 50px rgba(4, 150, 255, 0.45);
}

.btn--ghost {
    background: rgba(255,255,255,0.08);
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.20);
    backdrop-filter: blur(10px);
}
.btn--ghost:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.35);
}

.btn--outline {
    background: var(--white);
    color: var(--blue-600);
    border: 2px solid var(--blue-200);
}
.btn--outline:hover {
    border-color: var(--blue-400);
    background: var(--blue-50);
    color: var(--blue-700);
    transform: translateY(-2px);
}

/* =================================================================
   TOP BAR
   ================================================================= */
.top-bar {
    background: var(--blue-950);
    color: var(--blue-100);
    font-size: 13px;
    padding: 9px 0;
}
.top-bar__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.top-bar__left { display: flex; gap: 24px; flex-wrap: wrap; }
.top-bar__left i { color: var(--blue-300); margin-right: 6px; }
.top-bar__right { display: flex; gap: 16px; }
.top-bar__right a {
    width: 28px; height: 28px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(185, 224, 255, 0.10);
    transition: all var(--t-fast);
}
.top-bar__right a:hover {
    background: var(--blue-400);
    color: var(--white);
    transform: translateY(-2px);
}

/* =================================================================
   HEADER / NAV
   ================================================================= */
.header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
    position: sticky;
    top: 0;
    z-index: 999;
    transition: all var(--t-base);
}
.header.scrolled {
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(20px);
    background: rgba(255,255,255,0.92);
}
.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 24px;
    gap: 24px;
    min-height: 84px;
}
.logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    line-height: 0;
}
.logo__img {
    height: 78px;
    width: auto;
    display: block;
    object-fit: contain;
    transition: transform var(--t-base), filter var(--t-base);
    filter: drop-shadow(0 4px 16px rgba(4, 150, 255, 0.18));
}
.logo:hover .logo__img {
    transform: scale(1.06);
    filter: drop-shadow(0 6px 20px rgba(4, 150, 255, 0.30));
}
.header.scrolled .logo__img {
    height: 64px;
    transition: height var(--t-base);
}

.nav { display: flex; align-items: center; gap: 24px; }
.nav__list { display: flex; gap: 4px; }

.nav__item { position: relative; }
.nav__link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    color: var(--blue-800);
    transition: all var(--t-fast);
}
.nav__link i { font-size: 10px; transition: transform var(--t-fast); }
.nav__link:hover {
    color: var(--blue-500);
    background: var(--blue-50);
}
.nav__item--dropdown:hover .nav__link i { transform: rotate(180deg); }

.nav__dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 260px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 12px;
    border: 1px solid var(--gray-100);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all var(--t-base);
    z-index: 100;
}
.nav__item--dropdown:hover .nav__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav__dropdown li a {
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--gray-700);
    transition: all var(--t-fast);
}
.nav__dropdown li a:hover {
    background: var(--blue-50);
    color: var(--blue-500);
    transform: translateX(4px);
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--blue-800);
    border-radius: 2px;
    transition: all var(--t-base);
}
.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;
    background: var(--grad-dark);
    color: var(--white);
    overflow: hidden;
    padding: 80px 0 100px;
    min-height: 92vh;
    display: flex;
    align-items: center;
}

.hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(65, 182, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(65, 182, 255, 0.08) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
}
.hero__glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.35;
    animation: float 20s ease-in-out infinite;
}
.hero__glow--1 {
    background: var(--blue-400);
    top: -150px;
    right: -150px;
}
.hero__glow--2 {
    background: var(--blue-300);
    bottom: -150px;
    left: -150px;
    animation-delay: -10s;
}
@keyframes float {
    0%, 100% { transform: translate(0,0) scale(1); }
    50% { transform: translate(50px, -30px) scale(1.15); }
}

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

.hero__title {
    font-size: clamp(36px, 5.5vw, 64px);
    line-height: 1.05;
    color: var(--white);
    margin-bottom: 22px;
    font-weight: 800;
}

.hero__subtitle {
    font-size: clamp(16px, 1.4vw, 18px);
    line-height: 1.65;
    color: var(--blue-100);
    margin-bottom: 36px;
    max-width: 600px;
}
.hero__subtitle strong { color: var(--white); }

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

.hero__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 540px;
}
.stat {
    border-left: 2px solid rgba(65, 182, 255, 0.4);
    padding-left: 18px;
}
.stat__num {
    font-family: var(--font-display);
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 800;
    color: var(--white);
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.stat span {
    font-size: 22px;
    color: var(--blue-300);
    font-weight: 700;
    margin-left: 2px;
}
.stat p {
    color: var(--blue-100);
    font-size: 13px;
    margin-top: 4px;
}

/* ====== Dashboard mock ====== */
.hero__visual {
    position: relative;
    perspective: 1500px;
}
.dashboard-mock {
    background: linear-gradient(180deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.04) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(185, 224, 255, 0.15);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow-xl);
    transform: perspective(1200px) rotateY(-6deg) rotateX(4deg);
    transition: transform var(--t-slow);
    position: relative;
    transform-style: preserve-3d;
}
.dashboard-mock::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    background: radial-gradient(circle at var(--mouseX, 50%) var(--mouseY, 50%), rgba(65, 182, 255, 0.18), transparent 40%);
    pointer-events: none;
    opacity: 0;
    transition: opacity .3s;
}
.dashboard-mock:hover::after { opacity: 1; }
.dashboard-mock .dash-card,
.dashboard-mock .dash-card--big,
.dashboard-mock .dash-card--wide { transform: translateZ(20px); }
.dashboard-mock .dash-card--big { transform: translateZ(35px); }

.dashboard-mock__header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(185, 224, 255, 0.12);
    margin-bottom: 18px;
}
.dashboard-mock__header span {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(185, 224, 255, 0.25);
}
.dashboard-mock__header span:first-child { background: var(--blue-300); }
.dashboard-mock__header p {
    margin-left: auto;
    font-size: 12px;
    color: var(--blue-100);
    letter-spacing: 0.05em;
}

.dashboard-mock__body {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 12px;
}

.dash-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(185, 224, 255, 0.10);
    border-radius: var(--radius-md);
    padding: 16px;
}
.dash-card--big { grid-row: span 2; }
.dash-card--wide { grid-column: span 2; }
.dash-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--blue-100);
    margin-bottom: 8px;
    font-weight: 600;
}
.dash-card h3 {
    color: var(--white);
    font-size: 42px;
    font-weight: 800;
    line-height: 1;
}
.dash-card h3 small { font-size: 18px; color: var(--blue-300); margin-left: 3px; }
.dash-card h4 {
    color: var(--white);
    font-size: 24px;
    font-weight: 700;
}
.dash-card h4 small { font-size: 13px; color: var(--blue-200); margin-left: 2px; }
.dash-bar {
    margin-top: 14px;
    height: 6px;
    background: rgba(185, 224, 255, 0.10);
    border-radius: 999px;
    overflow: hidden;
}
.dash-bar span {
    display: block;
    height: 100%;
    background: var(--grad-text);
    border-radius: 999px;
    animation: barFill 2s ease;
}
@keyframes barFill { from { width: 0 !important; } }

.dash-mini-chart {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 38px;
    margin-top: 12px;
}
.dash-mini-chart span {
    flex: 1;
    background: var(--grad-text);
    border-radius: 2px;
    opacity: 0.85;
    animation: barRise .8s ease both;
}
.dash-mini-chart span:nth-child(1){ animation-delay:.05s; }
.dash-mini-chart span:nth-child(2){ animation-delay:.15s; }
.dash-mini-chart span:nth-child(3){ animation-delay:.25s; }
.dash-mini-chart span:nth-child(4){ animation-delay:.35s; }
.dash-mini-chart span:nth-child(5){ animation-delay:.45s; }
.dash-mini-chart span:nth-child(6){ animation-delay:.55s; }
.dash-mini-chart span:nth-child(7){ animation-delay:.65s; }
@keyframes barRise { from { height: 0; } }

.dash-trend { font-size: 12px; margin-top: 8px; font-weight: 600; }
.dash-trend.up { color: var(--blue-200); }

.dash-sensors {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}
.sensor {
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(65, 182, 255, 0.15);
    border: 1px solid rgba(65, 182, 255, 0.30);
    color: var(--blue-200);
    border-radius: 12px;
    transition: all var(--t-fast);
    position: relative;
}
.sensor::after {
    content: '';
    position: absolute;
    top: 4px; right: 4px;
    width: 6px; height: 6px;
    background: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 8px #4ade80;
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.7); }
}
.sensor:hover {
    background: var(--blue-400);
    color: var(--white);
    transform: translateY(-3px);
}

.hero__scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    color: var(--blue-200);
    border: 1px solid rgba(185, 224, 255, 0.25);
    animation: bounce 2s ease-in-out infinite;
    transition: all var(--t-fast);
}
.hero__scroll:hover {
    background: var(--blue-400);
    color: var(--white);
    border-color: var(--blue-400);
}
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* =================================================================
   MARQUEE
   ================================================================= */
.marquee {
    background: var(--blue-50);
    padding: 28px 0;
    overflow: hidden;
    border-bottom: 1px solid var(--blue-100);
}
.marquee__title {
    text-align: center;
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--blue-500);
    font-weight: 700;
    margin-bottom: 18px;
}
.marquee__track {
    display: flex;
    gap: 60px;
    width: max-content;
    animation: marqueeMove 30s linear infinite;
}
.marquee__group {
    display: flex;
    gap: 60px;
    align-items: center;
}
.marquee__group span {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 22px;
    color: var(--blue-600);
    opacity: 0.6;
    letter-spacing: 0.02em;
    white-space: nowrap;
    transition: opacity var(--t-fast);
}
.marquee__group span:hover { opacity: 1; }
@keyframes marqueeMove {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* =================================================================
   SECTIONS BASE
   ================================================================= */
.section {
    padding: 110px 0;
    position: relative;
}
.section--alt { background: var(--blue-50); }
.section--dark {
    background: var(--grad-dark);
    color: var(--white);
    position: relative;
    overflow: hidden;
}
.section--dark h2 { color: var(--white); }
.section--dark::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(4, 150, 255, 0.20), transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 168, 232, 0.18), transparent 50%);
    pointer-events: none;
}
.section--dark > .container { position: relative; z-index: 2; }

.section__head {
    max-width: 820px;
    margin-bottom: 60px;
}
.section__head--center {
    margin: 0 auto 60px;
    text-align: center;
}
.section__head h2 {
    font-size: clamp(30px, 4vw, 48px);
    margin-bottom: 18px;
    line-height: 1.15;
}
.section__intro {
    font-size: 17px;
    color: var(--text-soft);
    line-height: 1.7;
    margin-bottom: 16px;
}
.section__intro--light { color: var(--blue-100); }
.section__cta {
    text-align: center;
    margin-top: 56px;
}

/* =================================================================
   FEATURES (Quiénes somos)
   ================================================================= */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
    margin-top: 48px;
}
.feature {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: all var(--t-base);
    position: relative;
    overflow: hidden;
}
.feature::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--grad-primary);
    opacity: 0;
    transition: opacity var(--t-base);
    z-index: 0;
}
.feature > * { position: relative; z-index: 1; }
.feature:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}
.feature:hover::before { opacity: 1; }
.feature:hover h3,
.feature:hover p { color: var(--white); }
.feature:hover .feature__icon {
    background: rgba(255,255,255,0.20);
    color: var(--white);
}

.feature__icon {
    width: 60px; height: 60px;
    display: flex; align-items: center; justify-content: center;
    background: var(--blue-50);
    color: var(--blue-500);
    border-radius: var(--radius-md);
    font-size: 26px;
    margin-bottom: 20px;
    transition: all var(--t-base);
}
.feature h3 {
    font-size: 19px;
    margin-bottom: 12px;
    transition: color var(--t-base);
}
.feature p {
    color: var(--text-soft);
    font-size: 14.5px;
    line-height: 1.65;
    transition: color var(--t-base);
}

/* =================================================================
   SPLIT (Academia / Ingeniería)
   ================================================================= */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.split--reverse .split__content { order: 2; }
.split__content h2 { font-size: clamp(28px, 3.5vw, 42px); margin-bottom: 20px; }
.split__content p { color: var(--text-soft); font-size: 16.5px; line-height: 1.7; margin-bottom: 14px; }

.course-list {
    margin: 30px 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.course-list li {
    display: flex;
    gap: 18px;
    padding: 16px 18px;
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-100);
    transition: all var(--t-base);
}
.course-list li:hover {
    transform: translateX(6px);
    border-color: var(--blue-200);
    box-shadow: var(--shadow-md);
}
.course-list__num {
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    background: var(--grad-primary);
    color: var(--white);
    font-family: var(--font-display);
    font-weight: 800;
    border-radius: 10px;
    flex-shrink: 0;
    font-size: 14px;
}
.course-list strong { display: block; font-size: 15.5px; color: var(--blue-900); margin-bottom: 2px; }
.course-list p { color: var(--text-soft); font-size: 14px; line-height: 1.5; margin: 0; }

/* Academy Card */
.academy-card {
    background: var(--grad-dark);
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}
.academy-card::before {
    content: '';
    position: absolute;
    width: 300px; height: 300px;
    background: var(--blue-400);
    opacity: 0.25;
    filter: blur(100px);
    border-radius: 50%;
    top: -50px; right: -50px;
}
.academy-card > * { position: relative; z-index: 1; }
.academy-card__top {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(65, 182, 255, 0.18);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: var(--blue-200);
    margin-bottom: 18px;
}
.academy-card h3 { color: var(--white); font-size: 26px; margin-bottom: 8px; }
.academy-card__desc { color: var(--blue-100); font-size: 14px; margin-bottom: 24px; }
.academy-card__progress {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 28px;
}
.prog {
    height: 8px;
    background: rgba(255,255,255,0.10);
    border-radius: 999px;
    overflow: hidden;
}
.prog span {
    display: block;
    height: 100%;
    background: var(--grad-text);
    border-radius: 999px;
}
.academy-card__meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding-top: 22px;
    border-top: 1px solid rgba(185, 224, 255, 0.15);
}
.academy-card__meta div { text-align: center; }
.academy-card__meta strong {
    display: block;
    font-family: var(--font-display);
    color: var(--white);
    font-size: 22px;
    font-weight: 800;
}
.academy-card__meta span { font-size: 12px; color: var(--blue-100); }

/* =================================================================
   EVENT CARDS
   ================================================================= */
.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}
.event-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
    overflow: hidden;
    transition: all var(--t-base);
    display: flex;
}
.event-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--blue-200);
}
.event-card__date {
    background: var(--grad-primary);
    color: var(--white);
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 92px;
}
.event-card__date strong {
    font-family: var(--font-display);
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
}
.event-card__date span {
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.1em;
    margin-top: 4px;
    font-weight: 600;
}
.event-card__body { padding: 22px; flex: 1; }
.event-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 10px;
}
.event-tag--webinar { background: var(--blue-50); color: var(--blue-500); }
.event-tag--curso { background: #FEF3E0; color: #B47800; }
.event-tag--evento { background: #E8F5E9; color: #2E7D32; }
.event-card h3 { font-size: 18px; margin-bottom: 8px; }
.event-card__body p { color: var(--text-soft); font-size: 14px; margin-bottom: 14px; }
.event-card__meta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 12.5px;
    color: var(--text-light);
    margin-bottom: 14px;
}
.event-card__meta i { color: var(--blue-400); margin-right: 4px; }
.event-card__link {
    font-weight: 600;
    color: var(--blue-500);
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap var(--t-fast);
}
.event-card__link:hover { gap: 12px; color: var(--blue-700); }

/* =================================================================
   TECH GRID (Tecnologías)
   ================================================================= */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}
.tech-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(185, 224, 255, 0.12);
    backdrop-filter: blur(20px);
    padding: 28px 22px;
    border-radius: var(--radius-md);
    text-align: center;
    transition: all var(--t-base);
}
.tech-item:hover {
    transform: translateY(-4px);
    background: rgba(255,255,255,0.10);
    border-color: var(--blue-300);
}
.tech-item i {
    font-size: 36px;
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 14px;
    display: block;
}
.tech-item p {
    color: var(--blue-100);
    font-size: 14.5px;
    line-height: 1.5;
    font-weight: 500;
}

/* =================================================================
   CATEGORIES
   ================================================================= */
.categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}
.category-card {
    display: block;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 30px 26px;
    transition: all var(--t-base);
    position: relative;
    overflow: hidden;
}
.category-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 100%;
    background: var(--grad-primary);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform var(--t-base);
}
.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--blue-100);
}
.category-card:hover::before { transform: scaleY(1); }
.category-card__icon {
    width: 56px; height: 56px;
    display: flex; align-items: center; justify-content: center;
    background: var(--blue-50);
    color: var(--blue-500);
    border-radius: var(--radius-md);
    font-size: 24px;
    margin-bottom: 18px;
    transition: all var(--t-base);
}
.category-card:hover .category-card__icon {
    background: var(--grad-primary);
    color: var(--white);
    transform: scale(1.05) rotate(-4deg);
}
.category-card h3 { font-size: 19px; margin-bottom: 8px; }
.category-card p { color: var(--text-soft); font-size: 14.5px; line-height: 1.6; margin-bottom: 18px; }
.category-card__arrow {
    width: 36px; height: 36px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--blue-50);
    color: var(--blue-500);
    border-radius: 50%;
    transition: all var(--t-base);
}
.category-card:hover .category-card__arrow {
    background: var(--blue-400);
    color: var(--white);
    transform: translateX(4px);
}

/* =================================================================
   APPS GRID
   ================================================================= */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}
.app-tile {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    border: 1px solid var(--gray-100);
    transition: all var(--t-base);
    border-top: 3px solid var(--blue-300);
}
.app-tile:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--blue-400);
}
.app-tile i {
    font-size: 28px;
    color: var(--blue-500);
    margin-bottom: 14px;
    display: block;
}
.app-tile h3 { font-size: 17px; margin-bottom: 8px; }
.app-tile p { font-size: 14px; color: var(--text-soft); line-height: 1.6; }

/* =================================================================
   TESTIMONIALS
   ================================================================= */
.testimonials { background: var(--blue-50); }
.testimonial-carousel {
    position: relative;
    max-width: 880px;
    margin: 0 auto;
    overflow: hidden;
    padding: 6px;
    border-radius: var(--radius-lg);
}
.testimonial-track {
    display: flex;
    width: 100%;
    will-change: transform;
}
.testimonial {
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
    background: var(--white);
    padding: 50px 50px 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    position: relative;
    box-sizing: border-box;
    transition: opacity .4s ease, transform .4s ease;
    opacity: 0.4;
    transform: scale(0.96);
}
.testimonial.is-active {
    opacity: 1;
    transform: scale(1);
}
.testimonial__quote {
    position: absolute;
    top: 28px; right: 36px;
    font-size: 60px;
    color: var(--blue-100);
    line-height: 1;
    pointer-events: none;
}
.testimonial p {
    font-size: 18px;
    line-height: 1.7;
    color: var(--blue-900);
    margin-bottom: 28px;
    font-style: italic;
    position: relative;
    z-index: 1;
}
.testimonial p strong {
    font-style: normal;
    color: var(--blue-700);
    background: linear-gradient(180deg, transparent 60%, var(--blue-100) 60%);
}
.testimonial__author {
    display: flex;
    align-items: center;
    gap: 14px;
}
.testimonial__avatar {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: var(--grad-primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--font-display);
    font-size: 16px;
}
.testimonial__author strong { display: block; color: var(--blue-900); }
.testimonial__author span { font-size: 13.5px; color: var(--text-soft); }

.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
}
.carousel-btn {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid var(--gray-200);
    color: var(--blue-600);
    box-shadow: var(--shadow-sm);
    transition: all var(--t-base);
}
.carousel-btn:hover {
    background: var(--blue-400);
    color: var(--white);
    border-color: var(--blue-400);
    transform: scale(1.08);
}
.carousel-dots { display: flex; gap: 8px; }
.carousel-dots button {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--gray-300);
    transition: all var(--t-base);
}
.carousel-dots button.active {
    background: var(--blue-400);
    width: 28px;
    border-radius: 999px;
}

/* =================================================================
   ENGINEERING CARD
   ================================================================= */
.engineering-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    gap: 22px;
    border: 1px solid var(--gray-100);
}
.eng-stat {
    display: flex;
    gap: 18px;
    align-items: center;
    padding: 16px 18px;
    background: var(--blue-50);
    border-radius: var(--radius-md);
    transition: all var(--t-base);
}
.eng-stat:hover {
    background: var(--blue-100);
    transform: translateX(6px);
}
.eng-stat__icon {
    width: 50px; height: 50px;
    background: var(--grad-primary);
    color: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.eng-stat strong { display: block; color: var(--blue-900); font-size: 16px; margin-bottom: 2px; }
.eng-stat p { color: var(--text-soft); font-size: 13.5px; margin: 0; line-height: 1.5; }

/* =================================================================
   VIDEO GRID
   ================================================================= */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}
.video-card {
    display: block;
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--t-base);
    box-shadow: var(--shadow-sm);
}
.video-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.video-card__thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    background: var(--grad-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.video-card__thumb::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 50%, rgba(4, 150, 255, 0.4), transparent 60%),
        radial-gradient(circle at 70% 50%, rgba(0, 168, 232, 0.3), transparent 60%);
}
.video-card__thumb i {
    position: relative;
    font-size: 64px;
    color: var(--white);
    transition: transform var(--t-base);
    filter: drop-shadow(0 4px 16px rgba(0,0,0,0.3));
}
.video-card:hover .video-card__thumb i {
    transform: scale(1.15);
    color: var(--blue-200);
}
.video-card__duration {
    position: absolute;
    bottom: 10px; right: 10px;
    background: rgba(0,0,0,0.65);
    color: var(--white);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}
.video-card h3 {
    font-size: 15px;
    padding: 16px 18px;
    line-height: 1.4;
}

/* =================================================================
   CTA FINAL
   ================================================================= */
.cta-final {
    background: var(--grad-dark);
    color: var(--white);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    text-align: center;
}
.cta-final__bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.cta-final__bg .hero__glow--1 { top: -200px; right: 20%; }
.cta-final__bg .hero__glow--2 { bottom: -200px; left: 10%; }

.cta-final__inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; }
.cta-final h2 { color: var(--white); font-size: clamp(28px, 4vw, 46px); margin-bottom: 18px; line-height: 1.2; }
.cta-final > .container > p { color: var(--blue-100); font-size: 17px; margin-bottom: 36px; }
.cta-final__inner > p { color: var(--blue-100); font-size: 17px; margin-bottom: 36px; }

.cta-form {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(185, 224, 255, 0.15);
    padding: 32px;
    border-radius: var(--radius-lg);
    text-align: left;
}
.cta-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}
.cta-form input,
.cta-form textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(185, 224, 255, 0.20);
    border-radius: var(--radius-md);
    color: var(--white);
    font-size: 15px;
    transition: all var(--t-fast);
}
.cta-form input::placeholder,
.cta-form textarea::placeholder { color: rgba(185, 224, 255, 0.55); }
.cta-form input:focus,
.cta-form textarea:focus {
    outline: none;
    border-color: var(--blue-300);
    background: rgba(255,255,255,0.09);
}
.cta-form textarea { resize: vertical; margin-bottom: 18px; }
.cta-form button { width: 100%; }
.cta-form__msg {
    margin-top: 14px;
    text-align: center;
    font-size: 14px;
    color: #4ade80;
    opacity: 0;
    transition: opacity var(--t-base);
}
.cta-form__msg.visible { opacity: 1; }

/* =================================================================
   FOOTER
   ================================================================= */
.footer {
    background: var(--blue-950);
    color: var(--blue-100);
    padding: 80px 0 0;
}
.footer__top {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 50px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(185, 224, 255, 0.10);
}
.footer__brand p {
    margin-top: 20px;
    color: var(--blue-100);
    font-size: 15px;
    max-width: 280px;
    line-height: 1.6;
}
.footer__logo {
    height: 92px;
    width: auto;
    display: block;
    object-fit: contain;
    filter: brightness(1.15) drop-shadow(0 6px 20px rgba(4, 150, 255, 0.35));
    margin-bottom: 6px;
}
.footer__social {
    margin-top: 24px;
    display: flex;
    gap: 12px;
}
.footer__social a {
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(185, 224, 255, 0.10);
    border-radius: 50%;
    transition: all var(--t-fast);
}
.footer__social a:hover {
    background: var(--blue-400);
    color: var(--white);
    transform: translateY(-3px);
}

.footer__col h4 {
    color: var(--white);
    font-size: 16px;
    margin-bottom: 22px;
    font-weight: 700;
}
.footer__col ul { display: flex; flex-direction: column; gap: 12px; }
.footer__col a { color: var(--blue-100); font-size: 14.5px; transition: all var(--t-fast); }
.footer__col a:hover { color: var(--blue-300); transform: translateX(4px); display: inline-block; }
.footer__col--contact ul { color: var(--blue-100); font-size: 14.5px; }
.footer__col--contact i {
    color: var(--blue-300);
    width: 18px;
    margin-right: 8px;
}

.footer__bottom {
    padding: 22px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13.5px;
    color: var(--blue-100);
    opacity: 0.7;
}

/* =================================================================
   WHATSAPP FLOAT
   ================================================================= */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: var(--white);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45);
    z-index: 998;
    transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s;
    animation: pulseRing 2.5s ease-in-out infinite;
}
.whatsapp-float i {
    font-size: 32px;
    line-height: 1;
    display: block;
}
.whatsapp-float:hover {
    transform: scale(1.08);
    color: var(--white);
    background: #1ebe5d;
}
.whatsapp-float:active {
    transform: scale(0.96);
}
@keyframes pulseRing {
    0%   { box-shadow: 0 0 0 0    rgba(37, 211, 102, 0.55), 0 10px 30px rgba(37, 211, 102, 0.40); }
    70%  { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0),    0 10px 30px rgba(37, 211, 102, 0.40); }
    100% { box-shadow: 0 0 0 0    rgba(37, 211, 102, 0),    0 10px 30px rgba(37, 211, 102, 0.40); }
}

/* =================================================================
   REVEAL ANIMATION
   ================================================================= */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =================================================================
   RESPONSIVE
   ================================================================= */
@media (max-width: 1080px) {
    .hero__inner { grid-template-columns: 1fr; gap: 40px; }
    .hero__visual { max-width: 520px; margin: 0 auto; }
    .split { grid-template-columns: 1fr; gap: 50px; }
    .split--reverse .split__content { order: 0; }
    .footer__top { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 880px) {
    .nav__list, .nav__cta { display: none; }
    .nav-toggle { display: flex; }

    /* Mobile menu */
    .nav.open .nav__list {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 18px;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--gray-100);
        gap: 4px;
        max-height: 75vh;
        overflow-y: auto;
    }
    .nav.open .nav__cta { display: inline-flex; margin: 14px 18px 18px; }
    .nav.open {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        gap: 0;
        align-items: stretch;
    }
    .nav__item--dropdown .nav__dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: 0;
        padding-left: 18px;
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--t-base);
    }
    .nav__item--dropdown.expanded .nav__dropdown { max-height: 500px; }

    .section { padding: 80px 0; }
    .section__head { margin-bottom: 44px; }
    .top-bar__left { gap: 12px; font-size: 12px; }
    .top-bar__left span:last-child { display: none; }

    .hero { padding: 60px 0 90px; min-height: auto; }
    .hero__stats { grid-template-columns: repeat(3, 1fr); gap: 14px; }
    .hero__title { font-size: 38px; }

    .header__inner { min-height: 72px; padding: 8px 18px; }
    .logo__img { height: 62px; }
    .header.scrolled .logo__img { height: 54px; }
    .footer__logo { height: 76px; }

    .footer__top { grid-template-columns: 1fr; gap: 36px; padding-bottom: 40px; }
    .footer__bottom { flex-direction: column; text-align: center; }

    .testimonial { padding: 36px 28px; }
    .testimonial p { font-size: 16px; }

    .cta-form__row { grid-template-columns: 1fr; }
    .cta-form { padding: 22px; }
}

@media (max-width: 560px) {
    .container { padding: 0 18px; }
    .top-bar { padding: 7px 0; }
    .top-bar__inner { justify-content: center; }
    .top-bar__right { display: none; }
    .hero__title { font-size: 32px; }

    .header__inner { min-height: 64px; padding: 6px 14px; }
    .logo__img { height: 54px; }
    .header.scrolled .logo__img { height: 46px; }
    .hero__actions { flex-direction: column; }
    .hero__actions .btn { width: 100%; }
    .hero__stats { grid-template-columns: 1fr; }
    .stat { border-left: 0; border-top: 2px solid rgba(65,182,255,0.4); padding-left: 0; padding-top: 12px; }

    .dashboard-mock { padding: 16px; transform: none !important; animation: none; }
    .dashboard-mock__body { grid-template-columns: 1fr; }
    .dash-card--big, .dash-card--wide { grid-column: span 1; grid-row: span 1; }

    .section__head h2 { font-size: 28px; }
    .testimonial__quote { display: none; }
    .testimonial { padding: 30px 24px; }
}

/* =================================================================
   ACCESSIBILITY
   ================================================================= */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--blue-200); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue-400); }

::selection { background: var(--blue-300); color: var(--white); }

/* =================================================================
   ====== 3D EFFECTS & PARALLAX SUITE ===============================
   ================================================================= */

/* ============ 3D Tilt base ============ */
[data-tilt] {
    transform-style: preserve-3d;
    will-change: transform;
    transition: transform .25s cubic-bezier(.2,.8,.2,1);
}
[data-tilt] > * { transform-style: preserve-3d; }
[data-tilt-depth-1] { transform: translateZ(20px); }
[data-tilt-depth-2] { transform: translateZ(40px); }
[data-tilt-depth-3] { transform: translateZ(60px); }

/* ============ Floating shapes (hero) ============ */
.floating-shape {
    position: absolute;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(4,150,255,0.20), rgba(0,168,232,0.10));
    border: 1px solid rgba(185, 224, 255, 0.18);
    backdrop-filter: blur(8px);
    z-index: -1;
    transform-style: preserve-3d;
}
.floating-shape--1 {
    width: 90px; height: 90px;
    top: -30px; right: -20px;
    animation: shapeFloat 8s ease-in-out infinite;
}
.floating-shape--2 {
    width: 60px; height: 60px;
    bottom: -25px; left: -25px;
    border-radius: 50%;
    animation: shapeFloat 10s ease-in-out infinite reverse;
}
.floating-shape--3 {
    width: 120px; height: 28px;
    top: 40%; right: -55px;
    border-radius: 999px;
    animation: shapeFloat 12s ease-in-out infinite;
    animation-delay: -3s;
}
@keyframes shapeFloat {
    0%, 100% { transform: translate(0,0) rotate(0); }
    33%      { transform: translate(15px, -20px) rotate(8deg); }
    66%      { transform: translate(-10px, 15px) rotate(-6deg); }
}

/* ============ Stat text alternate ============ */
.stat__text {
    font-family: var(--font-display);
    font-size: clamp(22px, 2.6vw, 32px);
    font-weight: 800;
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.02em;
}

/* ============ Parallax background (orbs / layers) ============ */
.parallax-bg {
    position: absolute;
    inset: -10% 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 15% 30%, rgba(4, 150, 255, 0.12), transparent 45%),
        radial-gradient(circle at 85% 70%, rgba(0, 168, 232, 0.10), transparent 50%);
    will-change: transform;
    z-index: 0;
}
.parallax-orbs {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    will-change: transform;
}
.orb--1 {
    width: 320px; height: 320px;
    background: rgba(4, 150, 255, 0.28);
    top: 10%; left: -100px;
}
.orb--2 {
    width: 250px; height: 250px;
    background: rgba(0, 168, 232, 0.22);
    bottom: 5%; right: -80px;
}
.orb--3 {
    width: 180px; height: 180px;
    background: rgba(65, 182, 255, 0.18);
    top: 50%; left: 55%;
}

/* =================================================================
   PLATFORMS GRID (SCADA / MES / IIoT / BMS)
   ================================================================= */
.platforms { position: relative; overflow: hidden; }
.platforms > .container { position: relative; z-index: 2; }

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 22px;
    perspective: 1500px;
}
.platform-card {
    position: relative;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 36px 28px 32px;
    overflow: hidden;
    transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, border-color .35s;
    transform-style: preserve-3d;
    cursor: pointer;
}
.platform-card::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 4px;
    background: var(--grad-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.platform-card__glow {
    position: absolute;
    top: -40%; left: -40%;
    width: 220px; height: 220px;
    background: radial-gradient(circle, rgba(4, 150, 255, 0.35) 0%, transparent 65%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity .5s ease;
    pointer-events: none;
    filter: blur(20px);
}
.platform-card:hover {
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}
.platform-card:hover::before { transform: scaleX(1); }
.platform-card:hover .platform-card__glow { opacity: 1; animation: glowMove 4s linear infinite; }
@keyframes glowMove {
    0%   { transform: translate(0, 0); }
    25%  { transform: translate(200px, 50px); }
    50%  { transform: translate(280px, 250px); }
    75%  { transform: translate(50px, 220px); }
    100% { transform: translate(0, 0); }
}

.platform-card__icon {
    width: 68px; height: 68px;
    display: flex; align-items: center; justify-content: center;
    background: var(--grad-primary);
    color: var(--white);
    border-radius: var(--radius-md);
    font-size: 28px;
    margin-bottom: 22px;
    box-shadow: 0 12px 30px rgba(4, 150, 255, 0.35);
    transform: translateZ(40px);
    transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.platform-card:hover .platform-card__icon {
    transform: translateZ(60px) scale(1.08) rotate(-5deg);
}

.platform-card h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 6px;
    transform: translateZ(30px);
}
.platform-card__tag {
    font-size: 13px;
    font-weight: 600;
    color: var(--blue-500);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 16px;
    transform: translateZ(20px);
}
.platform-card__desc {
    color: var(--text-soft);
    font-size: 14.5px;
    line-height: 1.65;
    margin-bottom: 20px;
    transform: translateZ(10px);
}
.platform-card__arrow {
    display: inline-flex;
    align-items: center; justify-content: center;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--blue-50);
    color: var(--blue-500);
    transform: translateZ(20px);
    transition: all .35s;
}
.platform-card:hover .platform-card__arrow {
    background: var(--blue-400);
    color: var(--white);
    transform: translateZ(30px) translateX(6px);
}

/* =================================================================
   SECTION PROBLEM
   ================================================================= */
.section--problem {
    background: linear-gradient(180deg, var(--blue-50) 0%, var(--white) 100%);
    position: relative;
    overflow: hidden;
}
.section--problem > .container { position: relative; z-index: 2; }

.problem-wrap {
    display: grid;
    grid-template-columns: 0.95fr 1fr;
    gap: 60px;
    align-items: start;
}

.problem-intro { position: sticky; top: 120px; }
.problem-intro h2 {
    font-size: clamp(28px, 3.5vw, 42px);
    margin-bottom: 18px;
    line-height: 1.2;
}
.problem-intro p {
    color: var(--text-soft);
    font-size: 16.5px;
    line-height: 1.7;
}
.problem-decoration {
    margin-top: 36px;
    position: relative;
    height: 90px;
}
.connector-line {
    position: absolute;
    top: 50%;
    left: 0; right: 30%;
    height: 2px;
    background: linear-gradient(90deg, var(--blue-400), transparent);
    transform: translateY(-50%);
}
.connector-line::before,
.connector-line::after {
    content: '';
    position: absolute;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--blue-400);
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 14px var(--blue-400);
}
.connector-line::before { left: 0; }
.connector-line::after { right: 0; }
.node-pulse {
    position: absolute;
    right: 30%;
    top: 50%;
    transform: translate(50%, -50%);
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--blue-400);
    animation: nodePulse 2.5s ease-in-out infinite;
}
@keyframes nodePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(4, 150, 255, 0.6); transform: translate(50%, -50%) scale(1); }
    50%      { box-shadow: 0 0 0 18px rgba(4, 150, 255, 0); transform: translate(50%, -50%) scale(1.2); }
}

.problem-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    perspective: 1200px;
}
.problem-item {
    display: flex;
    gap: 18px;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-md);
    padding: 22px 24px;
    align-items: flex-start;
    transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, border-color .35s;
    transform-style: preserve-3d;
}
.problem-item:hover {
    border-color: var(--blue-200);
    box-shadow: var(--shadow-lg);
}
.problem-item__icon {
    width: 48px; height: 48px;
    background: var(--blue-50);
    color: var(--blue-500);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    transform: translateZ(20px);
    transition: all .35s;
}
.problem-item:hover .problem-item__icon {
    background: var(--grad-primary);
    color: var(--white);
    transform: translateZ(30px) rotate(-8deg);
}
.problem-item h3 {
    font-size: 17px;
    margin-bottom: 4px;
    transform: translateZ(15px);
}
.problem-item p {
    color: var(--text-soft);
    font-size: 14.5px;
    line-height: 1.55;
    transform: translateZ(10px);
}

/* =================================================================
   PILLARS (Propuesta de Valor)
   ================================================================= */
.section--pillars { background: var(--blue-50); position: relative; overflow: hidden; }

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
    perspective: 1500px;
}
.pillar {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 30px 32px;
    border: 1px solid var(--gray-100);
    transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, border-color .35s;
    overflow: hidden;
    transform-style: preserve-3d;
}
.pillar::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 100%;
    background: var(--grad-dark);
    transform: translateY(101%);
    transition: transform .5s cubic-bezier(.2,.8,.2,1);
    z-index: 0;
}
.pillar > * { position: relative; z-index: 1; }
.pillar:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}
.pillar:hover::before { transform: translateY(0); }
.pillar:hover h3 { color: var(--white); }
.pillar:hover p { color: var(--blue-100); }
.pillar:hover p strong { color: var(--white); }
.pillar:hover .pillar__num { color: rgba(185, 224, 255, 0.15); }
.pillar:hover .pillar__icon {
    background: rgba(255,255,255,0.10);
    color: var(--white);
    border-color: rgba(185, 224, 255, 0.30);
}

.pillar__num {
    position: absolute;
    top: 14px; right: 22px;
    font-family: var(--font-display);
    font-size: 70px;
    font-weight: 800;
    color: var(--blue-50);
    line-height: 1;
    z-index: 0;
    transition: color .5s;
}
.pillar__icon {
    width: 60px; height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blue-50);
    color: var(--blue-500);
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    font-size: 24px;
    margin-bottom: 22px;
    transform: translateZ(40px);
    transition: all .5s;
}
.pillar h3 {
    font-size: 19px;
    margin-bottom: 12px;
    transition: color .5s;
    transform: translateZ(20px);
}
.pillar p {
    color: var(--text-soft);
    font-size: 14.5px;
    line-height: 1.65;
    transition: color .5s;
    transform: translateZ(10px);
}
.pillar p strong { color: var(--blue-900); transition: color .5s; }

/* =================================================================
   CTA · contact card + form layout
   ================================================================= */
.cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    text-align: left;
    perspective: 2000px;
}
.cta-text h2 { color: var(--white); font-size: clamp(28px, 3.4vw, 42px); margin-bottom: 18px; line-height: 1.2; }
.cta-text > p { color: var(--blue-100); font-size: 16px; margin-bottom: 28px; }

.contact-card {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(185, 224, 255, 0.18);
    border-radius: var(--radius-lg);
    padding: 22px;
    display: flex;
    gap: 18px;
    align-items: flex-start;
    transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, border-color .35s;
    transform-style: preserve-3d;
}
.contact-card:hover {
    border-color: rgba(65, 182, 255, 0.35);
    box-shadow: 0 18px 50px rgba(4, 150, 255, 0.20);
}
.contact-card__avatar {
    width: 60px; height: 60px;
    border-radius: 50%;
    background: var(--grad-primary);
    color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 10px 25px rgba(4, 150, 255, 0.4);
    transform: translateZ(30px);
}
.contact-card__info { flex: 1; min-width: 0; }
.contact-card__role {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--blue-300);
    font-weight: 700;
    display: block;
}
.contact-card__info strong {
    display: block;
    color: var(--white);
    font-size: 17px;
    margin-top: 4px;
    transform: translateZ(20px);
}
.contact-card__title {
    color: var(--blue-100);
    font-size: 13.5px;
    display: block;
    margin-bottom: 12px;
}
.contact-card__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.contact-card__links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--blue-100);
    background: rgba(65, 182, 255, 0.12);
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(65, 182, 255, 0.20);
    transition: all .25s;
}
.contact-card__links a:hover {
    background: var(--blue-400);
    color: var(--white);
    border-color: var(--blue-400);
    transform: translateY(-2px);
}

.cta-form__title {
    color: var(--white);
    font-size: 22px;
    margin-bottom: 20px;
    text-align: center;
}

/* ============ Footer contact extra ============ */
.footer__contact-name {
    padding-bottom: 8px;
    margin-bottom: 4px;
    border-bottom: 1px solid rgba(185, 224, 255, 0.10);
}
.footer__contact-name strong { color: var(--white); font-size: 15px; }
.footer__contact-name span { color: var(--blue-300); font-size: 12.5px; }
.footer__col--contact a { color: var(--blue-100); transition: color .2s; }
.footer__col--contact a:hover { color: var(--blue-300); }

/* ============ WhatsApp tooltip ============ */
.whatsapp-float__tip {
    position: absolute;
    right: calc(100% + 14px);
    top: 50%;
    background: var(--white);
    color: var(--blue-900);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 999px;
    box-shadow: var(--shadow-md);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-50%) translateX(10px);
    transition: opacity .3s ease, transform .3s ease, visibility .3s;
    pointer-events: none;
}
.whatsapp-float__tip::after {
    content: '';
    position: absolute;
    right: -4px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background: var(--white);
    border-radius: 2px;
    z-index: -1;
}
.whatsapp-float:hover .whatsapp-float__tip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}
/* Hide tooltip on touch devices and narrow screens */
@media (max-width: 640px), (hover: none) {
    .whatsapp-float__tip { display: none; }
}
@media (max-width: 560px) {
    .whatsapp-float {
        width: 54px;
        height: 54px;
        bottom: 18px;
        right: 18px;
    }
    .whatsapp-float i { font-size: 28px; }
}

/* ============ Hide on small ============ */
@media (max-width: 1100px) { .hide-md { display: none !important; } }

/* =================================================================
   RESPONSIVE OVERRIDES FOR NEW SECTIONS
   ================================================================= */
@media (max-width: 1080px) {
    .problem-wrap { grid-template-columns: 1fr; gap: 40px; }
    .problem-intro { position: static; }
    .cta-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 880px) {
    .platform-card { padding: 28px 22px; }
    .pillar { padding: 32px 24px 26px; }
    .pillar__num { font-size: 56px; top: 10px; right: 18px; }
    .floating-shape { display: none; }
    [data-tilt] { transform: none !important; }
}

/* =================================================================
   ====== PRELOADER · 3D LOGO INTRO ================================
   ================================================================= */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 36px;
    background: radial-gradient(ellipse at center, #061A40 0%, #030C1F 70%, #000408 100%);
    overflow: hidden;
    transition: opacity .8s ease, visibility .8s ease;
    perspective: 1500px;
}
.preloader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Subtle grid pattern background */
.preloader::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(65, 182, 255, 0.10) 1px, transparent 1px),
        linear-gradient(90deg, rgba(65, 182, 255, 0.10) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at center, #000 25%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 25%, transparent 75%);
    opacity: 0.5;
    animation: gridMove 8s linear infinite;
}
@keyframes gridMove {
    from { background-position: 0 0; }
    to   { background-position: 50px 50px; }
}

/* Scene wrapper holds the 3D elements */
.preloader__scene {
    position: relative;
    width: 320px;
    height: 320px;
    transform-style: preserve-3d;
    animation: sceneIn 1.2s cubic-bezier(.2,.8,.2,1) forwards;
}
@keyframes sceneIn {
    from { opacity: 0; transform: scale(0.7) rotateX(-30deg); }
    to   { opacity: 1; transform: scale(1)   rotateX(0); }
}

/* Background glow behind the logo */
.preloader__glow {
    position: absolute;
    inset: 10%;
    background: radial-gradient(circle, rgba(4, 150, 255, 0.45) 0%, transparent 65%);
    filter: blur(40px);
    animation: glowPulse 3s ease-in-out infinite;
    z-index: 0;
}
@keyframes glowPulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50%      { opacity: 0.9; transform: scale(1.15); }
}

/* The 3 rotating orbital rings */
.preloader__orbit {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1.5px solid rgba(65, 182, 255, 0.35);
    transform-style: preserve-3d;
    box-shadow: 0 0 30px rgba(4, 150, 255, 0.15) inset;
}
.preloader__orbit::before,
.preloader__orbit::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--blue-300);
    box-shadow: 0 0 14px var(--blue-300), 0 0 28px rgba(0, 168, 232, 0.6);
}
.preloader__orbit--1 {
    animation: orbitX 4s linear infinite;
}
.preloader__orbit--1::before { top: -7px; left: 50%; transform: translateX(-50%); }
.preloader__orbit--1::after  { bottom: -7px; left: 50%; transform: translateX(-50%); background: var(--blue-400); }

.preloader__orbit--2 {
    transform: rotateY(60deg);
    animation: orbitY 5s linear infinite reverse;
    border-color: rgba(0, 168, 232, 0.40);
}
.preloader__orbit--2::before { top: 50%; left: -7px; transform: translateY(-50%); background: var(--blue-200); }
.preloader__orbit--2::after  { top: 50%; right: -7px; transform: translateY(-50%); }

.preloader__orbit--3 {
    transform: rotateX(60deg) rotateZ(20deg);
    animation: orbitZ 6s linear infinite;
    border-color: rgba(4, 150, 255, 0.30);
}
.preloader__orbit--3::before { top: 20%; right: 5%; background: var(--blue-100); width: 10px; height: 10px; }
.preloader__orbit--3::after  { bottom: 20%; left: 5%; width: 10px; height: 10px; }

@keyframes orbitX { from { transform: rotateY(0); }   to { transform: rotateY(360deg); } }
@keyframes orbitY { from { transform: rotateY(60deg); }   to { transform: rotateY(420deg); } }
@keyframes orbitZ { from { transform: rotateX(60deg) rotateZ(0); } to { transform: rotateX(60deg) rotateZ(360deg); } }

/* Floating nodes */
.preloader__nodes {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
}
.p-node {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--blue-300);
    box-shadow: 0 0 14px var(--blue-300);
    opacity: 0;
    animation: nodeAppear .6s ease forwards, nodeFloat 4s ease-in-out infinite;
}
.p-node--1 { top: 5%;  left: 50%; animation-delay: .4s, 1.2s; }
.p-node--2 { top: 25%; right: 8%; background: var(--blue-200); animation-delay: .55s, 1.4s; }
.p-node--3 { bottom: 30%; right: 0%; background: var(--blue-400); animation-delay: .7s, 1.6s; }
.p-node--4 { bottom: 8%; left: 50%; background: var(--blue-200); animation-delay: .85s, 1.8s; }
.p-node--5 { bottom: 25%; left: 5%; background: var(--blue-300); animation-delay: 1.0s, 2.0s; }
.p-node--6 { top: 30%; left: 8%; background: var(--blue-700); animation-delay: 1.15s, 2.2s; }

@keyframes nodeAppear {
    from { opacity: 0; transform: scale(0); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes nodeFloat {
    0%, 100% { transform: translate(0, 0); }
    50%      { transform: translate(8px, -10px); }
}

/* The logo with 3D entrance and idle floating */
.preloader__logo-wrap {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transform-style: preserve-3d;
}
.preloader__logo {
    width: 70%;
    height: auto;
    filter: drop-shadow(0 12px 40px rgba(4, 150, 255, 0.55));
    opacity: 0;
    animation: logoEnter 1.4s cubic-bezier(.2,.8,.2,1) .3s forwards, logoIdle 4s ease-in-out 1.7s infinite;
    transform-origin: center center;
}
@keyframes logoEnter {
    0%   { opacity: 0; transform: rotateY(180deg) scale(0.4); filter: drop-shadow(0 0 0 transparent) blur(8px); }
    60%  { opacity: 1; transform: rotateY(0)      scale(1.05); filter: drop-shadow(0 12px 40px rgba(4, 150, 255, 0.55)) blur(0); }
    100% { opacity: 1; transform: rotateY(0)      scale(1); }
}
@keyframes logoIdle {
    0%, 100% { transform: rotateY(0)    translateY(0)    rotateZ(0); }
    25%      { transform: rotateY(-6deg) translateY(-6px) rotateZ(-1deg); }
    75%      { transform: rotateY(6deg)  translateY(-2px) rotateZ(1deg); }
}

/* Bottom text with progress bar */
.preloader__text {
    position: relative;
    z-index: 10;
    text-align: center;
    opacity: 0;
    animation: textFade 1s ease 1s forwards;
    width: min(90vw, 320px);
}
@keyframes textFade {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.preloader__tagline {
    display: block;
    font-family: var(--font-display);
    font-size: 13px;
    letter-spacing: 0.20em;
    text-transform: uppercase;
    color: var(--blue-100);
    font-weight: 600;
    margin-bottom: 14px;
}
.preloader__bar {
    height: 2px;
    background: rgba(185, 224, 255, 0.18);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}
.preloader__bar span {
    position: absolute;
    inset: 0;
    background: var(--grad-text);
    border-radius: 999px;
    animation: barLoad 2.4s cubic-bezier(.4,.0,.2,1) forwards;
    transform-origin: left;
    transform: scaleX(0);
}
@keyframes barLoad {
    0%   { transform: scaleX(0); }
    60%  { transform: scaleX(0.75); }
    100% { transform: scaleX(1); }
}

/* =================================================================
   ====== BACKGROUND DECORATION (logo + particles) =================
   ================================================================= */
.bg-deco {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* Large rotating logo watermark in background */
.bg-deco__logo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80vmin;
    height: 80vmin;
    background-image: url('../assets/images/logo-trans.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.035;
    transform: translate(-50%, -50%);
    animation: bgLogoSpin 80s linear infinite;
    filter: blur(0.5px);
    will-change: transform;
}
@keyframes bgLogoSpin {
    from { transform: translate(-50%, -50%) rotate(0); }
    to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Floating particle network */
.bg-deco__particles {
    position: absolute;
    inset: 0;
}
.bg-particle {
    position: absolute;
    border-radius: 50%;
    background: var(--blue-300);
    opacity: 0.25;
    will-change: transform;
    box-shadow: 0 0 8px var(--blue-300);
}

/* Ensure content stays above bg-deco */
.top-bar,
.header,
main,
section,
footer,
.cta-final,
.whatsapp-float { position: relative; z-index: 1; }
.header { z-index: 999; }
.whatsapp-float { z-index: 998; }

/* Responsive preloader */
@media (max-width: 560px) {
    .preloader__scene { width: 240px; height: 240px; }
    .preloader__tagline { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
    .preloader__scene,
    .preloader__orbit,
    .preloader__logo,
    .preloader__glow,
    .p-node,
    .bg-deco__logo {
        animation: none !important;
    }
    .preloader__logo { opacity: 1; transform: none; }
    .preloader__bar span { transform: scaleX(1); }
}

