/* ═══════════════════════════════════════════════════════════════════════════
   FixrOS — COMPONENTES CANÓNICOS
   Depende de tokens.css. Aquí no hay ni un valor literal: todo es var(--fx-*).

   MÉTODO
   ─────────────────────────────────────────────────────────────────────────
   Cada componente se define UNA vez con nombre propio (.fx-card, .fx-btn…) y
   debajo, en «PUENTE», el vocabulario de clases que ya existe en las 41
   plantillas se engancha a esa misma definición. Así desaparecen las 217
   definiciones de tarjeta sin reescribir el markup de toda la web, que es
   donde estaría el riesgo de romper i18n y SEO.

   NO HAY COMPONENTE DE PRECIOS a propósito: la web pública de FixrOS no
   publica importes (regla de negocio), así que una pricing-table sería
   código muerto invitando a incumplirla.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── 1. BASE ──────────────────────────────────────────────────────────── */

body {
  font-family: var(--fx-font-body);
  font-size: var(--fx-text-md);
  line-height: var(--fx-leading-body);
  color: var(--fx-text);
  background: var(--fx-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5 {
  font-family: var(--fx-font-display);
  font-weight: var(--fx-weight-black);
  line-height: var(--fx-leading-tight);
  letter-spacing: var(--fx-tracking-tight);
  color: var(--fx-text);
  text-wrap: balance;
}
h1 { font-size: var(--fx-text-4xl); }
h2 { font-size: var(--fx-text-3xl); }
h3 { font-size: var(--fx-text-2xl); letter-spacing: var(--fx-tracking-snug); }
h4 { font-size: var(--fx-text-xl);  letter-spacing: var(--fx-tracking-snug); line-height: var(--fx-leading-snug); }

p { line-height: var(--fx-leading-body); text-wrap: pretty; }

/* Ninguna imagen puede desbordar su contenedor. Sin esta línea, una sola
   imagen sin restricción mete scroll horizontal a toda la página. */
img, svg, video, canvas, iframe { max-width: 100%; }
/* OJO: nada de `img[width][height]`. Ese selector tiene especificidad 0,2,1 y
   gana a cualquier clase (0,1,0): aplicado a las imágenes que declaran
   width/height en el markup —como el logotipo de la barra— les impone
   height:auto y las revienta de tamaño. `img` a secas es lo correcto. */
img { height: auto; }

::selection { background: var(--fx-brand-600); color: var(--fx-white); }

/* Foco: uno solo, visible en toda la web. Nunca outline:none sin sustituto. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--fx-brand-600);
  outline-offset: 2px;
  border-radius: var(--fx-radius-sm);
}

/* ── 2. LAYOUT ────────────────────────────────────────────────────────── */

.fx-container {
  width: 100%;
  max-width: var(--fx-container);
  margin-inline: auto;
  padding-inline: var(--fx-gutter);
}

.fx-section { padding-block: var(--fx-section-y); }
.fx-section--alt { background: var(--fx-bg-alt); }
.fx-section--dark {
  background: linear-gradient(160deg, var(--fx-navy) 0%, var(--fx-navy-2) 100%);
  color: var(--fx-on-dark-text);
}
.fx-section--flush { padding-block: 0; }

/* ── 3. SECTION HEADER (eyebrow + h2 + lead) ──────────────────────────── */

.fx-section-header { text-align: center; margin-bottom: var(--fx-space-12); }
.fx-section-header > * + * { margin-top: var(--fx-space-4); }
.fx-section-header .fx-lead { margin-inline: auto; }
.fx-section-header--start { text-align: left; }
.fx-section-header--start .fx-badge,
.fx-section-header--start .fx-lead { margin-inline: 0; }

.fx-lead {
  font-size: var(--fx-text-lg);
  line-height: var(--fx-leading-body);
  color: var(--fx-text-muted);
  font-weight: var(--fx-weight-medium);
  max-width: 62ch;
}
.fx-section--dark .fx-lead { color: var(--fx-on-dark-muted); }

/* ── 4. BADGE / EYEBROW ───────────────────────────────────────────────── */

.fx-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--fx-space-2);
  height: 2rem;                       /* 32px, una sola altura en toda la web */
  padding-inline: var(--fx-space-4);
  border-radius: var(--fx-radius-pill);
  background: var(--fx-accent-soft);
  color: var(--fx-accent);
  font-family: var(--fx-font-body);
  font-size: var(--fx-text-xs);
  font-weight: var(--fx-weight-bold);
  line-height: 1;
  letter-spacing: var(--fx-tracking-wide);
  text-transform: uppercase;
  white-space: nowrap;
  box-sizing: border-box;
}
.fx-badge::before {
  content: "";
  width: 0.5rem; height: 0.5rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: currentColor;
}
.fx-badge--plain::before { display: none; }
/* Etiquetas largas dentro de tarjetas: pueden partir sin recortar texto. */
.fx-badge--wrap {
  height: auto; min-height: 2rem;
  padding-block: var(--fx-space-2);
  white-space: normal;
  line-height: var(--fx-leading-snug);
}
.fx-section--dark .fx-badge,
.fx-badge--on-dark {
  background: rgba(255, 255, 255, 0.12);
  color: var(--fx-on-dark-text);
  border: 1px solid var(--fx-on-dark-border);
}
.fx-badge--success { background: var(--fx-success-bg); color: var(--fx-success); }
.fx-badge--warning { background: var(--fx-warning-bg); color: var(--fx-warning); }
.fx-badge--danger  { background: var(--fx-danger-bg);  color: var(--fx-danger); }

/* ── 5. BOTÓN ─────────────────────────────────────────────────────────── */

.fx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--fx-space-3);
  height: 3rem;                        /* md */
  padding-inline: var(--fx-space-6);
  border: 1px solid transparent;
  border-radius: var(--fx-radius-pill);
  font-family: var(--fx-font-body);
  font-size: var(--fx-text-sm);
  font-weight: var(--fx-weight-bold);
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  transition: background var(--fx-dur-fast) var(--fx-ease),
              color var(--fx-dur-fast) var(--fx-ease),
              border-color var(--fx-dur-fast) var(--fx-ease),
              transform var(--fx-dur-base) var(--fx-ease),
              box-shadow var(--fx-dur-base) var(--fx-ease);
}
.fx-btn--sm { height: 2.5rem; padding-inline: var(--fx-space-4); font-size: var(--fx-text-xs); }
.fx-btn--lg { height: 3.5rem; padding-inline: var(--fx-space-8); font-size: var(--fx-text-md); }

.fx-btn--primary {
  background: var(--fx-brand-600);
  color: var(--fx-white);
  box-shadow: 0 8px 20px -10px rgba(18, 70, 255, 0.7);
}
.fx-btn--primary:hover {
  background: var(--fx-brand-700);
  color: var(--fx-white);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px -12px rgba(18, 70, 255, 0.65);
}
.fx-btn--secondary {
  background: var(--fx-neutral-900);
  color: var(--fx-white);
}
.fx-btn--secondary:hover {
  background: var(--fx-brand-600);
  color: var(--fx-white);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px -12px rgba(18, 70, 255, 0.55);
}
.fx-btn--ghost {
  background: transparent;
  color: var(--fx-text);
  border-color: var(--fx-border-strong);
}
.fx-btn--ghost:hover { background: var(--fx-bg-alt); color: var(--fx-text); }

/* sobre superficie oscura o fotografía */
.fx-btn--glass {
  background: rgba(255, 255, 255, 0.14);
  color: var(--fx-white);
  border-color: rgba(255, 255, 255, 0.34);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.fx-btn--glass:hover { background: rgba(255, 255, 255, 0.24); color: var(--fx-white); }

.fx-btn[disabled], .fx-btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  pointer-events: none;
}

/* ── 6. CARD — UNA sola, variantes por modificador ────────────────────── */

.fx-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--fx-space-8);
  background: var(--fx-surface);
  border: 1px solid var(--fx-border);
  border-radius: var(--fx-radius-md);
  box-shadow: var(--fx-shadow-sm);
  overflow: hidden;
  transition: transform var(--fx-dur-base) var(--fx-ease),
              box-shadow var(--fx-dur-base) var(--fx-ease),
              border-color var(--fx-dur-fast) var(--fx-ease);
}
.fx-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--fx-shadow-md);
  border-color: var(--fx-brand-200);
}
.fx-card--flat { box-shadow: none; }
.fx-card--flat:hover { transform: none; box-shadow: var(--fx-shadow-sm); }
.fx-card--sunken { background: var(--fx-bg-alt); }
.fx-card--dark {
  background: linear-gradient(160deg, var(--fx-navy), var(--fx-navy-2));
  border-color: transparent;
  color: var(--fx-on-dark-text);
}
.fx-card--accent {
  background: var(--fx-brand-600);
  border-color: transparent;
  color: var(--fx-on-dark-text);
}
.fx-card--dark  *, .fx-card--accent * { color: inherit; }
.fx-card--dark  .fx-card__desc { color: var(--fx-on-dark-muted); }
.fx-card--accent .fx-card__desc { color: rgba(255, 255, 255, 0.86); }
.fx-card--dark  .fx-badge, .fx-card--accent .fx-badge {
  background: rgba(255, 255, 255, 0.16);
  color: var(--fx-white);
  border: 0;
}

.fx-card__icon {
  width: 2.875rem; height: 2.875rem;      /* 46px */
  flex: 0 0 auto;
  display: grid; place-items: center;
  margin-bottom: var(--fx-space-6);
  border-radius: var(--fx-radius-sm);
  background: var(--fx-accent-soft);
  color: var(--fx-accent);
}
.fx-card__icon svg { width: 1.375rem; height: 1.375rem; }
.fx-card--dark .fx-card__icon,
.fx-card--accent .fx-card__icon {
  background: rgba(255, 255, 255, 0.14);
  color: var(--fx-white);
}
.fx-card--danger .fx-card__icon { background: var(--fx-danger-bg); color: var(--fx-danger); }
.fx-card--danger:hover { border-color: var(--fx-danger); }

.fx-card__title {
  font-family: var(--fx-font-display);
  font-size: var(--fx-text-xl);
  font-weight: var(--fx-weight-black);
  line-height: var(--fx-leading-snug);
  letter-spacing: var(--fx-tracking-snug);
  margin: 0 0 var(--fx-space-3);
}
.fx-card__desc {
  font-size: var(--fx-text-sm);
  line-height: var(--fx-leading-body);
  color: var(--fx-text-muted);
  margin: 0;
}

/* Rejilla de tarjetas: una sola, se adapta sola. */
.fx-grid { display: grid; gap: var(--fx-space-3); }
.fx-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fx-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fx-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fx-grid--auto { grid-template-columns: repeat(auto-fit, minmax(17.5rem, 1fr)); }
@media (max-width: 60rem) { .fx-grid--4, .fx-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 40rem) { .fx-grid--2, .fx-grid--3, .fx-grid--4 { grid-template-columns: 1fr; } }

/* ── 7. STAT ──────────────────────────────────────────────────────────── */

.fx-stat__value {
  display: block;
  font-family: var(--fx-font-display);
  font-size: var(--fx-text-3xl);
  font-weight: var(--fx-weight-black);
  line-height: 1;
  letter-spacing: var(--fx-tracking-tight);
  color: var(--fx-accent);
}
.fx-stat__label {
  display: block;
  margin-top: var(--fx-space-3);
  font-size: var(--fx-text-sm);
  font-weight: var(--fx-weight-semi);
  color: var(--fx-text-muted);
}
.fx-section--dark .fx-stat__value,
.fx-card--dark .fx-stat__value,
.fx-card--accent .fx-stat__value { color: var(--fx-white); }
.fx-section--dark .fx-stat__label { color: var(--fx-on-dark-muted); }

/* ── 8. CTA BAND ──────────────────────────────────────────────────────── */

.fx-cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 1rem + 5vw, 5rem);
  border-radius: var(--fx-radius-lg);
  background: var(--fx-neutral-900);
  color: var(--fx-on-dark-text);
  text-align: center;
}
.fx-cta-band::before {
  content: "";
  position: absolute;
  inset-inline-end: -20%;
  inset-block-start: -60%;
  width: 60%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(18, 70, 255, 0.5), transparent 62%);
  filter: blur(40px);
  pointer-events: none;
}
.fx-cta-band > * { position: relative; z-index: var(--fx-z-base); }
.fx-cta-band h2 { color: var(--fx-white); }
.fx-cta-band p  { color: var(--fx-on-dark-muted); margin-top: var(--fx-space-4); }
.fx-cta-band__actions {
  display: flex; gap: var(--fx-space-3);
  flex-wrap: wrap; justify-content: center;
  margin-top: var(--fx-space-8);
}

/* ── 9. FAQ ───────────────────────────────────────────────────────────── */

.fx-faq { border-top: 1px solid var(--fx-border); }
.fx-faq__item { border-bottom: 1px solid var(--fx-border); }
.fx-faq__q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--fx-space-4);
  padding-block: var(--fx-space-6);
  background: none; border: 0;
  font-family: var(--fx-font-display);
  font-size: var(--fx-text-lg);
  font-weight: var(--fx-weight-bold);
  color: var(--fx-text);
  text-align: left;
  cursor: pointer;
  transition: color var(--fx-dur-fast) var(--fx-ease);
}
.fx-faq__q:hover { color: var(--fx-accent); }
.fx-faq__a { padding-bottom: var(--fx-space-6); color: var(--fx-text-muted); max-width: 68ch; }

/* ── 10. FORM FIELD ───────────────────────────────────────────────────── */

.fx-field { display: flex; flex-direction: column; gap: var(--fx-space-2); }
.fx-field__label {
  font-size: var(--fx-text-sm);
  font-weight: var(--fx-weight-semi);
  color: var(--fx-text);
}
.fx-field__hint { font-size: var(--fx-text-xs); color: var(--fx-text-subtle); }
.fx-field__error { font-size: var(--fx-text-xs); color: var(--fx-danger); font-weight: var(--fx-weight-semi); }

.fx-input,
.fx-field input[type="text"],
.fx-field input[type="email"],
.fx-field input[type="tel"],
.fx-field input[type="number"],
.fx-field select,
.fx-field textarea {
  width: 100%;
  min-height: 3rem;
  padding: var(--fx-space-3) var(--fx-space-4);
  font-family: var(--fx-font-body);
  font-size: var(--fx-text-md);      /* 16px: evita el zoom automático de iOS */
  color: var(--fx-text);
  background: var(--fx-surface);
  border: 1px solid var(--fx-border-strong);
  border-radius: var(--fx-radius-sm);
  box-sizing: border-box;
  transition: border-color var(--fx-dur-fast) var(--fx-ease),
              box-shadow var(--fx-dur-fast) var(--fx-ease);
}
.fx-input:hover, .fx-field input:hover, .fx-field textarea:hover { border-color: var(--fx-neutral-400); }
.fx-input:focus, .fx-field input:focus, .fx-field select:focus, .fx-field textarea:focus {
  outline: none;
  border-color: var(--fx-brand-600);
  box-shadow: var(--fx-ring);
}
.fx-input[aria-invalid="true"], .fx-field [aria-invalid="true"] {
  border-color: var(--fx-danger);
  box-shadow: 0 0 0 3px rgba(196, 50, 31, 0.18);
}
.fx-input[disabled], .fx-field input[disabled], .fx-field textarea[disabled] {
  background: var(--fx-bg-alt);
  color: var(--fx-text-subtle);
  cursor: not-allowed;
}

/* ── 11. TABLA ────────────────────────────────────────────────────────── */

.fx-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--fx-border);
  border-radius: var(--fx-radius-md);
  background: var(--fx-surface);
  -webkit-overflow-scrolling: touch;
}
.fx-table-wrap table { width: 100%; border-collapse: collapse; font-size: var(--fx-text-sm); }
.fx-table-wrap th {
  padding: var(--fx-space-4) var(--fx-space-6);
  background: var(--fx-bg-alt);
  font-family: var(--fx-font-display);
  font-size: var(--fx-text-xs);
  font-weight: var(--fx-weight-black);
  letter-spacing: var(--fx-tracking-wide);
  text-transform: uppercase;
  color: var(--fx-text-subtle);
  text-align: left;
  white-space: nowrap;
}
.fx-table-wrap td {
  padding: var(--fx-space-4) var(--fx-space-6);
  border-top: 1px solid var(--fx-border);
  color: var(--fx-text-muted);
}
.fx-table-wrap tbody tr:hover { background: var(--fx-accent-soft); }

/* ── 12. TESTIMONIAL ──────────────────────────────────────────────────── */

.fx-quote { display: flex; flex-direction: column; gap: var(--fx-space-6); }
.fx-quote__text {
  font-family: var(--fx-font-display);
  font-size: var(--fx-text-xl);
  font-weight: var(--fx-weight-semi);
  line-height: var(--fx-leading-snug);
  letter-spacing: var(--fx-tracking-snug);
  color: var(--fx-text);
}
.fx-quote__author { display: flex; align-items: center; gap: var(--fx-space-3); }
.fx-quote__name { font-size: var(--fx-text-sm); font-weight: var(--fx-weight-bold); }
.fx-quote__role { font-size: var(--fx-text-sm); color: var(--fx-text-subtle); }

/* ── 13. REVELADO AL SCROLL ───────────────────────────────────────────── */

.fx-reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity var(--fx-dur-base) var(--fx-ease),
              transform var(--fx-dur-base) var(--fx-ease);
}
.fx-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .fx-reveal { opacity: 1; transform: none; }
}

/* ── 14. DOCUMENTO LEGAL ──────────────────────────────────────────────────
   Componente, no CSS de página: lo comparten seis plantillas (aviso legal,
   privacidad, cookies, términos, política de chat y el hub legal), que hasta
   ahora repetían el MISMO bloque <style> inline cinco veces, cada una con
   colores fuera de sistema (var(--fx-brand-50), var(--fx-brand-400), var(--fx-brand-50), var(--fx-navy)). */

.legal-back { padding-block: var(--fx-space-6) 0; background: var(--fx-bg-alt); }
.legal-back .container { max-width: 53.75rem; margin-inline: auto; }
.legal-back-link {
  display: inline-flex; align-items: center; gap: var(--fx-space-2);
  font-size: var(--fx-text-sm);
  font-weight: var(--fx-weight-semi);
  color: var(--fx-accent);
  text-decoration: none;
}
.legal-back-link:hover { text-decoration: underline; color: var(--fx-accent-hover); }

.legal-content { max-width: 53.75rem; margin-inline: auto; }
.legal-content > * + * { margin-top: var(--fx-space-4); }
.legal-content h2 { margin-top: var(--fx-space-12); font-size: var(--fx-text-2xl); }
.legal-content h3 { margin-top: var(--fx-space-8); font-size: var(--fx-text-xl); }
.legal-content p, .legal-content li { color: var(--fx-text-muted); }

.legal-content .table-wrap {
  overflow-x: auto;
  margin-block: 0 var(--fx-space-6);
  border: 1px solid var(--fx-border);
  border-radius: var(--fx-radius-md);
}
.legal-content table { width: 100%; border-collapse: collapse; font-size: var(--fx-text-sm); }
.legal-content table th {
  padding: var(--fx-space-3) var(--fx-space-4);
  background: var(--fx-bg-alt);
  color: var(--fx-text);
  font-weight: var(--fx-weight-semi);
  text-align: left;
  border-bottom: 1px solid var(--fx-border);
}
.legal-content table td {
  padding: var(--fx-space-3) var(--fx-space-4);
  color: var(--fx-text-muted);
  border-top: 1px solid var(--fx-border);
  vertical-align: top;
  line-height: var(--fx-leading-body);
}
.legal-content table tr:nth-child(even) td { background: var(--fx-neutral-25); }
.legal-content code {
  padding: 2px var(--fx-space-1);
  background: var(--fx-bg-sunken);
  border-radius: 4px;
  font-family: var(--fx-font-mono);
  font-size: 0.85em;
  color: var(--fx-brand-800);
}

/* ── 15. FAMILIA PRODUCTO ─────────────────────────────────────────────────
   Componentes compartidos por las cinco páginas de producto (app, dashboard,
   siniestros, marketplace, contabilidad), que hasta ahora repetían el mismo
   bloque <style> inline cinco veces con literales fuera de sistema
   (var(--fx-brand-50), var(--fx-brand-100), var(--fx-brand-800), var(--fx-warning-bg), var(--fx-warning-bg), var(--fx-danger)).

   De esos bloques se ha eliminado además todo lo que eran PARCHES contra el
   sistema anterior y que hoy sobran:
     · `.animate-on-scroll{opacity:1!important}` — desactivaba el revelado
     · `.section{padding:64px!important}` — sobrescribía el ritmo página a
       página; ahora hay un único --fx-section-y para toda la web
     · `.nav-dropdown-group-label` — duplicaba lo que ya define layout.css */

.trust-grid, .proto-steps, .proto-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--fx-space-6);
}
.diferenciales-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* chips de confianza del hero, sobre fotografía */
.hero-trust { display: flex; gap: var(--fx-space-3); justify-content: center; flex-wrap: wrap; margin-top: var(--fx-space-6); }
.hero-trust span {
  display: inline-flex; align-items: center; gap: var(--fx-space-2);
  height: 2rem; padding-inline: var(--fx-space-4);
  border-radius: var(--fx-radius-pill);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--fx-white);
  font-size: var(--fx-text-xs);
  font-weight: var(--fx-weight-semi);
  white-space: nowrap;
}

/* banda de métricas */
.proto-metrics {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--fx-space-6);
  padding: var(--fx-space-12) var(--fx-space-8);
  border-radius: var(--fx-radius-lg);
  background: linear-gradient(160deg, var(--fx-navy) 0%, var(--fx-navy-2) 100%);
  box-shadow: var(--fx-shadow-lg);
  text-align: center;
}
.proto-metric .n {
  font-family: var(--fx-font-display);
  font-size: var(--fx-text-3xl);
  font-weight: var(--fx-weight-black);
  line-height: 1;
  letter-spacing: var(--fx-tracking-snug);
  color: var(--fx-white);
}
.proto-metric .n span { font-size: 0.5em; opacity: .85; margin-left: 2px; }
.proto-metric .l { margin-top: var(--fx-space-3); font-size: var(--fx-text-sm); color: rgba(255, 255, 255, .88); }

/* banda de portal */
.proto-portal-band {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--fx-space-8); flex-wrap: wrap;
  padding: var(--fx-space-12);
  border-radius: var(--fx-radius-lg);
  background: var(--fx-navy);
  color: var(--fx-on-dark-text);
}
.proto-portal-band::after {
  content: ""; position: absolute;
  inset-inline-end: -5rem; inset-block-start: -5rem;
  width: 20rem; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(143, 176, 255, .35), transparent 70%);
  pointer-events: none;
}
.proto-portal-band h2 { color: var(--fx-white); margin: 0 0 var(--fx-space-2); }
.proto-portal-band p  { color: var(--fx-on-dark-muted); margin: 0; max-width: 34rem; position: relative; }
.proto-portal-url {
  display: block; margin-top: var(--fx-space-3);
  font-family: var(--fx-font-mono); font-size: var(--fx-text-xs);
  color: var(--fx-on-dark-subtle);
}
.proto-portal-btn {
  position: relative; z-index: var(--fx-z-base);
  display: inline-flex; align-items: center; gap: var(--fx-space-2);
  height: 3rem; padding-inline: var(--fx-space-6);
  border-radius: var(--fx-radius-pill);
  background: var(--fx-white); color: var(--fx-navy-2);
  font-weight: var(--fx-weight-bold);
  text-decoration: none; white-space: nowrap;
  transition: transform var(--fx-dur-base) var(--fx-ease), box-shadow var(--fx-dur-base) var(--fx-ease);
}
.proto-portal-btn:hover { transform: translateY(-2px); box-shadow: var(--fx-shadow-lg); color: var(--fx-navy-2); }

/* pasos y tarjetas de hub: son .fx-card con numeración */
.proto-step, .proto-hub-card {
  padding: var(--fx-space-8);
  background: var(--fx-surface);
  border: 1px solid var(--fx-border);
  border-radius: var(--fx-radius-md);
  box-shadow: var(--fx-shadow-sm);
  color: inherit; text-decoration: none; display: block;
  transition: transform var(--fx-dur-base) var(--fx-ease), box-shadow var(--fx-dur-base) var(--fx-ease);
}
.proto-hub-card:hover { transform: translateY(-4px); box-shadow: var(--fx-shadow-md); }
.proto-step .num {
  width: 2.375rem; height: 2.375rem;
  display: grid; place-items: center;
  margin-bottom: var(--fx-space-4);
  border-radius: 50%;
  background: var(--fx-brand-600); color: var(--fx-white);
  font-family: var(--fx-font-display); font-weight: var(--fx-weight-bold);
}
.proto-step h3, .proto-hub-card h3 { margin: 0 0 var(--fx-space-2); font-size: var(--fx-text-xl); }
.proto-step p,  .proto-hub-card p  { margin: 0 0 var(--fx-space-3); color: var(--fx-text-muted); font-size: var(--fx-text-sm); }
.proto-hub-url { font-family: var(--fx-font-mono); font-size: var(--fx-text-xs); color: var(--fx-accent); }

/* avisos */
.proto-note {
  margin-top: var(--fx-space-6);
  padding: var(--fx-space-4) var(--fx-space-6);
  border-radius: var(--fx-radius-sm);
  background: var(--fx-info-bg);
  border: 1px solid var(--fx-brand-200);
  color: var(--fx-brand-900);
  font-size: var(--fx-text-sm);
  line-height: var(--fx-leading-body);
}
.proto-note.warn { background: var(--fx-warning-bg); border-color: var(--fx-warning-bg); color: var(--fx-warning); }
.proto-credits { padding-top: var(--fx-space-2); text-align: center; font-size: var(--fx-text-xs); color: var(--fx-text-subtle); }
.proto-mini { margin-top: var(--fx-space-6); text-align: center; font-size: var(--fx-text-sm); color: var(--fx-text-muted); }
.proto-mini a { color: var(--fx-accent); }
.eyebrow.eyebrow--light { color: var(--fx-on-dark-accent); }

@media (max-width: 55rem) {
  .proto-steps, .proto-hub-grid, .trust-grid, .diferenciales-grid--3 { grid-template-columns: 1fr; }
  .proto-metrics { grid-template-columns: repeat(2, minmax(0,1fr)); padding: var(--fx-space-8); }
  .proto-portal-band { padding: var(--fx-space-8); }
}
@media (max-width: 55rem) and (min-width: 35rem) {
  .trust-grid, .proto-steps, .proto-hub-grid, .diferenciales-grid--3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   16. BANDA DE TEXTO + FOTOGRAFÍA  ·  .fx-split

   POR QUÉ EXISTE: las páginas largas de esta web encadenan secciones con la
   misma forma —píldora, titular, entradilla y rejilla de tarjetas— una detrás
   de otra. Con cuatro o más seguidas el ojo pierde el sitio y la página se
   lee plana por muy bueno que sea el contenido. Esta banda rompe el patrón
   con una fotografía a media página y, alternando el lado, marca el corte
   entre bloques sin necesidad de tocar una palabra del copy.

   Nació en /como-funciona/ y hoy la usan también las seis páginas de
   «¿Para quién?». Por eso vive aquí y no en una hoja de página.
   ═══════════════════════════════════════════════════════════════════════ */

.fx-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(2rem, 1rem + 3.5vw, 4.5rem);
  margin-bottom: var(--fx-space-16);
}

/* El zigzag se hace con `order` y no reordenando el HTML, para que el orden
   de lectura y el recorrido del teclado sigan siendo texto → imagen. */
.fx-split--invertido .fx-split__text  { order: 2; }
.fx-split--invertido .fx-split__media { order: 1; }

.fx-split__text .eyebrow { margin-bottom: var(--fx-space-4); }

/* Aquí el titular manda desde la izquierda: centrarlo dentro de su columna
   lo dejaría flotando respecto de la píldora y de la entradilla. */
.fx-split__text .section-title,
.fx-split__text .section-desc,
.fx-split__text .fx-lead { text-align: left; }
.fx-split__text .section-desc { margin-inline: 0; max-width: 46ch; }

.fx-split__media {
  position: relative;
  margin: 0;
  border-radius: var(--fx-radius-lg);
  overflow: hidden;
  box-shadow: var(--fx-shadow-lg);
}

.fx-split__media img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* Velo del azul de marca, muy bajo: unifica fotografías de origen distinto
   bajo un mismo tono sin llegar a teñirlas. */
.fx-split__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(18, 70, 255, 0.16), transparent 55%);
  pointer-events: none;
}

@media (max-width: 56.25rem) {
  .fx-split {
    grid-template-columns: 1fr;
    gap: var(--fx-space-8);
    margin-bottom: var(--fx-space-12);
  }
  /* En una sola columna no hay zigzag: la foto siempre va debajo. */
  .fx-split--invertido .fx-split__text  { order: 1; }
  .fx-split--invertido .fx-split__media { order: 2; }
  .fx-split__media img { aspect-ratio: 16 / 9; }
}
