/* ============================================================
   BASE.CSS — Reset, body, tipografía, botones, secciones
   vortexlabs.cl
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-muted);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4,
.section-title,
.nav-logo-name,
.footer-brand-name {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

/* ── Botones ── */
.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 0.85rem 2rem;
  font-size: 0.88rem; font-weight: 600;
  letter-spacing: 0.05em;
  border: none; cursor: pointer; border-radius: 8px;
  text-decoration: none;
  transition: background .2s, transform .15s;
  display: inline-block;
}
.btn-primary:hover { background: var(--accent-dk); transform: translateY(-2px); }
.btn-primary:focus-visible, .btn-ghost:focus-visible {
  outline: 2px solid var(--accent-lt);
  outline-offset: 2px;
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  padding: 0.85rem 1.5rem;
  font-size: 0.85rem; font-weight: 400;
  border: 1px solid var(--border);
  cursor: pointer; border-radius: 8px;
  text-decoration: none;
  transition: border-color .2s, color .2s;
  display: inline-block;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-lt); }

/* ── Secciones ── */
.section { padding: 5rem 5vw; }
.section-alt { background: var(--bg-alt); }

/* ── Cabecera de sección ── */
.section-header { margin-bottom: 3.5rem; }

.section-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem; font-weight: 500;
  color: var(--accent-lt);
  letter-spacing: 0.18em; text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.section-eyebrow::before { content: '//'; opacity: 0.5; }

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--text);
  text-wrap: balance;
  line-height: 1.2;
}

.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 540px;
  margin-top: 0.75rem;
  line-height: 1.7;
}

/* ── Scroll reveal ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ── Cards base ── */
.card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 12px;
  padding: 1.5rem;
  transition: border-color .3s, transform .3s, box-shadow .3s;
  position: relative;
  overflow: hidden;
}
.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width .3s;
}
.card:hover::after { width: 100%; }

/* ── Responsive global ── */
@media (max-width: 900px) {
  .section { padding: 4rem 6vw; }
  .section-header { margin-bottom: 2.75rem; }
}
@media (max-width: 768px) {
  .section { padding: 3.5rem 6vw; }
}
@media (max-width: 480px) {
  .section { padding: 3rem 5.5vw; }
  .section-header { margin-bottom: 2.25rem; }
  .section-sub { max-width: 100%; }
}

/* ── Objetivos táctiles mínimos (44px) en pantallas táctiles ── */
@media (hover: none) and (pointer: coarse) {
  .btn-primary, .btn-ghost, .card, .service-card, .benefit-card { -webkit-tap-highlight-color: rgba(99,102,241,0.15); }
  .btn-primary, .btn-ghost { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
}
