/* ==========================================================================
   CashERP — Daylight Fintech Design System (Precision & Vibrancy)
   Paleta: Alabastro #F8FAFC | Blanco #FFFFFF | Tinta #061B31 | Zafiro #2563EB
           Índigo #4338CA | Cian #0EA5E9 | Esmeralda SIFEN #059669
   ========================================================================== */

:root {
  /* Chromatic Foundation — Daylight Fintech */
  --bg-canvas: #F8FAFC;
  --bg-surface: #FFFFFF;
  --bg-subtle: #F1F5F9;
  --bg-elevated: #FFFFFF;
  --bg-glass: rgba(255, 255, 255, 0.86);
  --bg-navy: #061B31;
  --bg-navy-deep: #041222;

  /* Vibrant Accents */
  --accent-primary: #2563EB;
  --accent-primary-hover: #1D4ED8;
  --accent-indigo: #4338CA;
  --accent-cyan: #0EA5E9;
  --emerald: #059669;
  --emerald-bright: #10B981;
  --emerald-soft: #ECFDF5;
  --blue-soft: #EFF6FF;
  --indigo-soft: #EEF2FF;

  /* Gradients */
  --grad-hero: radial-gradient(120% 90% at 50% 0%, #EFF6FF 0%, #F8FAFC 58%, #FFFFFF 100%);
  --grad-text: linear-gradient(135deg, #2563EB 0%, #4338CA 52%, #059669 100%);
  --grad-primary: linear-gradient(135deg, #2563EB 0%, #4338CA 100%);
  --grad-cta: linear-gradient(135deg, #061B31 0%, #0F294A 50%, #1E3A8A 100%);

  /* Typography Colors */
  --text-primary: #061B31;
  --text-body: #475569;
  --text-muted: #64748B;
  --text-pure: #FFFFFF;

  /* Hairlines & Borders */
  --border-subtle: #E2E8F0;
  --border-strong: #CBD5E1;
  --border-blue: rgba(37, 99, 235, 0.28);
  --border-emerald: rgba(5, 150, 105, 0.3);

  /* Multi-layer Tinted Shadows */
  --shadow-sm: 0 2px 8px -2px rgba(6, 27, 49, 0.06), 0 1px 3px -1px rgba(6, 27, 49, 0.04);
  --shadow-md: 0 12px 32px -8px rgba(6, 27, 49, 0.08), 0 4px 12px -2px rgba(6, 27, 49, 0.04);
  --shadow-lg: 0 24px 54px -12px rgba(6, 27, 49, 0.12), 0 8px 20px -4px rgba(6, 27, 49, 0.05);
  --shadow-blue: 0 14px 32px -6px rgba(37, 99, 235, 0.28);
  --shadow-emerald: 0 14px 32px -6px rgba(5, 150, 105, 0.18);

  /* Fonts */
  --font-display: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Layout */
  --container-max: 1200px;
  --header-height: 76px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-canvas);
  color: var(--text-body);
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.65;
  background-color: var(--bg-canvas);
  color: var(--text-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Contenedor Universal */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Tipografía Escalar */
h1, h2, h3, h4 {
  color: var(--text-primary);
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  line-height: 1.12;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-indigo);
}

:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 3px;
}

/* Gradiente de Texto Insignia */
.text-gradient {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* ==========================================================================
   Botones Ejecutivos
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.78rem 1.45rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

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

.btn-lg {
  padding: 0.92rem 1.75rem;
  font-size: 1rem;
  border-radius: 10px;
}

.btn-primary {
  background: var(--grad-primary);
  color: var(--text-pure);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 8px 22px -4px rgba(37, 99, 235, 0.38);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1D4ED8 0%, #3730A3 100%);
  color: var(--text-pure);
  box-shadow: 0 12px 28px -4px rgba(37, 99, 235, 0.5);
  transform: translateY(-1px);
}

.btn-outline {
  background: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
  background: var(--bg-subtle);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-1px);
}

.btn-hero-glass {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-hero-glass:hover {
  background: rgba(255, 255, 255, 0.26);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-1px);
}

.btn-cta-white {
  background: var(--bg-surface);
  color: var(--bg-navy);
  font-weight: 700;
  padding: 0.92rem 1.8rem;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.btn-cta-white:hover {
  background: #F8FAFC;
  color: var(--accent-primary);
  transform: translateY(-2px);
}

.btn-cta-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-pure);
  border: 1px solid rgba(255, 255, 255, 0.24);
  padding: 0.92rem 1.8rem;
  border-radius: 10px;
  backdrop-filter: blur(8px);
}

.btn-cta-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  color: var(--text-pure);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-2px);
}

.btn-block {
  display: flex;
  width: 100%;
}

/* ==========================================================================
   Header & Navegación (Glass Daylight)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 100;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  transition: box-shadow var(--transition-fast), background var(--transition-fast);
}

.nav-wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-mark-svg {
  flex-shrink: 0;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(37, 99, 235, 0.18));
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.035em;
}

.brand-erp {
  color: var(--accent-primary);
  font-weight: 800;
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-body);
  font-size: 0.92rem;
  font-weight: 600;
  transition: color var(--transition-fast);
}

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

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

.nav-mobile-actions {
  display: none;
}

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 40px;
  height: 40px;
  padding: 11px 9px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.burger-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* ==========================================================================
   Hero — vista aérea de Asunción hacia la bahía, cruce con zoom lento
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 4.5rem 0 5rem;
  background: #061222;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.hero-bg-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #061222;
}

.hero-bg-slide {
  position: absolute;
  inset: -8%;
  background-size: cover;
  background-position: center 40%;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.6s ease;
  animation: hero-kb-1 22s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

.hero-bg-slide.is-active {
  opacity: 1;
}

.hero-bg-slide:nth-child(2) {
  animation-name: hero-kb-2;
  animation-duration: 26s;
}

.hero-bg-slide:nth-child(3) {
  animation-name: hero-kb-3;
  animation-duration: 24s;
}

@keyframes hero-kb-1 {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to { transform: scale(1.16) translate3d(-2%, -1.2%, 0); }
}

@keyframes hero-kb-2 {
  from { transform: scale(1.14) translate3d(-1.5%, 0, 0); }
  to { transform: scale(1.05) translate3d(1.6%, -1%, 0); }
}

@keyframes hero-kb-3 {
  from { transform: scale(1.08) translate3d(1.2%, -0.6%, 0); }
  to { transform: scale(1.18) translate3d(-1%, 1%, 0); }
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(6, 18, 34, 0.74) 0%, rgba(6, 18, 34, 0.42) 38%, rgba(6, 18, 34, 0.22) 62%, rgba(6, 18, 34, 0.5) 100%);
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg-slide {
    animation: none;
    transition: none;
    transform: scale(1.08);
  }
}

.hero-container {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.42rem 1.05rem;
  border-radius: 9999px;
  background: var(--bg-surface);
  border: 1px solid var(--border-blue);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.08);
  margin-bottom: 1.75rem;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--emerald);
  box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.16);
  animation: pulse-dot 2.2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.88); }
}

.badge-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-primary);
}

.hero-title {
  font-size: clamp(2.5rem, 5.8vw, 4.35rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.04;
  color: #ffffff;
  max-width: 920px;
  margin-bottom: 1.35rem;
}

.text-gradient-hero {
  background: linear-gradient(120deg, #7dd3fc 0%, #ffffff 46%, #6ee7b7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
}

.hero-title-sub {
  display: block;
  font-size: 0.44em;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.88);
  margin-top: 0.32em;
}

.hero-sub {
  font-size: clamp(1.08rem, 1.9vw, 1.28rem);
  color: rgba(255, 255, 255, 0.9);
  max-width: 740px;
  line-height: 1.6;
  margin-bottom: 2.2rem;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

/* ==========================================================================
   BANDA CINEMÁTICA EN MOVIMIENTO BAJO EL TEXTO DEL HERO (Showcase Marquee)
   ========================================================================== */
.hero-showcase-band {
  position: relative;
  z-index: 3;
  width: 100%;
  overflow: hidden;
  padding: 1rem 0 2.75rem;
  margin-bottom: 1.25rem;
  /* Máscara lateral suave para fundir los bordes con elegancia */
  mask-image: linear-gradient(to right, transparent 0%, black 7%, black 93%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 7%, black 93%, transparent 100%);
}

.showcase-track {
  display: flex;
  align-items: stretch;
  gap: 1.35rem;
  width: max-content;
  animation: hero-marquee-scroll 46s linear infinite;
  will-change: transform;
}

.hero-showcase-band:hover .showcase-track {
  animation-play-state: paused;
}

@keyframes hero-marquee-scroll {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

.showcase-card {
  width: 330px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(203, 213, 225, 0.75);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.85rem;
  text-align: left;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.showcase-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-lg);
}

.sc-card-accent {
  background: linear-gradient(180deg, #FFFFFF 0%, #F0FDF4 100%);
  border-color: rgba(5, 150, 105, 0.28);
}

.sc-card-indigo {
  background: linear-gradient(180deg, #FFFFFF 0%, #EEF2FF 100%);
  border-color: rgba(67, 56, 202, 0.24);
}

.sc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.sc-type {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.sc-type-fe { color: var(--accent-primary); }
.sc-type-pos { color: var(--emerald); }
.sc-type-api { color: var(--accent-indigo); }
.sc-type-nc { color: #0284C7; }
.sc-type-sec { color: var(--accent-indigo); }

.sc-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
}

.sc-status-ok {
  background: var(--emerald-soft);
  color: var(--emerald);
  border: 1px solid rgba(5, 150, 105, 0.25);
}

.sc-status-blue {
  background: var(--blue-soft);
  color: var(--accent-primary);
  border: 1px solid rgba(37, 99, 235, 0.22);
}

.sc-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
}

.sc-badge-pill {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  padding: 0.18rem 0.55rem;
  border-radius: 9999px;
  background: var(--emerald-soft);
  color: var(--emerald);
}

.sc-pill-indigo {
  background: var(--indigo-soft);
  color: var(--accent-indigo);
}

.sc-main {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.sc-doc-num {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.sc-amount {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--emerald);
  font-variant-numeric: tabular-nums;
}

.sc-sub-highlight {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-body);
}

.sc-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--text-muted);
  padding-top: 0.55rem;
  border-top: 1px dashed var(--border-subtle);
}

.sc-bar {
  width: 100%;
  height: 4px;
  background: #E2E8F0;
  border-radius: 999px;
  overflow: hidden;
}

.sc-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--emerald) 0%, #34D399 100%);
  border-radius: 999px;
}

.sc-bar-blue span {
  background: linear-gradient(90deg, var(--accent-primary) 0%, var(--accent-cyan) 100%);
}

.sc-pos-grid {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.sc-pos-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.sc-pos-name {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--text-primary);
}

.sc-pos-val {
  font-size: 0.82rem;
  color: var(--text-body);
}

.sc-pos-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.sc-chip {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: #F1F5F9;
  color: var(--text-primary);
}

.sc-chip-green {
  background: var(--emerald-soft);
  color: var(--emerald);
}

/* ==========================================================================
   DOS PUERTAS GRANDES (Debajo del Marquee en el Hero)
   ========================================================================== */
.hero-bottom-wrap {
  margin-top: 0.5rem;
}

.hero-doors {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  width: 100%;
  max-width: 980px;
  margin-bottom: 2.75rem;
}

@media (min-width: 768px) {
  .hero-doors {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
  }
}

.door-card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 2.1rem 2rem 1.75rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  transition: all var(--transition-smooth);
}

.door-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.door-pyme:hover {
  border-color: var(--emerald);
  box-shadow: var(--shadow-emerald);
}

.door-erp:hover {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-blue);
}

.door-icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}

.door-icon-emerald {
  background: var(--emerald-soft);
  color: var(--emerald);
  border: 1px solid rgba(5, 150, 105, 0.2);
}

.door-icon-cobalt {
  background: var(--blue-soft);
  color: var(--accent-primary);
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.door-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent-primary);
  margin-bottom: 0.65rem;
  display: block;
}

.door-pyme .door-tag {
  color: var(--emerald);
}

.door-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.65rem;
  line-height: 1.2;
}

.door-desc {
  font-size: 0.96rem;
  color: var(--text-body);
  line-height: 1.58;
  margin-bottom: 1.6rem;
  flex-grow: 1;
}

.door-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
  transition: gap var(--transition-fast), color var(--transition-fast);
}

.door-card:hover .door-link {
  gap: 0.75rem;
}

.door-pyme:hover .door-link {
  color: var(--emerald);
}

.door-erp:hover .door-link {
  color: var(--accent-primary);
}

/* Ticker de Garantías Operativas */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  max-width: 980px;
}

.stat-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.2rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  box-shadow: var(--shadow-sm);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-primary);
  background: var(--blue-soft);
  padding: 0.18rem 0.6rem;
  border-radius: 9999px;
  text-transform: uppercase;
}

.stat-value {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-primary);
}

/* ==========================================================================
   Secciones Generales
   ========================================================================== */
.section {
  position: relative;
  padding: 6rem 0;
  scroll-margin-top: calc(var(--header-height) + 10px);
}

.section-light {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
}

.section-erp {
  background: linear-gradient(180deg, #F1F5F9 0%, #F8FAFC 100%);
  border-bottom: 1px solid var(--border-subtle);
}

.section-header-block {
  margin-bottom: 3.5rem;
}

.section-kicker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent-primary);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.9rem;
}

.section-lead {
  font-size: 1.12rem;
  color: var(--text-body);
  max-width: 720px;
  line-height: 1.65;
}

/* ==========================================================================
   Sección #pyme: Grid y Componentes
   ========================================================================== */
.pyme-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.75rem;
}

@media (min-width: 992px) {
  .pyme-grid {
    grid-template-columns: 1fr 1.06fr;
    gap: 3.5rem;
    align-items: start;
  }
}

.benefits-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  margin-bottom: 2.5rem;
}

.benefit-item {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 1.1rem;
  align-items: start;
}

.benefit-ico {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--emerald-soft);
  border: 1px solid var(--border-emerald);
  color: var(--emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ico-cobalt {
  background: var(--blue-soft);
  border-color: var(--border-blue);
  color: var(--accent-primary);
}

.benefit-text h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

.benefit-text p {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.55;
}

/* Tarjeta Plan Emprendedor */
.plan-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
}

.plan-featured {
  border: 2px solid var(--accent-primary);
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  box-shadow: var(--shadow-lg);
}

.plan-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.plan-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--emerald);
  background: var(--emerald-soft);
  border: 1px solid rgba(5, 150, 105, 0.2);
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.badge-cobalt {
  color: var(--accent-primary);
  background: var(--blue-soft);
  border-color: rgba(37, 99, 235, 0.2);
}

.plan-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.price-val {
  font-family: var(--font-display);
  font-size: 1.95rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.price-period {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
}

.plan-desc {
  font-size: 0.95rem;
  color: var(--text-body);
  margin-bottom: 1.4rem;
  line-height: 1.55;
}

.plan-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 1.85rem;
}

.plan-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.92rem;
  color: var(--text-body);
}

.plan-checklist li span {
  color: var(--emerald);
  font-weight: 800;
}

.plan-checklist li strong {
  color: var(--text-primary);
}

/* ==========================================================================
   Visual de Producto (Mockup HTML/SVG KuDE Claro y Ejecutivo)
   ========================================================================== */
.mockup-frame {
  position: relative;
  background: var(--bg-subtle);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-lg);
}

.mockup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.9rem;
  margin-bottom: 1.1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.mockup-titlebar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dot-red, .dot-yellow, .dot-green {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-red { background: #EF4444; }
.dot-yellow { background: #F59E0B; }
.dot-green { background: #10B981; }

.mockup-app-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-left: 0.4rem;
}

.mockup-status-chip {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--emerald);
  background: var(--emerald-soft);
  border: 1px solid rgba(5, 150, 105, 0.25);
  padding: 0.22rem 0.65rem;
  border-radius: 9999px;
}

.chip-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
}

/* Ticket KuDE sobre Papel Blanco Oficial */
.kude-preview {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
}

.kude-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px dashed var(--border-strong);
  margin-bottom: 1.15rem;
}

.kude-company {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--text-primary);
}

.kude-ruc {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.kude-doc {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin-top: 0.25rem;
}

.kude-verdict {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--emerald-soft);
  border: 1px solid var(--emerald);
  color: var(--emerald);
  padding: 0.32rem 0.7rem;
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
}

.kude-row-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.84rem;
  color: var(--text-body);
  margin-bottom: 1.1rem;
}

.kude-row-meta strong {
  color: var(--text-primary);
}

.kude-items {
  margin-bottom: 1.1rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.8rem;
}

.kude-item-row {
  display: grid;
  grid-template-columns: 1fr 48px 110px;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-body);
  padding: 0.3rem 0;
}

.kude-item-head {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.4rem;
}

.text-right { text-align: right; }

.kude-totals {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
}

.kude-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.86rem;
  color: var(--text-body);
}

.total-highlight {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--text-primary);
  padding-top: 0.5rem;
  border-top: 1px dashed var(--border-strong);
}

.total-amount {
  color: var(--emerald);
  font-family: var(--font-mono);
}

.kude-footer {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding-top: 0.5rem;
}

.qr-svg {
  flex-shrink: 0;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  padding: 2px;
  background: #FFFFFF;
}

.kude-meta-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-grow: 1;
}

.kude-meta-text {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.kude-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.btn-fake {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  background: var(--accent-primary);
  color: var(--text-pure);
  border-radius: 6px;
}

.btn-fake-subtle {
  background: var(--bg-subtle);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

/* ==========================================================================
   Sección #erp: Sistemas Propios
   ========================================================================== */
.erp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.erp-grid.erp-grid-solo {
  grid-template-columns: 1fr;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.plan-special {
  background: var(--bg-surface);
  border: 1px solid var(--border-blue);
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   Sección #faq: Preguntas Frecuentes
   ========================================================================== */
.faq-container {
  max-width: 840px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.faq-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.faq-card:hover {
  border-color: var(--border-strong);
}

.faq-card.active {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-md);
}

.faq-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.3rem 1.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
}

.faq-q {
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  padding-right: 1rem;
}

.faq-icon {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--accent-primary);
  flex-shrink: 0;
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.faq-card.active .faq-icon {
  transform: rotate(45deg);
  color: var(--emerald);
}

.faq-body {
  display: none;
  padding: 0 1.5rem 1.4rem;
  font-size: 0.96rem;
  color: var(--text-body);
  line-height: 1.65;
}

.faq-card.active .faq-body {
  display: block;
}

/* ==========================================================================
   Banner CTA Monolith (Contraste Ejecutivo Navy Zafiro)
   ========================================================================== */
.section-cta {
  padding: 4rem 0 6rem;
  background: var(--bg-canvas);
}

.cta-monolith {
  position: relative;
  background: var(--grad-cta);
  border-radius: 24px;
  padding: 4rem 2.25rem;
  text-align: center;
  box-shadow: 0 28px 64px -12px rgba(6, 27, 49, 0.28);
  color: var(--text-pure);
  overflow: hidden;
}

.cta-kicker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #38BDF8;
  margin-bottom: 0.85rem;
  text-transform: uppercase;
}

.cta-title {
  font-size: clamp(1.9rem, 4vw, 2.85rem);
  font-weight: 800;
  color: var(--text-pure);
  margin-bottom: 1rem;
}

.cta-desc {
  font-size: 1.12rem;
  color: #CBD5E1;
  max-width: 640px;
  margin: 0 auto 2.4rem;
  line-height: 1.6;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* ==========================================================================
   Footer Institucional
   ========================================================================== */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 4.5rem 0 2.5rem;
  font-size: 0.92rem;
}

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

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1.2fr 1fr;
    gap: 2rem;
  }
}

.footer-col-brand .brand {
  margin-bottom: 0.85rem;
}

.footer-tagline {
  color: var(--text-body);
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 1.3rem;
}

.footer-legal-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.05rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
}

.legal-item {
  color: var(--text-body);
}

.legal-item strong {
  color: var(--text-primary);
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-primary);
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  color: var(--text-body);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

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

.link-highlight {
  color: var(--accent-primary) !important;
  font-weight: 600;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Responsive: Mobile-First Protections
   ========================================================================== */
@media (max-width: 860px) {
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: stretch;
    padding: 2rem 1.5rem;
    gap: 2rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--transition-smooth), opacity var(--transition-smooth), visibility var(--transition-smooth);
    z-index: 99;
    overflow-y: auto;
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-links li {
    border-bottom: 1px solid var(--border-subtle);
  }

  .nav-links a {
    display: block;
    padding: 1.1rem 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
  }

  .nav-mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
  }

  .nav-burger {
    display: flex;
  }

  .nav-wa-btn {
    display: none;
  }

  .nav-burger.open .burger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-burger.open .burger-bar:nth-child(2) {
    opacity: 0;
  }
  .nav-burger.open .burger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .hero-section {
    padding: 3rem 0 3.5rem;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-sub {
    font-size: 1rem;
    margin-bottom: 1.75rem;
  }
  .showcase-card {
    width: 285px;
    padding: 1.05rem 1.15rem;
  }
  .door-card {
    padding: 1.5rem 1.25rem 1.3rem;
  }
  .door-title {
    font-size: 1.35rem;
  }
  .mockup-frame {
    padding: 0.75rem;
  }
  .kude-preview {
    padding: 1rem;
  }
  .kude-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .kude-item-row {
    grid-template-columns: 1fr 38px 88px;
    gap: 0.35rem;
  }
  .kude-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .plan-card {
    padding: 1.5rem 1.2rem;
  }
  .plan-price .price-val {
    font-size: 1.6rem;
  }
  .cta-monolith {
    padding: 2.5rem 1.25rem;
  }
  .stat-pill {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   Botón Flotante de WhatsApp
   ========================================================================== */
.wa-float {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.wa-float-tooltip {
  background: var(--bg-surface);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
  pointer-events: none;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.wa-float:hover .wa-float-tooltip,
.wa-float:focus-visible .wa-float-tooltip {
  opacity: 1;
  transform: translateX(0);
}

.wa-float-btn {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: linear-gradient(135deg, #25D366 0%, #16A34A 100%);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px -6px rgba(22, 163, 74, 0.45), 0 4px 12px -2px rgba(6, 27, 49, 0.14);
  border: 2px solid rgba(255, 255, 255, 0.88);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast);
}

.wa-float-btn::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  border: 2px solid rgba(37, 211, 102, 0.45);
  animation: wa-pulse 2.8s cubic-bezier(0.16, 1, 0.3, 1) infinite;
  pointer-events: none;
}

@keyframes wa-pulse {
  0% {
    transform: scale(0.95);
    opacity: 0.75;
  }
  70%, 100% {
    transform: scale(1.26);
    opacity: 0;
  }
}

.wa-float:hover .wa-float-btn {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 18px 36px -6px rgba(22, 163, 74, 0.55), 0 6px 16px -2px rgba(6, 27, 49, 0.16);
  filter: brightness(1.03);
}

.wa-float:active .wa-float-btn {
  transform: translateY(-1px) scale(0.98);
}

.wa-float:focus-visible {
  outline: none;
}

.wa-float:focus-visible .wa-float-btn {
  outline: 3px solid var(--accent-primary);
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .wa-float {
    right: 1rem;
    bottom: 1rem;
  }
  .wa-float-btn {
    width: 52px;
    height: 52px;
  }
  .wa-float-tooltip {
    display: none;
  }
}

/* Reducción de Movimiento Accesible */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .showcase-track {
    animation: none !important;
  }
  .wa-float-btn::before {
    animation: none !important;
    opacity: 0;
  }
}

.erp-grid > *, .pyme-grid > * { min-width: 0; }
