:root {
  --bg-primary: #0F0F12;
  --bg-card: #18181D;
  --bg-surface: #121217;
  --border-subtle: #262632;
  --border-glow: #3E3466;
  --purple: #8B5CF6;
  --purple-bright: #A78BFA;
  --blue: #3B82F6;
  --cyan: #00D4FF;
  --emerald: #10B981;
  --amber: #F59E0B;
  --text-primary: #F4F4F8;
  --text-secondary: #9CA3AF;
  --text-muted: #6B7280;
  --grad-neon: linear-gradient(135deg, #8B5CF6 0%, #3B82F6 55%, #00D4FF 100%);
  --grad-purple-blue: linear-gradient(90deg, #8B5CF6 0%, #3B82F6 100%);
  --radius-card: 16px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

/* Fondo ambiental sutil */
.bg-ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(680px circle at 18% 12%, rgba(139, 92, 246, 0.14), transparent 60%),
    radial-gradient(560px circle at 84% 18%, rgba(0, 212, 255, 0.10), transparent 58%),
    radial-gradient(600px circle at 50% 85%, rgba(59, 130, 246, 0.08), transparent 60%);
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 25%, black 30%, transparent 80%);
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 22px;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(15, 15, 18, 0.78);
  border-bottom: 1px solid rgba(38, 38, 50, 0.85);
}

.nav-inner {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}

.brand img {
  width: 34px;
  height: 34px;
  filter: drop-shadow(0 0 12px rgba(139, 92, 246, 0.45));
}

.brand-tag {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(139, 92, 246, 0.16);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: var(--purple-bright);
  letter-spacing: 0.06em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.18s ease;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: 10px;
  padding: 11px 20px;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.16s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--grad-neon);
  color: #ffffff;
  box-shadow: 0 8px 28px rgba(139, 92, 246, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 34px rgba(0, 212, 255, 0.36);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.btn-secondary:hover {
  border-color: var(--purple);
  background: #202029;
}

.btn-sm {
  padding: 8px 15px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 14px 26px;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

/* Hero */
.hero {
  padding: 72px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: center;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(24, 24, 29, 0.92);
  border: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--purple-bright);
  margin-bottom: 18px;
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px var(--emerald);
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.15rem, 4.4vw, 3.35rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

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

.hero-desc {
  margin: 0 0 28px;
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 520px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Mockup Interactivo de la App */
.app-showcase {
  background: var(--bg-primary);
  border: 1px solid #2F2F42;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.65),
    0 0 42px rgba(139, 92, 246, 0.16);
}

.app-topbar-line {
  height: 2px;
  background: var(--grad-neon);
}

.app-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #20202C;
  background: #121217;
}

.app-title-left {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.app-title-left img {
  width: 22px;
  height: 22px;
}

.app-pro-pill {
  font-size: 0.65rem;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: var(--emerald);
  font-weight: 700;
}

.app-window-dots {
  display: flex;
  gap: 7px;
}

.app-window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2C2C3A;
}

.app-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mock-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 14px;
}

.mock-hero-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: border-color 0.2s ease;
}

.mock-hero-status.active {
  border-color: rgba(16, 185, 129, 0.45);
}

.mock-hero-status.paused {
  border-color: rgba(245, 158, 11, 0.5);
}

.mock-status-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mock-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 12px var(--emerald);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.mock-hero-status.paused .mock-dot {
  background: var(--amber);
  box-shadow: 0 0 12px var(--amber);
}

.mock-status-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--emerald);
}

.mock-hero-status.paused .mock-status-title {
  color: var(--amber);
}

.mock-status-sub {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.mock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.mock-row:last-child {
  margin-bottom: 0;
}

.mock-label {
  font-size: 0.84rem;
  font-weight: 600;
}

.mock-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.mock-keycap {
  min-width: 72px;
  text-align: center;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--bg-surface);
  border: 1px solid #35354B;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease;
}

.mock-keycap:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.mock-switch {
  position: relative;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: #282838;
  border: 1px solid #3B3B52;
  cursor: pointer;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.mock-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #d1d5db;
  transition: transform 0.2s ease, background 0.2s ease;
}

.mock-switch.on {
  background: var(--grad-purple-blue);
  border-color: var(--purple);
}

.mock-switch.on::after {
  transform: translateX(19px);
  background: #ffffff;
}

.mock-slider-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.mock-slider {
  flex: 1;
  accent-color: var(--purple);
  cursor: pointer;
}

.mock-ms {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cyan);
  min-width: 46px;
  text-align: right;
}

.mock-footer-tip {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  padding-top: 2px;
}

/* Trust Strip */
.trust-strip {
  border-top: 1px solid rgba(38, 38, 50, 0.8);
  border-bottom: 1px solid rgba(38, 38, 50, 0.8);
  background: rgba(18, 18, 23, 0.65);
  padding: 20px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  text-align: center;
}

.trust-item strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
}

.trust-item span {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* Secciones generales */
.section {
  padding: 84px 0;
}

.section-header {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 48px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 10px;
}

.section-header h2 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 3.2vw, 2.45rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-header p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 24px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(139, 92, 246, 0.65);
  box-shadow: 0 14px 36px rgba(139, 92, 246, 0.12);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(139, 92, 246, 0.14);
  border: 1px solid rgba(139, 92, 246, 0.35);
  color: var(--purple-bright);
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  font-weight: 700;
}

.feature-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Cómo funciona */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 26px 24px;
  position: relative;
}

.step-num {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--grad-neon);
  color: white;
  font-weight: 800;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.step-card h3 {
  margin: 0 0 8px;
  font-size: 1.06rem;
}

.step-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Precios */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.price-card.featured {
  border-color: var(--purple);
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.12) 0%, var(--bg-card) 42%);
  box-shadow: 0 18px 50px rgba(139, 92, 246, 0.22);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad-neon);
  color: white;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.price-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.price-tagline {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.price-amount {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 6px;
}

.price-amount .value {
  font-size: 2.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.price-amount .period {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.price-note {
  font-size: 0.8rem;
  color: var(--cyan);
  min-height: 20px;
  margin-bottom: 20px;
}

.price-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.price-list li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.price-list li::before {
  content: "✓";
  color: var(--emerald);
  font-weight: 800;
}

/* FAQ */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: transparent;
  border: 0;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.96rem;
  font-weight: 600;
  padding: 18px 20px;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.faq-question:hover {
  background: rgba(255, 255, 255, 0.02);
}

.faq-chevron {
  color: var(--purple-bright);
  transition: transform 0.2s ease;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 20px 18px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.faq-item.open .faq-answer {
  display: block;
}

/* Banner Descarga / CTA final */
.cta-banner {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(0, 212, 255, 0.12));
  border: 1px solid rgba(139, 92, 246, 0.45);
  border-radius: 20px;
  padding: 46px 32px;
  text-align: center;
}

.cta-banner h2 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.cta-banner p {
  margin: 0 auto 24px;
  max-width: 560px;
  color: var(--text-secondary);
}

.sha-box {
  margin: 18px auto 0;
  max-width: 560px;
  background: rgba(15, 15, 18, 0.72);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.sha-box code {
  color: var(--text-secondary);
  font-family: Consolas, monospace;
  word-break: break-all;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 36px 0;
  margin-top: 56px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text-primary);
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(6, 6, 10, 0.78);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-card {
  width: 100%;
  max-width: 470px;
  background: var(--bg-card);
  border: 1px solid #35354B;
  border-radius: 16px;
  padding: 26px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7);
}

.modal-card h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.modal-card p {
  margin: 0 0 14px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.modal-steps {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 18px;
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.modal-steps ol {
  margin: 0;
  padding-left: 18px;
}

.modal-steps li {
  margin-bottom: 6px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Páginas legales */
.legal-page {
  padding: 56px 0 84px;
}

.legal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 34px;
  max-width: 820px;
  margin: 0 auto;
}

.legal-card h1 {
  margin-top: 0;
  font-size: 2rem;
}

.legal-card h2 {
  margin-top: 26px;
  font-size: 1.15rem;
  color: var(--purple-bright);
}

.legal-card p, .legal-card li {
  color: var(--text-secondary);
  font-size: 0.94rem;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .features-grid,
  .steps-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-links {
    display: none;
  }
}
