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

:root {
    /* Chassis (superficie base) */
    --background: #e0e5ec;
    --foreground: #f0f2f5;
    --muted: #d1d9e6;
    --text: #2d3436;
    --text-muted: #4a5568;

    /* Acento único — el "botón de emergencia" del sistema */
    --accent: #ff4757;
    --accent-rgb: 255, 71, 87;
    --accent-foreground: #ffffff;

    /* Par luz/sombra neumórfico */
    --border: #babecc;
    --border-light: #ffffff;
    --border-dark: #a3b1c6;

    /* Colores de estado (LEDs / etiquetas de zona — uso semántico, no decorativo) */
    --status-info: #0284c7;
    --status-info-rgb: 2, 132, 199;
    --status-warn: #d97706;
    --status-warn-rgb: 217, 119, 6;
    --status-ok: #16a34a;
    --status-ok-rgb: 22, 163, 74;
    --status-alert: #dc2626;
    --status-alert-rgb: 220, 38, 38;

    /* Pantallas embebidas (HMI/CRT) — la única superficie oscura del sistema */
    --screen-bg: #10161d;
    --screen-cyan: #4dd8ff;
    --screen-amber: #ffb454;
    --screen-green: #4ade80;
    --screen-red: #ff5d73;
    --screen-text: #cbd5e1;
    --screen-dim: #5b6b85;

    --font-title: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 30px;
    --radius-full: 9999px;

    --shadow-card: 8px 8px 16px var(--border), -8px -8px 16px var(--border-light);
    --shadow-floating: 12px 12px 24px var(--border), -12px -12px 24px var(--border-light), inset 1px 1px 0 rgba(255,255,255,0.5);
    --shadow-pressed: inset 6px 6px 12px var(--border), inset -6px -6px 12px var(--border-light);
    --shadow-recessed: inset 4px 4px 8px var(--border), inset -4px -4px 8px var(--border-light);
    --shadow-sharp: 4px 4px 8px rgba(0,0,0,0.15), -1px -1px 1px rgba(255,255,255,0.8);
    --shadow-glow: 0 0 10px 2px rgba(var(--accent-rgb), 0.5);

    --transition-smooth: 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

*, *::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(--background);
    color: var(--text);
    overflow-wrap: break-word;
    -webkit-font-smoothing: antialiased;
}

/* Foco de luz superior-izquierda (dirección de luz consistente del sistema) */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background: radial-gradient(circle at 15% 8%, rgba(255,255,255,0.6) 0%, transparent 45%);
}

h1, h2, h3, h4 { font-family: var(--font-title); color: var(--text); font-weight: 700; }
p { font-size: 1.05rem; color: var(--text); 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(--status-info); }
.text-amber, .text-purple { color: var(--status-warn); }
.text-green { color: var(--status-ok); }
.text-red { color: var(--status-alert); }

.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; }

/* TEXTURA DE PLÁSTICO MATE (grano sutil de fondo) */
.grain-overlay {
    position: fixed; inset: 0;
    pointer-events: none; z-index: 9999; opacity: 0.035; mix-blend-mode: multiply;
    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>');
}

/* AMBIENTE DE FONDO — manchas de luz muy sutiles (halos de iluminación) */
.aurora-bg { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.aurora-bg .orb { position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.12; }
.orb-cyan { width: 40vw; height: 40vw; background: var(--status-info); top: -10vw; left: -8vw; animation: orb-float-a 26s ease-in-out infinite; }
.orb-amber { width: 44vw; height: 44vw; background: var(--status-warn); bottom: -15vw; right: -10vw; animation: orb-float-b 30s ease-in-out infinite; }
.orb-green { width: 28vw; height: 28vw; background: var(--status-ok); top: 40%; left: 50%; opacity: 0.08; animation: orb-float-c 34s 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); } }

/* ==========================================================================
   TARJETAS NEUMÓRFICAS ("módulos atornillados al chasis")
   ========================================================================== */
.tilt-card, .glass-card {
    position: relative;
    background: var(--background);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 2.5rem;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}
.tilt-card::before, .glass-card::before {
    content: '';
    position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    background:
        radial-gradient(circle at 14px 14px, rgba(45,52,54,0.16) 2px, transparent 3px),
        radial-gradient(circle at calc(100% - 14px) 14px, rgba(45,52,54,0.16) 2px, transparent 3px),
        radial-gradient(circle at 14px calc(100% - 14px), rgba(45,52,54,0.16) 2px, transparent 3px),
        radial-gradient(circle at calc(100% - 14px) calc(100% - 14px), rgba(45,52,54,0.16) 2px, transparent 3px);
}
.tilt-card:hover, .glass-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-floating); z-index: 10; }
.card-glare { display: none; }

/* BOTONES ("teclas físicas") */
.btn {
    display: inline-flex; align-items: center; gap: 0.75rem;
    padding: 0.9rem 1.9rem; border-radius: var(--radius-lg);
    font-family: var(--font-title); font-size: 0.85rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.05em;
    text-decoration: none; cursor: pointer; border: none;
    position: relative; overflow: hidden; z-index: 1; min-height: 48px;
    transition: transform 150ms ease, box-shadow 150ms ease, filter 150ms ease;
}
.magnetic-btn, .magnetic-elem { display: inline-flex; }

.btn-primary { background: var(--accent); color: var(--accent-foreground); border: 1px solid rgba(255,255,255,0.25); box-shadow: 4px 4px 8px rgba(166,50,60,0.35), -4px -4px 8px rgba(255,120,130,0.35); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-glow:hover { box-shadow: 4px 4px 10px rgba(166,50,60,0.4), -4px -4px 10px rgba(255,120,130,0.4), var(--shadow-glow); }
.btn-secondary { background: var(--background); color: var(--text); box-shadow: var(--shadow-card); }
.btn-secondary:hover { color: var(--accent); box-shadow: var(--shadow-floating); }
.btn-neon { background: var(--foreground); color: var(--accent); box-shadow: var(--shadow-card); border: 1px solid var(--border-dark); }
.btn-neon:hover { box-shadow: var(--shadow-floating); }
.btn-youtube { background: #ff0033; color: #fff; box-shadow: 4px 4px 8px rgba(150,0,20,0.35), -4px -4px 8px rgba(255,70,90,0.35); }
.btn-youtube:hover { filter: brightness(1.08); }
.btn-text { color: var(--accent); text-decoration: none; font-weight: 700; display: inline-flex; align-items: center; gap: 0.5rem; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.85rem; }
.btn-text i { transition: transform 0.25s ease; }
.btn-text:hover i { transform: translateX(6px); }

.btn:active { transform: translateY(2px); box-shadow: var(--shadow-pressed) !important; filter: none; }

/* HEADER */
.header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; transition: var(--transition-smooth); padding: 0.5rem 0; }
.header-scrolled { background: var(--background); box-shadow: var(--shadow-card); padding: 0.35rem 0; }
.header-container { max-width: 1280px; margin: 0 auto; padding: 1rem 2rem; display: flex; align-items: center; justify-content: space-between; }
.logo { font-family: var(--font-title); font-size: 1.3rem; font-weight: 800; color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 0.6rem; white-space: nowrap; }
.logo-accent { color: var(--accent); }

.nav-list { display: flex; flex-wrap: nowrap; list-style: none; gap: 1.7rem; align-items: center; }
.nav-list li { flex-shrink: 0; }
.nav-link { color: var(--text-muted); text-decoration: none; font-family: var(--font-title); font-weight: 600; font-size: 0.92rem; position: relative; padding: 0.5rem 0; transition: color 0.25s ease; white-space: nowrap; }
.nav-link::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--accent); border-radius: 2px; transition: width 0.25s ease; }
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.nav-link-event { padding: 0.42rem 0.95rem; border-radius: var(--radius-2xl); background: var(--foreground); box-shadow: var(--shadow-card); color: var(--accent); transition: box-shadow 0.25s, transform 0.25s; }
.nav-link-event::after { display: none !important; }
.nav-link-event:hover, .nav-link-event.active { box-shadow: var(--shadow-pressed); }

.mobile-nav-toggle { display: none; background: var(--background); border: none; border-radius: var(--radius-md); box-shadow: var(--shadow-card); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 44px; height: 44px; }
.mobile-nav-toggle .bar { width: 20px; height: 2px; background-color: var(--text); border-radius: 2px; transition: var(--transition-smooth); }
.mobile-nav-toggle:active { box-shadow: var(--shadow-pressed); }

/* HERO — "device visualization" (consola SOC dentro de un bisel neumórfico) */
.hero-section { min-height: 100vh; display: flex; align-items: center; position: relative; padding-top: 110px; }
.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.55rem 1.1rem; background: var(--foreground); box-shadow: var(--shadow-recessed); border-radius: var(--radius-2xl); margin-bottom: 2rem; }
.badge-dot { width: 7px; height: 7px; background-color: var(--status-ok); border-radius: 50%; box-shadow: 0 0 6px rgba(var(--status-ok-rgb), 0.7); animation: pulse 2s infinite; }
.badge-text { font-family: var(--font-mono); font-size: 0.7rem; font-weight: 700; letter-spacing: 1.2px; color: var(--text-muted); text-transform: uppercase; }

.hero-title {
    font-family: var(--font-title); font-size: clamp(2.4rem, 4.3vw, 4.1rem); font-weight: 800;
    line-height: 1.04; margin-bottom: 1.5rem; letter-spacing: -0.03em; color: var(--text);
    filter: drop-shadow(0 1px 0 var(--border-light));
    overflow-wrap: normal; word-break: keep-all;
}
.hero-title .gradient-text { display: block; font-size: 0.48em; font-weight: 700; margin-top: 0.7rem; letter-spacing: -0.01em; line-height: 1.12; color: var(--accent); }
.gradient-text { color: var(--accent); }
.hero-description { font-size: 1.1rem; color: var(--text-muted); max-width: 600px; margin-bottom: 2.5rem; font-weight: 500; }
.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.7; transition: opacity 0.3s; }
.scroll-down:hover { opacity: 1; }
.scroll-text { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 1px; color: var(--text-muted); text-transform: uppercase; }
.scroll-mouse { width: 20px; height: 32px; border: 2px solid var(--border-dark); border-radius: 12px; display: flex; justify-content: center; padding-top: 6px; background: var(--foreground); box-shadow: var(--shadow-recessed); }
.scroll-wheel { width: 4px; height: 8px; background-color: var(--accent); border-radius: 2px; animation: scroll-wheel-anim 1.6s infinite; }

/* SECTION HEADERS + PILARES */
.section-header { text-align: center; margin-bottom: 5rem; }
.section-title { font-family: var(--font-title); font-size: clamp(2rem, 3.5vw, 3.5rem); font-weight: 800; margin-bottom: 1rem; letter-spacing: -0.02em; color: var(--text); filter: drop-shadow(0 1px 0 var(--border-light)); }
.step-icon { color: var(--accent); font-size: 0.8em; margin-right: 0.4rem; }
.section-subtitle { font-size: 1.1rem; max-width: 640px; margin: 0 auto; font-weight: 500; color: var(--text-muted); }
.pilares-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }

/* RELACIONES PÚBLICAS */
.rp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem; margin-bottom: 2.5rem; }
.rp-contact h3 { font-size: 1.4rem; margin-bottom: 0.5rem; color: var(--text); }
.rp-contact p { color: var(--text-muted); }

.pilar-card h3 { font-size: 1.4rem; margin-bottom: 1rem; color: var(--text); }
.pilar-card p { font-size: 1rem; margin-bottom: 1.5rem; color: var(--text-muted); }
.pilar-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.pilar-list li { display: flex; align-items: center; gap: 0.75rem; font-size: 0.95rem; font-weight: 600; color: var(--text); }

.pilar-icon-wrapper { position: relative; width: 64px; height: 64px; background: var(--background); box-shadow: var(--shadow-floating); border-radius: var(--radius-full); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin-bottom: 2rem; color: var(--accent); transition: var(--transition-smooth); }
.pilar-card:hover .pilar-icon-wrapper { transform: scale(1.06); }
.icon-glow { display: none; }

/* ==========================================================================
   MODELO PURDUE — NIVELES DE DEFENSA OT
   ========================================================================== */
.purdue { max-width: 980px; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; position: relative; }
.purdue::before {
    content: ''; position: absolute; inset: -2rem -1rem; z-index: -1; pointer-events: none;
    background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 40px 40px; opacity: 0.35;
    mask-image: radial-gradient(ellipse 70% 60% at center, #000 40%, transparent 90%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at center, #000 40%, transparent 90%);
}
.purdue-zone-label { font-family: var(--font-mono); font-size: 0.7rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted); 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: var(--radius-lg);
    background: var(--background); box-shadow: var(--shadow-card);
    border-left: 4px solid var(--lvl, var(--accent));
    transition: transform 0.3s cubic-bezier(0.175,0.885,0.32,1.275), box-shadow 0.3s;
}
.purdue-level:hover { transform: translateX(6px); box-shadow: var(--shadow-floating); }
.purdue-num {
    font-family: var(--font-mono); font-size: 1.5rem; font-weight: 800; line-height: 1;
    width: 56px; height: 56px; flex-shrink: 0; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center;
    color: var(--lvl, var(--accent)); background: var(--foreground); box-shadow: var(--shadow-recessed);
}
.purdue-body h3 { font-family: var(--font-title); font-size: 1.12rem; margin-bottom: 0.25rem; color: var(--text); }
.purdue-body p { font-size: 0.92rem; color: var(--text-muted); line-height: 1.5; }
.purdue-tag { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.5px; color: var(--lvl, var(--accent)); white-space: nowrap; padding: 0.3rem 0.7rem; border-radius: var(--radius-2xl); background: var(--foreground); box-shadow: var(--shadow-recessed); }

.lvl-it    { --lvl: var(--status-info);  --lvl-rgb: var(--status-info-rgb); }
.lvl-dmz   { --lvl: var(--status-warn);  --lvl-rgb: var(--status-warn-rgb); }
.lvl-ot    { --lvl: var(--status-ok);    --lvl-rgb: var(--status-ok-rgb); }
.lvl-phys  { --lvl: var(--status-alert); --lvl-rgb: var(--status-alert-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: var(--radius-lg); background: var(--background); box-shadow: var(--shadow-card); transition: transform 0.3s, box-shadow 0.3s; }
.sector-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-floating); }
.sector-icon { width: 52px; height: 52px; flex-shrink: 0; border-radius: var(--radius-full); display: flex; align-items: center; justify-content: center; font-size: 1.35rem; color: var(--accent); background: var(--foreground); box-shadow: var(--shadow-recessed); }
.sector-card:nth-child(3n+2) .sector-icon { color: var(--status-warn); }
.sector-card:nth-child(3n) .sector-icon { color: var(--status-ok); }
.sector-card h3 { font-size: 1.1rem; margin-bottom: 0.2rem; color: var(--text); }
.sector-card p { font-size: 0.88rem; color: var(--text-muted); 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-title); font-size: clamp(2rem, 3vw, 3rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; color: var(--text); }
.ecosistema-desc { font-size: 1.1rem; margin: 1.5rem 0 2.5rem 0; font-weight: 500; color: var(--text-muted); }
.counter-widget { display: flex; align-items: center; gap: 2rem; padding: 2rem; }
.counter-display { display: flex; align-items: baseline; font-family: var(--font-title); font-weight: 800; color: var(--text); }
.counter-prefix { font-size: 2.3rem; color: var(--accent); margin-right: 0.2rem; }
.counter-number { font-size: 4.2rem; line-height: 1; font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; letter-spacing: -0.02em; color: var(--text); font-family: var(--font-mono); }
.counter-label { font-size: 0.98rem; font-weight: 600; color: var(--text-muted); }

/* TERMINAL FEED — pantalla recesada dentro del bisel (SOC / OT en vivo) */
.feed-terminal { font-family: var(--font-mono); padding: 0.9rem; overflow: hidden; background: var(--background); box-shadow: var(--shadow-floating); border-radius: var(--radius-xl); }
.terminal-header { background: var(--foreground); box-shadow: var(--shadow-recessed); border-radius: var(--radius-md); padding: 0.75rem 1.1rem; display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
.terminal-dots { display: flex; gap: 8px; }
.terminal-dots .dot { width: 10px; height: 10px; border-radius: 50%; box-shadow: var(--shadow-sharp); }
.terminal-dots .dot.red { background-color: var(--status-alert); }
.terminal-dots .dot.yellow { background-color: var(--status-warn); }
.terminal-dots .dot.green { background-color: var(--status-ok); }
.terminal-title { font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.3px; font-weight: 700; color: var(--text-muted); }
.terminal-status { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 1px; font-weight: 700; color: var(--status-ok); animation: blink 1.5s infinite; }
.terminal-body {
    position: relative; padding: 1.3rem 1.4rem; height: 340px; overflow: hidden; display: flex; flex-direction: column; gap: 0.5rem;
    background: var(--screen-bg); border-radius: var(--radius-md);
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.4), inset 0 4px 14px rgba(0,0,0,0.5);
}
.terminal-body::after {
    content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; mix-blend-mode: multiply;
    background: repeating-linear-gradient(to bottom, rgba(0,0,0,0) 0px, rgba(0,0,0,0) 2px, rgba(0,0,0,0.25) 3px, rgba(0,0,0,0) 4px);
}
.terminal-line { position: relative; z-index: 1; font-size: 0.8rem; line-height: 1.45; letter-spacing: 0.2px; color: var(--screen-text); animation: console-write 0.3s ease-out forwards; }

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

/* ==========================================================================
   LANDING DEL EVENTO — OT SECURITY DAY V 2026
   ========================================================================== */
.reveal { opacity: 1; transform: none; }
.reveal-on .reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16,1,0.3,1); }
.reveal-on .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal-on .reveal { opacity: 1; transform: none; transition: none; } }

.evento-page::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(circle at 20% 12%, rgba(255,255,255,0.6) 0%, transparent 45%); }

.ev-hero { min-height: 100vh; display: flex; align-items: center; position: relative; padding: 130px 0 4rem; }
.ev-hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3.5rem; align-items: center; }
.ev-title { font-family: var(--font-title); font-size: clamp(2.6rem, 5.2vw, 4.6rem); font-weight: 800; line-height: 1.04; letter-spacing: -0.03em; margin-bottom: 1.5rem; color: var(--text); filter: drop-shadow(0 1px 0 var(--border-light)); }
.ev-title .ev-edition { display: inline-block; font-size: 0.55em; vertical-align: middle; margin-left: 0.4rem; padding: 0.1em 0.5em; border-radius: var(--radius-md); color: var(--accent-foreground); background: var(--accent); box-shadow: 4px 4px 8px rgba(166,50,60,0.35), -4px -4px 8px rgba(255,120,130,0.35); }
.ev-title .gradient-text { display: block; font-size: 0.52em; font-weight: 700; margin-top: 0.7rem; letter-spacing: -0.01em; color: var(--accent); }
.ev-lead { font-size: 1.1rem; color: var(--text-muted); max-width: 620px; margin-bottom: 1.75rem; }
.ev-chips { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2.25rem; }
.ev-chip { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-title); font-size: 0.82rem; font-weight: 600; color: var(--text-muted); padding: 0.5rem 0.95rem; border-radius: var(--radius-2xl); background: var(--foreground); box-shadow: var(--shadow-recessed); }
.ev-chip i { color: var(--accent); }

/* Núcleo animado — anillos neumórficos recesados con acento */
.ev-hero-visual { display: flex; flex-direction: column; align-items: center; gap: 2.5rem; }
.ai-core { position: relative; width: min(300px, 75vw); height: min(300px, 75vw); display: flex; align-items: center; justify-content: center; }
.ai-ring { position: absolute; border-radius: 50%; box-shadow: var(--shadow-recessed); }
.ai-ring.r1 { inset: 0; border: 1px dashed var(--border-dark); animation: ai-spin 22s linear infinite; }
.ai-ring.r2 { inset: 16%; border: 1px solid var(--border-dark); animation: ai-spin 15s linear infinite reverse; }
.ai-ring.r3 { inset: 32%; border: 1px solid var(--border-dark); animation: ai-spin 10s linear infinite; }
.ai-orbit { position: absolute; inset: 0; border-radius: 50%; animation: ai-spin 8s linear infinite; }
.ai-orbit.o2 { inset: 16%; animation-duration: 11s; animation-direction: reverse; }
.ai-dot { position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--accent); box-shadow: var(--shadow-sharp); }
.ai-dot.amber { background: var(--status-warn); }
.ai-core-center {
    width: 38%; height: 38%; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: clamp(1.8rem, 5vw, 2.6rem); color: var(--screen-cyan);
    background: var(--screen-bg);
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.4), inset 0 4px 14px rgba(0,0,0,0.5), var(--shadow-floating);
    animation: ai-pulse 3s ease-in-out infinite;
}
@keyframes ai-spin { to { transform: rotate(360deg); } }
@keyframes ai-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.04); } }

/* Cuenta regresiva */
.countdown { display: flex; gap: 0.85rem; }
.cd-unit { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; min-width: 68px; padding: 1rem 0.6rem; border-radius: var(--radius-lg); background: var(--background); box-shadow: var(--shadow-card); }
.cd-num { font-family: var(--font-mono); font-size: clamp(1.7rem, 4vw, 2.3rem); font-weight: 800; line-height: 1; color: var(--accent); }
.cd-label { font-family: var(--font-title); font-size: 0.64rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-muted); }

/* Ejes temáticos */
.tracks-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.track-card { position: relative; padding: 2.5rem; border-radius: var(--radius-xl); background: var(--background); box-shadow: var(--shadow-card); border-top: 4px solid var(--lvl, var(--accent)); overflow: hidden; transition: transform 0.4s cubic-bezier(0.175,0.885,0.32,1.275), box-shadow 0.4s; }
.track-card::before { content: ''; position: absolute; top: -40%; right: -20%; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--lvl-rgb, var(--accent-rgb)),0.12), transparent 70%); pointer-events: none; opacity: 0.8; }
.track-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-floating); }
.track-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.track-num { font-family: var(--font-mono); font-size: 2.4rem; font-weight: 800; line-height: 1; color: var(--border-dark); }
.track-icon { width: 58px; height: 58px; border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; font-size: 1.45rem; color: var(--lvl, var(--accent)); background: var(--foreground); box-shadow: var(--shadow-recessed); }
.track-card h3 { font-family: var(--font-title); font-size: 1.5rem; margin-bottom: 0.75rem; color: var(--text); }
.track-card > p { font-size: 1rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 1.5rem; }
.track-topics { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.track-topics li { font-family: var(--font-title); font-size: 0.78rem; font-weight: 600; color: var(--text-muted); padding: 0.4rem 0.85rem; border-radius: var(--radius-2xl); background: var(--foreground); box-shadow: var(--shadow-recessed); }

.ev-teaser { max-width: 720px; margin: 0 auto; }

/* Agenda del evento */
.agenda { max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }
.agenda-item { border-radius: var(--radius-lg); overflow: hidden; background: var(--background); box-shadow: var(--shadow-card); transition: transform 0.3s, box-shadow 0.3s; }
.agenda-item:hover { transform: translateX(6px); box-shadow: var(--shadow-floating); }
.agenda-talk { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.25rem; padding: 1.3rem 1.6rem; border-left: 4px solid var(--accent); }
.agenda-num { font-family: var(--font-mono); font-size: 1.4rem; font-weight: 800; line-height: 1; color: var(--accent); min-width: 2ch; }
.agenda-time { font-family: var(--font-mono); font-size: 1.25rem; font-weight: 800; line-height: 1.05; color: var(--text); min-width: 4.6ch; text-align: center; letter-spacing: -0.01em; }
.agenda-item.keynote { box-shadow: var(--shadow-card), 0 0 0 1px var(--accent); }
.agenda-item.keynote .agenda-talk { border-left-color: var(--accent); }
.agenda-item.keynote .agenda-time { color: var(--accent); }
.agenda-kbadge { display: inline-block; font-family: var(--font-title); font-size: 0.6rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent-foreground); background: var(--accent); padding: 0.16rem 0.55rem; border-radius: var(--radius-md); margin-bottom: 0.35rem; }
.agenda-body h3 { font-family: var(--font-title); font-size: 1.1rem; margin-bottom: 0.2rem; color: var(--text); }
.agenda-tag { font-size: 0.8rem; color: var(--text-muted); }
.agenda-dur { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-muted); white-space: nowrap; padding: 0.32rem 0.7rem; border-radius: var(--radius-2xl); background: var(--foreground); box-shadow: var(--shadow-recessed); }
.agenda-sub { display: flex; flex-wrap: wrap; gap: 1.5rem; padding: 0.7rem 1.6rem 0.8rem; background: var(--foreground); box-shadow: var(--shadow-recessed); }
.agenda-sub span { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-title); font-size: 0.82rem; color: var(--text-muted); }
.agenda-sub .ag-q i { color: var(--status-ok); }
.agenda-sub .ag-b i { color: var(--status-warn); }
.agenda-note { text-align: center; margin-top: 2.5rem; font-size: 0.95rem; color: var(--text-muted); }
.agenda-note strong { color: var(--text); }
@media (max-width: 600px) {
    .agenda-talk { grid-template-columns: auto 1fr; gap: 0.85rem; }
    .agenda-dur { grid-column: 2; justify-self: start; margin-top: 0.4rem; }
    .agenda-sub { gap: 1rem; padding: 0.7rem 1.25rem 0.8rem; }
}

@media (max-width: 1024px) {
    .ev-hero-grid { grid-template-columns: 1fr; text-align: center; }
    .ev-hero-content { display: flex; flex-direction: column; align-items: center; }
    .ev-chips, .hero-actions-container { justify-content: center; }
    .ev-hero-visual { order: -1; margin-bottom: 1rem; }
}
@media (max-width: 768px) {
    .tracks-grid { grid-template-columns: 1fr; }
    .ev-hero { padding-top: 120px; }
    .cd-unit { min-width: 60px; padding: 0.8rem 0.45rem; }
    .countdown { gap: 0.6rem; }
    .track-card { padding: 2rem; }
}

/* GALERÍA DE VIDEOS — grises → color al pasar el mouse */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.video-card { display: flex; flex-direction: column; background: var(--background); box-shadow: var(--shadow-card); border-radius: var(--radius-lg); overflow: hidden; transition: transform 0.3s, box-shadow 0.3s; }
.video-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-floating); }
.video-facade { position: relative; display: block; width: 100%; aspect-ratio: 16/9; border: none; padding: 0; margin: 0; cursor: pointer; background: var(--screen-bg); overflow: hidden; }
.video-thumb { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); opacity: 0.9; transition: filter 0.5s, opacity 0.35s, transform 0.6s cubic-bezier(0.16,1,0.3,1); display: block; }
.video-card:hover .video-thumb { filter: grayscale(0); opacity: 1; transform: scale(1.05); }
.video-facade::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,0.45) 100%); pointer-events: none; }
.video-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.15rem; color: #fff; background: #ff0033; box-shadow: var(--shadow-sharp); transition: transform 0.3s; z-index: 2; padding-left: 4px; }
.video-facade:hover .video-play { transform: translate(-50%,-50%) scale(1.1); }
.video-dur { position: absolute; bottom: 8px; right: 8px; z-index: 2; font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700; color: #fff; background: rgba(0,0,0,0.75); padding: 0.12rem 0.45rem; border-radius: var(--radius-sm); letter-spacing: 0.3px; }
.video-iframe-wrap { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; }
.video-iframe-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-body { padding: 1.35rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.video-title { font-size: 1.02rem; line-height: 1.32; }
.video-title a { color: var(--text); text-decoration: none; transition: color 0.25s; }
.video-title a:hover { color: var(--accent); }
.video-meta { font-family: var(--font-title); font-size: 0.8rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.45rem; }
.video-meta i { color: var(--accent); }
.video-desc { font-size: 0.9rem; color: var(--text-muted); line-height: 1.55; margin-top: 0.15rem; }
.videos-cta { text-align: center; margin-top: 3.5rem; }

.video-featured { max-width: 940px; margin: 0 auto 3rem; text-align: center; }
.video-featured-tag { margin-bottom: 1.1rem; }
.video-featured .video-card { text-align: left; }
.video-featured .video-play { width: 78px; height: 78px; font-size: 1.55rem; }
.video-featured .video-title { font-size: clamp(1.25rem, 2.6vw, 1.7rem); }
.video-featured .video-body { padding: 1.8rem 2rem 2rem; gap: 0.6rem; }
.video-featured .video-desc { font-size: 1.02rem; }
@media (max-width: 1024px) { .video-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .video-grid { grid-template-columns: 1fr; gap: 1.5rem; } }

/* TIMELINE (legado, no usado en las páginas actuales — se mantiene por compatibilidad) */
.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: var(--border-dark); }
.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(--background); box-shadow: var(--shadow-card); border: 3px solid var(--accent); z-index: 2; transition: transform 0.3s; }
.timeline-marker.amber-glow { border-color: var(--status-warn); }
.timeline-item:hover .timeline-marker { transform: scale(1.3); }
.event-meta { display: flex; gap: 1.5rem; margin-bottom: 0.75rem; font-family: var(--font-title); font-size: 0.9rem; color: var(--text-muted); flex-wrap: wrap; }
.timeline-content h3 { font-size: 1.35rem; margin-bottom: 0.85rem; color: var(--text); }
.timeline-content p { font-size: 1rem; margin-bottom: 1.25rem; color: var(--text-muted); }
.event-tags { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.badge-tag { font-family: var(--font-title); font-size: 0.75rem; font-weight: 700; padding: 0.35rem 0.85rem; border-radius: var(--radius-2xl); background: var(--foreground); box-shadow: var(--shadow-recessed); color: var(--text-muted); }
.badge-tag.cyan { color: var(--status-info); }
.badge-tag.amber { color: var(--status-warn); }
.badge-tag.green { color: var(--status-ok); }

/* CTA FINAL */
.cta-box { padding: 5rem 3rem; }
.cta-box h2 { font-family: var(--font-title); font-size: clamp(2rem, 3.5vw, 3.5rem); margin-bottom: 1rem; color: var(--text); }
.cta-box p { color: var(--text-muted); }
.cta-glow { display: none; }
.cta-buttons { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }

/* FOOTER */
.footer { background: var(--background); box-shadow: inset 0 1px 0 var(--border-light), 0 -2px 8px rgba(0,0,0,0.04); 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: var(--text-muted); }
.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; color: var(--text); }
.newsletter-form .input-group { display: flex; padding: 0.4rem; border-radius: var(--radius-2xl); background: var(--foreground); box-shadow: var(--shadow-recessed); }
.newsletter-form input { flex: 1; background: transparent; border: none; outline: none; padding: 0.75rem 1.25rem; color: var(--text); font-family: var(--font-body); font-size: 1rem; }
.newsletter-form input::placeholder { color: var(--text-muted); opacity: 0.7; }
.newsletter-status { display: block; margin-top: 0.75rem; font-family: var(--font-mono); font-size: 0.85rem; font-weight: 600; }
.btn-submit { width: 44px; height: 44px; background: var(--accent); border: none; border-radius: 50%; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.05rem; box-shadow: var(--shadow-sharp); transition: transform 0.25s; }
.btn-submit:hover { transform: scale(1.06); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 2rem; text-align: center; font-size: 0.9rem; color: var(--text-muted); }
.copyright-line { max-width: 640px; margin: 0 auto; line-height: 1.6; }
.copyright-line strong { color: var(--text); }
.copyright-line a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(var(--accent-rgb), 0.4); transition: opacity 0.25s; }
.copyright-line a:hover { opacity: 0.75; }

.footer-social { display: flex; gap: 1rem; margin-top: 1.5rem; }
.footer-social a { width: 42px; height: 42px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 1.05rem; color: var(--text-muted); background: var(--background); box-shadow: var(--shadow-card); transition: var(--transition-smooth); }
.footer-social a:hover { color: var(--accent); box-shadow: var(--shadow-floating); transform: translateY(-3px); }

/* 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.3; } }
@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: var(--background); z-index: 999; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.35s; }
.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-title); font-size: 1.8rem; font-weight: 800; color: var(--text); text-decoration: none; transition: color 0.25s; }
.mobile-nav-link:hover { color: var(--accent); }

/* STATS BAND */
.stats-band { padding: 3.25rem 0; background: var(--background); box-shadow: inset 0 1px 0 var(--border-light); position: relative; z-index: 2; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.stat { position: relative; text-align: center; padding: 1.8rem 1.1rem 1.55rem; border-radius: var(--radius-lg); background: var(--background); box-shadow: var(--shadow-card); display: flex; flex-direction: column; align-items: center; gap: 0.35rem; overflow: hidden; transition: transform 0.3s, box-shadow 0.3s; --stat-accent: var(--accent); }
.stat::before { content: ''; position: absolute; top: 0; left: 22%; right: 22%; height: 3px; border-radius: 2px; background: var(--stat-accent); opacity: 0.75; }
.stat:hover { transform: translateY(-6px); box-shadow: var(--shadow-floating); }
.stat:nth-child(2) { --stat-accent: var(--status-warn); }
.stat:nth-child(3) { --stat-accent: var(--status-ok); }
.stat-icon { font-size: 1.35rem; color: var(--stat-accent); margin-bottom: 0.1rem; }
.stat-num { display: block; font-family: var(--font-mono); font-size: clamp(2.5rem, 4.6vw, 3.5rem); font-weight: 800; line-height: 1; white-space: nowrap; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; color: var(--text); }
.stat-label { display: block; margin-top: 0.2rem; font-size: 0.9rem; color: var(--text-muted); font-family: var(--font-title); font-weight: 600; letter-spacing: 0.02em; }

/* ÚNETE EN 3 PASOS — con conector físico entre pasos */
.join-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; position: relative; }
.join-steps::before {
    content: ''; position: absolute; top: 4.5rem; left: 16.6%; right: 16.6%; height: 0.6rem; z-index: -1;
    background: var(--muted); border-radius: var(--radius-full);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.2), inset 0 -1px 0 rgba(255,255,255,0.5);
}
.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-mono); font-size: 3.2rem; font-weight: 800; line-height: 1; color: var(--border); }
.join-icon { width: 60px; height: 60px; border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; font-size: 1.55rem; color: var(--accent); background: var(--foreground); box-shadow: var(--shadow-recessed); margin-bottom: 1.5rem; transition: var(--transition-smooth); }
.join-step:nth-child(2) .join-icon { color: var(--status-ok); }
.join-step:nth-child(3) .join-icon { color: var(--status-warn); }
.join-step:hover .join-icon { transform: scale(1.08); }
.join-step h3 { font-size: 1.3rem; margin-bottom: 0.75rem; color: var(--text); }
.join-step p { font-size: 1rem; color: var(--text-muted); line-height: 1.6; }
.join-cta { text-align: center; margin-top: 3rem; }
@media (max-width: 768px) { .join-steps::before { display: none; } }

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

/* 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: var(--shadow-card); transition: transform 0.35s cubic-bezier(0.175,0.885,0.32,1.275); }
.logo:hover .logo-mark { transform: scale(1.05); }
.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-mono); font-size: 0.68rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--status-ok); background: var(--foreground); box-shadow: var(--shadow-recessed); padding: 0.28rem 0.75rem; border-radius: var(--radius-2xl); }
.event-soon::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--status-ok); animation: pulse 2s infinite; }

/* PRELOADER */
.preloader { position: fixed; inset: 0; z-index: 10001; background: var(--background); display: flex; align-items: center; justify-content: center; transition: opacity 0.6s ease, visibility 0.6s 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: 84px; height: 84px; border-radius: 50%; box-shadow: var(--shadow-floating); animation: pre-pulse 1.6s ease-in-out infinite; }
.preloader-wordmark { font-family: var(--font-title); font-size: 1.3rem; font-weight: 800; letter-spacing: 0.5px; color: var(--text); }
.preloader-track { width: 100%; height: 8px; border-radius: var(--radius-full); background: var(--foreground); box-shadow: var(--shadow-recessed); overflow: hidden; }
.preloader-fill { display: block; height: 100%; width: 0%; background: var(--accent); border-radius: var(--radius-full); transition: width 0.45s cubic-bezier(0.4,0,0.2,1); }
.preloader-status { font-family: var(--font-mono); font-size: 0.85rem; letter-spacing: 0.3px; color: var(--text-muted); min-height: 1.2em; text-align: center; }
@keyframes pre-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }

/* SCROLL PROGRESS */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0%; z-index: 10000; background: var(--accent); transition: width 0.1s linear; pointer-events: none; }

/* RESPONSIVE */
/* El menú pasa a hamburguesa antes para no apretujarse en pantallas medianas */
@media (max-width: 1150px) {
    .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); }
}
@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, .rp-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, .rp-grid { grid-template-columns: 1fr; }
    .timeline::before { left: 20px; }
    .timeline-item { padding-left: 50px; }
    .timeline-marker { left: 11px; }
    .tilt-card, .glass-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(--accent); 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 { display: none; }
    html { scroll-behavior: auto; }
}
