/* ==========================================================================
   Factoring Divisa — estilos del sitio
   --------------------------------------------------------------------------
   Antes todo el estilo vivía en atributos `style` dentro de componentes React,
   así que el HTML servido no tenía forma. Ahora el contenido es HTML semántico
   y el estilo vive acá, en clases. Depende de styles/tokens.css.
   ========================================================================== */

/* ==========================================================================
   Layout base
   ========================================================================== */

html { scroll-behavior: smooth; overflow-x: hidden; }

/* El header es sticky: sin esto, un ancla deja el título tapado. */
section[id], [id]:target { scroll-margin-top: 84px; }

.section {
  padding: 96px 0;
  position: relative;
}
.section--tight { padding: 64px 0; }
.section--paper { background: var(--paper); }
.section--subtle { background: var(--bg-subtle); }
.section--navy { background: var(--navy-900); color: #fff; }
.section--gradient { background: linear-gradient(180deg, var(--gray-50) 0%, var(--canvas) 100%); }

.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3.25rem); margin-top: 0; }
.section-head p {
  margin-top: 20px;
  font-size: 1.0625rem;
  color: var(--ink-700);
  line-height: 1.6;
}

/* Lleva el conteo de pagadores, que se rellena cuando carga la lista. */
.pagadores-lede { font-size: 1.1875rem !important; color: var(--navy-900) !important; }

/* Encabezado de una columna secundaria: no es rótulo de sección, es el título
   real de la lista que sigue. */
.columna-titulo {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy-900);
  letter-spacing: -0.01em;
}
.pagadores-lede strong { font-weight: 700; color: var(--red-600); }
.muted { color: var(--ink-400); }
.accent { color: var(--red-500); }

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: 1fr 1fr; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
/* Llevan su propio display:grid porque se usan sueltas, sin la clase .grid:
   `class="container grid--split"`. Sin esto las columnas se apilaban. */
.grid--split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; }
.grid--split-alt { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }

.stack-lg > * + * { margin-top: 24px; }

/* ==========================================================================
   Botones
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: -0.01em;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
}
.btn--lg { padding: 17px 28px; font-size: 1.0625rem; }
.btn--sm { padding: 10px 16px; font-size: 0.875rem; }
.btn--block { width: 100%; }

.btn--primary { background: var(--red-500); color: #fff; box-shadow: var(--shadow-red); }
.btn--primary:hover { background: var(--red-600); }

.btn--navy { background: var(--navy-800); color: #fff; box-shadow: var(--shadow-navy); }
.btn--navy:hover { background: var(--navy-900); }

.btn--ghost { background: transparent; color: var(--navy-900); border-color: var(--ink-200); }
.btn--ghost:hover { background: var(--ink-50); }

.btn--white { background: #fff; color: var(--navy-900); box-shadow: var(--shadow-md); }
.btn--white:hover { background: var(--gray-25); }

.btn--whatsapp { background: #25D366; color: #fff; }
.btn--whatsapp:hover { background: #1FB957; }

.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.65; pointer-events: none; }

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ==========================================================================
   Píldoras
   ========================================================================== */

.pill {
  display: inline-block;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}
.pill--red { background: var(--red-50); color: var(--red-500); }
.pill--mint { background: var(--mint-100); color: #0f6e3c; }
.pill--neutral { background: var(--ink-50); color: var(--ink-700); }

/* ==========================================================================
   Tarjetas
   ========================================================================== */

.card {
  background: var(--paper);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.card--pad-sm { padding: 20px; }
.card--hover { transition: box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base); }
.card--hover:hover { box-shadow: var(--shadow-md); border-color: var(--navy-100); }

.icon-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
}
.icon-tile--red { background: var(--red-50); color: var(--red-500); }
.icon-tile--navy { background: var(--navy-50); color: var(--navy-800); }
.icon-tile--mint { background: var(--mint-100); color: #007a57; }
.icon-tile--amber { background: var(--amber-100); color: #b77400; }
.icon-tile svg { width: 22px; height: 22px; }

.card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.card p { font-size: 0.9375rem; color: var(--ink-500); line-height: 1.55; }

/* ==========================================================================
   Header / navegación
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--ink-100);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 14px 24px;
}
.site-header__logo { display: flex; align-items: center; }
.site-header__logo img { height: 36px; width: auto; display: block; }

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-500);
  transition: color var(--dur-fast);
}
.site-nav a:hover { color: var(--navy-900); }

.site-header__actions { display: flex; align-items: center; gap: 12px; }
.site-header__phone {
  display: inline-flex;
  white-space: nowrap;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-700);
}

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-md);
  background: #fff;
  align-items: center;
  justify-content: center;
}

/* Menú móvil sin JavaScript: checkbox + hermano adyacente */
.nav-checkbox { position: absolute; opacity: 0; pointer-events: none; }
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--navy-900);
  padding: 24px;
  overflow-y: auto;
}
.mobile-nav a {
  display: block;
  font-size: 1.5rem;
  font-weight: 500;
  color: #fff;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.nav-checkbox:checked ~ .mobile-nav { display: block; }
.mobile-nav__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  margin-left: auto;
  margin-bottom: 24px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
}

/* ==========================================================================
   Hero — promesa de valor + formulario
   ========================================================================== */

.hero {
  position: relative;
  padding: 56px 0 72px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -180px; right: -160px;
  width: 620px; height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(208, 48, 55, 0.07), transparent 62%);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.25rem, 5vw, 4.25rem);
  margin-top: 22px;
  line-height: 1.04;
  letter-spacing: -0.025em;
}
.hero__lead {
  margin-top: 22px;
  font-size: 1.1875rem;
  color: var(--ink-700);
  line-height: 1.55;
  max-width: 560px;
}
.hero__points {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}
.hero__points li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-700);
}
.hero__points svg { color: var(--mint-500); flex-shrink: 0; }

/* ==========================================================================
   Formulario de captura
   --------------------------------------------------------------------------
   Cuatro campos y la casilla de autorización. Se usa en el hero y repetido al
   cierre, con la variante --compact para el hero donde el espacio es menor.
   ========================================================================== */

.lead-form {
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  padding: 32px;
}
.lead-form--compact { padding: 26px; }

.lead-form__head { margin-bottom: 20px; }
.lead-form__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy-900);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.lead-form--compact .lead-form__title { font-size: 1.3125rem; }
.lead-form__sub {
  font-size: 0.9375rem;
  color: var(--ink-500);
  margin-top: 6px;
  line-height: 1.5;
}

.lead-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lead-form input:focus-visible,
.lead-form select:focus-visible { border-color: var(--navy-600); }
.lead-form select {
  cursor: pointer;
  /* Se conserva el indicador nativo: sin él, el select parecía un campo de
     texto y el usuario no sabía que se despliega. */
  padding-right: 34px;
}
.lead-form select:invalid, .lead-form select option[value=""] { color: var(--ink-400); }

/* ---- Autorización de datos (Ley 1581) ---- */
.lead-form__consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 18px;
  padding: 14px;
  background: var(--ink-50);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-md);
}
.lead-form__consent input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px; height: 18px;
  margin: 2px 0 0;
  accent-color: var(--navy-800);
  cursor: pointer;
}
.lead-form__consent label {
  font-size: 0.8125rem;
  color: var(--ink-700);
  line-height: 1.5;
  cursor: pointer;
}
.lead-form__consent a { color: var(--navy-800); font-weight: 600; text-decoration: underline; }
.lead-form__consent-error { font-size: 0.75rem; color: var(--red-600); margin-top: 6px; }

.lead-form__error {
  margin-top: 16px;
  padding: 12px 14px;
  background: var(--red-50);
  border: 1px solid var(--red-100);
  border-radius: var(--radius-md);
  color: var(--red-700);
  font-size: 0.875rem;
  line-height: 1.5;
}
.lead-form__error a { color: var(--red-700); font-weight: 700; text-decoration: underline; }

.lead-form__trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 0.75rem;
  color: var(--ink-500);
  text-align: center;
}
.lead-form__trust svg { color: var(--ink-400); flex-shrink: 0; }

@media (max-width: 560px) {
  .lead-form { padding: 22px; }
  .lead-form__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Cierre: el formulario repetido al final
   --------------------------------------------------------------------------
   El brief lo pide (hoja «Mapa de la página», 09 · Cierre): quien llegó hasta
   abajo ya está convencido y no debe devolverse. Va sobre fondo navy para que
   se lea como cierre y no como una repetición por descuido.
   ========================================================================== */

.cierre { background: var(--navy-900); color: #fff; padding: 88px 0; }
.cierre__grid {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 56px;
  align-items: center;
}
.cierre h2 {
  color: #fff;
  font-size: clamp(1.875rem, 3.5vw, 2.75rem);
  line-height: 1.08;
}
.cierre__lead {
  margin-top: 18px;
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
  max-width: 460px;
}
.cierre__points { list-style: none; padding: 0; margin: 28px 0 0; }
.cierre__points li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.85);
}
.cierre__points svg { color: var(--mint-500); flex-shrink: 0; margin-top: 3px; }
.cierre .eyebrow { color: var(--red-400); }

@media (max-width: 1100px) {
  .cierre__grid { grid-template-columns: 1fr 420px; gap: 40px; }
}
@media (max-width: 960px) {
  .cierre { padding: 64px 0; }
  .cierre__grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ==========================================================================
   Métricas
   ========================================================================== */

.metrics { background: var(--navy-900); color: #fff; padding: 44px 0; }
.metrics__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.metrics__item { text-align: center; }
.metrics__item + .metrics__item { border-left: 1px solid rgba(255, 255, 255, 0.12); }
.metrics__value {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}
.metrics__label { font-size: 0.875rem; color: rgba(255, 255, 255, 0.7); margin-top: 6px; font-weight: 500; }
.metrics__note { font-size: 0.75rem; color: rgba(255, 255, 255, 0.45); margin-top: 2px; }

/* ==========================================================================
   Lista de comprobación
   ========================================================================== */

.checklist { list-style: none; padding: 0; margin: 32px 0 0; }
.checklist li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--ink-100);
}
.checklist li:last-child { border-bottom: none; }
.checklist__mark {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: var(--radius-md);
  background: var(--mint-100);
  color: #007a57;
}
.checklist strong { display: block; color: var(--navy-900); font-weight: 600; }
.checklist span { font-size: 0.9375rem; color: var(--ink-500); }

/* ==========================================================================
   Tabla de costos
   ========================================================================== */

.price-list { list-style: none; padding: 0; margin: 0; }
.price-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 22px 26px;
  margin-bottom: 10px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--ink-100);
  background: var(--ink-50);
}
.price-list li:nth-child(odd) { background: var(--navy-50); }
.price-list dt, .price-list .concept {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--navy-900);
  letter-spacing: -0.01em;
}
.price-list .amount {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f6e3c;
  white-space: nowrap;
  letter-spacing: -0.02em;
}

.callout {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px 22px;
  border-radius: var(--radius-lg);
  margin-top: 28px;
}
.callout--mint { background: var(--mint-100); color: #005c41; }
.callout--amber { background: var(--amber-100); color: #7a4d00; }
.callout svg { flex-shrink: 0; margin-top: 2px; }
.callout p { font-size: 0.9375rem; line-height: 1.55; color: inherit; }

/* ==========================================================================
   Flujo RADIAN
   ========================================================================== */

.flow {
  background: var(--ink-50);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-2xl);
  padding: 40px 32px;
}
.flow__row {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 12px;
  align-items: center;
}
.flow__node {
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-xl);
  padding: 18px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.flow__node--navy { background: var(--navy-900); border-color: var(--navy-900); color: #fff; box-shadow: var(--shadow-navy); }
.flow__node--outline-navy { border-color: var(--navy-600); }
.flow__node--outline-red { border-color: var(--red-500); }
.flow__tag {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: 8px;
}
.flow__node--navy .flow__tag { color: var(--red-400); }
.flow__node--outline-navy .flow__tag { color: var(--navy-700); }
.flow__node--outline-red .flow__tag { color: var(--red-500); }
.flow__title { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; color: var(--navy-900); }
.flow__node--navy .flow__title { color: #fff; }
.flow__meta { font-family: var(--font-mono); font-size: 0.6875rem; color: var(--ink-500); margin-top: 4px; }
.flow__node--navy .flow__meta { color: rgba(255, 255, 255, 0.6); }
.flow__arrow { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--ink-400); }
.flow__arrow span {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}
.flow__arrow--accent { color: var(--red-500); }

/* ==========================================================================
   Documentos
   ========================================================================== */

.doc-list { list-style: none; padding: 0; margin: 0; }
.doc-list li {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--ink-100);
  font-size: 1rem;
  font-weight: 500;
  color: var(--navy-900);
  line-height: 1.4;
}
.doc-list li:last-child { border-bottom: none; }
.doc-list__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: var(--radius-md);
  background: var(--navy-50);
  color: var(--navy-800);
}

/* ==========================================================================
   FAQ — <details> nativo: crawleable y sin JavaScript
   ========================================================================== */

.faq { border-top: 1px solid var(--ink-200); }
.faq details { border-bottom: 1px solid var(--ink-200); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--navy-900);
  letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--ink-100);
  color: var(--ink-700);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1;
  transition: background var(--dur-base), color var(--dur-base);
}
.faq details[open] summary::after {
  content: "–";
  background: var(--red-500);
  color: #fff;
}
.faq details > p {
  padding: 0 0 20px;
  color: var(--ink-700);
  font-size: 0.9375rem;
  line-height: 1.65;
  max-width: 62ch;
}

/* ==========================================================================
   Oficinas
   ========================================================================== */

.office { background: #fff; }
.office__city { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.office__city::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red-500);
}
.office__city h3, .office__city h4 { font-size: 1rem; font-weight: 600; color: var(--navy-900); }
.office__address { font-size: 0.8125rem; color: var(--ink-500); line-height: 1.5; margin-bottom: 8px; }
.office__phone { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--navy-800); font-weight: 600; }
.office__managers { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--ink-100); }
.office__managers h4, .office__managers h5 {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: 10px;
}
.office__manager { margin-bottom: 10px; }
.office__manager strong { display: block; font-size: 0.8125rem; font-weight: 600; color: var(--navy-900); line-height: 1.3; }
.office__manager a { display: block; font-size: 0.75rem; color: var(--ink-500); }
.office__manager a.mono { color: var(--navy-800); font-weight: 600; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { background: var(--navy-900); color: #fff; padding: 72px 0 32px; }
.site-footer a { color: rgba(255, 255, 255, 0.82); transition: color var(--dur-fast); }
.site-footer a:hover { color: #fff; }
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.site-footer h3 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 16px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; font-size: 0.9375rem; }
/* Oficinas dentro del footer: mismo marcado que antes, en versión oscura. */
.site-footer__offices {
  padding-top: 40px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.office--footer { background: transparent; border: 0; padding: 0; }
.office--footer .office__city h4 { color: #fff; }
.office--footer .office__address { color: rgba(255, 255, 255, 0.55); }
.office--footer .office__phone { color: rgba(255, 255, 255, 0.9); }
.office--footer .office__managers { border-top-color: rgba(255, 255, 255, 0.12); }
.office--footer .office__managers h5 { color: rgba(255, 255, 255, 0.45); }
.office--footer .office__manager strong { color: #fff; }
.office--footer .office__manager a { color: rgba(255, 255, 255, 0.6); }
.office--footer .office__manager a.mono { color: rgba(255, 255, 255, 0.85); }
.office--footer .office__manager a:hover { color: #fff; }

.site-footer__legal {
  padding-top: 28px;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
}
.site-footer__certs { display: flex; gap: 16px; align-items: center; margin-top: 20px; }
.site-footer__certs img { height: 56px; width: auto; }

/* ==========================================================================
   Flotantes
   ========================================================================== */

.whatsapp-float {
  position: fixed;
  bottom: 24px; left: 24px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  z-index: 40;
  transition: transform var(--dur-base) var(--ease-out);
}
.whatsapp-float:hover { transform: scale(1.08); }

/* ==========================================================================
   Islas React — placeholder mientras hidratan
   ========================================================================== */

.island-placeholder {
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-2xl);
  background: var(--ink-50);
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-400);
  font-size: 0.9375rem;
}
.island-noscript {
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  background: var(--ink-50);
  padding: 24px;
  color: var(--ink-700);
}

/* ==========================================================================
   Accesibilidad
   ========================================================================== */

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--navy-900);
  color: #fff;
  border-radius: 0 0 var(--radius-md) 0;
}
.skip-link:focus { left: 0; top: 0; }

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

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1100px) {
  .hero__grid { grid-template-columns: 1fr 420px; gap: 40px; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 960px) {
  .section { padding: 72px 0; }
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .grid--split, .grid--split-alt { grid-template-columns: 1fr; gap: 36px; }
  .grid--4 { grid-template-columns: 1fr 1fr; }
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .site-nav { display: none; }
  .nav-toggle { display: flex; }
  .flow__row { grid-template-columns: 1fr; }
  .flow__arrow { transform: rotate(90deg); }
}

/* ---- Cabecera en pantallas angostas ----------------------------------------
   El teléfono debe seguir accesible sin scroll (lo exige el QA de mercadeo),
   pero el número completo no cabe junto al logo y al botón en 360 px. Por
   debajo de 520 px se deja solo el icono, que sigue siendo un enlace tel:. */
@media (max-width: 520px) {
  .site-header__inner { gap: 12px; padding: 12px 16px; }
  .site-header__logo img { height: 30px; }
  .site-header__phone span { display: none; }
  .site-header__phone {
    width: 40px; height: 40px; justify-content: center;
    border: 1px solid var(--ink-200); border-radius: var(--radius-md);
  }
  .site-header__actions { gap: 8px; }
  .site-header__actions .btn { padding: 9px 12px; font-size: 0.8125rem; }
}

/* El widget de voz de terceros se declara a 514 px y arrastraba scroll
   horizontal en móvil. No podemos tocar su interior, pero sí acotar el host. */
elevenlabs-convai {
  max-width: 100vw;
  overflow: hidden;
}

@media (max-width: 700px) {
  .metrics__grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .metrics__item + .metrics__item { border-left: none; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .price-list li { flex-direction: column; align-items: flex-start; gap: 6px; }
  .whatsapp-float { width: 52px; height: 52px; bottom: 16px; left: 16px; }
}
