/* =========================================================
   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;
}

/* ── 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);
}

/* ── 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);
  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);
}

/* 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; }

/* ── 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);
  display: none; /* JS lo muestra cuando hay imágenes */
}

.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;
  }
}
