/* ==========================================================================
   OT SECURITY LATAM — CINEMATIC INDUSTRIAL / SCADA-HMI EDITION
   Comunidad líder en ciberseguridad industrial de Latinoamérica.
   ========================================================================== */

:root {
    --bg-deep: #04060a;
    --bg-primary: #070b12;

    /* Paleta HMI / SCADA */
    --neon-cyan: #18e0ff;            /* pantalla HMI */
    --neon-cyan-rgb: 24, 224, 255;
    --neon-amber: #ff9e2c;           /* alarma/operación industrial */
    --neon-amber-rgb: 255, 158, 44;
    --neon-green: #25ff9b;           /* estado operativo / online */
    --neon-green-rgb: 37, 255, 155;
    --neon-red: #ff3b5c;             /* alarma crítica */
    --neon-red-rgb: 255, 59, 92;
    --neon-amber-text: #ffb959;      /* ámbar legible sobre fondo oscuro */

    /* Compatibilidad de nombres heredados (mapeados a la paleta OT) */
    --neon-purple: var(--neon-amber);
    --neon-purple-rgb: var(--neon-amber-rgb);
    --neon-purple-text: var(--neon-amber-text);
    --neon-magenta: var(--neon-amber);
    --neon-magenta-rgb: var(--neon-amber-rgb);

    --grad-primary: linear-gradient(135deg, #18e0ff 0%, #1a9bff 100%);
    --grad-accent: linear-gradient(135deg, #18e0ff 0%, #ff9e2c 55%, #ff3b5c 100%);

    --font-title: 'Space Grotesk', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --font-syne: 'Syne', sans-serif;
    --font-retro: 'JetBrains Mono', 'VT323', monospace;

    --glow-cyan: 0 0 4px rgba(var(--neon-cyan-rgb), 0.3);
    --glow-amber: 0 0 4px rgba(var(--neon-amber-rgb), 0.3);
    --glow-green: 0 0 4px rgba(var(--neon-green-rgb), 0.3);

    --transition-smooth: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; min-width: 0; }
img, svg, video { max-width: 100%; }

html { scroll-behavior: auto; scrollbar-width: none; }
::-webkit-scrollbar { display: none; }

html, body { width: 100%; max-width: 100%; overflow-x: hidden; }
body {
    font-family: var(--font-body);
    background-color: var(--bg-deep);
    color: #ffffff;
    overflow-wrap: break-word;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at center, transparent 14%, rgba(4,6,10, 0.95) 100%);
    z-index: -1; pointer-events: none;
}

h1, h2, h3, h4 { font-family: var(--font-title); color: #ffffff; font-weight: 700; }
p { font-size: 1.05rem; color: #ffffff; line-height: 1.6; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 2rem; }
.section-padding { padding: 8rem 0; }
.relative { position: relative; }
.text-cyan { color: var(--neon-cyan); }
.text-amber, .text-purple { color: var(--neon-amber-text); }
.text-green { color: var(--neon-green); }
.text-red { color: var(--neon-red); }

.text-center { text-align: center; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.max-w-2xl { max-width: 42rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* CINEMATIC GRAIN */
.grain-overlay {
    position: fixed; inset: 0;
    pointer-events: none; z-index: 9999; opacity: 0.05;
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="noiseFilter"><feTurbulence type="fractalNoise" baseFrequency="0.75" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noiseFilter)"/></svg>');
}

/* ==========================================================================
   REJILLA INDUSTRIAL EN PERSPECTIVA + SCANLINES HMI
   ========================================================================== */
.retro-grid {
    position: fixed; left: 0; bottom: 0; width: 100%; height: 42vh;
    z-index: -1; pointer-events: none; overflow: hidden; perspective: 280px; opacity: 0.45;
    -webkit-mask-image: linear-gradient(to top, #000 8%, transparent 92%);
    mask-image: linear-gradient(to top, #000 8%, transparent 92%);
}
.retro-grid::before {
    content: ''; position: absolute; left: -50%; right: -50%; top: 0; bottom: -2px;
    background-image:
        linear-gradient(rgba(var(--neon-cyan-rgb), 0.4) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--neon-amber-rgb), 0.32) 1px, transparent 1px);
    background-size: 46px 46px;
    transform: rotateX(74deg); transform-origin: center top;
    animation: grid-scroll 5s linear infinite;
}
@keyframes grid-scroll { from { background-position: 0 0; } to { background-position: 0 46px; } }

.crt-overlay {
    position: fixed; inset: 0; z-index: 9998; pointer-events: none; opacity: 0.4;
    background: repeating-linear-gradient(to bottom,
        rgba(0,0,0,0) 0px, rgba(0,0,0,0) 2px, rgba(0,0,0,0.10) 3px, rgba(0,0,0,0) 4px);
}
.crt-overlay::after {
    content: ''; position: absolute; left: 0; right: 0; height: 26%; top: -26%;
    background: linear-gradient(to bottom, transparent, rgba(var(--neon-cyan-rgb), 0.06), transparent);
    animation: crt-sweep 8s linear infinite;
}
@keyframes crt-sweep { to { top: 100%; } }

/* 3D WEBGL CANVAS */
#webgl-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; }

.home-aurora { display: none; }
@media (max-width: 767px) {
    #webgl-canvas { display: none !important; }
    .home-aurora { display: block; }
}
@media (prefers-reduced-motion: reduce) {
    #webgl-canvas { display: none !important; }
    .home-aurora { display: block; }
}

/* CURSOR HMI */
.custom-cursor {
    width: 6px; height: 6px; background-color: var(--neon-cyan);
    border-radius: 50%; position: fixed; transform: translate(-50%, -50%);
    pointer-events: none; z-index: 10000; transition: width 0.2s, height 0.2s;
    box-shadow: 0 0 4px var(--neon-cyan), 0 0 8px var(--neon-cyan);
}
.custom-cursor-glow {
    width: 30px; height: 30px; border: 1px solid rgba(var(--neon-cyan-rgb), 0.5);
    border-radius: 50%; position: fixed; transform: translate(-50%, -50%);
    pointer-events: none; z-index: 9998; transition: width 0.3s, height 0.3s;
}
@media (pointer: coarse) { .custom-cursor, .custom-cursor-glow { display: none; } }

/* TILT CARDS (glassmorphism) */
.tilt-card {
    background: rgba(4, 6, 12, 0.98);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.13);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255,255,255,0.05);
    border-radius: 16px; padding: 2.5rem; position: relative; overflow: hidden;
    transform-style: preserve-3d;
    transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform 0.1s linear, box-shadow 0.3s ease, border-color 0.3s;
    will-change: transform;
}
.tilt-card:hover {
    box-shadow: 0 30px 60px rgba(24, 224, 255, 0.15), inset 0 0 0 1px rgba(24, 224, 255, 0.4);
    border-color: rgba(var(--neon-cyan-rgb), 0.9); z-index: 10;
}
.card-glare {
    position: absolute; inset: 0;
    background: radial-gradient(circle at var(--px, 50%) var(--py, 50%), rgba(255,255,255,0.15) 0%, transparent 60%);
    opacity: 0; pointer-events: none; transition: opacity 0.3s ease; z-index: 5; mix-blend-mode: color-dodge;
}
.tilt-card:hover .card-glare { opacity: 1; }

/* BUTTONS */
.btn {
    display: inline-flex; align-items: center; gap: 0.75rem;
    padding: 0.85rem 1.8rem; border-radius: 30px; font-family: var(--font-title);
    font-size: 0.95rem; font-weight: 600; text-decoration: none; cursor: pointer;
    position: relative; overflow: hidden; z-index: 1;
}
.magnetic-btn, .magnetic-elem {
    display: inline-flex; transform: translate(var(--mx, 0px), var(--my, 0px));
    transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1); will-change: transform;
}
.btn-primary { background: var(--grad-primary); color: var(--bg-deep); border: none; }
.btn-glow:hover { box-shadow: 0 0 30px rgba(24, 224, 255, 0.7); }
.btn-secondary { background: rgba(255,255,255,0.05); color: #fff; border: 1px solid rgba(255,255,255,0.15); backdrop-filter: blur(5px); }
.btn-secondary:hover { background: rgba(255,255,255,0.15); border-color: rgba(var(--neon-cyan-rgb), 0.7); box-shadow: 0 0 20px rgba(var(--neon-cyan-rgb), 0.5); }
.btn-neon { background: transparent; color: var(--neon-cyan); border: 1px solid rgba(var(--neon-cyan-rgb), 0.4); }
.btn-neon:hover { background: rgba(var(--neon-cyan-rgb), 0.1); box-shadow: 0 0 20px rgba(var(--neon-cyan-rgb), 0.6); }
.btn-youtube { background: #ff0033; color: #fff; border: none; }
.btn-youtube:hover { box-shadow: 0 0 28px rgba(255, 0, 51, 0.6); }
.btn-text { color: var(--neon-cyan); text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: 0.5rem; transition: var(--transition-smooth); }
.btn-text:hover { color: var(--neon-amber-text); filter: drop-shadow(0 0 8px rgba(var(--neon-amber-rgb),0.4)); }
.btn-text:hover i { transform: translateX(6px); }

/* HEADER */
.header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; transition: var(--transition-smooth); border-bottom: 1px solid transparent; }
.header-scrolled { background: rgba(4, 6, 12, 0.9); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px); border-bottom: 1px solid rgba(255,255,255,0.05); padding: 0.5rem 0; }
.header-container { max-width: 1280px; margin: 0 auto; padding: 1.25rem 2rem; display: flex; align-items: center; justify-content: space-between; }
.logo { font-family: var(--font-syne); font-size: 1.5rem; font-weight: 800; color: #fff; text-decoration: none; display: flex; align-items: center; gap: 0.65rem; }
.logo-accent { background: var(--grad-accent); -webkit-background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 0 15px rgba(var(--neon-amber-rgb), 0.45)); }

.nav-list { display: flex; list-style: none; gap: 2.2rem; }
.nav-link { color: #ffffff; text-decoration: none; font-family: var(--font-title); font-weight: 500; position: relative; padding: 0.5rem 0; transition: color 0.3s ease; }
.nav-link::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--grad-primary); transition: width 0.3s ease; box-shadow: var(--glow-cyan); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link:focus-visible { outline: 2px solid var(--neon-cyan); outline-offset: 2px; }

.mobile-nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 6px; width: 30px; }
.mobile-nav-toggle .bar { width: 100%; height: 2px; background-color: #fff; transition: var(--transition-smooth); }

/* HERO */
.hero-section { min-height: 100vh; display: flex; align-items: center; position: relative; padding-top: 100px; }
.hero-container { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 3rem; }
.hero-feed { display: flex; align-items: center; justify-content: center; width: 100%; min-width: 0; }
.hero-feed .feed-terminal { width: 100%; max-width: 480px; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.5rem 1rem; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.15); border-radius: 30px; margin-bottom: 2rem; }
.badge-dot { width: 6px; height: 6px; background-color: var(--neon-green); border-radius: 50%; box-shadow: var(--glow-green); animation: pulse 2s infinite; }
.badge-text { font-family: var(--font-title); font-size: 0.74rem; font-weight: 600; letter-spacing: 1.4px; color: #fff; }

.hero-title {
    font-family: var(--font-syne); font-size: clamp(2.5rem, 5.2vw, 4.8rem); font-weight: 800;
    line-height: 1.08; margin-bottom: 1.5rem; letter-spacing: -1.5px;
    overflow-wrap: normal; word-break: keep-all;
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.7));
}
.gradient-text { background: var(--grad-accent); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-description { font-size: 1.18rem; color: #e6f3ff; max-width: 600px; margin-bottom: 2.5rem; font-weight: 400; text-shadow: 0 2px 6px rgba(0,0,0,0.9); }
.hero-actions-container { display: flex; gap: 1.5rem; flex-wrap: wrap; }

.scroll-down { position: absolute; bottom: 3rem; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 0.5rem; opacity: 0.6; transition: opacity 0.3s; }
.scroll-down:hover { opacity: 1; }
.scroll-text { font-family: var(--font-title); font-size: 0.75rem; letter-spacing: 1px; color: #cbd5e1; text-transform: uppercase; }
.scroll-mouse { width: 20px; height: 32px; border: 2px solid #cbd5e1; border-radius: 12px; display: flex; justify-content: center; padding-top: 6px; }
.scroll-wheel { width: 4px; height: 8px; background-color: var(--neon-cyan); border-radius: 2px; animation: scroll-wheel-anim 1.6s infinite; box-shadow: var(--glow-cyan); }

/* SECTION HEADERS + PILARES */
.section-header { text-align: center; margin-bottom: 5rem; }
.section-title { font-family: var(--font-syne); font-size: clamp(2rem, 3.5vw, 3.5rem); font-weight: 800; margin-bottom: 1rem; letter-spacing: -1px; text-shadow: 0 4px 10px rgba(0,0,0,0.8); }
.step-icon { color: var(--neon-cyan); font-size: 0.8em; margin-right: 0.4rem; text-shadow: var(--glow-cyan); }
.section-subtitle { font-size: 1.15rem; max-width: 640px; margin: 0 auto; font-weight: 400; color: #e2e8f0; }
.pilares-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }

.pilar-card h3 { font-size: 1.4rem; margin-bottom: 1rem; transform: translateZ(30px); }
.pilar-card p { font-size: 1rem; margin-bottom: 1.5rem; transform: translateZ(20px); color: #cbd5e1; }
.pilar-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; transform: translateZ(25px); }
.pilar-list li { display: flex; align-items: center; gap: 0.75rem; font-size: 0.95rem; font-weight: 500; color: #fff; }

.pilar-icon-wrapper { position: relative; width: 64px; height: 64px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.2); border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.75rem; margin-bottom: 2rem; transform: translateZ(40px); transition: var(--transition-smooth); }
.pilar-card:hover .pilar-icon-wrapper { border-color: rgba(var(--neon-cyan-rgb), 0.6); box-shadow: inset 0 0 20px rgba(var(--neon-cyan-rgb), 0.3); }
.icon-glow { position: absolute; width: 100%; height: 100%; border-radius: 16px; filter: blur(15px); opacity: 0; transition: opacity 0.4s; }
.pilar-card:hover .icon-glow { opacity: 0.4; }
.icon-glow.cyan { background-color: var(--neon-cyan); }
.icon-glow.amber { background-color: var(--neon-amber); }
.icon-glow.green { background-color: var(--neon-green); }

/* ==========================================================================
   MODELO PURDUE — NIVELES DE DEFENSA OT
   ========================================================================== */
.purdue { max-width: 980px; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }
.purdue-zone-label { font-family: var(--font-title); font-size: 0.72rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #7c8aa3; margin: 1.5rem 0 0.25rem 0.25rem; }
.purdue-zone-label:first-child { margin-top: 0; }
.purdue-level {
    display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.5rem;
    padding: 1.3rem 1.75rem; border-radius: 14px;
    background: rgba(7, 11, 18, 0.7); border: 1px solid rgba(255,255,255,0.08);
    border-left: 3px solid var(--lvl, var(--neon-cyan));
    transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), background 0.35s, box-shadow 0.35s, border-color 0.35s;
}
.purdue-level:hover { transform: translateX(8px); background: rgba(7, 11, 18, 0.95); box-shadow: -6px 0 30px rgba(var(--lvl-rgb, var(--neon-cyan-rgb)), 0.16); }
.purdue-num {
    font-family: var(--font-syne); font-size: 1.6rem; font-weight: 800; line-height: 1;
    width: 56px; height: 56px; flex-shrink: 0; border-radius: 12px; display: flex; align-items: center; justify-content: center;
    color: var(--lvl, var(--neon-cyan)); background: rgba(var(--lvl-rgb, var(--neon-cyan-rgb)), 0.08);
    border: 1px solid rgba(var(--lvl-rgb, var(--neon-cyan-rgb)), 0.35);
    box-shadow: inset 0 0 18px rgba(var(--lvl-rgb, var(--neon-cyan-rgb)), 0.18);
}
.purdue-body h3 { font-family: var(--font-title); font-size: 1.12rem; margin-bottom: 0.25rem; color: #fff; }
.purdue-body p { font-size: 0.95rem; color: #aab6c8; line-height: 1.5; }
.purdue-tag { font-family: var(--font-retro); font-size: 0.78rem; letter-spacing: 0.5px; color: var(--lvl, var(--neon-cyan)); white-space: nowrap; padding: 0.3rem 0.7rem; border-radius: 20px; border: 1px solid rgba(var(--lvl-rgb, var(--neon-cyan-rgb)), 0.3); background: rgba(var(--lvl-rgb, var(--neon-cyan-rgb)), 0.06); }

.lvl-it    { --lvl: var(--neon-cyan);  --lvl-rgb: var(--neon-cyan-rgb); }
.lvl-dmz   { --lvl: var(--neon-amber); --lvl-rgb: var(--neon-amber-rgb); }
.lvl-ot    { --lvl: var(--neon-green); --lvl-rgb: var(--neon-green-rgb); }
.lvl-phys  { --lvl: var(--neon-red);   --lvl-rgb: var(--neon-red-rgb); }

/* ==========================================================================
   SECTORES DE INFRAESTRUCTURA CRÍTICA
   ========================================================================== */
.sectors-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.sector-card { display: flex; align-items: center; gap: 1.25rem; padding: 1.6rem 1.75rem; border-radius: 14px; background: rgba(7,11,18,0.65); border: 1px solid rgba(255,255,255,0.08); transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s; }
.sector-card:hover { transform: translateY(-6px); border-color: rgba(var(--neon-cyan-rgb), 0.45); box-shadow: 0 18px 40px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(var(--neon-cyan-rgb),0.2); }
.sector-icon { width: 52px; height: 52px; flex-shrink: 0; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: var(--neon-cyan); background: rgba(var(--neon-cyan-rgb), 0.08); border: 1px solid rgba(var(--neon-cyan-rgb), 0.28); }
.sector-card:nth-child(3n+2) .sector-icon { color: var(--neon-amber); background: rgba(var(--neon-amber-rgb),0.08); border-color: rgba(var(--neon-amber-rgb),0.28); }
.sector-card:nth-child(3n) .sector-icon { color: var(--neon-green); background: rgba(var(--neon-green-rgb),0.08); border-color: rgba(var(--neon-green-rgb),0.28); }
.sector-card h3 { font-size: 1.1rem; margin-bottom: 0.2rem; }
.sector-card p { font-size: 0.88rem; color: #93a1b5; line-height: 1.45; }

/* ECOSISTEMA / COUNTER */
.ecosistema-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 4rem; align-items: center; }
.ecosistema-title { font-family: var(--font-syne); font-size: clamp(2rem, 3vw, 3rem); font-weight: 800; line-height: 1.1; letter-spacing: -1px; text-shadow: 0 4px 10px rgba(0,0,0,0.8); }
.ecosistema-desc { font-size: 1.15rem; margin: 1.5rem 0 2.5rem 0; font-weight: 400; color: #e2e8f0; }
.counter-widget { display: flex; align-items: center; gap: 2rem; padding: 2rem; background: rgba(7, 11, 18, 0.85); }
.counter-display { display: flex; align-items: baseline; font-family: var(--font-title); font-weight: 800; color: #fff; transform: translateZ(30px); }
.counter-prefix { font-size: 2.5rem; color: var(--neon-cyan); margin-right: 0.2rem; text-shadow: var(--glow-cyan); }
.counter-number { font-size: 4.5rem; line-height: 1; background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.counter-label { font-size: 1rem; font-weight: 500; transform: translateZ(20px); color: #e2e8f0; }

/* TERMINAL FEED — SOC / OT LIVE LOG */
.feed-terminal { font-family: var(--font-retro); padding: 0; overflow: hidden; background: rgba(4, 6, 12, 0.85); border: 1px solid rgba(255,255,255,0.1); }
.terminal-header { background: rgba(8, 12, 20, 0.95); padding: 0.85rem 1.5rem; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,0.1); transform: translateZ(10px); }
.terminal-dots { display: flex; gap: 8px; }
.terminal-dots .dot { width: 10px; height: 10px; border-radius: 50%; }
.terminal-dots .dot.red { background-color: var(--neon-red); box-shadow: 0 0 10px var(--neon-red); }
.terminal-dots .dot.yellow { background-color: var(--neon-amber); box-shadow: 0 0 10px var(--neon-amber); }
.terminal-dots .dot.green { background-color: var(--neon-green); box-shadow: 0 0 10px var(--neon-green); }
.terminal-title { font-family: var(--font-retro); font-size: 0.92rem; letter-spacing: 0.5px; font-weight: 600; color: var(--neon-cyan); text-shadow: var(--glow-cyan); }
.terminal-status { font-family: var(--font-retro); font-size: 0.82rem; letter-spacing: 1px; font-weight: 600; color: var(--neon-green); animation: blink 1.5s infinite; text-shadow: var(--glow-green); }
.terminal-body { padding: 1.4rem 1.5rem; height: 360px; overflow-y: hidden; display: flex; flex-direction: column; gap: 0.55rem; transform: translateZ(20px); }
.terminal-line { font-size: 0.84rem; line-height: 1.45; letter-spacing: 0.2px; color: #cbd5e1; animation: console-write 0.3s ease-out forwards; }

/* Log SOC/OT */
.log-time { color: #5b6b85; margin-right: 0.45rem; }
.log-ok    { color: var(--neon-green); font-weight: 700; }
.log-info  { color: var(--neon-cyan); font-weight: 600; }
.log-warn  { color: var(--neon-amber-text); font-weight: 700; }
.log-alert { color: var(--neon-red); font-weight: 700; }
.log-asset { color: #e2e8f0; }
.log-proto { color: #8a9bb8; }

/* TIMELINE EVENTOS */
.timeline { position: relative; max-width: 900px; margin: 0 auto; padding: 2rem 0; }
.timeline::before { content: ''; position: absolute; top: 0; bottom: 0; left: 40px; width: 2px; background: linear-gradient(180deg, var(--neon-cyan) 0%, var(--neon-amber) 50%, transparent 100%); box-shadow: var(--glow-cyan); }
.timeline-item { position: relative; padding-left: 80px; margin-bottom: 3.5rem; }
.timeline-marker { position: absolute; left: 31px; top: 30px; width: 20px; height: 20px; border-radius: 50%; background: var(--bg-deep); border: 3px solid var(--neon-cyan); box-shadow: var(--glow-cyan); z-index: 2; transition: transform 0.3s; }
.timeline-marker.amber-glow { border-color: var(--neon-amber); box-shadow: var(--glow-amber); }
.timeline-item:hover .timeline-marker { transform: scale(1.4); background-color: #fff; }
.event-meta { display: flex; gap: 1.5rem; margin-bottom: 0.75rem; font-family: var(--font-title); font-size: 0.9rem; transform: translateZ(20px); color: #cbd5e1; flex-wrap: wrap; }
.timeline-content h3 { font-size: 1.35rem; margin-bottom: 0.85rem; transform: translateZ(30px); }
.timeline-content p { font-size: 1rem; margin-bottom: 1.25rem; transform: translateZ(20px); }
.event-tags { display: flex; gap: 0.6rem; flex-wrap: wrap; transform: translateZ(25px); }
.badge-tag { font-family: var(--font-title); font-size: 0.75rem; font-weight: 600; padding: 0.35rem 0.85rem; border-radius: 20px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.15); color: #fff; }
.badge-tag.cyan { border-color: rgba(var(--neon-cyan-rgb), 0.5); color: var(--neon-cyan); }
.badge-tag.amber { border-color: rgba(var(--neon-amber-rgb), 0.5); color: var(--neon-amber-text); }
.badge-tag.green { border-color: rgba(var(--neon-green-rgb), 0.5); color: var(--neon-green); }

/* CTA FINAL */
.cta-box { padding: 5rem 3rem; border: 1px solid rgba(var(--neon-cyan-rgb), 0.4); box-shadow: 0 30px 80px rgba(24, 224, 255, 0.15); background: rgba(7, 11, 18, 0.85); }
.cta-box h2 { font-family: var(--font-syne); font-size: clamp(2rem, 3.5vw, 3.5rem); margin-bottom: 1rem; transform: translateZ(40px); }
.cta-box p { transform: translateZ(30px); color: #e2e8f0; }
.cta-glow { position: absolute; width: 300px; height: 300px; background-color: var(--neon-amber); border-radius: 50%; filter: blur(120px); opacity: 0.22; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 0; pointer-events: none; }
.cta-buttons { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; transform: translateZ(50px); }

/* FOOTER */
.footer { background-color: rgba(4, 6, 12, 0.98); border-top: 1px solid rgba(255,255,255,0.1); padding: 5rem 0 2rem 0; position: relative; z-index: 2; }
.footer-container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4rem; margin-bottom: 4rem; }
.footer-tagline { font-size: 1rem; max-width: 350px; margin-top: 1rem; color: #cbd5e1; }
.footer-newsletter-col { max-width: 450px; width: 100%; }
.footer-newsletter-col h4 { font-size: 1.15rem; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 2px; }
.newsletter-form .input-group { display: flex; padding: 0.4rem; border-radius: 30px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); }
.newsletter-form input { flex: 1; background: transparent; border: none; outline: none; padding: 0.75rem 1.25rem; color: #fff; font-family: var(--font-body); font-size: 1rem; }
.newsletter-form input::placeholder { color: #64748b; }
.btn-submit { width: 44px; height: 44px; background: var(--grad-primary); border: none; border-radius: 50%; color: var(--bg-deep); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; transition: transform 0.3s, box-shadow 0.3s; }
.btn-submit:hover { box-shadow: var(--glow-cyan); transform: scale(1.1); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 2rem; text-align: center; font-size: 0.9rem; color: #94a3b8; }
.copyright-line { max-width: 640px; margin: 0 auto; line-height: 1.6; }
.copyright-line strong { color: #cbd5e1; }
.copyright-line a { color: var(--neon-cyan); text-decoration: none; border-bottom: 1px solid rgba(var(--neon-cyan-rgb), 0.4); transition: color 0.3s, border-color 0.3s; }
.copyright-line a:hover { color: var(--neon-amber-text); border-color: var(--neon-amber-text); }

.footer-social { display: flex; gap: 1rem; margin-top: 1.5rem; }
.footer-social a { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; color: #cbd5e1; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); transition: var(--transition-smooth); }
.footer-social a:hover { color: var(--neon-cyan); border-color: rgba(var(--neon-cyan-rgb),0.5); transform: translateY(-3px); box-shadow: 0 0 18px rgba(var(--neon-cyan-rgb),0.3); }

/* ANIMACIONES */
@keyframes pulse { 0% { transform: scale(1); opacity: 0.8; } 50% { transform: scale(1.5); opacity: 1; } 100% { transform: scale(1); opacity: 0.8; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.2; } }
@keyframes scroll-wheel-anim { 0% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(6px); opacity: 0.2; } 100% { transform: translateY(0); opacity: 1; } }
@keyframes console-write { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* MOBILE OVERLAY */
.mobile-overlay { position: fixed; inset: 0; background: rgba(3, 5, 9, 0.98); backdrop-filter: blur(20px); z-index: 999; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.4s; }
.mobile-overlay.active { opacity: 1; pointer-events: all; }
.mobile-nav-list { list-style: none; display: flex; flex-direction: column; align-items: center; gap: 2.2rem; }
.mobile-nav-link { font-family: var(--font-syne); font-size: 2rem; font-weight: 800; color: #fff; text-decoration: none; transition: color 0.3s, text-shadow 0.3s; }
.mobile-nav-link:hover { color: var(--neon-cyan); text-shadow: var(--glow-cyan); }

/* STATS BAND */
.stats-band { padding: 2.75rem 0; border-top: 1px solid rgba(255,255,255,0.06); border-bottom: 1px solid rgba(255,255,255,0.06); background: rgba(7,11,18,0.45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); position: relative; z-index: 2; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat { text-align: center; position: relative; padding: 0.5rem 1rem; }
.stat + .stat::before { content: ''; position: absolute; left: 0; top: 15%; height: 70%; width: 1px; background: rgba(255,255,255,0.1); }
.stat-num { display: block; font-family: var(--font-syne); font-size: clamp(2.2rem, 4vw, 3.1rem); font-weight: 800; line-height: 1; background: var(--grad-accent); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-label { display: block; margin-top: 0.55rem; font-size: 0.9rem; color: #94a3b8; font-family: var(--font-title); letter-spacing: 0.3px; }

/* ÚNETE EN 3 PASOS */
.join-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.join-step { text-align: left; padding: 2.5rem 2rem; position: relative; }
.join-num { position: absolute; top: 1.4rem; right: 1.75rem; font-family: var(--font-syne); font-size: 3.5rem; font-weight: 800; line-height: 1; color: rgba(255,255,255,0.06); transform: translateZ(10px); }
.join-icon { width: 60px; height: 60px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; color: var(--neon-cyan); background: rgba(var(--neon-cyan-rgb), 0.08); border: 1px solid rgba(var(--neon-cyan-rgb), 0.3); margin-bottom: 1.5rem; transform: translateZ(40px); transition: var(--transition-smooth); }
.join-step:nth-child(2) .join-icon { color: var(--neon-green); background: rgba(var(--neon-green-rgb), 0.08); border-color: rgba(var(--neon-green-rgb), 0.3); }
.join-step:nth-child(3) .join-icon { color: var(--neon-amber-text); background: rgba(var(--neon-amber-rgb), 0.1); border-color: rgba(var(--neon-amber-rgb), 0.35); }
.join-step:hover .join-icon { transform: translateZ(40px) scale(1.08); }
.join-step h3 { font-size: 1.3rem; margin-bottom: 0.75rem; transform: translateZ(30px); }
.join-step p { font-size: 1rem; color: #cbd5e1; line-height: 1.6; transform: translateZ(20px); }
.join-cta { text-align: center; margin-top: 3rem; }

/* AURORA (móvil / reduced-motion) */
.aurora-bg { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.aurora-bg .orb { position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.28; }
.orb-cyan { width: 45vw; height: 45vw; background: var(--neon-cyan); top: -10vw; left: -8vw; animation: orb-float-a 22s ease-in-out infinite; }
.orb-amber { width: 50vw; height: 50vw; background: var(--neon-amber); bottom: -15vw; right: -10vw; animation: orb-float-b 26s ease-in-out infinite; }
.orb-green { width: 32vw; height: 32vw; background: var(--neon-green); top: 40%; left: 50%; opacity: 0.14; animation: orb-float-c 30s ease-in-out infinite; }
@keyframes orb-float-a { 50% { transform: translate(8vw, 10vh) scale(1.1); } }
@keyframes orb-float-b { 50% { transform: translate(-10vw, -8vh) scale(1.15); } }
@keyframes orb-float-c { 50% { transform: translate(-12vw, 6vh) scale(0.9); } }

/* FOOTER LINKS */
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1rem; }
.footer-links a { color: #cbd5e1; text-decoration: none; font-size: 0.98rem; transition: color 0.3s, padding-left 0.3s; }
.footer-links a:hover { color: var(--neon-cyan); padding-left: 4px; }
.footer-column h4 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: 2px; }

/* LOGO MARK */
.logo-word { display: inline-flex; align-items: center; gap: 0.25rem; line-height: 1; }
.logo-mark {
    width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0; display: block;
    box-shadow: 0 0 0 1px rgba(var(--neon-cyan-rgb), 0.35), 0 0 18px rgba(var(--neon-cyan-rgb), 0.3);
    transition: transform 0.4s cubic-bezier(0.25,0.8,0.25,1), box-shadow 0.4s ease;
}
.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.06); box-shadow: 0 0 0 1px rgba(var(--neon-cyan-rgb), 0.6), 0 0 26px rgba(var(--neon-cyan-rgb), 0.55); }
.logo-mark-lg { width: 56px; height: 56px; }
.footer-logo { gap: 0.8rem; }

/* BADGE "PRÓXIMO" */
.event-soon { display: inline-flex; align-items: center; gap: 0.45rem; font-family: var(--font-title); font-size: 0.68rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--neon-green); background: rgba(var(--neon-green-rgb), 0.12); border: 1px solid rgba(var(--neon-green-rgb), 0.45); padding: 0.28rem 0.75rem; border-radius: 20px; box-shadow: 0 0 14px rgba(var(--neon-green-rgb), 0.25); }
.event-soon::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--neon-green); box-shadow: 0 0 8px var(--neon-green); animation: pulse 2s infinite; }

/* PRELOADER */
.preloader { position: fixed; inset: 0; z-index: 10001; background: var(--bg-deep); display: flex; align-items: center; justify-content: center; transition: opacity 0.7s ease, visibility 0.7s ease; }
.preloader.loaded { opacity: 0; visibility: hidden; }
.preloader-inner { display: flex; flex-direction: column; align-items: center; gap: 1.3rem; width: min(340px, 80vw); }
.preloader-logo { width: 88px; height: 88px; border-radius: 50%; animation: pre-pulse 1.6s ease-in-out infinite; box-shadow: 0 0 0 1px rgba(var(--neon-cyan-rgb), 0.4), 0 0 45px rgba(var(--neon-cyan-rgb), 0.35); }
.preloader-wordmark { font-family: var(--font-syne); font-size: 1.4rem; font-weight: 800; letter-spacing: 1px; color: #fff; }
.preloader-track { width: 100%; height: 3px; border-radius: 3px; background: rgba(255,255,255,0.08); overflow: hidden; }
.preloader-fill { display: block; height: 100%; width: 0%; background: var(--grad-accent); box-shadow: 0 0 12px rgba(var(--neon-cyan-rgb), 0.6); transition: width 0.45s cubic-bezier(0.4,0,0.2,1); }
.preloader-status { font-family: var(--font-retro); font-size: 0.92rem; letter-spacing: 0.5px; color: #8ea3c0; min-height: 1.2em; text-align: center; }
@keyframes pre-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }

/* SCROLL PROGRESS */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0%; z-index: 10000; background: var(--grad-accent); box-shadow: 0 0 10px rgba(var(--neon-cyan-rgb), 0.6); transition: width 0.1s linear; pointer-events: none; }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-content { align-items: center; }
    .hero-actions-container { justify-content: center; }
    .hero-feed { margin-top: 2.5rem; }
    .hero-feed .feed-terminal { max-width: 540px; }
    .pilares-grid, .sectors-grid { grid-template-columns: 1fr 1fr; }
    .ecosistema-layout { grid-template-columns: 1fr; gap: 2.5rem; }
    .ecosistema-feed-wrapper { max-width: 540px; margin: 0 auto; width: 100%; }
}
@media (max-width: 768px) {
    .section-padding { padding: 5rem 0; }
    .nav, .header-actions .btn-nav { display: none; }
    .mobile-nav-toggle { display: flex; z-index: 1001; }
    .mobile-nav-toggle.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .mobile-nav-toggle.active .bar:nth-child(2) { opacity: 0; }
    .mobile-nav-toggle.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    .pilares-grid, .sectors-grid { grid-template-columns: 1fr; }
    .timeline::before { left: 20px; }
    .timeline-item { padding-left: 50px; }
    .timeline-marker { left: 11px; }
    .tilt-card { transform: none !important; }
    .purdue-level { grid-template-columns: auto 1fr; gap: 1rem; }
    .purdue-tag { display: none; }
}

/* RESPONSIVE MÓVIL — MODO ÉPICO */
@media (max-width: 768px) {
    .container { padding: 0 1.25rem; }
    .header-container { padding: 1rem 1.25rem; }
    .logo { font-size: 1.3rem; gap: 0.55rem; }
    .logo-mark { width: 40px; height: 40px; }
    .btn { min-height: 50px; padding: 0.9rem 1.6rem; }
    .mobile-nav-toggle { width: 44px; height: 44px; justify-content: center; }
    .hero-section { min-height: 100svh; padding-top: 120px; text-align: center; }
    .hero-title { font-size: clamp(2.6rem, 13vw, 4rem); letter-spacing: -1px; line-height: 1.06; }
    .hero-description { font-size: 1.06rem; margin-left: auto; margin-right: auto; }
    .hero-actions-container { flex-direction: column; width: 100%; gap: 1rem; }
    .hero-actions-container .btn { width: 100%; justify-content: center; }
    .scroll-down { display: none; }
    .section-header { margin-bottom: 3rem; }
    .pilar-card, .tilt-card { padding: 2rem; }
    .ecosistema-layout { gap: 2.5rem; }
    .counter-widget { flex-direction: column; text-align: center; gap: 1rem; padding: 2rem 1.5rem; }
    .counter-number { font-size: 3.6rem; }
    .counter-prefix { font-size: 2rem; }
    .feed-terminal .terminal-body { height: 280px; padding: 1.2rem; gap: 0.5rem; }
    .terminal-line { font-size: 0.76rem; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1rem; }
    .stat + .stat::before { display: none; }
    .join-steps { grid-template-columns: 1fr; gap: 1.5rem; }
    .join-step { padding: 2rem 1.75rem; }
    .event-meta { gap: 0.6rem 1rem; }
    .timeline-content h3 { font-size: 1.2rem; }
    .cta-box { padding: 3rem 1.5rem; }
    .cta-buttons { flex-direction: column; width: 100%; }
    .cta-buttons .btn { width: 100%; justify-content: center; }
    .footer { padding: 3.5rem 0 2rem; text-align: center; }
    .footer-container { flex-direction: column; gap: 2.5rem; margin-bottom: 2.5rem; align-items: center; }
    .footer-brand { display: flex; flex-direction: column; align-items: center; }
    .footer-tagline { margin-left: auto; margin-right: auto; }
    .footer-links { align-items: center; }
    .footer-social { justify-content: center; }
    .footer-newsletter-col { margin: 0 auto; }
    .purdue-level { padding: 1.1rem 1.25rem; }
    .purdue-num { width: 48px; height: 48px; font-size: 1.3rem; }
}

@media (max-width: 480px) {
    .container { padding: 0 1rem; }
    .hero-title { font-size: clamp(2.4rem, 14vw, 3.2rem); }
    .badge-text { font-size: 0.66rem; letter-spacing: 1px; }
    .section-title { font-size: clamp(1.8rem, 8vw, 2.4rem); }
    .counter-number { font-size: 3rem; }
    .pilar-card, .tilt-card { padding: 1.65rem; }
}

@media (max-height: 680px) and (max-width: 768px) {
    .hero-section { min-height: auto; padding-top: 110px; padding-bottom: 4rem; }
}

/* ACCESIBILIDAD */
a:focus-visible, button:focus-visible, .btn:focus-visible, input:focus-visible { outline: 2px solid var(--neon-cyan); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
    .grain-overlay, .custom-cursor, .custom-cursor-glow { display: none; }
    html { scroll-behavior: auto; }
}
