/* Vector Inside 3.0 - High-Vanguard Brutalist Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:ital,wght@0,400;0,500;0,700;1,400&family=Montserrat:wght@700;800;900&display=swap');

:root {
  --vector-black: #080808;
  --surface-dim: #131313;
  --surface-card: rgba(255, 255, 255, 0.03);
  --surface-card-hover: rgba(255, 255, 255, 0.06);
  --vector-lime: #c3f400;
  --vector-lime-glow: rgba(195, 244, 0, 0.4);
  --operative-purple: #9d4edd;
  --operative-purple-dark: #6f00be;
  --operative-purple-glow: rgba(157, 78, 221, 0.4);
  --cognitive-blue: #433dae;
  --cognitive-blue-glow: rgba(67, 61, 174, 0.4);
  --operative-white: #ffffff;
  --text-muted: #c4c9ac;
  --border-glass: rgba(255, 255, 255, 0.12);
  --border-glass-bright: rgba(255, 255, 255, 0.25);
  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* Base Reset & Fonts */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  overscroll-behavior: none;
  scroll-behavior: auto !important;
}

html {
  scroll-behavior: smooth;
  background-color: var(--vector-black);
  color: #e5e2e1;
  font-family: var(--font-body);
}

body {
  overflow-x: hidden;
  background-color: var(--vector-black);
  color: var(--operative-white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Selection */
::selection {
  background-color: var(--vector-lime);
  color: var(--vector-black);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #080808;
}
::-webkit-scrollbar-thumb {
  background: #2a2a2a;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--vector-lime);
}

/* Utility Classes */
.font-display { font-family: var(--font-display); }
.font-mono { font-family: var(--font-mono); }
.font-body { font-family: var(--font-body); }

/* Glassmorphism Panels */
.glass-panel {
  background: var(--surface-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel:hover {
  border-color: var(--border-glass-bright);
}

/* Glass Header */
.glass-nav {
  background: rgba(8, 8, 8, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark Glass Header Theme */
.glass-nav-dark {
  background: rgba(8, 8, 8, 0.82) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

.glass-nav-dark .brand-logo-img {
  filter: none;
}

.glass-nav-dark .header-center-headline {
  color: rgba(195, 244, 0, 0.95) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

/* White Liquid Glass Header Theme (For White / Brutalist Contrast Sections) */
.glass-nav-white-liquid {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.88) 0%, rgba(245, 245, 250, 0.80) 50%, rgba(235, 235, 245, 0.70) 100%) !important;
  backdrop-filter: blur(36px) saturate(200%) brightness(1.05) !important;
  -webkit-backdrop-filter: blur(36px) saturate(200%) brightness(1.05) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12) !important;
  box-shadow: 
    0 10px 35px rgba(0, 0, 0, 0.08),
    0 1px 1px rgba(255, 255, 255, 0.95) inset,
    0 -1px 1px rgba(0, 0, 0, 0.05) inset !important;
}

.glass-nav-white-liquid .brand-logo-img {
  filter: brightness(0) saturate(100%); /* High contrast pure black logo on white glass */
}

.glass-nav-white-liquid .header-center-headline {
  color: #0b0b0d !important;
  border-color: rgba(0, 0, 0, 0.15) !important;
  font-weight: 900 !important;
}

.glass-nav-white-liquid .header-cta-btn .btn-pill-bg {
  background: #0b0b0d !important;
  border: 1px solid rgba(0, 0, 0, 0.2) !important;
}

.glass-nav-white-liquid .header-cta-btn .btn-pill-label {
  color: #c3f400 !important;
}

/* Transparent Floating Header Theme (During Smartphone Spin/Stage) */
.glass-nav-transparent {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: 1px solid transparent !important;
  box-shadow: none !important;
}

.glass-nav-transparent .header-center-headline {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translate(-50%, -10px) !important;
}

.glass-nav-transparent .brand-logo-img {
  filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.8)) !important;
}

.glass-nav-transparent .header-cta-btn {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6) !important;
}

/* Liquid Glass Dock Styling */
.liquid-glass-dock {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.75) 0%, rgba(240, 240, 248, 0.60) 45%, rgba(220, 220, 235, 0.45) 100%) !important;
  backdrop-filter: blur(36px) saturate(220%) brightness(1.15) !important;
  -webkit-backdrop-filter: blur(36px) saturate(220%) brightness(1.15) !important;
  border: 1px solid rgba(255, 255, 255, 0.85) !important;
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.75),
    0 1.5px 1px rgba(255, 255, 255, 0.95) inset,
    0 -1px 1px rgba(0, 0, 0, 0.15) inset,
    0 0 25px rgba(255, 255, 255, 0.25) !important;
}

.liquid-glass-dock::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 45%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.50) 0%, rgba(255, 255, 255, 0.0) 100%);
  border-radius: 9999px 9999px 0 0;
  pointer-events-none;
}

.liquid-glass-item {
  position: relative;
  color: #1e293b !important;
  font-weight: 800;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.liquid-glass-item:hover,
.liquid-glass-item.active {
  background: rgba(10, 10, 14, 0.90) !important;
  box-shadow: 
    0 0 20px rgba(195, 244, 0, 0.45),
    0 1px 0 rgba(255, 255, 255, 0.3) inset !important;
  color: var(--vector-lime) !important;
  text-shadow: 0 0 10px rgba(195, 244, 0, 0.6);
  transform: translateY(-1px);
}

/* Glow Utilities */
.acrylic-glow-lime:hover {
  box-shadow: 0 0 35px var(--vector-lime-glow);
  border-color: var(--vector-lime) !important;
}

.acrylic-glow-purple:hover {
  box-shadow: 0 0 35px var(--operative-purple-glow);
  border-color: var(--operative-purple) !important;
}

.acrylic-glow-blue:hover {
  box-shadow: 0 0 35px var(--cognitive-blue-glow);
  border-color: var(--cognitive-blue) !important;
}

.acrylic-glow-mixed:hover {
  box-shadow: -15px 15px 35px var(--vector-lime-glow), 15px -15px 35px var(--operative-purple-glow);
  border-color: var(--vector-lime) !important;
}

/* Buttons */
.btn-vector-primary {
  background-color: var(--vector-lime);
  color: var(--vector-black);
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--vector-lime);
}

.btn-vector-primary:hover {
  box-shadow: 0 0 30px var(--vector-lime-glow);
  transform: translateY(-2px);
  background-color: #d6ff1a;
}

/* React Bits PillNav Authentic Button (White Base -> Smooth Vector Lime Pill Sweep) */
.btn-pill-nuclear {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background-color: #ffffff;
  padding: 9px 22px;
  overflow: hidden;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 18px rgba(255, 255, 255, 0.3), 0 1px 2px rgba(0, 0, 0, 0.1);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.btn-pill-nuclear .btn-pill-bg {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background-color: var(--vector-lime);
  transform: translateY(102%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

.btn-pill-nuclear .btn-pill-label {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #000000;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
  white-space: nowrap;
}

.btn-pill-nuclear .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #000000 !important;
  box-shadow: none !important;
  display: inline-block;
  flex-shrink: 0;
}

.btn-pill-nuclear:hover {
  border-color: var(--vector-lime);
  box-shadow: 0 0 35px var(--vector-lime-glow), 0 0 15px rgba(195, 244, 0, 0.5);
  transform: translateY(-1px) scale(1.03);
}

.btn-pill-nuclear:hover .btn-pill-bg {
  transform: translateY(0%);
}

.btn-pill-nuclear:hover .btn-pill-label {
  color: #000000;
  transform: translateY(-1px);
}

.btn-vector-outline {
  background: transparent;
  color: var(--operative-white);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--border-glass-bright);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.btn-vector-outline:hover {
  border-color: var(--vector-lime);
  color: var(--vector-lime);
  box-shadow: 0 0 20px rgba(195, 244, 0, 0.2);
  transform: translateY(-2px);
}

/* Text Stroke Effect */
.text-stroke-lime {
  -webkit-text-stroke: 1px var(--vector-lime);
  color: transparent;
}

.text-stroke-white {
  -webkit-text-stroke: 1px var(--operative-white);
  color: transparent;
}

/* Brutalist Grid Lines */
.brutalist-border-grid {
  background-image: 
    linear-gradient(to right, rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
}

/* Intro Video & Screen Overlay (Compact 50% Scale with Black Surroundings) */
#intro-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000000 !important;
}

#intro-video {
  width: 50vw;
  height: 50vh;
  max-width: 50vw;
  max-height: 50vh;
  object-fit: contain;
  object-position: center center;
  margin: auto;
  border-radius: 12px;
  box-shadow: 0 0 70px rgba(0, 0, 0, 1);
}

/* Hero Background styling */
/* Hero 3D Canvas Container (Shifted down) */
#hero-3d-container {
  pointer-events: auto;
  transform: translateY(24px) !important;
  overflow: visible !important;
}

#hero-3d-canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
  overflow: visible !important;
  filter: drop-shadow(0 0 50px rgba(82, 39, 255, 0.4));
}

.hero-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(8, 8, 8, 0.1) 0%, rgba(8, 8, 8, 0.5) 75%, #080808 100%);
  mix-blend-mode: normal;
  pointer-events: none;
}

/* Pulse indicator dot */
.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--vector-lime);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 10px var(--vector-lime);
  animation: pulse-glow 2s infinite ease-in-out;
}

@keyframes pulse-glow {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 0 10px var(--vector-lime);
  }
  50% {
    transform: scale(1.4);
    opacity: 0.6;
    box-shadow: 0 0 20px var(--vector-lime);
  }
}

/* Modal Overlay */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(4, 4, 4, 0.85);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-window {
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.active .modal-window {
  transform: translateY(0) scale(1);
}

/* Animations on Scroll */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Pipeline Step Line */
.pipeline-step::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -50%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--vector-lime) 0%, rgba(255,255,255,0.1) 100%);
  z-index: 0;
}

@media (max-width: 768px) {
  .pipeline-step::after {
    display: none;
  }
}

/* Section 2 Optical Blur-to-Focus Portal Entrance (Fixed In-Place) */
#seccion-portal-revelada {
  transition: filter 0.4s ease-out, opacity 0.4s ease-out;
  will-change: filter, opacity;
  overflow: hidden !important;
  pointer-events: none !important;
}

#seccion-portal-revelada a,
#seccion-portal-revelada button,
#seccion-portal-revelada .glass-panel {
  pointer-events: auto !important;
}

/* Transparent Neon Lime Outline for LA MARCA // EL DESTINO */
.lime-outline-text {
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  -webkit-text-stroke: 1.5px #c3f400;
  text-shadow: 0 0 15px rgba(195, 244, 0, 0.4);
}

/* Solid Neon Lime Styling for TU MARCA & EL ÚNICO DESTINO (Static Glow, No Blinking) */
.lime-shimmer-text {
  color: #c3f400;
  -webkit-text-fill-color: #c3f400;
  filter: drop-shadow(0 0 25px rgba(195, 244, 0, 0.45));
}

/* Cinematic Intro Video Fade In: Black & Blur -> Sharp 1.0s */
@keyframes intro-video-fadein-blur {
  0% {
    filter: blur(28px);
    opacity: 0;
    transform: scale(1.06);
  }
  20% {
    opacity: 0.3;
  }
  100% {
    filter: blur(0px);
    opacity: 1;
    transform: scale(1.0);
  }
}

.intro-video-cinematic-enter {
  animation: intro-video-fadein-blur 1.0s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: filter, opacity, transform;
}

/* ==================== KINETIC TEXT GRID BACKGROUND (APPEAR TEXT - ORIGINKIT) ==================== */
#kinetic-text-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: #C6FFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  z-index: 32;
  will-change: opacity, filter;
}

.kinetic-text-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  position: relative;
  will-change: transform;
  animation: kineticGridZoom 4s ease-in-out infinite;
}

.kinetic-text-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  white-space: nowrap;
  will-change: transform;
}

.kinetic-row-0 { animation: kineticDriftRight 4s ease-in-out infinite; }
.kinetic-row-1 { animation: kineticDriftLeft 4s ease-in-out infinite; }
.kinetic-row-2 { animation: kineticDriftCenter 4s ease-in-out infinite; }
.kinetic-row-3 { animation: kineticDriftLeft 4s ease-in-out infinite; }
.kinetic-row-4 { animation: kineticDriftRight 4s ease-in-out infinite; }

.kinetic-text-item {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.5;
  color: #4E008D;
  display: inline-block;
  user-select: none;
  letter-spacing: 0em;
}

.kinetic-word-wiping-ltr {
  animation: kineticWipeLTR 4s ease-in-out infinite;
}

.kinetic-word-wiping-rtl {
  animation: kineticWipeRTL 4s ease-in-out infinite;
}

@keyframes kineticGridZoom {
  0% { transform: scale(1); }
  25% { transform: scale(1.15); }
  50% { transform: scale(1); }
  100% { transform: scale(1); }
}

@keyframes kineticDriftRight {
  0% { transform: translateX(32px); }
  25% { transform: translateX(80px); }
  50% { transform: translateX(32px); }
  100% { transform: translateX(32px); }
}

@keyframes kineticDriftLeft {
  0% { transform: translateX(-32px); }
  25% { transform: translateX(-80px); }
  50% { transform: translateX(-32px); }
  100% { transform: translateX(-32px); }
}

@keyframes kineticDriftCenter {
  0% { transform: translateX(32px); }
  25% { transform: translateX(80px); }
  45% { transform: translateX(0px); }
  75% { transform: translateX(0px); }
  85% { transform: translateX(32px); }
  100% { transform: translateX(32px); }
}

@keyframes kineticWipeLTR {
  0%, 25% { clip-path: inset(0% 0% 0% 0%); }
  45%, 75% { clip-path: inset(0% 0% 0% 100%); }
  85%, 100% { clip-path: inset(0% 0% 0% 0%); }
}

@keyframes kineticWipeRTL {
  0%, 25% { clip-path: inset(0% 0% 0% 0%); }
  45%, 75% { clip-path: inset(0% 100% 0% 0%); }
  85%, 100% { clip-path: inset(0% 0% 0% 0%); }
}

/* Custom Glassmorphic Scrollbar for Section 3 Cards Stream */
.custom-scrollbar::-webkit-scrollbar {
  width: 5px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 9999px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(195, 244, 0, 0.45);
  border-radius: 9999px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: rgba(195, 244, 0, 0.85);
}

/* ==================== 06 // DIAGNÓSTICO LASER POINT -> HORIZONTAL LINE -> VERTICAL PLANE REVEAL ==================== */
#sec-06-diagnostico {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-color: #080808;
  z-index: 30;
  clip-path: inset(50% 0 50% 0);
  will-change: clip-path, opacity;
}

#diag-content-stage {
  opacity: 0;
  will-change: opacity, transform;
}

#diag-reveal-dot {
  will-change: transform, opacity;
  box-shadow: 0 0 35px #c3f400, 0 0 70px #c3f400, 0 0 100px #ffffff;
}

#diag-reveal-line {
  will-change: transform, opacity;
  box-shadow: 0 0 25px #c3f400, 0 0 50px #c3f400, 0 0 80px rgba(195, 244, 0, 0.6);
}

/* ==================== CHATBOT LEVITATION ANIMATION ==================== */
@keyframes chatbotLevitate {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(1deg);
  }
}

.animate-chatbot-levitate {
  animation: chatbotLevitate 3.8s ease-in-out infinite;
  will-change: transform;
}

/* ==================== CHATBOT ISOLATED SCROLL ENGINE ==================== */
#chatbot-window {
  overscroll-behavior: contain !important;
  touch-action: pan-y;
}

#chatbot-messages {
  min-height: 0 !important;
  max-height: 100% !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  scrollbar-width: thin;
  scrollbar-color: rgba(195, 244, 0, 0.6) rgba(255, 255, 255, 0.05);
}

#chatbot-messages::-webkit-scrollbar {
  width: 6px;
}

#chatbot-messages::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
}

#chatbot-messages::-webkit-scrollbar-thumb {
  background: rgba(195, 244, 0, 0.4);
  border-radius: 10px;
  border: 1px solid rgba(195, 244, 0, 0.2);
}

#chatbot-messages::-webkit-scrollbar-thumb:hover {
  background: rgba(195, 244, 0, 0.9);
  box-shadow: 0 0 10px #c3f400;
}



