/* ─────────────────────────────────────────────────────────────
   TheVortiq TV — sistema de diseño de la landing
   Estética: dark premium, gradientes complejos, glassmorphism ligero.
   Inspiración: Linear · Vercel · Stripe.
   ───────────────────────────────────────────────────────────── */

:root {
  --bg: #07070c;
  --bg-soft: #0d0d16;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-strong: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f4f4fb;
  --text-soft: #b4b4c8;
  --text-dim: #6f6f86;
  --accent: #8b5cf6;
  --accent-2: #22d3ee;
  --accent-3: #ec4899;
  --radius: 18px;
  --maxw: 1120px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

/* Fondo con orbes de gradiente flotantes */
.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.bg-orbs span {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  animation: float 22s ease-in-out infinite;
}
.bg-orbs span:nth-child(1) {
  width: 520px;
  height: 520px;
  top: -120px;
  left: -80px;
  background: radial-gradient(circle at 30% 30%, #7c3aed, transparent 70%);
}
.bg-orbs span:nth-child(2) {
  width: 460px;
  height: 460px;
  top: 20%;
  right: -120px;
  background: radial-gradient(circle at 60% 40%, #0891b2, transparent 70%);
  animation-delay: -7s;
}
.bg-orbs span:nth-child(3) {
  width: 400px;
  height: 400px;
  bottom: -140px;
  left: 30%;
  background: radial-gradient(circle at 50% 50%, #db2777, transparent 70%);
  animation-delay: -14s;
  opacity: 0.35;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.08); }
  66% { transform: translate(-30px, 25px) scale(0.95); }
}

/* Layout */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* Navbar */
header.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(7, 7, 12, 0.6);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 650;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}
.brand .logo {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 6px 20px -6px var(--accent);
}
.brand .logo svg { width: 19px; height: 19px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--text); }

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 550;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.2s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 8px 28px -10px var(--accent);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px -10px var(--accent);
}
.btn-ghost {
  background: var(--surface-strong);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }

/* Hero */
.hero {
  position: relative;
  padding: 120px 0 90px;
  text-align: center;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-soft);
  margin-bottom: 30px;
}
.pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18);
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin-bottom: 24px;
}
.gradient-text {
  background: linear-gradient(120deg, #c4b5fd 10%, #67e8f9 50%, #f9a8d4 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p.sub {
  font-size: clamp(1.05rem, 2.2vw, 1.28rem);
  color: var(--text-soft);
  max-width: 640px;
  margin: 0 auto 40px;
}
.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Ventana mockup */
.mockup {
  margin: 70px auto 0;
  max-width: 900px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
  backdrop-filter: blur(10px);
  overflow: hidden;
  box-shadow: 0 40px 120px -40px rgba(139, 92, 246, 0.5);
}
.mockup-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.mockup-bar i {
  width: 12px; height: 12px; border-radius: 50%; display: inline-block;
}
.mockup-bar i:nth-child(1) { background: #ff5f57; }
.mockup-bar i:nth-child(2) { background: #febc2e; }
.mockup-bar i:nth-child(3) { background: #28c840; }
.mockup-body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  padding: 26px;
}
.pipe-step {
  padding: 18px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: left;
}
.pipe-step .k {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.pipe-step .v { font-weight: 600; font-size: 0.98rem; }

/* Secciones */
section.block { padding: 90px 0; }
.section-head {
  max-width: 620px;
  margin-bottom: 56px;
}
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--accent-2);
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.section-head p { color: var(--text-soft); font-size: 1.08rem; }

/* Grid de features */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.card {
  padding: 30px;
  border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
  border: 1px solid var(--border);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}
.card .ico {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  margin-bottom: 20px;
  color: var(--accent-2);
}
.card .ico svg { width: 22px; height: 22px; }
.card h3 { font-size: 1.18rem; margin-bottom: 10px; letter-spacing: -0.01em; }
.card p { color: var(--text-soft); font-size: 0.97rem; }

/* Franja de redes */
.networks {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 12px;
}
.network-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-soft);
  font-weight: 500;
}
.network-chip svg { width: 18px; height: 18px; }

/* CTA final */
.cta-band {
  position: relative;
  margin: 40px auto;
  max-width: var(--maxw);
  border-radius: 26px;
  padding: 70px 40px;
  text-align: center;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: radial-gradient(circle at 50% 0%, rgba(139,92,246,0.25), transparent 60%),
    linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
}
.cta-band h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.cta-band p { color: var(--text-soft); margin-bottom: 30px; }

/* Footer */
footer.site {
  border-top: 1px solid var(--border);
  padding: 54px 0 40px;
  margin-top: 40px;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 30px;
}
.footer-grid .about { max-width: 320px; }
.footer-grid .about p { color: var(--text-dim); font-size: 0.9rem; margin-top: 12px; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.92rem;
  margin-bottom: 11px;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-dim);
  font-size: 0.86rem;
}

/* ── Páginas legales ── */
.legal {
  max-width: 820px;
  margin: 0 auto;
  padding: 70px 24px 100px;
}
.legal .kicker {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-2);
  font-weight: 600;
  margin-bottom: 14px;
}
.legal h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 12px;
}
.legal .updated { color: var(--text-dim); font-size: 0.92rem; margin-bottom: 46px; }
.legal h2 {
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  margin: 44px 0 14px;
  padding-top: 10px;
}
.legal h3 { font-size: 1.1rem; margin: 26px 0 10px; color: var(--text); }
.legal p, .legal li { color: var(--text-soft); margin-bottom: 14px; }
.legal ul, .legal ol { padding-left: 22px; margin-bottom: 16px; }
.legal li { margin-bottom: 8px; }
.legal a { color: #a5b4fc; text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: #c7d2fe; }
.legal strong { color: var(--text); font-weight: 600; }
.legal .toc {
  padding: 22px 26px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  margin-bottom: 40px;
}
.legal .toc h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 12px;
}
.legal .toc ol { margin-bottom: 0; }
.legal .toc a { text-decoration: none; }
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.92rem;
  margin-bottom: 40px;
}
.legal-back:hover { color: var(--text); }

/* Animación de entrada al hacer scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 720px) {
  .nav-links { display: none; }
  .hero { padding: 80px 0 60px; }
  section.block { padding: 64px 0; }
}
