:root {
  --bg: #06080d;
  --surface: #0d1119;
  --surface-2: #121826;
  --ink: #eef2fa;
  --muted: #98a2b8;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #ffd23f;
  --accent-2: #7c9cff;
  --grad: linear-gradient(120deg, #ffd23f 0%, #ffb020 40%, #7c9cff 100%);
  --radius: 22px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }

h1, h2, h3 { margin: 0; line-height: 1.05; letter-spacing: -0.035em; }

.tag, .section-tag, .tile-idx, .nav-cta, .cta-note {
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

/* Encabezado translúcido */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 48px;
  background: rgba(6, 8, 13, 0.7);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--accent);
  color: #06080d;
  font-weight: 900;
  font-size: 0.8rem;
  letter-spacing: 0;
}

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a:not(.nav-cta) {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.92rem;
  transition: color 0.2s ease;
}
.site-nav a:not(.nav-cta):hover { color: var(--ink); }
.nav-cta {
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: #06080d;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 140px 48px 120px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 8, 13, 0.55) 0%, rgba(6, 8, 13, 0.92) 70%, var(--bg) 100%);
  z-index: 1;
  pointer-events: none;
}
.hero > * { z-index: 2; }
.hero > .hero-bg { z-index: 0; }
.hero > .hero-glow { z-index: 1; }

.hero-glow {
  position: absolute;
  top: -180px;
  right: -140px;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(124, 156, 255, 0.28), transparent 65%);
  pointer-events: none;
  filter: blur(10px);
}

.tag {
  position: relative;
  display: inline-block;
  margin: 0 0 28px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1 {
  position: relative;
  font-size: clamp(3rem, 9vw, 7.2rem);
  font-weight: 800;
  letter-spacing: -0.045em;
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  position: relative;
  max-width: 600px;
  margin: 32px 0 40px;
  font-size: 1.15rem;
  color: var(--muted);
}

.actions { position: relative; display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-block;
  padding: 16px 28px;
  border-radius: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary {
  background: var(--accent);
  color: #06080d;
  box-shadow: 0 10px 30px -10px rgba(255, 210, 63, 0.6);
}
.btn-ghost {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary:hover { box-shadow: 0 16px 36px -10px rgba(255, 210, 63, 0.75); }

/* Secciones */
section { padding: 96px 48px; max-width: 1200px; margin: 0 auto; }

.section-tag {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

h2 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 48px;
}

/* Bento de servicios */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.tile {
  position: relative;
  padding: 36px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 210, 63, 0.12), transparent 40%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.tile:hover { border-color: rgba(255, 210, 63, 0.35); transform: translateY(-3px); }
.tile:hover::before { opacity: 1; }

.tile-wide { grid-column: span 2; }

/* Tarjeta con foto de fondo */
.tile-photo { min-height: 320px; display: flex; align-items: flex-end; }
.tile-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  z-index: 0;
}
.tile-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 8, 13, 0.1) 0%, rgba(6, 8, 13, 0.95) 85%);
  z-index: 1;
}
.tile-content { position: relative; z-index: 2; }

.tile-idx {
  display: block;
  margin-bottom: 56px;
  color: var(--accent);
  font-size: 0.85rem;
}

.tile h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.tile p { margin: 0; color: var(--muted); max-width: 52ch; }

/* Proceso */
.process h2 { margin-bottom: 56px; }

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), transparent);
}

.timeline li { position: relative; padding-top: 44px; }

.dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(255, 210, 63, 0.15), 0 0 24px rgba(255, 210, 63, 0.6);
}

.timeline h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.02em; }
.timeline p { margin: 0; color: var(--muted); }

/* CTA */
.cta { padding-top: 40px; padding-bottom: 120px; }

.cta-box {
  position: relative;
  padding: 72px 56px;
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  text-align: left;
}
.cta-box::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 28px;
  padding: 1px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.6;
  pointer-events: none;
}
.cta-box h2 { max-width: 18ch; margin-bottom: 20px; font-size: clamp(2rem, 5vw, 3.6rem); }
.cta-box p { margin: 0; max-width: 560px; color: var(--muted); font-size: 1.1rem; }
.cta-btn { margin-top: 32px; }
.cta-note {
  display: inline-block;
  margin-top: 16px !important;
  padding: 8px 14px;
  border-radius: 8px;
  background: rgba(255, 210, 63, 0.12);
  color: var(--accent) !important;
  font-size: 0.85rem;
}

/* Footer */
.site-footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer p { margin: 0; }

/* Animación de aparición (solo si hay JS) */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }

/* Móvil */
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr; }
  .tile-wide { grid-column: auto; }
  .timeline { grid-template-columns: 1fr; gap: 36px; }
  .timeline::before { display: none; }
  .timeline li { padding-top: 0; padding-left: 36px; }
  .dot { top: 6px; }
}

@media (max-width: 600px) {
  .site-header { padding: 14px 20px; }
  .site-nav a:not(.nav-cta) { display: none; }
  .hero { padding: 96px 20px 80px; }
  section { padding: 72px 20px; }
  .site-footer { padding: 24px 20px; }
  .cta-box { padding: 48px 26px; }
  .tile { padding: 28px; }
  .tile-idx { margin-bottom: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .js-reveal .reveal { opacity: 1; transform: none; }
}
