﻿/* ====================================================================
   ASPharma — conversion.css
   Estilos de conversión y lead generation
   Carga DESPUÉS de design-system.css. Solo usa var(--color-*) de main.css.
   NUNCA redefine :root ni modifica main.css / design-system.css.
   ==================================================================== */

/* ══════════════════════════════════════════════════════════════════════
   1. STICKY CTA BAR
   ══════════════════════════════════════════════════════════════════════ */

.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-overlay);
  background-color: var(--content-heading);
  border-top: 1px solid rgba(var(--content-on-dark-rgb), 0.1);
  padding: 0.875rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  box-shadow: 0 -4px 20px rgba(var(--brand-primary-rgb), 0.25);
  animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.sticky-cta__text {
  color: rgba(var(--content-on-dark-rgb), 0.85);
  font-size: var(--text-body);
  font-weight: var(--font-weight-medium);
  flex: 1;
  text-align: right;
}

.sticky-cta__btn {
  flex-shrink: 0;
  font-size: var(--text-body);
  padding: 0.625rem 1.25rem;
  min-height: 40px;
}

.sticky-cta__close {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: rgba(var(--content-on-dark-rgb), 0.6);
  font-size: var(--text-lead);
  background: none;
  border: none;
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.sticky-cta__close:hover {
  background-color: rgba(var(--content-on-dark-rgb), 0.1);
  color: #fff;
}

/* Mobile: full width */
@media (max-width: 767px) {
  .sticky-cta {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .sticky-cta__text {
    text-align: center;
    flex: 1 1 100%;
    font-size: var(--text-small);
  }

  .sticky-cta__btn {
    flex: 1;
  }
}

/* Desktop: max 480px, alineado a la derecha */
@media (min-width: 768px) {
  .sticky-cta {
    left: auto;
    right: 1.5rem;
    bottom: 1.5rem;
    max-width: 480px;
    border-radius: 0.75rem;
    border: 1px solid rgba(var(--content-on-dark-rgb), 0.1);
  }

  .sticky-cta__text {
    text-align: left;
  }
}

/* ══════════════════════════════════════════════════════════════════════
   5. LEAD MAGNET MODAL
   ══════════════════════════════════════════════════════════════════════ */

@keyframes modalIn {
  from { transform: scale(0.9) translateY(20px); opacity: 0; }
  to   { transform: scale(1)   translateY(0);    opacity: 1; }
}

.lead-magnet-modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.lead-magnet-modal__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(var(--brand-primary-rgb), 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.lead-magnet-modal__card {
  position: relative;
  z-index: 1;
  background: var(--surface-page);
  border-radius: 1rem;
  padding: 2.5rem 2rem;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 24px 64px rgba(var(--brand-primary-rgb), 0.3);
  animation: modalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lead-magnet-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--content-body);
  font-size: var(--text-subhead);    /* 20px — era 1.25rem (M1) */
  background: var(--surface-muted);
  border: none;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.lead-magnet-modal__close:hover {
  background-color: var(--border-subtle);
}

.lead-magnet-modal__icon {
  font-size: var(--text-glyph-md);   /* 32px — era 2rem (M1) */
  margin-bottom: 0.75rem;
  display: block;
}

.lead-magnet-modal__title {
  font-family: var(--font-heading);
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  font-weight: var(--font-weight-heading);
  color: var(--content-heading);
  margin-bottom: 0.5rem;
}

.lead-magnet-modal__body {
  font-size: var(--text-base);
  color: var(--content-body);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.lead-magnet-form .form-group {
  position: relative;
  margin-bottom: 1rem;
}

.lead-magnet-form .form-group input {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 1rem;
  border: 1.5px solid var(--border-subtle);
  border-radius: 0.5rem;
  font-size: var(--text-base);
  background: var(--surface-page);
  transition: border-color var(--transition-fast);
}

.lead-magnet-form .form-group input:focus-visible {
  outline: none;
  box-shadow: none;
  border-width: 2px;
  border-color: var(--brand-primary);
}

.lead-magnet-form .form-group label {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: var(--text-base);
  color: var(--content-body);
  pointer-events: none;
  transition: top var(--transition-fast), font-size var(--transition-fast), color var(--transition-fast);
  background: var(--surface-page);
  padding: 0 0.25rem;
}

.lead-magnet-form .form-group input:not(:placeholder-shown) + label,
.lead-magnet-form .form-group input:focus + label {
  top: 0;
  font-size: var(--text-caption);
  color: var(--brand-accent-hover);
}

.lead-magnet-form .btn {
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
}

.form-trust-microcopy {
  font-size: var(--text-caption);
  color: var(--content-body);
  text-align: center;
  margin-top: 0.75rem;
}

.lead-magnet-success {
  text-align: center;
  padding: 1rem 0;
}

.lead-magnet-success__icon {
  font-size: var(--text-glyph-lg);   /* 40px — era 2.5rem (M1) */
  margin-bottom: 0.75rem;
  display: block;
}

.lead-magnet-success__title {
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  font-weight: var(--font-weight-heading);
  color: var(--content-heading);
  margin-bottom: 0.5rem;
}

.lead-magnet-success__text {
  font-size: var(--text-base);
  color: var(--content-body);
}

.lead-magnet-error {
  font-size: var(--text-small);
  color: var(--state-error);
  margin-top: 0.5rem;
  text-align: center;
}

/* ══════════════════════════════════════════════════════════════════════
   6. FORM TRUST BAR
   ══════════════════════════════════════════════════════════════════════ */

.form-trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  padding: 0.75rem 1rem;
  background: var(--brand-accent-soft);
  border: 1px solid var(--brand-accent-soft);
  border-radius: 0.5rem;
  margin-bottom: 1.25rem;
}

.form-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4375rem;
  font-size: var(--text-small);
  font-weight: var(--font-weight-medium);
  color: var(--brand-accent-hover);
  white-space: nowrap;
}

.form-trust-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
}

/* ══════════════════════════════════════════════════════════════════════
   7. FORM SUCCESS ENRIQUECIDO
   ══════════════════════════════════════════════════════════════════════ */

.form-success {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--surface-page);
  border-radius: 1rem;
  border: 1px solid var(--brand-accent-soft);
}

.form-success__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--brand-accent);
  margin: 0 auto 1.25rem;
}

.form-success__title {
  font-family: var(--font-heading);
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  font-weight: var(--font-weight-heading);
  color: var(--content-heading);
  margin-bottom: 0.75rem;
}

.form-success__body {
  font-size: var(--text-base);
  color: var(--content-body);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.success-steps {
  text-align: left;
  max-width: 380px;
  margin: 0 auto 1.5rem;
  counter-reset: step-counter;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.success-steps li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: var(--text-base);
  color: var(--content-body);
  counter-increment: step-counter;
}

.success-steps li::before {
  content: counter(step-counter);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand-accent);
  color: #fff;
  font-family: var(--font-heading);
  font-size: var(--text-caption);
  font-weight: var(--font-weight-heading);
}

.form-success .btn {
  margin-top: 0.5rem;
}

/* ══════════════════════════════════════════════════════════════════════
   8. FORM IDLE HINT
   ══════════════════════════════════════════════════════════════════════ */

.form-idle-hint {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--brand-accent-soft);
  border: 1px solid var(--brand-accent-soft);
  border-radius: 0.5rem;
  margin-top: 0.75rem;
  font-size: var(--text-small);
  color: var(--brand-accent-hover);
  animation: fadeIn 0.4s ease;
}

.form-idle-hint a {
  color: var(--brand-accent-hover);
  font-weight: var(--font-weight-subhead);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-idle-hint a:hover {
  color: var(--brand-accent-deep);   /* #6B5320 — era --brand-accent (2.35:1) */
}

/* ══════════════════════════════════════════════════════════════════════
   9. FORM PROGRESS HINT
   ══════════════════════════════════════════════════════════════════════ */

.form-progress-hint {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-overlay);
  background: var(--content-heading);
  color: #fff;
  font-size: var(--text-body);
  font-weight: var(--font-weight-medium);
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  box-shadow: 0 8px 24px rgba(var(--brand-primary-rgb), 0.3);
  white-space: nowrap;
  animation: fadeIn 0.3s ease;
  pointer-events: none;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateX(-50%) translateY(8px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ══════════════════════════════════════════════════════════════════════
   10. NAV CTA — Activar en desktop
   ══════════════════════════════════════════════════════════════════════ */

@media (min-width: 1024px) {
  .nav__links {
    display: flex;
  }

  .nav__cta {
    display: inline-flex;
  }
}

/* Pulso sutil cuando scroll > 200px */
.nav__cta--prominent {
  animation: navCtaPulse 2.5s ease-in-out infinite;
}

@keyframes navCtaPulse {
  0%, 100% { box-shadow: var(--shadow-cta); }
  50%       { box-shadow: 0 0 0 6px rgba(var(--brand-primary-rgb), 0.2), var(--shadow-cta); }
}

/* Active state en nav links */
.nav__link.is-active {
  color: #fff;
}

.nav__link.is-active::after {
  transform: scaleX(1);
}

/* ══════════════════════════════════════════════════════════════════════
   11. URGENCY SIGNALS
   ══════════════════════════════════════════════════════════════════════ */

.hero__urgency-signal {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: var(--text-small);
  font-weight: var(--font-weight-subhead);
  color: var(--brand-accent);
  margin-bottom: 0.75rem;
}

/* Dot bronce — reemplaza el emoji ⚡. Hereda el dorado del texto vía
   currentColor, con halo suave (mismo patrón que .final-cta__urgency-dot). */
.hero__urgency-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(var(--brand-accent-rgb), 0.18);
}

.hero__cta-microcopy {
  font-size: var(--text-caption);
  color: rgba(var(--content-on-dark-rgb), 0.55);
  margin-top: 0.375rem;
}

.final-cta__urgency {
  font-size: var(--text-base);
  font-weight: var(--font-weight-subhead);
  color: var(--brand-accent);
  margin-bottom: 1rem;
  opacity: 0.9;
}

/* UTM badge */
.hero__utm-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: var(--text-caption);
  font-weight: var(--font-weight-subhead);
  color: var(--brand-primary-hover);
  background: rgba(var(--brand-primary-rgb), 0.12);
  border: 1px solid rgba(var(--brand-primary-rgb), 0.25);
  padding: 0.375rem 0.875rem;
  border-radius: 2rem;
  margin-bottom: 0.75rem;
}

/* Team availability indicator */
.team-availability {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-small);
  color: var(--content-body);
  margin-top: 1rem;
  padding: 0.625rem 0.875rem;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: 0.5rem;
}

.team-availability__status {
  font-weight: var(--font-weight-subhead);
  color: var(--content-heading);
}

.team-availability__hours {
  font-size: var(--text-caption);
  color: var(--content-body);
}

/* ══════════════════════════════════════════════════════════════════════
   12. LEAD MAGNET TRIGGER BUTTON
   ══════════════════════════════════════════════════════════════════════ */

.lead-magnet-trigger {
  font-size: var(--text-body);
  padding: 0.625rem 1.25rem;
  min-height: 40px;
}


/* ══════════════════════════════════════════════════════════════════════
   14. REDUCED MOTION
   ══════════════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  .nav__cta--prominent {
    animation: none;
  }

  .sticky-cta {
    animation: none;
  }

  .lead-magnet-modal__card {
    animation: none;
  }

  .form-idle-hint {
    animation: none;
  }

  .form-progress-hint {
    animation: none;
  }
}

/* ══════════════════════════════════════════════════════════════════════
   OVERRIDE OUTLINE GLOBAL — formulario Luxury (B modal)
   ──────────────────────────────────────────────────────────────────────
   main.css aplica un outline 2px brand-accent a todos los inputs/select/
   textarea en :focus-visible. En Luxury ese accent es #8B6E2E gold cálido, que
   dibuja un "borde dorado" alrededor de cada campo y rompe el lenguaje
   editorial (donde el indicador de foco es solo el underline navy).
   Este bloque elimina ese outline solo en los campos Luxury (.cl-*),
   preservando el outline global del resto del proyecto (a11y intacto).
   ══════════════════════════════════════════════════════════════════════ */

.cl-input:focus,
.cl-input:focus-visible,
.cl-input--big:focus,
.cl-input--big:focus-visible,
.cl-input--mid:focus,
.cl-input--mid:focus-visible,
.cl-textarea:focus,
.cl-textarea:focus-visible {
  outline: none;
}

/* ══════════════════════════════════════════════════════════════════════
   16. CONTACT — LUXURY VARIANTS (A: full-page · B: centered modal)
   "Editorial luxury" — stage cream, sidebar navy, hairline bronze,
   indigo CTA con icon-circle, Nunito Sans + tracking uppercase para mono-feel.
   Identidad visual única del proyecto (Luxury).
   ══════════════════════════════════════════════════════════════════════ */

.cl-section {
  /* Tokens locales — alineados al lenguaje Luxury Camiseta v2 sin redefinir :root */
  --cl-page:          #FAF9F5;
  --cl-paper:         #FFFFFF;
  --cl-navy-deep:     #101935;
  --cl-navy:          #1B2A4A;
  --cl-bronze:        #6B5320;
  --cl-bronze-lg:     #8B6E2E;
  --cl-bronze-bright: #C8A45D;
  --cl-indigo:        #6161FF;
  --cl-indigo-hover:  #4A4AE6;
  --cl-body:          #1a1c1c;
  --cl-muted:         #41474e;
  --cl-cream:         #F0E8D6;
  --cl-cream-muted:   rgba(240, 232, 214, 0.82);
  --cl-rule:          rgba(200, 164, 93, 0.18);
  --cl-rule-strong:   rgba(200, 164, 93, 0.32);
  --cl-sidebar-rule:  rgba(200, 164, 93, 0.22);
  --cl-shadow-cta:    0 8px 24px -8px rgba(0, 0, 0, 0.35);
  --cl-shadow-modal:  0 40px 100px -20px rgba(16, 25, 53, 0.6),
                      0 0 0 1px rgba(16, 25, 53, 0.08);
  --cl-shadow-success:0 32px 80px -16px rgba(16, 25, 53, 0.55);

  font-family: var(--font-body);
  background: var(--cl-page);
  color: var(--cl-body);
}

/* Nota: el sistema de themes fue eliminado y Luxury es la identidad
   única del proyecto. Las secciones Luxury (.cl-*) se renderizan
   siempre — antes había un display:none condicional por data-theme. */

/* ─── Helper: palabra clave bronce en H1 ─── */
.cl-key {
  color: var(--cl-bronze-lg);
  font-weight: 500;
  /* Voz Luxury — palabra-clave en bronce itálica, consistente con
     .section-header__title-key y .faq-luxury__title-key. */
  font-style: italic;
}

.cl-stage__hairline {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--cl-bronze);
  z-index: 1;
}

/* Topbar (eyebrow · capítulo · counter · progress) */
.cl-stage__topbar {
  padding: 16px 48px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--cl-rule);
  flex-shrink: 0;
  gap: 16px;
}

.cl-stage__topbar-left {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.cl-stage__topbar-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cl-bronze);
  flex-shrink: 0;
}

.cl-stage__topbar-eyebrow {
  font-size: var(--text-eyebrow);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cl-bronze);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.cl-stage__topbar-eyebrow[data-topbar-mode="confirm"] {
  color: var(--cl-navy);
}

.cl-stage__topbar-eyebrow[data-topbar-mode="success"] {
  color: var(--cl-bronze);
}

.cl-stage__topbar-sep {
  width: 1px;
  height: 12px;
  background: var(--cl-rule-strong);
  flex-shrink: 0;
}

.cl-stage__topbar-chapter {
  font-size: var(--text-eyebrow);
  color: var(--cl-muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cl-stage__topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.cl-stage__counter {
  font-size: var(--text-caption);
  color: var(--cl-muted);
  letter-spacing: 0.10em;
  font-variant-numeric: tabular-nums;
}

/* ─── Progress ring + counter (Form B modal) ──────────────────────
   Donut con arco bronce que se llena según el avance + counter "1/8".
   El arco se dibuja con conic-gradient via --cl-ring-pct (CSS variable
   que el JS actualiza en cada step).
─────────────────────────────────────────────────────────────── */
.cl-ring-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.cl-ring {
  --cl-ring-pct: 12.5; /* default 1/8 — JS actualiza vía style.setProperty */
  position: relative;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background:
    conic-gradient(
      var(--cl-bronze) calc(var(--cl-ring-pct) * 1%),
      rgba(200, 164, 93, 0.22) 0
    );
  display: grid;
  place-items: center;
  transition: background 0.35s ease;
  flex-shrink: 0;
}

.cl-ring::after {
  content: "";
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--cl-page);
}

.cl-counter__sep {
  color: var(--cl-muted);
  margin: 0 0.1em;
}

/* ─── Form / Screens ─── */
.cl-modal__form {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.cl-screens {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.cl-honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.cl-screen {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(24px);
  pointer-events: none;
  transition:
    opacity 0.32s ease-out,
    transform 0.32s ease-out;
  overflow-y: auto;
  /* Scrollbar discreto Luxury (cream + bronce) — solo visible cuando el
     contenido requiere scroll (ej. resumen con muchos campos en step 9
     o viewport muy comprimido). */
  scrollbar-width: thin;
  scrollbar-color: var(--cl-rule-strong) transparent;
}

.cl-screen::-webkit-scrollbar {
  width: 6px;
}

.cl-screen::-webkit-scrollbar-track {
  background: transparent;
}

.cl-screen::-webkit-scrollbar-thumb {
  background: var(--cl-rule-strong);
  border-radius: 3px;
}

.cl-screen::-webkit-scrollbar-thumb:hover {
  background: var(--cl-bronze);
}

.cl-screen.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.cl-screen.is-leaving-fwd {
  opacity: 0;
  transform: translateX(-24px);
}

.cl-screen.is-leaving-back {
  opacity: 0;
  transform: translateX(24px);
}

.cl-screen.is-entering-back {
  transform: translateX(-24px);
}

.cl-screen.is-shaking {
  animation: clShake 0.35s ease-in-out;
}

@keyframes clShake {
  0%, 100% { transform: translateX(0); }
  25%       { transform: translateX(-6px); }
  50%       { transform: translateX(6px); }
  75%       { transform: translateX(-3px); }
}

.cl-screen__inner {
  /* Padding UNIFICADO en todos los kinds — editorial baseline.
     Top reducido a clamp(10-16px) para acercar el eyebrow romano al
     topbar; bottom mantiene el aire para el footer. */
  padding: clamp(10px, 1.2vw, 16px) clamp(36px, 4vw, 56px) clamp(18px, 2vw, 28px);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

/* Override sólo para review (grid 2-cols, no aplica el rhythm del field) */
.cl-screen[data-kind="review"] .cl-screen__inner {
  padding-bottom: clamp(12px, 1.5vw, 18px);
}

.cl-screen__head {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex-shrink: 0;
  /* Altura MÍNIMA — se expande si el subtítulo necesita 2 líneas. Reducida
     respecto al diseño anterior para acercar los inputs al subtitle:
     el aire de 16vh dejaba "el campo flotando" a media pantalla, y en
     el paso review provocaba que el error de consent quedara abajo del
     viewport. */
  min-height: clamp(80px, 10vh, 110px);
}

.cl-screen__eyebrow {
  font-size: var(--text-eyebrow);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cl-bronze);
  /* Respiro entre el número del paso y la pregunta — todo el bloque
     (pregunta + subtitle + respuesta) baja sin mover el eyebrow. */
  margin-bottom: 22px;
  font-variant-numeric: tabular-nums;
}

.cl-screen[data-kind="cards"] .cl-screen__eyebrow {
  margin-bottom: 18px;
}

.cl-screen__question {
  margin: 0;
  /* Tamaño UNIFICADO across todos los kinds — editorial baseline.
     Antes había 5 escalas distintas (text 48max, cards 28max, etc).
     Ahora una sola voz tipográfica en todo el flow. */
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.022em;
  color: #000;
  text-wrap: balance;
}

/* Modificadores --pair, --phone, --cards, --textarea, --review se
   eliminaron — todos heredan el tamaño unificado de arriba.
   Las clases siguen presentes en el HTML por el partial PHP, pero
   no agregan estilo (no hace falta tocar PHP). */

.cl-screen__subtitle {
  margin: 12px 0 0;
  /* Tamaño UNIFICADO — eliminado override de cards (era 12.5px) */
  font-size: var(--text-body);
  line-height: 1.5;
  color: var(--cl-muted);
  max-width: 640px;
  /* Tope visual a 3 líneas. Combinado con .cl-screen__head min-height,
     permite copy largos sin recorte agresivo. */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cl-screen__body {
  /* Sin margin-top — el header tiene min-height fija que provee la
     separación. El field interno usa su propio margin-top consistente. */
  margin-top: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* Review usa grid 2-cols, no aplica el rhythm de field */
.cl-screen[data-kind="review"] .cl-screen__body {
  flex: 1;
  min-height: 0;
}

/* ── Errores anclados al pie del modal — patron Linear / Stripe ──
   El field/wrap pasa a flex column con flex:1 para llenar el body;
   el error (último hijo) usa margin-top:auto para empujarse al fondo,
   quedando justo encima del footer del modal. Resultado: ubicación
   visualmente consistente en todos los pasos, sin importar el largo
   del input (text, cards, textarea).
   Review queda fuera — su consent error vive dentro de .cl-consent
   que ya está al final del body de manera natural. */
.cl-screen__body > .cl-field,
.cl-screen__body > .cl-cards-wrap {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.cl-screen__body > .cl-field > .cl-error,
.cl-screen__body > .cl-cards-wrap > .cl-error {
  margin-top: auto;
}

/* ─── Field común ─── */
.cl-field {
  max-width: 760px;
  /* Margin-top aumentado para alinear visualmente con el inicio de las
     cards en otras pantallas (text/pair/phone/textarea no tienen el
     equivalente del .cl-cards-meta "ATAJOS", así que compensamos con
     más respiración antes del field). */
  margin-top: clamp(28px, 4vh, 48px);
  display: flex;
  flex-direction: column;
}

/* Cards-wrap arranca más arriba — el .cl-cards-meta ya añade su altura
   propia, evitando doble margen. */
.cl-cards-wrap {
  margin-top: clamp(8px, 1.5vh, 18px);
}

/* ─── Error message ─── */
.cl-error {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  padding: 10px 14px 10px 12px;
  background: rgba(154, 45, 45, 0.06);
  border: 1px solid rgba(154, 45, 45, 0.25);
  border-left: 3px solid rgb(154, 45, 45);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 500;
  color: rgb(154, 45, 45);
  letter-spacing: 0;
  line-height: 1.4;
  animation: clErrorIn 0.25s ease-out;
}

.cl-error::before {
  content: "!";
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgb(154, 45, 45);
  color: var(--cl-paper);
  font-weight: 700;
  font-size: var(--text-eyebrow);
  flex-shrink: 0;
  line-height: 1;
}

.cl-error[hidden] {
  display: none !important;
}

@keyframes clErrorIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .cl-error {
    animation: none;
  }
}

.cl-field__tag {
  font-size: var(--text-eyebrow);
  font-weight: 500;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--cl-navy);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color 0.25s ease;
}

/* Cadena visual al enfocar: eyebrow del label tinta a bronce
   mientras hay foco dentro del field, conectando con el underline */
.cl-field:focus-within .cl-field__tag {
  color: var(--cl-bronze);
}

.cl-field:focus-within .cl-tag-badge {
  color: var(--cl-bronze);
}

.cl-field__tag--with-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cl-field__tag--secondary {
  margin-top: 18px;
}

.cl-tag-badge {
  font-size: var(--text-eyebrow);
  color: var(--cl-muted);
  letter-spacing: 0.14em;
  font-variant-numeric: tabular-nums;
}

.cl-field__sep {
  height: 16px;
}

/* Big input (text/email/phone) */
.cl-input {
  width: 100%;
  background: transparent;
  border: 0;
  outline: none;
  caret-color: var(--cl-bronze);
  font-family: var(--font-body);
  color: #000;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
}

.cl-input--big {
  font-size: var(--text-input-big);  /* 32px desktop / 24px ≤768px — era 32px (M1) */
  font-weight: 400;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--cl-rule-strong);
  transition: border-bottom-color 0.25s ease;
}

.cl-input--big:focus,
.cl-input--big:focus-visible,
.cl-input--big.is-filled {
  border-bottom-color: var(--cl-navy);
}

.cl-input--mid {
  font-size: var(--text-link-lg);
  font-weight: 400;
  padding-bottom: 12px;
  /* Mismo grosor 2px que el input principal — consistencia visual
     en todos los campos del flow. La diferencia entre primario y
     secundario se comunica por font-size, no por grosor de línea. */
  border-bottom: 2px solid var(--cl-rule-strong);
  transition: border-bottom-color 0.25s ease;
}

.cl-input--mid:focus,
.cl-input--mid:focus-visible,
.cl-input--mid.is-filled {
  border-bottom-color: var(--cl-navy);
}

.cl-input::placeholder {
  color: rgba(26, 28, 28, 0.30);
}

.cl-input[aria-invalid="true"] {
  border-bottom-color: rgb(154, 45, 45);
}

/* Field meta (state + count) */
.cl-field__meta {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.cl-field__meta-state {
  font-size: var(--text-eyebrow);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cl-muted);
  transition: color 0.2s ease;
}

.cl-field__meta-state.is-ok {
  color: var(--cl-bronze);
}

.cl-field__meta-count {
  font-size: var(--text-eyebrow);
  color: var(--cl-muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

/* Textarea */
.cl-textarea {
  width: 100%;
  /* Tamaño natural (~120px = rows=4 + padding). Sin flex:1 para que no
     se estire a todo el body cuando el padre .cl-field--textarea es
     flex:1 (necesario para anclar el error al pie). El usuario tipea
     mas alla del visible y el textarea scrollea internamente. */
  min-height: 120px;
  max-height: 200px;
  resize: none;
  font-size: var(--text-base);
  font-family: var(--font-body);
  color: #000;
  padding: 14px 0;
  border: none;
  border-top: 1px solid var(--cl-rule);
  border-bottom: 2px solid var(--cl-rule-strong);
  outline: none;
  background: transparent;
  caret-color: var(--cl-bronze);
  line-height: 1.6;
  transition: border-bottom-color 0.25s ease;
}

.cl-textarea:focus,
.cl-textarea.is-filled {
  border-bottom-color: var(--cl-navy);
}

.cl-textarea::placeholder {
  color: rgba(26, 28, 28, 0.30);
}

/* ─── CARDS ─── */
.cl-cards-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.cl-cards-meta {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}

.cl-cards-shortcuts {
  font-size: var(--text-eyebrow);
  color: var(--cl-muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.cl-cards {
  display: grid;
  gap: 6px;
  align-content: start;
}

.cl-cards[data-cols="2"] {
  grid-template-columns: repeat(2, 1fr);
}

.cl-cards[data-cols="3"] {
  grid-template-columns: repeat(3, 1fr);
}

.cl-card {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  text-align: left;
  cursor: pointer;
  background: var(--cl-paper);
  border: 1px solid var(--cl-rule);
  border-radius: 8px;
  font-family: var(--font-body);
  transition: border-color 0.15s ease, background-color 0.15s ease;
  /* Altura uniforme 68px — apenas por encima del 2-línea content:
     padding 16 + label 2-línea 32 + hint 14 + margin 1 = 63 → cabe
     en 68 sin forzar crecimiento. Cards 1-línea también quedan a 68
     gracias a min-height. Resultado: TODOS los cards exactamente 68. */
  min-height: 68px;
}

@media (hover: hover) {
  .cl-card:hover {
    border-color: var(--cl-rule-strong);
    background: rgba(107, 80, 0, 0.025);
  }
}

.cl-card:focus-visible {
  outline: 2px solid var(--cl-bronze);
  outline-offset: 2px;
}

.cl-card[aria-checked="true"] {
  border-color: var(--cl-bronze);
  background: rgba(107, 80, 0, 0.05);
}

.cl-card__shortcut {
  font-size: var(--text-eyebrow);
  letter-spacing: 0.10em;
  color: var(--cl-muted);
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--cl-rule);
  border-radius: 4px;
  background: transparent;
  font-variant-numeric: tabular-nums;
  transition: color 0.15s, border-color 0.15s, background-color 0.15s;
  flex-shrink: 0;
}

.cl-card[aria-checked="true"] .cl-card__shortcut {
  color: var(--cl-bronze);
  border-color: var(--cl-bronze);
  background: rgba(107, 80, 0, 0.06);
}

.cl-card__copy {
  min-width: 0;
}

.cl-card__label {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: var(--text-body);
  font-weight: 400;
  color: #000;
  line-height: 1.2;
  transition: font-weight 0.15s;
}

.cl-card[aria-checked="true"] .cl-card__label {
  font-weight: 500;
}

.cl-card__hint {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: var(--text-eyebrow);
  color: var(--cl-muted);
  margin-top: 2px;
  line-height: 1.3;
}

.cl-card__check {
  width: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--cl-bronze);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.cl-card[aria-checked="true"] .cl-card__check {
  opacity: 1;
}

/* ─── REVIEW ─── */
.cl-review {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 48px;
  /* Sin height fixed ni overflow hidden — el contenido puede crecer
     naturalmente y el padre (.cl-screen con overflow-y:auto) muestra
     scrollbar si el resumen excede la altura disponible. */
  align-items: start;
  /* Línea de cierre full-width: cierra el detalle de columnas de extremo a
     extremo (incluida la columna izquierda), no solo bajo las filas. La
     última fila pierde su propio border-bottom para no duplicar el trazo. */
  border-bottom: 1px solid var(--cl-rule);
}

.cl-review__col {
  min-width: 0;
}

.cl-review__col--lead {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cl-review__desc-card {
  all: unset;
  cursor: pointer;
  display: block;
  width: 100%;
  padding: 14px 16px;
  background: rgba(0, 35, 73, 0.04);
  border-left: 3px solid var(--cl-navy);
  border-radius: 0 6px 6px 0;
  transition: background 0.15s;
}

.cl-review__desc-card:hover,
.cl-review__desc-card:focus-visible {
  background: rgba(0, 35, 73, 0.07);
}

.cl-review__desc-card:focus-visible {
  outline: 2px solid var(--cl-navy);
  outline-offset: 2px;
}

.cl-review__desc-head {
  font-size: var(--text-eyebrow);
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--cl-navy);
  font-weight: 500;
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
  font-variant-numeric: tabular-nums;
}

.cl-review__edit {
  color: var(--cl-bronze-bright);
}

.cl-review__desc-body {
  margin: 0;
  font-size: var(--text-small);
  line-height: 1.55;
  color: var(--cl-body);
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cl-review__hairline {
  border-top: 1.5px solid var(--cl-bronze);
  margin-bottom: 0;
}

.cl-review__row {
  all: unset;
  cursor: pointer;
  width: 100%;
  display: grid;
  grid-template-columns: 150px 1fr 28px;
  padding: 10px 0;
  border-bottom: 1px solid var(--cl-rule);
  align-items: baseline;
  gap: 12px;
  transition: background 0.15s;
}

.cl-review__row:last-child {
  border-bottom: none;
}

.cl-review__row:hover {
  background: rgba(0, 35, 73, 0.02);
}

.cl-review__row:focus-visible {
  outline: 2px solid var(--cl-navy);
  outline-offset: 2px;
}

.cl-review__row-label {
  font-size: var(--text-eyebrow);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cl-bronze);
  font-variant-numeric: tabular-nums;
}

.cl-review__row-value {
  font-size: var(--text-body);
  color: #000;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cl-review__row-arrow {
  text-align: right;
  font-size: var(--text-caption);   /* 12px — era 10px, bajo el mínimo legible (A1) */
  color: var(--cl-bronze-bright);
  letter-spacing: 0.08em;      /* era 0.10em — un punto menos de tracking */
}

/* ── Consentimiento (checkbox en la pantalla de review) ── */
.cl-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  /* Sin regla superior, separada apenas de la línea de cierre del review. */
  margin-top: 18px;
}

.cl-consent__check {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--cl-bronze);
  cursor: pointer;
}

.cl-consent__check:focus-visible {
  outline: 2px solid var(--cl-bronze);
  outline-offset: 2px;
  border-radius: 3px;
}

.cl-consent__label {
  font-size: var(--text-small);
  line-height: 1.55;
  color: var(--cl-navy);
  cursor: pointer;
}

.cl-consent__link {
  color: var(--cl-bronze);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(107, 83, 32, 0.4);
  transition: text-decoration-color var(--transition-fast, 150ms ease);
}

.cl-consent__link:hover {
  text-decoration-color: var(--cl-bronze);
}

/* Hereda todo el styling de .cl-error (background, border-left rojo,
   pseudo ::before con "!", animación clErrorIn). Solo agrega el
   grid-column para que ocupe toda la fila del bloque consent. */
.cl-consent__error {
  grid-column: 1 / -1;
}

/* Checkbox en rojo cuando el error está visible — refuerza visualmente
   qué hay que tildar. Usa :has() del wrapper. */
.cl-consent:has(.cl-consent__error:not([hidden])) .cl-consent__check {
  outline: 2px solid rgb(154, 45, 45);
  outline-offset: 1px;
  border-radius: 2px;
}

/* ── Cloudflare Turnstile widget (MAN-002) ── */
.cl-turnstile {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cl-turnstile__error {
  margin: 0;
  padding: 8px 12px;
  background: rgba(154, 45, 45, 0.06);
  border: 1px solid rgba(154, 45, 45, 0.25);
  border-radius: 6px;
  color: rgb(154, 45, 45);
  font-size: var(--text-caption);
  font-weight: 500;
}

/* ─── SUCCESS SCREEN ─── */
.cl-screen--success .cl-screen__inner {
  padding: 60px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cl-success {
  max-width: 720px;
  width: 100%;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.cl-success__eyebrow {
  font-size: var(--text-eyebrow);
  color: var(--cl-bronze);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
}

.cl-success__title {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 34px) !important;
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: #000;
}

.cl-success__body {
  margin: 0;
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--cl-muted);
  max-width: 580px;
}

.cl-success__body strong {
  color: var(--cl-body);
  font-weight: 500;
}

.cl-success__meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 24px;
  padding-top: 18px;
  border-top: 1px solid var(--cl-rule);
  font-size: var(--text-caption);
  color: var(--cl-muted);
  max-width: 520px;
}

.cl-success__meta-key {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

.cl-success__meta-val {
  color: var(--cl-body);
}

.cl-success__meta-val--mono {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.cl-success__actions {
  display: flex;
  gap: 14px;
  margin-top: 8px;
  flex-wrap: wrap;
}

/* ─── BUTTONS ─── */
.cl-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 9999px;
  font-size: var(--text-small);
  font-weight: 500;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.cl-btn--navy {
  background: var(--cl-navy);
  color: #fff;
}

.cl-btn--navy:hover {
  background: #00305f;
}

.cl-btn--ghost {
  background: transparent;
  color: var(--cl-body);
  border: 1px solid var(--cl-rule-strong);
}

.cl-btn--ghost:hover {
  border-color: var(--cl-navy);
  color: var(--cl-navy);
}

/* ─── CTA primario (indigo + icon-circle a la derecha) ─── */
.cl-cta {
  display: inline-flex;
  align-items: center;
  flex-direction: row-reverse;
  gap: 12px;
  padding: 8px 24px 8px 8px;
  border-radius: 9999px;
  background: var(--cl-indigo);
  color: #fff;
  font-weight: 500;
  font-size: var(--text-body);
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  box-shadow: var(--cl-shadow-cta);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.cl-cta:hover:not(:disabled) {
  background: var(--cl-indigo-hover);
  transform: translateY(-1px);
  box-shadow: 0 12px 30px -8px rgba(97, 97, 255, 0.45);
}

.cl-cta:disabled,
.cl-cta[aria-disabled="true"] {
  background: rgba(97, 97, 255, 0.35);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.cl-cta:focus-visible {
  /* El .cl-cta primario es fondo indigo; un outline indigo casi no contrasta.
     Gold deep da contraste alto con el indigo (~7:1) y mantiene la
     identidad luxury del proyecto. */
  outline: 2px solid var(--cl-bronze-deep);
  outline-offset: 3px;
}

.cl-cta--lg {
  padding: 12px 32px 12px 12px;
  font-size: var(--text-base);
}

.cl-cta--submit-mode {
  background: var(--cl-navy);
}

.cl-cta--submit-mode:hover:not(:disabled) {
  background: #00305f;
  box-shadow: 0 12px 30px -8px rgba(0, 35, 73, 0.45);
}

.cl-cta__icon {
  width: 20px;
  height: 20px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.20);
  border-radius: 50%;
  box-sizing: content-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.cl-cta:hover:not(:disabled) .cl-cta__icon {
  transform: translateX(2px);
}

.cl-cta--lg .cl-cta__icon {
  width: 22px;
  height: 22px;
}

.cl-cta__label {
  white-space: nowrap;
}

/* Spinner para estado loading */
.cl-cta.is-loading .cl-cta__icon {
  position: relative;
}

.cl-cta.is-loading .cl-cta__icon svg {
  display: none;
}

.cl-cta.is-loading .cl-cta__icon::after {
  content: '';
  width: 12px;
  height: 12px;
  border: 1.5px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: clSpin 600ms linear infinite;
}

@keyframes clSpin {
  to { transform: rotate(360deg); }
}

/* ─── Nav button (back arrow) ─── */
.cl-nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 35, 73, 0.06);
  border: 1px solid var(--cl-rule);
  color: var(--cl-navy);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s, border-color 0.15s;
  flex-shrink: 0;
}

.cl-nav-btn:hover:not(:disabled) {
  background: rgba(0, 35, 73, 0.10);
  border-color: var(--cl-rule-strong);
}

.cl-nav-btn:focus-visible {
  outline: 2px solid var(--cl-navy);
  outline-offset: 2px;
}

.cl-nav-btn:disabled {
  color: rgba(0, 35, 73, 0.25);
  cursor: not-allowed;
}

/* ─── Footer interno del modal (back · hint · CTA) ─── */
.cl-modal__foot {
  padding: 14px 28px;
  border-top: 1px solid var(--cl-rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  gap: 16px;
  background: rgba(250, 249, 245, 0.6);
}

.cl-stage__foot-left,
.cl-stage__foot-right {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.cl-stage__foot-right {
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cl-stage__hint {
  font-size: var(--text-eyebrow);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cl-muted);
  white-space: nowrap;
}

/* ─── Submit error message ─── */
.cl-submit-error {
  margin: 0 56px 12px;
  padding: 12px 16px;
  background: rgba(154, 45, 45, 0.06);
  border: 1px solid rgba(154, 45, 45, 0.25);
  border-radius: 6px;
  color: rgb(154, 45, 45);
  font-size: var(--text-caption);
  font-weight: 500;
  text-align: center;
}

.cl-modal__form .cl-submit-error {
  margin: 0 28px 12px;
}

/* ══════════════════════════════════════════════════════════════════════
   FORM B PREVIEW SECTION (visible inline)
   ══════════════════════════════════════════════════════════════════════ */

.cl-section--b-preview {
  /* Padding ajustado al rhythm compacto del resto de las secciones —
     el card del preview queda más arriba al anclar desde el nav. */
  padding: clamp(1.5rem, 3.5vw, 3rem) 0;
  /* White paper en lugar de cream — crea pausa técnica entre el cream
     del FAQ Luxury (sección anterior) y el navy deep del final-CTA
     (sección siguiente). Sin esto, FAQ y preview consecutivos en cream
     se leen como una sola sección sin separación. */
  background: var(--surface-page);
}

.cl-preview {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 56px;
  background: var(--cl-paper);
  border: 1px solid var(--cl-rule);
  border-radius: 14px;
  box-shadow: 0 1px 0 rgba(200, 164, 93, 0.12);
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) auto;
  align-items: center;
  gap: 36px;
  position: relative;
  overflow: hidden;
}

.cl-preview::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--cl-bronze);
  border-radius: 14px 14px 0 0;
}

/* ─── Preview RICH (Form B con trust panel embebido) ─── */
.cl-preview-rich {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3.5rem) clamp(2rem, 4vw, 3rem);
  /* Card cream sobre bg white de la sección — destaca como "isla
     editorial" Luxury. Antes era white sobre cream y se confundía con
     el bg al cambiar la sección a white paper. */
  background: var(--cl-page);
  border: 1px solid var(--cl-rule);
  border-radius: 14px;
  box-shadow: 0 8px 24px -16px rgba(16, 25, 53, 0.12),
              0 1px 0 rgba(200, 164, 93, 0.12);
  position: relative;
  /* overflow:hidden recorta el ::before accent bar al border-radius. */
  overflow: hidden;
}

.cl-preview-rich::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--cl-bronze);
  border-radius: 14px 14px 0 0;
}

.cl-preview-rich__intro {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
  align-items: center;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.cl-preview-rich__intro .cl-preview__eyebrow {
  font-size: var(--text-eyebrow);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cl-bronze);
}

.cl-preview-rich__intro .cl-preview__title {
  margin: 0;
  font-size: clamp(26px, 3.6vw, 38px);  /* tope 38px — trust title spec v2.0 */
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: #000;
  text-wrap: balance;
}

.cl-preview-rich__intro .cl-preview__lead {
  margin: 0;
  font-size: var(--text-body);
  line-height: 1.55;
  color: var(--cl-muted);
  max-width: 580px;
}

.cl-preview-rich__cta-wrap {
  display: flex;
  justify-content: center;
  margin-top: clamp(1.75rem, 3.5vw, 2.5rem);
  padding-top: clamp(1.5rem, 3vw, 2rem);
  border-top: 1px solid var(--cl-rule);
}

/* ─── Trust Panel (variant: panel — horizontal grid, sobre cream) ─── */
.cl-trust-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}

.cl-trust-panel__intro {
  display: none; /* el preview-rich ya tiene su propia intro */
}

/* Steps section: layout horizontal en 3 columnas */
.cl-trust-panel__steps {
  position: relative;
  border-left: 3px solid var(--cl-navy);
  padding-left: clamp(1rem, 2vw, 1.5rem);
}

.cl-trust-panel__steps-title {
  font-size: var(--text-eyebrow);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cl-navy);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--cl-rule);
}

.cl-trust-panel__step {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--cl-rule);
}

.cl-trust-panel__step:last-of-type {
  border-bottom: 0;
}

.cl-trust-panel__step-num {
  font-size: var(--text-subhead);
  color: var(--cl-bronze-lg);
  line-height: 1;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.cl-trust-panel__step-title {
  font-size: var(--text-body);
  font-weight: 500;
  color: #000;
  margin-bottom: 3px;
}

.cl-trust-panel__step-text {
  margin: 0;
  font-size: var(--text-small);
  line-height: 1.5;
  color: var(--cl-muted);
}

/* Bottom: trust signals + team — apilados verticalmente en su columna */
.cl-trust-panel__bottom {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: rgba(200, 164, 93, 0.04);
  border: 1px solid var(--cl-rule);
  border-radius: 8px;
  padding: clamp(1rem, 2vw, 1.5rem);
}

.cl-trust-panel__trust {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cl-trust-panel__trust li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--text-body);
  color: var(--cl-body);
  font-weight: 500;
}

.cl-trust-panel__check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--cl-bronze-lg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--cl-bronze-lg);
  font-size: var(--text-caption);   /* 12px — era 10px; glyph ✓ decorativo dentro del círculo de 18px (A1) */
  flex-shrink: 0;
}

.cl-trust-panel__team {
  margin-top: 4px;
  padding: 12px 14px;
  background: var(--cl-paper);
  border: 1px solid var(--cl-rule);
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--text-small);
  color: var(--cl-body);
  font-weight: 500;
}

.cl-trust-panel__team-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #27d39b;
  box-shadow: 0 0 0 3px rgba(39, 211, 155, 0.20);
  flex-shrink: 0;
}

/* Mobile: panel apila a 1 columna */
@media (max-width: 768px) {
  .cl-trust-panel {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .cl-preview-rich {
    padding: clamp(1.75rem, 4vw, 2.25rem) clamp(1.25rem, 3vw, 1.75rem);
  }

  .cl-trust-panel__steps {
    border-left-width: 2px;
    padding-left: 1rem;
  }
}

.cl-preview__copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cl-preview__eyebrow {
  font-size: var(--text-eyebrow);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cl-bronze);
}

.cl-preview__title {
  margin: 0;
  font-size: clamp(28px, 3.6vw, 38px);  /* tope 38px — trust title spec v2.0 */
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: #000;
}

.cl-preview__lead {
  margin: 0;
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--cl-muted);
  max-width: 520px;
}

/* ══════════════════════════════════════════════════════════════════════
   FORM B MODAL (full-viewport)
   ══════════════════════════════════════════════════════════════════════ */

.cl-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  font-family: var(--font-body);
  /* Hereda los tokens del tema; los redeclaramos por si el modal vive
     fuera del scope de .cl-section. */
  --cl-page:          #FAF9F5;
  --cl-paper:         #FFFFFF;
  --cl-navy-deep:     #101935;
  --cl-navy:          #1B2A4A;
  --cl-bronze:        #6B5320;
  --cl-bronze-lg:     #8B6E2E;
  --cl-bronze-bright: #C8A45D;
  --cl-indigo:        #6161FF;
  --cl-indigo-hover:  #4A4AE6;
  --cl-body:          #1a1c1c;
  --cl-muted:         #41474e;
  --cl-rule:          rgba(200, 164, 93, 0.18);
  --cl-rule-strong:   rgba(200, 164, 93, 0.32);
}

.cl-modal[hidden] {
  display: none !important;
}

.cl-modal__scrim {
  position: absolute;
  inset: 0;
  background: rgba(16, 25, 53, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: clScrimIn 0.3s ease-out;
}

@keyframes clScrimIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.cl-modal__card {
  position: relative;
  width: min(1100px, 94vw);
  height: min(640px, 92dvh);
  background: var(--cl-paper);
  border-radius: 14px;
  box-shadow: var(--cl-shadow-modal, 0 40px 100px -20px rgba(16, 25, 53, 0.6), 0 0 0 1px rgba(16, 25, 53, 0.08));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: clCardIn 0.32s ease-out;
}

@keyframes clCardIn {
  from { opacity: 0; transform: scale(0.985); }
  to   { opacity: 1; transform: scale(1); }
}

.cl-modal__topbar {
  padding: 18px 28px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--cl-rule);
  flex-shrink: 0;
  gap: 16px;
  position: relative;
}

.cl-modal__topbar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--cl-bronze);
  /* Matchear el border-radius del .cl-modal__card (14px) para que el bar
     no sobresalga de las esquinas redondeadas del card. */
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
}

.cl-modal__close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--cl-rule);
  color: var(--cl-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, color 0.15s;
  flex-shrink: 0;
}

/* ── Avisos legales en popover (B2B + storage) ──────────────────────
   Antes vivían como cuadros fijos sobre el form. Ahora los abre el
   usuario haciendo click en el botón ℹ del topbar. Cumplen deber de
   información (Ley 21.719 Art. 4) sin protagonismo visual constante. */

/* Botón ℹ — tinte bronce para diferenciarlo del close (gris) y que se
   note en el topbar. Se ubica antes del progress ring. */
.cl-info-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(107, 80, 0, 0.06);
  border: 1px solid rgba(107, 80, 0, 0.35);
  color: var(--cl-bronze);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
  flex-shrink: 0;
  padding: 0;
}
.cl-info-btn:hover,
.cl-info-btn:focus-visible {
  background: rgba(107, 80, 0, 0.14);
  border-color: var(--cl-bronze);
  transform: translateY(-1px);
}
.cl-info-btn[aria-expanded="true"] {
  background: var(--cl-bronze);
  color: #fff;
  border-color: var(--cl-bronze);
}
.cl-info-btn svg {
  /* asegura que el ícono se vea nítido en cualquier zoom */
  shape-rendering: geometricPrecision;
}

/* Popover — panel flotante absolute. Se ancla debajo del topbar a la
   derecha, donde está el botón. En mobile pasa a centrado horizontal.
   Estructura: header + body con items + footer con CTA "Entendido". */
.cl-notices-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 24px;
  z-index: 10;
  width: min(440px, calc(100% - 32px));
  background: #fff;
  border: 1px solid rgba(27, 42, 74, 0.10);
  border-radius: 12px;
  box-shadow: 0 12px 28px -8px rgba(27, 42, 74, 0.18),
              0 4px 10px -3px rgba(27, 42, 74, 0.08);
  padding: 0;
  display: flex;
  flex-direction: column;
  animation: cl-popover-in 160ms ease-out;
  overflow: hidden;
}

.cl-notices-popover[hidden] { display: none; }

@keyframes cl-popover-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Header — icono bronce + título + close (32px círculo) ── */
.cl-notices-popover__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px 14px 18px;
  border-bottom: 1px solid rgba(27, 42, 74, 0.08);
}

.cl-notices-popover__header-icon {
  width: 22px;
  height: 22px;
  color: var(--cl-bronze);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cl-notices-popover__header-icon svg {
  width: 22px;
  height: 22px;
}

.cl-notices-popover__title {
  flex: 1;
  margin: 0;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--cl-navy);
  letter-spacing: -0.005em;
  font-family: var(--font-body);
}

/* Close — mismo diseño que .cl-modal__close */
.cl-notices-popover__close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--cl-rule);
  color: var(--cl-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, color 0.15s;
  flex-shrink: 0;
}
.cl-notices-popover__close:hover {
  border-color: var(--cl-body);
  color: var(--cl-body);
}
.cl-notices-popover__close:focus-visible {
  outline: 2px solid var(--cl-bronze);
  outline-offset: 2px;
}

/* ── Body — items con icon-box + título + body, separados por divisor ── */
.cl-notices-popover__body {
  padding: 4px 18px;
}

.cl-notice-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  padding: 14px 0;
  align-items: start;
}

.cl-notice-item__icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(107, 80, 0, 0.06);
  border: 1px solid rgba(107, 80, 0, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--cl-bronze);
  flex-shrink: 0;
}
.cl-notice-item__icon-box svg {
  width: 20px;
  height: 20px;
}

.cl-notice-item__copy {
  min-width: 0; /* permite que el texto wrap correctamente */
}

.cl-notice-item__title {
  margin: 0 0 4px;
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--cl-navy);
  line-height: 1.3;
  letter-spacing: -0.005em;
  font-family: var(--font-body);
}

.cl-notice-item__body {
  margin: 0;
  font-size: var(--text-small);
  line-height: 1.5;
  color: var(--cl-muted);
}

.cl-notice-item__link {
  color: var(--cl-bronze);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.cl-notice-item__link:hover,
.cl-notice-item__link:focus-visible {
  color: var(--cl-navy);
}

.cl-notices-popover__divider {
  height: 1px;
  background: rgba(27, 42, 74, 0.08);
  margin: 0;
}

/* ── Footer — CTA "Entendido" en indigo (mismo color que Enviar consulta) ── */
.cl-notices-popover__foot {
  padding: 14px 18px 16px;
  border-top: 1px solid rgba(27, 42, 74, 0.08);
}

/* Botón "Entendido" — navy primario (mismo color que .cl-cta--submit-mode
   del wizard "Enviar consulta"). El indigo queda reservado para CTAs de
   navegación del wizard ("Continuar"). */
.cl-notices-popover__cta {
  display: block;
  width: 100%;
  padding: 12px 24px;
  border-radius: 9999px;
  background: var(--cl-navy);
  color: #fff;
  font-weight: 500;
  font-size: var(--text-body);
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  box-shadow: 0 8px 24px -10px rgba(27, 42, 74, 0.5);
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.cl-notices-popover__cta:hover {
  background: #00305f;
  box-shadow: 0 12px 30px -8px rgba(0, 35, 73, 0.45);
  transform: translateY(-1px);
}
.cl-notices-popover__cta:focus-visible {
  outline: 2px solid var(--cl-bronze);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .cl-notices-popover {
    right: 16px;
    left: 16px;
    width: auto;
  }
  .cl-notices-popover__header {
    padding: 12px 12px 12px 16px;
  }
  .cl-notices-popover__body {
    padding: 2px 16px;
  }
  .cl-notice-item {
    grid-template-columns: 36px 1fr;
    gap: 12px;
    padding: 12px 0;
  }
  .cl-notice-item__icon-box {
    width: 36px;
    height: 36px;
  }
  .cl-notice-item__icon-box svg {
    width: 18px;
    height: 18px;
  }
  .cl-notices-popover__foot {
    padding: 12px 16px 14px;
  }
}

.cl-modal__close:hover {
  border-color: var(--cl-body);
  color: var(--cl-body);
}

.cl-modal__close:focus-visible {
  outline: 2px solid var(--cl-bronze);
  outline-offset: 2px;
}

/* Reopen pill (cuando cerraron el modal con × y hay datos guardados) */
.cl-reopen-pill {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 999;
  background: var(--cl-indigo, #6161FF);
  color: #fff;
  padding: 12px 20px;
  border-radius: 9999px;
  font-size: var(--text-small);
  font-weight: 500;
  cursor: pointer;
  border: 0;
  font-family: var(--font-body);
  box-shadow: 0 12px 32px -8px rgba(97, 97, 255, 0.5);
  animation: clPillIn 0.3s ease-out;
}

.cl-reopen-pill:hover {
  background: #4A4AE6;
}

.cl-reopen-pill[hidden] {
  display: none !important;
}

@keyframes clPillIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .cl-stage__topbar {
    padding-left: 36px;
    padding-right: 36px;
  }

  .cl-screen__inner {
    padding: 24px 36px;
  }

  .cl-screen[data-kind="cards"] .cl-screen__inner {
    padding: 16px 28px 12px;
  }
}

@media (max-width: 768px) {
  .cl-stage__topbar {
    padding: 16px 20px;
    gap: 8px;
    flex-wrap: wrap;
  }

  .cl-stage__topbar-chapter {
    display: none;
  }

  .cl-screen__inner {
    padding: 18px 20px;
  }

  .cl-screen[data-kind="cards"] .cl-screen__inner,
  .cl-screen[data-kind="textarea"] .cl-screen__inner,
  .cl-screen[data-kind="pair"] .cl-screen__inner,
  .cl-screen[data-kind="review"] .cl-screen__inner {
    padding: 14px 20px;
  }

  .cl-screen__question {
    font-size: clamp(28px, 6vw, 36px) !important;
  }

  .cl-input--big {
    /* font-size lo resuelve --text-input-big (24px ≤768px) en :root (M1) */
    padding-bottom: 10px;
  }

  .cl-input--mid {
    font-size: var(--text-lead);
  }

  .cl-cards[data-cols="2"],
  .cl-cards[data-cols="3"] {
    grid-template-columns: 1fr;
  }

  .cl-review {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .cl-modal__foot {
    padding: 14px 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .cl-stage__foot-right {
    justify-content: space-between;
    gap: 12px;
  }

  /* Modal: hint se oculta para liberar el footer al CTA primario */
  .cl-modal__card .cl-stage__hint {
    display: none;
  }

  /* Modal: full-screen en mobile */
  .cl-modal__card {
    width: 100vw;
    height: 100vh;                       /* fallback ancient (sin dvh) */
    height: var(--app-height, 100dvh);   /* alto visible REAL (JS visualViewport) → dvh → vh */
    max-width: 100vw;
    max-height: var(--app-height, 100dvh);
    border-radius: 0;
  }

  /* Clave del fix: el contenedor fixed TAMBIÉN se limita al alto visible real, no al
     viewport grande de Safari iOS. Así el centrado (heredado de la base) ubica el card
     dentro del área visible y el footer "Continuar" nunca queda bajo el pliegue. */
  .cl-modal {
    padding: 0;
    /* top = cuánto scrolleó iOS el layout al abrir el teclado (visualViewport.offsetTop
       vía JS). Re-pega el modal al área visible SOBRE el teclado, en vez de quedar
       anclado al layout viewport desplazado (campo/footer detrás del teclado). */
    top: var(--app-offset-top, 0);
    height: 100vh;                       /* fallback */
    height: var(--app-height, 100dvh);
  }

  .cl-modal__topbar {
    padding: 14px 20px;
    flex-wrap: wrap;
  }

  .cl-modal__foot {
    padding: 14px 20px;
  }

  /* Tap targets ≥44px (WCAG 2.5.5) — SOLO móvil; en desktop quedan en su tamaño base. */
  .cl-cta {
    min-height: 44px;
  }
  .cl-nav-btn {
    width: 44px;
    height: 44px;
  }

  .cl-preview {
    grid-template-columns: 1fr;
    padding: 32px 28px;
    gap: 24px;
  }

  .cl-preview__cta-wrap {
    display: flex;
    justify-content: flex-start;
  }
}

/* ─── REDUCED MOTION ─── */
@media (prefers-reduced-motion: reduce) {
  .cl-screen,
  .cl-screen.is-active,
  .cl-screen.is-leaving-fwd,
  .cl-screen.is-leaving-back,
  .cl-screen.is-entering-back {
    transform: none;
    transition: opacity 0.01ms;
  }

  .cl-screen.is-shaking {
    animation: none;
  }

  .cl-modal__scrim,
  .cl-modal__card,
  .cl-reopen-pill {
    animation: none;
  }

  .cl-cta:hover:not(:disabled) {
    transform: none;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   FAQ LUXURY — sidebar sticky + accordion editorial
   ═══════════════════════════════════════════════════════════════════
   Único FAQ del proyecto. Voz cromática Luxury que rige toda la landing:
     · Page cream (#FAF9F5)
     · Eyebrow + key-title en gold cálido (#8B6E2E)
     · Key del título en ITÁLICA (consistente con Form B preview)
     · Hairlines gold soft rgba(200,164,93,0.18)
     · CTA card navy deep (#101935) con borde gold + button indigo
   ═══════════════════════════════════════════════════════════════════ */
.faq-luxury {
  --flx-bg: #FAF9F5;
  --flx-paper: #ffffff;
  --flx-paper-warm: #F5F0E4;
  --flx-cream: #F0E8D6;
  --flx-cream-soft: #F4EEDF;
  --flx-rule: rgba(200, 164, 93, 0.18);
  --flx-rule-strong: rgba(200, 164, 93, 0.32);
  --flx-bronze: #8B6E2E;
  --flx-bronze-deep: #6B5320;
  --flx-bronze-bright: #C8A45D;
  --flx-bronze-soft: rgba(200, 164, 93, 0.12);
  --flx-navy-deep: #101935;
  --flx-navy: #1B2A4A;
  --flx-indigo: #6161FF;
  --flx-indigo-hover: #4A4AE6;
  --flx-body: #1a1c1c;
  --flx-muted: #41474e;
  --flx-muted-soft: #6b7176;
  padding: 88px 0 104px;
  background: var(--flx-bg);
}

/* ─── Grid 1/3 + 2/3 ─── */
.faq-luxury__grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  align-items: start;
}

/* ─── Sidebar sticky ─── */
.faq-luxury__aside {
  position: sticky;
  top: calc(var(--section-anchor-offset, 96px) + 16px);
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.faq-luxury__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 9999px;
  background: var(--flx-bronze-soft);
  /* FIX-1 (WCAG 1.4.3): #8B6E2E sobre el crema del eyebrow da ~4.19:1 y
     falla AA Normal (4.5:1) para este texto de 11px. El gold deep #6B5320
     sube a ≥4.5:1 sin perder calidez. */
  color: var(--flx-bronze-deep);
  font-family: var(--font-body);
  font-size: var(--text-eyebrow);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  align-self: flex-start;
}

.faq-luxury__eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--flx-bronze);
}

.faq-luxury__title {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-faq);           /* 48px (32 móvil) — spec v2.0 */
  font-weight: 300;
  line-height: var(--lh-display);       /* 1.08 */
  letter-spacing: var(--track-display); /* -0.04em */
  color: #000;
  text-wrap: balance;
}

.faq-luxury__title-key {
  color: var(--flx-bronze);
  font-weight: 500;
  font-style: italic;
}

.faq-luxury__lead {
  margin: 0;
  font-size: var(--text-body);
  line-height: 1.65;
  color: var(--flx-muted);
  max-width: 380px;
}

/* Señal de frescura (P2-2). */
.faq-luxury__updated {
  margin: 0.75rem 0 0;
  font-size: var(--text-small);
  color: var(--flx-muted);
  opacity: 0.8;
}
.faq-luxury__updated time { font-weight: 600; }

/* ─── CTA card (navy con accent bronze + button indigo) ─── */
.faq-luxury__cta {
  position: relative;
  overflow: hidden;
  background: var(--flx-navy-deep);
  color: #fff;
  border-radius: 16px;
  padding: 24px 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 380px;
  box-shadow: 0 16px 36px -18px rgba(16, 25, 53, 0.5);
}

.faq-luxury__cta-rule {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--flx-bronze-bright);
  /* Matchear el border-radius del .faq-luxury__cta (16px) */
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}

.faq-luxury__cta-eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-eyebrow);
  color: var(--flx-bronze-bright);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

.faq-luxury__cta-title {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-h3);
  font-weight: 400;
  line-height: 1.3;
  color: #fff;
  letter-spacing: -0.01em;
}

.faq-luxury__cta-micro {
  margin: 0;
  font-size: var(--text-small);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.65);
}

/* La card es flex column → sin esto, .btn--primary se estira a todo el ancho.
   Replica el align-self del viejo .faq-luxury__cta-btn. */
.faq-luxury__cta .btn--primary {
  align-self: flex-start;
  margin-top: 8px;
}

.faq-luxury__cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 10px 18px 10px 10px;
  border-radius: 9999px;
  background: var(--flx-indigo);
  color: #fff;
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 500;
  text-decoration: none;
  align-self: flex-start;
  box-shadow: 0 10px 28px -10px rgba(97, 97, 255, 0.55);
  transition: background 0.18s, transform 0.18s;
}

.faq-luxury__cta-btn:hover {
  background: var(--flx-indigo-hover);
  transform: translateY(-1px);
}

.faq-luxury__cta-btn:active {
  transform: translateY(0);
}

.faq-luxury__cta-btn-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.20);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ─── Acordeón ─── */
.faq-luxury__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  /* Ahora es <ul>/<li> semántico — reset de la lista nativa. */
  list-style: none;
  margin: 0;
  padding: 0;
}

.faq-luxury__item {
  background: var(--flx-paper);
  border: 1px solid var(--flx-rule);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}

.faq-luxury__item:hover {
  border-color: var(--flx-rule-strong);
  background: var(--flx-cream-soft);
}

.faq-luxury__item.is-open {
  background: var(--flx-paper);
  border-color: var(--flx-rule-strong);
  box-shadow: 0 8px 26px -14px rgba(200, 164, 93, 0.35);
}

/* FIX-5: el <h3> ahora envuelve al botón — neutralizar márgenes/tipografía
   nativa del heading; el styling visual vive en .faq-luxury__trigger/__q. */
.faq-luxury__q-wrap {
  margin: 0;
  font: inherit;
}

.faq-luxury__trigger {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 20px 26px;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
  font-family: var(--font-body);
}

.faq-luxury__trigger:focus-visible {
  outline: 2px solid var(--flx-bronze);
  outline-offset: -2px;
}

.faq-luxury__q {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 500;
  line-height: 1.4;
  color: #000;
  letter-spacing: -0.008em;
  /* Equilibra el wrap de las preguntas largas (2 líneas parejas, sin palabra
     suelta). Navegadores sin soporte lo ignoran y caen al wrap normal. */
  text-wrap: balance;
}

.faq-luxury__item.is-open .faq-luxury__q {
  font-weight: 600;
  font-size: var(--text-lead);
}

.faq-luxury__toggle {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  background: var(--flx-bronze-soft);
  color: var(--flx-bronze);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, color 0.18s, transform 0.25s;
}

.faq-luxury__item.is-open .faq-luxury__toggle {
  background: var(--flx-bronze);
  color: #fff;
  transform: rotate(180deg);
}

.faq-luxury__toggle-plus {
  display: block;
}

.faq-luxury__toggle-minus {
  display: none;
}

.faq-luxury__item.is-open .faq-luxury__toggle-plus {
  display: none;
}

.faq-luxury__item.is-open .faq-luxury__toggle-minus {
  display: block;
}

/* Panel expandido */
.faq-luxury__panel[hidden] {
  display: none;
}

.faq-luxury__panel-inner {
  padding: 4px 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: flxFade 0.25s ease-out;
}

@keyframes flxFade {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.faq-luxury__answer {
  margin: 0;
  font-size: var(--text-body);
  line-height: 1.65;
  color: var(--flx-muted);
  max-width: 65ch;
}

/* ─── Rich blocks (paleta Luxury) ─── */
/* Tabla: header navy deep + key bronce */
.faq-luxury__rich--table {
  border: 1px solid var(--flx-rule);
  border-radius: 10px;
  overflow: hidden;
  background: var(--flx-paper);
}

.faq-luxury__rich-table-head,
.faq-luxury__rich-table-row {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr 1.5fr;
}

.faq-luxury__rich-table-head {
  background: var(--flx-navy-deep);
  color: #fff;
}

.faq-luxury__rich-table-row + .faq-luxury__rich-table-row {
  border-top: 1px solid var(--flx-rule);
}

.faq-luxury__rich-table-cell {
  padding: 12px 16px;
  font-size: var(--text-small);
  line-height: 1.5;
  color: var(--flx-muted);
}

.faq-luxury__rich-table-cell--head {
  font-size: var(--text-caption);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #fff;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  border-left: 1px solid rgba(255, 255, 255, 0.10);
}

.faq-luxury__rich-table-cell--head:first-child {
  border-left: 0;
}

.faq-luxury__rich-table-cell--head.is-key {
  color: #fff;
  font-weight: 600;
  font-size: var(--text-small);
  letter-spacing: 0.12em;
  background: var(--flx-bronze);
  border-left-color: transparent;
}

.faq-luxury__rich-table-cell.is-aspect {
  font-weight: 500;
  color: #000;
}

.faq-luxury__rich-table-cell.is-key {
  background: rgba(200, 164, 93, 0.10);
  color: var(--flx-bronze-deep);
  font-weight: 500;
  border-left: 1px solid var(--flx-rule);
}

.faq-luxury__rich-table-row .faq-luxury__rich-table-cell:not(:first-child):not(.is-key) {
  border-left: 1px solid var(--flx-rule);
}

/* Pricing: card bronce suave */
.faq-luxury__rich--pricing {
  background: rgba(200, 164, 93, 0.07);
  border: 1px solid var(--flx-rule-strong);
  border-radius: 10px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-luxury__rich-pricing-title {
  font-family: var(--font-body);
  font-size: var(--text-eyebrow);
  font-weight: 500;
  color: var(--flx-bronze);
  letter-spacing: 0.20em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  margin-bottom: 4px;
}

.faq-luxury__rich-pricing-rows {
  display: flex;
  flex-direction: column;
}

.faq-luxury__rich-pricing-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  gap: 16px;
}

.faq-luxury__rich-pricing-row + .faq-luxury__rich-pricing-row {
  border-top: 1px solid var(--flx-rule);
}

.faq-luxury__rich-pricing-label {
  font-size: var(--text-body);
  color: var(--flx-body);
  flex: 1;
}

.faq-luxury__rich-pricing-value {
  font-size: var(--text-body);
  font-weight: 500;
  color: var(--flx-bronze);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  text-align: right;
}

.faq-luxury__rich-pricing-foot {
  padding-top: 12px;
  border-top: 1px solid var(--flx-rule-strong);
  font-size: var(--text-small);
  color: var(--flx-navy);
  font-weight: 500;
}

.faq-luxury__rich-pricing-arrow {
  color: var(--flx-bronze);
  margin-left: 6px;
}

/* Lista: check bronce suave (no verde) */
.faq-luxury__rich--list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: rgba(200, 164, 93, 0.05);
  border: 1px solid var(--flx-rule);
  border-radius: 10px;
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
}

.faq-luxury__rich--list li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: start;
  font-size: var(--text-body);
  line-height: 1.55;
  color: var(--flx-body);
  padding: 9px 0;
}

.faq-luxury__rich--list li + li {
  border-top: 1px solid var(--flx-rule);
}

.faq-luxury__rich-list-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--flx-bronze-soft);
  color: var(--flx-bronze);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .faq-luxury__grid {
    grid-template-columns: 1fr 1.8fr;
    gap: 48px;
  }
}

@media (max-width: 768px) {
  .faq-luxury {
    padding: 56px 0 72px;
  }

  .faq-luxury__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .faq-luxury__aside {
    position: static;
    gap: 18px;
  }

  .faq-luxury__title {
    font-size: clamp(26px, 8vw, 32px);  /* tope 32px — H2 Lubrizol */
  }

  .faq-luxury__lead,
  .faq-luxury__cta {
    max-width: none;
  }

  .faq-luxury__list {
    gap: 12px;
  }

  .faq-luxury__trigger {
    padding: 16px 20px;
    gap: 14px;
  }

  .faq-luxury__q {
    font-size: var(--text-base);
  }

  .faq-luxury__item.is-open .faq-luxury__q {
    font-size: var(--text-base);
  }

  .faq-luxury__panel-inner {
    padding: 4px 20px 20px;
  }

  .faq-luxury__rich-table-head,
  .faq-luxury__rich-table-row {
    grid-template-columns: 1fr;
  }

  .faq-luxury__rich-table-row .faq-luxury__rich-table-cell:not(:first-child),
  .faq-luxury__rich-table-head .faq-luxury__rich-table-cell:not(:first-child) {
    border-left: 0;
    border-top: 1px solid var(--flx-rule);
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-luxury__panel-inner {
    animation: none;
  }

  .faq-luxury__item.is-open .faq-luxury__toggle {
    transform: none;
  }
}

/* ════════════════════════════════════════════════════════════════════
   COOKIE CONSENT — banner GA4 (opt-in binario, spec v1.0 · Ley 21.719)
   Barra full-width al pie. Botones de IGUAL jerarquía visual (L2). Sin X
   en el banner (L5). Panel granular modal con toggle analytics OFF por
   defecto (L4). Visibilidad controlada por conversion.js.
   ════════════════════════════════════════════════════════════════════ */
.cookie-consent,
.cookie-prefs {
  --ck-paper:        #FAF9F5;
  --ck-navy:         #101935;
  --ck-gold:         #8B6E2E;
  --ck-indigo-hover: #4A4AE6;
  --ck-body:         #1a1c1c;
  --ck-muted:        #4A5568;
  --ck-rule:         rgba(200, 164, 93, 0.20);
}
.cookie-consent[hidden],
.cookie-prefs[hidden] { display: none; }

.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-overlay);
  padding: 22px 0;
  background: var(--ck-paper);
  color: var(--ck-body);
  border-top: 1px solid var(--ck-rule);
  box-shadow: 0 -4px 24px rgba(0, 35, 73, 0.08);
  animation: cookie-rise var(--transition-slow) both;
}
@keyframes cookie-rise {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

.cookie-consent__container {
  max-width: var(--max-width, 1280px);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 32px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.cookie-consent__content { flex: 1; max-width: 760px; }

.cookie-consent__eyebrow {
  margin: 0 0 8px;
  font-family: var(--font-heading);
  font-size: var(--text-eyebrow);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--ck-gold);
}
.cookie-consent__title {
  margin: 0 0 8px;
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  font-weight: var(--font-weight-semibold);
  letter-spacing: -0.01em;
  color: var(--ck-navy);
}
.cookie-consent__description {
  margin: 0 0 6px;
  font-size: var(--text-body);
  line-height: 1.55;
  font-weight: var(--font-weight-light);
  color: var(--ck-muted);
}
.cookie-consent__link {
  color: var(--ck-indigo-hover);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  border-bottom: 1px solid rgba(74, 74, 230, 0.3);
}
.cookie-consent__link:hover { border-bottom-color: var(--ck-indigo-hover); }
.cookie-consent__legal {
  margin: 0;
  font-size: var(--text-caption);
  line-height: 1.5;
  font-style: italic;
  color: #6B7280;
}

.cookie-consent__actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
  align-items: center;
}

/* L2: TODOS los botones (banner y panel) comparten estas propiedades.
   Ghost navy idéntico — cualquier diferencia de color/tamaño/borde viola L2. */
.cookie-consent__btn {
  font-family: var(--font-heading);
  font-size: var(--text-body);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  padding: 12px 24px;
  min-width: 120px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--ck-navy);
  background: transparent;
  color: var(--ck-navy);
  transition: background-color var(--transition-base),
              color var(--transition-base),
              transform var(--transition-base);
}
.cookie-consent__btn:hover { background: var(--ck-navy); color: #fff; }
.cookie-consent__btn:active { transform: translateY(1px); }
.cookie-consent__btn:focus-visible { outline: 2px solid var(--ck-gold); outline-offset: 2px; }

/* Mientras el banner/panel está pendiente, no apilar la sticky-cta encima. */
[data-cookie-pending] .sticky-cta { display: none !important; }

/* ── Footer: enlaces legales apilados + "Configurar cookies" como link ── */
.footer-brand__legal {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  margin-top: 1rem;
}
/* El contenedor maneja el espaciado vertical; anulo el margin-top propio. */
.footer-brand__legal .footer-brand__privacy {
  margin-top: 0;
}
/* Botón "Configurar cookies": apariencia de link, MISMO tamaño que los demás
   (antes `font: inherit` pisaba el font-size 0.8125rem de .footer-brand__privacy). */
.footer-brand__cookie-settings {
  font-family: inherit;
  font-size: var(--text-small);
  line-height: 1.3;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-align: left;
  color: inherit;
}

/* ── Panel granular (modal) — §4.2 ── */
.cookie-prefs {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-overlay) + 1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.cookie-prefs__scrim {
  position: absolute;
  inset: 0;
  background: rgba(16, 25, 53, 0.45);
  animation: cookie-fade var(--transition-base) both;
}
.cookie-prefs__dialog {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: var(--ck-paper);
  color: var(--ck-body);
  border: 1px solid var(--ck-rule);
  border-radius: var(--radius-card);
  box-shadow: 0 40px 100px -20px rgba(16, 25, 53, 0.6);
  padding: 28px clamp(20px, 4vw, 32px) 24px;
  animation: cookie-pop var(--transition-slow) both;
}
@keyframes cookie-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes cookie-pop {
  from { opacity: 0; transform: translateY(10px) scale(0.99); }
  to   { opacity: 1; transform: none; }
}

.cookie-prefs__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid var(--ck-rule);
  border-radius: var(--radius-pill);
  color: var(--ck-navy);
  cursor: pointer;
}
.cookie-prefs__close:hover { border-color: var(--ck-gold); }
.cookie-prefs__close:focus-visible { outline: 2px solid var(--ck-gold); outline-offset: 2px; }

.cookie-prefs__title {
  margin: 0 0 12px;
  padding-right: 32px;
  font-family: var(--font-heading);
  font-size: var(--text-h3-section);
  line-height: 1.25;
  font-weight: var(--font-weight-semibold);
  color: var(--ck-navy);
}
.cookie-prefs__intro {
  margin: 0 0 20px;
  font-size: var(--text-body);
  line-height: 1.6;
  font-weight: var(--font-weight-light);
  color: var(--ck-muted);
}

.cookie-prefs__cat {
  padding: 16px 0;
  border-top: 1px solid var(--ck-rule);
}
.cookie-prefs__cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.cookie-prefs__cat-title {
  font-family: var(--font-heading);
  font-size: var(--text-body);
  font-weight: var(--font-weight-semibold);
  color: var(--ck-navy);
}
.cookie-prefs__cat-locked {
  font-size: var(--text-eyebrow);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ck-gold);
  font-weight: var(--font-weight-medium);
}
.cookie-prefs__cat-desc {
  margin: 0;
  font-size: var(--text-small);
  line-height: 1.55;
  font-weight: var(--font-weight-light);
  color: var(--ck-muted);
}

/* Toggle analítico (switch accesible — el <input> real queda oculto). */
.cookie-prefs__switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.cookie-prefs__switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.cookie-prefs__switch-track {
  position: relative;
  width: 38px;
  height: 22px;
  flex: none;
  background: #cfc8b8;
  border-radius: var(--radius-pill);
  transition: background-color var(--transition-base);
}
.cookie-prefs__switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform var(--transition-base);
}
.cookie-prefs__switch input:checked + .cookie-prefs__switch-track { background: var(--ck-indigo-hover); }
.cookie-prefs__switch input:checked + .cookie-prefs__switch-track::after { transform: translateX(16px); }
.cookie-prefs__switch input:focus-visible + .cookie-prefs__switch-track { outline: 2px solid var(--ck-gold); outline-offset: 2px; }

.cookie-prefs__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  justify-content: flex-end;
}
/* Botones del panel: más compactos que los del banner (caben 3 en línea en
   el modal de 560px). Siguen siendo idénticos entre sí (L2). */
.cookie-prefs__actions .cookie-consent__btn {
  font-size: var(--text-small);
  padding: 10px 20px;
  min-width: 0;
}

/* ── Responsive ≤768px (§8): stack vertical, botones full-width 48px ── */
@media (max-width: 768px) {
  .cookie-consent__container {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 0 20px;
  }
  .cookie-consent__actions {
    flex-direction: column;
    width: 100%;
    gap: 8px;
  }
  .cookie-consent__btn {
    width: 100%;
    min-height: 48px;
    padding: 14px 20px;
  }
  /* §8.2 orden mobile: Aceptar > Configurar > Rechazar (acciones comunes arriba). */
  .cookie-consent__actions [data-cookie-accept]    { order: 1; }
  .cookie-consent__actions [data-cookie-configure] { order: 2; }
  .cookie-consent__actions [data-cookie-reject]    { order: 3; }

  .cookie-prefs__actions { flex-direction: column; }
  .cookie-prefs__actions .cookie-consent__btn { width: 100%; min-height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-consent,
  .cookie-prefs__scrim,
  .cookie-prefs__dialog { animation: none; }
}
