/* ─────────────────────────────────────────────── */
/* RESET BÁSICO                                   */
/* ─────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

/* ─────────────────────────────────────────────── */
/* VARIABLES                                      */
/* ─────────────────────────────────────────────── */
:root {
  --bg-main: #020617;
  --bg-alt: #050816;
  --bg-elevated: #050816;
  --bg-soft: #0b1120;

  --text-main: #f9fafb;
  --text-muted: #9ca3b7;
  --text-soft: #6b7280;

  --accent: #4f7dff;
  --accent-soft: #2136a3;
  --accent-glow: rgba(79, 125, 255, 0.4);
  --accent-amber: #fbbf24;
  --accent-green: #22c55e;

  --border-subtle: rgba(148, 163, 184, 0.28);
  --border-strong: rgba(148, 163, 184, 0.5);

  --radius-lg: 20px;
  --radius-md: 16px;

  --shadow-soft: 0 26px 70px rgba(15, 23, 42, 0.9);
  --shadow-subtle: 0 18px 40px rgba(15, 23, 42, 0.7);

  --transition-fast: 0.18s ease-out;
  --transition-med: 0.28s ease-out;
}

/* ─────────────────────────────────────────────── */
/* BASE                                           */
/* ─────────────────────────────────────────────── */
body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;

  /* Fondo tipo Stripe/Linear, contínuo */
  background:
    radial-gradient(circle at top left, #1e293b 0, transparent 55%),
    radial-gradient(circle at top right, #111827 0, transparent 65%),
    radial-gradient(circle at bottom, #020617 0, #020617 60%, #000 100%);
}

.page-shell {
  min-height: 100vh;
}

/* LINKS Y BOTONES */
a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: #7fa0ff;
}

/* BOTONES */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition:
    background var(--transition-med),
    border-color var(--transition-med),
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    color var(--transition-med);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #7f9dff);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 20px 55px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 26px 70px var(--accent-glow);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.4);
  color: var(--text-main);
}

.btn-ghost:hover {
  background: rgba(148, 163, 184, 0.1);
}

.btn-block {
  width: 100%;
}

/* ─────────────────────────────────────────────── */
/* NAVBAR                                         */
/* ─────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    to bottom,
    rgba(2, 6, 23, 0.92),
    rgba(2, 6, 23, 0.86),
    rgba(2, 6, 23, 0.82)
  );
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-logo {
  height: 34px;
  width: auto;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.7);
}

.navbar-brand {
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.03em;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-link {
  font-size: 14px;
  color: var(--text-muted);
  transition: color var(--transition-fast), opacity var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-main);
  opacity: 1;
}

.nav-link-cta {
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: radial-gradient(circle at top left, #0f172a, #020617);
  color: var(--text-main);
}

/* NAV TOGGLE (MOBILE) */
.navbar-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 4px;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.navbar-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text-main);
  border-radius: 999px;
}

/* ─────────────────────────────────────────────── */
/* HERO                                           */
/* ─────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 70px 0 64px;
  overflow: hidden;
}

.hero-background-orbit {
  position: absolute;
  inset: -280px;
  background:
    radial-gradient(circle at top left, rgba(79, 125, 255, 0.46) 0, transparent 55%),
    radial-gradient(circle at bottom right, rgba(45, 212, 191, 0.35) 0, transparent 65%);
  opacity: 0.7;
  pointer-events: none;
  animation: heroGlow 20s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.65;
  }
  50% {
    transform: translate3d(-20px, 10px, 0) scale(1.06);
    opacity: 0.95;
  }
  100% {
    transform: translate3d(14px, -10px, 0) scale(1.08);
    opacity: 0.8;
  }
}

.hero-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.05fr);
  gap: 54px;
  align-items: center;
}

/* HERO LEFT */
.hero-left {
  max-width: 640px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.6);
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.hero h1 {
  font-size: 44px;
  line-height: 1.1;
  margin: 0 0 18px;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0 0 26px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.meta-item {
  min-width: 130px;
}

.meta-label {
  display: block;
  font-size: 11px;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.meta-value {
  display: block;
  font-size: 14px;
  font-weight: 500;
}

/* HERO RIGHT · MOCKUP */
.hero-right {
  display: flex;
  justify-content: flex-end;
}

.mockup-shell {
  width: 100%;
  max-width: 430px;
  background: radial-gradient(circle at top left, rgba(79, 125, 255, 0.18), rgba(15, 23, 42, 0.98));
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  backdrop-filter: blur(22px);
  transform-origin: center;
  animation: mockupFloat 9s ease-in-out infinite alternate;
}

@keyframes mockupFloat {
  0% {
    transform: translateY(0px);
  }
  100% {
    transform: translateY(-6px);
  }
}

.mockup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: linear-gradient(to right, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.85));
  border-bottom: 1px solid rgba(148, 163, 184, 0.5);
}

.mockup-dots {
  display: flex;
  gap: 5px;
}

.mockup-dots span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.7);
}

.mockup-title {
  font-size: 12px;
  color: var(--text-soft);
}

.mockup-tag {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(79, 125, 255, 0.2);
  border: 1px solid rgba(79, 125, 255, 0.7);
  color: #e5edff;
}

.mockup-body {
  padding: 14px 14px 10px;
  background: radial-gradient(circle at top, rgba(31, 41, 55, 0.6), #020617 65%);
}

.mockup-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 12px;
}

/* MOCKUP PDF */
.mockup-pdf {
  background: rgba(15, 23, 42, 0.96);
  border-radius: 16px;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.5);
}

.mockup-pdf-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.mockup-pdf-badge {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #020617;
  border: 1px solid rgba(148, 163, 184, 0.7);
  color: var(--text-soft);
}

.mockup-pdf-name {
  font-size: 11px;
  color: var(--text-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mockup-pdf-page {
  background: #020617;
  border-radius: 10px;
  padding: 8px;
}

.mockup-pdf-line {
  height: 6px;
  border-radius: 999px;
  background: rgba(30, 64, 175, 0.7);
  margin-bottom: 4px;
}

.mockup-pdf-line.line-strong {
  width: 72%;
}

.mockup-pdf-line:nth-child(2) {
  width: 48%;
  opacity: 0.7;
}

.mockup-pdf-line:nth-child(3) {
  width: 64%;
  opacity: 0.7;
}

.mockup-highlight-group {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.highlight-chip {
  font-size: 10px;
  padding: 4px 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.highlight-chip-green {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.7);
  color: #bbf7d0;
}

.highlight-chip-blue {
  background: rgba(59, 130, 246, 0.18);
  border: 1px solid rgba(59, 130, 246, 0.8);
  color: #bfdbfe;
}

.highlight-chip-amber {
  background: rgba(251, 191, 36, 0.18);
  border: 1px solid rgba(251, 191, 36, 0.85);
  color: #fef3c7;
}

/* MOCKUP JSON */
.mockup-json {
  background: rgba(15, 23, 42, 0.96);
  border-radius: 16px;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.6);
}

.mockup-json-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.mockup-json-header span {
  font-size: 11px;
  color: var(--text-soft);
}

.mockup-json-status {
  font-size: 11px;
  color: #bbf7d0;
}

.mockup-json-code {
  margin: 0;
  font-size: 11px;
  font-family: "JetBrains Mono", ui-monospace, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  color: #e5edff;
  background: #020617;
  border-radius: 8px;
  padding: 8px;
  max-height: 190px;
  overflow: hidden;
}

/* MOCKUP FOOTER */
.mockup-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.45);
  font-size: 11px;
  color: var(--text-soft);
  background: rgba(15, 23, 42, 0.98);
}

.mockup-footer-pill {
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.7);
  color: #bbf7d0;
}

/* ─────────────────────────────────────────────── */
/* TRUST STRIP                                    */
/* ─────────────────────────────────────────────── */
.trust-section {
  padding: 16px 0 24px;
}

.trust-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  padding-top: 14px;
  padding-bottom: 14px;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.85), transparent 70%);
}

.trust-label {
  font-size: 12px;
  color: var(--text-soft);
}

.trust-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.trust-tags span {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

/* ─────────────────────────────────────────────── */
/* SECCIONES GENERALES                            */
/* ─────────────────────────────────────────────── */
.section {
  position: relative;
  padding: 70px 0;
}

/* Separador suave entre secciones (hairline gradiente) */
.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(148, 163, 184, 0.35),
    transparent
  );
  opacity: 0.9;
}

.section:first-of-type::before {
  display: none;
}

/* Sección alternativa con overlay suave, no "bloque" */
.section-alt {
  background: radial-gradient(circle at top right, rgba(30, 64, 175, 0.45), transparent 65%);
}

.section-header {
  max-width: 1200px;
  margin: 0 auto 32px;
  padding: 0 20px;
}

.section-header h2 {
  font-size: 26px;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.section-header p {
  margin: 0;
  font-size: 15px;
  color: var(--text-muted);
  max-width: 720px;
}

/* ─────────────────────────────────────────────── */
/* FEATURES GRID                                  */
/* ─────────────────────────────────────────────── */
.feature-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.feature-card {
  background: radial-gradient(circle at top left, #111827, #020617 70%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 16px 16px 18px;
  box-shadow: var(--shadow-subtle);
  font-size: 14px;
  color: var(--text-muted);
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    border-color var(--transition-fast),
    background var(--transition-fast);
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 15px;
  color: var(--text-main);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 65px rgba(15, 23, 42, 0.9);
  border-color: rgba(79, 125, 255, 0.9);
  background: radial-gradient(circle at top left, #1f2937, #020617 75%);
}

/* ─────────────────────────────────────────────── */
/* FLUJO                                          */
/* ─────────────────────────────────────────────── */
.flow-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr);
  gap: 30px;
  align-items: flex-start;
}

.flow-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.flow-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
}

.flow-step-index {
  font-size: 13px;
  color: var(--text-soft);
  font-weight: 500;
  padding-top: 5px;
}

.flow-step-content h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.flow-step-content p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

/* PANEL LATERAL */
.flow-panel {
  background: radial-gradient(circle at top left, #111827, #020617 70%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 18px 18px 20px;
  box-shadow: var(--shadow-soft);
}

.flow-panel-header {
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 10px;
}

.flow-mode-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--text-muted);
}

.flow-mode-list li + li {
  margin-top: 12px;
}

.flow-mode-list strong {
  display: block;
  color: var(--text-main);
}

/* ─────────────────────────────────────────────── */
/* API                                            */
/* ─────────────────────────────────────────────── */
.api-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 26px;
}

.api-column h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 16px;
}

.code-block {
  background: #020617;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  padding: 12px 14px;
  font-size: 12px;
  font-family: "JetBrains Mono", ui-monospace, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  color: #e5edff;
  overflow-x: auto;
}

.code-block-small {
  margin-top: 10px;
}

.api-note {
  margin-top: 14px;
  font-size: 14px;
  color: var(--text-muted);
}

/* ─────────────────────────────────────────────── */
/* PRECIOS                                        */
/* ─────────────────────────────────────────────── */
.pricing-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.pricing-card {
  background: radial-gradient(circle at top, #111827, #020617 75%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 18px 18px 20px;
  box-shadow: var(--shadow-subtle);
  font-size: 14px;
  color: var(--text-muted);
}

.pricing-card h3 {
  margin-top: 0;
  margin-bottom: 6px;
  font-size: 16px;
  color: var(--text-main);
}

.pricing-price {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}

.pricing-sub {
  margin: 0 0 12px;
  font-size: 13px;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pricing-card ul li + li {
  margin-top: 6px;
}

.pricing-card-highlight {
  border-color: rgba(79, 125, 255, 0.95);
  box-shadow: var(--shadow-soft);
}

/* ─────────────────────────────────────────────── */
/* FAQ                                            */
/* ─────────────────────────────────────────────── */
.faq-list {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: radial-gradient(circle at top left, #111827, #020617 75%);
  box-shadow: var(--shadow-subtle);
}

.faq-item + .faq-item {
  border-top: 1px solid rgba(148, 163, 184, 0.4);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 12px 16px;
  color: var(--text-main);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.faq-toggle {
  font-size: 18px;
  color: var(--text-soft);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 16px;
  font-size: 13px;
  color: var(--text-muted);
  transition: max-height var(--transition-med), padding-bottom var(--transition-med);
}

.faq-answer.open {
  padding-bottom: 12px;
}

/* ─────────────────────────────────────────────── */
/* FOOTER                                         */
/* ─────────────────────────────────────────────── */
.footer {
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  padding: 16px 0 22px;
  background: radial-gradient(circle at top, #020617, #000 80%);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: var(--text-soft);
}

.footer-left {
  display: flex;
  flex-direction: column;
}

.footer-right {
  display: flex;
  gap: 14px;
}

.footer-right a {
  color: var(--text-soft);
}

.footer-right a:hover {
  color: var(--text-main);
}

/* ─────────────────────────────────────────────── */
/* ANIMACIONES Y REVEAL                           */
/* ─────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ─────────────────────────────────────────────── */
/* RESPONSIVE                                     */
/* ─────────────────────────────────────────────── */
@media (max-width: 960px) {
  .navbar-nav {
    display: none;
  }

  .navbar-toggle {
    display: flex;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .hero-right {
    justify-content: flex-start;
  }

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

  .flow-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .api-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .pricing-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 54px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .trust-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .feature-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}