/* ═══════════════════════════════════════════════════════════
   NextLis Landing Page — style.css
   ═══════════════════════════════════════════════════════════ */

/* ── Variables ── */
:root {
  --blue-dark:   #0e2a47;
  --blue:        #1d6fa4;
  --blue-light:  #2d8fd4;
  --indigo:      #3b4ec8;
  --cyan:        #00c2ff;
  --green:       #16a34a;
  --orange:      #ea7317;
  --purple:      #7c3aed;
  --pink:        #db2777;

  --white:       #ffffff;
  --gray-50:     #f8fafc;
  --gray-100:    #f1f5f9;
  --gray-200:    #e2e8f0;
  --gray-400:    #94a3b8;
  --gray-600:    #475569;
  --gray-800:    #1e293b;
  --gray-900:    #0f172a;

  --radius:      12px;
  --radius-lg:   20px;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow:      0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:   0 12px 40px rgba(0,0,0,.15);

  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --transition: 0.25s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }
input, textarea, select { font: inherit; }

/* ── Layout ── */
.container {
  width: min(1200px, 100% - 2.5rem);
  margin-inline: auto;
}
.section { padding: 5rem 0; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .625rem 1.375rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: .9375rem;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
}
.btn-primary:hover { background: var(--blue-light); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(29,111,164,.4); }
.btn-ghost {
  background: rgba(255,255,255,.12);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.3);
}
.btn-ghost:hover { background: rgba(255,255,255,.2); }
.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 1.5px solid var(--blue);
}
.btn-outline:hover { background: var(--blue); color: var(--white); }
.btn-lg { padding: .875rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }

/* ── Badge ── */
.badge {
  display: inline-block;
  padding: .3rem .9rem;
  background: rgba(29,111,164,.1);
  color: var(--blue);
  border-radius: 999px;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.badge-white {
  background: rgba(255,255,255,.15);
  color: var(--white);
}

/* ── Section header ── */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.2;
}
.section-header p {
  color: var(--gray-600);
  font-size: 1.0625rem;
}

/* ── Animations ── */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s ease, transform .55s ease;
}
[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ════════════════════════════════ NAV ═══════════════════════════════════ */
.nav-wrapper {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14,42,71,.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: box-shadow var(--transition);
}
.nav-wrapper.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.25); }

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 64px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: .625rem;
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 400;
  flex-shrink: 0;
}
.nav-logo strong { font-weight: 800; }
.nav-logo svg { flex-shrink: 0; }

.nav-links {
  display: flex;
  gap: .25rem;
  margin-left: 1rem;
  flex: 1;
}
.nav-links a {
  color: rgba(255,255,255,.75);
  font-size: .9375rem;
  padding: .375rem .75rem;
  border-radius: 6px;
  transition: all var(--transition);
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,.1); }

.nav-cta { margin-left: auto; }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: .5rem;
  margin-left: auto;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════════════════════════ HERO ═══════════════════════════════════ */
.hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, #0a3a6e 50%, #0d2d5c 100%);
  padding: 6rem 0 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 50%, rgba(0,194,255,.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding-bottom: 5rem;
}
.hero-text {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  color: var(--white);
}
.hero-text h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.02em;
}
.hero-sub {
  color: rgba(255,255,255,.75);
  font-size: 1.125rem;
  max-width: 480px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── Mockup ── */
.hero-mockup { position: relative; }
.mockup-window {
  background: #1a2744;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,.1);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,.4);
}
.mockup-bar {
  background: #0f1c35;
  padding: .75rem 1rem;
  display: flex;
  gap: .5rem;
  align-items: center;
}
.mockup-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
}
.mockup-body { display: flex; height: 340px; }
.mockup-sidebar {
  width: 56px;
  background: #0f1c35;
  padding: 1rem .5rem;
  display: flex;
  flex-direction: column;
  gap: .625rem;
  align-items: center;
  flex-shrink: 0;
}
.ms-logo {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--indigo);
  margin-bottom: .5rem;
}
.ms-item {
  width: 32px; height: 6px;
  border-radius: 4px;
  background: rgba(255,255,255,.12);
}
.ms-item.active { background: var(--cyan); width: 32px; height: 6px; }

.mockup-content {
  flex: 1;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .875rem;
  overflow: hidden;
}
.mc-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mc-title { height: 10px; width: 120px; background: rgba(255,255,255,.2); border-radius: 4px; }
.mc-btn { height: 22px; width: 72px; background: var(--blue); border-radius: 6px; }
.mc-cards { display: flex; gap: .625rem; }
.mc-card {
  flex: 1;
  height: 54px;
  border-radius: 8px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.06);
}
.mc-card.accent { background: rgba(0,194,255,.12); border-color: rgba(0,194,255,.2); }
.mc-table { display: flex; flex-direction: column; gap: .375rem; flex: 1; }
.mc-row {
  height: 28px;
  background: rgba(255,255,255,.05);
  border-radius: 6px;
}
.mc-row.header { background: rgba(255,255,255,.1); }
.mc-row.highlight { background: rgba(0,194,255,.1); border: 1px solid rgba(0,194,255,.15); }

.mockup-glow {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 100px;
  background: var(--blue);
  filter: blur(50px);
  opacity: .3;
  border-radius: 50%;
  pointer-events: none;
}

.hero-wave {
  margin-top: -1px;
  line-height: 0;
}
.hero-wave svg { width: 100%; height: 80px; }

/* ═══════════════════════════════ STATS ══════════════════════════════════ */
.stats {
  background: var(--gray-50);
  padding: 3rem 0;
  border-bottom: 1px solid var(--gray-200);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}
.stat-item { padding: 1rem; }
.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--blue);
  line-height: 1;
}
.stat-suffix {
  font-size: 2rem;
  font-weight: 900;
  color: var(--blue);
}
.stat-item p {
  margin-top: .375rem;
  color: var(--gray-600);
  font-size: .9375rem;
}

/* ══════════════════════════ FEATURES ════════════════════════════════════ */
.features { background: var(--white); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: .875rem;
}
.feature-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-icon.blue   { background: rgba(29,111,164,.1); color: var(--blue); }
.feature-icon.green  { background: rgba(22,163,74,.1);  color: var(--green); }
.feature-icon.purple { background: rgba(124,58,237,.1); color: var(--purple); }
.feature-icon.orange { background: rgba(234,115,23,.1); color: var(--orange); }
.feature-icon.cyan   { background: rgba(0,194,255,.1);  color: #0096c7; }
.feature-icon.pink   { background: rgba(219,39,119,.1); color: var(--pink); }

.feature-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--gray-900);
}
.feature-card p {
  color: var(--gray-600);
  font-size: .9375rem;
  line-height: 1.6;
}

/* ══════════════════════ INTEGRATIONS ════════════════════════════════════ */
.integrations { background: var(--gray-50); }

.integration-essalud {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  background: linear-gradient(135deg, var(--blue-dark), #0a3a6e);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  color: var(--white);
}
.ie-text { display: flex; flex-direction: column; gap: 1.25rem; }
.ie-text h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  line-height: 1.2;
}
.ie-text p { color: rgba(255,255,255,.78); font-size: 1.0625rem; line-height: 1.7; }
.ie-list { display: flex; flex-direction: column; gap: .625rem; }
.ie-list li {
  display: flex;
  align-items: center;
  gap: .625rem;
  color: rgba(255,255,255,.85);
  font-size: .9375rem;
}
.ie-list svg { width: 18px; height: 18px; color: var(--cyan); flex-shrink: 0; }

.ie-note {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 8px;
  padding: .75rem 1rem;
  font-size: .8125rem;
  color: rgba(255,255,255,.7);
  line-height: 1.5;
  margin-top: .25rem;
}
.ie-note svg { flex-shrink: 0; margin-top: 1px; color: var(--cyan); }

.ie-visual {
  display: flex;
  justify-content: center;
}
.ie-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius);
  padding: 1.5rem;
  width: 100%;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  gap: .875rem;
  backdrop-filter: blur(10px);
}
.ie-card-header { display: flex; align-items: center; gap: .75rem; }
.ie-avatar { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.2); flex-shrink: 0; }
.ie-name { height: 10px; width: 100px; background: rgba(255,255,255,.25); border-radius: 4px; margin-bottom: 6px; }
.ie-dni  { height: 8px;  width: 70px;  background: rgba(255,255,255,.15); border-radius: 4px; }
.ie-badge-valid {
  margin-left: auto;
  font-size: .75rem;
  font-weight: 700;
  background: rgba(22,163,74,.25);
  color: #4ade80;
  padding: .2rem .6rem;
  border-radius: 999px;
  border: 1px solid rgba(22,163,74,.3);
  flex-shrink: 0;
}
.ie-divider { height: 1px; background: rgba(255,255,255,.1); }
.ie-row { display: flex; align-items: center; gap: .75rem; }
.ie-label { height: 8px; border-radius: 4px; background: rgba(255,255,255,.15); width: 60px; flex-shrink: 0; }
.ie-label.short  { width: 40px; }
.ie-val { height: 8px; border-radius: 4px; background: rgba(255,255,255,.25); width: 80px; }
.ie-val.long   { width: 110px; }
.ie-val.medium { width: 95px; }

.analyzers-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .875rem;
  justify-content: center;
}
.analyzer-chip {
  display: flex;
  align-items: center;
  gap: .625rem;
  padding: .625rem 1.25rem;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: 999px;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--gray-800);
  transition: all var(--transition);
}
.analyzer-chip svg { width: 18px; height: 18px; color: var(--blue); }
.analyzer-chip:hover { border-color: var(--blue); color: var(--blue); }
.analyzer-chip.special {
  border-style: dashed;
  color: var(--gray-600);
}
.analyzer-chip.special:hover { border-color: var(--blue); color: var(--blue); }

.analyzers-note {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin-top: 1.75rem;
  background: rgba(29,111,164,.05);
  border: 1.5px solid rgba(29,111,164,.15);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  max-width: 780px;
  margin-inline: auto;
}
.analyzers-note svg { color: var(--blue); flex-shrink: 0; margin-top: 2px; }
.analyzers-note span {
  font-size: .9375rem;
  color: var(--gray-700);
  line-height: 1.65;
}
.analyzers-note strong { color: var(--gray-900); }
.analyzers-note a {
  color: var(--blue);
  font-weight: 600;
  margin-left: .25rem;
}
.analyzers-note a:hover { text-decoration: underline; }

/* ═══════════════════════ MÓDULOS EN DESARROLLO ══════════════════════════ */
.devmodules { background: var(--gray-50); }

.devmodules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.devmodule-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all var(--transition);
}
.devmodule-card:hover { box-shadow: var(--shadow); border-color: var(--blue); }
.devmodule-card.custom { border-color: var(--indigo); background: rgba(59,78,200,.03); }
.devmodule-card.custom:hover { box-shadow: 0 8px 30px rgba(59,78,200,.15); }

.dm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dm-icon {
  width: 44px; height: 44px;
  background: rgba(29,111,164,.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
}
.dm-icon svg { width: 22px; height: 22px; }
.devmodule-card.custom .dm-icon {
  background: rgba(59,78,200,.1);
  color: var(--indigo);
}

.dm-status {
  font-size: .75rem;
  font-weight: 700;
  padding: .25rem .75rem;
  border-radius: 999px;
  background: rgba(234,115,23,.1);
  color: var(--orange);
  border: 1px solid rgba(234,115,23,.2);
}
.dm-status.custom-status {
  background: rgba(59,78,200,.1);
  color: var(--indigo);
  border-color: rgba(59,78,200,.2);
}

.devmodule-card h3 {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--gray-900);
}
.devmodule-card p {
  color: var(--gray-600);
  font-size: .9375rem;
  line-height: 1.6;
}
.dm-features {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.dm-features li {
  font-size: .875rem;
  color: var(--gray-600);
  padding-left: 1rem;
  position: relative;
}
.dm-features li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 900;
  font-size: 1.2rem;
  line-height: 1;
}

/* ── Existing system banner ── */
.existing-system-banner {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: linear-gradient(135deg, var(--blue-dark), #0a3a6e);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  color: var(--white);
}
.esb-icon {
  width: 56px; height: 56px;
  background: rgba(255,255,255,.1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--cyan);
}
.esb-icon svg { width: 28px; height: 28px; }
.esb-text { flex: 1; }
.esb-text h4 {
  font-size: 1.125rem;
  font-weight: 800;
  margin-bottom: .375rem;
}
.esb-text p {
  font-size: .9375rem;
  color: rgba(255,255,255,.8);
  line-height: 1.6;
}
.esb-text strong { color: var(--cyan); }
.esb-cta { flex-shrink: 0; white-space: nowrap; }

@media (max-width: 900px) {
  .devmodules-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .existing-system-banner { flex-direction: column; text-align: center; padding: 1.75rem; }
  .esb-cta { width: 100%; justify-content: center; }
}

/* ═════════════════════════════ BRIDGE ══════════════════════════════════ */
.bridge-section { background: var(--white); }

.bridge-inner {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* Diagram */
.bridge-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  gap: .5rem;
}
.bd-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .625rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  border: 2px solid var(--gray-200);
  background: var(--gray-50);
  min-width: 120px;
  text-align: center;
}
.bd-node svg { width: 32px; height: 32px; }
.bd-node span { font-size: .8125rem; font-weight: 600; color: var(--gray-700); }
.bd-node.analyzer { border-color: var(--gray-300); }
.bd-node.bridge {
  border-color: var(--blue);
  background: rgba(29,111,164,.06);
  box-shadow: 0 0 0 4px rgba(29,111,164,.1);
}
.bd-node.bridge svg { color: var(--blue); }
.bd-node.server { border-color: var(--green); background: rgba(22,163,74,.05); }
.bd-node.server svg { color: var(--green); }

.bd-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .375rem;
  flex: 1;
  min-width: 80px;
  max-width: 140px;
}
.bd-line {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--gray-300), var(--blue), var(--gray-300));
  position: relative;
}
.bd-line::after {
  content: '';
  position: absolute;
  right: -1px;
  top: -4px;
  border: 5px solid transparent;
  border-left-color: var(--blue);
}
.bd-label { font-size: .75rem; color: var(--gray-400); font-weight: 500; white-space: nowrap; }

/* Features grid */
.bridge-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.bridge-feat {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.bridge-feat:hover { border-color: var(--blue); box-shadow: var(--shadow-sm); }
.bf-icon {
  width: 40px;
  height: 40px;
  background: rgba(29,111,164,.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--blue);
}
.bf-icon svg { width: 20px; height: 20px; }
.bridge-feat h4 {
  font-size: .9375rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: .3rem;
}
.bridge-feat p {
  font-size: .875rem;
  color: var(--gray-600);
  line-height: 1.55;
}

@media (max-width: 900px) {
  .bridge-features { grid-template-columns: 1fr 1fr; }
  .bridge-diagram { gap: .25rem; }
  .bd-arrow { min-width: 50px; }
}
@media (max-width: 600px) {
  .bridge-features { grid-template-columns: 1fr; }
  .bridge-diagram { flex-direction: column; }
  .bd-arrow { flex-direction: row; min-width: unset; width: 2px; height: 50px; max-width: unset; }
  .bd-line { width: 2px; height: 100%; background: linear-gradient(180deg, var(--gray-300), var(--blue), var(--gray-300)); }
  .bd-line::after { right: -4px; top: unset; bottom: -1px; border: 5px solid transparent; border-top-color: var(--blue); border-left-color: transparent; }
  .bd-label { display: none; }
}

/* ════════════════════════ HOW IT WORKS ══════════════════════════════════ */
.how { background: var(--white); }
.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
}
.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
  text-align: center;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.step:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.step-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--blue);
  line-height: 1;
  opacity: .3;
}
.step-body h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: .5rem;
}
.step-body p { color: var(--gray-600); font-size: .9375rem; }
.step-connector {
  width: 2.5rem;
  height: 2px;
  background: var(--gray-200);
  align-self: center;
  flex-shrink: 0;
}

/* ══════════════════════════ PRICING ══════════════════════════════════════*/
.pricing { background: var(--gray-50); }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}
.pricing-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  transition: all var(--transition);
}
.pricing-card:hover { box-shadow: var(--shadow-lg); }
.pricing-card.featured {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(29,111,164,.1), var(--shadow-lg);
  transform: translateY(-8px);
}
.plan-badge-top {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: var(--white);
  font-size: .75rem;
  font-weight: 700;
  padding: .25rem .875rem;
  border-radius: 999px;
  white-space: nowrap;
}
.plan-name {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--gray-900);
}
.plan-price {
  font-size: 2.75rem;
  font-weight: 900;
  color: var(--gray-900);
  line-height: 1;
}
.plan-price.enterprise {
  font-size: 1.75rem;
  color: var(--blue);
}
.currency {
  font-size: 1.25rem;
  font-weight: 700;
  vertical-align: top;
  line-height: 1.5;
  color: var(--gray-600);
}
.period {
  font-size: 1rem;
  font-weight: 400;
  color: var(--gray-400);
}
.plan-desc { color: var(--gray-600); font-size: .9375rem; }
.plan-features {
  display: flex;
  flex-direction: column;
  gap: .625rem;
  flex: 1;
}
.plan-features li {
  display: flex;
  align-items: center;
  gap: .625rem;
  font-size: .9375rem;
  color: var(--gray-800);
}
.plan-features li svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--green); }
.plan-features li.disabled { color: var(--gray-400); }
.plan-features li.disabled svg { color: var(--gray-300); }

/* ── Plan annual offer ── */
.plan-annual-offer {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: rgba(29,111,164,.08);
  border: 1.5px dashed rgba(29,111,164,.3);
  border-radius: 8px;
  padding: .6rem .875rem;
  font-size: .875rem;
  color: var(--gray-600);
  margin-top: -.25rem;
}
.plan-annual-offer svg { color: var(--orange); flex-shrink: 0; }
.plan-annual-offer strong { color: var(--blue); }
.pricing-card.featured .plan-annual-offer {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.2);
  color: rgba(255,255,255,.8);
}
.pricing-card.featured .plan-annual-offer strong { color: var(--cyan); }

/* ── Add-ons box ── */
.addons-box {
  margin-top: 2.5rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  background: var(--white);
}
.addons-title {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  font-size: .9375rem;
  color: var(--gray-800);
  margin-bottom: 1.25rem;
}
.addons-title svg { color: var(--blue); }
.addons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.addon-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: 1rem;
  background: var(--gray-50);
  border-radius: 8px;
  border: 1px solid var(--gray-200);
}
.addon-item svg { color: var(--blue); flex-shrink: 0; margin-top: 2px; }
.addon-item strong {
  display: block;
  font-size: .9rem;
  color: var(--gray-900);
  margin-bottom: .25rem;
}
.addon-item span {
  font-size: .8125rem;
  color: var(--gray-600);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .addons-grid { grid-template-columns: 1fr; }
  .addons-box { padding: 1.25rem; }
}

/* ══════════════════════════ CONTACT ══════════════════════════════════════*/
.contact { background: var(--white); }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.contact-text { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-text h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.2;
}
.contact-text p { color: var(--gray-600); font-size: 1.0625rem; }
.contact-channels { display: flex; flex-direction: column; gap: .875rem; }

.contact-channel {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  border: 1.5px solid var(--gray-200);
  font-weight: 600;
  font-size: .9375rem;
  color: var(--gray-800);
  transition: all var(--transition);
}
.contact-channel svg { width: 24px; height: 24px; flex-shrink: 0; }
.contact-channel span { font-weight: 400; color: var(--gray-600); font-size: .875rem; margin-left: auto; }
.contact-channel:hover { border-color: var(--blue); transform: translateX(4px); }
.contact-channel.whatsapp:hover { border-color: #25d366; }
.contact-channel.whatsapp svg { color: #25d366; }

.contact-form {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}
.form-group { display: flex; flex-direction: column; gap: .375rem; }
.form-group label {
  font-size: .875rem;
  font-weight: 600;
  color: var(--gray-800);
}
.form-group input,
.form-group textarea {
  padding: .75rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  background: var(--white);
  font-size: .9375rem;
  color: var(--gray-900);
  transition: border-color var(--transition);
  outline: none;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(29,111,164,.1); }
.form-group input.error,
.form-group textarea.error { border-color: #ef4444; }
.form-note {
  text-align: center;
  font-size: .8125rem;
  color: var(--gray-400);
}
.form-success {
  text-align: center;
  padding: .875rem;
  background: rgba(22,163,74,.1);
  border: 1px solid rgba(22,163,74,.2);
  border-radius: 8px;
  color: var(--green);
  font-weight: 600;
  font-size: .9375rem;
}

/* ═══════════════════════════════ FOOTER ══════════════════════════════════*/
.footer {
  background: var(--gray-900);
  color: rgba(255,255,255,.65);
  padding: 3.5rem 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.footer-brand { display: flex; flex-direction: column; gap: 1rem; max-width: 320px; }
.footer-brand .nav-logo { color: var(--white); font-size: 1.125rem; }
.footer-brand p { font-size: .9375rem; line-height: 1.6; }

.footer-links {
  display: flex;
  gap: 3rem;
  justify-content: flex-end;
}
.footer-links h4 {
  color: var(--white);
  font-size: .9375rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.footer-links ul { display: flex; flex-direction: column; gap: .625rem; }
.footer-links a {
  font-size: .9375rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--white); }

.footer-bottom {
  padding: 1.25rem 0;
  text-align: center;
  font-size: .875rem;
}

/* ══════════════════════════ RESPONSIVE ═══════════════════════════════════*/
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-mockup { display: none; }
  .hero { padding-bottom: 2rem; }
  .hero-wave svg { height: 50px; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .pricing-card.featured { transform: none; }
  .integration-essalud { grid-template-columns: 1fr; gap: 2rem; padding: 2.5rem; }
  .ie-visual { display: none; }
  .steps { flex-direction: column; }
  .step-connector { width: 2px; height: 2rem; align-self: center; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }

  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 64px 0 0;
    background: var(--gray-900);
    padding: 1.5rem;
    gap: .5rem;
    z-index: 99;
  }
  .nav-links.mobile-open a {
    font-size: 1.125rem;
    padding: .75rem 1rem;
    border-radius: 8px;
  }

  .section { padding: 3.5rem 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  .hero-text h1 { font-size: 2rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; justify-content: center; }
  .integration-essalud { padding: 2rem 1.5rem; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .step { padding: 1.5rem; }
}
