/* ═══════════════════════════════════════════════════════════════
   IAMATIZA — Estilos v4
   Tipografía: Fraunces + DM Sans
   Tema por defecto: LIGHT
   ═══════════════════════════════════════════════════════════════ */

:root {
  --teal:     #0B8457;
  --teal-lt:  #12D47A;
  --teal-dim: rgba(18,212,122,0.10);
  --teal-brd: rgba(18,212,122,0.22);
  --blue:     #1A3A6E;
  --transition-theme: background 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}

[data-theme="light"] {
  --bg:         #F5F8FF;
  --bg-card:    #FFFFFF;
  --bg-card2:   rgba(255,255,255,0.95);
  --bg-nav:     rgba(245,248,255,0.94);
  --bg-sep:     rgba(11,132,87,0.05);
  --bg-trusted: #EDF2F7;
  --txt:        #0D1B3E;
  --txt-sub:    #4A6080;
  --txt-faint:  #A0B4CC;
  --brd:        rgba(13,27,62,0.10);
  --brd-hover:  rgba(11,132,87,0.38);
  --shadow:     rgba(13,27,62,0.10);
  --orb1:       rgba(11,132,87,0.12);
  --orb2:       rgba(18,212,122,0.07);
  --noise-op:   0.06;
  --step-inactive: rgba(13,27,62,0.04);
  --modal-bg:   rgba(245,248,255,0.99);
}

[data-theme="dark"] {
  --bg:         #080F20;
  --bg-card:    #0D1B3E;
  --bg-card2:   rgba(13,27,62,0.75);
  --bg-nav:     rgba(8,15,32,0.90);
  --bg-sep:     rgba(11,132,87,0.07);
  --bg-trusted: #0A1525;
  --txt:        #F0F6FF;
  --txt-sub:    #8DA2C0;
  --txt-faint:  #2E4A6E;
  --brd:        rgba(255,255,255,0.07);
  --brd-hover:  rgba(18,212,122,0.28);
  --shadow:     rgba(0,0,0,0.50);
  --orb1:       rgba(11,132,87,0.28);
  --orb2:       rgba(18,212,122,0.10);
  --noise-op:   0.25;
  --step-inactive: rgba(255,255,255,0.03);
  --modal-bg:   rgba(8,15,32,0.98);
}

/* ═══════════════════════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--txt);
  overflow-x: hidden;
  transition: var(--transition-theme);
}

body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 0;
  opacity: var(--noise-op);
  transition: opacity 0.4s;
}

/* ═══════════════════════════════════════════════════════════════
   NAV
   ═══════════════════════════════════════════════════════════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 48px;
  background: var(--bg-nav);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--brd);
  transition: var(--transition-theme), padding 0.3s;
}

/* ── WORDMARK LOGO: IAM en verde, atiza en azul ── */
.logo {
  display: flex; align-items: center;
  font-family: 'Fraunces', serif;
  font-size: 22px; font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.01em;
  line-height: 1;
}
.logo-iam  { color: var(--teal); }
.logo-atiza { color: var(--blue); }
[data-theme="dark"] .logo-iam   { color: var(--teal-lt); }
[data-theme="dark"] .logo-atiza { color: #ffffff; }

.nav-links { display: flex; gap: 28px; list-style: none; align-items: center; }
.nav-links a {
  color: var(--txt-sub); text-decoration: none;
  font-size: 13.5px; font-weight: 400;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--teal); }

.nav-right { display: flex; align-items: center; gap: 10px; }

.btn-wa {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--teal);
  color: #fff;
  padding: 9px 18px; border-radius: 7px;
  font-size: 13px; font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn-wa:hover { background: var(--teal-lt); color: #0D1B3E; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(18,212,122,0.25); }

.theme-toggle {
  width: 40px; height: 40px; border-radius: 9px;
  border: 1px solid var(--brd);
  background: var(--bg-card2);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  transition: var(--transition-theme), transform 0.2s;
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--teal-lt); transform: rotate(15deg); }

/* ═══════════════════════════════════════════════════════════════
   REVEAL
   ═══════════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.10s; }
.reveal-delay-2 { transition-delay: 0.20s; }
.reveal-delay-3 { transition-delay: 0.30s; }

/* ═══════════════════════════════════════════════════════════════
   SHARED
   ═══════════════════════════════════════════════════════════════ */
.section-label {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--teal); font-weight: 500; margin-bottom: 12px;
}
[data-theme="dark"] .section-label { color: var(--teal-lt); }

.section-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 3.6vw, 48px);
  font-weight: 700; line-height: 1.1;
  letter-spacing: -0.02em; color: var(--txt);
  max-width: 900px;
}
.section-title em { font-style: italic; color: var(--teal); }
[data-theme="dark"] .section-title em { color: var(--teal-lt); }

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--teal); color: #fff;
  padding: 13px 26px; border-radius: 8px;
  font-size: 14.5px; font-weight: 500;
  text-decoration: none;
  transition: all 0.2s; border: none; cursor: pointer;
  font-family: 'DM Sans', sans-serif;
}
.btn-primary:hover { background: var(--teal-lt); color: #0D1B3E; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(11,132,87,0.22); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--txt);
  padding: 13px 26px; border-radius: 8px;
  font-size: 14.5px; font-weight: 400;
  text-decoration: none;
  border: 1px solid var(--brd);
  transition: all 0.2s; cursor: pointer;
  font-family: 'DM Sans', sans-serif;
}
.btn-outline:hover { border-color: var(--teal-lt); color: var(--teal); }

/* ═══════════════════════════════════════════════════════════════
   HERO — 2 columns: título izquierda, stat-cards derecha
   ═══════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  padding: 100px 48px 64px;
  overflow: hidden;
}

.hero-orb {
  position: absolute; border-radius: 50%;
  filter: blur(90px); pointer-events: none;
  transition: background 0.5s;
}
.hero-orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--orb1) 0%, transparent 70%);
  top: -80px; right: 0;
  animation: drift1 9s ease-in-out infinite alternate;
}
.hero-orb-2 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, var(--orb2) 0%, transparent 70%);
  bottom: 0; left: 8%;
  animation: drift2 11s ease-in-out infinite alternate;
}
@keyframes drift1 { to { transform: translate(-30px, 30px); } }
@keyframes drift2 { to { transform: translate(24px, -24px); } }

.hero-left {
  display: flex; flex-direction: column; justify-content: center;
  z-index: 1;
}

@keyframes shimmer-text {
  0%   { transform: translateX(-2px) translateY(-2px); }  /* esquina sup izq  */
  25%  { transform: translateX(0)    translateY(2px);  }  /* punta abajo      */
  50%  { transform: translateX(2px)  translateY(-2px); }  /* esquina sup der  */
  75%  { transform: translateX(0)    translateY(2px);  }  /* punta abajo otra vez */
  100% { transform: translateX(-2px) translateY(-2px); }  /* vuelve al inicio */
}

.hero-right {
  display: flex; flex-direction: column; gap: 12px;
  z-index: 1;
}

.hero-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-dim);
  border: 1px solid var(--teal-brd);
  padding: 6px 14px; border-radius: 100px;
  margin-bottom: 24px; width: fit-content;
  animation: fadeUp 0.7s ease both;
}
.hero-label::before {
  content: ''; width: 6px; height: 6px;
  border-radius: 50%; background: var(--teal-lt);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(1.5)} }

h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(38px, 4.8vw, 66px);
  font-weight: 900; line-height: 1.0;
  letter-spacing: -0.03em;
  animation: fadeUp 0.7s 0.1s ease both;
  color: var(--txt);
}
h1 em { font-style: italic; color: var(--teal); }
[data-theme="dark"] h1 em { color: var(--teal-lt); }

.hero-sub {
  font-size: 16px; font-weight: 300;
  color: var(--txt-sub); line-height: 1.8;
  margin-top: 20px; max-width: 500px;
  animation: fadeUp 0.7s 0.2s ease both;
}

.hero-actions {
  display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap;
  animation: fadeUp 0.7s 0.3s ease both;
}

/* ── STAT CARDS right column ── */
/* Fixed value width so text always aligns at same horizontal point */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--brd);
  border-radius: 10px;
  padding: 0;                         /* ← quita el padding del card entero */
  display: grid;
  grid-template-columns: 96px 1fr;
  align-items: stretch;               /* ← stretch en lugar de center */
  gap: 0;
  transition: box-shadow 0.3s, border-color 0.3s;
  animation: fadeUp 0.7s ease both;
  max-height: 80px;
  overflow: hidden;                   /* ← necesario para que border-radius corte la imagen */
}
.stat-card:nth-child(1) { animation-delay: 0.30s; }
.stat-card:nth-child(2) { animation-delay: 0.40s; }
.stat-card:nth-child(3) { animation-delay: 0.50s; }
.stat-card:nth-child(4) { animation-delay: 0.60s; }
.stat-card:hover { border-color: var(--brd-hover); box-shadow: 0 6px 24px var(--shadow); }

.stat-card-value {
  font-family: 'Fraunces', serif;
  font-size: 24px; font-weight: 900; line-height: 1;
  color: var(--teal);
  text-align: right;
  white-space: nowrap;
  padding: 14px 18px 14px 20px;      /* ← padding ahora vive aquí */
  align-self: center;
}
[data-theme="dark"] .stat-card-value { color: var(--teal-lt); }

.stat-card-divider {
  width: 1px; height: 32px; background: var(--brd); flex-shrink: 0;
  /* hidden — grid gap handles spacing */
  display: none;
}

.stat-card-label {
  font-size: 16px; color: var(--txt-sub); line-height: 1.4;
  font-weight: 400;
  border-left: 1px solid var(--brd);
  display: grid;
  grid-template-columns: 60% 40%;
  align-items: stretch;
  padding: 0;                         /* ← sin padding, lo maneja el texto */
  overflow: hidden;
}

.stat-card-label-text {
  padding: 14px 12px 14px 16px;      /* ← padding ahora vive aquí */
  align-self: center;
}

.stat-card-img {
  overflow: hidden;
  align-self: stretch;
}

.stat-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  opacity: 0.9;
}

@keyframes fadeUp { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }

/* ═══════════════════════════════════════════════════════════════
   PAIN SECTION — centrado
   ═══════════════════════════════════════════════════════════════ */
.pain-section {
  padding: 64px 48px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}
.pain-section .section-label { text-align: center; }
.pain-section .section-title { text-align: center; margin-bottom: 14px; }
.pain-intro {
  font-size: 15.5px; color: var(--txt-sub);
  font-weight: 300; line-height: 1.8;
  max-width: 600px; margin-bottom: 14px; text-align: center;
}
.pain-example-label {
  font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--txt-faint); margin-bottom: 28px; display: block; text-align: center;
}

.pain-grid {
  display: grid; grid-template-columns: repeat(2,1fr);
  gap: 1px;
  border: 1px solid var(--brd);
  border-radius: 14px; overflow: hidden;
  background: var(--brd);
  width: 100%; max-width: 960px;
  /* centrado automático por el flex padre */
}

.pain-card {
  background: var(--bg-card);
  padding: 32px 28px;
  position: relative; overflow: hidden;
  transition: background 0.3s;
  min-height: 240px;
  display: flex; flex-direction: column;
  text-align: left;
}
.pain-card:hover { background: var(--bg-card2); }
.pain-card::after {
  content: ''; position: absolute; bottom: 0; left: 28px; right: 28px; height: 2px;
  background: var(--teal-lt); transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s ease;
}
.pain-card:hover::after { transform: scaleX(1); }

.pain-number {
  display: block;
  font-size: 10px; font-weight: 700; letter-spacing: 0.15em;
  color: var(--txt-faint); margin-bottom: 10px;
}
.pain-icon { font-size: 22px; display: block; margin-bottom: 10px; }
.pain-title {
  font-family: 'Fraunces', serif;
  font-size: 17px; font-weight: 700; line-height: 1.25;
  color: var(--txt); margin-bottom: 10px;
}
.pain-body {
  font-size: 13.5px; color: var(--txt-sub); line-height: 1.7;
  margin-bottom: 16px; font-weight: 300; flex: 1;
}
.pain-stat {
  display: inline-block;
  font-size: 10px; font-weight: 600; letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-dim); border: 1px solid var(--teal-brd);
  padding: 4px 10px; border-radius: 100px; align-self: flex-start;
  word-break: break-word;
}

.opportunity-card-img {
  width: 100%; height: 120px;
  overflow: hidden;
}

.opportunity-card-img img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  object-position: center 50%; /* Baja el enfoque hacia la parte con la tabla */
  transform: scale(1); /* activa compositing layer */
  will-change: transform;
}

/* ═══════════════════════════════════════════════════════════════
   SEPARATOR — compacto
   ═══════════════════════════════════════════════════════════════ */
.separator {
  padding: 44px 48px;
  background: var(--bg-sep);
  border-top: 1px solid var(--brd);
  border-bottom: 1px solid var(--brd);
}
.separator-text {
  font-family: 'Fraunces', serif;
  font-size: clamp(16px, 2.2vw, 24px);
  font-style: italic;
  color: var(--txt-sub); text-align: center;
  max-width: 680px; margin: 0 auto; line-height: 1.65;
}
.separator-text strong { color: var(--txt); font-style: normal; }

/* ═══════════════════════════════════════════════════════════════
   HOW IT WORKS
   ═══════════════════════════════════════════════════════════════ */
.how-section { padding: 64px 48px; }
.how-header { text-align: center; max-width: 520px; margin: 0 auto 52px; }

.steps-track { max-width: 700px; margin: 0 auto; }

.step {
  display: flex;
  opacity: 0.35; transform: scale(0.97);
  transition: opacity 0.4s, transform 0.4s;
}
.step.active { opacity: 1; transform: scale(1); }

.step-left {
  display: flex; flex-direction: column; align-items: center;
  margin-right: 30px; flex-shrink: 0;
}
.step-num {
  width: 42px; height: 42px; border-radius: 10px;
  border: 1.5px solid var(--brd);
  background: var(--step-inactive);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif;
  font-size: 16px; font-weight: 700;
  color: var(--txt-faint); flex-shrink: 0;
  transition: all 0.4s;
}
.step.active .step-num {
  background: var(--teal-dim);
  border-color: var(--teal-brd);
  color: var(--teal);
}
.step-line {
  width: 1.5px; flex: 1; min-height: 28px;
  background: var(--brd); margin: 6px 0;
}
.step:last-child .step-line { display: none; }

.step-content { padding: 4px 0 42px; }
.step-tag {
  font-size: 10.5px; font-weight: 500; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--txt-faint); margin-bottom: 10px;
}
.step.active .step-tag { color: var(--teal); }
.step-title {
  font-family: 'Fraunces', serif;
  font-size: 19px; font-weight: 700; line-height: 1.2;
  color: var(--txt); margin-bottom: 10px;
}
.step-body { font-size: 13.5px; color: var(--txt-sub); line-height: 1.8; font-weight: 300; margin-bottom: 12px; }
.step-detail {
  font-size: 12px; font-weight: 500; color: var(--teal);
  background: var(--teal-dim); border: 1px solid var(--teal-brd);
  padding: 5px 11px; border-radius: 6px; display: inline-block;
}

/* ═══════════════════════════════════════════════════════════════
   VALUE PROPS
   ═══════════════════════════════════════════════════════════════ */
.value-section { padding: 64px 48px; background: var(--bg-sep); }
.value-header {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: end;
  max-width: 1080px; margin: 0 auto 40px;
}
.value-header p { font-size: 14px; color: var(--txt-sub); line-height: 1.8; font-weight: 300; }
.value-header strong { color: var(--teal); }

.value-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 12px; max-width: 1080px; margin: 0 auto;
}
.value-card {
  background: var(--bg-card);
  border: 1px solid var(--brd);
  border-radius: 12px;
  padding: 26px 22px;
  transition: all 0.3s;
  min-height: 160px;
  display: flex; flex-direction: column;
}
.value-card:hover { border-color: var(--brd-hover); transform: translateY(-2px); box-shadow: 0 10px 30px var(--shadow); }
.value-icon { font-size: 22px; margin-bottom: 12px; display: block; }
.value-title {
  font-family: 'Fraunces', serif;
  font-size: 15.5px; font-weight: 700;
  color: var(--txt); margin-bottom: 8px;
}
.value-body { font-size: 13px; color: var(--txt-sub); line-height: 1.7; font-weight: 300; flex: 1;}

/* ═══════════════════════════════════════════════════════════════
   SECTORS CAROUSEL
   ═══════════════════════════════════════════════════════════════ */
.sectors-section { padding: 64px 0; overflow: hidden; }
.sectors-header { padding: 0 48px; max-width: 800px; margin: 0 auto 40px; text-align: center; }

.carousel-wrapper { width: 100%; overflow: hidden; padding: 10px 0; }
.carousel-track { display: flex; gap: 16px; width: max-content; }

.sector-card {
  width: 260px; flex-shrink: 0;
  height: 320px;
  background: var(--bg-card);
  border: 1px solid var(--brd);
  border-radius: 14px;
  padding: 26px 22px;
  position: relative; overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
  display: grid;
  grid-template-rows: 25% 50% 25%;
}
.sector-zone-head {
  display: flex; flex-direction: column; justify-content: flex-start;
  overflow: hidden;
}
.sector-zone-body {
  display: flex; align-items: flex-start;
  overflow: hidden;
}
.sector-zone-stat {
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden;
}
.sector-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: var(--accent-color);
  border-radius: 14px 14px 0 0;
}
.sector-card:hover { border-color: var(--accent-color); transform: translateY(-3px); }

.sector-emoji { font-size: 22px; display: block; margin-bottom: 6px; }
.sector-name {
  font-family: 'Fraunces', serif;
  font-size: 17px; font-weight: 700;
  color: var(--txt); margin-bottom: 2px;
  line-height: 1.2;
}
.sector-ente {
  font-size: 10px; font-weight: 600; letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--accent-color); margin-bottom: 0;
  line-height: 1.3;
}
.sector-pain {
  font-size: 12.5px; color: var(--txt-sub);
  line-height: 1.55; font-weight: 300;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sector-stat {
  font-family: 'Fraunces', serif;
  font-size: 24px; font-weight: 700;
  color: var(--accent-color);
  line-height: 1.1;
}
.sector-stat-label {
  font-size: 10.5px; color: var(--txt-faint);
  margin-top: 3px; line-height: 1.4;
}

.carousel-dots { display: flex; gap: 7px; justify-content: center; padding: 20px 0 0; }
.carousel-dot {
  width: 22px; height: 4px; border-radius: 2px;
  background: var(--brd); border: none; cursor: pointer;
  transition: background 0.3s, width 0.3s;
}
.carousel-dot.active { background: var(--teal-lt); width: 38px; }

/* ═══════════════════════════════════════════════════════════════
   PRIVACY / VS — tabla con texto justificado
   ═══════════════════════════════════════════════════════════════ */
.privacy-section { padding: 64px 48px; }
.privacy-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px; align-items: center;
  max-width: 1080px; margin: 0 auto;
}
.privacy-box {
  background: var(--bg-card);
  border: 1px solid var(--brd);
  border-radius: 14px;
  padding: 28px 28px;
}
.privacy-box-icon { font-size: 20px; display: block; margin-bottom: 12px; }
.privacy-title-viz {
  font-family: 'Fraunces', serif;
  font-size: 16px; font-weight: 700;
  color: var(--txt); margin-bottom: 18px;
}

/* VS Table — texto justificado en todas las celdas */
.vs-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

/* Anchos uniformes: 35% / 30% / 35% */
.vs-table colgroup col:nth-child(1),
.vs-table colgroup col:nth-child(3) { width: 35%; }
.vs-table colgroup col:nth-child(2) { width: 30%; }

/* HEADERS */
.vs-table thead tr th {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  padding: 0 10px 14px 10px;
  color: var(--txt-faint);
  vertical-align: middle;
}
.vs-table thead tr th:first-child {
  text-align: left;
  color: #ef4444;          /* rojo suave para el lado "negativo" */
}
.vs-table thead tr th:nth-child(2) {
  text-align: center;
}
.vs-table thead tr th:last-child {
  text-align: right;
  color: var(--teal);      /* verde marca para el lado "positivo" */
}
[data-theme="dark"] .vs-table thead tr th:last-child { color: var(--teal-lt); }

/* BODY */
.vs-table tbody tr { border-top: 1px solid var(--brd); }
.vs-table tbody tr td {
  padding: 14px 10px;
  font-size: 12.5px;
  line-height: 1.5;
  vertical-align: middle;
  hyphens: none;
  word-break: normal;
}

/* Columna izquierda */
.vs-table tbody tr td:first-child {
  text-align: left;
  color: var(--txt-sub);
  font-weight: 400;
}

/* Columna central — etiqueta categoría */
.vs-table tbody tr td:nth-child(2) {
  color: var(--txt-faint);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  text-align: center;
}

/* Columna derecha */
.vs-table tbody tr td:last-child {
  text-align: right;
  color: var(--txt);       /* texto principal, más oscuro = más jerarquía */
  font-weight: 500;
}
[data-theme="dark"] .vs-table tbody tr td:last-child { color: var(--txt); }

.privacy-list {
  list-style: none; display: flex; flex-direction: column; gap: 12px;
  margin-top: 22px;
}
.privacy-list li {
  font-size: 13.5px; color: var(--txt-sub); line-height: 1.75; font-weight: 300;
  padding-left: 20px; position: relative;
}
.privacy-list li::before {
  content: '-'; position: absolute; left: 0;
  color: var(--teal); font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════
   CAPABILITIES GRID — 4 col, card style
   ═══════════════════════════════════════════════════════════════ */
.capabilities-section { padding: 64px 48px; }
.capabilities-header { max-width: 800px; margin: 0 auto 40px; text-align: center; }
.capabilities-header p { font-size: 14px; color: var(--txt-sub); margin-top: 10px; font-weight: 300; line-height: 1.7; }

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 1080px; margin: 0 auto;
}

.cap-card {
  position: relative;
  border: 1px solid var(--brd);
  border-radius: 12px;
  padding: 26px 16px 22px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  min-height: 140px;
  overflow: hidden;
  isolation: isolate;
  background-color: var(--blue);          /* fallback si la imagen no carga */
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  cursor: default;
}

/* Capa azulada encima de la imagen — garantiza contraste */
.cap-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    135deg,
    rgba(11, 28, 64, 0.78) 0%,
    rgba(26, 58, 110, 0.72) 50%,
    rgba(11, 132, 87, 0.65) 100%
  );
  z-index: 1;
  transition: opacity 0.25s;
}

.cap-card:hover {
  transform: translateY(-3px);
  border-color: var(--teal-lt);
  box-shadow: 0 10px 28px rgba(13, 27, 62, 0.30);
}
.cap-card:hover::before { opacity: 0.85; }

.cap-icon, .cap-label {
  position: relative;
  z-index: 2;
}

.cap-icon {
  font-size: 28px;
  margin-bottom: 10px;
  display: block;
  line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.35));
}

.cap-label {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  color: #ffffff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
  letter-spacing: 0.01em;
}

/* ═══════════════════════════════════════════════════════════════
   TRUSTED BRANDS — fondo oscuro, logos claros
   ═══════════════════════════════════════════════════════════════ */
.trusted-section {
  padding: 44px 48px;
  background: var(--bg-trusted);
  border-top: 1px solid var(--brd);
  border-bottom: 1px solid var(--brd);
}
.trusted-label {
  font-size: 11px; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--txt-faint);
  text-align: center; margin-bottom: 32px;
}
.trusted-logos {
  display: flex; align-items: center; justify-content: center;
  gap: 56px; flex-wrap: wrap;
}
/* Logo images: same height 44px, slight desaturation until hover */
.brand-logo {
  opacity: 0.60;
  transition: opacity 0.25s, filter 0.25s;
  display: flex; align-items: center;
}
.brand-logo:hover { opacity: 1; filter: grayscale(0%) brightness(1); }
.brand-logo img {
  height: 100px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
}

/* ═══════════════════════════════════════════════════════════════
   CTA
   ═══════════════════════════════════════════════════════════════ */
.cta-section {
  padding: 88px 48px;
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-eyebrow {
  font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 14px; display: block;
}
.cta-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(34px, 5vw, 66px);
  font-weight: 900; line-height: 1.0;
  letter-spacing: -0.03em; color: var(--txt);
  max-width: 800px; margin: 0 auto 18px;
}
.cta-title em { font-style: italic; color: var(--teal); }
[data-theme="dark"] .cta-title em { color: var(--teal-lt); }
.cta-sub {
  font-size: 15.5px; color: var(--txt-sub); max-width: 500px;
  margin: 0 auto 36px; line-height: 1.8; font-weight: 300;
}
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.cta-micro { font-size: 11.5px; color: var(--txt-faint); }

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
footer {
  padding: 32px 48px;
  border-top: 1px solid var(--brd);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: var(--txt-sub);
}
/* Wordmark in footer */
.footer-logo {
  display: flex; align-items: center;
  font-family: 'Fraunces', serif; font-size: 18px; font-weight: 700;
  text-decoration: none; line-height: 1;
}
.footer-logo .logo-iam   { color: var(--teal); }
.footer-logo .logo-atiza { color: var(--blue); }
[data-theme="dark"] .footer-logo .logo-iam   { color: var(--teal-lt); }
[data-theme="dark"] .footer-logo .logo-atiza { color: #ffffff; }

.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--txt-sub); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--teal); }

/* ═══════════════════════════════════════════════════════════════
   FLOAT WA
   ═══════════════════════════════════════════════════════════════ */
.float-wa {
  position: fixed; bottom: 24px; right: 24px; z-index: 300;
  width: 52px; height: 52px; border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,0.40);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.float-wa:hover { transform: scale(1.1); box-shadow: 0 10px 32px rgba(37,211,102,0.55); }
.float-wa svg { width: 24px; height: 24px; }

/* ═══════════════════════════════════════════════════════════════
   MODAL
   ═══════════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--modal-bg);
  border: 1px solid var(--brd);
  border-radius: 18px;
  padding: 38px 34px;
  width: 100%; max-width: 450px;
  max-height: 90vh; overflow-y: auto;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.32s ease;
  box-shadow: 0 28px 70px rgba(0,0,0,0.28);
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-close {
  position: absolute; top: 12px; right: 14px;
  width: 32px; height: 32px; border-radius: 7px;
  border: 1px solid var(--brd); background: var(--bg-card2);
  color: var(--txt-sub); cursor: pointer; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.modal-close:hover { border-color: var(--teal-lt); color: var(--teal); }
.modal-label {
  font-size: 10.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 8px;
}
.modal-title {
  font-family: 'Fraunces', serif;
  font-size: 22px; font-weight: 700; color: var(--txt);
  margin-bottom: 6px;
}
.modal-sub { font-size: 13px; color: var(--txt-sub); line-height: 1.6; margin-bottom: 22px; }

.form-group { margin-bottom: 14px; }
.form-label { display: block; font-size: 12.5px; font-weight: 500; color: var(--txt-sub); margin-bottom: 5px; }
.form-input, .form-select {
  width: 100%;
  background: var(--bg-card2); border: 1px solid var(--brd);
  border-radius: 7px; padding: 10px 12px;
  color: var(--txt); font-size: 13.5px; font-family: 'DM Sans', sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s; outline: none;
}
.form-input:focus, .form-select:focus {
  border-color: var(--teal-brd);
  box-shadow: 0 0 0 3px var(--teal-dim);
}
.form-select option { background: var(--bg-card); }
.form-group.error .form-input { border-color: #f87171; }
.form-group.error .phone-row .cs-btn,
.form-group.error .phone-row .form-input { border-color: #f87171; }
.form-error-msg { font-size: 11.5px; color: #f87171; margin-top: 4px; display: none; }
.form-group.error .form-error-msg { display: block; }

.phone-row { display: flex; gap: 7px; }
.cs-wrapper { position: relative; flex-shrink: 0; }
.cs-btn {
  display: flex; align-items: center; gap: 5px;
  background: var(--bg-card2); border: 1px solid var(--brd);
  border-radius: 7px; padding: 10px 10px;
  color: var(--txt); cursor: pointer; font-size: 12.5px;
  white-space: nowrap; transition: border-color 0.2s; height: 100%;
  font-family: 'DM Sans', sans-serif;
}
.cs-btn:hover, .cs-btn.open { border-color: var(--teal-brd); }
.cs-dropdown {
  position: absolute; top: calc(100% + 5px); left: 0; z-index: 300;
  background: var(--modal-bg); border: 1px solid var(--brd);
  border-radius: 11px; width: 270px;
  box-shadow: 0 12px 40px var(--shadow); display: none;
}
.cs-dropdown.open { display: block; }
.cs-search-wrap { padding: 9px; border-bottom: 1px solid var(--brd); }
.cs-search {
  width: 100%; background: var(--bg-card2); border: 1px solid var(--brd);
  border-radius: 7px; padding: 8px 11px;
  color: var(--txt); font-size: 12.5px; outline: none;
  font-family: 'DM Sans', sans-serif;
}
.cs-search:focus { border-color: var(--teal-brd); }
.cs-hint { padding: 6px 11px; font-size: 11px; color: var(--txt-faint); border-bottom: 1px solid var(--brd); }
.cs-list { max-height: 210px; overflow-y: auto; list-style: none; padding: 5px; }
.cs-item {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 8px; border-radius: 6px; cursor: pointer;
  font-size: 12.5px; transition: background 0.14s;
}
.cs-item:hover, .cs-item.hl { background: var(--bg-sep); }
.cs-item.sel { color: var(--teal); }
.ci-name { flex: 1; }
.ci-code { color: var(--txt-faint); font-size: 11.5px; }
.cs-empty { padding: 14px; color: var(--txt-faint); text-align: center; font-size: 12.5px; }

.form-submit {
  width: 100%; margin-top: 6px;
  background: var(--teal); color: #fff;
  padding: 12px; border-radius: 8px;
  font-size: 14px; font-weight: 500;
  cursor: pointer; border: none;
  transition: all 0.2s;
  font-family: 'DM Sans', sans-serif;
}
.form-submit:hover { background: var(--teal-lt); color: #0D1B3E; }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.form-success { display: none; text-align: center; padding: 24px 0; }
.form-success-icon { font-size: 38px; display: block; margin-bottom: 12px; }
.form-success-title {
  font-family: 'Fraunces', serif;
  font-size: 19px; font-weight: 700; color: var(--txt); margin-bottom: 8px;
}
.form-success-body { font-size: 13px; color: var(--txt-sub); line-height: 1.7; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
.stat-card-label { grid-template-columns: 55% 45%; }

   @media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding: 110px 24px 60px; }
  .hero-right { max-width: 500px; }
  .value-header { grid-template-columns: 1fr; gap: 16px; }
  .privacy-inner { grid-template-columns: 1fr; gap: 32px; }
  .capabilities-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  nav { padding: 12px 20px; }
  .nav-links { display: none; }
  .pain-section, .how-section, .value-section,
  .privacy-section, .capabilities-section,
  .trusted-section, .cta-section { padding-left: 20px; padding-right: 20px; }
  .pain-grid { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr 1fr; }
  .capabilities-grid { grid-template-columns: repeat(2, 1fr); }
  footer { flex-direction: column; align-items: flex-start; padding: 24px 20px; }
  .trusted-logos { gap: 32px; }
  .sectors-header { padding: 0 20px; }
  .separator { padding: 36px 20px; }
}
@media (max-width: 480px) {
  .value-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .cta-actions { flex-direction: column; align-items: center; }

  .stat-card {
    grid-template-columns: 78px 1fr;
    height: 96px;
    min-height: 96px;
    max-height: 96px;
  }
  .stat-card-value {
    font-size: 22px;
    padding: 12px 10px 12px 12px;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }
  .stat-card-label {
    grid-template-columns: 1fr 110px;
  }
  .stat-card-label-text {
    padding: 12px 10px 12px 14px;
    font-size: 14px;
    line-height: 1.35;
  }
}