/* ==========================================================================
   FacturaNext WEB - Hoja de Estilos Corporativa de Alto Rendimiento
   Optimizada para Lighthouse 100/100 (Performance, Accessibility, Best Practices, SEO)
   Paleta: Azules de Confianza (#0f172a, #1e3a8a, #1d4ed8, #0284c7), Blancos y Grises
   ========================================================================== */

:root {
  --fn-navy-950: #090e1a;
  --fn-navy-900: #0f172a;
  --fn-navy-800: #1e293b;
  --fn-blue-900: #1e3a8a;
  --fn-blue-800: #1e40af;
  --fn-blue-700: #1d4ed8;
  --fn-blue-600: #2563eb;
  --fn-sky-600: #0284c7;
  --fn-sky-500: #0ea5e9;
  --fn-sky-400: #38bdf8;
  --fn-sky-100: #e0f2fe;
  --fn-sky-50: #f0f9ff;
  --fn-slate-900: #0f172a;
  --fn-slate-800: #1e293b;
  --fn-slate-700: #334155;
  --fn-slate-600: #475569;
  --fn-slate-500: #64748b;
  --fn-slate-300: #cbd5e1;
  --fn-slate-200: #e2e8f0;
  --fn-slate-100: #f1f5f9;
  --fn-slate-50: #f8fafc;
  --fn-white: #ffffff;
  --fn-emerald-700: #047857;
  --fn-emerald-600: #059669;
  --fn-emerald-500: #10b981;
  --fn-emerald-100: #d1fae5;
  --fn-emerald-50: #ecfdf5;
  --fn-amber-700: #b45309;
  --fn-amber-100: #fef3c7;
  --fn-radius-sm: 0.5rem;
  --fn-radius-md: 0.75rem;
  --fn-radius-lg: 1rem;
  --fn-radius-xl: 1.25rem;
  --fn-shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.06), 0 1px 2px -1px rgba(15, 23, 42, 0.06);
  --fn-shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.06);
  --fn-shadow-lg: 0 10px 25px -3px rgba(15, 23, 42, 0.09), 0 4px 10px -4px rgba(15, 23, 42, 0.06);
  --fn-shadow-xl: 0 20px 35px -5px rgba(15, 23, 42, 0.14), 0 8px 15px -6px rgba(15, 23, 42, 0.08);
  --fn-font-sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --fn-font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
}

/* Reset y Base Accesible */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  font-family: var(--fn-font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--fn-slate-800);
  background-color: var(--fn-white);
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
  background-color: var(--fn-white);
  color: var(--fn-slate-800);
}

/* Skip Link para Accesibilidad (Teclado / Lectores de Pantalla) */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 9999;
  background: var(--fn-blue-800);
  color: var(--fn-white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--fn-radius-sm);
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--fn-shadow-lg);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
  outline: 3px solid var(--fn-sky-400);
  outline-offset: 2px;
}

/* Focus Visible Global (WCAG 2.1 AA/AAA) */
:focus-visible {
  outline: 3px solid var(--fn-sky-500);
  outline-offset: 2px;
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* Contenedor Responsivo */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 768px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Barra Superior Informativa DGII */
.topbar {
  background: linear-gradient(90deg, var(--fn-navy-950) 0%, var(--fn-blue-900) 50%, var(--fn-navy-900) 100%);
  color: var(--fn-slate-100);
  font-size: 0.84rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
}

.topbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}

.topbar-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #34d399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.25);
  display: inline-block;
}

.topbar-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-weight: 500;
}

.topbar-links a {
  color: #bae6fd;
  transition: color 0.15s ease;
}

.topbar-links a:hover {
  color: var(--fn-white);
  text-decoration: underline;
}

/* Header & Navegación Sticky */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--fn-slate-200);
  transition: box-shadow 0.2s ease;
}

.site-header.scrolled {
  box-shadow: var(--fn-shadow-md);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.5rem;
  gap: 1rem;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo {
  height: 44px;
  width: auto;
}

.nav-menu {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--fn-slate-700);
  padding: 0.4rem 0.2rem;
  position: relative;
  transition: color 0.15s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--fn-blue-700);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--fn-sky-600);
  transition: width 0.2s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: none;
  align-items: center;
  gap: 0.75rem;
}

.mobile-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--fn-radius-sm);
  border: 1px solid var(--fn-slate-200);
  color: var(--fn-slate-800);
  background: var(--fn-slate-50);
}

.mobile-menu-btn:hover {
  background: var(--fn-slate-100);
}

/* Menú Móvil */
.mobile-drawer {
  display: none;
  background: var(--fn-white);
  border-bottom: 1px solid var(--fn-slate-200);
  padding: 1rem 1.25rem 1.5rem;
  box-shadow: var(--fn-shadow-lg);
}

.mobile-drawer.open {
  display: block;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.mobile-nav-link {
  display: block;
  padding: 0.65rem 0.75rem;
  border-radius: var(--fn-radius-sm);
  font-weight: 600;
  color: var(--fn-slate-800);
}

.mobile-nav-link:hover {
  background: var(--fn-sky-50);
  color: var(--fn-blue-700);
}

@media (min-width: 1024px) {
  .nav-menu {
    display: flex;
  }
  .nav-actions {
    display: flex;
  }
  .mobile-menu-btn {
    display: none;
  }
  .mobile-drawer {
    display: none !important;
  }
}

/* Botones Corporativos */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--fn-radius-md);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
  text-align: center;
  line-height: 1.3;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--fn-blue-700) 0%, var(--fn-sky-600) 100%);
  color: var(--fn-white);
  box-shadow: 0 4px 14px rgba(29, 78, 216, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--fn-blue-800) 0%, var(--fn-blue-700) 100%);
  box-shadow: 0 6px 20px rgba(29, 78, 216, 0.4);
}

.btn-secondary {
  background-color: var(--fn-white);
  color: var(--fn-blue-800);
  border: 1.5px solid var(--fn-slate-300);
}

.btn-secondary:hover {
  border-color: var(--fn-blue-700);
  background-color: var(--fn-sky-50);
}

.btn-ghost-light {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--fn-white);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-ghost-light:hover {
  background-color: rgba(255, 255, 255, 0.18);
}

.btn-lg {
  font-size: 1.05rem;
  padding: 0.95rem 1.75rem;
}

.btn-sm {
  font-size: 0.875rem;
  padding: 0.55rem 1.05rem;
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  background: radial-gradient(circle at 85% 15%, rgba(2, 132, 199, 0.18) 0%, transparent 45%),
              radial-gradient(circle at 15% 80%, rgba(30, 64, 175, 0.22) 0%, transparent 50%),
              linear-gradient(180deg, var(--fn-navy-950) 0%, var(--fn-navy-900) 60%, #13203c 100%);
  color: var(--fn-white);
  padding: 3.5rem 0 4.5rem;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .hero-section {
    padding: 4.75rem 0 5.75rem;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.08fr 0.92fr;
    gap: 3.5rem;
  }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(14, 165, 233, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #7dd3fc;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  margin-bottom: 1.35rem;
}

.hero-title {
  font-size: clamp(2rem, 4vw + 0.5rem, 3.35rem);
  font-weight: 800;
  line-height: 1.13;
  letter-spacing: -0.025em;
  color: var(--fn-white);
  margin-bottom: 1.25rem;
}

.hero-title-highlight {
  background: linear-gradient(90deg, #38bdf8 0%, #93c5fd 55%, #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.2vw + 0.5rem, 1.22rem);
  color: #cbd5e1;
  margin-bottom: 2rem;
  max-width: 640px;
  line-height: 1.65;
}

.hero-subtitle strong {
  color: var(--fn-white);
  font-weight: 700;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2rem;
}

.hero-trust-pills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.85rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.trust-pill {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.88rem;
  color: #e2e8f0;
}

.trust-pill svg {
  flex-shrink: 0;
  color: #38bdf8;
  margin-top: 0.15rem;
}

.trust-pill strong {
  display: block;
  color: var(--fn-white);
  font-weight: 700;
}

/* Panel Interactivo / Mockup del Ecosistema en Hero */
.hero-console {
  background: linear-gradient(165deg, rgba(30, 41, 59, 0.92) 0%, rgba(15, 23, 42, 0.98) 100%);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: var(--fn-radius-xl);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.console-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.2rem;
  background: rgba(9, 14, 26, 0.75);
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.console-dots {
  display: flex;
  gap: 0.45rem;
}

.console-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.console-dot.red { background: #ef4444; }
.console-dot.amber { background: #f59e0b; }
.console-dot.green { background: #10b981; }

.console-title {
  font-family: var(--fn-font-mono);
  font-size: 0.78rem;
  color: #94a3b8;
}

.console-status-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

.console-body {
  padding: 1.35rem;
}

.console-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}

.console-kpi {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: var(--fn-radius-md);
  padding: 0.75rem;
}

.console-kpi-label {
  font-size: 0.72rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: block;
}

.console-kpi-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--fn-white);
  margin-top: 0.15rem;
  display: block;
}

.console-kpi-sub {
  font-size: 0.72rem;
  color: #38bdf8;
  font-weight: 600;
}

.console-ecf-stream {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
}

.ecf-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: rgba(30, 41, 59, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--fn-radius-sm);
  padding: 0.65rem 0.85rem;
  font-size: 0.82rem;
}

.ecf-code {
  font-family: var(--fn-font-mono);
  font-weight: 700;
  color: #7dd3fc;
  background: rgba(2, 132, 199, 0.2);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.ecf-desc {
  color: #e2e8f0;
  font-weight: 600;
  flex: 1;
}

.ecf-tag-ok {
  font-size: 0.72rem;
  font-weight: 700;
  color: #6ee7b7;
  background: rgba(5, 150, 105, 0.2);
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
}

.console-network-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  background: rgba(2, 132, 199, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--fn-radius-sm);
  padding: 0.65rem 0.9rem;
  font-size: 0.78rem;
  color: #bae6fd;
}

/* ==========================================================================
   FRANJA DE MÉTRICAS Y RESPALDO CORPORATIVO
   ========================================================================== */
.metrics-strip {
  background-color: var(--fn-slate-50);
  border-bottom: 1px solid var(--fn-slate-200);
  padding: 2.25rem 0;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .metrics-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.metric-item {
  text-align: center;
  padding: 0.5rem;
}

.metric-number {
  font-size: clamp(1.75rem, 2.5vw, 2.35rem);
  font-weight: 800;
  color: var(--fn-blue-800);
  line-height: 1.15;
  display: block;
}

.metric-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--fn-slate-600);
  margin-top: 0.25rem;
  display: block;
}

/* ==========================================================================
   SECCIONES GENERALES
   ========================================================================== */
.section {
  padding: 4.5rem 0;
}

@media (min-width: 1024px) {
  .section {
    padding: 5.75rem 0;
  }
}

.section-alt {
  background-color: var(--fn-slate-50);
  border-top: 1px solid var(--fn-slate-200);
  border-bottom: 1px solid var(--fn-slate-200);
}

.section-dark {
  background: linear-gradient(180deg, var(--fn-navy-900) 0%, var(--fn-navy-950) 100%);
  color: var(--fn-white);
}

.section-header {
  max-width: 760px;
  margin: 0 auto 3.25rem;
  text-align: center;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fn-blue-700);
  background-color: var(--fn-sky-100);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
}

.section-dark .section-tag {
  color: #7dd3fc;
  background-color: rgba(14, 165, 233, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--fn-slate-900);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-dark .section-title {
  color: var(--fn-white);
}

.section-desc {
  font-size: 1.08rem;
  color: var(--fn-slate-600);
  line-height: 1.65;
}

.section-dark .section-desc {
  color: #cbd5e1;
}

/* ==========================================================================
   TARJETAS DE BENEFICIOS PRINCIPALES (COPYWRITING ORIENTADO A NEGOCIO)
   ========================================================================== */
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 768px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .benefits-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.benefit-card {
  background: var(--fn-white);
  border: 1px solid var(--fn-slate-200);
  border-radius: var(--fn-radius-lg);
  padding: 2rem;
  box-shadow: var(--fn-shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--fn-shadow-lg);
  border-color: var(--fn-sky-400);
}

.benefit-icon-wrap {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--fn-radius-md);
  background: linear-gradient(135deg, var(--fn-sky-50) 0%, var(--fn-sky-100) 100%);
  color: var(--fn-blue-700);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.35rem;
  border: 1px solid rgba(2, 132, 199, 0.2);
}

.benefit-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--fn-sky-600);
  background: var(--fn-sky-50);
  padding: 0.2rem 0.65rem;
  border-radius: 6px;
  margin-bottom: 0.65rem;
}

.benefit-title {
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--fn-slate-900);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.benefit-text {
  font-size: 0.96rem;
  color: var(--fn-slate-600);
  margin-bottom: 1.25rem;
  flex: 1;
}

.benefit-check-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--fn-slate-100);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--fn-slate-700);
}

.benefit-check-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.benefit-check-list svg {
  color: var(--fn-emerald-600);
  flex-shrink: 0;
}

/* ==========================================================================
   CATÁLOGO INTERACTIVO E-CF (E31 AL E47)
   ========================================================================== */
.ecf-filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2.25rem;
}

.ecf-filter-btn {
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--fn-slate-700);
  background-color: var(--fn-white);
  border: 1px solid var(--fn-slate-300);
  transition: all 0.15s ease;
}

.ecf-filter-btn:hover {
  border-color: var(--fn-blue-600);
  color: var(--fn-blue-700);
}

.ecf-filter-btn.active {
  background-color: var(--fn-blue-800);
  color: var(--fn-white);
  border-color: var(--fn-blue-800);
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.25);
}

.ecf-catalog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}

@media (min-width: 640px) {
  .ecf-catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .ecf-catalog-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.ecf-card {
  background: var(--fn-white);
  border: 1px solid var(--fn-slate-200);
  border-radius: var(--fn-radius-md);
  padding: 1.35rem;
  box-shadow: var(--fn-shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.ecf-card:hover {
  transform: translateY(-3px);
  border-color: var(--fn-blue-600);
  box-shadow: var(--fn-shadow-md);
}

.ecf-card.hidden {
  display: none;
}

.ecf-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.ecf-number-badge {
  font-family: var(--fn-font-mono);
  font-size: 1rem;
  font-weight: 800;
  color: var(--fn-white);
  background: linear-gradient(135deg, var(--fn-blue-800) 0%, var(--fn-sky-600) 100%);
  padding: 0.3rem 0.7rem;
  border-radius: var(--fn-radius-sm);
}

.ecf-category-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--fn-slate-600);
  background: var(--fn-slate-100);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.ecf-card-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--fn-slate-900);
  margin-bottom: 0.45rem;
  line-height: 1.3;
}

.ecf-card-desc {
  font-size: 0.85rem;
  color: var(--fn-slate-600);
  margin-bottom: 0.9rem;
  line-height: 1.5;
}

.ecf-card-footer {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--fn-emerald-700);
  background: var(--fn-emerald-50);
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.ecf-extra-banner {
  margin-top: 2rem;
  background: linear-gradient(90deg, var(--fn-navy-900) 0%, var(--fn-blue-900) 100%);
  color: var(--fn-white);
  border-radius: var(--fn-radius-lg);
  padding: 1.5rem 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.ecf-extra-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.ecf-extra-pill {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 0.4rem 0.85rem;
  border-radius: var(--fn-radius-sm);
  font-size: 0.84rem;
  font-weight: 700;
  color: #e0f2fe;
}

/* ==========================================================================
   DIFERENCIADOR TÉCNICO: FACTURANEXT-LAUNCHER
   ========================================================================== */
.launcher-showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .launcher-showcase {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
  }
}

.launcher-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.launcher-step-btn {
  text-align: left;
  background: rgba(30, 41, 59, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: var(--fn-radius-md);
  padding: 1.25rem 1.4rem;
  color: var(--fn-white);
  transition: all 0.2s ease;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.launcher-step-btn:hover,
.launcher-step-btn.active {
  background: rgba(2, 132, 199, 0.18);
  border-color: #38bdf8;
  box-shadow: 0 10px 25px -5px rgba(2, 132, 199, 0.25);
}

.step-num {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.18);
  border: 1px solid #38bdf8;
  color: #7dd3fc;
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.launcher-step-btn.active .step-num {
  background: #0284c7;
  color: var(--fn-white);
}

.step-content h3 {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--fn-white);
  margin-bottom: 0.3rem;
}

.step-content p {
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.5;
}

/* Ventana Simulada del Launcher C# .NET */
.launcher-window {
  background: #0b1120;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--fn-radius-xl);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.65);
}

.launcher-win-bar {
  background: #1e293b;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.launcher-win-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--fn-font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: #e2e8f0;
}

.launcher-win-body {
  padding: 1.5rem;
}

.launcher-stage-box {
  background: rgba(30, 41, 59, 0.55);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--fn-radius-md);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.launcher-stage-tag {
  font-family: var(--fn-font-mono);
  font-size: 0.75rem;
  color: #38bdf8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.35rem;
}

.launcher-stage-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--fn-white);
  margin-bottom: 0.45rem;
}

.launcher-stage-desc {
  font-size: 0.9rem;
  color: #cbd5e1;
}

.launcher-services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.service-pill {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--fn-radius-sm);
  padding: 0.7rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
}

.service-pill-name {
  font-weight: 700;
  color: #e2e8f0;
}

.service-pill-port {
  font-family: var(--fn-font-mono);
  font-size: 0.73rem;
  color: #6ee7b7;
}

.launcher-terminal-log {
  font-family: var(--fn-font-mono);
  font-size: 0.78rem;
  background: #060a12;
  color: #93c5fd;
  padding: 0.9rem 1rem;
  border-radius: var(--fn-radius-sm);
  border: 1px solid rgba(148, 163, 184, 0.15);
  line-height: 1.6;
}

/* ==========================================================================
   ARQUITECTURA SERVIDOR / ESTACIÓN + TAILSCALE VPN
   ========================================================================== */
.topology-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .topology-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.topology-card {
  background: var(--fn-white);
  border: 1px solid var(--fn-slate-200);
  border-radius: var(--fn-radius-lg);
  padding: 1.85rem;
  box-shadow: var(--fn-shadow-sm);
  position: relative;
}

.topology-card-featured {
  border: 2px solid var(--fn-blue-700);
  box-shadow: var(--fn-shadow-md);
}

.topology-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  background: var(--fn-sky-100);
  color: var(--fn-blue-800);
  margin-bottom: 0.85rem;
}

.topology-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--fn-slate-900);
  margin-bottom: 0.6rem;
}

.topology-card p {
  font-size: 0.92rem;
  color: var(--fn-slate-600);
  margin-bottom: 1.15rem;
}

.topology-specs {
  font-size: 0.85rem;
  color: var(--fn-slate-700);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.topology-specs li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

/* ==========================================================================
   PLANES Y PRECIOS + TABLA COMPARATIVA
   ========================================================================== */
.billing-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2.75rem;
}

.billing-toggle-wrap {
  display: inline-flex;
  align-items: center;
  background: var(--fn-slate-200);
  padding: 0.3rem;
  border-radius: 999px;
}

.billing-toggle-btn {
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--fn-slate-700);
  transition: all 0.15s ease;
}

.billing-toggle-btn.active {
  background: var(--fn-blue-800);
  color: var(--fn-white);
  box-shadow: var(--fn-shadow-sm);
}

.discount-pill {
  background: var(--fn-emerald-100);
  color: var(--fn-emerald-700);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  margin-left: 0.35rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  margin-bottom: 3.5rem;
}

@media (min-width: 1024px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }
}

.pricing-card {
  background: var(--fn-white);
  border: 1px solid var(--fn-slate-200);
  border-radius: var(--fn-radius-xl);
  padding: 2.25rem 2rem;
  box-shadow: var(--fn-shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-card.popular {
  border: 2px solid var(--fn-blue-700);
  box-shadow: var(--fn-shadow-xl);
}

.popular-ribbon {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--fn-blue-800) 0%, var(--fn-sky-600) 100%);
  color: var(--fn-white);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 1rem;
  border-radius: 999px;
  white-space: nowrap;
}

.plan-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--fn-slate-900);
  margin-bottom: 0.35rem;
}

.plan-target {
  font-size: 0.9rem;
  color: var(--fn-slate-600);
  margin-bottom: 1.4rem;
}

.plan-price-box {
  margin-bottom: 1.5rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--fn-slate-200);
}

.plan-currency {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--fn-slate-700);
}

.plan-amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--fn-slate-900);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.plan-period {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--fn-slate-500);
}

.plan-subnote {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--fn-emerald-700);
  margin-top: 0.35rem;
}

.plan-features {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 2rem;
  flex: 1;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--fn-slate-700);
}

.plan-features svg {
  color: var(--fn-blue-700);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

/* Tabla Comparativa Técnica y Comercial */
.comparison-wrap {
  background: var(--fn-white);
  border: 1px solid var(--fn-slate-200);
  border-radius: var(--fn-radius-lg);
  overflow-x: auto;
  box-shadow: var(--fn-shadow-sm);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
  text-align: left;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--fn-slate-200);
  font-size: 0.92rem;
}

.comparison-table thead th {
  background: var(--fn-slate-100);
  color: var(--fn-slate-900);
  font-weight: 800;
}

.comparison-table tbody tr:hover {
  background-color: var(--fn-slate-50);
}

.comparison-table td:not(:first-child),
.comparison-table th:not(:first-child) {
  text-align: center;
}

.check-yes {
  color: var(--fn-emerald-700);
  font-weight: 800;
}

.check-muted {
  color: var(--fn-slate-500);
}

/* ==========================================================================
   PREGUNTAS FRECUENTES (FAQ)
   ========================================================================== */
.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--fn-white);
  border: 1px solid var(--fn-slate-200);
  border-radius: var(--fn-radius-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.2rem 1.4rem;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--fn-slate-900);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--fn-white);
}

.faq-question:hover {
  background: var(--fn-slate-50);
}

.faq-icon {
  transition: transform 0.2s ease;
  color: var(--fn-blue-700);
  flex-shrink: 0;
}

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

.faq-answer {
  display: none;
  padding: 0 1.4rem 1.3rem;
  font-size: 0.95rem;
  color: var(--fn-slate-600);
  line-height: 1.65;
  border-top: 1px solid var(--fn-slate-100);
}

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

/* ==========================================================================
   SECCIÓN DE CONTACTO Y SOLICITUD DE DEMO
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 3.5rem;
  }
}

.contact-info-card {
  background: linear-gradient(160deg, var(--fn-navy-900) 0%, var(--fn-blue-900) 100%);
  color: var(--fn-white);
  border-radius: var(--fn-radius-xl);
  padding: 2.5rem 2rem;
  box-shadow: var(--fn-shadow-lg);
}

.contact-info-card h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
}

.contact-info-card p {
  color: #cbd5e1;
  margin-bottom: 1.75rem;
  font-size: 0.96rem;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin-bottom: 2rem;
}

.channel-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.channel-icon {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: var(--fn-radius-sm);
  background: rgba(56, 189, 248, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #7dd3fc;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.channel-label {
  font-size: 0.78rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: block;
}

.channel-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--fn-white);
}

.contact-form-card {
  background: var(--fn-white);
  border: 1px solid var(--fn-slate-200);
  border-radius: var(--fn-radius-xl);
  padding: 2.25rem 2rem;
  box-shadow: var(--fn-shadow-lg);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
  margin-bottom: 1.15rem;
}

@media (min-width: 640px) {
  .form-row-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--fn-slate-800);
}

.form-control {
  width: 100%;
  padding: 0.75rem 0.95rem;
  border-radius: var(--fn-radius-sm);
  border: 1.5px solid var(--fn-slate-300);
  background-color: var(--fn-white);
  font-size: 0.95rem;
  color: var(--fn-slate-900);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus {
  border-color: var(--fn-blue-700);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.15);
  outline: none;
}

.form-feedback {
  display: none;
  margin-top: 1rem;
  padding: 1rem 1.2rem;
  border-radius: var(--fn-radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
}

.form-feedback.success {
  display: block;
  background-color: var(--fn-emerald-50);
  border: 1px solid var(--fn-emerald-600);
  color: var(--fn-emerald-700);
}

.form-feedback.error {
  display: block;
  background-color: #fef2f2;
  border: 1px solid #dc2626;
  color: #b91c1c;
}

/* ==========================================================================
   FOOTER CORPORATIVO
   ========================================================================== */
.site-footer {
  background-color: var(--fn-navy-950);
  color: #cbd5e1;
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

.footer-col h4 {
  color: var(--fn-white);
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #38bdf8;
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: #94a3b8;
}

