/* ============================================================
   WHATSAFY BRIDGE - DARK THEME DESIGN SYSTEM
   Fuentes: Space Grotesk (titulos) + DM Sans (cuerpo)
   Colores: Tema oscuro premium con acentos WhatsApp green
   ============================================================ */

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

:root {
  --bg-base: #0a0a0b;
  --bg-raised: #111113;
  --bg-overlay: #1a1a1d;
  --bg-elevated: #222225;
  --bg-float: #2a2a2e;
  --text-primary: #fafafa;
  --text-secondary: #b4b4b8;
  --text-tertiary: #86868b;
  --text-disabled: #48484a;
  --green-900: #043832;
  --green-700: #075e54;
  --green-500: #128c7e;
  --green-400: #1aa88a;
  --green-300: #25d366;
  --green-200: #4fde88;
  --green-100: #7ee6a7;
  --border-subtle: rgba(255,255,255,0.06);
  --border-default: rgba(255,255,255,0.1);
  --border-strong: rgba(255,255,255,0.16);
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

body {
  font-family: var(--font-body);
  background: var(--bg-base);
  color: var(--text-secondary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

/* === NAV === */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10,10,11,0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; height: 72px;
}
.nav-logo { display: flex; align-items: center; gap: 8px; }
.nav-logo img { height: 32px; width: auto; }
.nav-logo span { font-family: var(--font-heading); font-size: 16px; font-weight: 600; color: var(--text-secondary); letter-spacing: -0.01em; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--text-tertiary); transition: color 0.25s; }
.nav-links a:hover, .nav-links a.active { color: var(--text-primary); }
.btn-nav {
  padding: 10px 24px; background: linear-gradient(135deg, #128c7e, #25d366);
  color: #fff; border-radius: 10px; font-size: 14px; font-weight: 600;
  transition: all 0.3s; box-shadow: 0 0 20px rgba(37,211,102,0.25);
}
.btn-nav:hover { transform: translateY(-1px); box-shadow: 0 0 30px rgba(37,211,102,0.45); }

/* === HERO === */
.hero {
  position: relative; padding: 160px 24px 120px;
  text-align: center; overflow: hidden; background: var(--bg-base);
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(7,94,84,0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(37,211,102,0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(18,140,126,0.08) 0%, transparent 50%);
}
.hero-orb {
  position: absolute; border-radius: 50%; filter: blur(80px);
  opacity: 0.35; animation: orb-float 20s ease-in-out infinite; pointer-events: none;
}
.hero-orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(37,211,102,0.35), transparent 70%);
  top: -10%; right: -5%;
}
.hero-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(18,140,126,0.35), transparent 70%);
  bottom: -10%; left: -5%; animation-delay: -7s;
}
.hero-orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(79,222,136,0.2), transparent 70%);
  top: 40%; left: 50%; animation-delay: -13s;
}
@keyframes orb-float {
  0%, 100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(30px,-20px) scale(1.05); }
  66% { transform: translate(-20px,15px) scale(0.95); }
}
.hero-content { position: relative; z-index: 2; max-width: 800px; margin: 0 auto; }
.hero h1 {
  font-family: var(--font-heading); font-size: 56px; font-weight: 700;
  color: var(--text-primary); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 24px;
}
.gradient-text {
  background: linear-gradient(135deg, #25d366, #4fde88, #128c7e);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero p { font-size: 18px; color: var(--text-tertiary); max-width: 600px; margin: 0 auto 40px; line-height: 1.7; }
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px;
  background: var(--bg-raised); border: 1px solid var(--border-subtle);
  border-radius: 100px; font-size: 13px; color: var(--text-tertiary); margin-bottom: 24px;
}
.hero-badge span { color: var(--green-300); font-weight: 600; }

/* === BOTONES === */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 36px; background: linear-gradient(135deg, #128c7e, #25d366);
  color: #fff; border-radius: 12px; font-size: 16px; font-weight: 600;
  font-family: var(--font-body); border: none; cursor: pointer; transition: all 0.3s;
  box-shadow: 0 0 20px rgba(37,211,102,0.35), 0 8px 24px rgba(0,0,0,0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(37,211,102,0.55), 0 12px 32px rgba(0,0,0,0.5);
}
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 36px; background: transparent; color: var(--text-primary);
  border-radius: 12px; font-size: 16px; font-weight: 500;
  font-family: var(--font-body); border: 1px solid var(--border-strong);
  cursor: pointer; transition: all 0.3s;
}
.btn-secondary:hover {
  border-color: var(--green-300); background: rgba(37,211,102,0.05);
  box-shadow: 0 0 20px rgba(37,211,102,0.1);
}

/* === SECCIONES === */
.section { padding: 100px 24px; position: relative; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-label {
  font-family: var(--font-body); font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--green-300); margin-bottom: 12px; text-align: center;
}
.section-title {
  font-family: var(--font-heading); font-size: 40px; font-weight: 700;
  color: var(--text-primary); text-align: center; margin-bottom: 16px; letter-spacing: -0.02em;
}
.section-desc {
  font-size: 16px; color: var(--text-tertiary); text-align: center;
  max-width: 600px; margin: 0 auto 56px; line-height: 1.7;
}
.section-divider { border: none; height: 1px; background: var(--border-subtle); max-width: 1200px; margin: 0 auto; }

/* === FEATURE CARDS === */
.features-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.feature-card {
  background: var(--bg-raised); border: 1px solid var(--border-subtle);
  border-radius: 20px; padding: 32px;
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1); position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, #075e54, #128c7e, #25d366, #128c7e, #075e54);
  opacity: 0; transition: opacity 0.4s;
}
.feature-card:hover {
  transform: translateY(-4px); border-color: var(--border-default);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 40px rgba(37,211,102,0.05);
}
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(18,140,126,0.2), rgba(37,211,102,0.1));
  border: 1px solid rgba(37,211,102,0.15);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.feature-icon svg {
  width: 24px; height: 24px; stroke: var(--green-300);
  stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round;
}
.feature-card h3 {
  font-family: var(--font-heading); font-size: 18px; font-weight: 600;
  color: var(--text-primary); margin-bottom: 8px;
}
.feature-card p { font-size: 14px; color: var(--text-tertiary); line-height: 1.7; }

/* === PASOS === */
.steps-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; position: relative; }
.steps-grid::before {
  content: ''; position: absolute; top: 44px;
  left: calc(16.67% + 40px); right: calc(16.67% + 40px);
  height: 2px; background: linear-gradient(90deg, transparent, var(--green-500), transparent); opacity: 0.3;
}
.step-card { text-align: center; padding: 24px; position: relative; z-index: 1; }
.step-number {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--bg-raised); border: 2px solid var(--green-500);
  color: var(--green-300); font-family: var(--font-heading);
  font-size: 24px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; box-shadow: 0 0 30px rgba(37,211,102,0.15); transition: all 0.3s;
}
.step-card:hover .step-number { box-shadow: 0 0 40px rgba(37,211,102,0.3); border-color: var(--green-300); }
.step-card h3 { font-family: var(--font-heading); font-size: 18px; font-weight: 600; color: var(--text-primary); margin-bottom: 8px; }
.step-card p { font-size: 14px; color: var(--text-tertiary); line-height: 1.6; }

/* === PRECIOS === */
.pricing-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; max-width: 800px; margin: 0 auto; }
.pricing-card {
  background: var(--bg-raised); border: 1px solid var(--border-subtle);
  border-radius: 24px; padding: 40px; transition: all 0.3s; position: relative;
}
.pricing-card.featured { border-color: var(--green-500); box-shadow: 0 0 60px rgba(37,211,102,0.1); }
.pricing-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, #128c7e, #25d366); color: #fff;
  padding: 5px 20px; border-radius: 100px; font-size: 12px; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
}
.pricing-card h3 { font-family: var(--font-heading); font-size: 22px; font-weight: 600; color: var(--text-primary); margin-bottom: 8px; }
.pricing-card .pricing-desc { font-size: 14px; color: var(--text-tertiary); margin-bottom: 24px; }
.pricing-price { font-family: var(--font-heading); font-size: 48px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.pricing-price .currency { font-size: 24px; vertical-align: top; }
.pricing-price .period { font-size: 16px; font-weight: 400; color: var(--text-tertiary); }
.pricing-trial { font-size: 13px; color: var(--green-300); font-weight: 500; margin-bottom: 24px; }
.pricing-features { list-style: none; margin: 24px 0; }
.pricing-features li {
  padding: 10px 0; font-size: 14px; color: var(--text-secondary);
  display: flex; align-items: flex-start; gap: 12px; border-bottom: 1px solid var(--border-subtle);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li::before {
  content: ''; width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2325d366' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}
.pricing-btn {
  display: block; width: 100%; text-align: center; padding: 14px; border-radius: 12px;
  font-size: 15px; font-weight: 600; font-family: var(--font-body);
  cursor: pointer; transition: all 0.3s; border: none; margin-top: 8px;
}
.pricing-btn.primary {
  background: linear-gradient(135deg, #128c7e, #25d366); color: #fff;
  box-shadow: 0 0 20px rgba(37,211,102,0.3);
}
.pricing-btn.primary:hover { box-shadow: 0 0 40px rgba(37,211,102,0.5); transform: translateY(-1px); }
.pricing-btn.ghost { background: transparent; color: var(--text-primary); border: 1px solid var(--border-strong); }
.pricing-btn.ghost:hover { border-color: var(--green-300); background: rgba(37,211,102,0.05); }

/* === STATS === */
.stats-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.stat-item {
  text-align: center; padding: 40px 24px; background: var(--bg-raised);
  border: 1px solid var(--border-subtle); border-radius: 20px; transition: all 0.3s;
}
.stat-item:hover { border-color: var(--border-default); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
.stat-value { display: block; font-family: var(--font-heading); font-size: 40px; font-weight: 700; color: var(--green-300); margin-bottom: 4px; }
.stat-label { font-size: 14px; color: var(--text-tertiary); font-weight: 500; }

/* === CTA === */
.cta-section { padding: 100px 24px; text-align: center; position: relative; overflow: hidden; }
.cta-bg { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 50%, rgba(18,140,126,0.12), transparent 60%); pointer-events: none; }
.cta-content { position: relative; z-index: 2; }
.cta-section h2 { font-family: var(--font-heading); font-size: 40px; font-weight: 700; color: var(--text-primary); margin-bottom: 16px; letter-spacing: -0.02em; }
.cta-section p { font-size: 16px; color: var(--text-tertiary); margin-bottom: 36px; max-width: 500px; margin-left: auto; margin-right: auto; }

/* === FOOTER === */
.footer { background: var(--bg-raised); border-top: 1px solid var(--border-subtle); padding: 64px 24px 32px; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3,1fr); gap: 40px; margin-bottom: 48px; }
.footer-brand img { height: 28px; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; color: var(--text-tertiary); line-height: 1.7; max-width: 280px; }
.footer h4 { font-family: var(--font-heading); font-size: 13px; font-weight: 600; color: var(--text-primary); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 10px; }
.footer a { font-size: 14px; color: var(--text-tertiary); transition: color 0.2s; }
.footer a:hover { color: var(--green-300); }
.footer-bottom { border-top: 1px solid var(--border-subtle); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--text-disabled); }

/* === PAGINAS LEGALES === */
.legal-page { max-width: 800px; margin: 0 auto; padding: 120px 24px 80px; }
.legal-page h1 { font-family: var(--font-heading); font-size: 40px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; letter-spacing: -0.02em; }
.legal-page .page-subtitle { font-size: 16px; color: var(--text-tertiary); margin-bottom: 48px; line-height: 1.7; }
.legal-page .last-updated { font-size: 14px; color: var(--text-tertiary); margin-bottom: 40px; padding-bottom: 24px; border-bottom: 1px solid var(--border-subtle); }
.legal-page h2 { font-family: var(--font-heading); font-size: 24px; font-weight: 600; color: var(--text-primary); margin-top: 48px; margin-bottom: 16px; }
.legal-page h3 { font-family: var(--font-heading); font-size: 18px; font-weight: 600; color: var(--text-primary); margin-top: 28px; margin-bottom: 12px; }
.legal-page p { margin-bottom: 16px; font-size: 15px; color: var(--text-secondary); line-height: 1.8; }
.legal-page ul, .legal-page ol { margin-bottom: 16px; padding-left: 24px; }
.legal-page li { margin-bottom: 8px; font-size: 15px; color: var(--text-secondary); line-height: 1.7; }
.legal-page strong { color: var(--text-primary); }
.legal-page a { color: var(--green-200); transition: color 0.2s; }
.legal-page a:hover { color: var(--green-300); text-decoration: underline; }
.legal-page table { width: 100%; border-collapse: collapse; margin: 20px 0 28px; font-size: 14px; }
.legal-page table th, .legal-page table td { text-align: left; padding: 12px 16px; border: 1px solid var(--border-subtle); }
.legal-page table th { background: var(--bg-overlay); font-weight: 600; color: var(--text-primary); }
.legal-page table td { color: var(--text-secondary); }
.legal-page .highlight-box { background: rgba(37,211,102,0.05); border-left: 4px solid var(--green-300); padding: 16px 20px; border-radius: 0 12px 12px 0; margin: 20px 0; }
.legal-page .highlight-box p { margin-bottom: 0; color: var(--green-200); }
.legal-page .contact-box, .legal-page .contact-info { background: var(--bg-overlay); border: 1px solid var(--border-subtle); border-radius: 16px; padding: 24px; margin: 24px 0; }
.legal-page .contact-box p:last-child, .legal-page .contact-info p:last-child { margin-bottom: 0; }
.legal-page .toc { background: var(--bg-overlay); border: 1px solid var(--border-subtle); border-radius: 16px; padding: 24px; margin: 24px 0 40px; }
.legal-page .toc-title { font-family: var(--font-heading); font-weight: 600; font-size: 16px; color: var(--text-primary); margin-bottom: 12px; }
.legal-page .toc a { color: var(--text-secondary); font-size: 14px; }
.legal-page .toc a:hover { color: var(--green-300); }
.legal-page .toc ol { margin-bottom: 0; }
.legal-page .toc li { margin-bottom: 6px; }
.legal-page .legal-section { margin-bottom: 8px; }
.legal-page .legal-header { margin-bottom: 32px; }
.legal-page .legal-updated { font-size: 14px; color: var(--text-tertiary); }

/* === FAQ === */
.faq-category { margin-bottom: 40px; }
.faq-category-title { font-family: var(--font-heading); font-size: 20px; font-weight: 600; color: var(--green-300); margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--border-subtle); }
.faq-item { border: 1px solid var(--border-subtle); border-radius: 12px; margin-bottom: 12px; overflow: hidden; background: var(--bg-raised); transition: all 0.3s; }
.faq-item:hover { border-color: var(--border-default); }
.faq-question { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; background: transparent; cursor: pointer; font-size: 15px; font-weight: 600; color: var(--text-primary); border: none; width: 100%; text-align: left; font-family: var(--font-body); line-height: 1.5; gap: 16px; }
.faq-question:hover { background: var(--bg-overlay); }
.faq-question .faq-icon { flex-shrink: 0; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; transition: transform 0.3s; }
.faq-question .faq-icon svg { width: 20px; height: 20px; stroke: var(--text-tertiary); stroke-width: 2; fill: none; }
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-item.active .faq-question { color: var(--green-300); }
.faq-answer-wrapper { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-answer { padding: 0 24px 20px; font-size: 14px; color: var(--text-secondary); line-height: 1.8; }
.faq-answer a { color: var(--green-200); }
.faq-answer ul, .faq-answer ol { padding-left: 20px; margin: 8px 0; }
.faq-answer li { margin-bottom: 4px; }
.faq-contact-box { background: var(--bg-raised); border: 1px solid var(--border-subtle); border-radius: 16px; padding: 32px; text-align: center; margin-top: 48px; }
.faq-contact-box h3 { font-family: var(--font-heading); font-size: 20px; font-weight: 600; color: var(--text-primary); margin-bottom: 8px; }
.faq-contact-box p { color: var(--text-tertiary); margin-bottom: 20px; }
.faq-contact-box .btn-primary { font-size: 15px; padding: 12px 32px; }

/* === SCREENSHOTS === */
.screenshots-tabs { display: flex; gap: 12px; justify-content: center; margin-bottom: 40px; flex-wrap: wrap; }
.screenshots-tab {
  padding: 10px 24px; border: 1px solid var(--border-subtle); border-radius: 100px;
  background: var(--bg-raised); color: var(--text-tertiary); font-size: 14px; font-weight: 500;
  font-family: var(--font-body); cursor: pointer; transition: all 0.3s;
}
.screenshots-tab:hover { border-color: var(--border-default); color: var(--text-secondary); }
.screenshots-tab.active { border-color: var(--green-500); color: var(--green-300); background: rgba(37,211,102,0.06); }
.screenshots-display { position: relative; max-width: 960px; margin: 0 auto; }
.screenshots-display img {
  width: 100%; border-radius: 16px; border: 1px solid var(--border-subtle);
  box-shadow: 0 24px 80px rgba(0,0,0,0.5), 0 0 60px rgba(37,211,102,0.05);
  display: none;
}
.screenshots-display img.active { display: block; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero { padding: 120px 24px 80px; }
  .hero h1 { font-size: 36px; }
  .hero p { font-size: 16px; }
  .features-grid, .steps-grid, .stats-grid { grid-template-columns: 1fr; }
  .steps-grid::before { display: none; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2,1fr); }
  .section-title { font-size: 28px; }
  .section { padding: 60px 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .legal-page { padding: 100px 24px 60px; }
  .legal-page h1 { font-size: 28px; }
  .legal-page table { font-size: 13px; }
  .legal-page table th, .legal-page table td { padding: 8px 10px; }
}
