/* ============================================================
   CIRCULAR — COMPONENTS & LAYOUT
   Plain-CSS translation of the Circular Comm Design System.
   Mobile-first; breakpoints at 768px (tablet) and 1024px (desktop).
   ============================================================ */

/* ============================================================
   LAYOUT PRIMITIVES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-app);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

.section {
  padding-block: var(--space-16);
}
.section--tight { padding-block: var(--space-12); }

.section--light { background: var(--surface-page); }
.section--white { background: var(--white); }

/* Dark marketing surface with concentric-circle brand texture
   recreated in pure CSS (no heavy background image). */
.section--dark {
  position: relative;
  background: var(--surface-dark);
  color: #fff;
  overflow: hidden;
}
.section--dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-radial-gradient(circle at 78% 28%,
      rgba(47, 186, 129, 0.10) 0,
      rgba(47, 186, 129, 0.10) 1.5px,
      transparent 1.5px,
      transparent 64px);
  opacity: 0.9;
  pointer-events: none;
}
.section--dark > .container { position: relative; z-index: 1; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }

/* Eyebrow on dark */
.section--dark .cr-eyebrow { color: var(--green-400); }

.section-head { max-width: 720px; margin-bottom: var(--space-10); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 {
  font-size: var(--text-3xl);
  font-weight: var(--fw-extrabold);
  margin-top: var(--space-3);
}
.section-head p {
  margin-top: var(--space-4);
  font-size: var(--text-lg);
  color: var(--text-muted);
}
.section--dark .section-head p { color: rgba(255,255,255,0.72); }

/* Signature dotted teal accent line */
.dotted-accent {
  height: 0;
  border-top: 2px dotted var(--teal-500);
  opacity: 0.5;
  margin-block: var(--space-8);
}

/* ============================================================
   BUTTONS  (mirrors components/core/Button)
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: 40px;                  /* md */
  padding-inline: var(--space-5);
  border: 1.5px solid transparent;
  border-radius: var(--radius-lg);
  font-family: var(--font-sans);
  font-weight: var(--fw-bold);
  font-size: var(--text-base);
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--dur-base) var(--ease-out),
              color var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.97); }
.btn .icon { width: 18px; height: 18px; }

.btn--sm { height: 32px; padding-inline: var(--space-4); font-size: var(--text-sm); }
.btn--lg { height: 48px; padding-inline: var(--space-6); font-size: var(--text-md); }
.btn--block { width: 100%; }

.btn--primary {
  background: var(--brand);
  color: var(--text-on-brand);
  box-shadow: var(--shadow-brand);
}
.btn--primary:hover { background: var(--brand-strong); color: #fff; }

.btn--secondary {
  background: var(--white);
  color: var(--text-strong);
  border-color: var(--border-default);
}
.btn--secondary:hover { background: var(--surface-hover); }

.btn--ghost {
  background: transparent;
  color: var(--text-strong);
}
.btn--ghost:hover { background: var(--surface-hover); }

/* Ghost on dark backgrounds (hero secondary CTA) */
.btn--ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.35);
}
.btn--ghost-light:hover { background: rgba(255,255,255,0.10); color:#fff; }

/* ============================================================
   NAVBAR
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border-subtle);
}
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  height: 68px;
}

/* Logo lockup: real brand logo images (dark on light header, white on dark footer) */
.logo { display: inline-flex; align-items: center; }
.logo img { height: 30px; width: auto; display: block; }
.site-footer .logo img { height: 32px; }

.nav-links {
  display: none;
  list-style: none;
  margin: 0; padding: 0;
  gap: var(--space-6);
}
.nav-links a {
  color: var(--text-body);
  font-weight: var(--fw-semibold);
  font-size: var(--text-base);
}
.nav-links a:hover { color: var(--brand); text-decoration: none; }

.nav-actions { display: flex; align-items: center; gap: var(--space-3); }

/* Language toggle */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-pill);
  overflow: hidden;
  background: var(--white);
}
.lang-toggle button {
  border: 0;
  background: transparent;
  padding: 6px 12px;
  font-family: var(--font-sans);
  font-weight: var(--fw-bold);
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  color: var(--text-muted);
  cursor: pointer;
}
.lang-toggle button[aria-pressed="true"] {
  background: var(--brand);
  color: #fff;
}

/* Hamburger */
.nav-toggle {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  background: var(--white);
  cursor: pointer;
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-cta { display: none; }

/* Mobile menu panel */
.mobile-menu {
  display: none;
  border-top: 1px solid var(--border-subtle);
  background: var(--white);
  padding: var(--space-4) var(--space-5) var(--space-6);
}
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; margin: 0 0 var(--space-4); padding: 0; }
.mobile-menu li { padding: var(--space-3) 0; border-bottom: 1px solid var(--border-subtle); }
.mobile-menu a { font-weight: var(--fw-semibold); color: var(--text-body); }

/* ============================================================
   HERO
   ============================================================ */
/* Warm pastoral hero — landscape illustration as background, text + buttons on top.
   Mobile-first: top-light scrim keeps the upper text legible. */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 520px;
  padding-block: var(--space-16);
  background:
    linear-gradient(180deg, rgba(233,248,240,0.97) 0%, rgba(233,248,240,0.82) 42%, rgba(233,248,240,0.25) 100%),
    url('../assets/illustrations/hero-landscape.jpg') center bottom / cover no-repeat;
}
.hero .container { position: relative; z-index: 1; }
.hero-copy { max-width: 620px; }
.hero h1 {
  font-size: var(--text-3xl);
  font-weight: var(--fw-extrabold);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  overflow-wrap: break-word;
}
.hero h1 .accent { color: var(--brand); }
.hero p.lede {
  margin-top: var(--space-5);
  font-size: var(--text-lg);
  color: var(--slate-700);
  max-width: 620px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-8);
}

/* ============================================================
   SOCIAL PROOF BAR
   ============================================================ */
.proof {
  padding-block: var(--space-12);
  background: var(--white);
  border-bottom: 1px solid var(--border-subtle);
}
.proof .container { display: grid; gap: var(--space-10); }
.proof-label {
  text-align: center;
  font-family: var(--font-sans);
  font-weight: var(--fw-bold);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--text-muted);
}

.client-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-6) var(--space-10);
}
.client-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  color: var(--slate-400);
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--text-xl);
  letter-spacing: 0.01em;
}
.client-logo img {
  max-height: 40px;
  width: auto;
  filter: grayscale(1);
  opacity: 0.6;
  transition: filter var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease-out);
}
.client-logo img:hover { filter: none; opacity: 1; }
/* Per-logo optical-size tuning (logos differ in intrinsic weight/proportion) */
.client-logo--lg { height: auto; }
.client-logo--lg img { max-height: 62px; }
.client-logo--sm img { max-height: 28px; }

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8) var(--space-6);
  text-align: center;
}
.stat .num {
  font-family: var(--font-display);
  font-weight: var(--fw-extrabold);
  font-size: var(--text-3xl);
  color: var(--brand);
  line-height: 1;
}
.stat .label {
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-muted);
}
/* dark-context variants (traction reuses .stat) */
.section--dark .stat .num { color: var(--green-400); }
.section--dark .stat .label { color: rgba(255,255,255,0.7); }

/* ============================================================
   PROBLEM SECTION
   ============================================================ */
.problem-grid {
  display: grid;
  gap: var(--space-5);
}
.friction {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--surface-page);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
}
.friction .icon-wrap {
  flex: none;
  width: 44px; height: 44px;
  border-radius: var(--radius-lg);
  background: var(--danger-bg);
  display: grid; place-items: center;
}
.friction .icon-wrap .icon { width: 24px; height: 24px; color: var(--danger); }
.friction h3 { font-size: var(--text-lg); font-weight: var(--fw-bold); }
.friction p { margin-top: var(--space-1); font-size: var(--text-base); color: var(--text-muted); }

/* ============================================================
   CARDS  (audience + modules — mirrors slides 02-modules)
   ============================================================ */
.card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-xs);
}

.card-grid {
  display: grid;
  gap: var(--space-5);
}

.icon-tile {
  width: 48px; height: 48px;
  border-radius: var(--radius-lg);
  background: var(--green-50);
  display: grid; place-items: center;
  margin-bottom: var(--space-4);
}
.icon-tile .icon { width: 30px; height: 30px; color: var(--brand); }

/* Audience-card illustration media panel */
.card-media {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 176px;
  margin: calc(-1 * var(--space-6)) calc(-1 * var(--space-6)) var(--space-5);
  background: linear-gradient(180deg, var(--green-50) 0%, #DCF3E6 100%);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  overflow: hidden;
}
.card-media .vignette { height: 168px; width: auto; display: block; }

/* Audience card = clickable */
a.audience-card {
  display: block;
  color: inherit;
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
}
a.audience-card:hover {
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-200);
}
.audience-card h3 { font-size: var(--text-xl); font-weight: var(--fw-bold); }
.audience-card p { margin-top: var(--space-2); color: var(--text-muted); font-size: var(--text-base); }
.audience-card .more {
  display: inline-flex; align-items: center; gap: var(--space-1);
  margin-top: var(--space-4);
  color: var(--brand); font-weight: var(--fw-bold); font-size: var(--text-base);
}
.audience-card .more .icon { width: 16px; height: 16px; transition: transform var(--dur-base) var(--ease-out); }
a.audience-card:hover .more .icon { transform: translateX(4px); }

/* Module card */
.module-card h3 { font-size: var(--text-lg); font-weight: var(--fw-bold); }
.module-card p { margin-top: var(--space-2); color: var(--text-muted); font-size: var(--text-base); }

/* ============================================================
   TRACTION
   ============================================================ */
.traction-grid {
  display: grid;
  gap: var(--space-6);
}
.traction-stat {
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  background: rgba(255,255,255,0.03);
}
.traction-stat .num {
  font-family: var(--font-display);
  font-weight: var(--fw-extrabold);
  font-size: var(--text-4xl);
  color: var(--green-400);
  line-height: 1;
}
.traction-stat .label {
  margin-top: var(--space-3);
  color: rgba(255,255,255,0.74);
  font-size: var(--text-base);
}
/* ============================================================
   PRINCIPLES  (Nuestra forma de trabajo — split head + checklist)
   ============================================================ */
.principles { display: grid; gap: var(--space-10); }
.principles .section-head { margin-bottom: 0; }
.principle-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-5); }
.principle {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}
.principle .check {
  flex: none;
  width: 32px; height: 32px;
  border-radius: var(--radius-pill);
  background: var(--green-50);
  color: var(--brand);
  display: grid; place-items: center;
}
.principle .check .icon { width: 18px; height: 18px; }
.principle h3 { font-size: var(--text-lg); font-weight: var(--fw-bold); }
.principle p { margin-top: var(--space-1); color: var(--text-muted); font-size: var(--text-base); }

/* ============================================================
   CONTACT / DEMO FORM
   ============================================================ */
.contact-grid { display: grid; gap: var(--space-10); }
.form-card {
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
}
.form-row { display: grid; gap: var(--space-4); }
.field { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-4); }
.field label {
  font-family: var(--font-sans);
  font-weight: var(--fw-semibold);
  font-size: var(--text-sm);
  color: var(--text-body);
}
.field input,
.field select,
.field textarea {
  font-family: var(--font-sans);
  font-size: var(--text-md);
  color: var(--text-body);
  padding: 10px 12px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  background: var(--white);
  transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: var(--ring);
}
/* Asterisco de campo obligatorio. Va por CSS y no en el texto de la etiqueta
   porque el i18n reescribe el textContent de <label> y se lo comería. */
.field label.required::after { content: " *"; color: var(--danger); font-weight: var(--fw-bold); }
.field .error-msg { color: var(--danger); font-size: var(--text-sm); display: none; }
.field.invalid input,
.field.invalid select,
.field.invalid textarea { border-color: var(--danger); }
.field.invalid .error-msg { display: block; }

.form-success {
  display: none;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  padding: var(--space-4);
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  border-radius: var(--radius-lg);
  color: var(--success);
  font-weight: var(--fw-semibold);
}
.form-success.show { display: flex; }
.form-success .icon { width: 22px; height: 22px; }

.form-error {
  display: none;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  padding: var(--space-4);
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  border-radius: var(--radius-lg);
  color: var(--danger);
  font-weight: var(--fw-semibold);
}
.form-error.show { display: flex; }
.form-error .icon { width: 22px; height: 22px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { padding-block: var(--space-16) var(--space-10); }
.footer-grid {
  display: grid;
  gap: var(--space-10);
  margin-bottom: var(--space-10);
}
.footer-tagline { margin-top: var(--space-4); color: rgba(255,255,255,0.6); max-width: 300px; }
.footer-col h4 {
  font-family: var(--font-sans);
  font-weight: var(--fw-bold);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--space-4);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.footer-col a { color: rgba(255,255,255,0.8); font-size: var(--text-base); }
.footer-col a:hover { color: #fff; }
.footer-social { display: flex; gap: var(--space-3); }
.footer-social a {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-pill);
}
.footer-social .icon { width: 20px; height: 20px; color: #fff; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: var(--space-4);
  align-items: center; justify-content: space-between;
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.5); font-size: var(--text-sm);
}
.footer-iso {
  height: 56px; width: auto; display: block;
  margin-top: var(--space-5);
  border-radius: var(--radius-sm);
}

/* ============================================================
   WHATSAPP FLOATING WIDGET  (ES only — toggled by body class)
   ============================================================ */
.whatsapp-fab {
  position: fixed;
  right: var(--space-5);
  bottom: var(--space-5);
  z-index: var(--z-overlay);
  display: none;                 /* shown via body.lang-es */
  align-items: center;
  justify-content: center;
  width: 58px; height: 58px;
  border-radius: var(--radius-pill);
  background: #25D366;
  box-shadow: var(--shadow-lg);
  transition: transform var(--dur-base) var(--ease-out);
}
body.lang-es .whatsapp-fab { display: inline-flex; }
.whatsapp-fab:hover { transform: scale(1.06); }
.whatsapp-fab .icon { width: 30px; height: 30px; color: #fff; }

/* ============================================================
   SUB-PAGE COMPONENTS
   ============================================================ */

/* Split hero: copy + illustration */
.subhero {
  background: linear-gradient(180deg, #EAF6F0 0%, #DCEFE7 100%);
  padding-block: var(--space-12);
}
.subhero .container { display: grid; gap: var(--space-8); align-items: center; }
.subhero h1 {
  font-size: var(--text-4xl);
  font-weight: var(--fw-extrabold);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  overflow-wrap: break-word;
}
.subhero h1 .accent { color: var(--brand); }
.subhero p.lede { margin-top: var(--space-5); font-size: var(--text-lg); color: var(--slate-700); }
.subhero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }
.subhero-illu {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #E3F4EA 0%, #CFEEDD 100%);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  min-height: 260px;
}
.subhero-illu img { max-height: 320px; width: auto; }
/* For art that already has its own card/frame baked in (drop shadow, backdrop) —
   skip the extra panel so it doesn't double-frame. */
.subhero-illu--bare { background: none; padding: 0; min-height: 0; }

/* Testimonial quote band */
.quote-band { padding-block: var(--space-16); }
.quote-band .container { max-width: 880px; text-align: center; }
.quote-mark {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: var(--text-6xl);
  line-height: 0.6;
  color: var(--green-400);
}
.quote-text {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--text-2xl);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #fff;
  margin-top: var(--space-4);
}
.section--light .quote-text { color: var(--text-strong); }
.quote-cite { margin-top: var(--space-5); color: rgba(255,255,255,0.7); font-weight: var(--fw-semibold); }
.section--light .quote-cite { color: var(--text-muted); }

/* Feature list */
.feature-list { display: grid; gap: var(--space-5); }
.feature-item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  padding: var(--space-5);
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xs);
}
.feature-item .icon-tile { margin-bottom: 0; flex: none; }
.feature-item h3 { font-size: var(--text-lg); font-weight: var(--fw-bold); }
.feature-item p { margin-top: var(--space-1); color: var(--text-muted); font-size: var(--text-base); }

/* Platform access cards */
.platform-grid { display: grid; gap: var(--space-5); }
.platform-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
}
.platform-card h3 { font-size: var(--text-lg); font-weight: var(--fw-bold); }
.platform-card p { margin-top: var(--space-2); color: var(--text-muted); font-size: var(--text-sm); }
.country-links { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-4); }
.country-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-pill);
  font-size: var(--text-sm); font-weight: var(--fw-semibold);
  color: var(--text-body);
  background: var(--white);
}
.country-link:hover { border-color: var(--green-300); background: var(--green-50); text-decoration: none; }

/* App store buttons */
.appstore-row { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }

/* Comunidad band */
.comunidad { padding-block: var(--space-16); }
.comunidad .container { display: grid; gap: var(--space-8); align-items: center; }
.comunidad .badge-eyebrow {
  display: inline-block; padding: 4px 12px; border-radius: var(--radius-pill);
  background: var(--green-400); color: var(--green-900);
  font-weight: var(--fw-bold); font-size: var(--text-xs); letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}
.comunidad h2 { font-size: var(--text-3xl); font-weight: var(--fw-extrabold); color: #fff; margin-top: var(--space-4); }
.comunidad p { margin-top: var(--space-4); color: rgba(255,255,255,0.78); font-size: var(--text-lg); }

/* Active nav link */
.nav-links a.active { color: var(--brand); }
.nav-links a.active::after {
  content: ""; display: block; height: 2px; background: var(--brand);
  border-radius: 2px; margin-top: 3px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* ============================================================
   COMUNIDAD PAGE  (/comunidad — ES only)
   ============================================================ */
/* ES-only entry points elsewhere (nav/footer links) — same gating as the WhatsApp fab */
body.lang-en .es-only { display: none !important; }

/* Launch-promo pill (hero) */
.promo-pill {
  display: inline-flex; align-items: center; gap: var(--space-2);
  margin-top: var(--space-5);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  background: var(--green-100); color: var(--green-900);
  font-weight: var(--fw-bold); font-size: var(--text-sm);
}
.promo-pill .icon { width: 18px; height: 18px; color: var(--green-700); }

/* Credencial stack (hero): black Plus card peeking behind the green one */
.card-stack {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-10) var(--space-4);
}
.card-stack img {
  width: min(380px, 82%); height: auto;
  border-radius: 16px;
  box-shadow: 0 22px 44px rgba(11, 59, 42, 0.28);
}
.card-stack .card-back { position: absolute; transform: rotate(7deg) translate(10%, -9%); }
.card-stack .card-front { position: relative; transform: rotate(-4deg); }

/* Qué es — narrative */
.com-story { max-width: 760px; margin: 0 auto var(--space-10); text-align: center; }
.com-story p { color: var(--text-muted); font-size: var(--text-md); }
.com-story p + p { margin-top: var(--space-5); }
.com-story .com-story-lead {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--text-xl);
  color: var(--text-strong);
}
.com-evolving {
  margin-top: var(--space-8);
  text-align: center;
  color: var(--text-muted);
  font-weight: var(--fw-semibold);
}

/* Benefit showcase */
.benefit-grid { display: grid; gap: var(--space-5); }
.benefit-card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-xs);
}
.benefit-num {
  font-family: var(--font-display);
  font-weight: var(--fw-extrabold);
  font-size: var(--text-3xl);
  color: var(--brand);
  line-height: 1;
}
.benefit-desc { margin-top: var(--space-2); font-size: var(--text-base); color: var(--text-body); }
.benefit-note {
  display: block; margin-top: var(--space-1);
  font-size: var(--text-xs); font-weight: var(--fw-regular);
  color: var(--text-muted);
}
.benefit-brand {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  margin-top: auto; padding-top: var(--space-5);
}
.benefit-brand img { max-height: 30px; max-width: 130px; width: auto; object-fit: contain; }
/* square/vertical marks need more height to stay legible */
.benefit-brand img.logo-tall { max-height: 48px; }
.benefit-brand-name {
  font-family: var(--font-display); font-weight: var(--fw-bold);
  font-size: var(--text-lg); color: var(--slate-400);
}
.benefit-sector {
  flex: none;
  padding: 3px 10px; border-radius: var(--radius-pill);
  background: var(--green-50); color: var(--green-800);
  font-size: var(--text-xs); font-weight: var(--fw-bold);
}
.benefit-badge {
  position: absolute; top: var(--space-4); right: var(--space-4);
  padding: 3px 10px; border-radius: var(--radius-pill);
  background: var(--warning-bg); color: var(--warning);
  border: 1px solid var(--warning-border);
  font-size: var(--text-xs); font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-wide); text-transform: uppercase;
  white-space: nowrap;
}

/* Axion ROI callout (dark Plus band) */
.roi-callout {
  display: flex; gap: var(--space-4); align-items: center;
  max-width: 760px; margin: 0 auto var(--space-10);
  padding: var(--space-5) var(--space-6);
  border: 1px solid var(--green-400);
  border-radius: var(--radius-xl);
  background: rgba(47, 186, 129, 0.08);
}
.roi-callout .icon { flex: none; width: 28px; height: 28px; color: var(--green-400); }
.roi-callout p { font-size: var(--text-md); color: rgba(255,255,255,0.85); }
.roi-callout strong { color: #fff; }

/* Prominent variant — solid brand fill, used for the Plus priority message */
.roi-callout--priority { background: var(--green-400); border-color: var(--green-400); }
.roi-callout--priority .icon { color: var(--green-900); }
.roi-callout--priority p { font-size: var(--text-lg); font-weight: var(--fw-semibold); color: var(--green-900); }
.roi-callout--priority strong { color: var(--green-900); }

/* Footnote + its in-copy asterisk references.
   .fn-ref inherits colour and stays undecorated so the asterisk looks like plain text. */
.footnote {
  max-width: 880px; margin-inline: auto;
  padding-block: var(--space-8);
  color: var(--text-muted); font-size: var(--text-sm);
  scroll-margin-top: 88px;
}
.fn-ref { color: inherit; text-decoration: none; }
.fn-ref:hover, .fn-ref:focus-visible { text-decoration: underline; }
.footnote:target { color: var(--text-body); font-weight: var(--fw-semibold); }

/* Plans */
.plan-grid { display: grid; gap: var(--space-6); max-width: 880px; margin-inline: auto; }
.plan-card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--surface-card);
  border: 2px solid var(--green-200);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
}
.plan-cardimg {
  /* Pre-rendered art: rotation + drop shadow are baked into the PNG on purpose — no extra transform/shadow here. */
  width: 220px; height: auto;
  margin-bottom: var(--space-5);
  margin-inline: auto;
}
.plan-card h3 { font-size: var(--text-xl); font-weight: var(--fw-bold); }
.plan-price {
  margin-top: var(--space-2);
  font-family: var(--font-display); font-weight: var(--fw-extrabold);
  font-size: var(--text-4xl); color: var(--brand); line-height: 1;
}
.plan-cycle { font-size: var(--text-lg); font-weight: var(--fw-bold); color: var(--text-muted); }
.plan-vat { font-size: 0.6em; font-weight: var(--fw-semibold); }
.plan-note { margin-top: var(--space-3); color: var(--text-muted); font-size: var(--text-base); }
.plan-list { list-style: none; margin: var(--space-5) 0 var(--space-6); padding: 0; display: grid; gap: var(--space-3); }
.plan-list li { display: flex; gap: var(--space-3); align-items: flex-start; font-size: var(--text-base); color: var(--text-body); }
.plan-list .icon { flex: none; width: 18px; height: 18px; color: var(--brand); margin-top: 2px; }
.plan-card .btn { margin-top: auto; }
.plan-badge {
  position: absolute; top: calc(-1 * var(--space-3)); left: 50%;
  transform: translateX(-50%);
  padding: 5px 14px; border-radius: var(--radius-pill);
  background: var(--green-400); color: var(--green-900);
  font-size: var(--text-xs); font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-wide); text-transform: uppercase;
  white-space: nowrap;
}
.plan-roi { margin-bottom: var(--space-5); font-size: var(--text-sm); font-weight: var(--fw-semibold); color: var(--green-700); }
.plan-card--plus { background: var(--surface-dark); border-color: rgba(255,255,255,0.14); }
.plan-card--plus h3 { color: #fff; }
.plan-card--plus .plan-price { color: var(--green-400); }
.plan-card--plus .plan-cycle { color: rgba(255,255,255,0.6); }
.plan-card--plus .plan-note, .plan-card--plus .plan-list li { color: rgba(255,255,255,0.78); }
.plan-card--plus .plan-list .icon { color: var(--green-400); }
.plan-card--plus .plan-roi { color: var(--green-300); }

/* Cómo sumarte — steps */
.steps { display: grid; gap: var(--space-6); max-width: 880px; margin-inline: auto; }
.step { display: flex; gap: var(--space-4); align-items: flex-start; }
.step-num {
  flex: none;
  width: 40px; height: 40px; border-radius: var(--radius-pill);
  background: var(--brand); color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: var(--fw-extrabold); font-size: var(--text-lg);
}
.step h3 { font-size: var(--text-lg); font-weight: var(--fw-bold); }
.step p { margin-top: var(--space-1); color: var(--text-muted); font-size: var(--text-base); }

/* FAQ — native accordion */
.faq { max-width: 760px; margin-inline: auto; display: grid; gap: var(--space-3); }
.faq details {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
}
.faq summary {
  cursor: pointer;
  font-weight: var(--fw-bold); font-size: var(--text-md); color: var(--text-strong);
  list-style: none;
  position: relative; padding-right: var(--space-8);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-family: var(--font-display); font-weight: var(--fw-bold);
  font-size: var(--text-xl); color: var(--brand); line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: var(--space-3); color: var(--text-muted); font-size: var(--text-base); }

/* ============================================================
   COMUNIDAD — MODAL DE VALIDACIÓN ("Probá Plus gratis")
   Se muestra sólo si el visitante NO llega con un identificador
   de usuario en la URL. Ver el script al final de comunidad.html.
   ============================================================ */
.cm-modal {
  position: fixed; inset: 0;
  z-index: var(--z-modal);
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-5);
}
.cm-modal[hidden] { display: none; }
body.cm-modal-open { overflow: hidden; }

.cm-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(11, 20, 15, 0.62);
}
.cm-modal__dialog {
  position: relative;
  width: 100%; max-width: 420px;
  max-height: calc(100vh - var(--space-10));
  overflow-y: auto;
  background: var(--surface-card);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  padding: var(--space-8) var(--space-6) var(--space-6);
}
.cm-modal__dialog:has(.cm-step[data-step="notice"]:not([hidden])) {
  min-height: min(320px, calc(100vh - var(--space-10)));
  display: flex;
  flex-direction: column;
}
.cm-step[data-step="notice"]:not([hidden]) {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.cm-step[data-step="notice"]:not([hidden]) .cm-modal__text {
  margin-block: auto;
}
.cm-modal__close {
  position: absolute; top: var(--space-3); right: var(--space-3);
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: none; border-radius: var(--radius-pill);
  background: transparent; color: var(--text-muted); cursor: pointer;
}
.cm-modal__close:hover { background: var(--surface-hover); color: var(--text-strong); }
.cm-modal__close .icon { width: 20px; height: 20px; }

.cm-modal__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl); font-weight: var(--fw-extrabold);
  color: var(--text-strong); line-height: 1.15;
}
.cm-modal__text {
  margin-top: var(--space-3);
  color: var(--text-muted); font-size: var(--text-base);
}
.cm-form { margin-top: var(--space-6); }
.cm-form .field { margin-bottom: var(--space-4); }
.cm-error {
  margin-top: var(--space-2);
  color: var(--danger); font-size: var(--text-sm); font-weight: var(--fw-semibold);
}
.cm-error[hidden] { display: none; }

/* Alternativas secundarias (no soy miembro / WhatsApp) */
.cm-alt {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border-subtle);
}
.cm-alt__label {
  margin-bottom: var(--space-3);
  text-align: center;
  font-size: var(--text-sm); font-weight: var(--fw-semibold); color: var(--text-muted);
}
.cm-wa {
  display: flex; align-items: center; justify-content: center; gap: var(--space-2);
  margin-top: var(--space-3);
  font-size: var(--text-base); font-weight: var(--fw-semibold); color: var(--text-muted);
}
.cm-wa:hover { color: #25D366; text-decoration: none; }
.cm-wa .icon { width: 18px; height: 18px; }

.cm-back {
  display: block; margin: var(--space-4) auto 0;
  border: none; background: none; cursor: pointer;
  font-family: var(--font-sans); font-size: var(--text-sm);
  font-weight: var(--fw-semibold); color: var(--text-muted);
}
.cm-back:hover { color: var(--brand); }

@media (min-width: 768px) {
  .container { padding-inline: var(--space-8); }
  .hero {
    min-height: 560px;
    padding-block: var(--space-20);
    /* The left→half fade is baked INTO the image over this exact colour, so the
       image's own left edge IS the background — seamless at any width.
       auto 100% shows the full image height (never crops top/bottom); anchored right. */
    background-color: #E9F8F0;
    background-image: url('../assets/illustrations/Landscape_wide.jpg');
    background-repeat: no-repeat;
    background-position: right center;
    background-size: auto 100%;
  }
  .hero h1 { font-size: var(--text-5xl); }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .problem-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
  .card-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .traction-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1.1fr; align-items: start; }
  .form-row.two { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .subhero .container { grid-template-columns: 1.05fr 0.95fr; }
  .principles { grid-template-columns: 0.85fr 1.15fr; gap: var(--space-16); align-items: start; }
  .feature-list.cols-2 { grid-template-columns: 1fr 1fr; }
  .platform-grid.cols-2 { grid-template-columns: 1fr 1fr; }
  .comunidad .container { grid-template-columns: 1.3fr 1fr; }
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .plan-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .nav-links { display: flex; }
  /* Fixed width sized to the longest CTA label across pages/languages
     ("Hablar con el equipo") so the header never reflows when the CTA changes.
     Tight horizontal padding keeps the button compact. */
  .nav-cta { display: inline-flex; min-width: 11rem; padding-inline: var(--space-3); }
  .nav-toggle { display: none; }
  .hero h1 { font-size: var(--text-6xl); }
  .section-head h2 { font-size: var(--text-4xl); }
  .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
  .traction-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .platform-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .benefit-grid { grid-template-columns: repeat(3, 1fr); }
}
