/* ================================================================
   DESIGN 1 — Corporativo Tecnológico Premium
   Inspirado en: stripe.com · linear.app
   Concepto: Alta confianza, limpieza, orden
   Color marca: #EE3243 · Font: Inter
================================================================ */

:root {
  --red: #EE3243;
  --red-dark: #c41c2c;
  --red-light: #fef2f2;
  --red-mid: rgba(238,50,67,0.12);
  --text: #111827;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --surface: #f9fafb;
  --surface-2: #f3f4f6;
  --border: #e5e7eb;
  --border-strong: #d1d5db;
  --white: #ffffff;
  --dark: #0f172a;
  --dark-2: #1e293b;
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 20px 48px rgba(0,0,0,0.10), 0 4px 16px rgba(0,0,0,0.06);
  --shadow-red: 0 4px 20px rgba(238,50,67,0.35);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --container: 1200px;
  --nav-h: 68px;
  --section-py: 96px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; }

/* ---- Layout ---- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
section { padding: var(--section-py) 0; }
.section-alt { background: var(--surface); }

/* ---- Typography helpers ---- */
.label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 16px;
}
.section-title em { font-style: normal; color: var(--red); }
.section-sub {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 560px;
}
.sh { margin-bottom: 56px; }
.sh.center { text-align: center; }
.sh.center .section-sub { margin: 0 auto; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: all 0.15s ease;
  white-space: nowrap;
  line-height: 1.4;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-red);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border-strong);
}
.btn-outline:hover { border-color: var(--text-muted); background: var(--surface); }
.btn-lg { padding: 15px 32px; font-size: 16px; border-radius: var(--radius-lg); }
.btn-white { background: #fff; color: var(--red); }
.btn-white:hover { background: #f1f5f9; box-shadow: var(--shadow-md); }
.btn-ghost-white {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.3);
}
.btn-ghost-white:hover { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.6); }
.btn-block { width: 100%; }

/* ============================================================
   NAVBAR
============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo img { height: 34px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
  margin-left: 40px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s;
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a:hover { color: var(--text); }
.nav-links .has-badge::after {
  content: 'Nuevo';
  background: var(--red);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-login { font-size: 14px; font-weight: 500; color: var(--text-muted); padding: 8px 12px; transition: color 0.15s; border-radius: var(--radius-sm); }
.nav-login:hover { color: var(--text); background: var(--surface); }

/* ============================================================
   HERO
============================================================ */
.hero { padding: 72px 0 88px; overflow: hidden; }
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--red-light);
  color: var(--red);
  border: 1px solid rgba(238,50,67,0.2);
  border-radius: 100px;
  padding: 5px 14px 5px 8px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 24px;
}
.hero-badge-dot {
  width: 18px; height: 18px;
  background: var(--red);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 10px;
}
.hero-title {
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 20px;
}
.hero-title em { font-style: normal; color: var(--red); }
.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 460px;
}
.hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-note { font-size: 12px; color: var(--text-light); display: flex; align-items: center; gap: 4px; }
.hero-note i { color: var(--red); }
.hero-trust {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.trust-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--text-muted); font-weight: 500;
}
.trust-item i { color: var(--red); font-size: 13px; }

/* Browser frame */
.hero-visual { position: relative; }
.hero-visual::before {
  content: '';
  position: absolute;
  inset: -40px -80px;
  background: radial-gradient(ellipse at 60% 40%, rgba(238,50,67,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.browser-frame {
  background: var(--dark);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,0,0,0.12);
  position: relative;
}
.browser-chrome {
  background: var(--dark-2);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.b-dot { width: 11px; height: 11px; border-radius: 50%; }
.b-dot-r { background: #ff5f57; }
.b-dot-y { background: #febc2e; }
.b-dot-g { background: #28c840; }
.b-url {
  flex: 1;
  margin-left: 10px;
  background: rgba(255,255,255,0.08);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  font-family: 'Inter', monospace;
}
.browser-content img { width: 100%; display: block; }

/* ============================================================
   STATS BAND
============================================================ */
.stats-band {
  padding: 36px 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.stats-group { display: flex; gap: 48px; }
.stat-item { text-align: center; }
.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}
.stat-number strong { color: var(--red); }
.stat-label { font-size: 12px; color: var(--text-muted); font-weight: 500; letter-spacing: 0.01em; }
.stats-divider { width: 1px; height: 48px; background: var(--border); }
.stats-logos { display: flex; align-items: center; gap: 12px; }
.integ-badge {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface);
  transition: all 0.15s;
}
.integ-badge:hover { border-color: var(--border-strong); background: var(--white); }
.integ-badge i { font-size: 14px; color: var(--text); }

/* ============================================================
   WHY SECTION
============================================================ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.why-card {
  padding: 28px 24px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.2s ease;
}
.why-card:hover {
  border-color: rgba(238,50,67,0.35);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.why-icon {
  width: 48px; height: 48px;
  background: var(--red-light);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  color: var(--red);
  margin-bottom: 20px;
}
.why-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; line-height: 1.3; }
.why-card p { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

/* ============================================================
   MODULES GRID
============================================================ */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.module-card {
  padding: 24px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.2s;
  cursor: default;
}
.module-card:hover {
  border-color: rgba(238,50,67,0.4);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
.module-card:hover .module-icon { background: var(--red-light); }
.module-icon {
  width: 40px; height: 40px;
  background: var(--surface);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  color: var(--red);
  border: 1px solid var(--border);
  transition: background 0.2s;
}
.module-card h3 { font-size: 14px; font-weight: 700; color: var(--text); line-height: 1.3; }
.module-card p { font-size: 13px; color: var(--text-muted); line-height: 1.55; flex: 1; }
.module-more-link {
  text-align: center;
  margin-top: 40px;
  font-size: 14px;
  color: var(--text-muted);
}
.module-more-link a { color: var(--red); font-weight: 600; }
.module-more-link a:hover { text-decoration: underline; }

/* ============================================================
   DEMO / SCREENSHOTS
============================================================ */
.demo-inner {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 64px;
  align-items: center;
}
.demo-text .section-title { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.demo-text .section-sub { margin-bottom: 32px; }
.demo-feature-list { display: flex; flex-direction: column; gap: 12px; }
.demo-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--text-muted);
}
.demo-feature i { color: var(--red); margin-top: 3px; flex-shrink: 0; }
.demo-feature strong { color: var(--text); }
.screenshots-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.s-thumb {
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}
.s-thumb:hover { border-color: var(--red); box-shadow: var(--shadow-md); transform: scale(1.02); }
.s-thumb img { width: 100%; display: block; }

/* ============================================================
   RUBROS
============================================================ */
.rubros-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.rubro-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 16px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.rubro-card:hover {
  border-color: var(--red);
  background: var(--red-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}
.rubro-icon { font-size: 32px; line-height: 1; }
.rubro-name { font-size: 13px; font-weight: 700; color: var(--text); }
.rubro-desc { font-size: 11px; color: var(--text-muted); line-height: 1.4; }
.rubros-cta { text-align: center; margin-top: 32px; font-size: 14px; color: var(--text-muted); }
.rubros-cta a { color: var(--red); font-weight: 600; }

/* ============================================================
   TESTIMONIALS
============================================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.testimonial-card {
  padding: 32px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
}
.testimonial-stars { color: #F59E0B; font-size: 14px; letter-spacing: 2px; margin-bottom: 16px; }
.testimonial-text {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
  flex: 1;
  margin-bottom: 24px;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  font-size: 17px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.author-name { font-size: 14px; font-weight: 700; }
.author-biz { font-size: 12px; color: var(--text-muted); }

/* ============================================================
   PRICING
============================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 860px;
  margin: 0 auto;
}
.pricing-card {
  padding: 36px;
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--border);
  background: var(--white);
  display: flex;
  flex-direction: column;
}
.pricing-card.featured {
  border-color: var(--red);
  box-shadow: 0 0 0 4px var(--red-mid);
  position: relative;
}
.featured-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 16px;
  border-radius: 100px;
  white-space: nowrap;
}
.pricing-plan { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 8px; }
.pricing-price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 4px;
}
.pricing-price small { font-size: 1rem; font-weight: 400; color: var(--text-muted); letter-spacing: 0; }
.pricing-tagline { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.pricing-features { flex: 1; margin-bottom: 28px; }
.pf {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 0;
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.pf:last-child { border-bottom: none; }
.pf i { color: var(--red); flex-shrink: 0; margin-top: 3px; }
.pf.dim { color: var(--text-muted); }
.pf.dim i { color: var(--border); }
.pricing-note { font-size: 12px; color: var(--text-light); text-align: center; margin-top: 16px; }

/* ============================================================
   FAQ
============================================================ */
.faq-wrap { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  transition: color 0.15s;
}
.faq-q:hover { color: var(--red); }
.faq-q i {
  color: var(--red);
  flex-shrink: 0;
  font-size: 16px;
  transition: transform 0.25s ease;
}
.faq-item.open .faq-q i { transform: rotate(45deg); }
.faq-a {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.open .faq-a { max-height: 300px; padding-bottom: 20px; }

/* ============================================================
   CTA FINAL
============================================================ */
.cta-section {
  background: linear-gradient(160deg, #0f172a 0%, #1a1a3e 60%, #1e0a0e 100%);
  text-align: center;
  padding: 112px 0;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(238,50,67,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.cta-section .section-title { color: #fff; }
.cta-section .section-sub { color: rgba(255,255,255,0.65); margin: 0 auto 40px; }
.cta-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.cta-note { margin-top: 20px; font-size: 13px; color: rgba(255,255,255,0.4); }
.cta-note i { color: rgba(255,255,255,0.6); }

/* ============================================================
   FOOTER
============================================================ */
.footer {
  background: #0a0f1e;
  color: #64748b;
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-logo img { height: 30px; filter: brightness(0) invert(1); opacity: 0.8; margin-bottom: 16px; }
.footer-about { font-size: 14px; line-height: 1.7; margin-bottom: 24px; }
.footer-social { display: flex; gap: 10px; }
.social-btn {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  color: #64748b;
  font-size: 15px;
  transition: all 0.15s;
}
.social-btn:hover { background: var(--red); color: #fff; }
.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  color: #e2e8f0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.footer-col li { margin-bottom: 10px; }
.footer-col li a { font-size: 14px; color: #64748b; transition: color 0.15s; }
.footer-col li a:hover { color: #e2e8f0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a { color: #64748b; transition: color 0.15s; }
.footer-bottom a:hover { color: #e2e8f0; }

/* ============================================================
   WHATSAPP FLOAT
============================================================ */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  color: #fff;
  box-shadow: 0 4px 24px rgba(37,211,102,0.45);
  z-index: 9999;
  transition: all 0.2s;
  text-decoration: none;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 32px rgba(37,211,102,0.6); }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .modules-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .demo-inner { grid-template-columns: 1fr; }
  .hero-inner { gap: 48px; }
}
@media (max-width: 768px) {
  :root { --section-py: 64px; }
  .hero { padding: 48px 0 64px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero-title { font-size: 2.2rem; }
  .stats-inner { flex-direction: column; }
  .stats-divider { display: none; }
  .stats-logos { display: none; }
  .stats-group { justify-content: center; }
  .why-grid { grid-template-columns: 1fr; }
  .modules-grid { grid-template-columns: 1fr; }
  .rubros-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .screenshots-gallery { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .cta-actions { flex-direction: column; align-items: center; }
}

/* ============================================================
   AGREGADOS SITIO (sobre el prototipo v1)
============================================================ */
.author-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.author-biz a { color: inherit; }

.registro-form {
  display: flex;
  gap: 12px;
  max-width: 520px;
  margin: 0 auto;
}
.registro-form input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 16px 18px;
  font: inherit;
  font-size: 16px;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  outline: none;
}
.registro-form input[type="email"]:focus { border-color: var(--red); }
.registro-form button[disabled] { opacity: .6; cursor: wait; }
.registro-msg {
  max-width: 520px;
  margin: 16px auto 0;
  font-size: 15px;
  min-height: 1.4em;
}
.registro-msg.ok { color: #86efac; }
.registro-msg.error { color: #fca5a5; }
.cta-alt { margin-top: 20px; }

@media (max-width: 768px) {
  .registro-form { flex-direction: column; }
  .stats-group { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 16px; width: 100%; }
}
