/* ==========================================================================
   NEXUS DIGITAL LAB - ESTILOS PRINCIPALES (TECH LAB DARK MODE & HIGH CONVERSION)
   ========================================================================== */

:root {
  --bg-dark: #06070a;
  --bg-dark-card: #0d0f18;
  --bg-dark-surface: #121522;
  --cyan-neon: #00f2fe;
  --cyan-neon-hover: #38f9d7;
  --purple-electric: #9d4edd;
  --purple-electric-dark: #7b2cbf;
  --accent-glow-cyan: rgba(0, 242, 254, 0.35);
  --accent-glow-purple: rgba(157, 78, 221, 0.35);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-cyan: rgba(0, 242, 254, 0.3);
  --border-purple: rgba(157, 78, 221, 0.3);
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* Reset y base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  background-color: var(--bg-dark);
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: #e2e8f0;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  /* Malla geométrica de fondo sutil "Tech Lab" */
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--cyan-neon);
}

/* Layout Container */
.max-w-7xl {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
}
.max-w-4xl {
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}
.max-w-3xl {
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}
.max-w-2xl {
  max-width: 42rem;
}
.max-w-sm {
  max-width: 24rem;
}
.max-w-lg {
  max-width: 32rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* Padding & Spacing */
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-3 { padding-top: 0.75rem; }
.pt-4 { padding-top: 1rem; }
.pt-6 { padding-top: 1.5rem; }
.pt-8 { padding-top: 2rem; }
.pt-36 { padding-top: 9rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pb-6 { padding-bottom: 1.5rem; }
.pb-8 { padding-bottom: 2rem; }
.pb-10 { padding-bottom: 2.5rem; }
.pb-20 { padding-bottom: 5rem; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-3\.5 { padding: 0.875rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

@media (min-width: 640px) {
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .sm\:p-10 { padding: 2.5rem; }
  .sm\:pt-44 { padding-top: 11rem; }
  .sm\:pb-32 { padding-bottom: 8rem; }
}

@media (min-width: 1024px) {
  .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
  .md\:pt-44 { padding-top: 11rem; }
  .md\:pb-32 { padding-bottom: 8rem; }
}

/* Flex & Grid Systems */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-stretch { align-items: stretch; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }

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

@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sm\:flex-row { flex-direction: row; }
  .sm\:w-auto { width: auto; }
}

@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:hidden { display: none; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:col-span-3 { grid-column: span 3 / span 3; }
  .md\:col-span-4 { grid-column: span 4 / span 4; }
  .md\:col-span-5 { grid-column: span 5 / span 5; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .lg\:col-span-4 { grid-column: span 4 / span 4; }
  .lg\:col-span-5 { grid-column: span 5 / span 5; }
  .lg\:col-span-7 { grid-column: span 7 / span 7; }
  .lg\:col-span-8 { grid-column: span 8 / span 8; }
  .lg\:items-end { align-items: flex-end; }
}

/* Gaps */
.gap-1 { gap: 0.25rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-2\.5 { gap: 0.625rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

/* Positioning */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.-top-1 { top: -0.25rem; }
.-right-1 { right: -0.25rem; }
.-top-6 { top: -1.5rem; }
.-right-6 { right: -1.5rem; }
.-bottom-6 { bottom: -1.5rem; }
.-left-6 { left: -1.5rem; }
.-top-12 { top: -3rem; }
.-right-12 { right: -3rem; }

.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }
.-z-10 { z-index: -10; }

.pointer-events-none { pointer-events: none; }
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }

/* Sizing */
.w-full { width: 100%; }
.h-full { height: 100%; }
.w-1\.5 { width: 0.375rem; }
.h-1\.5 { height: 0.375rem; }
.w-2 { width: 0.5rem; }
.h-2 { height: 0.5rem; }
.w-2\.5 { width: 0.625rem; }
.h-2\.5 { height: 0.625rem; }
.w-3 { width: 0.75rem; }
.h-3 { height: 0.75rem; }
.w-4 { width: 1rem; }
.h-4 { height: 1rem; }
.w-5 { width: 1.25rem; }
.h-5 { height: 1.25rem; }
.w-6 { width: 1.5rem; }
.h-6 { height: 1.5rem; }
.w-7 { width: 1.75rem; }
.h-7 { height: 1.75rem; }
.w-8 { width: 2rem; }
.h-8 { height: 2rem; }
.w-10 { width: 2.5rem; }
.h-10 { height: 2.5rem; }
.w-12 { width: 3rem; }
.h-12 { height: 3rem; }
.w-14 { width: 3.5rem; }
.h-14 { height: 3.5rem; }
.w-16 { width: 4rem; }
.h-16 { height: 4rem; }
.h-20 { height: 5rem; }

/* Typography */
.font-sans { font-family: var(--font-sans); }
.font-mono { font-family: var(--font-mono); }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }

.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }

@media (min-width: 640px) {
  .sm\:text-xl { font-size: 1.25rem; }
  .sm\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .sm\:text-5xl { font-size: 3rem; line-height: 1.15; }
}

@media (min-width: 1024px) {
  .lg\:text-5xl { font-size: 3rem; line-height: 1.15; }
  .lg\:text-6xl { font-size: 3.75rem; line-height: 1.1; }
}

.text-left { text-align: left; }
.text-center { text-align: center; }
.uppercase { text-transform: uppercase; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
.leading-tight { line-height: 1.2; }
.leading-relaxed { line-height: 1.625; }

/* Colors & Accents */
.text-white { color: #ffffff; }
.text-black { color: #000000; }
.text-slate-200 { color: #e2e8f0; }
.text-slate-300 { color: #cbd5e1; }
.text-slate-400 { color: #94a3b8; }
.text-slate-500 { color: #64748b; }
.text-slate-950 { color: #020617; }
.text-cyan-300 { color: #67e8f9; }
.text-cyan-400 { color: var(--cyan-neon); }
.text-purple-300 { color: #d8b4fe; }
.text-purple-400 { color: var(--purple-electric); }
.text-sky-300 { color: #7dd3fc; }
.text-emerald-300 { color: #6ee7b7; }
.text-emerald-400 { color: #34d399; }
.text-amber-300 { color: #fcd34d; }
.text-rose-300 { color: #fda4af; }
.text-rose-400 { color: #fb7185; }
.text-pink-300 { color: #f472b6; }

.bg-dark { background-color: var(--bg-dark); }
.bg-black { background-color: #000000; }
.bg-black\/40 { background-color: rgba(0, 0, 0, 0.4); }
.bg-black\/50 { background-color: rgba(0, 0, 0, 0.5); }
.bg-black\/60 { background-color: rgba(0, 0, 0, 0.6); }
.bg-slate-900 { background-color: #0f172a; }
.bg-slate-900\/50 { background-color: rgba(15, 23, 42, 0.5); }
.bg-slate-900\/60 { background-color: rgba(15, 23, 42, 0.6); }
.bg-slate-900\/70 { background-color: rgba(15, 23, 42, 0.7); }
.bg-slate-900\/90 { background-color: rgba(15, 23, 42, 0.9); }
.bg-slate-950 { background-color: #020617; }
.bg-slate-950\/60 { background-color: rgba(2, 6, 23, 0.6); }
.bg-slate-950\/70 { background-color: rgba(2, 6, 23, 0.7); }
.bg-slate-950\/85 { background-color: rgba(2, 6, 23, 0.85); }
.bg-slate-950\/95 { background-color: rgba(2, 6, 23, 0.95); }
.bg-cyan-400 { background-color: var(--cyan-neon); }
.bg-cyan-950\/40 { background-color: rgba(8, 51, 68, 0.4); }
.bg-cyan-950\/60 { background-color: rgba(8, 51, 68, 0.6); }
.bg-cyan-950\/80 { background-color: rgba(8, 51, 68, 0.8); }
.bg-purple-600 { background-color: #9333ea; }
.bg-purple-950\/40 { background-color: rgba(59, 7, 100, 0.4); }
.bg-purple-950\/60 { background-color: rgba(59, 7, 100, 0.6); }
.bg-rose-950\/10 { background-color: rgba(76, 5, 25, 0.1); }
.bg-rose-950\/40 { background-color: rgba(76, 5, 25, 0.4); }
.bg-white\/5 { background-color: rgba(255, 255, 255, 0.05); }
.bg-white\/10 { background-color: rgba(255, 255, 255, 0.1); }

/* Borders & Rounded */
.border { border-width: 1px; border-style: solid; }
.border-2 { border-width: 2px; border-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-y { border-top-width: 1px; border-bottom-width: 1px; border-style: solid; }

.border-white\/5 { border-color: rgba(255, 255, 255, 0.05); }
.border-white\/10 { border-color: rgba(255, 255, 255, 0.1); }
.border-white\/15 { border-color: rgba(255, 255, 255, 0.15); }
.border-cyan-400\/40 { border-color: rgba(0, 242, 254, 0.4); }
.border-cyan-400\/60 { border-color: rgba(0, 242, 254, 0.6); }
.border-cyan-500\/20 { border-color: rgba(6, 182, 212, 0.2); }
.border-cyan-500\/30 { border-color: rgba(6, 182, 212, 0.3); }
.border-purple-400\/40 { border-color: rgba(192, 132, 252, 0.4); }
.border-purple-400\/60 { border-color: rgba(192, 132, 252, 0.6); }
.border-purple-500\/30 { border-color: rgba(168, 85, 247, 0.3); }
.border-purple-500\/40 { border-color: rgba(168, 85, 247, 0.4); }
.border-purple-500\/50 { border-color: rgba(168, 85, 247, 0.5); }
.border-emerald-400\/40 { border-color: rgba(52, 211, 153, 0.4); }
.border-rose-500\/20 { border-color: rgba(244, 63, 94, 0.2); }
.border-rose-500\/30 { border-color: rgba(244, 63, 94, 0.3); }

.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }
.rounded-t-xl { border-top-left-radius: 0.75rem; border-top-right-radius: 0.75rem; }
.rounded-b-xl { border-bottom-left-radius: 0.75rem; border-bottom-right-radius: 0.75rem; }

/* Backdrop Blur */
.backdrop-blur-md { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.backdrop-blur-xl { backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.backdrop-blur-2xl { backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px); }

/* Gradient Text */
.text-transparent { color: transparent; }
.bg-clip-text { -webkit-background-clip: text; background-clip: text; }
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops, #00f2fe, #9d4edd)); }
.from-cyan-400 { --tw-gradient-from: #00f2fe; --tw-gradient-stops: var(--tw-gradient-from), #38f9d7; }
.via-sky-300 { --tw-gradient-stops: var(--tw-gradient-from), #7dd3fc, #9d4edd; }
.to-purple-400 { --tw-gradient-to: #9d4edd; }

/* Effects & Transitions */
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 200ms; }
.transition-colors { transition-property: color, background-color, border-color; transition-duration: 200ms; }
.transition-transform { transition-property: transform; transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }

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

/* ==========================================================================
   COMPONENTES UI Y BOTONES DE ALTA CONVERSIÓN
   ========================================================================== */

/* Botón Neón Cian Principal (CTA) */
.btn-neon-cyan {
  background: var(--cyan-neon);
  color: #06070a;
  font-weight: 700;
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.45);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.btn-neon-cyan:hover {
  background: #38f9d7;
  box-shadow: 0 0 40px rgba(0, 242, 254, 0.8), 0 0 10px rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.btn-neon-cyan:active {
  transform: translateY(0);
}

/* Botón Secundario Morado Eléctrico */
.btn-cta-secondary {
  border: 1px solid var(--purple-electric);
  box-shadow: 0 0 15px rgba(157, 78, 221, 0.25);
  transition: all 0.25s ease;
}

.btn-cta-secondary:hover {
  border-color: #d8b4fe;
  box-shadow: 0 0 30px rgba(157, 78, 221, 0.6);
}

/* Floating Animations */
@keyframes floatAnimation {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

.animate-float {
  animation: floatAnimation 5s ease-in-out infinite;
}

.animate-float-delayed {
  animation: floatAnimation 5s ease-in-out infinite 2.5s;
}

/* Ambient Pulse */
@keyframes pulseSlow {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.08); }
}

.animate-pulse-slow {
  animation: pulseSlow 8s ease-in-out infinite;
}

/* Infinite Tech Stack Marquee (Ticker) */
.mask-gradient-x {
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 28s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Tech Item Hover Glow */
.tech-item {
  backdrop-filter: blur(8px);
  cursor: pointer;
}

/* Interactive Tabs */
.booking-tab {
  cursor: pointer;
  background: transparent;
  border: none;
}

.booking-tab.active {
  background: rgba(0, 242, 254, 0.2);
  color: var(--cyan-neon);
  border: 1px solid rgba(0, 242, 254, 0.4);
}

/* Form Styles */
input:focus, select:focus, textarea:focus {
  outline: none;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.3);
}

/* Terminal Typing Effect Mockup */
.terminal-command {
  color: #38bdf8;
  font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .hero-h1 {
    font-size: 2.25rem;
  }
}
