:root {
  --bg: #0a0a12;
  --bg-soft: #12121d;
  --surface: #18182a;
  --surface-hover: #1f1f33;
  --ink: #f0f0f5;
  --ink-soft: #9999b0;
  --ink-faint: #5a5a78;
  --primary: #7c5cff;
  --primary-soft: #a78bfa;
  --accent: #00d4aa;
  --pink: #ff5cb8;
  --warn: #fbbf24;
  --danger: #ff5c7c;
  --border: rgba(255,255,255,.06);
  --border-hover: rgba(255,255,255,.15);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: all .2s; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 28px; position: relative; z-index: 2; }

/* Background */
.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  z-index: 0;
  pointer-events: none;
}
.orb1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.4), transparent 70%);
  top: -200px; left: -200px;
}
.orb2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255, 92, 184, 0.25), transparent 70%);
  top: 40%; right: -200px;
}
.bg-grid {
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.015) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 1;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 18, 0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 28px;
  gap: 32px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 18px; font-weight: 700;
  letter-spacing: -0.3px;
}
.brand-mark {
  color: var(--primary-soft);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.nav-menu { display: flex; gap: 32px; flex: 1; justify-content: center; }
.nav-menu a {
  font-size: 14px; font-weight: 500;
  color: var(--ink-soft);
}
.nav-menu a:hover { color: var(--ink); }
.nav-actions { display: flex; gap: 12px; align-items: center; }
.contact-btn {
  font-size: 13px;
  padding: 9px 18px;
  border: 1px solid var(--border-hover);
  border-radius: 100px;
  color: var(--ink);
  font-weight: 500;
}
.contact-btn:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.hamburger {
  display: none;
  background: transparent; border: none;
  width: 36px; height: 36px;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 4px;
  cursor: pointer; z-index: 60;
}
.hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); transition: all .25s; }
.hamburger.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); background: var(--primary-soft); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); background: var(--primary-soft); }

/* Hero */
.hero {
  padding: 100px 0 140px;
  text-align: center;
}
.hero-meta {
  display: inline-flex; gap: 10px; align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--ink-soft);
  margin-bottom: 36px;
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--bg-soft);
}
.dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 0 4px rgba(0, 212, 170, 0.2); }
.hero-label { letter-spacing: 1px; }

.hero-title {
  font-size: clamp(48px, 8vw, 104px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -3.5px;
  margin-bottom: 36px;
}
.hero-title em {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(135deg, var(--primary-soft), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -2px;
}

.hero-sub {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 680px;
  margin: 0 auto 48px;
  line-height: 1.6;
}

.hero-actions {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 80px;
}
.cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--primary), var(--pink));
  color: white;
  border-radius: 100px;
  font-size: 15px; font-weight: 600;
  box-shadow: 0 8px 24px rgba(124, 92, 255, 0.3);
  transition: all .2s;
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(124, 92, 255, 0.5); }
.cta-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink);
  border-radius: 100px;
  font-size: 15px; font-weight: 500;
  transition: all .2s;
}
.cta-ghost:hover { border-color: var(--primary); background: var(--surface-hover); }

.stats {
  display: flex; gap: 64px; justify-content: center; flex-wrap: wrap;
  padding-top: 60px;
  border-top: 1px solid var(--border);
  max-width: 720px; margin: 0 auto;
}
.stats div { text-align: center; }
.stats strong {
  display: block;
  font-family: 'Instrument Serif', serif;
  font-size: 44px;
  font-weight: 400;
  background: linear-gradient(135deg, var(--primary-soft), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -1px;
  line-height: 1;
}
.stats span { font-size: 12px; color: var(--ink-soft); margin-top: 6px; display: block; }

/* Section labels */
.section-label {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--primary-soft);
  padding: 5px 12px;
  background: rgba(124, 92, 255, 0.1);
  border-radius: 100px;
  margin-bottom: 16px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
section h2 {
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -2px;
}
section h2 em {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--primary-soft);
}
.section-head { text-align: center; margin-bottom: 60px; }
.section-sub { font-size: 17px; color: var(--ink-soft); margin-top: 16px; max-width: 640px; margin-left: auto; margin-right: auto; }

/* Estudio */
.estudio { padding: 100px 0; border-top: 1px solid var(--border); }
.estudio-grid {
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: 80px; align-items: start;
}
.estudio-text p {
  font-size: 17px; color: var(--ink-soft);
  margin-bottom: 20px;
  line-height: 1.7;
}

/* Servicios */
.servicios { padding: 100px 0; border-top: 1px solid var(--border); }
.serv-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}
.serv {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: all .25s;
  position: relative;
}
.serv:hover { border-color: var(--primary); transform: translateY(-2px); }
.serv-num {
  font-family: 'Instrument Serif', serif;
  font-size: 24px;
  color: var(--primary-soft);
  margin-bottom: 16px;
  font-style: italic;
}
.serv h3 {
  font-size: 20px; font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 10px;
}
.serv p { font-size: 14px; color: var(--ink-soft); margin-bottom: 18px; }
.serv-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.5px;
}

/* Trabajos */
.trabajos { padding: 100px 0; border-top: 1px solid var(--border); }
.trabajos-cta {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 48px;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.15), rgba(255, 92, 184, 0.05));
  border: 1px solid var(--primary);
  border-radius: 24px;
  transition: all .3s;
}
.trabajos-cta:hover { transform: translateY(-2px); border-color: var(--pink); }
.tc-eyebrow {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--primary-soft);
  margin-bottom: 12px;
}
.tc-info h3 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 14px;
}
.tc-info p { font-size: 15px; color: var(--ink-soft); }
.tc-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 20px;
  background: var(--surface);
  border-radius: 12px;
}
.tc-dot {
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--primary), var(--pink));
  border-radius: 8px;
  opacity: 0.4;
  transition: opacity .3s;
}
.tc-dot:nth-child(3n) { background: linear-gradient(135deg, var(--accent), var(--primary)); }
.tc-dot:nth-child(5) { opacity: 1; }
.tc-dot:nth-child(2), .tc-dot:nth-child(4), .tc-dot:nth-child(6), .tc-dot:nth-child(8) { opacity: 0.7; }
.trabajos-cta:hover .tc-dot { opacity: 0.85; }
.trabajos-cta:hover .tc-dot:nth-child(5) { opacity: 1; }

/* Contacto */
.contacto { padding: 100px 0; border-top: 1px solid var(--border); }
.contact-banner {
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid var(--warn);
  color: var(--warn);
  padding: 14px 20px;
  border-radius: 10px;
  text-align: center;
  font-size: 13px;
  margin-bottom: 40px;
  font-weight: 500;
}
.contact-head { text-align: center; margin-bottom: 60px; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  max-width: 980px;
  margin: 0 auto;
}
.contact-card {
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: all .2s;
  display: flex; flex-direction: column;
}
.contact-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.contact-card .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--ink-faint);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.contact-card .value {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.3px;
  word-break: break-word;
  margin-bottom: 4px;
}
.contact-card a.value:hover { color: var(--primary-soft); }
.contact-card .extra { font-size: 12px; color: var(--ink-soft); margin-top: auto; padding-top: 8px; }

/* Footer */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-size: 13px;
}
.footer strong { display: block; font-size: 14px; }
.footer span { color: var(--ink-soft); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--ink-soft); }
.footer-links a:hover { color: var(--ink); }
.footer-links a.muted { opacity: 0.4; font-size: 11px; }
.footer-links a.muted:hover { opacity: 1; color: var(--primary-soft); }

@media (max-width: 900px) {
  .estudio-grid, .serv-grid, .trabajos-cta { grid-template-columns: 1fr; gap: 32px; }
  .hamburger { display: flex; }
  .nav-actions { display: none; }
  .nav-menu {
    position: fixed; inset: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: center; justify-content: center;
    gap: 28px;
    transform: translateY(-100%);
    transition: transform .35s cubic-bezier(.2,.7,.3,1);
    z-index: 55;
    pointer-events: none;
    opacity: 0;
  }
  .nav-menu.open {
    transform: translateY(0);
    pointer-events: auto;
    opacity: 1;
  }
  .nav-menu a { font-size: 22px; color: var(--ink); }
  .stats { gap: 32px; padding-top: 40px; }
  .footer-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 600px) {
  .container { padding: 0 18px; }
  .nav-inner { padding: 14px 18px; gap: 12px; }
  .hero { padding: 60px 0 80px; }
  .hero-title { letter-spacing: -1.5px; }
  .hero-sub { font-size: 16px; margin-bottom: 36px; }
  .hero-actions { margin-bottom: 56px; gap: 12px; }
  .cta, .cta-ghost { padding: 14px 24px; font-size: 14px; }
  .stats { gap: 20px; }
  .stats strong { font-size: 32px; }
  .estudio, .servicios, .trabajos, .contacto { padding: 60px 0; }
  .estudio-text p { font-size: 15px; }
  .serv { padding: 24px 20px; }
  .serv h3 { font-size: 18px; }
  .trabajos-cta { padding: 28px 20px; }
  .tc-info h3 { font-size: 24px; }
  .contact-card { padding: 22px 18px; }
  .contact-card .value { font-size: 16px; }
}
