@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

:root {
  --bg: #00040d;
  --surface: #000f2f;
  --surface-raised: #041c4e;
  --fg: #f7f8fc;
  --muted: #a8d8f5;
  --muted-strong: #c8e5f7;
  --light: #e8f5fc;
  --light-surface: #f7fbfe;
  --light-fg: #00143d;
  --light-muted: #315b7b;
  --light-border: rgba(0, 20, 61, 0.18);
  --border: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(168, 216, 245, 0.32);
  --accent: #ff613f;
  --accent-light: #ff8148;
  --accent-dark: #cc3e20;
  --ocean: #0063c5;
  --sky: #43a6e2;
  --success: #55d7b0;
  --danger: #ff8f78;
  --placeholder: #8cb7d4;
  --gradient-coral: linear-gradient(90deg, #ff4a2b 0%, #ff9a5c 100%);
  --font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max: 1360px;
  --radius-card: 16px;
  --radius-control: 6px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 3px; }
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--fg);
  color: var(--bg);
  border-radius: var(--radius-control);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}
.site-shell { position: relative; z-index: 1; }
.container, .wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.narrow { width: min(760px, calc(100% - 40px)); margin-inline: auto; }
.section { position: relative; padding: clamp(64px, 8vw, 96px) 0; }
.section-compact { position: relative; padding: clamp(48px, 6vw, 72px) 0; }
.section-rule { border-top: 1px solid var(--border); }
.content-limit { max-width: 65ch; }
.stack { display: grid; gap: 24px; }
.stack-sm { display: grid; gap: 14px; }
.cluster { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }

.eyebrow {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
h1, h2, h3, h4 {
  margin: 0;
  color: var(--fg);
  font-family: var(--font);
  font-weight: 500;
  text-wrap: balance;
}
h1 {
  max-width: 12ch;
  font-size: clamp(42px, 6.4vw, 80px);
  line-height: 1.01;
  letter-spacing: -0.03em;
}
h2 {
  max-width: 18ch;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.022em;
}
h3 { font-size: clamp(20px, 2vw, 28px); line-height: 1.15; letter-spacing: -0.012em; }
h4 { font-size: 17px; line-height: 1.25; }
p { margin: 0; text-wrap: pretty; }
.lead {
  max-width: 58ch;
  color: var(--muted-strong);
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.65;
}
.body-copy { color: var(--muted-strong); }
.small { color: var(--muted); font-size: 13px; letter-spacing: 0.01em; }
.text-link { text-decoration: underline; text-decoration-color: rgba(168,216,245,.45); text-underline-offset: 5px; }
.text-link:hover { color: var(--fg); text-decoration-color: var(--fg); }
/* <button class="text-link"> no hereda el mismo look que un <a>: sin este
   reset queda con la apariencia nativa del navegador (botón gris claro),
   casi invisible sobre fondo oscuro y con muy bajo contraste. */
button.text-link { background: none; border: none; padding: 0; font: inherit; color: var(--accent-light); cursor: pointer; }
button.text-link:hover { color: var(--fg); }

.btn {
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--fg);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, filter .18s ease, background-color .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--gradient-coral); color: var(--fg); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-secondary, .btn-ghost { background: transparent; border-color: var(--border-strong); }
.btn-secondary:hover, .btn-ghost:hover { background: var(--surface); border-color: var(--muted); }
.btn-small { min-height: 42px; padding: 10px 16px; font-size: 14px; }
.arrow {
  width: 36px;
  height: 36px;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  display: inline-grid;
  place-items: center;
  font-size: 16px;
  text-decoration: none;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
}
.arrow:hover { transform: translate(2px, -2px); background: var(--accent); border-color: var(--accent); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 8, 23, 0.94);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  width: min(var(--max), calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}
/* Desktop-only social icon cluster next to the CTA, kept separate from the
   nav links (which stay in their original position). The nav-social copy
   inside .main-nav still exists for the mobile dropdown; hidden on desktop
   per-page via a scoped style until this pattern is rolled out sitewide. */
.header-social { display: flex; align-items: center; gap: 12px; margin-right: 24px; }
.header-social-link { display: inline-flex; color: var(--muted-strong); }
.header-social-link:hover { color: var(--accent-light); }
.header-social-link svg { display: block; }
@media (max-width: 780px) { .header-social { display: none; } }
/* The nav-social copy inside .main-nav exists for the mobile dropdown; on
   desktop the .header-social copy next to the CTA takes over so icons
   aren't shown twice. */
@media (min-width: 781px) {
  [data-od-id="primary-nav"] > .nav-social { display: none; }
}
.brand img { width: 30px; height: 30px; object-fit: contain; }
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a {
  position: relative;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--fg); }
.nav-social { display: flex; align-items: center; gap: 14px; margin-left: 4px; padding-left: 18px; border-left: 1px solid var(--border); }
.nav-social-link { display: inline-flex; color: var(--muted-strong); }
.nav-social-link:hover { color: var(--accent-light); }
.nav-social-link svg { display: block; }
.main-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -11px;
  height: 2px;
  background: var(--muted);
}
.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-control);
  background: transparent;
  display: none;
  place-items: center;
  cursor: pointer;
}
.nav-toggle svg { width: 20px; }

.hero {
  /* Antes forzaba min-height: calc(100vh - 72px), la única página del sitio
     que ocupaba casi toda la pantalla sin importar el contenido — el resto
     usa .page-hero, que se ajusta al contenido sin mínimo forzado (2026-08-24,
     medido: 840px vs 688px en el mismo viewport). Mismo padding que
     .page-hero para quedar consistente con el resto del sitio. */
  padding: clamp(64px, 8vw, 100px) 0 clamp(48px, 6vw, 72px);
  display: flex;
  align-items: center;
}
.hero-grid {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(380px, 1.04fr);
  gap: clamp(48px, 8vw, 112px);
  align-items: center;
}
.hero-copy { position: relative; z-index: 2; }
.hero-copy .lead { margin-top: 28px; }
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.particle-stage {
  min-height: clamp(420px, 44vw, 560px);
  position: relative;
  pointer-events: none;
}
.particle-anchor { position: absolute; inset: 0; min-width: 1px; min-height: 1px; }

.detail-list.service-cards {
  border-top: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.detail-list.service-cards .detail-item {
  padding: 24px;
  border-bottom: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}
.detail-icon { display: block; width: 38px; height: 38px; margin-bottom: 14px; }
.detail-list.service-cards .text-link { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 500; }
.section-icon { display: block; width: 22px; height: 22px; margin-bottom: 10px; }
.detail-intro--row { display: flex; align-items: flex-start; gap: 14px; }
.detail-intro--row .section-icon { margin-bottom: 0; margin-top: 4px; flex-shrink: 0; }

.signal-strip { border-block: 1px solid var(--border); padding: 26px 0; }
.signal-strip-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.signal-label { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.signal-values { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 18px 36px; color: var(--muted-strong); font-size: 14px; font-weight: 500; }

.trust-band {
  position: relative;
  padding: clamp(64px, 8vw, 104px) 0;
  border-block: 1px solid var(--border);
  background: rgba(0, 15, 47, 0.76);
}
.trust-band .method-grid { margin-bottom: clamp(36px, 5vw, 56px); }
/* Sección de confianza de Inicio quedó con 2 tarjetas (no 4) tras sacar las
   2 que repetían el mensaje de "Cómo trabajamos" (2026-08-24) — sin este
   override heredaría repeat(4, ...) de .method-grid y quedarían dos columnas
   fantasma vacías, mismo bug que ya se documentó en LEARNINGS.md con
   "Cómo trabajamos" en nosotros.html. Ancho completo del contenedor (no
   centrado en una caja angosta): un primer intento con max-width:640px
   centrado se veía "raro" — la línea divisoria y el encabezado de arriba
   siguen usando el ancho completo, y angostar solo la fila de tarjetas
   generaba un salto de ancho brusco y espacio vacío a los costados. */
[data-od-id="home-trust"] .method-grid--icons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.trust-badge {
  display: inline-block;
  margin: 0 auto clamp(20px, 2.4vw, 24px);
  padding: 8px 14px;
  border: 1px solid var(--accent-light);
  border-radius: 999px;
  color: var(--accent-light);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.trust-cta.decision-block { background: transparent; }

.section-heading {
  margin-bottom: clamp(36px, 5vw, 64px);
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
}
.section-heading > div:first-child { max-width: 720px; }
.section-heading .lead { max-width: 500px; }

.service-layout { position: relative; }
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.service-card {
  min-height: 342px;
  padding: 28px;
  background: color-mix(in oklch, var(--surface) 84%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: transform .2s cubic-bezier(.22, 1, .36, 1), background-color .2s cubic-bezier(.22, 1, .36, 1), border-color .2s cubic-bezier(.22, 1, .36, 1);
}
.service-card:hover, .service-card:focus-within {
  transform: translateY(-4px);
  background: color-mix(in oklch, var(--surface-raised) 94%, transparent);
  border-color: var(--border-strong);
}
.service-card-top { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.service-index { color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: .08em; }
.service-icon {
  width: 74px;
  height: 74px;
  margin: 24px 0 22px;
  color: var(--sky);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service-icon .icon-accent { fill: var(--accent); stroke: none; }
.service-card h3 { margin-bottom: 12px; }
.service-card p { max-width: 54ch; color: var(--muted-strong); font-size: 15px; line-height: 1.65; }
.service-card .service-meta { margin-top: auto; padding-top: 24px; color: var(--muted); font-size: 12px; }

.section-light {
  position: relative;
  z-index: 2;
  background: rgba(232, 245, 252, 0.86);
  color: var(--light-fg);
}
.section-light h1, .section-light h2, .section-light h3, .section-light h4 { color: var(--light-fg); }
.section-light .lead, .section-light .method-step p { color: var(--light-muted); }
.section-light .eyebrow { color: var(--light-muted); }
.section-light .method-grid { border-color: var(--light-border); }
.section-light .detail-list.service-cards h3 { color: var(--fg); }
.section-light .method-step { border-color: var(--light-border); }
.section-light .method-number { background: var(--light-fg); border-color: var(--light-fg); color: var(--light-surface); }
.section-light .bullet-list li { color: var(--light-muted); }
.section-light .highlight-list li { color: var(--light-fg); }

.method-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--border); }
.method-step { padding: 28px 24px 10px 0; border-bottom: 1px solid var(--border); }
.method-step + .method-step { padding-left: 24px; border-left: 1px solid var(--border); }
.method-number {
  width: 38px;
  height: 38px;
  margin-bottom: 42px;
  background: var(--ocean);
  border: 1px solid var(--sky);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--fg);
  font-size: 12px;
}
.method-icon { display: block; width: 34px; height: 34px; margin-bottom: 10px; }
.method-step h3 { margin-bottom: 12px; }
.method-step p { color: var(--muted-strong); font-size: 14px; }

/* Centered 4-step process variant (icon > number > title > description), used on subservice pages */
.method-heading--center { flex-direction: column; align-items: center; text-align: center; margin-bottom: clamp(36px, 4.4vw, 48px); }
.method-heading--center > div:first-child { max-width: clamp(620px, 62vw, 820px); }
.method-heading--center h2 { margin-inline: auto; font-size: clamp(28px, 3.6vw, 42px); }

.method-grid--icons { list-style: none; margin: 0; padding: 0; }
.method-grid--icons .method-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(28px, 3vw, 36px) clamp(16px, 2.4vw, 20px) clamp(24px, 3vw, 32px);
  text-align: center;
}
.method-grid--icons .method-step + .method-step { padding-left: clamp(16px, 2.4vw, 20px); }
.method-grid--icons .method-icon { width: clamp(56px, 5vw, 64px); height: clamp(56px, 5vw, 64px); margin: 0 auto clamp(20px, 2.4vw, 24px); }
.method-grid--icons .method-number { width: clamp(38px, 3.6vw, 42px); height: clamp(38px, 3.6vw, 42px); margin: 0 auto clamp(24px, 2.8vw, 30px); flex-shrink: 0; }
.method-grid--icons .method-step h3 { max-width: 280px; margin: 0 auto clamp(14px, 1.8vw, 18px); font-size: clamp(20px, 2.1vw, 26px); }
.method-grid--icons .method-step p { max-width: 280px; margin: 0 auto; font-size: clamp(15px, 1.3vw, 17px); line-height: 1.55; }

.decision-block {
  padding: clamp(30px, 5vw, 56px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: center;
}
.decision-block h2 { font-size: clamp(28px, 3.5vw, 46px); }
.decision-block .lead { margin-top: 16px; }
.decision-actions { display: flex; flex-direction: column; gap: 12px; min-width: 220px; }

.page-hero { padding: clamp(64px, 8vw, 100px) 0 clamp(48px, 6vw, 72px); }
[data-od-id="about-hero"] h1 { max-width: 19ch; }
.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .62fr);
  gap: clamp(44px, 8vw, 110px);
  align-items: center;
}
.page-hero-grid .particle-stage { min-height: clamp(300px, 34vw, 420px); }
.page-hero .lead { margin-top: 26px; }
.breadcrumbs { margin-bottom: 28px; display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 12px; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--fg); }

.detail-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(42px, 7vw, 96px); align-items: start; }
.detail-intro { position: sticky; top: 112px; }
/* Used on individual subservice pages (servicios/<pilar>/<subservicio>.html) to disable the sticky title, which collided visually with the header on scroll on those shorter, denser pages */
.detail-intro--flow { position: static; top: auto; }
.why-grid { display: grid; grid-template-columns: minmax(0, 640px) minmax(160px, 300px); gap: clamp(32px, 9vw, 140px); align-items: center; }
.why-icon { display: block; width: 100%; max-width: 270px; height: auto; justify-self: center; }
.highlight-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 11px; color: var(--fg); font-size: 16px; }
.detail-list { border-top: 1px solid var(--border); }
.detail-item { padding: 28px 0; border-bottom: 1px solid var(--border); }
.detail-item h3 { margin-bottom: 10px; }
.detail-item p { color: var(--muted-strong); }
.bullet-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.bullet-list li { position: relative; padding-left: 24px; color: var(--muted-strong); }
.bullet-list li::before { content: ""; position: absolute; left: 0; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--sky); }
.bullet-list--check li, .bullet-list--cross li { padding-left: 26px; }
.bullet-list--check li::before, .bullet-list--cross li::before {
  width: 16px; height: 16px; border-radius: 50%; top: .15em;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; line-height: 1;
}
.bullet-list--check li::before { content: "✓"; background: rgba(67,166,226,.16); color: var(--sky); }
.bullet-list--cross li::before { content: "✕"; background: rgba(255,255,255,.06); color: var(--muted); }
.section-light .bullet-list--cross li::before { background: rgba(10,20,35,.06); }

.faq-list { border-top: 1px solid var(--border); }
.faq-list details { border-bottom: 1px solid var(--border); }
.faq-list summary {
  min-height: 68px;
  padding: 20px 44px 20px 0;
  position: relative;
  display: flex;
  align-items: center;
  color: var(--fg);
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 8px; color: var(--muted); font-size: 22px; font-weight: 400; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { max-width: 68ch; padding: 0 40px 22px 0; color: var(--muted-strong); }

/* Soft glyph-level halo so body text stays legible over the particle canvas in dark (non section-light) sections */
.section:not(.section-light) .lead,
.section:not(.section-light) .bullet-list li,
.section:not(.section-light) .highlight-list li,
.section:not(.section-light) .faq-list details p,
.section:not(.section-light) .faq-list summary,
.section:not(.section-light) .detail-item p {
  text-shadow: 0 0 4px rgba(0, 4, 13, .9), 0 0 6px rgba(0, 4, 13, .75), 0 0 14px rgba(0, 4, 13, .55);
}
.decision-block .lead { text-shadow: none; }

.section-faq { border-top: 1px solid var(--border); }
.faq-home-grid { display: grid; grid-template-columns: minmax(280px, .68fr) minmax(0, 1.32fr); gap: clamp(48px, 8vw, 110px); align-items: start; }
.faq-home-grid > div:first-child { position: sticky; top: 116px; }
.faq-home-grid .lead { margin-top: 20px; font-size: 16px; }

.contact-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(42px, 7vw, 96px); align-items: start; }
.form-card {
  padding: clamp(24px, 4vw, 40px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}
.form-grid { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: grid; gap: 7px; }
.field label { color: var(--fg); font-size: 13px; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-control);
  color: var(--fg);
}
.field textarea { min-height: 128px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--placeholder); opacity: 1; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent-light); outline: 2px solid rgba(255,129,72,.34); outline-offset: 1px; }
.field-error { display: none; color: var(--danger); font-size: 12px; }
.field.invalid .field-error { display: block; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); }
.form-success { display: none; padding: 38px 0; text-align: center; }
.form-success.is-visible { display: grid; gap: 12px; }
.form-success h3 { color: var(--success); }

.profile-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(48px, 8vw, 110px); align-items: start; }
.principles { border-top: 1px solid var(--border); }
.principle { padding: 24px 0; border-bottom: 1px solid var(--border); display: grid; grid-template-columns: 36px 1fr; gap: 18px; }
.principle span { color: var(--muted); font-size: 12px; }
.principle p { color: var(--muted-strong); }

/* Founder's note: personal statement (left, ~60%) + photo signature (right, ~40%), centered in a narrower reading column than the site max-width */
.founder-note { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(56px, 6vw, 72px); align-items: center; }
.founder-note-text h2 { margin-top: 10px; max-width: 20ch; }
.founder-note-text .lead { margin-top: 16px; max-width: 68ch; }
.founder-note-signature { display: flex; align-items: center; gap: 16px; }
.founder-photo-sm { width: 120px; height: 120px; border-radius: var(--radius-card); object-fit: cover; flex-shrink: 0; display: block; }
.founder-note-signature h3 { font-size: 17px; }
.founder-role { display: block; margin-top: 4px; color: var(--muted); font-weight: 500; font-size: 13px; }
.section-light .founder-role { color: var(--light-muted); }
.founder-bio { margin-top: 8px; max-width: 30ch; color: var(--muted-strong); font-size: 13px; line-height: 1.4; }
.section-light .founder-bio { color: var(--light-muted); }

/* Compact inline timeline (e.g. 2023 -> 2025) */
.timeline-compact { display: flex; align-items: baseline; gap: 14px; margin-top: 18px; }
.timeline-compact .timeline-step { display: flex; align-items: baseline; gap: 8px; }
.timeline-compact .timeline-year { font-weight: 600; font-size: 15px; color: var(--fg); }
.timeline-compact .timeline-label { font-size: 14px; color: var(--muted-strong); }
.timeline-compact .timeline-arrow { color: var(--muted); font-size: 15px; }
.section-light .timeline-compact .timeline-year { color: var(--light-fg); }
.section-light .timeline-compact .timeline-label { color: var(--light-muted); }

/* Align the right column of a profile-grid intro block to the H2 baseline, not the eyebrow */
@media (min-width: 781px) {
  .profile-grid-align-h2 { margin-top: 34px; }
}

/* Compact stat row (Formación y comunidad) */
.stats-row { display: flex; flex-wrap: wrap; gap: 28px 44px; margin-top: 28px; }
.stats-row--stacked { flex-direction: column; gap: 20px; margin-top: 6px; }
.stat-item strong { display: block; font-size: clamp(26px, 2.8vw, 36px); font-weight: 600; color: var(--fg); line-height: 1.1; }
.stat-item span { display: block; margin-top: 8px; font-size: 15px; color: var(--muted-strong); }
.section-light .stat-item strong { color: var(--light-fg); }
.section-light .stat-item span { color: var(--light-muted); }
.formation-photo { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-card); display: block; }

.empty-state {
  min-height: 360px;
  padding: clamp(32px, 6vw, 72px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  display: grid;
  place-items: center;
  text-align: center;
}
.empty-state > div { max-width: 620px; }
.empty-state .lead { margin: 18px auto 28px; }
.category-chips { margin-bottom: 30px; display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 8px 12px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted-strong); font-size: 12px; }

.diagnostic-shell { min-height: calc(100vh - 72px); padding: 40px 0 80px; }
.diagnostic-grid {
  min-height: calc(100vh - 192px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .68fr);
  gap: clamp(36px, 7vw, 96px);
  align-items: center;
}
.diagnostic-panel {
  min-height: 560px;
  padding: clamp(26px, 4vw, 46px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  display: flex;
  flex-direction: column;
}
#diagnosticForm { flex: 1; display: flex; flex-direction: column; }
.progress-wrap { margin-bottom: 44px; }
.progress-meta { margin-bottom: 10px; display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 12px; }
.progress-track { height: 3px; background: rgba(255,255,255,.1); overflow: hidden; }
.progress-bar { width: 0; height: 100%; background: var(--accent); transition: width .26s ease; }
.diagnostic-step { display: none; }
.diagnostic-step.is-active { display: block; }
.diagnostic-step h1 { max-width: 15ch; font-size: clamp(32px, 4.2vw, 54px); line-height: 1.04; }
.diagnostic-step .lead { margin-top: 18px; font-size: 16px; }
.option-grid { margin-top: 30px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.option {
  min-height: 76px;
  padding: 16px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted-strong);
  text-align: left;
  cursor: pointer;
}
.option:hover { border-color: var(--muted); color: var(--fg); }
.option.is-selected { background: var(--surface-raised); border-color: var(--accent-light); color: var(--fg); }
.option input { width: 18px; height: 18px; accent-color: var(--accent); }
.diagnostic-actions { margin-top: auto; padding-top: 32px; display: flex; justify-content: space-between; gap: 12px; }
.diagnostic-result { display: none; }
.diagnostic-result.is-visible { display: grid; gap: 20px; }
.result-badge { color: var(--accent-light); font-size: 12px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
.result-reasons { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.result-reasons li { padding: 14px 0; border-top: 1px solid var(--border); color: var(--muted-strong); }
.result-secondary { color: var(--muted-strong); margin-top: -6px; }
.diagnostic-hint { margin-top: 18px; color: var(--muted); font-size: 13px; }
.diagnostic-chip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 12px 16px; border: 1px solid var(--border); border-radius: 12px; font-size: 13px; color: var(--muted-strong); }
.diagnostic-chip strong { color: var(--fg); }
.diagnostic-chip button { flex: none; margin-left: auto; }
.chip-button {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-control);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.chip-button:hover { filter: brightness(1.08); }
.field-hint { margin-top: 6px; color: var(--muted); font-size: 12px; }
.phone-input { display: flex; gap: 10px; }
.phone-input select { flex: 0 0 132px; width: 132px; }
.phone-input input { flex: 1; min-width: 0; }
.consent-field { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--muted-strong); cursor: pointer; }
.consent-field input { width: 18px; height: 18px; min-height: 0; flex: none; margin-top: 2px; accent-color: var(--accent); }
.consent-field a { color: var(--accent-light); }
[data-honeypot] { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 480px) {
  .phone-input { flex-direction: column; }
  .phone-input select { flex: none; width: 100%; }
}

.site-footer { position: relative; padding: 72px 0 28px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1.9fr repeat(4, 1fr); gap: 42px; padding-bottom: 44px; }
.footer-copy { max-width: 34ch; margin-top: 16px; color: var(--muted); font-size: 13px; }
.footer-email { display: inline-block; margin-top: 14px; color: var(--muted-strong); font-size: 13px; text-decoration: none; }
.footer-email:hover { color: var(--fg); }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social-link { display: inline-flex; color: var(--muted-strong); }
.footer-social-link:hover { color: var(--accent-light); }
.footer-social-link svg { display: block; }
.footer-col h4 { margin-bottom: 14px; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--muted-strong); font-size: 13px; text-decoration: none; }
.footer-col a:hover { color: var(--fg); }
/* Rediseño 2026-08-24: antes era una columna suelta a ancho completo con un
   max-width sin alinear (quedaba flotando a la izquierda, desconectada de
   las columnas de navegación de arriba y compitiendo con la esfera de
   partículas de fondo). Ahora es un panel contenido (mismo patrón que
   .decision-block: fondo sólido, borde, radio) con el correo y el botón en
   la misma fila — deja de "flotar" y queda como un bloque a propósito. */
.footer-newsletter-panel {
  grid-column: 1 / -1;
  margin-top: 8px;
  padding: clamp(24px, 3.2vw, 36px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
}
.footer-newsletter-copy h3 { margin-top: 6px; font-size: clamp(17px, 1.6vw, 20px); font-weight: 600; }
.newsletter-form-row { display: flex; gap: 10px; align-items: flex-start; }
.newsletter-form-row .field { flex: 1; margin-bottom: 0; }
.newsletter-form-row .btn { flex-shrink: 0; }
.newsletter-form .field { margin-bottom: 12px; }
.newsletter-form .consent-field { margin-top: 12px; margin-bottom: 0; }
.newsletter-status { margin-top: 10px; font-size: 12px; color: var(--muted); }
.newsletter-status.is-error { color: var(--danger); }
@media (max-width: 780px) {
  .footer-newsletter-panel { grid-template-columns: 1fr; }
  .newsletter-form-row { flex-direction: column; }
  .newsletter-form-row .btn { width: 100%; }
}
.footer-bottom { padding-top: 24px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 12px; }
.footer-legal { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 18px; }
.footer-legal a { color: inherit; text-decoration: none; }
.footer-legal a:hover, .footer-legal a:focus-visible { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.loading-line { width: min(360px, 80vw); height: 2px; margin-top: 34px; overflow: hidden; background: var(--border); }
.loading-line span { display: block; width: 38%; height: 100%; background: var(--accent); animation: loading-current 1.6s cubic-bezier(.4,0,.2,1) infinite; }
@keyframes loading-current { 0% { transform: translateX(-110%); } 100% { transform: translateX(360%); } }
@media (prefers-reduced-motion: reduce) { .loading-line span { width: 100%; animation: none; opacity: .72; } }

@media (max-width: 1199px) {
  .method-grid--icons { grid-template-columns: repeat(2, 1fr); }
  .method-grid--icons .method-step:nth-child(3) { border-left: 0; }
}

@media (max-width: 1020px) {
  .hero-grid, .page-hero-grid { grid-template-columns: 1fr .72fr; }
  .particle-stage { min-height: clamp(380px, 48vw, 460px); }
  .method-grid { grid-template-columns: repeat(2, 1fr); }
  .method-step:nth-child(3) { border-left: 0; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .diagnostic-grid { grid-template-columns: 1fr .6fr; }
}

@media (max-width: 767px) {
  .method-grid--icons { grid-template-columns: 1fr; }
  .method-grid--icons .method-step, .method-grid--icons .method-step + .method-step { border-left: 0; }
  .method-grid--icons .method-step { padding: 18px 12px; }
  .method-grid--icons .method-icon { margin-bottom: 12px; }
  .method-grid--icons .method-number { margin-bottom: 12px; }
  .method-grid--icons .method-step h3 { margin-bottom: 8px; }
}

@media (max-width: 780px) {
  .main-nav {
    position: fixed;
    inset: 72px 0 auto;
    max-height: calc(100vh - 72px);
    padding: 22px 20px 28px;
    overflow-y: auto;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { min-height: 48px; padding: 13px 8px; display: flex; align-items: center; }
  .main-nav a[aria-current="page"]::after { left: 8px; right: auto; bottom: 7px; width: 24px; }
  .nav-social { margin: 10px 0 0; padding: 18px 8px 0; border-left: 0; border-top: 1px solid var(--border); }
  .header-actions .btn { display: none; }
  .nav-toggle { display: grid; }
  .hero { min-height: auto; }
  .hero-grid, .page-hero-grid, .contact-grid, .profile-grid, .detail-grid, .diagnostic-grid, .why-grid, .founder-note { grid-template-columns: 1fr; }
  .why-icon { max-width: 160px; order: -1; }
  .founder-note-signature { margin-top: 24px; }
  .founder-photo-sm { width: 88px; height: 88px; }
  .hero-copy { order: 1; }
  .particle-stage { min-height: clamp(300px, 78vw, 380px); order: 0; }
  .page-hero-grid .particle-stage { order: -1; min-height: clamp(280px, 68vw, 340px); }
  .detail-intro { position: static; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 320px; }
  .method-grid { grid-template-columns: 1fr; }
  .method-step, .method-step + .method-step { padding: 24px 0; border-left: 0; }
  .method-grid--icons .method-icon { width: clamp(48px, 13vw, 56px); height: clamp(48px, 13vw, 56px); }
  .method-number { margin-bottom: 18px; }
  .section-heading { align-items: start; flex-direction: column; }
  .method-heading--center { align-items: center; }
  .decision-block { grid-template-columns: 1fr; }
  .decision-actions { min-width: 0; }
  .form-row, .option-grid { grid-template-columns: 1fr; }
  .diagnostic-grid { display: block; }
  .diagnostic-panel { min-height: calc(100vh - 150px); }
  .diagnostic-grid > .particle-stage { display: none; }
  .faq-home-grid { grid-template-columns: 1fr; }
  .faq-home-grid > div:first-child { position: static; }
}

@media (max-width: 520px) {
  .container, .wrap, .header-inner, .narrow { width: min(100% - 28px, var(--max)); }
  h1 { font-size: clamp(38px, 12vw, 54px); }
  h2 { font-size: 31px; }
  .hero { padding-top: 48px; }
  .particle-stage { min-height: clamp(250px, 74vw, 310px); }
  .signal-strip-inner { align-items: start; flex-direction: column; }
  .signal-values { justify-content: flex-start; gap: 10px 20px; }
  .service-card, .form-card, .diagnostic-panel { padding: 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .diagnostic-actions { align-items: stretch; flex-direction: column-reverse; }
  .diagnostic-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
