/* ═══════════════════════════════════════════════════════════
   COLEXIA — Corporate Site Stylesheet
   Served statically by Caddy under /web/ from /httproot/colex-ia.com
   ═══════════════════════════════════════════════════════════ */

:root {
  --navy-900: #0a1f3c;
  --navy-800: #0f2d56;
  --navy-700: #163d70;
  --navy-600: #1e4f8e;
  --navy-100: #d6e4f7;
  --navy-50:  #eef4fc;
  --gold-600: #b8891e;
  --gold-500: #c9a435;
  --gold-400: #dab84e;
  --gold-100: #fdf3d7;
  --gold-50:  #fffdf5;
  --purple-700: #6d28d9;
  --purple-600: #7c3aed;
  --purple-100: #ede9fe;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-400: #9ca3af;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50:  #f9fafb;
  --white: #ffffff;
  --green-600: #059669;
  --green-100: #d1fae5;
  --red-600: #dc2626;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 4px 16px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.14), 0 4px 12px rgba(0,0,0,.08);
  --shadow-xl: 0 24px 60px rgba(0,0,0,.18);
}

/* ── Reset & base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-top: 76px;
}

img  { max-width: 100%; display: block; }
a    { text-decoration: none; color: inherit; }

/* ── Typography ─────────────────────────────────────────── */
.eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--navy-700);
  background: var(--navy-50);
  border: 1px solid var(--navy-100);
  padding: .28rem .85rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}
.eyebrow.gold {
  color: var(--gold-600);
  background: var(--gold-100);
  border-color: #e8c96a;
}
.eyebrow.green {
  color: var(--green-600);
  background: var(--green-100);
  border-color: #6ee7b7;
}

h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; }

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--gray-900);
  margin-bottom: .75rem;
}
.section-title span {
  background: linear-gradient(135deg, var(--navy-700), var(--gold-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-sub {
  font-size: 1.1rem;
  color: var(--gray-600);
  max-width: 600px;
}

/* ── Layout ─────────────────────────────────────────────── */
.container  { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 88px 0; }
.section-sm { padding: 52px 0; }
.text-center { text-align: center; }
.text-center .section-sub { margin: 0 auto; }

/* ── Navigation ─────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 76px;
  background: rgba(10, 31, 60, .97);
  backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid rgba(201, 164, 53, .25);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.02em;
}
.nav-logo-badge {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: var(--navy-900);
  font-size: .65rem;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,.8);
  font-size: .9rem;
  font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: var(--gold-400); }
.nav-cta {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: var(--navy-900) !important;
  font-weight: 700 !important;
  padding: .55rem 1.4rem;
  border-radius: var(--radius-md);
  transition: opacity .2s !important;
}
.nav-cta:hover { opacity: .88; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 600;
  padding: .8rem 2rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all .2s;
  border: none;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: var(--navy-900);
  box-shadow: 0 4px 20px rgba(201, 164, 53, .35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 28px rgba(201, 164, 53, .45); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.5);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn-navy {
  background: var(--navy-800);
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.btn-navy:hover { background: var(--navy-700); transform: translateY(-1px); }
.btn-lg { font-size: 1.1rem; padding: 1rem 2.4rem; }

/* ── Hero ────────────────────────────────────────────────── */
#hero {
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  padding: 110px 0 96px;
  position: relative;
  overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 700px 500px at 80% 50%, rgba(201, 164, 53, .08) 0%, transparent 70%),
    radial-gradient(ellipse 400px 400px at 10% 80%, rgba(30, 79, 142, .5) 0%, transparent 65%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201, 164, 53, .15);
  border: 1px solid rgba(201, 164, 53, .3);
  color: var(--gold-400);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .4rem 1rem;
  border-radius: 20px;
  margin-bottom: 1.5rem;
}
.hero-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: 1.25rem;
}
.hero-title span {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,.75);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 520px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-proof {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: .85rem;
  color: rgba(255,255,255,.55);
}
.hero-proof-item { display: flex; align-items: center; gap: 6px; }
.hero-proof-item i { color: var(--gold-400); font-size: .9rem; }

/* Hero visual panel */
.hero-panel {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-xl);
  padding: 28px;
  backdrop-filter: blur(8px);
}
.hp-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.hp-dot { width: 10px; height: 10px; border-radius: 50%; }
.hp-dot.r { background: #ef4444; }
.hp-dot.y { background: var(--gold-500); }
.hp-dot.g { background: #22c55e; }
.hp-title { color: rgba(255,255,255,.5); font-size: .78rem; font-weight: 500; margin-left: 6px; font-family: monospace; }

.hp-stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}
.hp-stat {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}
.hp-stat-label { font-size: .72rem; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.hp-stat-value { font-size: 1.5rem; font-weight: 800; color: var(--white); }
.hp-stat-value.gold { color: var(--gold-400); }
.hp-stat-value.green { color: #4ade80; }

.hp-activity {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hp-act-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.04);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
}
.hp-act-icon {
  width: 28px; height: 28px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem;
  flex-shrink: 0;
}
.hp-act-icon.navy  { background: rgba(30, 79, 142, .5); color: #7eb3f5; }
.hp-act-icon.gold  { background: rgba(201, 164, 53, .2); color: var(--gold-400); }
.hp-act-icon.green { background: rgba(34, 197, 94, .2);  color: #4ade80; }
.hp-act-icon.red   { background: rgba(239, 68, 68, .2);  color: #f87171; }
.hp-act-text  { font-size: .8rem; color: rgba(255,255,255,.8); flex: 1; }
.hp-act-badge {
  font-size: .68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
}
.hp-act-badge.ok   { background: rgba(34,197,94,.2); color: #4ade80; }
.hp-act-badge.warn { background: rgba(201,164,53,.2); color: var(--gold-400); }
.hp-act-badge.new  { background: rgba(30,79,142,.4); color: #7eb3f5; }

/* ── Logos band ─────────────────────────────────────────── */
#logos-band {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  padding: 36px 0;
}
.logos-label {
  text-align: center;
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--gray-400);
  margin-bottom: 24px;
}
.logos-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px 40px;
}
.logo-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .9rem;
  font-weight: 700;
  color: var(--gray-600);
  padding: 8px 18px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.logo-chip i { color: var(--navy-700); }

/* ── Features ────────────────────────────────────────────── */
#features { background: var(--white); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
}
.feat-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all .25s;
  position: relative;
  overflow: hidden;
}
.feat-card:hover {
  border-color: var(--navy-100);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.feat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--navy-700), var(--gold-500));
  opacity: 0;
  transition: opacity .25s;
}
.feat-card:hover::before { opacity: 1; }
.feat-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}
.feat-icon.navy  { background: var(--navy-50);  color: var(--navy-700); }
.feat-icon.gold  { background: var(--gold-100);  color: var(--gold-600); }
.feat-icon.green { background: var(--green-100); color: var(--green-600); }
.feat-icon.purple{ background: var(--purple-100);color: var(--purple-600); }
.feat-title  { font-size: 1.1rem; font-weight: 700; color: var(--gray-900); margin-bottom: 10px; }
.feat-desc   { font-size: .92rem; color: var(--gray-600); line-height: 1.65; }
.feat-chips  { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.feat-chip {
  font-size: .72rem;
  font-weight: 600;
  background: var(--navy-50);
  color: var(--navy-700);
  border: 1px solid var(--navy-100);
  padding: 2px 9px;
  border-radius: 12px;
}

/* ── Multitenancy section ────────────────────────────────── */
#multitenancy {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-800));
  color: var(--white);
  position: relative;
  overflow: hidden;
}
#multitenancy::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 600px 400px at 100% 50%, rgba(201, 164, 53, .08) 0%, transparent 65%);
  pointer-events: none;
}
.multitenant-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.multitenant-grid .section-title { color: var(--white); }
.multitenant-grid .section-sub   { color: rgba(255,255,255,.7); }
.mt-list { list-style: none; margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.mt-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: rgba(255,255,255,.85);
  font-size: .95rem;
  line-height: 1.55;
}
.mt-check {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(201, 164, 53, .2);
  border: 1px solid rgba(201, 164, 53, .4);
  color: var(--gold-400);
  display: flex; align-items: center; justify-content: center;
  font-size: .65rem;
  flex-shrink: 0;
  margin-top: 2px;
}
/* Tenant cards panel */
.tenants-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.tenant-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  transition: all .25s;
}
.tenant-card:hover {
  background: rgba(255,255,255,.11);
  border-color: rgba(201, 164, 53, .3);
}
.tc-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.tc-logo {
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(201, 164, 53, .2);
  border: 1px solid rgba(201, 164, 53, .3);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.tc-name  { font-size: .9rem; font-weight: 700; color: var(--white); }
.tc-city  { font-size: .75rem; color: rgba(255,255,255,.5); }
.tc-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 8px;
}
.tc-stat  { font-size: .75rem; color: rgba(255,255,255,.55); }
.tc-stat strong { color: var(--gold-400); font-weight: 700; }

/* ── SSO section ─────────────────────────────────────────── */
#sso { background: var(--gray-50); }
.sso-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.sso-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sso-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: var(--shadow-sm);
  transition: all .2s;
}
.sso-card:hover { border-color: var(--navy-100); box-shadow: var(--shadow-md); }
.sso-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.sso-icon.ms    { background: #e8f1fb; color: #0078d4; }
.sso-icon.goog  { background: #fce8e6; color: #ea4335; }
.sso-icon.saml  { background: var(--navy-50); color: var(--navy-700); }
.sso-icon.certs { background: var(--gold-100); color: var(--gold-600); }
.sso-content h4 { font-size: .95rem; font-weight: 700; color: var(--gray-900); }
.sso-content p  { font-size: .85rem; color: var(--gray-600); margin-top: 2px; }

/* ── Módulos section ─────────────────────────────────────── */
#modulos { background: var(--white); }
.modules-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 52px;
}
.mod-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  transition: all .25s;
}
.mod-card:hover {
  border-color: var(--navy-100);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.mod-emoji  { font-size: 2rem; margin-bottom: 12px; }
.mod-title  { font-size: .9rem; font-weight: 700; color: var(--gray-900); margin-bottom: 6px; }
.mod-desc   { font-size: .8rem; color: var(--gray-600); line-height: 1.55; }

/* ── RGPD section ────────────────────────────────────────── */
#rgpd {
  background: linear-gradient(135deg, var(--navy-50), var(--gold-50));
}
.rgpd-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 52px;
}
.rgpd-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
}
.rgpd-card .feat-icon { margin-bottom: 14px; }
.rgpd-title { font-size: 1rem; font-weight: 700; color: var(--gray-900); margin-bottom: 8px; }
.rgpd-desc  { font-size: .88rem; color: var(--gray-600); line-height: 1.6; }

/* ── Pricing ─────────────────────────────────────────────── */
#precios { background: var(--white); }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 52px;
  align-items: start;
}
.price-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  position: relative;
  transition: all .25s;
}
.price-card:hover { box-shadow: var(--shadow-lg); }
.price-card.featured {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-800));
  border-color: var(--navy-700);
  color: var(--white);
}
.price-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: var(--navy-900);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 4px 16px;
  border-radius: 12px;
  white-space: nowrap;
}
.price-tier  { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--gray-400); margin-bottom: 10px; }
.price-card.featured .price-tier { color: rgba(255,255,255,.5); }
.price-name  { font-size: 1.4rem; font-weight: 800; color: var(--gray-900); margin-bottom: 6px; }
.price-card.featured .price-name { color: var(--white); }
.price-desc  { font-size: .88rem; color: var(--gray-600); margin-bottom: 24px; line-height: 1.5; }
.price-card.featured .price-desc { color: rgba(255,255,255,.65); }
.price-amount {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--navy-800);
  line-height: 1;
  margin-bottom: 4px;
}
.price-card.featured .price-amount { color: var(--gold-400); }
.price-amount sup { font-size: 1.3rem; vertical-align: super; font-weight: 700; }
.price-amount span { font-size: 1rem; font-weight: 400; color: var(--gray-500); }
.price-card.featured .price-amount span { color: rgba(255,255,255,.5); }
.price-period { font-size: .82rem; color: var(--gray-500); margin-bottom: 28px; }
.price-card.featured .price-period { color: rgba(255,255,255,.5); }
.price-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .88rem;
  color: var(--gray-700);
}
.price-card.featured .price-features li { color: rgba(255,255,255,.8); }
.price-features li i { color: var(--green-600); margin-top: 3px; flex-shrink: 0; }
.price-card.featured .price-features li i { color: var(--gold-400); }
.price-cta {
  display: block;
  text-align: center;
  padding: .85rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: .95rem;
  transition: all .2s;
}
.price-cta.outline {
  border: 2px solid var(--navy-100);
  color: var(--navy-700);
}
.price-cta.outline:hover { border-color: var(--navy-600); background: var(--navy-50); }
.price-cta.solid {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: var(--navy-900);
  box-shadow: 0 4px 16px rgba(201,164,53,.35);
}
.price-cta.solid:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(201,164,53,.45); }

/* Pilot banner */
.pilot-banner {
  margin-top: 52px;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-900));
  border-radius: var(--radius-xl);
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: relative;
  overflow: hidden;
}
.pilot-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 400px 300px at 100% 50%, rgba(201,164,53,.12) 0%, transparent 60%);
  pointer-events: none;
}
.pilot-text h3 { font-size: 1.5rem; font-weight: 800; color: var(--white); margin-bottom: 8px; }
.pilot-text p  { font-size: 1rem; color: rgba(255,255,255,.7); max-width: 480px; line-height: 1.55; }
.pilot-days {
  flex-shrink: 0;
  text-align: center;
  background: rgba(201,164,53,.15);
  border: 1px solid rgba(201,164,53,.3);
  border-radius: var(--radius-lg);
  padding: 20px 28px;
}
.pilot-days-number { font-size: 3rem; font-weight: 900; color: var(--gold-400); line-height: 1; }
.pilot-days-label  { font-size: .8rem; font-weight: 700; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .08em; margin-top: 4px; }

/* ── How it works ────────────────────────────────────────── */
#como-funciona { background: var(--gray-50); }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 52px;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 26px;
  left: calc(12.5% + 26px);
  right: calc(12.5% + 26px);
  height: 2px;
  background: linear-gradient(90deg, var(--navy-100), var(--gold-100), var(--navy-100));
}
.step-card { text-align: center; position: relative; }
.step-num {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-800));
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  box-shadow: 0 4px 16px rgba(15,45,86,.35);
  position: relative;
  z-index: 1;
}
.step-title  { font-size: 1rem; font-weight: 700; color: var(--gray-900); margin-bottom: 8px; }
.step-desc   { font-size: .875rem; color: var(--gray-600); line-height: 1.6; }

/* ── Testimonials ────────────────────────────────────────── */
#testimonios { background: var(--white); }
.testim-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 52px; }
.testim-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: all .2s;
}
.testim-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.testim-stars { color: var(--gold-500); font-size: .9rem; margin-bottom: 14px; }
.testim-text  { font-size: .92rem; color: var(--gray-700); line-height: 1.7; font-style: italic; margin-bottom: 18px; }
.testim-author { display: flex; align-items: center; gap: 12px; }
.testim-av {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-600));
  color: var(--white);
  font-size: .9rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.testim-name { font-size: .88rem; font-weight: 700; color: var(--gray-900); }
.testim-role { font-size: .78rem; color: var(--gray-500); }

/* ── CTA section ─────────────────────────────────────────── */
#cta {
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 100%);
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}
#cta::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 500px 400px at 0% 50%, rgba(201, 164, 53, .08) 0%, transparent 60%),
    radial-gradient(ellipse 400px 300px at 100% 80%, rgba(30, 79, 142, .4) 0%, transparent 55%);
  pointer-events: none;
}
.cta-inner { text-align: center; max-width: 700px; margin: 0 auto; position: relative; }
.cta-title { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 900; color: var(--white); margin-bottom: .75rem; }
.cta-sub   { font-size: 1.1rem; color: rgba(255,255,255,.7); margin-bottom: 2.5rem; line-height: 1.6; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cta-email {
  margin-top: 28px;
  font-size: .88rem;
  color: rgba(255,255,255,.55);
}
.cta-email a { color: var(--gold-400); }

/* ── Footer ──────────────────────────────────────────────── */
footer {
  background: var(--navy-900);
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 52px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand h3 { font-size: 1.2rem; font-weight: 800; color: var(--white); margin-bottom: 10px; }
.footer-brand p  { font-size: .85rem; color: rgba(255,255,255,.5); line-height: 1.65; max-width: 280px; }
.footer-col h4   { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.4); margin-bottom: 14px; }
.footer-col ul   { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col li a { font-size: .875rem; color: rgba(255,255,255,.6); transition: color .2s; }
.footer-col li a:hover { color: var(--gold-400); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .8rem;
  color: rgba(255,255,255,.35);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a { color: rgba(255,255,255,.45); transition: color .2s; }
.footer-bottom a:hover { color: var(--gold-400); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .features-grid  { grid-template-columns: repeat(2, 1fr); }
  .modules-grid   { grid-template-columns: repeat(2, 1fr); }
  .footer-grid    { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .hero-grid, .multitenant-grid, .sso-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-panel { display: none; }
  .nav-links  { display: none; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid::before { display: none; }
  .pricing-grid { grid-template-columns: 1fr; }
  .rgpd-grid    { grid-template-columns: 1fr; }
  .testim-grid  { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .modules-grid  { grid-template-columns: repeat(2, 1fr); }
  .pilot-banner  { flex-direction: column; text-align: center; }
  .footer-grid   { grid-template-columns: 1fr; }
  .tenants-panel { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .modules-grid { grid-template-columns: 1fr; }
  .steps-grid   { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* ── Contact form ────────────────────────────────────────── */
.contact-form {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-xl);
  padding: 36px 40px;
  margin-top: 32px;
  text-align: left;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}
.cf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.cf-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cf-full { margin-bottom: 16px; }
.cf-field label {
  font-size: .8rem;
  font-weight: 600;
  color: rgba(255,255,255,.75);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.cf-field input,
.cf-field select,
.cf-field textarea {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-md);
  color: var(--white);
  font-family: inherit;
  font-size: .95rem;
  padding: .7rem 1rem;
  outline: none;
  transition: border-color .2s, background .2s;
  width: 100%;
}
.cf-field input::placeholder,
.cf-field textarea::placeholder { color: rgba(255,255,255,.35); }
.cf-field input:focus,
.cf-field select:focus,
.cf-field textarea:focus {
  border-color: var(--gold-400);
  background: rgba(255,255,255,.12);
}
.cf-field select option { background: var(--navy-800); color: var(--white); }
.cf-field textarea { resize: vertical; min-height: 100px; }

/* CAPTCHA row */
.cf-captcha {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  background: rgba(201,164,53,.08);
  border: 1px solid rgba(201,164,53,.25);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  flex-wrap: wrap;
}
.cf-captcha-question {
  font-size: .9rem;
  font-weight: 600;
  color: var(--gold-400);
  flex: 1;
  min-width: 160px;
}
.cf-captcha input[type="number"] {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(201,164,53,.4);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  padding: .5rem .75rem;
  width: 90px;
  outline: none;
  text-align: center;
  -moz-appearance: textfield;
  appearance: textfield;
}
.cf-captcha input[type="number"]::-webkit-outer-spin-button,
.cf-captcha input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; }
.cf-captcha input[type="number"]:focus { border-color: var(--gold-400); }
.cf-captcha-hint {
  font-size: .75rem;
  color: rgba(255,255,255,.4);
}

/* Submit + feedback */
.cf-submit-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
#cf-status { width: 100%; }
.cf-error {
  background: rgba(239,68,68,.15);
  border: 1px solid rgba(239,68,68,.35);
  border-radius: var(--radius-md);
  color: #fca5a5;
  font-size: .88rem;
  padding: .7rem 1rem;
  margin-bottom: 12px;
}
.cf-success {
  text-align: center;
  padding: 32px 16px;
}
.cf-success i { font-size: 2.5rem; color: #4ade80; margin-bottom: 16px; display: block; }
.cf-success h3 { font-size: 1.4rem; color: var(--white); margin-bottom: 10px; }
.cf-success p  { font-size: 1rem; color: rgba(255,255,255,.7); line-height: 1.6; }
.cf-legal {
  font-size: .75rem;
  color: rgba(255,255,255,.35);
  margin-top: 14px;
  text-align: center;
}
.cf-legal a { color: rgba(255,255,255,.5); text-decoration: underline; }

/* CTA section: wider layout to accommodate form */
#cta .cta-inner { max-width: 820px; }

@media (max-width: 640px) {
  .contact-form { padding: 24px 20px; }
  .cf-row { grid-template-columns: 1fr; }
}

/* ── Logo image ──────────────────────────────────────────── */

/* Navbar: logo pequeño sobre fondo oscuro en contenedor blanco */
.nav-logo-img {
  height: 56px;
  width: auto;
  border-radius: 10px;
  background: #fff;
  padding: 4px 10px;
  object-fit: contain;
  display: block;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

/* Hero: logo grande y prominente antes del hero-tag */
.hero-logo {
  height: 160px;
  width: auto;
  border-radius: var(--radius-xl);
  background: #fff;
  padding: 12px 28px;
  object-fit: contain;
  margin-bottom: 28px;
  box-shadow: 0 6px 28px rgba(0,0,0,.32);
}

/* CTA section: logo centrado */
.cta-logo {
  height: 120px;
  width: auto;
  border-radius: var(--radius-xl);
  background: #fff;
  padding: 10px 24px;
  object-fit: contain;
  margin: 0 auto 28px;
  display: block;
  box-shadow: 0 6px 24px rgba(0,0,0,.32);
}

/* Footer brand */
.footer-logo-img {
  height: 100px;
  width: auto;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.95);
  padding: 8px 20px;
  object-fit: contain;
  display: block;
  box-shadow: 0 3px 12px rgba(0,0,0,.22);
}
