/* Landing-specific token overrides */
:root {
  --r-sm:  6px;
  --r-md:  12px;
  --r-lg:  16px;
  --pad:   clamp(1.25rem, 6vw, 4.5rem);
  --max-w: 1160px;
}

/* ═══════════════════════════
   RESET (landing additions)
═══════════════════════════ */
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.65;
  min-height: 100dvh;
}

/* ═══════════════════════════
   NAV
═══════════════════════════ */
nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9rem var(--pad);
  background: oklch(12% 0.014 250 / 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-brand {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.nav-brand span { color: var(--muted); }
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.82rem;
  color: var(--muted);
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--fg); }
.nav-cta {
  flex-shrink: 0;
  font-size: 0.82rem;
  padding: 0.42rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--fg);
  transition: border-color 0.15s, background 0.15s;
  white-space: nowrap;
}
.nav-cta:hover { border-color: var(--accent); background: var(--accent-dim); }

@media (max-width: 600px) { .nav-links { display: none; } }

/* ═══════════════════════════
   HERO
═══════════════════════════ */
.hero {
  display: grid;
  place-items: center;
  min-height: clamp(520px, 80dvh, 880px);
  padding: 5rem var(--pad) 4rem;
  position: relative;
  overflow: hidden;
}
/* subtle grid */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 52px 52px;
  opacity: 0.28;
  pointer-events: none;
}
/* vignette */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 75% 65% at 50% 50%, transparent 0%, var(--bg) 100%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 820px;
  width: 100%;
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: clamp(3rem, 9vw, 7rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  margin-bottom: 1.25rem;
}
.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--muted);
  max-width: 500px;
  margin: 0 auto 2.5rem;
  line-height: 1.55;
}
.hero-actions {
  display: flex;
  gap: 0.875rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.68rem 1.5rem;
  background: var(--accent);
  color: oklch(12% 0.014 250);
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--r-sm);
  transition: opacity 0.15s;
}
.btn-primary:hover { opacity: 0.86; }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.68rem 1.5rem;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.875rem;
  border-radius: var(--r-sm);
  transition: border-color 0.15s, color 0.15s;
}
.btn-ghost:hover { border-color: oklch(45% 0.018 250); color: var(--fg); }

/* terminal decoration */
.hero-terminal {
  display: inline-block;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  width: 100%;
  max-width: 560px;
}
.t-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface2);
}
.dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.dot-r { background: #FF5F57; }
.dot-y { background: #FEBC2E; }
.dot-g { background: #28C840; }
.t-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  margin: 0 auto;
}
.t-body {
  padding: 1rem 1.25rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.85;
}
.t-prompt { color: var(--accent); }
.t-cmd    { color: var(--fg); }
.t-out    { color: var(--muted); }
.t-green  { color: var(--success); }
.t-cursor {
  display: inline-block;
  width: 7px;
  height: 13px;
  background: var(--accent);
  vertical-align: middle;
  animation: blink 1.1s step-end infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* ═══════════════════════════
   SHARED
═══════════════════════════ */
.inner    { max-width: var(--max-w); margin: 0 auto; }
.s-label  {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
}
.s-title  {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}
.s-sub    {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 480px;
  margin-bottom: 2.75rem;
}

/* ═══════════════════════════
   SERVICES
═══════════════════════════ */
#servicios {
  padding: 5rem var(--pad);
  border-top: 1px solid var(--border);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.125rem;
}
.s-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.18s, background 0.18s;
}
.s-card:hover { border-color: oklch(38% 0.03 250); background: var(--surface2); }
.s-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--r-sm);
  background: var(--accent-dim);
  display: grid;
  place-items: center;
  color: var(--accent);
  flex-shrink: 0;
}
.s-icon svg { width: 20px; height: 20px; }
.s-card h3 { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; }
.s-card p  { font-size: 0.84rem; color: var(--muted); line-height: 1.5; flex: 1; }
.s-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.25rem;
}
.badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.18rem 0.55rem;
  border-radius: 99px;
}
.badge-ok {
  background: oklch(70% 0.16 145 / 0.14);
  color: var(--success);
}
.s-link {
  font-size: 0.78rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.2rem;
  transition: color 0.14s;
}
.s-link:hover { color: var(--accent); }

/* ═══════════════════════════
   COMING SOON
═══════════════════════════ */
#proximamente {
  padding: 5rem var(--pad);
  border-top: 1px solid var(--border);
}
.coming-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.c-card {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--r-lg);
  padding: 1.5rem;
}
.c-card h3 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--fg);
}
.c-card h3::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--warn);
  flex-shrink: 0;
}
.c-card p { font-size: 0.8rem; color: var(--muted); line-height: 1.5; }

/* ═══════════════════════════
   FOOTER
═══════════════════════════ */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-brand { font-family: var(--font-mono); font-size: 0.82rem; color: var(--accent); }
.footer-note  { font-size: 0.78rem; color: var(--muted); }

/* ═══════════════════════════
   RESPONSIVE
═══════════════════════════ */
@media (max-width: 768px) {
  .hero { padding-block: 4rem; }
  .services-grid { grid-template-columns: 1fr; }
  .coming-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: clamp(2.4rem, 13vw, 3.5rem); }
  .coming-grid { grid-template-columns: 1fr; }
  footer { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 360px) {
  .hero-actions { flex-direction: column; align-items: stretch; text-align: center; }
  .btn-primary, .btn-ghost { justify-content: center; }
}
