/* =========================================================
   QUARXS · Cooperbit · Diseño corporativo-financiero
   Paleta: azul corporativo, verde institucional, blanco
   ========================================================= */

/* ── Variables ───────────────────────────────────────────── */
:root {
  --blue:        #007095;
  --blue-dark:   #005a78;
  --blue-light:  #EBF5F9;
  --blue-mid:    #E0F0F6;
  --navy:        #0B2E4F;
  --navy-mid:    #0f3a63;
  --green:       #67B437;
  --green-dark:  #4e8829;
  --green-light: #EDF7E4;

  --white:       #FFFFFF;
  --gray-50:     #F8FAFC;
  --gray-100:    #F1F5F9;
  --gray-200:    #E2E8F0;
  --gray-300:    #CBD5E1;
  --gray-400:    #94A3B8;
  --gray-500:    #64748B;
  --gray-600:    #475569;
  --gray-700:    #334155;
  --gray-800:    #1E293B;
  --gray-900:    #0F172A;

  --indigo:      #6366F1;
  --indigo-light:#EEF2FF;

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --sh-sm:  0 1px 4px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.05);
  --sh-md:  0 4px 14px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.05);
  --sh-lg:  0 12px 32px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.06);
  --sh-xl:  0 24px 60px rgba(0,0,0,0.12), 0 8px 20px rgba(0,0,0,0.07);

  --r:   8px;
  --r-lg: 14px;
  --r-xl: 20px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 72px;
  --subnav-h: 44px;
}


/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  color: var(--gray-700);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
svg { display: block; }

/* ── Container ───────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* ── Scroll reveal ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* ── Section shared ──────────────────────────────────────── */
.section-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.section-desc {
  font-size: 16px;
  color: var(--gray-500);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
  font-weight: 300;
}
.section-body {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.75;
  margin-bottom: 14px;
  font-weight: 300;
}
.section-header { text-align: center; margin-bottom: 56px; }

/* ── Botones globales ────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: var(--green);
  color: white;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--r);
  transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
  box-shadow: 0 2px 10px rgba(103,180,55,0.35);
}
.btn-primary:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(103,180,55,0.4);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  background: transparent;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--r);
  transition: border-color 0.25s, background 0.25s, transform 0.2s;
}
.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-light);
  transform: translateY(-1px);
}

/* ── Scroll margin global (compensa header fijo) ────────── */
section[id] { scroll-margin-top: calc(var(--header-h) + 8px); }
.has-subnav section[id],
.has-subnav [id] { scroll-margin-top: calc(var(--header-h) + var(--subnav-h) + 8px); }

/* Ajuste de hero en páginas con subnav */
.has-subnav .s-hero,
.has-subnav .s-ind-hero {
  padding-top: calc(var(--header-h) + var(--subnav-h) + 40px);
}

/* ── SUBNAV ───────────────────────────────────────────────── */
.subnav {
  position: sticky;
  top: var(--header-h);
  z-index: 90;
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.subnav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: var(--subnav-h);
  overflow-x: auto;
  scrollbar-width: none;
}
.subnav-inner::-webkit-scrollbar { display: none; }

.subnav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--gray-600);
  padding: 5px 13px;
  border-radius: var(--r);
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}
.subnav-link:hover { color: var(--blue); background: var(--blue-light); }
.subnav-link.active { color: var(--blue); background: var(--blue-light); font-weight: 600; }

.subnav-demo {
  margin-left: auto;
  padding: 6px 18px;
  background: var(--green);
  color: white !important;
  font-weight: 600;
  font-family: var(--font-display);
  border-radius: var(--r);
  box-shadow: 0 2px 8px rgba(103,180,55,0.3);
  flex-shrink: 0;
  transition: background 0.22s, transform 0.15s, box-shadow 0.22s;
}
.subnav-demo:hover {
  background: var(--green-dark) !important;
  color: white !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(103,180,55,0.4);
}

/* Mobile: subnav se integra en el menú hamburguesa */
.mobile-subnav-divider {
  display: block;
  padding: 10px 32px 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-400);
  border-top: 1px solid var(--gray-100);
  margin-top: 6px;
}
.mobile-subnav-link { color: var(--blue) !important; }
.mobile-subnav-link:hover { color: var(--blue-dark) !important; }

@media (max-width: 768px) {
  .subnav { display: none; }
}

/* ── HEADER ──────────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  background: white;
  border-bottom: 1px solid var(--gray-100);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: box-shadow 0.3s var(--ease);
}
.header.scrolled {
  box-shadow: var(--sh-md);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 24px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-img {
  height: 38px;
  width: auto;
  display: block;
  object-fit: contain;
  background: var(--navy);
  border-radius: var(--r);
  padding: 6px 10px;
}
.logo-icon {
  width: 36px; height: 36px;
  background: var(--navy);
  color: white;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r);
  flex-shrink: 0;
}
.logo-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.06em;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-600);
  padding: 7px 13px;
  border-radius: var(--r);
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover, .nav-link.active {
  color: var(--blue);
  background: var(--blue-light);
}

/* Botón Restaurantes en nav */
.nav-link-resto {
  color: #0369a1 !important;
  background: #e0f2fe !important;
  border: 1px solid rgba(3,105,161,0.25);
  margin-left: 4px;
}
.nav-link-resto:hover {
  background: #bae6fd !important;
  color: #075985 !important;
}
.mobile-link-resto {
  color: #B45309;
  font-weight: 600;
}
.mobile-link-resto:hover { color: #92400E !important; background: #FFFBEB !important; }

/* Header CTA */
.header-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.header-phone {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--gray-500);
  transition: color 0.2s;
}
.header-phone:hover { color: var(--blue); }

.btn-demo {
  display: inline-flex;
  align-items: center;
  padding: 9px 20px;
  background: var(--green);
  color: white;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--r);
  transition: background 0.25s;
  white-space: nowrap;
}
.btn-demo:hover { background: var(--green-dark); }

/* Mobile menu button */
.mobile-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--r);
}
.mobile-btn span {
  display: block;
  width: 22px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.mobile-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-btn.open span:nth-child(2) { opacity: 0; }
.mobile-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  background: white;
  border-bottom: 1px solid var(--gray-100);
  box-shadow: var(--sh-lg);
  z-index: 99;
  padding: 16px 0;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-link {
  display: block;
  padding: 12px 32px;
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-700);
  transition: color 0.2s, background 0.2s;
}
.mobile-link:hover { color: var(--blue); background: var(--gray-50); }
.mobile-demo { margin: 12px 32px 4px; display: block; text-align: center; width: calc(100% - 64px); }

/* ── S1: HERO ────────────────────────────────────────────── */
.s-hero {
  padding-top: calc(var(--header-h) + 56px);
  padding-bottom: 80px;
  background: linear-gradient(160deg, #FFFFFF 0%, #F4FAFC 55%, #E8F4F9 100%);
  position: relative;
  overflow: hidden;
}
.s-hero::before {
  content: '';
  position: absolute;
  right: -120px; top: -80px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,112,149,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-light);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 22px;
}
.eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.5vw, 50px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 16px;
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: 28px;
  font-weight: 300;
}

.hero-checks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 36px;
}
.hero-checks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
}
.hero-checks li::before {
  content: '';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
  background-size: 11px;
  background-repeat: no-repeat;
  background-position: center;
}

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ── Hero image ──────────────────────────────────────────── */
.hero-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--r-xl);
  box-shadow: var(--sh-xl), 0 0 0 1px rgba(0,0,0,0.04);
}

/* ── Browser mockup ──────────────────────────────────────── */
.browser-frame {
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-xl), 0 0 0 1px rgba(0,0,0,0.04);
  background: white;
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-200);
}
.browser-dots { display: flex; gap: 5px; }
.dot-red    { width: 10px; height: 10px; border-radius: 50%; background: #FC5F57; }
.dot-yellow { width: 10px; height: 10px; border-radius: 50%; background: #FEBC2E; }
.dot-green  { width: 10px; height: 10px; border-radius: 50%; background: #28C840; }
.browser-url {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 4px 12px;
  background: white;
  border-radius: 6px;
  font-size: 11px;
  color: var(--gray-500);
  border: 1px solid var(--gray-200);
}
.browser-content {
  display: flex;
  height: 340px;
}

/* Dashboard sidebar */
.dash-sidebar {
  width: 130px;
  background: var(--navy);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding: 14px 0;
}
.dash-brand {
  padding: 0 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 10px;
}
.dash-brand-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  background: var(--blue);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  color: white;
  font-family: var(--font-display);
}
.dash-nav { display: flex; flex-direction: column; }
.dash-nav-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  font-size: 10px;
  color: rgba(255,255,255,0.45);
  cursor: default;
  transition: background 0.2s, color 0.2s;
}
.dash-nav-item.active {
  color: white;
  background: rgba(255,255,255,0.08);
  border-left: 2px solid var(--green);
}

/* Dashboard main */
.dash-main {
  flex: 1;
  background: var(--gray-50);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}
.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dash-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
  font-family: var(--font-display);
}
.dash-company {
  font-size: 9px;
  color: var(--gray-400);
}
.dash-stats {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 8px;
}
.dash-stat {
  background: white;
  border-radius: 8px;
  padding: 10px 10px 8px;
  border: 1px solid var(--gray-200);
}
.dash-stat p { font-size: 8px; color: var(--gray-400); margin-bottom: 3px; }
.dash-stat strong { display: block; font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 2px; }
.trend-up { font-size: 8px; color: var(--green); font-weight: 600; }

.dash-chart-wrap {
  background: white;
  border-radius: 8px;
  padding: 10px 10px 14px;
  border: 1px solid var(--gray-200);
}
.dash-chart-label { font-size: 8px; color: var(--gray-500); margin-bottom: 8px; font-weight: 600; }
.dash-chart {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 44px;
}
.bar {
  flex: 1;
  height: var(--h);
  background: var(--blue-mid);
  border-radius: 3px 3px 0 0;
  position: relative;
  min-height: 8px;
  transition: background 0.2s;
}
.bar.active { background: var(--blue); }
.bar span {
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 7px;
  color: var(--gray-400);
}

.dash-table {
  background: white;
  border-radius: 8px;
  padding: 8px 10px;
  border: 1px solid var(--gray-200);
  flex: 1;
  overflow: hidden;
}
.dash-table-label { font-size: 8px; color: var(--gray-500); margin-bottom: 6px; font-weight: 600; }
.dash-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px solid var(--gray-100);
}
.dash-row:last-child { border: none; }
.dr-name { font-size: 10px; color: var(--gray-700); font-weight: 500; flex: 1; }
.dr-type { font-size: 9px; color: var(--gray-400); flex: 1; text-align: center; }
.dr-amount { font-size: 10px; color: var(--blue); font-weight: 600; }
.dr-neutral { color: var(--gray-500); }

/* ── S2: NOSOTROS ────────────────────────────────────────── */
.s-about {
  padding: 100px 0;
  background: var(--white);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  margin-bottom: 64px;
}
.about-illustration {
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-lg);
}
.about-illustration svg { width: 100%; height: auto; display: block; }
.about-illustration .about-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-content .section-eyebrow { display: block; }
.about-content .section-title { text-align: left; }
.value-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}
.value-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
}
.value-list li::before {
  content: '';
  width: 20px; height: 20px;
  flex-shrink: 0;
  background: var(--green-light);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2367B437' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}

.stat-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 20px;
  background: var(--blue-light);
  border-radius: var(--r-lg);
  border: 1px solid rgba(0,112,149,0.12);
  transition: box-shadow 0.3s, transform 0.3s;
}
.stat-card:hover { box-shadow: var(--sh-md); transform: translateY(-3px); }
.stat-number {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 13px;
  color: var(--blue);
  font-weight: 500;
}

/* ── S3: PRODUCTO ────────────────────────────────────────── */
.s-product {
  padding: 100px 0;
  background: var(--gray-50);
}
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.product-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--r-xl);
  box-shadow: var(--sh-xl), 0 0 0 1px rgba(0,0,0,0.04);
}
.product-content .section-eyebrow { display: block; }
.product-content .section-title { text-align: left; }
.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.prod-tag {
  padding: 5px 14px;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  border-radius: 100px;
  border: 1px solid rgba(0,112,149,0.15);
}

/* ── S4: MÓDULOS ─────────────────────────────────────────── */
.s-modules {
  padding: 100px 0;
  background: var(--white);
}
.module-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.module-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-xl);
  padding: 32px 28px;
  transition: box-shadow 0.3s, transform 0.3s, border-color 0.3s;
}
.module-card:hover {
  box-shadow: var(--sh-lg);
  transform: translateY(-4px);
  border-color: var(--gray-300);
}
.module-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: var(--r-lg);
  margin-bottom: 20px;
}
.module-icon-wrap svg { width: 24px; height: 24px; }
.module-icon-wrap.blue   { background: var(--blue-light); color: var(--blue); }
.module-icon-wrap.green  { background: var(--green-light); color: var(--green-dark); }
.module-icon-wrap.indigo { background: var(--indigo-light); color: var(--indigo); }
.module-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
  line-height: 1.3;
}
.module-tagline {
  font-size: 13px;
  color: var(--gray-400);
  margin-bottom: 20px;
  font-weight: 400;
}
.module-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.module-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.45;
}
.module-list li::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
  margin-top: 6px;
}

/* ── S5: ECOSISTEMA ──────────────────────────────────────── */
.s-ecosystem {
  padding: 100px 0;
  background: var(--white);
}
.eco-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.eco-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 24px 16px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-700);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
  cursor: default;
}
.eco-item:hover {
  border-color: var(--blue);
  box-shadow: var(--sh-sm);
  transform: translateY(-2px);
  color: var(--navy);
}
.eco-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: var(--blue-light);
  border-radius: var(--r);
  color: var(--blue);
  transition: background 0.25s;
}
.eco-item:hover .eco-icon { background: var(--blue); color: white; }
.eco-icon svg { width: 20px; height: 20px; }

/* Stagger eco items */
.eco-grid .eco-item:nth-child(1)  { transition-delay: 0.02s; }
.eco-grid .eco-item:nth-child(2)  { transition-delay: 0.04s; }
.eco-grid .eco-item:nth-child(3)  { transition-delay: 0.06s; }
.eco-grid .eco-item:nth-child(4)  { transition-delay: 0.08s; }
.eco-grid .eco-item:nth-child(5)  { transition-delay: 0.10s; }
.eco-grid .eco-item:nth-child(6)  { transition-delay: 0.12s; }
.eco-grid .eco-item:nth-child(7)  { transition-delay: 0.14s; }
.eco-grid .eco-item:nth-child(8)  { transition-delay: 0.16s; }
.eco-grid .eco-item:nth-child(9)  { transition-delay: 0.18s; }
.eco-grid .eco-item:nth-child(10) { transition-delay: 0.20s; }
.eco-grid .eco-item:nth-child(11) { transition-delay: 0.22s; }
.eco-grid .eco-item:nth-child(12) { transition-delay: 0.24s; }
.eco-grid .eco-item:nth-child(13) { transition-delay: 0.26s; }
.eco-grid .eco-item:nth-child(14) { transition-delay: 0.28s; }
.eco-grid .eco-item:nth-child(15) { transition-delay: 0.30s; }
.eco-grid .eco-item:nth-child(16) { transition-delay: 0.32s; }
.eco-grid .eco-item:nth-child(17) { transition-delay: 0.34s; }
.eco-grid .eco-item:nth-child(18) { transition-delay: 0.36s; }
.eco-grid .eco-item:nth-child(19) { transition-delay: 0.38s; }
.eco-grid .eco-item:nth-child(20) { transition-delay: 0.40s; }

/* ── S9: INDUSTRIAS ──────────────────────────────────────── */
.s-industries {
  padding: 100px 0;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-100);
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.industry-card {
  background: var(--white);
  border-radius: var(--r-xl);
  border: 1px solid var(--gray-200);
  padding: 32px 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  overflow: hidden;
  transition: transform 0.32s var(--ease-out), box-shadow 0.32s var(--ease-out),
              border-color 0.25s var(--ease);
}
.industry-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  transition: height 0.3s var(--ease);
}
.industry-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-xl);
}
.industry-card:hover::before { height: 4px; }

/* Accent line colors */
.ind-amber::before  { background: linear-gradient(90deg, #D97706, #F59E0B); }
.ind-green::before  { background: linear-gradient(90deg, var(--green-dark), var(--green)); }
.ind-blue::before   { background: linear-gradient(90deg, var(--blue-dark), var(--blue)); }
.ind-indigo::before { background: linear-gradient(90deg, #4338CA, #6366F1); }

/* Hover border */
.ind-amber:hover  { border-color: rgba(217,119,6,0.3); }
.ind-green:hover  { border-color: rgba(103,180,55,0.3); }
.ind-blue:hover   { border-color: rgba(0,112,149,0.3); }
.ind-indigo:hover { border-color: rgba(99,102,241,0.3); }

/* Icon */
.ind-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px; height: 60px;
  border-radius: var(--r-lg);
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-out);
}
.ind-icon-wrap svg { width: 28px; height: 28px; }
.industry-card:hover .ind-icon-wrap { transform: scale(1.08); }

.ind-amber .ind-icon-wrap  { background: #FFFBEB; color: #D97706; }
.ind-green .ind-icon-wrap  { background: var(--green-light); color: var(--green-dark); }
.ind-blue  .ind-icon-wrap  { background: var(--blue-light);  color: var(--blue); }
.ind-indigo .ind-icon-wrap { background: var(--indigo-light); color: var(--indigo); }

/* Body */
.ind-body { display: flex; flex-direction: column; gap: 12px; flex: 1; }

.ind-body h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}
.ind-desc {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.65;
  font-weight: 300;
}

.ind-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}
.ind-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.4;
}
.ind-list li::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}
.ind-amber .ind-list  li::before { background: #D97706; }
.ind-green .ind-list  li::before { background: var(--green); }
.ind-blue  .ind-list  li::before { background: var(--blue); }
.ind-indigo .ind-list li::before { background: var(--indigo); }

/* Button */
.ind-btn {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-display);
  padding: 9px 16px;
  border-radius: var(--r);
  border: 1.5px solid var(--gray-200);
  color: var(--gray-700);
  background: transparent;
  margin-top: 4px;
  align-self: flex-start;
  transition: background 0.22s, border-color 0.22s, color 0.22s, transform 0.2s;
}
.ind-amber .ind-btn:hover  { background: #FFFBEB; border-color: #D97706; color: #B45309; transform: translateX(2px); }
.ind-green .ind-btn:hover  { background: var(--green-light); border-color: var(--green); color: var(--green-dark); transform: translateX(2px); }
.ind-blue  .ind-btn:hover  { background: var(--blue-light); border-color: var(--blue); color: var(--blue-dark); transform: translateX(2px); }
.ind-indigo .ind-btn:hover { background: var(--indigo-light); border-color: var(--indigo); color: #4338CA; transform: translateX(2px); }

/* Stagger */
.industry-grid .industry-card:nth-child(1) { transition-delay: 0.04s; }
.industry-grid .industry-card:nth-child(2) { transition-delay: 0.08s; }
.industry-grid .industry-card:nth-child(3) { transition-delay: 0.12s; }
.industry-grid .industry-card:nth-child(4) { transition-delay: 0.16s; }

/* Responsive */
@media (max-width: 1100px) {
  .industry-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .industry-grid { grid-template-columns: 1fr; }
  .industry-card { padding: 26px 20px; }
}

/* ── S6: CTA ─────────────────────────────────────────────── */
.s-cta {
  padding: 100px 0;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.s-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(0,112,149,0.25) 0%, transparent 70%);
}
.cta-inner {
  text-align: center;
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 700;
  color: white;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 18px;
}
.cta-desc {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin-bottom: 10px;
  font-weight: 300;
}
.cta-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 36px;
  font-weight: 300;
}
.btn-cta-primary {
  display: inline-flex;
  align-items: center;
  padding: 16px 40px;
  background: var(--green);
  color: white;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--r);
  box-shadow: 0 4px 20px rgba(103,180,55,0.45);
  transition: background 0.25s, box-shadow 0.25s, transform 0.2s;
}
.btn-cta-primary:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(103,180,55,0.5);
}

/* ── FOOTER ──────────────────────────────────────────────── */
.footer {
  background: var(--gray-900);
  padding: 64px 0 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 32px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.footer .logo-icon { background: var(--blue); }
.footer .logo-name { color: white; }
.footer-tagline {
  font-size: 13px;
  color: var(--gray-400);
  line-height: 1.7;
  margin-bottom: 24px;
  font-weight: 300;
}
.footer-social { display: flex; gap: 12px; }
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  background: rgba(255,255,255,0.07);
  color: var(--gray-400);
  border-radius: var(--r);
  transition: background 0.25s, color 0.25s;
}
.social-link:hover { background: var(--blue); color: white; }
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: white;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col a, .footer-addr {
  display: block;
  font-size: 13px;
  color: var(--gray-400);
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-col a:hover { color: white; }
.footer-addr { cursor: default; }
.footer-bottom {
  text-align: center;
}
.footer-bottom p {
  font-size: 12px;
  color: var(--gray-500);
}

/* ── Ecosistema: item seleccionado ───────────────────────── */
.eco-item { cursor: pointer; outline: none; }
.eco-item:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.eco-item.active {
  border-color: var(--blue);
  background: var(--blue-light);
  box-shadow: var(--sh-sm);
  transform: translateY(-2px);
}
.eco-item.active .eco-icon {
  background: var(--blue);
  color: white;
}

/* ── Ecosistema: panel de detalle ────────────────────────── */
.eco-detail {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-10px);
  margin-top: 0;
  transition:
    max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    opacity    0.35s ease,
    transform  0.35s ease,
    margin-top 0.35s ease;
}
.eco-detail.open {
  max-height: 320px;
  opacity: 1;
  transform: translateY(0);
  margin-top: 28px;
}

.eco-detail-wrap {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 24px 28px;
  align-items: start;
  padding: 28px 32px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--blue);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
}

.eco-detail-icon-box {
  width: 56px; height: 56px;
  background: var(--blue-light);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  flex-shrink: 0;
}
.eco-detail-icon-box svg {
  width: 26px; height: 26px;
  display: block;
}

.eco-detail-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 7px;
  line-height: 1.25;
}
.eco-detail-desc {
  font-size: 14px;
  font-weight: 300;
  color: var(--gray-500);
  line-height: 1.65;
  margin-bottom: 18px;
}
.eco-detail-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px 28px;
}
.eco-detail-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--gray-700);
  line-height: 1.4;
}
.eco-detail-list li::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
  margin-top: 5px;
}

.eco-detail-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  background: none;
  border: 1px solid var(--gray-200);
  border-radius: 50%;
  cursor: pointer;
  color: var(--gray-400);
  flex-shrink: 0;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.eco-detail-close:hover {
  border-color: var(--gray-400);
  color: var(--gray-700);
  background: var(--gray-100);
}
.eco-detail-close:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.eco-detail-close svg { width: 14px; height: 14px; display: block; }

/* ── S: App móvil ────────────────────────────────────────── */
.s-app {
  padding: 100px 0;
  background: var(--blue-light);
}

.app-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
}

/* Imagen */
.app-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.app-mockup-img {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  border-radius: var(--r-xl);
  box-shadow: var(--sh-xl);
}

/* Contenido */
.app-content .section-eyebrow { display: block; }
.app-content .section-title   { text-align: left; margin-bottom: 10px; }

.app-subtitle {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 400;
  color: var(--blue);
  margin-bottom: 14px;
}

.app-desc {
  font-size: 15px;
  font-weight: 300;
  color: var(--gray-600);
  line-height: 1.75;
  margin-bottom: 24px;
}

/* Lista de funcionalidades */
.app-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px 24px;
  margin-bottom: 32px;
}
.app-features li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
}
.app-features li::before {
  content: '';
  width: 18px; height: 18px;
  flex-shrink: 0;
  background: var(--green);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
  background-size: 11px;
  background-repeat: no-repeat;
  background-position: center;
}

/* Badges de descarga */
.app-badges {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.app-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px;
  background: var(--navy);
  color: white;
  border-radius: var(--r);
  text-decoration: none;
  transition: background 0.25s var(--ease), transform 0.2s var(--ease), box-shadow 0.25s var(--ease);
  box-shadow: var(--sh-sm);
}
.app-badge:hover {
  background: var(--navy-mid);
  transform: translateY(-2px);
  box-shadow: var(--sh-md);
}

.app-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.badge-sub  { font-size: 10px; font-weight: 400; opacity: 0.75; letter-spacing: 0.02em; }
.badge-main { font-size: 15px; font-weight: 700; font-family: var(--font-display); }

/* ── S: Empresas que confían ─────────────────────────────── */
.s-trusted {
  padding: 80px 0;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-100);
}

.companies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 8px;
}

.company-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 36px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  min-height: 140px;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease),
              box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.company-item:hover {
  border-color: var(--gray-300);
  background: var(--white);
  box-shadow: var(--sh-sm);
  transform: translateY(-2px);
}

.company-item img {
  max-width: 100%;
  max-height: 90px;
  width: auto;
  height: auto;
  object-fit: contain;
  /* Sutil desaturación que se revierte en hover para una apariencia elegante */
  filter: grayscale(40%) opacity(0.75);
  transition: filter 0.3s var(--ease);
}
.company-item:hover img {
  filter: grayscale(0%) opacity(1);
}

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 1024px) {
  .eco-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-grid { gap: 40px; }
}

@media (max-width: 900px) {
  .module-cards { grid-template-columns: 1fr; }
  .footer-top   { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stat-cards   { grid-template-columns: repeat(2,1fr); }
  .about-grid, .product-grid { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .header { padding: 0; }
  .nav, .header-cta { display: none; }
  .mobile-btn { display: flex; }

  .hero-grid { grid-template-columns: 1fr; }
  .browser-frame { max-width: 480px; margin: 0 auto; }

  .eco-grid { grid-template-columns: repeat(2,1fr); }
  .stat-cards { grid-template-columns: repeat(2,1fr); }
  .module-cards { grid-template-columns: 1fr; }

  .app-grid       { grid-template-columns: 1fr; gap: 40px; }
  .app-mockup-img { max-width: 320px; margin: 0 auto; }
  .app-features   { grid-template-columns: 1fr; }
  .app-badges     { flex-direction: column; }
  .app-badge      { justify-content: center; }
  .s-app          { padding: 72px 0; }

  .companies-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
  .company-item   { min-height: 100px; padding: 20px 20px; }
  .company-item img { max-height: 64px; }
  .s-trusted      { padding: 56px 0; }

  .eco-detail-wrap { grid-template-columns: 44px 1fr auto; gap: 16px 20px; padding: 20px; }
  .eco-detail-icon-box { width: 44px; height: 44px; }
  .eco-detail-icon-box svg { width: 20px; height: 20px; }
  .eco-detail-list { grid-template-columns: 1fr; }
  .eco-detail.open { max-height: 460px; }

  .s-hero     { padding-top: calc(var(--header-h) + 32px); padding-bottom: 56px; }
  .s-about, .s-product, .s-modules, .s-ecosystem { padding: 72px 0; }
  .s-cta      { padding: 72px 0; }
  .section-header { margin-bottom: 36px; }

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

@media (max-width: 480px) {
  .hero-btns { flex-direction: column; }
  .btn-primary, .btn-outline { justify-content: center; }
  .eco-grid { grid-template-columns: repeat(2,1fr); }
  .stat-cards { grid-template-columns: repeat(2,1fr); }
  .browser-content { height: 260px; }
  .dash-stats { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   NUEVAS SECCIONES — Implementación de auditoría
   ═══════════════════════════════════════════════════════════ */

/* ── Trust Bar ───────────────────────────────────────────── */
.s-trust-bar {
  padding: 24px 0;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.trust-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 28px;
  text-align: center;
}
.trust-num {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: white;
  line-height: 1.1;
  margin-bottom: 3px;
}
.trust-label {
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  font-weight: 400;
  letter-spacing: 0.02em;
}
.trust-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.12);
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .trust-bar-inner { gap: 0; }
  .trust-stat { padding: 8px 16px; }
  .trust-num  { font-size: 18px; }
  .trust-divider { display: none; }
}

/* ── Garantías / Onboarding ──────────────────────────────── */
.s-guarantees {
  padding: 80px 0;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-100);
}
.guarantees-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.guarantee-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-xl);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow 0.3s, transform 0.3s;
}
.guarantee-item:hover {
  box-shadow: var(--sh-md);
  transform: translateY(-3px);
}
.guarantee-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  background: var(--blue-light);
  border-radius: var(--r-lg);
  color: var(--blue);
  flex-shrink: 0;
}
.guarantee-icon svg { width: 22px; height: 22px; }
.guarantee-item h3 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  margin: 0;
}
.guarantee-item p {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.65;
  font-weight: 300;
  margin: 0;
}
@media (max-width: 900px) {
  .guarantees-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .guarantees-grid { grid-template-columns: 1fr; }
}

/* ── Testimonios ─────────────────────────────────────────── */
.s-testimonials {
  padding: 100px 0;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.s-testimonials::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 50%, rgba(0,112,149,0.2) 0%, transparent 70%);
  pointer-events: none;
}
.s-testimonials .section-eyebrow { color: rgba(255,255,255,0.5); }
.s-testimonials .section-title   { color: white; }
.s-testimonials .section-desc    { color: rgba(255,255,255,0.6); }

.testimonials-carousel {
  position: relative;
  overflow: hidden;
}
.testi-track {
  display: flex;
  transition: transform 0.5s var(--ease-out);
}
.testi-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-xl);
  padding: 36px 32px;
  min-width: 100%;
  flex-shrink: 0;
  backdrop-filter: blur(10px);
  box-sizing: border-box;
}
.testi-stars {
  color: #F59E0B;
  font-size: 18px;
  letter-spacing: 2px;
  margin-bottom: 18px;
}
.testi-quote {
  font-size: 16px;
  color: rgba(255,255,255,0.88);
  line-height: 1.75;
  font-style: italic;
  font-weight: 300;
  margin-bottom: 28px;
}
.testi-author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.testi-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}
.testi-avatar-blue   { background: var(--blue); }
.testi-avatar-green  { background: var(--green-dark); }
.testi-avatar-amber  { background: #D97706; }

.testi-name { display: block; font-size: 14px; font-weight: 600; color: white; margin-bottom: 2px; }
.testi-role { display: block; font-size: 12px; color: rgba(255,255,255,0.5); }
.testi-org  { display: block; font-size: 12px; color: rgba(255,255,255,0.4); }

.testi-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
}
.testi-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.testi-btn:hover { background: rgba(255,255,255,0.16); color: white; }
.testi-btn svg { width: 16px; height: 16px; }
.testi-dots { display: flex; gap: 8px; }
.testi-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.2s;
}
.testi-dot.active {
  background: var(--green);
  transform: scale(1.25);
}

@media (max-width: 768px) {
  .testi-card { padding: 24px 20px; }
  .testi-quote { font-size: 14px; }
}

/* ── Casos de Éxito ──────────────────────────────────────── */
.s-success {
  padding: 100px 0;
  background: var(--white);
}
.success-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.success-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
}
.success-card:hover {
  box-shadow: var(--sh-lg);
  transform: translateY(-4px);
}
.success-card-top {
  padding: 24px 24px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.success-blue   { background: var(--blue-light); }
.success-amber  { background: #FFFBEB; }
.success-green  { background: var(--green-light); }

.success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--r);
  flex-shrink: 0;
}
.success-blue  .success-icon { background: var(--blue);   color: white; }
.success-amber .success-icon { background: #D97706;       color: white; }
.success-green .success-icon { background: var(--green);  color: white; }
.success-icon svg { width: 20px; height: 20px; }

.success-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.success-blue  .success-tag { color: var(--blue); }
.success-amber .success-tag { color: #B45309; }
.success-green .success-tag { color: var(--green-dark); }

.success-card-body { padding: 20px 24px 28px; }
.success-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.3;
}
.success-desc {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.65;
  margin-bottom: 20px;
  font-weight: 300;
}
.success-results { display: flex; flex-direction: column; gap: 8px; }
.success-results li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  color: var(--gray-700);
  font-weight: 500;
}
.success-check {
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
}
.success-cta { text-align: center; }

@media (max-width: 900px) {
  .success-grid { grid-template-columns: 1fr; }
}

/* ── IA / AI Section ─────────────────────────────────────── */
.s-ai {
  padding: 100px 0;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-100);
}
.ai-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.ai-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-xl);
  padding: 28px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow 0.3s, transform 0.3s;
}
.ai-card:hover { box-shadow: var(--sh-md); transform: translateY(-3px); }
.ai-badge {
  position: absolute;
  top: 16px; right: 16px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
}
.ai-badge-soon    { background: var(--green-light);  color: var(--green-dark); }
.ai-badge-dev     { background: var(--blue-light);   color: var(--blue); }
.ai-badge-roadmap { background: var(--indigo-light); color: var(--indigo); }

.ai-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px; height: 50px;
  border-radius: var(--r-lg);
}
.ai-icon svg { width: 22px; height: 22px; }
.ai-icon-blue   { background: var(--blue-light);   color: var(--blue); }
.ai-icon-green  { background: var(--green-light);  color: var(--green-dark); }
.ai-icon-indigo { background: var(--indigo-light); color: var(--indigo); }

.ai-card h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  margin: 0;
}
.ai-card p {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.65;
  font-weight: 300;
  margin: 0;
}
@media (max-width: 900px) {
  .ai-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .ai-grid { grid-template-columns: 1fr; }
}

/* ── Pricing ─────────────────────────────────────────────── */
.s-pricing {
  padding: 100px 0;
  background: var(--white);
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 28px;
  align-items: stretch;
}
.pricing-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r-xl);
  padding: 32px 28px 36px;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  transition: box-shadow 0.3s, transform 0.3s;
}
.pricing-card:hover { box-shadow: var(--sh-lg); transform: translateY(-4px); }
.pricing-featured {
  background: var(--navy);
  border-color: var(--navy);
  box-shadow: var(--sh-xl);
  transform: scale(1.03);
}
.pricing-featured:hover { transform: scale(1.03) translateY(-4px); }

.pricing-badge {
  position: absolute;
  top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--green);
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 16px;
  border-radius: 100px;
  white-space: nowrap;
}
.pricing-header { margin-bottom: 24px; }
.pricing-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-light);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 14px;
}
.pricing-tag-white { background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.9); }
.pricing-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 6px;
}
.pricing-featured .pricing-name { color: white; }
.pricing-ideal {
  font-size: 13px;
  color: var(--gray-400);
  font-weight: 300;
}
.pricing-featured .pricing-ideal { color: rgba(255,255,255,0.5); }

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  margin-bottom: 28px;
}
.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--gray-600);
}
.pricing-featured .pricing-features li { color: rgba(255,255,255,0.8); }
.pf-check { color: var(--green); font-weight: 700; flex-shrink: 0; }
.pricing-featured .pf-check { color: #86efac; }

.pricing-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border-radius: var(--r);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  transition: background 0.25s, border-color 0.25s, transform 0.2s;
}
.pricing-cta-primary {
  background: var(--green);
  color: white;
  box-shadow: 0 4px 14px rgba(103,180,55,0.4);
}
.pricing-cta-primary:hover { background: var(--green-dark); transform: translateY(-1px); }
.pricing-cta-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--gray-300);
}
.pricing-cta-outline:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }

.pricing-note {
  text-align: center;
  font-size: 13px;
  color: var(--gray-500);
  font-weight: 300;
}
.pricing-note a { color: var(--blue); font-weight: 500; }
.pricing-note a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-featured { transform: none; }
  .pricing-featured:hover { transform: translateY(-4px); }
}

/* ── Blog / Recursos ─────────────────────────────────────── */
.s-blog {
  padding: 100px 0;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-100);
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.blog-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-xl);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.3s, transform 0.3s;
}
.blog-card:hover { box-shadow: var(--sh-md); transform: translateY(-3px); }
.blog-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  align-self: flex-start;
}
.blog-tag-blue   { background: var(--blue-light);  color: var(--blue); }
.blog-tag-amber  { background: #FFFBEB;            color: #B45309; }
.blog-tag-green  { background: var(--green-light); color: var(--green-dark); }

.blog-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
  margin: 0;
  flex: 1;
}
.blog-excerpt {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.6;
  font-weight: 300;
  margin: 0;
}
.blog-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  align-self: flex-start;
  transition: color 0.2s;
}
.blog-link:hover { color: var(--blue-dark); }

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

/* ── Formulario de Demo ──────────────────────────────────── */
.s-demo-form {
  padding: 100px 0;
  background: var(--white);
  border-top: 1px solid var(--gray-100);
}
.form-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}
.form-layout-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.form-benefits-centered { align-items: center; }
.form-layout-centered .btn-form-submit { margin-top: 32px; }
.form-info .section-title { margin-bottom: 16px; }
.form-benefits {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}
.form-benefits li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
}
.form-benefits li svg { color: var(--green); flex-shrink: 0; }

.form-box {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-xl);
  padding: 36px 32px;
  box-shadow: var(--sh-md);
}
.demo-form { display: flex; flex-direction: column; gap: 20px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
}
.form-group input,
.form-group select {
  padding: 10px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--gray-800);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,112,149,0.1);
}
.form-group input.error,
.form-group select.error { border-color: #EF4444; }
.form-error {
  font-size: 11px;
  color: #EF4444;
  font-weight: 500;
  min-height: 14px;
}
.btn-form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--green);
  color: white;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: var(--r);
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(103,180,55,0.4);
  transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
}
.btn-form-submit:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(103,180,55,0.45);
}
.form-privacy {
  font-size: 12px;
  color: var(--gray-400);
  text-align: center;
  font-weight: 300;
}
.form-success {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--green-light);
  border: 1px solid rgba(103,180,55,0.3);
  border-radius: var(--r);
  font-size: 14px;
  color: var(--green-dark);
}
.form-success svg { color: var(--green-dark); flex-shrink: 0; }

@media (max-width: 900px) {
  .form-layout { grid-template-columns: 1fr; gap: 40px; }
  .form-row    { grid-template-columns: 1fr; }
  .form-box    { padding: 24px 20px; }
}

/* ── CTA actualizado ─────────────────────────────────────── */
.cta-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 0;
}
.btn-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: rgba(255,255,255,0.1);
  color: white;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--r);
  border: 1.5px solid rgba(255,255,255,0.25);
  transition: background 0.25s, border-color 0.25s, transform 0.2s;
}
.btn-cta-secondary:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.4);
  transform: translateY(-1px);
}

/* ── WhatsApp Flotante ───────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: white;
  border-radius: 50px;
  padding: 13px 20px 13px 16px;
  box-shadow: 0 6px 24px rgba(37,211,102,0.45), 0 2px 8px rgba(0,0,0,0.15);
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s, padding 0.35s var(--ease-out), max-width 0.35s var(--ease-out);
  text-decoration: none;
  overflow: hidden;
  max-width: 200px;
}
.whatsapp-float:hover {
  background: #20ba58;
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(37,211,102,0.5), 0 4px 12px rgba(0,0,0,0.18);
}
.whatsapp-float-label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 1;
  transition: opacity 0.25s;
}
@media (max-width: 480px) {
  .whatsapp-float { padding: 13px; border-radius: 50%; max-width: none; }
  .whatsapp-float-label { display: none; }
  .whatsapp-float:hover { padding: 13px; }
}

/* ── Breadcrumbs ─────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 0 0;
  font-size: 12px;
  color: var(--gray-400);
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--gray-400); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb-sep { color: var(--gray-300); }
.breadcrumb span { color: var(--gray-600); }

/* ══════════════════════════════════════════════════════════════
   DEMO MODAL — popup de solicitud de demostración
   ══════════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 17, 50, 0.72);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background: #fff;
  border-radius: 20px;
  max-width: 700px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  transform: scale(0.92) translateY(16px);
  transition: transform 0.32s cubic-bezier(0.34, 1.4, 0.64, 1);
  scrollbar-width: thin;
  scrollbar-color: #CBD5E1 transparent;
}
.modal-container::-webkit-scrollbar { width: 5px; }
.modal-container::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 9px; }
.modal-overlay.active .modal-container {
  transform: scale(1) translateY(0);
}

/* Header */
.modal-header {
  background: linear-gradient(135deg, #091132 0%, #1e3a8a 100%);
  color: #fff;
  padding: 36px 40px 32px;
  border-radius: 20px 20px 0 0;
  position: relative;
}
.modal-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: 99px;
  margin-bottom: 14px;
}
.modal-header-badge svg { opacity: 0.85; }
.modal-header h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(20px, 4vw, 26px);
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin: 0 0 10px;
}
.modal-header p {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  margin: 0;
  max-width: 520px;
}

/* Close button */
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border: none;
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  transition: background 0.2s;
}
.modal-close:hover { background: rgba(255,255,255,0.28); }

/* Body */
.modal-body {
  padding: 32px 40px 36px;
}

/* Section blocks */
.modal-section {
  margin-bottom: 28px;
}
.modal-section-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #091132;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #EEF2F7;
}
.modal-section-title svg {
  color: var(--blue, #2563EB);
  flex-shrink: 0;
}

/* Form grid inside modal */
.modal-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.modal-row.single { grid-template-columns: 1fr; }

.modal-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.modal-group label {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}
.modal-group label .req { color: #E53E3E; margin-left: 2px; }

.modal-group input,
.modal-group select,
.modal-group textarea {
  width: 100%;
  padding: 10px 13px;
  border: 1.5px solid #D1D5DB;
  border-radius: 9px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #1E293B;
  background: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.modal-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 36px;
}
.modal-group input:focus,
.modal-group select:focus,
.modal-group textarea:focus {
  border-color: var(--blue, #2563EB);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.modal-group input.invalid,
.modal-group select.invalid,
.modal-group textarea.invalid {
  border-color: #E53E3E;
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}
.modal-group textarea { resize: vertical; min-height: 90px; line-height: 1.55; }
.modal-group input::placeholder,
.modal-group textarea::placeholder { color: #9CA3AF; }

/* Error messages inside modal */
.modal-error {
  font-size: 12px;
  color: #DC2626;
  display: none;
  margin-top: 2px;
}

/* Radio group */
.modal-radio-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.modal-radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1.5px solid #D1D5DB;
  border-radius: 9px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #334155;
  transition: border-color 0.2s, background 0.2s;
  user-select: none;
}
.modal-radio-label input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: var(--blue, #2563EB);
  margin: 0;
  padding: 0;
  border: none;
  box-shadow: none;
  flex-shrink: 0;
}
.modal-radio-label:has(input:checked) {
  border-color: var(--blue, #2563EB);
  background: #EFF6FF;
  color: var(--blue, #2563EB);
}

/* Conditional field */
.modal-conditional {
  display: none;
  margin-top: 12px;
  padding: 14px 16px;
  background: #F8FAFF;
  border: 1.5px solid #BFDBFE;
  border-radius: 10px;
}
.modal-conditional.visible { display: block; }

/* Phone row: country code + number */
.modal-phone-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 10px;
}

/* Trust badges below form */
.modal-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #EEF2F7;
}
.modal-trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: #475569;
  font-weight: 500;
}
.modal-trust-item svg { color: #16A34A; flex-shrink: 0; }

/* Submit button */
.modal-submit {
  width: 100%;
  margin-top: 22px;
  padding: 15px 24px;
  background: #27AE60;
  color: #fff;
  border: none;
  border-radius: 11px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(39, 174, 96, 0.35);
}
.modal-submit:hover {
  background: #219A52;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(39, 174, 96, 0.42);
}
.modal-submit:active { transform: translateY(0); }

/* Privacy note */
.modal-privacy {
  text-align: center;
  font-size: 12px;
  color: #94A3B8;
  margin-top: 10px;
}

/* Success state */
.modal-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 56px 40px 64px;
  gap: 18px;
}
.modal-success-icon {
  width: 72px;
  height: 72px;
  background: #F0FDF4;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #16A34A;
  animation: pop-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes pop-in {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.modal-success h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #091132;
  margin: 0;
}
.modal-success p {
  font-size: 15px;
  color: #64748B;
  line-height: 1.6;
  max-width: 440px;
  margin: 0;
}
.modal-success-close {
  margin-top: 8px;
  padding: 11px 28px;
  background: #091132;
  color: #fff;
  border: none;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.modal-success-close:hover { background: #1e3a8a; }

/* Responsive modal */
@media (max-width: 600px) {
  .modal-container {
    max-height: 96vh;
    border-radius: 16px 16px 0 0;
    margin-top: auto;
  }
  .modal-overlay {
    align-items: flex-end;
    padding: 0;
  }
  .modal-overlay.active .modal-container {
    transform: translateY(0);
  }
  .modal-overlay .modal-container {
    transform: translateY(100%);
  }
  .modal-header { padding: 28px 24px 24px; }
  .modal-body   { padding: 24px 24px 32px; }
  .modal-row    { grid-template-columns: 1fr; }
  .modal-phone-row { grid-template-columns: 110px 1fr; }
  .modal-trust  { gap: 8px 12px; }
  .modal-success { padding: 40px 24px 48px; }
}

