:root {
  /* MONOCROMO PREMIUM (DARK AMOLED) */
  --bg-color: #000000;
  --text-color: #ffffff;
  --text-dim: #a1a1aa;
  --border-color: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.9);
  --ghost-gray: #080808;
  --accent: #ffffff;
  
  /* Alias para retrocompatibilidad */
  --void: var(--bg-color);
  --surface: #050505;
  --surface-glass: rgba(0, 0, 0, 0.8);
  --panel: #0a0a0a;
  --card: #0a0a0a;
  --raise: #111111;
  --line: var(--border-color);
  --line-mid: rgba(255, 255, 255, 0.2);
  --text: var(--text-color);
  --muted: var(--text-dim);
  --faint: #3f3f46;
  --cyan: var(--accent);
  --rose: #ff3b30;

  /* SWISS TYPOGRAPHY */
  --head: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --code: 'Fira Code', monospace;
}

[data-theme="light"] {
  /* MONOCROMO PREMIUM (PURE WHITE) */
  --bg-color: #ffffff;
  --text-color: #000000;
  --text-dim: #52525b;
  --border-color: rgba(0, 0, 0, 0.05);
  --border-strong: rgba(0, 0, 0, 0.9);
  --ghost-gray: #f9f9f9;
  --accent: #000000;

  /* Alias para retrocompatibilidad */
  --void: var(--bg-color);
  --surface: #fafafa;
  --surface-glass: rgba(255, 255, 255, 0.8);
  --panel: #ffffff;
  --card: #ffffff;
  --raise: #f4f4f5;
  --line: var(--border-color);
  --line-mid: rgba(0, 0, 0, 0.15);
  --text: var(--text-color);
  --muted: var(--text-dim);
  --faint: #d4d4d8;
  --cyan: var(--accent);
  --rose: #d70015;
}

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

.fa-solid, .fa-regular, .fa-brands, i {
  color: inherit !important;
}

img, video, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

html, body {
  height: 100%;
  background: var(--bg-color);
  color: var(--text-color);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  overflow-y: auto;
}

/* ── AMBIENT BACKGROUND ──────────── */
.bg-ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.12;
  animation: drift 20s ease-in-out infinite alternate;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--cyan), transparent);
  top: -200px;
  right: -100px;
  animation-duration: 25s;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--text), transparent);
  bottom: -150px;
  left: -100px;
  animation-duration: 30s;
  animation-direction: alternate-reverse;
  opacity: 0.05;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--muted), transparent);
  top: 40%;
  left: 50%;
  animation-duration: 18s;
  opacity: 0.04;
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(60px, 40px) scale(1.1); }
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* ── ANIMATIONS ──────────────────── */
@keyframes reveal {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.1); }
  70% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.reveal { animation: reveal 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards; }
.fade-in { animation: fadeIn 0.8s ease forwards; }
.slide-right { animation: slideInRight 0.5s ease forwards; }

/* Micro-interacciones */
.hover-lift { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.hover-lift:hover { transform: translateY(-2px); }

.hover-glow:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.12); }

/* ── SCROLLBAR GLOBAL ────────────── */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-dim);
}

/* SEO Visual Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
