@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800;900&display=swap');

/* ═══════════════════════════════════════════════════════════════
   INTEGRATOR ERP — DESIGN SYSTEM
   Paleta Stripe/SaaS neutral · #009b72 solo como acento
   Base: 1rem = 16px · Fuente cuerpo: 1.0625rem (~17px)
   Dark: slate-950 · Verde armónico: #10b981
═══════════════════════════════════════════════════════════════ */

/* ── RESET ── */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

a {
  color: inherit;
}

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

/* ── TOKENS: LIGHT ── */
:root {
  --green: #009b72;
  --green-dark: #007a5a;
  --green-tint: #f0fdf9;
  --green-light: #d1fae5;
  --green-border: #a7f3d0;

  --text-primary: #111827;
  --text-secondary: #6b7280;
  --text-tertiary: #c9cfd7;
  --border: #e5e7eb;
  --border-strong: #d1d5db;
  --bg: #ffffff;
  --bg-subtle: #f9fafb;
  --bg-muted: #f3f4f6;
  --card-bg: #ffffff;
  --card-border: #e5e7eb;
  --nav-bg: rgba(255, 255, 255, .95);
  --nav-border: #e5e7eb;

  --blue: #2563eb;
  --blue-light: #eff6ff;
  --blue-border: #bfdbfe;
  --amber: #d97706;
  --red: #dc2626;
  --red-light: #fef2f2;

  --logo-bg: #ffffff;
  --logo-border: #f7f7f7;
  --badge-bg: #f3f4f6;
  --badge-text: #374151;

  --sh: 0 1px 2px rgba(0, 0, 0, .05), 0 4px 12px rgba(0, 0, 0, .04);
  --sh-md: 0 2px 8px rgba(0, 0, 0, .07), 0 8px 24px rgba(0, 0, 0, .05);
  --sh-lg: 0 4px 16px rgba(0, 0, 0, .08), 0 16px 48px rgba(0, 0, 0, .06);

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 18px;
  --r-2xl: 24px;
  --ff: 'Nunito', sans-serif;
  --max: 1200px;
}

/* ── TOKENS: DARK ── */
[data-theme="dark"] {
  --green: #009b72;
  --green-dark: #34d399;
  --green-tint: #022c22;
  --green-light: #064e3b;
  --green-border: #065f46;

  --text-primary: #f8fafc;
  --text-secondary: #c9cfd7;
  --text-tertiary: #94a3b8;
  --border: #1e293b;
  --border-strong: #334155;
  --bg: #020617;
  --bg-subtle: #0f172a;
  --bg-muted: #1e293b;
  --card-bg: #0f172a;
  --card-border: #1e293b;
  --nav-bg: rgba(2, 6, 23, .95);
  --nav-border: #1e293b;

  --blue: #60a5fa;
  --blue-light: #0f172a;
  --blue-border: #1e3a5f;
  --amber: #fbbf24;
  --red: #f87171;
  --red-light: #1a0505;

  --logo-bg: #0e121c;
  --logo-border: #1f2937;
  --badge-bg: #1f2937;
  --badge-text: #d1d5db;

  --sh: 0 1px 2px rgba(0, 0, 0, .4), 0 4px 12px rgba(0, 0, 0, .3);
  --sh-md: 0 2px 8px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .3);
  --sh-lg: 0 4px 16px rgba(0, 0, 0, .5), 0 16px 48px rgba(0, 0, 0, .4);
}

/* ── BASE ── */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--ff);
  font-size: 1.0625rem;
  line-height: 1.5;
  background: var(--bg);
  color: var(--text-primary);
  transition: background .3s, color .3s;
  /*overflow-x: hidden;*/
}

[data-theme="dark"] body {
  background: #020617;
  color: #f8fafc;
}

/* ── ANNOUNCEMENT BAR — always dark bg ── */
.abar {
  background: #111827;
  padding: .5625rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  flex-wrap: wrap;
}

[data-theme="dark"] .abar {
  background: #030712;
}

[data-theme="dark"] input:-webkit-autofill,
[data-theme="dark"] input:-webkit-autofill:hover,
[data-theme="dark"] input:-webkit-autofill:focus,
[data-theme="dark"] input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px var(--green-border) inset !important;
  -webkit-text-fill-color: var(--text-primary) !important;
  caret-color: var(--text-primary);
  transition: background-color 5000s ease-in-out 0s;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px var(--green-tint) inset !important;
  -webkit-text-fill-color: var(--text-primary) !important;
  caret-color: var(--text-primary);
  transition: background-color 5000s ease-in-out 0s;
}

.abar-text {
  font-size: .9rem;
  color: #d1d5db;
  font-weight: 600;
  text-align: center;
}

.abar-text strong {
  color: #fff;
  font-weight: 800;
}

.abar-pill {
  background: rgba(16, 185, 129, .2);
  color: #6ee7b7;
  font-size: .75rem;
  font-weight: 800;
  padding: .125rem .625rem;
  border-radius: 20px;
  border: 1px solid rgba(16, 185, 129, .3);
}

/* ── NAVBAR ── */
.nav {
  padding: .25rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2rem;
  height: 3.875rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  cursor: pointer;
  flex-shrink: 0;
  text-decoration: none;
}

.nav-logo svg {
  transition: color 0.3s ease;
  height: 2.5rem;
  width: auto;
  display: block;
}

[data-theme="dark"] .nav-logo svg path {
  fill: #ffffff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links a {
  font-size: .95rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color .15s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -.15rem;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
  transition: width .2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

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

.nav-right {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.btn-ghost {
  background: transparent;
  color: var(--green);
  padding: .4375rem .8rem;
  border-radius: var(--r-sm);
  font-size: .9rem;
  font-weight: 600;
  border: 1px solid var(--border-strong);
  cursor: pointer;
  font-family: var(--ff);
  transition: all .15s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn-ghost:hover {
  background: var(--bg-muted);
  color: var(--green-dark);
  border-color: var(--border-strong);
}

.btn-cta {
  background: var(--green);
  color: #fff;
  padding: .5rem .8rem;
  border-radius: var(--r-sm);
  font-size: .9rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-family: var(--ff);
  transition: all .18s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn-cta:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .375rem;
  flex-direction: column;
  gap: .3125rem;
}

.hamburger span {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all .3s;
}

.mob-menu {
  display: none;
  flex-direction: column;
  background: var(--nav-bg);
  /*border-bottom: 1px solid var(--nav-border);*/
  backdrop-filter: blur(16px);

}

.mob-menu.open {
  display: flex;
}

.mob-menu a {
  font-size: .9375rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  padding: .875rem 2rem;
  border-bottom: 1px solid var(--border);
}

.mob-menu a:last-child {
  border-bottom: none !important;
}

.mob-menu a:hover {
  color: var(--text-primary);
  background: var(--bg-subtle);
}

.mob-menu .btn-cta {
  margin: .875rem 2rem 1.25rem;
  text-align: center;
  display: block;
}

/* ── THEME DROPDOWN ── */
.theme-dropdown {
  position: relative;
  flex-shrink: 0;
}

.theme-dropdown-btn {
  display: flex;
  align-items: center;
  gap: .11rem;
  padding: .6rem .3rem;
  border-radius: var(--r-sm);
  background: transparent;
  border: 1px solid var(--border);
  cursor: pointer;
  color: var(--text-secondary);
  font-family: var(--ff);
  font-size: .9rem;
  font-weight: 600;
  transition: all .18s;
}

.theme-dropdown-btn:hover {
  background: var(--bg-subtle);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

[data-theme="dark"] .theme-dropdown-btn {
  border-color: var(--border);
  color: var(--text-secondary);
}

[data-theme="dark"] .theme-dropdown-btn:hover {
  background: var(--bg-muted);
  color: var(--text-primary);
}

.icon-chevron {
  opacity: .5;
  transition: transform .2s;
  flex-shrink: 0;
}

.theme-dropdown-btn[aria-expanded="true"] .icon-chevron {
  transform: rotate(180deg);
}

/* Icon = current active mode */
.theme-dropdown-btn .icon-sun,
.theme-dropdown-btn .icon-moon {
  display: none;
}

.theme-dropdown-btn .icon-auto {
  display: block;
}

[data-mode="light"] .theme-dropdown-btn .icon-sun {
  display: block;
}

[data-mode="light"] .theme-dropdown-btn .icon-moon,
[data-mode="light"] .theme-dropdown-btn .icon-auto {
  display: none;
}

[data-mode="dark"] .theme-dropdown-btn .icon-moon {
  display: block;
}

[data-mode="dark"] .theme-dropdown-btn .icon-sun,
[data-mode="dark"] .theme-dropdown-btn .icon-auto {
  display: none;
}

[data-mode="auto"] .theme-dropdown-btn .icon-auto {
  display: block;
}

[data-mode="auto"] .theme-dropdown-btn .icon-sun,
[data-mode="auto"] .theme-dropdown-btn .icon-moon {
  display: none;
}

/* Dropdown panel */
.theme-dropdown-menu {
  display: none;
  flex-direction: column;
  gap: 2px;
  position: absolute;
  top: calc(100% + .375rem);
  right: 0;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  padding: .25rem;
  min-width: 9rem;
  z-index: 200;
}

.theme-dropdown-menu.open {
  display: flex;
}

.theme-menu-item {
  display: flex;
  align-items: center;
  gap: .5625rem;
  padding: .5rem .75rem;
  border: none;
  background: transparent;
  border-radius: var(--r-sm);
  cursor: pointer;
  font-family: var(--ff);
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-secondary);
  width: 100%;
  text-align: left;
  transition: all .15s;
}

.theme-menu-item:hover {
  background: var(--bg-subtle);
  color: var(--text-primary);
}

.theme-menu-item.active {
  color: var(--green);
  background: var(--green-tint);
}

.theme-menu-item.active svg {
  stroke: var(--green);
}

[data-theme="dark"] .theme-menu-item {
  color: var(--text-secondary);
}

[data-theme="dark"] .theme-menu-item:hover {
  background: #1e293b;
  color: #f1f5f9;
}

[data-theme="dark"] .theme-menu-item.active {
  background: #022c22;
  color: #10b981;
}

[data-theme="dark"] .theme-menu-item.active svg {
  stroke: #10b981;
}

[data-theme="dark"] .theme-dropdown-menu {
  background: #0f172a;
  border-color: #1e293b;
}

/* Kill old floating btn */
.theme-btn,
.nav-theme-toggle {
  display: none !important;
}

/* ── SECTIONS ── */
.sec {
  padding: 2.5rem 2rem;
}

.sec-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.sec-subtle {
  background: var(--bg-subtle);
}

.sec-muted {
  background: var(--bg-muted);
}

/* Dark sections use fixed colors (not CSS vars that invert) */
.sec-dark {
  background: #111827;
  position: relative;
  overflow: visible;
  z-index: 100;
}

[data-theme="dark"] .sec-dark {
  background: #030712;
}

.sec-header {
  margin-bottom: 2.25rem;
}

.version-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 2rem;
}

.version-container {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 3rem;
  align-items: center;
}

.versions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 16px;
}

.versions-grid-small {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.why-erp {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

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

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

.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.logos-carousel {
  overflow: hidden;
  position: relative;
  width: 100%;
  mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
  cursor: grab;
}

.logos-carousel:active {
  cursor: grabbing;
}

.logos-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: scroll-logos 50s linear infinite;
}

.logos-group {
  display: flex;
  gap: 1rem;
  margin-right: 1rem;
}

.logo-container {
  flex: 0 0 auto;
}

.logo-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: 90px;
  border: 1px solid var(--logo-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 12px;
  overflow: hidden;
}

.logo-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: filter 0.3s ease;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.logo-image:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.features-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.modelos-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.modelos-list>div {
  padding: 2rem;
}

.modulos-core {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 2rem;
}

.modulos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.modulos-grid .d2 {
  position: sticky;
  top: 90px;
}

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

.inversion-grid .d2>div {
  padding: 0 2rem;
}

.price-grid,
.diagnostico-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  position: relative;
}

.diagnostico-line {
  position: absolute;
  top: 20px;
  left: calc(12.5% + 18px);
  right: calc(12.5% + 18px);
  height: 2px;
  background: var(--card-border);
}

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

.remote-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: .75rem;
}

@keyframes scroll-logos {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (hover: hover) {
  .logos-carousel:hover .logos-track {
    animation-play-state: paused;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  font-size: .6875rem;
  font-weight: 800;
  color: var(--green);
  letter-spacing: .1em;
  margin-bottom: .6rem;
  text-transform: uppercase;
}

.eyebrow-light {
  color: #6ee7b7;
}

.sec-title {
  font-size: clamp(1.375rem, 3vw, 1.875rem);
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: .5rem;
  letter-spacing: -.03em;
  line-height: 1.12;
}

.sec-title-light {
  color: #f8fafc;
}

.sec-sub {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 85%;
}

/* ── BUTTONS ── */
.btn-p {
  background: var(--green);
  color: #fff;
  padding: .8125rem 1.625rem;
  border-radius: var(--r-lg);
  font-size: .9375rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  font-family: var(--ff);
  box-shadow: 0 2px 8px rgba(0, 155, 114, .25);
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
}

.btn-p:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 155, 114, .3);
}

.btn-s {
  background: transparent;
  color: var(--green);
  padding: .75rem 1.625rem;
  border-radius: var(--r-lg);
  font-size: .9375rem;
  font-weight: 700;
  border: 1.5px solid var(--border);
  cursor: pointer;
  font-family: var(--ff);
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
}

.btn-s:hover {
  border-color: var(--border-strong);
  background: var(--bg-subtle);
}

.btn-w {
  background: #065f46;
  color: #f8fafc;
  padding: .8125rem 1.625rem;
  border-radius: var(--r-lg);
  font-size: .9375rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  font-family: var(--ff);
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
}

.btn-w:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

/* ── CARDS ── */
.card {
  background: var(--card-bg);
  border-radius: var(--r-xl);
  border: 1px solid var(--card-border);
  padding: 1.75rem;
  transition: all .2s;
}

.card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--sh-md);
  transform: translateY(-2px);
}

.card-icon {
  width: 2.75rem;
  height: 2.75rem;
  background: var(--green-tint);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.125rem;
}

[data-theme="dark"] .card-icon {
  background: #022c22;
}

/* ── TRUST STRIP — always dark ── */
.trust {
  background: #111827;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .trust {
  background: #030712;
}

.trust-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.375rem 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.trust-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: .625rem;
  background: rgba(16, 185, 129, .15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-title {
  font-size: .94rem;
  font-weight: 700;
  color: #f8fafc;
}

.trust-sub {
  font-size: .8rem;
  color: #9ca3af;
  margin-top: 1px;
}

/* ── HERO ── */
.hero-wrap {
  background: var(--bg);
}

[data-theme="dark"] .hero-wrap {
  background: #020617;
}

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.25rem 2rem 3rem;
  display: grid;
  grid-template-columns: 1fr 500px;
  gap: 5rem;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--green-tint);
  border: 1px solid var(--green-border);
  color: var(--green-dark);
  font-size: .8rem;
  font-weight: 800;
  padding: .3125rem .875rem;
  border-radius: 20px;
  margin-bottom: 1.25rem;
}

[data-theme="dark"] .hero-eyebrow {
  background: #022c22;
  border-color: #065f46;
  color: #10b981;
}

.hero-eyebrow-dot {
  width: .4375rem;
  height: .4375rem;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
}

.hero h1 {
  font-size: clamp(1.75rem, 4.5vw, 2.875rem);
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.07;
  margin-bottom: 1rem;
  letter-spacing: -.04em;
}

[data-theme="dark"] .hero h1 {
  color: #f1f5f9;
}

.hero h1 em {
  color: var(--green);
  font-style: normal;
}

.hero-sub {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 500px;
}

.hero-btns {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: 2.25rem;
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: .875rem;
}

.proof-avs {
  display: flex;
}

.proof-av {
  width: 1.875rem;
  height: 1.875rem;
  border-radius: 50%;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .5625rem;
  font-weight: 800;
  color: var(--text-tertiary);
  margin-left: -0.35rem;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.proof-av:first-child {
  margin-left: 0;
}

.proof-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 2px;
}

.star {
  color: var(--amber);
  font-size: 1rem;
  line-height: .75;
}

.proof-txt {
  font-size: .85rem;
  color: var(--text-secondary);
}

.proof-txt strong {
  color: var(--text-primary);
  font-weight: 800;
}

/* ── DASHBOARD MOCKUP ── */
.hv-wrap {
  position: relative;
}

.hv-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 40%, rgba(0, 155, 114, .06) 0%, transparent 70%);
  pointer-events: none;
}

.hv-main {
  background: var(--card-bg);
  border-radius: var(--r-xl);
  border: 1px solid var(--card-border);
  box-shadow: var(--sh-lg);
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.hv-topbar {
  background: #111827;
  padding: .6875rem 1.125rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

[data-theme="dark"] .hv-topbar {
  background: #030712;
}

.hv-td {
  width: .625rem;
  height: .625rem;
  border-radius: 50%;
}

.hv-lbl {
  font-size: .6875rem;
  color: #9ca3af;
  font-weight: 600;
  margin-left: .5rem;
  opacity: .8;
}

.hv-body {
  padding: 1.125rem;
}

.hv-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
  margin-bottom: .625rem;
}

.hv-stat {
  background: var(--bg-subtle);
  border-radius: var(--r-md);
  padding: .875rem .75rem;
  border: 1px solid var(--card-border);
}

.hv-stat-val {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--green);
}

.hv-stat-lbl {
  font-size: .75rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin-top: 2px;
}

.hv-stat-trend {
  font-size: .5625rem;
  font-weight: 700;
  color: #10b981;
  margin-top: 1px;
}

.hv-chart {
  background: var(--bg-subtle);
  border-radius: var(--r-md);
  padding: .875rem;
  border: 1px solid var(--card-border);
  margin-bottom: .5rem;
}

.hv-chart-hdr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .6rem;
}

.hv-chart-title {
  font-size: .6875rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.hv-legend {
  display: flex;
  gap: .625rem;
}

.hv-legend-item {
  display: flex;
  align-items: center;
  gap: .25rem;
  font-size: .75rem;
  color: var(--text-tertiary);
}

.hv-legend-dot {
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
}

.hv-bars {
  display: flex;
  align-items: flex-end;
  gap: .25rem;
  height: 3.75rem;
}

.hv-bar-g {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  flex: 1;
  height: 100%;
}

.hv-b {
  border-radius: 3px 3px 0 0;
  flex: 1;
}

.hv-row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
}

.hv-mini {
  background: var(--bg-subtle);
  border-radius: var(--r-md);
  padding: .8125rem;
  border: 1px solid var(--card-border);
}

.hv-mini-lbl {
  font-size: .5625rem;
  font-weight: 700;
  color: var(--text-tertiary);
  margin-bottom: 3px;
}

.hv-mini-val {
  font-size: .94rem;
  font-weight: 800;
  color: var(--text-primary);
}

.hv-float {
  position: absolute;
  background: var(--card-bg);
  border-radius: var(--r-md);
  border: 1px solid var(--card-border);
  box-shadow: var(--sh-lg);
  padding: .625rem .875rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  z-index: 2;
}

.hv-float-1 {
  top: -1rem;
  right: -1.25rem;
}

.hv-float-2 {
  bottom: 1.25rem;
  left: -1.5rem;
}

.hv-float-icon {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: .5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hv-float-txt {
  font-size: .6875rem;
  font-weight: 700;
  color: var(--text-primary);
}

.hv-float-sub {
  font-size: .75rem;
  color: var(--text-secondary);
}

/* ── TAGS ── */
.tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  padding: .1875rem .625rem;
  border-radius: 20px;
}

.tag-green {
  background: var(--green-tint);
  color: var(--green-dark);
  border: 1px solid var(--green-border);
}

[data-theme="dark"] .tag-green {
  background: #022c22;
  color: #10b981;
  border-color: #065f46;
}

.tag-gray {
  background: var(--bg-muted);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.tag-blue {
  background: var(--blue-light);
  color: var(--blue);
  border: 1px solid var(--blue-border);
}

[data-theme="dark"] .tag-blue {
  background: #0f172a;
  color: #93c5fd;
  border-color: #1e3a5f;
}

.tag-featured {
  background: var(--green);
  color: #fff;
}

/* ── STATS BAR ── */
.stats-bar {
  background: var(--card-bg);
  border-radius: var(--r-xl);
  border: 1px solid var(--card-border);
  padding: 2rem 2.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  box-shadow: var(--sh);
}

.stat-item {
  text-align: center;
}

.stat-val {
  font-size: clamp(1.375rem, 3vw, 2rem);
  font-weight: 900;
  color: var(--green);
  line-height: 1;
}

.stat-lbl {
  font-size: .9rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin-top: .25rem;
}

/* ── WHY CARDS (always on dark bg section) ── */
.why-card {
  background: rgba(255, 255, 255, .04);
  border-radius: var(--r-xl);
  padding: 1.75rem;
  border: 1px solid rgba(255, 255, 255, .07);
  transition: all .2s;
}

.why-card:hover {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(16, 185, 129, .3);
}

.why-icon {
  width: 2.75rem;
  height: 2.75rem;
  background: rgba(16, 185, 129, .15);
  border-radius: .75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.why-card h3 {
  font-size: .9375rem;
  font-weight: 800;
  color: #f8fafc;
  margin-bottom: .375rem;
}

.why-card p {
  font-size: .94rem;
  color: var(--text-tertiary);
  line-height: 1.65;
}

.why-vs {
  display: inline-block;
  margin-top: .625rem;
  background: rgba(16, 185, 129, .1);
  color: #6ee7b7;
  font-size: .75rem;
  line-height: 1.25;
  font-weight: 700;
  padding: .1875rem .625rem;
  border-radius: .5rem;
  border: 1px solid rgba(16, 185, 129, .2);
}

/* ── PROCESS ── */
.proc-step {
  display: flex;
  gap: 1.375rem;
  position: relative;
  padding-bottom: 1.5rem;
}

.proc-step:last-child {
  padding-bottom: 0;
}

.proc-step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 1.1875rem;
  top: 2.5rem;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

[data-theme="dark"] .proc-step:not(:last-child)::before {
  background: #1e293b;
}

.proc-num {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: .9375rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 .25rem var(--green-tint);
}

[data-theme="dark"] .proc-num {
  box-shadow: 0 0 0 .25rem #022c22;
}

.proc-content h4 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: .25rem;
}

.proc-content p {
  font-size: .94rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.proc-pill {
  display: inline-flex;
  align-items: center;
  gap: .3125rem;
  margin-top: .4375rem;
  background: var(--green-tint);
  color: var(--green-dark);
  font-size: .6875rem;
  font-weight: 700;
  padding: .1875rem .75rem;
  border-radius: 20px;
  border: 1px solid var(--green-border);
}

[data-theme="dark"] .proc-pill {
  background: #022c22;
  color: #10b981;
  border-color: #065f46;
}

/* ── TESTIMONIALS ── */
.tcard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.tcard {
  background: var(--card-bg);
  border-radius: var(--r-xl);
  padding: 1.75rem;
  border: 1px solid var(--card-border);
  transition: all .2s;
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  height: 100%;
}

.tcard:hover {
  border-color: var(--border-strong);
  box-shadow: var(--sh-md);
  transform: translateY(-2px);
}

.tcard::before {
  content: '"';
  position: absolute;
  top: 1.125rem;
  right: 1.75rem;
  font-size: 3.5rem;
  color: var(--border);
  font-weight: 900;
  line-height: 1;
  font-family: Georgia, serif;
}

.tcard-sector {
  font-size: .75rem;
  font-weight: 800;
  color: var(--green);
  letter-spacing: .075em;
  margin-bottom: .875rem;
}

.tcard-quote {
  font-size: .94rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.125rem;
  font-style: italic;
}

.tcard-div {
  height: 1px;
  background: var(--border);
  margin-bottom: 1rem;
}

.tcard-autor {
  display: flex;
  align-items: center;
  gap: .6875rem;
}

.tcard-av {
  width: 2.375rem;
  height: 2.375rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}

.tcard-av-init {
  width: 2.375rem;
  height: 2.375rem;
  border-radius: 50%;
  background: var(--bg-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 900;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.tcard-name {
  font-size: .94rem;
  line-height: 1.25;
  font-weight: 800;
  color: var(--text-primary);
}

.tcard-emp {
  font-size: .8rem;
  color: var(--text-secondary);
}

.tcard-years {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  margin-top: .25rem;
  border-radius: 20px;
  border: 1px solid var(--green-border);
  background: var(--green-tint);
  color: var(--green-dark);
  font-size: .75rem;
  font-weight: 700;
  padding: .125rem .5625rem;
}

[data-theme="dark"] .tcard-years {
  color: #10b981;
}

/* ── LOGOS ── */
.logos-grid {
  display: grid;
  gap: 0.75rem 1rem;
  grid-template-columns: repeat(10, 1fr);
  align-items: stretch;
}

.logo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  text-align: center;
  transition: all 0.2s ease;
  isolation: isolate;
  height: 100%;
}

.logo-img {
  background: var(--logo-bg);
  border: 1px solid var(--logo-border);
  border-radius: 12px;
  overflow: hidden;
}

[data-theme="dark"] .logo-img {
  background: var(--logo-bg);
}

.logo-img img {
  max-width: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.logo-name {
  margin-top: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}

.logo-badge {
  margin: 6px auto;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 20px;
  border: 1px solid var(--green-border);
  background: var(--green-tint);
  color: var(--green-dark);
  white-space: nowrap;
}

.logo-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

/* ── MODULES ── */
.mod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: .625rem;
}

.mod-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--r-lg);
  padding: 1.0625rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
}

.mod-item:hover {
  border-color: var(--green);
  background: var(--green-tint);
}

[data-theme="dark"] .mod-item:hover {
  background: #022c22;
}

.mod-icon {
  width: 2.25rem;
  height: 2.25rem;
  background: var(--bg-muted);
  border-radius: .625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto .5rem;
}

.mod-name {
  font-size: .9rem;
  font-weight: 800;
  color: var(--text-primary);
  display: block;
  margin-bottom: .25rem;
}

.mod-tag {
  font-size: .65rem;
  font-weight: 700;
  padding: .125rem .5rem;
  border-radius: .5rem;
}

.mod-core {
  background: var(--green-tint);
  border-radius: var(--r-md);
  color: var(--green-dark);
  border: 1px solid var(--green-border);
  padding: 1px 6px;
}

[data-theme="dark"] .mod-core {
  background: #022c22;
  color: #10b981;
  border-color: #065f46;
}

.mod-add {
  background: var(--bg-muted);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

/* ── INVESTMENT COMPS ── */
.inv-comp {
  display: flex;
  align-items: center;
  gap: .875rem;
  background: var(--card-bg);
  border-radius: var(--r-lg);
  padding: 1.0625rem 1.25rem;
  border: 1px solid var(--card-border);
  transition: all .2s;
}

.inv-comp:hover {
  border-color: var(--border-strong);
  box-shadow: var(--sh);
}

.inv-comp-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: .625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ico-teal {
  background: var(--green-tint);
}

[data-theme="dark"] .ico-teal {
  background: #022c22;
}

.ico-blue {
  background: var(--blue-light);
}

[data-theme="dark"] .ico-blue {
  background: #0f172a;
  border: 1px solid #1e3a5f;
}

.inv-comp-name {
  font-size: .94rem;
  font-weight: 800;
  color: var(--text-primary);
}

.inv-comp-desc {
  font-size: .8rem;
  color: var(--text-tertiary);
}

.inv-tag-once {
  background: var(--green-tint);
  color: var(--green-dark);
  border: 1px solid var(--green-border);
  font-size: .75rem;
  font-weight: 700;
  padding: .125rem .625rem;
  border-radius: 20px;
}

[data-theme="dark"] .inv-tag-once {
  background: #022c22;
  color: #10b981;
  border-color: #065f46;
}

.inv-tag-anual {
  background: var(--blue-light);
  color: var(--blue);
  font-size: .75rem;
  font-weight: 700;
  padding: .125rem .625rem;
  border-radius: 20px;
}

[data-theme="dark"] .inv-tag-anual {
  background: #0f172a;
  color: #93c5fd;
}

/* ── CTA DARK BOX ── */
.cta-dark {
  background: #111827;
  border-radius: var(--r-2xl);
  padding: 2.5rem;
}

[data-theme="dark"] .cta-dark {
  background: #030712;
}

.cta-dark h3 {
  font-size: 1.3125rem;
  font-weight: 900;
  color: #f8fafc;
  margin-bottom: .5rem;
  line-height: 1.2;
}

.cta-dark p {
  font-size: .94rem;
  color: #9ca3af;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

/* ── CTA FINAL (green background) ── */
.cta-final {
  background: var(--green);
  position: relative;
  overflow: hidden;
}

.cta-final::before {
  content: '';
  position: absolute;
  bottom: -5rem;
  right: -5rem;
  width: 16.5rem;
  height: 16.5rem;
  background: rgba(255, 255, 255, .06);
  border-radius: 40% 60% 70% 30% / 50% 40% 60% 50%;
  pointer-events: none;
}

.cta-final::after {
  content: '';
  position: absolute;
  top: -3.75rem;
  left: -3.125rem;
  width: 12.25rem;
  height: 12.25rem;
  background: rgba(0, 0, 0, .07);
  border-radius: 60% 40% 30% 70% / 40% 60% 50% 60%;
  pointer-events: none;
}

.cta-final-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 2rem;
  display: grid;
  grid-template-columns: 1fr 27.5rem;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.cta-final h2 {
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.15;
  letter-spacing: -.03em;
}

.cta-final-desc {
  font-size: 1rem;
  color: rgba(255, 255, 255, .85);
  line-height: 1.8;
  margin-bottom: 1.75rem;
}

/* Paragraphs on green bg must always be white — not overridden by dark mode */
.cta-final p,
.cta-final .cta-final-desc {
  color: rgba(255, 255, 255, .85) !important;
}

.cta-proof {
  display: flex;
  flex-direction: column;
  gap: .625rem;
}

.cta-proof-item {
  display: flex;
  align-items: center;
  gap: .625rem;
  font-size: .94rem;
  color: rgba(255, 255, 255, .9);
}

.cta-proof-ck {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, .2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cta-form-box {
  background: rgba(255, 255, 255, .12);
  border-radius: var(--r-2xl);
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, .2);
  backdrop-filter: blur(10px);
}

.cta-form-title {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1.25rem;
}

.cta-field {
  margin-bottom: .875rem;
}

.cta-field label {
  display: block;
  font-size: .6875rem;
  font-weight: 700;
  color: rgba(255, 255, 255, .8);
  margin-bottom: .25rem;
}

.cta-field input,
.cta-field select,
.cta-field textarea {
  width: 100%;
  padding: .625rem .875rem;
  border-radius: var(--r-sm);
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .15);
  color: #fff;
  font-size: .94rem;
  font-family: var(--ff);
  outline: none;
  transition: border .2s;
  box-sizing: border-box;
}

.cta-field textarea {
  resize: vertical;
  min-height: 3.5rem;
  max-height: 7rem;
}

.cta-field input:focus,
.cta-field select:focus,
.cta-field textarea:focus {
  border-color: rgba(255, 255, 255, .6);
}

.cta-field input::placeholder,
.cta-field textarea::placeholder {
  color: rgba(255, 255, 255, .45);
}

.cta-field select option {
  color: #000;
  background: #fff;
}

/* RUC empresa display — shown only when RUC is verified */
.ruc-empresa-row {
  display: none;
  margin-bottom: .875rem;
}

.ruc-empresa-row.visible {
  display: block;
}

.ruc-empresa-display {
  width: 100%;
  font-size: .85rem;
  line-height: 1;
  font-family: var(--ff);
  font-weight: 700;
  letter-spacing: .01em;
  box-sizing: border-box;
}

/* Version para formularios blancos (diagnostico) */
.form-field .ruc-empresa-display {
  color: var(--text-primary);
}

[data-theme="dark"] .form-field .ruc-empresa-display {
  color: #f1f5f9;
}

/* Version para formularios verdes (cta) */
.cta-field .ruc-empresa-display {
  color: #fff;
}

/* 2-column grid reutilizable para ambos tipos */
.cta-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .875rem;
}

.cta-submit {
  width: 100%;
  background: #065f46;
  color: #f8fafc;
  padding: .8125rem;
  border-radius: var(--r-lg);
  font-size: .9375rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  font-family: var(--ff);
  transition: all .2s;
  margin-top: .25rem;
}

.cta-submit:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

.cta-note {
  font-size: .6875rem;
  color: rgba(255, 255, 255, .6);
  text-align: center;
  margin-top: .5rem;
}

/* ── FORMS ── */
.form-field {
  margin-bottom: 1rem;
}

.form-field label {
  display: block;
  font-size: .8rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: .25rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: .625rem .875rem;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--text-primary);
  font-size: .9375rem;
  font-family: var(--ff);
  outline: none;
  transition: border .2s;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0, 155, 114, .1);
}

[data-theme="dark"] .form-field input,
[data-theme="dark"] .form-field select,
[data-theme="dark"] .form-field textarea {
  background: #1e293b;
  border-color: #334155;
  color: #f1f5f9;
}

[data-theme="dark"] .form-field input::placeholder,
[data-theme="dark"] .form-field textarea::placeholder {
  color: #64748b;
}

[data-theme="dark"] .form-field label {
  color: var(--text-secondary);
}

.form-field textarea {
  resize: vertical;
  min-height: 5.5rem;
  max-height: 12rem;
}

.form-field-ruc {
  position: relative;
}

.form-field-ruc input {
  padding-right: 4.75rem;
}

.ruc-status {
  position: absolute;
  right: .50rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: .6875rem;
  font-weight: 700;
}

.ruc-ok {
  color: var(--green-dark);
}

.ruc-err {
  color: var(--red);
}

.ruc-loading {
  color: var(--text-primary);
}

.ruc-clear-hint {
  cursor: pointer;
  text-decoration: underline dotted;
  text-underline-offset: 2px;
}

.ruc-clear-hint:hover {
  color: var(--red);
}

/* RUC + phone row: RUC takes remaining, phone fixed at 115px */
.form-2col.phone-col,
.cta-2col.phone-col {
  grid-template-columns: 1fr 130px;
}

.form-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .875rem;
}

.form-alert {
  padding: .75rem 1rem;
  border-radius: var(--r-sm);
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: none;
}

.form-alert.success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
  display: block;
}

.form-alert.error {
  background: var(--red-light);
  color: #991b1b;
  border: 1px solid #fca5a5;
  display: block;
}

.form-alert.info {
  background: var(--blue-light);
  color: #1e40af;
  border: 1px solid #93c5fd;
  display: block;
}

.form-submit {
  width: 100%;
  background: var(--green);
  color: #fff;
  padding: .8125rem;
  border-radius: var(--r-lg);
  font-size: .9375rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  font-family: var(--ff);
  transition: all .2s;
  margin-top: .25rem;
}

.form-submit:hover {
  background: var(--green-dark);
}

.form-submit:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}

/* ── FORM SUCCESS OVERLAY ── */
.form-wrap {
  position: relative;
}

.form-success-overlay {
  position: absolute;
  inset: 0;
  border-radius: var(--r-2xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.75rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
  z-index: 20;
  gap: 1rem;
}

.form-success-overlay.show {
  opacity: 1;
  pointer-events: all;
}

/* Variant for white forms (diagnostico) */
.form-wrap .form-success-overlay {
  background: var(--bg);
  border: 1.5px solid var(--green-border);
}

[data-theme="dark"] .form-wrap .form-success-overlay {
  background: #0f172a;
}

/* Variant for green forms (cta boxes) */
.cta-form-box .form-success-overlay {
  background: var(--green);
  /*border: 1px solid rgba(255, 255, 255, .25);*/
  backdrop-filter: blur(12px);
}

.form-success-icon {
  width: 3.5rem;
  height: 3.5rem;
  background: var(--green-tint);
  border: 2px solid var(--green-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cta-form-box .form-success-icon {
  background: rgba(255, 255, 255, .15);
  border-color: rgba(255, 255, 255, .35);
}

.form-success-icon svg polyline {
  stroke: var(--green);
}

.cta-form-box .form-success-icon svg polyline {
  stroke: #fff;
}

.form-success-title {
  font-size: 1.125rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.2;
}

.cta-form-box .form-success-title {
  color: #fff;
}

.form-success-body {
  font-size: .875rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 22rem;
}

.cta-form-box .form-success-body {
  color: rgba(255, 255, 255, .85);
}

.form-success-accept {
  margin-top: .25rem;
  background: var(--green);
  color: #fff;
  border: none;
  padding: .7rem 2rem;
  border-radius: var(--r-lg);
  font-size: .9375rem;
  font-weight: 800;
  font-family: var(--ff);
  cursor: pointer;
  transition: all .2s;
}

.form-success-accept:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

.cta-form-box .form-success-accept {
  background: rgba(255, 255, 255, .2);
  border: 1.5px solid rgba(255, 255, 255, .45);
}

.cta-form-box .form-success-accept:hover {
  background: rgba(255, 255, 255, .35);
}

/* ── PAGE HERO — always dark bg ── */
.page-hero {
  background: #111827;
  padding: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .page-hero {
  background: #030712;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -7.5rem;
  right: -5rem;
  width: 25rem;
  height: 25rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, .025);
  pointer-events: none;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -5rem;
  left: -3.75rem;
  width: 18.75rem;
  height: 18.75rem;
  border-radius: 50%;
  background: rgba(16, 185, 129, .04);
  pointer-events: none;
}

.page-hero>* {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 900;
  color: #f8fafc;
  letter-spacing: -.03em;
  margin-bottom: .5rem;
}

.page-hero p {
  font-size: 1rem;
  color: var(--text-tertiary);
  max-width: 32.5rem;
  margin: 0 auto;
  line-height: 1.7;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-bottom: 1.125rem;
}

.breadcrumb a {
  font-size: .85rem;
  color: #64748b;
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--text-secondary);
}

.breadcrumb span {
  font-size: .85rem;
  color: #475569;
}

/* ── FOOTER — always dark bg ── */
.footer {
  background: #111827;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .footer {
  background: #030712;
}

.footer::before {
  content: '';
  position: absolute;
  top: -5rem;
  right: -5rem;
  width: 20rem;
  height: 20rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, .02);
  pointer-events: none;
}

.footer::after {
  content: '';
  position: absolute;
  bottom: -3.75rem;
  left: -3.125rem;
  width: 15rem;
  height: 15rem;
  border-radius: 50%;
  background: rgba(16, 185, 129, .025);
  pointer-events: none;
}

.footer-top {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 2rem;
  display: grid;
  grid-template-columns: 1.9fr 1fr 1fr 1fr;
  gap: 0 2.5rem;
  position: relative;
  z-index: 1;
}

.footer-logo svg path {
  fill: #ffffff;
}

.footer-extra {
  grid-column: 1 / -1;
}

.footer-tagline {
  font-size: .94rem;
  color: var(--text-tertiary);
  line-height: 1.5;
  margin-top: .5rem;
  max-width: 90%;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .95rem;
  color: var(--text-tertiary);
  text-decoration: none;
  transition: color .15s;
  padding: .125rem 0;
}

.footer-contact-item:hover {
  color: #f8fafc;
}

.footer-contact-item svg {
  flex-shrink: 0;
  opacity: .6;
}

.footer-col-title {
  font-size: .8rem;
  font-weight: 800;
  color: #f8fafc;
  margin-bottom: 1rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}

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

.footer-links li a {
  font-size: 1rem;
  color: var(--text-tertiary);
  text-decoration: none;
  transition: color .15s;
}

.footer-links li a:hover {
  color: #f8fafc;
}

.footer-link-social {
  display: flex;
  align-items: center;
  gap: .5625rem;
  font-size: .94rem;
  color: var(--text-tertiary);
  text-decoration: none;
  transition: color .15s;
  padding: .125rem 0;
}

.footer-link-social:hover {
  color: #f8fafc;
}

.footer-link-social svg {
  opacity: .5;
  flex-shrink: 0;
  transition: opacity .15s;
}

.footer-link-social:hover svg {
  opacity: 1;
}

.footer-social-icons {
  display: flex;
  gap: .5rem;
  margin-top: 1.125rem;
}

.footer-social-icon {
  width: 2.125rem;
  height: 2.125rem;
  border-radius: .5rem;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all .2s;
  flex-shrink: 0;
}

.footer-social-icon:hover {
  background: rgba(255, 255, 255, .16);
  color: #f8fafc;
  border-color: rgba(255, 255, 255, .24);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .07);
  position: relative;
  z-index: 1;
}

.footer-bottom-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-wrap: wrap;
  gap: .75rem;
}

.footer-bottom p {
  font-size: .85rem;
  color: var(--text-tertiary);
}

/* ── ANIMATIONS ── */
.fade-up {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity .6s ease, transform .6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.d1 {
  transition-delay: .08s;
}

.d2 {
  transition-delay: .16s;
}

.d3 {
  transition-delay: .24s;
}

.d4 {
  transition-delay: .32s;
}

.d5 {
  transition-delay: .4s;
}

.d6 {
  transition-delay: .48s;
}

/* ── DARK: section backgrounds ── */
[data-theme="dark"] .sec {
  background-color: #020617;
}

[data-theme="dark"] .sec-subtle {
  background-color: #0f172a !important;
}

[data-theme="dark"] .sec-muted {
  background-color: #1e293b !important;
}

[data-theme="dark"] .sec-bg2 {
  background-color: #0f172a !important;
}

/* ── DARK: text ── */
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4 {
  color: #f1f5f9;
}

/* Scoped p overrides — not on sections with inherently dark/colored bg */
[data-theme="dark"] .sec p,
[data-theme="dark"] .card p,
[data-theme="dark"] .tcard p,
[data-theme="dark"] .hero-sub,
[data-theme="dark"] .sec-sub {
  color: var(--text-secondary);
}

/* ── DARK: components ── */
[data-theme="dark"] .card {
  background: #0f172a;
  border-color: #1e293b;
}

[data-theme="dark"] .stats-bar {
  background: #0f172a;
  border-color: #1e293b;
}

[data-theme="dark"] .stat-lbl {
  color: #64748b;
}

[data-theme="dark"] .tcard {
  background: #0f172a;
  border-color: #1e293b;
}

[data-theme="dark"] .tcard::before {
  color: #1e293b;
}

[data-theme="dark"] .tcard-sector {
  color: #10b981;
}

[data-theme="dark"] .logo-chip {
  background: #0f172a;
  border-color: #1e293b;
  color: #64748b;
}

[data-theme="dark"] .logo-chip:hover {
  color: var(--text-secondary);
  border-color: #334155;
}

[data-theme="dark"] .mod-item {
  background: #0f172a;
  border-color: #1e293b;
}

[data-theme="dark"] .mod-icon {
  background: #1e293b;
}

[data-theme="dark"] .inv-comp {
  background: #0f172a;
  border-color: #1e293b;
}

[data-theme="dark"] .hv-main {
  background: #0f172a;
  border-color: #1e293b;
}

[data-theme="dark"] .hv-stat,
[data-theme="dark"] .hv-chart,
[data-theme="dark"] .hv-mini {
  background: #1e293b;
  border-color: #334155;
}

[data-theme="dark"] .hv-mini-val,
[data-theme="dark"] .hv-float-txt {
  color: #f1f5f9;
}

[data-theme="dark"] .hv-float {
  background: #1e293b;
  border-color: #334155;
}

[data-theme="dark"] .sol-card {
  background: #0f172a;
  border-color: #1e293b;
}

[data-theme="dark"] .sol-icon {
  background: #022c22;
}

[data-theme="dark"] .sol-mini {
  background: #1e293b;
  border-color: #334155;
}

[data-theme="dark"] .sol-mini h4 {
  color: #f1f5f9;
}

[data-theme="dark"] .sol-mini p {
  color: #64748b;
}

[data-theme="dark"] .eyebrow {
  color: #10b981;
}

[data-theme="dark"] .nav {
  background: rgba(2, 6, 23, .94);
  border-color: #1e293b;
}

[data-theme="dark"] .nav-links a {
  color: var(--text-secondary);
}

[data-theme="dark"] .nav-links a:hover,
[data-theme="dark"] .nav-links a.active {
  color: #f1f5f9;
}

[data-theme="dark"] .btn-ghost {
  border-color: #1e293b;
  color: var(--green);
}

[data-theme="dark"] .btn-ghost:hover {
  background: #1e293b;
  color: #f1f5f9;
}

[data-theme="dark"] .mob-menu {
  background: rgba(2, 6, 23, .97);
  border-color: #1e293b;
}

[data-theme="dark"] .mob-menu a {
  color: var(--text-secondary);
  border-color: #1e293b;
}

[data-theme="dark"] .proc-content h4 {
  color: #f1f5f9;
}

[data-theme="dark"] .proof-txt {
  color: var(--text-secondary);
}

[data-theme="dark"] .proof-txt strong {
  color: #f1f5f9;
}

/* ── DARK: inline style overrides ── */
[data-theme="dark"] [style*="background:var(--card-bg)"],
[data-theme="dark"] [style*="background: var(--card-bg)"] {
  background: #0f172a !important;
  border-color: #1e293b !important;
}

[data-theme="dark"] [style*="background:var(--bg-subtle)"] {
  background: #0f172a !important;
}

[data-theme="dark"] [style*="background:var(--bg-muted)"] {
  background: #1e293b !important;
}

[data-theme="dark"] [style*="background:var(--gray-900)"] {
  background: #030712 !important;
}

[data-theme="dark"] [style*="background:var(--green-tint)"] {
  background: #022c22 !important;
}

[data-theme="dark"] [style*="color:var(--text-primary)"] {
  color: #f1f5f9 !important;
}

[data-theme="dark"] [style*="color:var(--text-secondary)"] {
  color: #94a3b8 !important;
}

[data-theme="dark"] [style*="color:var(--text-tertiary)"] {
  color: #94a3b8 !important;
}

[data-theme="dark"] [style*="border:1px solid var(--card-border)"],
[data-theme="dark"] [style*="border-top:1px solid var(--card-border)"],
[data-theme="dark"] [style*="border-bottom:1px solid var(--card-border)"] {
  border-color: #1e293b !important;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — 4 breakpoints
═══════════════════════════════════════════════════════════════ */

/* ── 1100px: tablet landscape ── */

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — 4 breakpoints, single clean block
   All overrides here are definitive (no earlier versions exist)
══════════════════════════════════════════════════════════════ */

/* ── ≤1100px — tablet landscape ──────────────────────────────── */
@media(max-width:1100px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 2.5rem 2rem;
  }

  .hero>div {
    text-align: center;
    justify-self: center;
  }

  .hero-btns,
  .hero-proof {
    justify-content: center;
  }


  .hero h1 {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
  }

  .nav-inner {
    gap: 0.7rem;
  }

  .nav-links {
    gap: 1.25rem;
  }

  .hv-wrap {
    max-width: 500px;
    margin: 0 auto;
  }

  .hv-main {
    min-width: 500px;
  }

  .trust-inner {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .cta-final-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr !important;
    gap: 2rem;
  }

  .footer-extra>div {
    margin-top: 0 !important;
    align-items: center;
  }

  .logos-grid {
    grid-template-columns: repeat(8, 1fr);
  }
}

@media(max-width:1050px) {
  .btn-cta {
    display: none;
  }

  .version-container {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .version-block {
    display: none;
  }
}

@media(max-width:905px) {
  .nav-logo .logo-text {
    display: none;
  }

  .nav-logo .logo-wrap {
    width: 15px;
    overflow: hidden;
  }

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

  .logos-grid {
    grid-template-columns: repeat(7, 1fr);
  }

  .inversion-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .inversion-grid .d2>div {
    padding: 0 1rem;
  }

  .soporte-grid {
    gap: 2rem;
  }
}

/* ── ≤768px — tablet portrait / large mobile ─────────────────── */
@media(max-width:768px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .nav-inner {
    height: 56px;
    padding: 0 1.25rem;
  }

  .nav-logo img {
    height: 32px !important;
  }

  .hero {
    padding: 2rem 1.25rem;
    gap: 1.75rem;
  }

  .hero h1 {
    font-size: clamp(1.4rem, 5.5vw, 2rem);
  }

  .hero-sub {
    font-size: 1rem;
  }

  .btn-p,
  .btn-s {
    padding: .75rem 1.375rem;
    font-size: .94rem;
  }

  .sec {
    padding: 2rem 1.25rem;
  }

  .sec-title {
    font-size: clamp(1.25rem, 4vw, 1.75rem);
  }

  .sec-sub {
    font-size: 1rem;
  }

  .sec-header {
    margin-bottom: 1.5rem;
  }

  .trust-inner {
    grid-template-columns: repeat(2, 1fr);
    padding: 1rem 1.25rem;
    gap: .75rem;
  }

  .stats-bar {
    padding: 1.25rem;
    gap: 1rem;
  }

  .stat-val {
    font-size: 1.5rem;
  }

  .cta-final-inner {
    padding: 2.5rem 1.25rem;
  }

  .form-2col,
  .cta-2col {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr !important;
    gap: 1.5rem;
    padding: 2rem 1.25rem;
  }

  .footer-bottom-inner {
    flex-direction: column;
    gap: .5rem;
  }

  .page-hero {
    padding: 1.75rem 1.25rem;
  }

  .breadcrumb {
    display: none;
  }

  .hv-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .logos-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .version-list {
    grid-template-columns: 1fr;
    gap: 3px;
    margin-bottom: 1.25rem;
  }

  .versions-grid {
    grid-template-columns: 1fr;
    margin-bottom: 10px;
  }

  .versions-grid-small {
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 0;
  }

  .why-erp {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials {
    grid-template-columns: 1fr;
  }

  .card-icon {
    margin-bottom: .5rem;
  }

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

  .efacturacion {
    margin-top: 1rem;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .efacturacion .d2 {
    display: none;
  }

  .nav-logo .logo-wrap {
    width: auto;
    overflow: auto;
  }

  .nav-logo .logo-text {
    display: block;
  }

  .modelos-list {
    grid-template-columns: 1fr;
  }

  .modelos-list>div {
    padding: 1rem 2rem;
  }

  .modulos-core {
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 1.5rem;
  }

  .modulos-core .card {
    padding: 1rem 1.75rem;
  }

  .modulos-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .modulos-grid .d2 {
    position: relative;
    top: 0;
  }

  .inversion-grid .d2>div {
    padding: 0 0.5rem;
  }

  .price-grid,
  .diagnostico-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .price-grid .card {
    padding: 1rem 1.75rem;
  }

  .diagnostico-line {
    display: none;
  }

  .soporte-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .form-field {
    margin-bottom: 0;
  }
}


@media(max-width:575px) {

  .hv-float-1,
  .hv-float-2 {
    display: none;
  }

  .hv-main {
    min-width: auto;
  }

  .hv-wrap {
    max-width: auto;
  }

  .why-erp {
    grid-template-columns: 1fr;
  }

  .tcard-grid {
    grid-template-columns: 1fr;
  }

  .tcard {
    padding: 1rem 1.75rem;
  }

  .inversion-grid .d2>div {
    padding: 0;
  }
}

/* ── ≤480px — mobile ─────────────────────────────────────────── */
@media(max-width:480px) {
  html {
    font-size: 15px;
  }

  .hero h1 {
    font-size: 1.5rem;
    letter-spacing: -.02em;
  }

  .hero-btns {
    flex-direction: column;
  }

  .nav-inner {
    padding: 0 0.75rem;
    gap: 0.4rem;
  }

  .nav-logo svg {
    height: 2.2rem;
  }

  .btn-p,
  .btn-s,
  .btn-w {
    width: 100%;
    justify-content: center;
  }

  .trust-inner {
    grid-template-columns: 1fr;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .abar {
    padding: .5rem 1rem;
  }

  .footer-top {
    grid-template-columns: 1fr !important;
  }

  .footer-extra>div {
    align-items: start;
  }

  .cta-final-inner {
    padding: 2rem 1rem;
  }

  .hv-wrap {
    display: none;
  }

  .hv-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .logos-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .versions-grid-small {
    grid-template-columns: 1fr !important;
    margin-bottom: 0;
  }

  .hero {
    gap: 0;
  }

  .features-list {
    grid-template-columns: 1fr;
  }

  .modulos-core {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .price-grid,
  .diagnostico-grid {
    grid-template-columns: 1fr;
  }

  .logos-carousel {
    mask-image: none;
  }
}

@media(max-width:380px) {
  .nav-logo .logo-wrap {
    width: 15px;
    overflow: hidden;
  }

  .nav-logo .logo-text {
    display: none;
  }

  .mod-grid {
    grid-template-columns: 1fr;
  }

  .logos-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ── ≤360px — small mobile ───────────────────────────────────── */
@media(max-width:360px) {
  html {
    font-size: 14px;
  }

  .btn-ghost {
    display: none;
  }

  .hero h1 {
    font-size: 1.35rem;
  }

  .sec-title {
    font-size: 1.2rem;
  }

  .nav-inner {
    padding: 0 .875rem;
  }

  .stats-bar {
    grid-template-columns: 1fr;
  }

  .remote-grid {
    gap: .5rem;
  }

  .remote-grid a {
    padding: 1rem 0.5rem !important;
  }
}

@media(max-width:320px) {
  .logos-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .remote-grid {
    grid-template-columns: 1fr;
  }
}

/* ── HERO PREMIUM (Authentic integrator.pe style) ── */
.hero-premium {
    position: relative !important;
    overflow: hidden !important;
}

.hero-premium::before {
    content: '';
    position: absolute;
    top: -7.5rem;
    right: -5rem;
    width: 25rem;
    height: 25rem;
    background: rgba(255, 255, 255, .025);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.hero-premium::after {
    content: '';
    position: absolute;
    bottom: -5rem;
    left: -3.75rem;
    width: 18.75rem;
    height: 18.75rem;
    background: rgba(16, 185, 129, .04);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.hero-premium > .sec-inner {
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .hero-premium::before,
    .hero-premium::after {
        display: none;
    }
}