* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: radial-gradient(125% 125% at 50% 10%, #000 40%, #63e 100%);
  --primary: #6b26d9;
  --primary-soft: #63e;
  --dj-cyan: #22d3ee;
  --dj-magenta: #e879f9;
  --card: #1c1c1c;
  --sidebar: #0a0a0a;
  --border: rgba(255, 255, 255, 0.10);
  --muted-foreground: #a1a1a1;
  --foreground: #f5f5f5;
  --radius-md: 6px;
  --radius-lg: 9px;
  --radius-2xl: 16px;
  --shadow-sm: 0 0 0 0 transparent;
  --shadow-md: 0 0 0 0 transparent;
  --shadow-lg: 0 0 0 0 transparent;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-display: clamp(2.25rem, 6vw, 4.5rem);
  --text-section: clamp(1.75rem, 4vw, 2.5rem);
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  background-attachment: fixed;
  color: var(--foreground);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.italic {
  font-style: italic;
}

.gradient-text {
  color: #8b5cf6;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 48px;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 10, 10, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 0 var(--border), 0 8px 32px rgba(107, 38, 217, 0.12);
}

.logo {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.025em;
  font-size: 22px;
}

nav a {
  color: var(--muted-foreground);
  text-decoration: none;
  margin: 0 16px;
  font-size: 14px;
  transition: color 0.15s ease;
}

nav a:hover,
nav a.active {
  color: var(--foreground);
}

.nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.nav-menu {
  display: contents;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--foreground);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.navbar.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.navbar.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.navbar.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.btn {
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  display: inline-block;
  font-family: inherit;
  transition: opacity 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.btn-secondary {
  background: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--foreground);
}

.btn-accent {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 0 0 1px rgba(107, 38, 217, 0.4), 0 4px 20px rgba(107, 38, 217, 0.35);
}

.btn-accent:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(107, 38, 217, 0.5), 0 8px 28px rgba(107, 38, 217, 0.45);
}

.full-width {
  width: 100%;
  padding: 16px;
  font-size: 14px;
}

.hero {
  position: relative;
  text-align: center;
  width: 100%;
  max-width: none;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 110px 24px 100px;
  overflow: visible;
}

.hero-content {
  position: relative;
  z-index: 4;
  max-width: 860px;
  margin: 0 auto;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 2;
}

.hero-glow--one {
  width: 480px;
  height: 480px;
  top: -140px;
  left: -140px;
  background: radial-gradient(circle, rgba(107, 38, 217, 0.35), transparent 70%);
}

.hero-glow--two {
  width: 420px;
  height: 420px;
  bottom: -120px;
  right: -120px;
  background: radial-gradient(circle, rgba(102, 51, 238, 0.3), transparent 70%);
}

.hero-video,
.hero-video-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-video {
  z-index: 0;
  object-fit: cover;
}

.hero-video-overlay {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(10, 10, 10, 0.55), rgba(10, 10, 10, 0.8)),
    radial-gradient(80% 60% at 50% 0%, rgba(107, 38, 217, 0.28), transparent 70%);
}

.hero.no-video .hero-video,
.hero.no-video .hero-video-overlay,
.hero.no-video .hero-sound {
  display: none;
}

.hero-sound {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 10, 0.5);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--muted-foreground);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.hero-sound:hover {
  color: var(--foreground);
  border-color: var(--primary);
}

.hero-sound[aria-pressed="true"] {
  color: var(--dj-cyan);
  border-color: var(--dj-cyan);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.4);
}

.hero-sound .icon-sound--on { display: none; }
.hero-sound[aria-pressed="true"] .icon-sound--on { display: block; }
.hero-sound[aria-pressed="true"] .icon-sound--off { display: none; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin-bottom: var(--space-6);
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 12px rgba(107, 38, 217, 0.8);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.hero h1 {
  font-family: var(--font-sans);
  font-size: var(--text-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin-bottom: 24px;
  text-wrap: balance;
}

.subtitle {
  color: var(--muted-foreground);
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto 40px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Se eliminaron las reglas de .metrics y sus variantes */

section {
  padding: 100px 48px;
  max-width: 1100px;
  margin: 0 auto;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted-foreground);
  text-align: center;
  margin-bottom: var(--space-3);
}

h2 {
  font-family: var(--font-sans);
  font-size: var(--text-section);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  text-align: center;
  text-wrap: balance;
}

.section-intro {
  color: var(--muted-foreground);
  text-align: center;
  max-width: 620px;
  margin: 0 auto 56px;
}

.division-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.division-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 32px;
  border-radius: var(--radius-2xl);
}

.division-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.division-card-link:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), 0 8px 32px rgba(107, 38, 217, 0.25);
}

.card-index {
  position: absolute;
  top: 24px;
  right: 24px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 1px;
  color: var(--muted-foreground);
  opacity: 0.6;
}

.card-cta {
  display: block;
  margin-top: 16px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
}

.card-arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.division-card-link:hover .card-arrow {
  transform: translateX(4px);
}

.tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--muted-foreground);
  text-transform: uppercase;
}

.division-card h3 {
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 12px 0;
}

.division-card p {
  color: var(--muted-foreground);
  font-size: 15px;
}

.platform-preview {
  text-align: center;
}

.contact {
  max-width: 1100px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.contact-intro {
  position: sticky;
  top: 120px;
}

.contact-intro .section-eyebrow,
.contact-intro h2 {
  text-align: left;
}

.contact-intro h2 {
  margin-bottom: var(--space-6);
}

.contact-copy {
  color: var(--muted-foreground);
  font-size: 15px;
  max-width: 380px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: flex;
  gap: 16px;
}

input,
select,
textarea {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--foreground);
  padding: 14px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: inherit;
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input::placeholder,
textarea::placeholder {
  color: var(--muted-foreground);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(107, 38, 217, 0.25);
}

select option {
  background: var(--card);
}

.form-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  align-items: center;
  justify-content: center;
}

.form-modal.visible {
  display: flex;
}

.form-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(4px);
  animation: form-modal-fade 0.2s ease;
}

.form-modal-card {
  position: relative;
  width: min(360px, calc(100vw - 48px));
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: var(--space-8) var(--space-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-4);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  animation: form-modal-in 0.25s ease;
}

.form-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: var(--muted-foreground);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  border-radius: var(--radius-md);
  transition: color 0.15s ease, background 0.15s ease;
}

.form-modal-close:hover {
  color: var(--foreground);
  background: rgba(255, 255, 255, 0.06);
}

.form-modal-icon {
  position: relative;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-modal-spinner,
.form-modal-check,
.form-modal-warn {
  display: none;
}

.form-modal-spinner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  animation: form-modal-spin 0.7s linear infinite;
}

.form-modal-check,
.form-modal-warn {
  width: 48px;
  height: 48px;
}

.form-modal-check {
  color: #34d399;
}

.form-modal-warn {
  color: #f87171;
}

.form-modal.is-sending .form-modal-spinner {
  display: block;
}

.form-modal.is-success .form-modal-check {
  display: block;
}

.form-modal.is-error .form-modal-warn {
  display: block;
}

.form-modal-message {
  color: var(--foreground);
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
  font-size: 14px;
  line-height: 1.5;
}

@keyframes form-modal-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes form-modal-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes form-modal-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 40px 48px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1100px;
  margin: 0 auto 20px;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  max-width: 320px;
}

.footer-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.footer-tagline {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-top: var(--space-2);
}

.footer-links .footer-label {
  display: block;
  margin-bottom: var(--space-4);
}

.footer-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer-link-row a {
  color: var(--muted-foreground);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s ease;
}

.footer-link-row a:hover {
  color: var(--foreground);
}

.footer-legal {
  text-align: center;
  color: var(--muted-foreground);
  font-size: 12px;
  max-width: 1100px;
  margin: 0 auto 16px;
}

.footer-legal a {
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-legal a:hover {
  color: var(--foreground);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  color: var(--muted-foreground);
  font-size: 13px;
  flex-wrap: wrap;
  gap: 8px;
}

.back-to-top {
  color: var(--muted-foreground);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.15s ease;
}

.back-to-top:hover {
  color: var(--foreground);
}

.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

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

.js .metrics .reveal:nth-child(1) { transition-delay: 0s; }
.js .metrics .reveal:nth-child(2) { transition-delay: 0.08s; }
.js .metrics .reveal:nth-child(3) { transition-delay: 0.16s; }
.js .metrics .reveal:nth-child(4) { transition-delay: 0.24s; }

.js .division-grid .reveal:nth-child(1) { transition-delay: 0s; }
.js .division-grid .reveal:nth-child(2) { transition-delay: 0.12s; }

.split-type .word,
.split-type .char {
  display: inline-block;
  position: relative;
}

.split-type .line {
  display: block;
}

.marquee {
  max-width: none;
  overflow: hidden;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.marquee-content {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
}

.marquee-word {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  will-change: transform;
}

.marquee-word--music {
  color: var(--dj-cyan);
}

.marquee-word--dj {
  color: var(--dj-magenta);
}

.marquee-sep {
  margin: 0 20px;
  color: var(--muted-foreground);
  opacity: 0.6;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .eyebrow-dot {
    animation: none;
  }
  .hero-video {
    display: none;
  }
  .marquee-track {
    animation: none;
  }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 16px 20px;
    flex-wrap: wrap;
    gap: 0;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-menu {
    display: none;
    flex-direction: column;
    flex-basis: 100%;
    gap: 4px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
  }
  .navbar.nav-open .nav-menu {
    display: flex;
  }
  nav {
    display: flex;
    flex-direction: column;
  }
  nav a {
    margin: 0;
    padding: 10px 4px;
  }
  .nav-actions {
    flex-direction: column;
    width: 100%;
    margin-top: 8px;
  }
  .btn {
    width: 100%;
    text-align: center;
  }
  .hero {
    padding: 110px 20px 60px;
  }
  section {
    padding: 60px 20px;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
    padding: 32px 20px;
    gap: 32px 16px;
  }
  .division-grid {
    grid-template-columns: 1fr;
  }
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .contact-intro {
    position: static;
  }
  .form-row {
    flex-direction: column;
  }
  .footer-top {
    flex-direction: column;
    text-align: left;
  }
  .footer-link-row {
    flex-direction: column;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ---------------------------------------------------------------------------
   Sub-pages (platform.html and future division pages)
   Additive only: new selectors, appended last so modifiers win the cascade.
   --------------------------------------------------------------------------- */

.hero--sub {
  min-height: auto;
  padding: 120px 24px 88px;
}

.logo a,
.logo a:visited {
  color: inherit;
  text-decoration: none;
}

.logo a:hover {
  color: inherit;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.step-number {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--space-3);
}

.step h4 {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: var(--space-2);
}

.step p {
  color: var(--muted-foreground);
  font-size: 14px;
}

.platform-cta {
  text-align: center;
}

.platform-cta h2 {
  margin-bottom: var(--space-8);
}

.js .feature-grid .reveal:nth-child(1) { transition-delay: 0s; }
.js .feature-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.js .feature-grid .reveal:nth-child(3) { transition-delay: 0.16s; }

.js .steps .reveal:nth-child(1) { transition-delay: 0s; }
.js .steps .reveal:nth-child(2) { transition-delay: 0.08s; }
.js .steps .reveal:nth-child(3) { transition-delay: 0.16s; }
.js .steps .reveal:nth-child(4) { transition-delay: 0.24s; }

@media (max-width: 768px) {
  .hero--sub {
    padding: 80px 20px 56px;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .steps {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------------------------
   Brand wordmark — navbar and footer
   The PNG is white artwork on transparency, so it needs no color treatment.
   Intrinsic width/height attributes on the <img> supply the aspect ratio,
   so `height` + `width: auto` cannot cause layout shift on load.
   --------------------------------------------------------------------------- */

.logo img {
  display: block;
  height: 24px;
  width: auto;
}

.logo a {
  display: inline-flex;
  align-items: center;
}

.footer-logo {
  display: block;
  height: 20px;
  width: auto;
}

@media (max-width: 768px) {
  .logo img {
    height: 20px;
  }
  .footer-logo {
    height: 18px;
  }
}
