/* ─── Variables ─────────────────────────────────────────────── */
:root {
  --bg:              #F6F2ED;
  --surface:         #FFFFFF;
  --primary:         #3E5C70;
  --primary-light:   #E3EDF2;
  --secondary:       #af4d63;
  --secondary-light: #F5E6DF;
  --accent:          #6E96A2;
  --accent-light:    #E3EDF2;
  --text:            #28222C;
  --text-muted:      #7A6E74;
  --border:          #DDD5CC;
  --radius:          14px;
  --radius-sm:       9px;
  --shadow:          0 2px 16px rgba(0,0,0,0.07);
  --shadow-lg:       0 6px 28px rgba(0,0,0,0.11);
  --transition:      0.18s ease;
}

/* ─── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  font-family: 'Nunito', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 28px 16px 80px;
}

/* ─── Shell ──────────────────────────────────────────────────── */
.app-shell {
  width: 100%;
  max-width: 600px;
}

/* ─── Progress bar ───────────────────────────────────────────── */
.progress-wrap {
  display: none;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 22px;
}
.progress-wrap.visible { display: flex; }
.progress-track {
  width: 100%;
  height: 5px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 99px;
  transition: width 0.4s ease;
  width: 0%;
}
.progress-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ─── Screens ────────────────────────────────────────────────── */
.screen { display: none; }
.screen.active {
  display: block;
  animation: fadeUp 0.3s ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Card ───────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 38px 36px;
}
@media (max-width: 500px) {
  .card { padding: 28px 20px; }
}

/* ─── Branding ───────────────────────────────────────────────── */
.brand-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 20px;
}
.brand-name {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
}
.brand-by {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

/* ─── Welcome ────────────────────────────────────────────────── */
.card--welcome { text-align: left; }

/* Hero section */
.welcome-hero {
  text-align: center;
  padding: 8px 0 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 22px;
}
.welcome-logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 12px;
}
.welcome-logo-icon { flex-shrink: 0; }
.welcome-brand-text { text-align: left; }
.welcome-brand-name {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.welcome-brand-by {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.welcome-tagline {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  margin: 0;
}

/* Anamnesis section inside welcome */
.welcome-anamnesis-section {
  background: var(--bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  padding: 20px 20px 14px;
  margin: 20px 0 18px;
}
.welcome-anamnesis-header { margin-bottom: 16px; }
.welcome-anamnesis-titulo {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.welcome-anamnesis-hint {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Footer row and disclaimer */
.welcome-footer-row {
  display: flex;
  justify-content: center;
  margin-top: 18px;
  margin-bottom: 10px;
}
.welcome-disclaimer {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.6;
  margin-top: 4px;
}

/* Duration detected msg */
.duracion-detectada-msg {
  background: var(--accent-light);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--text);
}
.duracion-detectada-label { line-height: 1.5; }

/* ── Optional libre text below clinical questions ───────────── */
.libre-text-wrap {
  margin-top: 12px;
  padding: 12px 14px;
  background: #FAFAF8;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
}
.libre-text-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-style: italic;
}
.free-text--sm {
  min-height: 56px;
  font-size: 0.9rem;
  padding: 8px 10px;
}

/* ── Adaptive textarea (pantallas_adaptadas tipo=textarea) ──── */
.adaptacion-textarea-wrap {
  padding: 4px 0;
}
.adaptacion-textarea {
  width: 100%;
  min-height: 120px;
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  resize: vertical;
  transition: border-color var(--transition);
  font-family: inherit;
  line-height: 1.55;
}
.adaptacion-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

/* ── Preguntas personalizadas (citan el relato) ──────────────── */
.pd-textarea {
  width: 100%;
  min-height: 84px;
  font-size: 0.95rem;
  padding: 12px 14px;
  margin-top: 8px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  resize: vertical;
  transition: border-color var(--transition);
  font-family: inherit;
  line-height: 1.55;
}
.pd-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

/* ── PCL-5 ───────────────────────────────────────────────────── */
.pcl5-instruccion {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 10px 0 8px;
  padding: 0 4px;
}

.welcome-text {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 18px;
}
.info-box {
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 10px;
}
.info-box--secondary {
  background: var(--accent-light);
  margin-bottom: 28px;
}
.info-box strong { font-weight: 700; }

/* ─── Step header ────────────────────────────────────────────── */
.step-header { margin-bottom: 22px; }
.step-question {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 5px;
}
.step-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ─── Motivos — pill layout ──────────────────────────────────── */
.motivos-categorias {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 16px;
}
.motivo-cat-group {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.motivo-cat-titulo {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--primary);
  background: var(--primary-light);
  padding: 7px 14px;
  border-bottom: 1px solid var(--border);
}
.motivo-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background var(--transition);
  font-size: 0.92rem;
  color: var(--text);
  font-weight: 400;
  line-height: 1.4;
}
.motivo-item:last-child { border-bottom: none; }
.motivo-item:hover { background: var(--bg); }
.motivo-item input[type="checkbox"] {
  flex-shrink: 0;
  width: 17px; height: 17px;
  accent-color: var(--primary);
  cursor: pointer;
}
.motivo-item:has(input:checked) {
  background: var(--primary-light);
  font-weight: 600;
  color: var(--primary);
}
.motivos-footer {
  margin-bottom: 24px;
  min-height: 20px;
}
.motivos-counter {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}
.motivos-counter.has-selection {
  color: var(--primary);
}

/* ─── Empathic note (screen-3) ───────────────────────────────── */
.empatic-note {
  background: linear-gradient(135deg, #E3EDF2 0%, #E3EDF2 100%);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-size: 0.91rem;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 16px;
  font-style: italic;
}

/* ─── Structured terapia options ─────────────────────────────── */
.options-list--compact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}
.checkbox-card--sm {
  padding: 9px 13px;
}
.checkbox-card--sm .option-text {
  font-size: 0.88rem;
}

/* ─── Payment trust badges ───────────────────────────────────── */
.pago-trust-badges {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  margin: 16px 0 6px;
  padding: 14px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.pago-trust-seguro {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
}
.pago-trust-logos {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.pago-logo-badge {
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  border: 1.5px solid;
}
.pago-logo-webpay {
  background: #003087;
  color: #fff;
  border-color: #003087;
}
.pago-logo-visa {
  background: #1434CB;
  color: #fff;
  border-color: #1434CB;
}
.pago-logo-mc {
  background: #fff;
  color: #EB001B;
  border-color: #ddd;
}

/* ─── Options list (radio) ───────────────────────────────────── */
.options-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
}
.option-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}
.option-card input { display: none; }
/* Custom radio dot */
.option-card::before {
  content: '';
  display: block;
  width: 17px;
  height: 17px;
  border: 2px solid var(--border);
  border-radius: 50%;
  flex-shrink: 0;
  transition: all var(--transition);
}
.option-card:hover { border-color: var(--primary); background: var(--primary-light); }
.option-card:hover::before { border-color: var(--primary); }
.option-card:has(input:checked) { border-color: var(--primary); background: var(--primary-light); }
.option-card:has(input:checked)::before {
  border-color: var(--primary);
  background: var(--primary);
  box-shadow: inset 0 0 0 3px #fff;
}
/* Alerta option */
.option-card--alerta { border-color: #FECACA; background: #FEF2F2; }
.option-card--alerta:hover { border-color: #DC2626; background: #FEE2E2; }
.option-card--alerta:has(input:checked) { border-color: #DC2626; background: #FEE2E2; }
.option-card--alerta::before { border-color: #FCA5A5; }
.option-card--alerta:has(input:checked)::before { border-color: #DC2626; background: #DC2626; }

.option-text {
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
}

/* ─── Checkboxes (síntomas físicos) ─────────────────────────── */
.checkbox-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer; font-weight: 500;
  transition: var(--transition);
}
.checkbox-card input { display: none; }
.checkbox-card::before {
  content: '';
  display: block;
  width: 17px;
  height: 17px;
  border: 2px solid var(--border);
  border-radius: 4px;
  flex-shrink: 0;
  transition: all var(--transition);
}
.checkbox-card:hover { border-color: var(--primary); background: var(--primary-light); }
.checkbox-card:hover::before { border-color: var(--primary); }
.checkbox-card:has(input:checked) { border-color: var(--primary); background: var(--primary-light); }
.checkbox-card:has(input:checked)::before {
  border-color: var(--primary);
  background: var(--primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3E%3Cpath d='M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0z'/%3E%3C/svg%3E");
  background-size: contain;
}

/* ─── Textarea ───────────────────────────────────────────────── */
.textarea-wrap {
  position: relative;
  margin-bottom: 10px;
}
.free-text {
  width: 100%;
  min-height: 140px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-family: inherit;
  font-size: 0.93rem;
  color: var(--text);
  line-height: 1.65;
  resize: vertical;
  transition: border-color var(--transition);
}
.free-text--lg { min-height: 180px; }
.free-text:focus { outline: none; border-color: var(--primary); }
.free-text::placeholder { color: #B8B0B8; }
.char-count {
  position: absolute;
  bottom: 8px;
  right: 12px;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.privacy-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.5;
}

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover:not(:disabled) { background: #5A4E69; box-shadow: var(--shadow-lg); }
.btn--primary:disabled { opacity: 0.35; cursor: not-allowed; }
.btn--ghost { background: transparent; border-color: var(--border); color: var(--text-muted); }
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn--full { width: 100%; margin-top: 14px; }

/* ─── Nav row ────────────────────────────────────────────────── */
.nav-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
/* Grupo Saltar + Continuar (pantallas con opción de saltar): antes iban en un
   <div> sin layout y se encimaban en celular. Ahora flex con gap y wrap limpio. */
.nav-row__group { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

/* ─── Loading screen ─────────────────────────────────────────── */
.card--loading { text-align: center; padding: 60px 36px; }
.loader-ring {
  width: 48px;
  height: 48px;
  border: 3px solid var(--primary-light);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
  margin: 0 auto 24px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-title { font-family: 'Jost', system-ui, sans-serif; font-size: 1.3rem; font-weight: 400; letter-spacing: .02em; color: var(--text); margin-bottom: 6px; }
.loading-sub { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 28px; }
.loading-steps { display: flex; flex-direction: column; gap: 10px; max-width: 300px; margin: 0 auto; text-align: left; }
.loading-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--border);
  font-weight: 500;
  transition: color 0.4s ease;
}
.loading-step .lnum {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--border);
  color: var(--surface);
  font-size: 0.72rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.4s ease, transform 0.25s ease;
}
.loading-step.active {
  color: var(--text);
  font-weight: 600;
}
.loading-step.active .lnum {
  background: var(--accent);
  transform: scale(1.15);
  animation: lnumPulse 1.5s ease-in-out infinite;
}
@keyframes lnumPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(94, 144, 130, 0.0); }
  50%      { box-shadow: 0 0 0 6px rgba(94, 144, 130, 0.16); }
}
.loading-step.done {
  color: var(--accent);
  font-weight: 600;
}
.loading-step.done .lnum {
  background: var(--accent);
  font-size: 0;
  transform: scale(1);
}
.loading-step.done .lnum::after {
  content: '✓';
  font-size: 0.78rem;
  font-weight: 800;
}

/* ─── Estado de error en pantalla de carga ───────────────────── */
.loading-error-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 1.7rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
#loadingError { text-align: center; }
#loadingError .loading-sub { margin-bottom: 0; max-width: 340px; margin-left: auto; margin-right: auto; }
#loadingError .btn { margin-top: 24px; min-width: 180px; }

/* ─── Result card ────────────────────────────────────────────── */
.card--result { padding: 36px; }
.result-header { margin-bottom: 24px; }
.result-brand {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}
.result-brand-by {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.8rem;
}
.result-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
}
.result-disclaimer {
  font-size: 0.8rem;
  color: #3E5C70; font-weight: 500;
  line-height: 1.55;
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}
/* Alert urgencia */
.alerta-urgencia {
  background: #FEF2F2;
  border: 2px solid #DC2626;
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin-bottom: 20px;
}
.alerta-titulo {
  font-weight: 800;
  font-size: 0.9rem;
  color: #DC2626;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.alerta-texto { font-size: 0.9rem; color: #7F1D1D; line-height: 1.65; }
/* Impresión clínica */
/* Enfoques */
.enfoques-titulo {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.enfoques-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 22px;
}
.enfoque-card {
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  border-left: 3px solid transparent;
}
.enfoque-card:nth-child(1) { background: var(--primary-light); border-left-color: var(--primary); }
.enfoque-card:nth-child(2) { background: var(--secondary-light); border-left-color: var(--secondary); }
.enfoque-card:nth-child(3) { background: var(--accent-light); border-left-color: var(--accent); }
.enfoque-nombre { font-size: 1rem; font-weight: 800; color: var(--text); margin-bottom: 8px; }
.enfoque-descripcion { font-size: 0.9rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 12px; }
.enfoque-justificacion {
  background: rgba(255,255,255,0.6);
  border-radius: 7px;
  padding: 12px 14px;
}
.enfoque-justificacion-label {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 5px;
}
.enfoque-justificacion-texto { font-size: 0.88rem; color: var(--text); line-height: 1.6; }
/* Siguiente paso */
.siguiente-paso {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin-bottom: 6px;
}
.siguiente-paso-label {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-bottom: 7px;
}
.siguiente-paso p { font-size: 0.92rem; line-height: 1.65; color: var(--text); }
.recursos-locales {
  background: #FEF9EF;
  border: 1.5px solid #F2D7A0;
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin: 14px 0 22px;
}
.recursos-titulo {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #B36A2D;
  margin-bottom: 8px;
}
.recursos-locales p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #4E392E;
}

/* ─── Optional modules (details/summary) ────────────────────── */
.optional-modules { margin-bottom: 24px; }
.optional-header { margin-bottom: 14px; }
.optional-header h3 {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 5px;
}
.optional-header p {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.optional-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  overflow: hidden;
}
.optional-card summary {
  padding: 14px 18px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  justify-content: space-between;
}
.optional-card summary::-webkit-details-marker { display: none; }
.optional-module-list { padding: 0 18px; }
.optional-module-list:first-of-type { padding-top: 14px; }
.optional-module-list:last-of-type { padding-bottom: 14px; }
.question-subtitle {
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-top: 4px;
  margin-bottom: 4px;
  padding: 0 4px;
}
.alertas-especificas {
  margin-bottom: 16px;
}
.alerta-especifica-item {
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  padding: 9px 13px;
  margin-bottom: 6px;
  border-left: 3px solid var(--accent);
  line-height: 1.5;
}

/* ─── Credibility badge ──────────────────────────────────────── */
.credibility-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--accent-light);
  border: 1px solid var(--accent);
  border-radius: 99px;
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 18px;
  letter-spacing: 0.01em;
  line-height: 1.4;
}
.badge-icon { font-size: 0.85rem; }

/* ─── Anamnesis screen ───────────────────────────────────────── */
.anamnesis-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 28px;
}
.anamnesis-field { display: flex; flex-direction: column; gap: 7px; }
.anamnesis-field--full { }
.field-label { font-size: 0.85rem; font-weight: 700; color: var(--text-muted); }
.field-input, .field-select {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: inherit;
  font-size: 0.93rem;
  color: var(--text);
  width: 100%;
  transition: border-color var(--transition);
}
.field-input:focus, .field-select:focus { outline: none; border-color: var(--primary); }
.field-select { cursor: pointer; }
.genero-options { display: flex; flex-wrap: wrap; gap: 8px; }
.genero-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.genero-pill input { display: none; }
.genero-pill span {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 99px;
  padding: 7px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  transition: var(--transition);
}
.genero-pill:has(input:checked) span {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 700;
}
.genero-pill:hover span { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

/* ─── Test info (¿Qué es?) ───────────────────────────────────── */
.test-info-toggle {
  display: inline-block;
  margin-left: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 99px;
  padding: 2px 9px;
  cursor: pointer;
  user-select: none;
  vertical-align: middle;
}
.test-info-toggle:hover { background: var(--accent); color: #fff; }
.test-info-box {
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--text);
  margin: 0 18px 16px;
  border-left: 3px solid var(--accent);
}

/* ─── Resumen respuestas ─────────────────────────────────────── */
.resumen-respuestas {
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  font-size: 0.93rem;
  line-height: 1.78;
  color: var(--text);
  margin-bottom: 20px;
  font-style: italic;
  border-left: 3px solid var(--primary);
}

/* ─── Enfoque labels ─────────────────────────────────────────── */
.enfoque-label {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.enfoque-label--principal { color: var(--primary); }
.enfoque-label--alt { color: var(--text-muted); }

/* ─── Psicólogos ─────────────────────────────────────────────── */
.psicologos-section {
  margin: 22px 0;
  border-top: 1.5px solid var(--border);
  padding-top: 22px;
}
.psicologos-titulo {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.psicologos-nota {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.5;
}
.psicologos-container { display: flex; flex-direction: column; gap: 12px; }
.psicologo-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}
.psicologo-nombre { font-size: 0.95rem; font-weight: 800; color: var(--text); margin-bottom: 3px; }
.psicologo-esp { font-size: 0.87rem; color: var(--primary); font-weight: 600; margin-bottom: 8px; }
.psicologo-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.psicologo-meta span {
  font-size: 0.77rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 2px 10px;
  color: var(--text-muted);
  font-weight: 500;
}
.psicologo-formacion { font-size: 0.78rem; color: var(--text-muted); line-height: 1.5; }

/* ─── Recursos grid ──────────────────────────────────────────── */
.recursos-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 12px 0;
}
.recurso-item {
  background: rgba(255,255,255,0.5);
  border-radius: 7px;
  padding: 10px 13px;
}
.recurso-nombre { font-size: 0.83rem; font-weight: 800; color: #B36A2D; }
.recurso-detalle { font-size: 0.83rem; color: #4E392E; line-height: 1.5; }
.recursos-crisis {
  margin-top: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #7F1D1D;
  line-height: 1.5;
}

/* ─── Clinical standards badge (result) ─────────────────────── */
/* .clinical-standards-badge: definición única consolidada más abajo (pantalla final) */

/* ─── Sobre herramienta ──────────────────────────────────────── */
.sobre-herramienta {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  margin: 14px 0;
  overflow: hidden;
}
.sobre-herramienta summary {
  padding: 14px 18px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg);
}
.sobre-herramienta summary::-webkit-details-marker { display: none; }
.sobre-herramienta summary::before { content: '▸'; font-size: 0.75rem; }
.sobre-herramienta[open] summary::before { content: '▾'; }
.sobre-contenido {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--border);
}
.sobre-contenido p, .sobre-contenido li {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.sobre-contenido ul { padding-left: 20px; }
.sobre-contenido strong { color: var(--text); }

/* ─── Optional module details ────────────────────────────────── */
.optional-card summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ─── Brand logo + Ancora link ───────────────────────────────── */
.brand-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.brand-logo { flex-shrink: 0; }
.btn-ancora-link {
  display: inline-block;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-light);
  border: none;
  border-radius: 99px;
  padding: 4px 12px;
  cursor: pointer;
  margin-bottom: 16px;
  transition: var(--transition);
}
.btn-ancora-link:hover { background: var(--accent); color: #fff; }

/* ─── Context note (adaptive empathy) ───────────────────────── */
.context-note {
  background: linear-gradient(135deg, #F0EDF6, #E8F5F2);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 1rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 18px;
}

/* ─── Modal overlay ──────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}
.modal-box {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 36px 32px;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}
@media (max-width: 500px) {
  .modal-box { padding: 28px 20px; }
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
  transition: color var(--transition);
}
.modal-close:hover { color: var(--text); }

/* ─── Ancora modal content ───────────────────────────────────── */
.ancora-logo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 6px;
}
.ancora-logo-text {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
  line-height: 1;
}
.ancora-tm {
  font-size: 0.65rem;
  font-weight: 700;
  vertical-align: super;
  letter-spacing: 0;
}
.ancora-tagline {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 20px;
  letter-spacing: 0.01em;
}
.ancora-desc {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}
.ancora-desc p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.ancora-valores {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}
.ancora-valor {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}
.ancora-valor-icon { flex-shrink: 0; }
.ancora-valor-nombre {
  font-size: 0.87rem;
  font-weight: 700;
  color: var(--text);
}
.ancora-valor-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 1px;
}
.ancora-footer {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* ─── Recomendación final ────────────────────────────────────── */
/* .recomendacion-final: definición única consolidada más abajo (pantalla final) */
.rec-final-label {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--secondary);
  margin-bottom: 8px;
}
.rec-final-especialista {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
}
.rec-final-porque {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 16px;
}
.rec-final-preguntas-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.rec-final-preguntas {
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.rec-final-preguntas li {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.55;
}

/* ─── Strong in clinical text ────────────────────────────────── */
.enfoque-justificacion-texto strong,
.resumen-respuestas strong,
.rec-final-porque strong,
.siguiente-paso p strong {
  font-weight: 800;
  color: var(--primary);
}

/* ─── Con quién vive pills ───────────────────────────────────── */
.convive-options { display: flex; flex-wrap: wrap; gap: 8px; }
.convive-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.convive-pill input { display: none; }
.convive-pill span {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 99px;
  padding: 7px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  transition: var(--transition);
}
.convive-pill:has(input:checked) span {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 700;
}
.convive-pill:hover span { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

/* ─── Communes autocomplete ──────────────────────────────────── */
.autocomplete-wrap { position: relative; }
.autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  z-index: 100;
  max-height: 240px;
  overflow-y: auto;
}
.autocomplete-item {
  padding: 10px 14px;
  font-size: 0.88rem;
  color: var(--text);
  cursor: pointer;
  transition: background var(--transition);
}
.autocomplete-item:hover { background: var(--primary-light); color: var(--primary); font-weight: 600; }
.autocomplete-item:not(:last-child) { border-bottom: 1px solid var(--border); }

/* ─── Result greeting ────────────────────────────────────────── */
.result-greeting {
  background: linear-gradient(135deg, var(--primary-light), #EEF7F4);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.55;
  margin-bottom: 18px;
}

/* ─── Email send section ─────────────────────────────────────── */
.email-send-section {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  margin: 20px 0 10px;
}
.email-send-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}
.email-send-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.5;
}
.email-send-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.email-send-row .field-input {
  flex: 1;
  min-width: 0;
}
.email-send-msg {
  margin-top: 10px;
  font-size: 0.85rem;
  line-height: 1.5;
}
.email-send-msg--error { color: #9B1C1C; font-weight: 600; }
.email-send-msg--success { color: var(--accent); font-weight: 700; }

/* ─── btn--secondary ────────────────────────────────────────── */
.btn--secondary {
  background: var(--secondary-light);
  color: var(--secondary);
  border: 1.5px solid #d4957c;
  font-weight: 700;
}
.btn--secondary:hover { background: #edd8ce; border-color: var(--secondary); }

/* ─── btn--accent ────────────────────────────────────────────── */
.btn--accent {
  background: var(--accent);
  color: #fff;
  border: none;
  white-space: nowrap;
}
.btn--accent:hover { background: #963f52; }
.btn--accent:disabled { background: var(--border); color: var(--text-muted); cursor: not-allowed; }

@media (max-width: 480px) {
  .email-send-row { flex-direction: column; }
  .email-send-row .btn--accent { width: 100%; }
}

/* ─── btn--sm ────────────────────────────────────────────────── */
.btn--sm {
  padding: 8px 18px;
  font-size: 0.82rem;
}

/* ─── Rec-final: orientacion terapeutica tag ─────────────────── */
.rec-final-orientacion {
  display: inline-block;
  background: var(--secondary);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 99px;
  padding: 4px 14px;
  margin-bottom: 14px;
  letter-spacing: 0.01em;
}

/* ─── Derivation widget ──────────────────────────────────────── */
.derivacion-widget {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin: 20px 0;
}
.derivacion-titulo {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
}
.derivacion-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  line-height: 1.55;
}
.derivacion-modalidad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}
@media (max-width: 480px) {
  .derivacion-modalidad-grid { grid-template-columns: 1fr; }
}
.derivacion-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 14px 10px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  text-align: center;
}
.derivacion-btn:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}
.derivacion-btn--selected {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}
.derivacion-btn--selected .derivacion-btn-sub { color: rgba(255,255,255,0.75); }
.derivacion-btn-icon { font-size: 1.4rem; line-height: 1; }
.derivacion-btn-label {
  font-size: 0.88rem;
  font-weight: 800;
  color: inherit;
}
.derivacion-btn-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.35;
}
.derivacion-btn--selected .derivacion-btn-label { color: #fff; }

.derivacion-step-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.derivacion-buscar-btn {
  margin-top: 12px;
  padding: 10px 24px;
  font-size: 0.88rem;
}

/* ─── Derivation results ─────────────────────────────────────── */
#derivacionResultados { margin-top: 18px; }
.derivacion-resultados-titulo {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 6px;
}
.derivacion-resultados-ubicacion {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 6px;
}
.derivacion-resultados-nota {
  font-size: 0.77rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.5;
}
.derivacion-psicologos-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.der-psicologo-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.der-psicologo-card--real {
  border-color: var(--accent);
  background: linear-gradient(135deg, #fff 85%, var(--accent-light));
}
.der-badge-real {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 20px;
  padding: 2px 8px;
  margin-left: 6px;
  vertical-align: middle;
  letter-spacing: 0.02em;
}
.der-psicologo-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.der-psicologo-info { flex: 1; min-width: 0; }
.der-psicologo-nombre {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text);
}
.der-psicologo-esp {
  font-size: 0.84rem;
  color: var(--primary);
  font-weight: 600;
  margin-top: 2px;
}
.der-psicologo-modalidad {
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 99px;
  padding: 3px 10px;
  white-space: nowrap;
  flex-shrink: 0;
}
.der-psicologo-contacto {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.der-psicologo-formacion {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.der-psicologo-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}
.derivacion-sin-resultados {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  padding: 16px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-top: 12px;
}
.derivacion-sin-resultados a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}
.derivacion-sin-resultados a:hover { text-decoration: underline; }

/* ─── Urgency alert (screen 3) ───────────────────────────────── */
.urgencia-alert-box {
  background: linear-gradient(135deg, #FEF2F2, #FFF5F5);
  border: 2px solid #DC2626;
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-bottom: 18px;
}
.urgencia-alert-titulo {
  font-size: 0.88rem;
  font-weight: 800;
  color: #DC2626;
  margin-bottom: 6px;
}
.urgencia-alert-texto {
  font-size: 0.88rem;
  color: #7F1D1D;
  line-height: 1.6;
  margin-bottom: 8px;
}
.urgencia-alert-recursos {
  font-size: 0.83rem;
  color: #7F1D1D;
  font-weight: 600;
}

/* ─── Tests adaptation message ───────────────────────────────── */
.tests-adaptacion-msg {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #FEF9EF;
  border: 1.5px solid #F2D7A0;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 14px;
  font-size: 0.87rem;
  color: #4E392E;
  line-height: 1.6;
}
.tests-adaptacion-icon { font-size: 1.1rem; flex-shrink: 0; }
.test-obligatorio-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--secondary);
  color: #fff;
  border-radius: 99px;
  padding: 2px 8px;
  margin-left: 8px;
  vertical-align: middle;
}

/* ─── Booking modal ──────────────────────────────────────────── */
.modal-box--lg { max-width: 560px; }

.agendar-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 4px;
}
.agendar-tab {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  background: var(--border);
  color: var(--text-muted);
  transition: var(--transition);
}
.agendar-tab--active { background: var(--primary); color: #fff; }
.agendar-tab--done   { background: var(--accent);  color: #fff; }
.agendar-tab-line {
  flex: 1;
  max-width: 60px;
  height: 2px;
  background: var(--border);
}
.agendar-tabs-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 20px;
  padding: 0 2px;
}
.agendar-tabs-labels span:nth-child(2),
.agendar-tabs-labels span:nth-child(4) { flex: 1; }
.agendar-tabs-labels span:nth-child(1),
.agendar-tabs-labels span:nth-child(3),
.agendar-tabs-labels span:nth-child(5) { width: 30px; text-align: center; }

.agendar-titulo {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 14px;
}
.agendar-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.55;
}
.agendar-psic-card {
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 18px;
}
.agendar-psic-nombre { font-size: 0.95rem; font-weight: 800; color: var(--primary); }
.agendar-psic-esp    { font-size: 0.83rem; color: var(--text); margin-top: 2px; }
.agendar-psic-meta   { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }
.agendar-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 4px;
}
.agendar-fields--col { grid-template-columns: 1fr; }
@media (max-width: 460px) { .agendar-fields { grid-template-columns: 1fr; } }

/* Clinical summary preview */
.agendar-resumen-box {
  max-height: 300px;
  overflow-y: auto;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-bottom: 16px;
  font-size: 0.82rem;
}
.resumen-clinico-preview { display: flex; flex-direction: column; gap: 12px; }
.resumen-clinico-titulo {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin-bottom: 4px;
}
.resumen-clinico-sec { border-bottom: 1px solid var(--border); padding-bottom: 10px; }
.resumen-clinico-sec:last-child { border-bottom: none; padding-bottom: 0; }
.resumen-clinico-lbl {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 5px;
}
.resumen-clinico-sec p { margin: 0; color: var(--text); line-height: 1.6; }
.resumen-clinico-relato { font-style: italic; color: var(--text-muted) !important; }
.resumen-clinico-tags { margin-top: 6px !important; display: flex; flex-wrap: wrap; gap: 5px; }
.resumen-tag {
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 99px;
  padding: 2px 8px;
}
.resumen-clinico-ul { margin: 0; padding-left: 16px; color: var(--text); }
.resumen-clinico-ul li { margin-bottom: 3px; }

/* Consent */
.agendar-consent {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 14px;
}
.agendar-consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.6;
  cursor: pointer;
}
.agendar-consent-label input { flex-shrink: 0; margin-top: 3px; width: 16px; height: 16px; accent-color: var(--primary); }

/* Confirmation success */
.agendar-exito { text-align: center; padding: 10px 0 6px; }
.agendar-exito-icon {
  width: 56px; height: 56px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-size: 1.6rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.agendar-exito-titulo  { font-size: 1.2rem; font-weight: 800; color: var(--text); margin-bottom: 8px; }
.agendar-exito-desc    { font-size: 0.88rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 16px; }
.agendar-exito-detalle {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  text-align: left;
}
.agendar-exito-detalle div {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}
.agendar-exito-detalle div span { color: var(--text-muted); }
.agendar-exito-detalle div strong { color: var(--text); }
.agendar-exito-email { font-size: 0.83rem; color: var(--text-muted); margin-bottom: 16px; }

/* ── Booking step 3 — what will be shared ─────────────────────── */
.agendar-que-compartir {
  background: var(--primary-light);
  border: 1.5px solid #C8BDD8;
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin-bottom: 16px;
}
.agendar-qc-titulo {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
  line-height: 1.4;
}
.agendar-qc-intro {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 10px;
}
.agendar-qc-lista {
  margin: 0 0 10px 0;
  padding-left: 18px;
}
.agendar-qc-lista li {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 4px;
}
.agendar-qc-nota {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 6px 0 0;
  line-height: 1.5;
}

/* ── Booking step 4 — payment ──────────────────────────────────── */
.agendar-pago-form {
  margin-bottom: 20px;
}
.agendar-pago-cargando {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 10px 0 6px;
}
.agendar-pago-monto-valor {
  font-size: 1rem;
  color: var(--text);
  padding: 10px 0 14px;
}
.agendar-pago-monto-valor strong {
  color: var(--primary);
  font-size: 1.15rem;
}
.stripe-card-element {
  background: #fff;
  border: 1.5px solid #d0c8db;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-top: 8px;
  transition: border-color 0.2s;
}
.stripe-card-element:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(107,94,122,0.12);
}
.stripe-card-errors {
  color: #c0392b;
  font-size: 0.84rem;
  margin-top: 8px;
  min-height: 1.2em;
}
.stripe-card-unavail {
  font-size: 0.88rem;
  color: var(--text-muted);
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-top: 8px;
}

/* ─── Pantalla piloto ────────────────────────────────────────── */
.piloto-outer {
  width: 100%;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 28px 16px 80px;
  background: var(--bg);
}
.piloto-shell {
  width: 100%;
  max-width: 600px;
  animation: fadeUp 0.4s ease both;
}
.card--piloto {
  position: relative;
  overflow: hidden;
  text-align: left;
}
.piloto-deco {
  position: absolute;
  top: 0; right: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}
.piloto-deco svg {
  position: absolute;
  top: 0; right: 0;
  width: 100%; height: 100%;
}
.card--piloto > *:not(.piloto-deco) { position: relative; z-index: 1; }

.piloto-hero {
  text-align: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.piloto-logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 16px;
}
.piloto-brand-name {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.piloto-brand-by {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.piloto-titulo {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.3;
}
.piloto-desc {
  font-size: 0.97rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 480px;
  margin: 0 auto;
}

.piloto-seccion { margin-bottom: 24px; }
.piloto-seccion-titulo {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin-bottom: 12px;
}

.piloto-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 480px) { .piloto-cards { grid-template-columns: 1fr; } }

.piloto-info-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.45;
}
.piloto-ic-icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.piloto-pasos { display: flex; flex-direction: column; gap: 10px; }
.piloto-paso {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
}
.piloto-paso-num {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.piloto-paso-content {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.45;
}
.piloto-paso-icon { flex-shrink: 0; color: var(--primary); }

.piloto-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
  cursor: pointer;
}
.piloto-checkbox-label input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px; height: 18px;
  margin-top: 2px;
  accent-color: var(--primary);
  cursor: pointer;
}
.piloto-checkbox-text {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.5;
  font-weight: 500;
}
.piloto-btn-cta {
  font-size: 1.05rem;
  padding: 14px;
  letter-spacing: 0.01em;
}
.piloto-btn-cta:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.piloto-disclaimer {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 16px;
  line-height: 1.6;
}

/* ─── Feedback CTA en screen-19 (after resultado) ───────────── */
.feedback-cta-wrap {
  margin: 28px 0 0;
  border-radius: var(--radius);
  overflow: hidden;
}
.feedback-cta-banner {
  background: linear-gradient(135deg, #3E5C70 0%, #4a7a6e 100%);
  padding: 24px 22px 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.feedback-cta-eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.65);
}
.feedback-cta-heading {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
}
.feedback-cta-sub {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.78);
  margin-bottom: 6px;
}
.feedback-cta-btn {
  background: #fff !important;
  color: var(--primary) !important;
  border: none !important;
  font-size: 1rem !important;
  font-weight: 800 !important;
  padding: 15px 20px !important;
  margin-top: 4px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18) !important;
}
.feedback-cta-btn:hover:not(:disabled) {
  background: #f0ebf7 !important;
  box-shadow: 0 4px 14px rgba(0,0,0,0.22) !important;
}

/* ─── Restart row at bottom of result screen ─────────────────── */
.result-restart-row {
  text-align: center;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* ─── Encuesta piloto (screen-20) ────────────────────────────── */
/* ─── Survey card (screen-20) ────────────────────────────────── */
.card--survey {
  padding: 32px 28px 36px;
}
@media (min-width: 480px) {
  .card--survey { padding: 40px 36px 44px; }
}

.feedback-header {
  text-align: center;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--primary-light);
  margin-bottom: 32px;
}
.feedback-brand {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.feedback-brand-by {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}
.feedback-titulo {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 8px;
}
.feedback-subtitulo {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.feedback-pregunta {
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.feedback-pregunta:last-of-type {
  border-bottom: none;
}
.feedback-label {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
  display: block;
  line-height: 1.45;
}
.feedback-opcional {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* Column layout (default for this survey) */
.feedback-opciones {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.feedback-opciones--col {
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 10px;
}
.feedback-opcion {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 18px;
  font-size: 1rem;
  font-weight: 500;
  font-family: inherit;
  color: var(--text);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
  line-height: 1.4;
  text-align: left;
}
.feedback-opciones--col .feedback-opcion {
  width: 100%;
}
.feedback-opcion:hover { border-color: var(--primary); background: var(--primary-light); }
.feedback-opcion.selected {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
}

.feedback-estrellas {
  display: flex;
  gap: 8px;
  padding: 6px 0;
}
.estrella {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--border);
  padding: 3px;
  border-radius: 4px;
  transition: color var(--transition), transform var(--transition);
  line-height: 0;
}
.estrella svg path { fill: none; transition: fill 0.15s; }
.estrella:hover, .estrella.hover { color: #E8A838; transform: scale(1.12); }
.estrella:hover svg path, .estrella.hover svg path { fill: #F5C842; stroke: #E8A838; }
.estrella.active { color: #E8A838; }
.estrella.active svg path { fill: #F5C842; stroke: #E8A838; }

/* Survey textarea */
.free-text--survey {
  font-size: 1rem;
  line-height: 1.6;
  padding: 14px 16px;
}

/* Survey submit button */
.btn--survey-submit {
  font-size: 1.05rem !important;
  padding: 16px 20px !important;
  margin-top: 4px;
}

.fb-msg {
  margin-top: 16px;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  display: none;
  line-height: 1.55;
}
.fb-msg.ok {
  display: block;
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid var(--accent);
  font-weight: 600;
}
.fb-msg.err {
  display: block;
  background: #FEF2F2;
  color: #B91C1C;
  border: 1px solid #FECACA;
}

/* ─── Dev toolbar (localhost / onrender only) ────────────────── */
#devToolbar {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 9999;
}
#devFillBtn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #1a1a2e;
  color: #a8d8cf;
  border: 1.5px solid #2e4a5a;
  border-radius: 20px;
  padding: 8px 16px 8px 13px;
  font-family: 'Courier New', monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
  transition: background 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
#devFillBtn:hover {
  background: #2d2d4e;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}
#devFillBtn:active {
  transform: scale(0.97);
}

/* ── PWA install hint ─────────────────────────────────────────────── */
.pwa-install-hint {
  display: none;
  align-items: center;
  gap: 10px;
  background: #E3EDF2;
  border: 1px solid #C4B8D4;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 0.82rem;
  color: #4a3f5c;
  line-height: 1.4;
}
.pwa-install-hint svg {
  flex-shrink: 0;
  color: #3E5C70;
}
.pwa-install-hint span {
  flex: 1;
}
.pwa-install-close {
  background: none;
  border: none;
  font-size: 1.1rem;
  line-height: 1;
  color: #8a7a9a;
  cursor: pointer;
  padding: 0 2px;
  flex-shrink: 0;
}
@media (min-width: 600px) {
  .pwa-install-hint { display: none !important; }
}

/* ── Screen 19: Crisis result mode ─────────────────────────────────────── */
.resultado-crisis {
  margin-bottom: 8px;
}

.alerta-importante--crisis {
  background: #FEF2F2;
  border: 2px solid #DC2626;
  border-radius: 12px;
  padding: 22px 24px;
  margin-bottom: 16px;
}

.alerta-importante--crisis h3 {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #DC2626;
  margin: 0 0 12px;
}

.alerta-importante--crisis p {
  font-size: 0.97rem;
  color: #3D1010;
  line-height: 1.7;
  margin: 0 0 14px;
}

.alerta-importante--crisis p:last-child { margin-bottom: 0; }

.alerta-importante--crisis strong {
  color: #3D1010;
}

.alerta-importante--crisis .crisis-numbers {
  margin: 8px 0 14px;
}

.alerta-importante--crisis .crisis-numbers a {
  color: #7B1C1C;
  border-bottom-color: #C46060;
}

.crisis-riesgo-inmediato {
  font-size: 0.9rem !important;
  color: #7F1D1D !important;
  font-style: italic;
}

.derivacion-info-crisis {
  background: #F9F6F3;
  border: 1.5px solid #E8DDD4;
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 20px;
}

.derivacion-info-crisis h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: #5C4A4A;
  margin: 0 0 8px;
}

.derivacion-info-crisis p {
  font-size: 0.93rem;
  color: #7A6464;
  line-height: 1.7;
  margin: 0;
}

/* ── Screen 25: Crisis protocol ────────────────────────────────────────── */
.screen--crisis { background: #FAF7F4; }

.card--crisis {
  background: #FFFBF7;
  border: 1.5px solid #E8DDD4;
  border-radius: 16px;
  padding: 32px 28px;
  max-width: 520px;
  margin: 0 auto;
}

.crisis-titulo {
  font-size: 1.45rem;
  font-weight: 700;
  color: #3D2C2C;
  margin: 0 0 18px;
  line-height: 1.3;
}

.crisis-texto {
  font-size: 1rem;
  color: #5C4A4A;
  line-height: 1.7;
  margin: 0 0 14px;
}

.crisis-resources {
  background: #F4EDE8;
  border-radius: 12px;
  padding: 18px 20px;
  margin: 22px 0;
}

.crisis-resources__intro {
  font-size: 0.95rem;
  color: #3D2C2C;
  margin: 0 0 12px;
}

.crisis-numbers {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.crisis-numbers li {
  font-size: 0.97rem;
  color: #3D2C2C;
}

.crisis-numbers a {
  color: #7B3F3F;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1.5px solid #C4908A;
  padding-bottom: 1px;
  transition: color 0.15s;
}

.crisis-numbers a:hover,
.crisis-numbers a:focus {
  color: #5A1A1A;
  border-bottom-color: #5A1A1A;
}

.crisis-numbers__detail {
  font-size: 0.82rem;
  color: #8A6E6E;
  margin-left: 4px;
  font-weight: 400;
}

.crisis-suggestion {
  font-size: 0.92rem;
  color: #7A6464;
  font-style: italic;
  margin: 0 0 26px;
  line-height: 1.6;
}

.crisis-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn--crisis-call {
  display: block;
  text-align: center;
  text-decoration: none;
  background: #7B3F3F;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
  font-family: inherit;
}

.btn--crisis-call:hover,
.btn--crisis-call:focus {
  background: #5A1A1A;
  color: #fff;
  text-decoration: none;
}

.btn--crisis-continue {
  color: #7A6464;
  border-color: #D4C4C4;
  font-size: 0.9rem;
}

/* ── Screen 31: Screening breve (protocolo de psicosis) ─────────────────── */
.screen--scr { background: #FAF7F4; }

.card--scr {
  background: #FFFBF7;
  border: 1.5px solid #E8DDD4;
  border-radius: 16px;
  padding: 32px 28px;
  max-width: 560px;
  margin: 0 auto;
}

.scr-titulo {
  font-size: 1.35rem;
  font-weight: 700;
  color: #3E5C70;
  margin: 0 0 12px;
  line-height: 1.3;
  text-align: center;
}

.scr-sub {
  font-size: 0.97rem;
  color: #3E5C70;
  line-height: 1.65;
  margin: 0 0 24px;
  text-align: center;
}

.scr-questions {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.scr-q {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 18px;
  border-bottom: 1px solid #EFE7DF;
}
.scr-q:last-child { border-bottom: none; padding-bottom: 0; }

.scr-q__text {
  font-size: 1rem;
  color: #33303A;
  line-height: 1.5;
  margin: 0;
}

.scr-q__opts {
  display: flex;
  gap: 10px;
}

.scr-pill {
  position: relative;
  flex: 0 0 auto;
  min-width: 84px;
}
.scr-pill input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}
.scr-pill span {
  display: block;
  text-align: center;
  padding: 9px 20px;
  border: 1.5px solid #cfdbe2;
  border-radius: 999px;
  font-size: 0.95rem;
  color: #5c6b73;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.scr-pill input:checked + span {
  border-color: #3E5C70;
  background: #e6f1fb;
  color: #3E5C70;
  font-weight: 700;
}
.scr-pill input:focus-visible + span {
  outline: 2px solid #3E5C70;
  outline-offset: 2px;
}

.scr-error {
  color: #A6412F;
  font-size: 0.9rem;
  margin: 16px 0 0;
}

/* Follow-up (frecuencia + angustia) — se despliega tras un "Sí" de tipo psicótico */
.scr-followup {
  margin-top: 4px;
  padding: 18px 18px 6px;
  background: #eef4f8;
  border: 1px solid #d3e0e8;
  border-radius: 12px;
}
.scr-followup__intro {
  font-size: 0.9rem;
  font-weight: 600;
  color: #54636b;
  margin: 0 0 12px;
}
.scr-q__opts--col { flex-direction: column; align-items: stretch; }
.scr-pill--wide { min-width: 0; width: 100%; }
.scr-pill--wide span { text-align: left; }

.scr-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 26px;
}

/* ── Screen 32: Nivel 1 (acompañamiento cuidadoso, no alarmante) ────────── */
.screen--nivel1 { background: #eef3f7; }

.card--nivel1 {
  background: #FFFDFB;
  border: 1.5px solid #d3e0e8;
  border-radius: 16px;
  padding: 32px 28px;
  max-width: 540px;
  margin: 0 auto;
}

.nivel1-titulo {
  font-size: 1.4rem;
  font-weight: 700;
  color: #33454f;
  margin: 0 0 18px;
  line-height: 1.3;
}

.nivel1-texto {
  font-size: 1rem;
  color: #46555f;
  line-height: 1.72;
  margin: 0 0 14px;
}

.nivel1-resources {
  background: #eef4f8;
  border-radius: 12px;
  padding: 18px 20px;
  margin: 22px 0;
}

.nivel1-resources__intro {
  font-size: 0.9rem;
  font-weight: 600;
  color: #54636b;
  margin: 0 0 12px;
}

.nivel1-numbers {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nivel1-numbers li {
  font-size: 0.95rem;
  color: #54636b;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.nivel1-numbers a {
  color: #3E5C70;
  text-decoration: none;
  font-weight: 700;
  border-bottom: 1.5px solid #b3cad6;
  padding-bottom: 1px;
  transition: color 0.15s;
}
.nivel1-numbers a:hover,
.nivel1-numbers a:focus { color: #2f4a5a; border-bottom-color: #2f4a5a; }

.nivel1-numbers span {
  font-size: 0.85rem;
  color: #7c8a91;
}

.nivel1-cierre {
  font-size: 0.95rem;
  color: #5c6b73;
  line-height: 1.65;
  margin: 0 0 24px;
}

.nivel1-actions { display: flex; }
.nivel1-actions .btn--crisis-call {
  background: #3E5C70;
  flex: 1;
}
.nivel1-actions .btn--crisis-call:hover,
.nivel1-actions .btn--crisis-call:focus { background: #2f4a5a; }

/* ── Screen 33: Nivel 2 (normaliza y continúa) ──────────────────────────── */
.screen--nivel2 { background: #F4F8F5; }

.card--nivel2 {
  background: #FDFEFD;
  border: 1.5px solid #D8E6DC;
  border-radius: 16px;
  padding: 32px 28px;
  max-width: 520px;
  margin: 0 auto;
}

.nivel2-titulo {
  font-size: 1.35rem;
  font-weight: 700;
  color: #2C4033;
  margin: 0 0 16px;
  line-height: 1.3;
}

.nivel2-texto {
  font-size: 1rem;
  color: #47584C;
  line-height: 1.72;
  margin: 0 0 14px;
}

.nivel2-actions {
  display: flex;
  margin-top: 26px;
}
.nivel2-actions .btn { flex: 1; }

.btn--crisis-continue:hover {
  color: #3D2C2C;
  border-color: #A08080;
  background: transparent;
}

/* Contexto antes de AUDIT/DAST-10 */
.tests-context-line {
  font-size: 13px;
  line-height: 1.6;
  color: #5A4E45;
  background: #F6F2ED;
  border-radius: 7px;
  padding: 11px 14px;
  margin: 4px 0 12px;
}

/* PHQ-9 ítem 9 = 1 · banner suave (sin rojo) */
.phq9-soft-banner {
  margin-top: 12px;
  background: #FFF3E0;
  border: 1px solid #E8A045;
  border-radius: 7px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.6;
  color: #7A4500;
  font-weight: 700;
}

/* Pantalla de consentimiento informado */
.consent-titulo { font-size: 1.15rem; font-weight: 800; color: #28222C; margin: 0 0 14px; line-height: 1.4; }
.consent-texto { font-size: 13px; line-height: 1.65; color: #4E4640; margin: 0 0 12px; }
.consent-crisis { background: #FBF8F2; border: 1px solid #E2DCD2; border-radius: 7px; padding: 10px 12px; }
.consent-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: #28222C; margin: 8px 0 18px; cursor: pointer; }
.consent-check input { margin-top: 3px; flex-shrink: 0; }

/* Acompañamiento conjunto (REGLA DURA TRANSVERSAL) */
.acompanamiento-conjunto {
  background: var(--primary-light);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  margin-top: 8px;
}
.acompanamiento-titulo {
  font-weight: 700;
  color: var(--primary);
  font-size: 1rem;
  margin-bottom: 8px;
}
.acompanamiento-texto {
  color: var(--text);
  line-height: 1.7;
  font-size: 0.95rem;
  margin: 0;
}

/* ── Página de enfoques (enfoques.html) ── */
.enfoques-page { max-width: 720px; margin: 0 auto; padding: 32px 20px 64px; }
.enfoques-page-header { margin-bottom: 22px; }
.enfoques-page-brand { font-size: 13px; font-weight: 800; color: var(--primary); }
.enfoques-page-brand span { font-weight: 500; color: var(--text-muted); }
.enfoques-page-title { font-size: 1.7rem; font-weight: 800; color: var(--text); margin: 6px 0 0; }
.enfoques-nota-transversal {
  background: var(--primary-light); border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm); padding: 16px 18px; margin: 0 0 28px;
  font-size: 13.5px; line-height: 1.65; color: var(--text);
}
.enfoque-info-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px 24px; margin-bottom: 18px;
}
.enfoque-info-titulo { font-size: 1.15rem; font-weight: 800; color: var(--text); margin: 0 0 14px; }
.enfoque-bloque { margin-bottom: 12px; }
.enfoque-lbl { display: block; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin-bottom: 3px; }
.enfoque-bloque p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text); }
.enfoque-nota-especial {
  background: var(--accent-light); border-radius: var(--radius-sm); padding: 12px 14px;
  font-size: 13px; line-height: 1.6; color: var(--text); margin: 4px 0 14px;
}
.enfoque-ver-btn { margin-top: 6px; }
.enfoque-especialistas { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.esp-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; }
.esp-card__nombre { font-weight: 700; font-size: 14px; color: var(--text); }
.esp-card__esp { font-size: 13px; color: var(--primary); margin-top: 2px; }
.esp-card__meta { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.esp-card__form { font-size: 12px; color: var(--text-muted); margin-top: 4px; line-height: 1.5; }
.enfoque-especialistas .empty { color: var(--text-muted); font-size: 13px; }

/* ── Pausar y continuar después ── */
.field-required { color: #C0392B; font-weight: 800; }
.field-error { color: #C0392B; font-size: 12.5px; margin: 5px 0 0; }

/* ── Tooltip explicativo (ícono ?) ── */
.field-tooltip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; margin-left: 5px; vertical-align: middle;
  border-radius: 50%; border: 1px solid #DDD5CC;
  color: #7A6E74; font-size: 11px; font-weight: 700; line-height: 1;
  cursor: pointer; position: relative; user-select: none;
}
.field-tooltip:hover { background: #F6F2ED; }
.field-tooltip__text {
  display: none; position: absolute; bottom: calc(100% + 8px); left: 50%;
  transform: translateX(-50%);
  width: 250px; max-width: 76vw;
  background: #fff; color: #4A4148; border: 1px solid #DDD5CC; border-radius: 8px;
  padding: 10px 12px; font-size: 12px; font-weight: 400; line-height: 1.55;
  box-shadow: 0 4px 16px rgba(40,34,44,.12); z-index: 60; text-align: left;
  white-space: normal;
}
.field-tooltip:hover .field-tooltip__text,
.field-tooltip:focus .field-tooltip__text,
.field-tooltip.is-open .field-tooltip__text { display: block; }
.btn-pausar {
  position: fixed; top: 14px; right: 14px; z-index: 50;
  background: #fff; color: #6B5E66; border: 1px solid #DDD5CC;
  border-radius: 999px; padding: 8px 15px; font-size: 13px; font-weight: 600;
  cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.07); font-family: inherit;
}
.btn-pausar:hover { background: #F6F2ED; }
.pausa-overlay {
  position: fixed; inset: 0; z-index: 100; background: rgba(40,34,44,.55);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.pausa-modal {
  background: #fff; border-radius: 16px; padding: 28px 26px; max-width: 420px;
  width: 100%; text-align: center; box-shadow: 0 12px 40px rgba(0,0,0,.2);
}
.pausa-modal h3 { margin: 0 0 10px; font-size: 1.2rem; color: #28222C; }
.pausa-modal p { margin: 0 0 18px; font-size: 14px; color: #6B5E66; line-height: 1.6; }

/* ═══════════════════════════════════════════════════════════════════════════
   SISTEMA VISUAL v3 — rediseño Ancora (azul/crema · Cormorant + Inter + Jost)
   Capa de overrides sobre la estructura existente. NO cambia HTML, copy ni UX.
   La pantalla de crisis (paleta cálida) se deja intacta a propósito: es una
   decisión pendiente (sección D#4 del inventario de handoff).
   ═══════════════════════════════════════════════════════════════════════════ */

/* — Tokens de color (remapea la paleta morado/verde → azul/crema/rojo) — */
:root {
  --bg:              #F4F8FA;   /* blanco roto */
  --surface:         #FFFFFF;
  --primary:         #3E5C70;   /* azul hondo */
  --primary-light:   #E3EDF2;   /* niebla */
  --secondary:       #6E96A2;   /* azul medio */
  --secondary-light: #F6F0E6;   /* beige */
  --accent:          #af4d63;   /* rojo frío */
  --accent-light:    #FBF7F1;   /* crema */
  --text:            #2c3a44;   /* tinta títulos */
  --text-muted:      #5a6b74;   /* secundario suave */
  --border:          #cdd6dc;
  --radius:          18px;
}

/* — Tipografía base: Inter — */
body { font-family: 'Inter', system-ui, sans-serif; font-weight: 300; }

/* — Títulos en Cormorant Garamond (se excluye la pantalla de crisis) — */
.step-question, .piloto-titulo, .result-title, .consent-titulo,
.enfoques-page-title, .welcome-anamnesis-titulo, .piloto-seccion-titulo {
  font-family: 'Jost', system-ui, sans-serif;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--text);
}
.step-question { font-size: 1.35rem; line-height: 1.5; font-weight: 400; }
.piloto-titulo { font-size: 2rem; }
.result-title  { font-weight: 300; }

/* — Wordmark "Derívame" en Jost 300 — */
.brand-name, .piloto-brand-name, .welcome-brand-name,
.result-brand, .feedback-brand, .enfoques-page-brand {
  font-family: 'Jost', sans-serif; font-weight: 300; letter-spacing: 0.01em;
}

/* — Cuerpo / hints / labels — */
.step-hint, .field-label { font-family: 'Inter', sans-serif; }
.field-label { text-transform: none; }

/* — Botones: rectangulares (radio 3px), MAYÚSCULAS, tracking — nunca pill — */
.btn {
  border-radius: 3px;
  border-width: 1px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 15px 32px;
}
.btn--primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn--primary:hover:not(:disabled) { background: #335062; box-shadow: none; }
.btn--ghost  { background: transparent; border-color: rgba(62,92,112,0.45); color: var(--primary); }
.btn--ghost:hover { background: #E3EDF2; border-color: var(--primary); color: var(--primary); }

/* — Inputs — */
.field-input, .field-select { border: 1px solid #cdd6dc; border-radius: 8px; }
.field-input::placeholder { color: #9aa6ad; }
.field-input:focus, .field-select:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(62,92,112,0.08);
}

/* — Superficies — */
.card { border-radius: var(--radius); box-shadow: 0 14px 36px rgba(46,74,90,0.10), 0 2px 6px rgba(46,74,90,0.05); }
.checkbox-card, .option-card { border-radius: 12px; }

/* — Barra de progreso — */
.progress-fill  { background: var(--primary); }
.progress-track { background: #E3EDF2; }

/* — Números de paso: círculo con borde azul (Jost) — */
.piloto-paso-num {
  background: transparent; color: var(--primary);
  border: 1.5px solid var(--primary);
  font-family: 'Jost', sans-serif; font-weight: 500;
}
/* ═══════════════════════ fin Sistema Visual v3 ═══════════════════════ */

/* ═══════════════════════════════════════════════════════════════════════════
   SISTEMA VISUAL v3 — ESTRUCTURA (barra de piloto, fondos, títulos, opciones)
   Recreación de Flujo Web/Movil.dc.html sobre la estructura existente.
   No cambia lógica ni copy. Crisis (screen-25) intacta.
   ═══════════════════════════════════════════════════════════════════════════ */

/* — Fondo del flujo: gradiente niebla→blanco roto; fuera decoraciones viejas — */
body { background: linear-gradient(180deg, #E3EDF2 0%, #F4F8FA 100%); background-attachment: fixed; }
.piloto-deco, .welcome-deco { display: none !important; }

/* — Barra de piloto (header de banda azul en el flujo) — */
.pilot-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: #3E5C70; color: #F4F8FA;
  margin: -0px 0 0; padding: 13px 20px; border-radius: 0;
  width: 100%;
}
.pilot-bar__brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pilot-lockup { position: relative; width: 132px; height: 40px; flex-shrink: 0; }
.pilot-lockup svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pilot-wordmark {
  position: absolute; left: 27.5%; top: 50%; transform: translateY(-50%);
  font-family: 'Jost', sans-serif; font-weight: 300; font-size: 19px;
  letter-spacing: 0.4px; color: #F4F8FA; white-space: nowrap;
}
.pilot-tagline {
  font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 400;
  font-size: 13px; color: #A9C5D6;
}
.pilot-step {
  font-family: 'Inter', sans-serif; font-weight: 500; font-size: 10.5px;
  letter-spacing: 0.16em; text-transform: uppercase; color: rgba(244,248,250,0.82);
  text-align: right; flex-shrink: 0;
}
/* Barra de progreso: reducida a línea fina bajo la banda */
.progress-wrap.visible { margin-top: 0; }
.progress-track { height: 3px; background: rgba(62,92,112,0.14); }
.progress-label { display: none; }  /* el paso ahora vive en la banda de piloto */

/* — Títulos de pantalla: Cormorant MAYÚSCULAS centrados — */
.step-header { text-align: center; }
.step-question {
  text-transform: uppercase; text-align: center;
  letter-spacing: 0.13em; font-weight: 400; color: #2c3a44; line-height: 1.4;
}
.step-hint { text-align: center; }

/* — Opciones de pregunta: cajitas crema con relieve (patrón P4 + profundidad) — */
.checkbox-card, .option-card {
  background: linear-gradient(180deg,#FEFCF8,#FBF7F1); border: 1px solid #EFE6D8; border-radius: 13px;
  box-shadow: 0 4px 14px rgba(46,74,90,.05);
}
.checkbox-card:hover, .option-card:hover { border-color: var(--secondary); background: #fff; box-shadow: 0 8px 20px rgba(46,74,90,.09); }
.checkbox-card:has(input:checked), .option-card:has(input:checked) {
  border-color: var(--primary); background: linear-gradient(180deg,#eff7ff,#e3eefb); box-shadow: 0 10px 24px rgba(62,92,112,.16);
}
/* #5 (Extension): negrita uniforme en opciones seleccionadas (igual que las categorías/motivos) */
/* #2 (Extension): se amplía a `> span` para cubrir opciones cuyo texto va en un <span> plano
   sin la clase .option-text (p. ej. screen-30 tratamiento psiquiátrico / medicación),
   garantizando negrita consistente en TODAS las opciones seleccionadas. */
.checkbox-card:has(input:checked) .option-text,
.option-card:has(input:checked) .option-text,
.checkbox-card:has(input:checked) > span,
.option-card:has(input:checked) > span {
  font-weight: 600;
  color: var(--primary);
}
.option-card::before {
  width: 19px; height: 19px; border-radius: 5px;
  border: 1.5px solid rgba(62,92,112,0.45);
}
/* Textarea opcional: borde punteado */
.libre-text-wrap textarea, .adaptacion-textarea { border-style: dashed !important; border-color: #cdd6dc !important; }

/* — Botón Pausar: rectangular (no pill) — */
.btn-pausar {
  border-radius: 3px; text-transform: uppercase; letter-spacing: 0.1em;
  font-size: 11px; font-weight: 500; color: var(--primary); border-color: rgba(62,92,112,0.4);
}

/* — Notas empáticas / saludo / contexto: crema con borde azul medio (sin gradientes viejos) — */
.empatic-note, .context-note {
  background: #F7F0E4 !important; border: 1px solid #EADFCB !important;
  border-left: 5px solid var(--primary) !important; color: #2A343C !important; border-radius: 12px;
  font-size: 1rem !important; font-weight: 500 !important;
}
/* ═══════════════════════ fin v3 estructura ═══════════════════════ */

/* ═══════════════════════════════════════════════════════════════════════════
   v3 — LAYOUT ESCRITORIO, EYEBROW/DOTS, SITIO PÚBLICO (splash + hero)
   ═══════════════════════════════════════════════════════════════════════════ */

/* — Limpieza de pendientes: logos morados viejos, íconos, títulos — */
.piloto-logo-row > svg, .welcome-logo-row > svg { display: none; }  /* logo redundante con la barra */
.piloto-ic-icon svg [stroke], .piloto-paso-icon svg [stroke] { stroke: #6E96A2 !important; }
.piloto-ic-icon svg [fill]:not([fill="none"]), .piloto-paso-icon svg [fill]:not([fill="none"]) { fill: #6E96A2 !important; }
.consent-titulo, .welcome-anamnesis-titulo, .piloto-titulo {
  text-transform: uppercase; letter-spacing: 0.05em;
}

/* — Eyebrow "PREGUNTA X DE Y" (inyectado por JS en .step-header) — */
.q-eyebrow {
  font-family: 'Inter', sans-serif; font-weight: 700; font-size: 11px;
  letter-spacing: 0.22em; text-transform: uppercase; color: #af4d63;
  text-align: center; margin-bottom: 10px;
}
/* — Puntos de progreso (inyectados por JS en .nav-row) — */
.q-dots { display: flex; align-items: center; gap: 8px; }
.q-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(62,92,112,0.25); }
.q-dots i.on { background: #3E5C70; }

/* ─────────────── ESCRITORIO (≥ 860px): sin tarjeta, ancho completo ─────────────── */
@media (min-width: 768px) {
  .app-shell { max-width: none; width: 100%; }
  .pilot-bar { padding: 16px 48px; }
  .app-shell .screen > .card {
    background: transparent; box-shadow: none; border: none;
    max-width: none; padding: 64px 120px;
  }
  .app-shell .step-header { max-width: 820px; margin: 0 auto 26px; }
  .app-shell .step-question { font-size: 28px; }
  .app-shell .step-hint { color: #46555f; font-size: 15px; line-height: 1.55; }
  .app-shell .options-list, .app-shell .options-grid,
  .app-shell .libre-text-wrap, .app-shell .motivos-categorias {
    max-width: 720px; margin-left: auto; margin-right: auto;
  }
  .app-shell .nav-row {
    max-width: 720px; margin: 26px auto 0;
    display: flex; align-items: center; justify-content: space-between;
  }
}

/* ─────────────── SITIO PÚBLICO ─────────────── */
@keyframes dwLine  { to { stroke-dashoffset: 0; } }
@keyframes popNode { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes fFaint  { from { opacity: 0; transform: translateY(8px); } to { opacity: .72; transform: translateY(0); } }
@keyframes fUp     { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

/* Splash (P0a) */
.site-splash {
  position: fixed; inset: 0; z-index: 900;
  background: linear-gradient(150deg, #c8d8e1 0%, #aabfca 55%, #9ab1be 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  cursor: pointer; transition: opacity 0.6s ease;
}
.site-splash__center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 40px; }
.site-splash__logo { position: relative; width: 340px; max-width: 82vw; height: 104px; opacity: 0; animation: fUp 1s ease .15s both; }
.site-splash__logo svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.site-splash__wordmark {
  position: absolute; left: 27.5%; top: 50%; transform: translateY(-50%);
  font-family: 'Jost', sans-serif; font-weight: 300; font-size: 42px; letter-spacing: .5px; color: #fff;
}
.site-splash__tagline { margin-top: 22px; font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 500; font-size: 20px; letter-spacing: .2px; color: #2f4a5a; opacity: 0; animation: fFaint 1s ease 1.6s forwards; }
.site-splash__footer { padding: 0 28px 30px; }
.site-splash__ancora { font-family: 'Inter', sans-serif; font-weight: 300; font-size: 12px; letter-spacing: 1px; color: #fff; opacity: .9; }

/* Hero (P0b) */
.site-hero {
  min-height: 100vh; box-sizing: border-box;
  background: linear-gradient(180deg, #3E5C70 0%, #557388 34%, #86A6B8 68%, #E3EDF2 100%);
  font-family: 'Inter', sans-serif; color: #F4F8FA;
  padding: 26px clamp(20px, 6vw, 88px) 64px;
}
.site-hero__header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: clamp(40px, 8vh, 90px); }
.site-hero__brand { display: flex; align-items: center; gap: 12px; }
.site-hero__lockup { position: relative; width: 150px; height: 46px; }
.site-hero__lockup svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.site-hero__lockup .pilot-wordmark { font-size: 21px; }
.site-hero__tagline { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 16px; color: #A9C5D6; }
.site-hero__nav { display: flex; align-items: center; gap: 26px; }
.site-hero__nav a { color: #F4F8FA; font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; opacity: .85; }
.site-hero__nav a:hover { opacity: 1; }
.site-hamb { display: none; background: none; border: none; color: #F4F8FA; font-size: 24px; cursor: pointer; }
.site-hero__body { max-width: 760px; }
.site-hero__eyebrow { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 28px; letter-spacing: .14em; text-transform: uppercase; color: #F2E9DC; }
.site-hero__h1 { margin: 18px 0 22px; font-family: 'Cormorant Garamond', serif; font-weight: 300; text-transform: uppercase; font-size: clamp(30px, 4.4vw, 56px); line-height: 1.28; letter-spacing: .06em; color: #F4F8FA; }
.site-hero__bajada { margin: 0; font-size: 16px; font-weight: 300; line-height: 1.75; color: #F2E9DC; max-width: 560px; }
.site-hero__arrow { display: block; margin: 20px 0; }
.site-hero__red { margin: 0 0 30px; font-size: 16px; font-weight: 300; line-height: 1.75; color: #af4d63; max-width: 560px; }
.site-hero__red .big { font-size: 22px; }
.site-hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.site-hero__cta-primary { background: #fff; color: #3E5C70; border: 1px solid #fff; }
.site-hero__cta-primary:hover { background: #F2E9DC; }
.site-hero__cta-ghost { background: #fff; color: #3E5C70; border: 1px solid #fff; text-decoration: none; }
.site-hero__cta-ghost:hover { background: #F2E9DC; }

@media (max-width: 767px) {
  .site-hero__nav a { display: none; }
  .site-hamb { display: block; }
  .site-hero__ctas .btn { width: 100%; }
}
/* ═══════════════════════ fin v3 sitio + escritorio ═══════════════════════ */

/* ═══ v3 correcciones (pase 1) ═══ */
/* Sitio a ancho completo del viewport (sin padding/centrado del body) */
body.site-mode { display: block; padding: 0; }
.site-hero { width: 100%; }
/* Bienvenida (P1) sobre el gradiente, sin tarjeta blanca */
.piloto-outer, .piloto-shell { background: transparent; }
.card--piloto { background: transparent; box-shadow: none; border: none; }
/* Puntos de progreso → por ahora línea fina (numeración definitiva pendiente) */
.q-dots { display: none !important; }
.progress-wrap.visible { display: block; }
/* ═══ fin correcciones pase 1 ═══ */

/* ═══ v3 secciones del sitio público (pase 2) ═══ */
.site-sec { padding: 90px clamp(20px, 6vw, 64px); text-align: center; }
.site-eyebrow { display: block; text-align: center; font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 400; font-size: 26px; letter-spacing: 0.14em; text-transform: uppercase; color: #3E5C70; margin-bottom: 40px; }
.site-sec--cf { background: linear-gradient(180deg, #E3EDF2, #F4F8FA); }
.site-cf-steps { display: flex; gap: 28px; max-width: 980px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.site-cf-step { flex: 1 1 240px; max-width: 300px; }
.site-cf-num { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid #3E5C70; color: #3E5C70; font-family: 'Jost', sans-serif; font-weight: 500; font-size: 16px; margin-bottom: 14px; }
.site-cf-step h3 { font-family: 'Cormorant Garamond', serif; font-weight: 400; font-size: 30px; color: #3E5C70; margin: 0 0 8px; line-height: 1.15; }
.site-cf-step p { font-size: 15px; font-weight: 300; line-height: 1.75; color: #46555f; }
.site-cf-note { max-width: 660px; margin: 56px auto 0; background: #f6f0e6; border: 1px solid #e8dfca; border-radius: 16px; padding: 18px 22px; font-size: 14px; line-height: 1.7; color: #46555f; }
.site-sec--enf { background: #FBF7F1; }
.site-eyebrow--azul { color: #3E5C70; }
.site-enf-frase { max-width: 720px; margin: 0 auto 22px; font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 400; line-height: 1.5; color: #46555f; }
.site-enf-sub { max-width: 640px; margin: 0 auto 30px; font-size: 15px; font-weight: 300; line-height: 1.75; color: #5a6b74; }
.site-btn-azul { background: #3E5C70; color: #fff; border: 1px solid #3E5C70; text-decoration: none; }
.site-btn-azul:hover { background: #335062; }
.site-sec--pq { background: #E3EDF2; }
.site-pq-cards { display: flex; gap: 24px; max-width: 900px; margin: 0 auto 30px; flex-wrap: wrap; justify-content: center; }
.site-pq-card { flex: 1 1 320px; max-width: 400px; background: #e6e4d9; border: 1px solid #d8d5c8; border-radius: 18px; padding: 24px 26px; font-size: 15px; line-height: 1.7; color: #46555f; text-align: left; }
.site-pq-note { max-width: 760px; margin: 0 auto; background: #f0efe7; border: 1px solid #e4e2d7; border-radius: 16px; padding: 22px 26px; font-size: 14px; line-height: 1.8; color: #5a6b74; font-style: italic; }
.site-pq-firma { display: block; margin-top: 10px; font-style: normal; font-weight: 500; color: #3E5C70; }
.site-footer { background: #3E5C70; color: #F4F8FA; text-align: center; padding: 56px 24px 48px; }
.site-footer__lockup { position: relative; width: 150px; height: 46px; display: inline-block; margin-bottom: 16px; }
.site-footer__lockup .pilot-wordmark { font-size: 21px; }
.site-footer__line { margin: 4px 0; font-size: 13px; color: #cfe0e9; }
.site-footer__line a { color: #cfe0e9; }
.site-footer__tag { margin: 14px 0 10px; font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 15px; color: #A9C5D6; }
.site-footer__links { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
.site-footer__links a { color: #F4F8FA; text-decoration: none; opacity: 0.85; }
.site-footer__meta { margin-top: 18px; }
.site-footer__meta summary { cursor: pointer; color: #A9C5D6; letter-spacing: 0.08em; text-transform: uppercase; font-size: 11px; list-style: none; }
.site-footer__meta p { max-width: 480px; margin: 12px auto 0; font-size: 13px; line-height: 1.7; color: #cfe0e9; }
.site-footer__meta a { color: #A9C5D6; }
@media (max-width: 767px) {
  .site-cf-steps, .site-pq-cards { flex-direction: column; align-items: center; }
}
/* ═══ fin secciones sitio (pase 2) ═══ */

/* ═══ v3 P6 Resultados (pase 3) — restyle según README ═══ */
.card--result { background: transparent; box-shadow: none; border: none; }
.result-title { text-align: center; font-family: 'Jost', system-ui, sans-serif; font-weight: 300; text-transform: uppercase; letter-spacing: 0.18em; color: #3E5C70; }
.result-greeting { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 20px; color: #3E5C70; text-align: center; background: none !important; border: none !important; padding: 4px 0 !important; }
/* nota tamizaje: definición única consolidada más abajo */
/* resumen personal: cajita crema borde izquierdo #6E96A2 serif itálica */
.resumen-respuestas {
  background: #FBF7F1 !important; border: 1px solid #F2E9DC !important; border-left: 3px solid #6E96A2 !important;
  border-radius: 16px; font-family: 'Inter', system-ui, sans-serif; font-style: normal; font-size: 15.5px; line-height: 1.9; color: #3a4a54 !important;
  text-align: left !important; box-shadow: 0 8px 24px rgba(46,74,90,.08), inset 0 1px 0 #fff; /* lectura en sans, con aire y profundidad */
}
/* banner feedback: azul hondo prioritario */
.feedback-cta-banner { background: #3E5C70 !important; color: #F4F8FA !important; border-radius: 16px; border: none; }
.feedback-cta-eyebrow, .feedback-cta-heading, .feedback-cta-sub { color: #F4F8FA !important; }
.feedback-cta-btn { background: #fff !important; color: #3E5C70 !important; border-color: #fff !important; }
/* 3 enfoques: bandas beige con transparencia 1 / 0.55 / 0.22 + etiquetas rojas */
.enfoque-card { background: rgba(246,240,230,1); border: 1px solid #e8dfca; border-radius: 16px; }
.enfoques-container .enfoque-card:nth-child(2) { background: rgba(246,240,230,0.55); }
.enfoques-container .enfoque-card:nth-child(3) { background: rgba(246,240,230,0.22); }
.enfoque-nombre { font-family: 'Cormorant Garamond', serif; font-weight: 400; color: #3E5C70; }
.enfoque-justificacion-label { color: #af4d63 !important; text-transform: uppercase; letter-spacing: 0.12em; font-size: 11px; font-weight: 700; }
/* recomendación de especialista: definición única consolidada más abajo */
/* sección modalidad: banda gradiente celeste 150° + tarjetas */
.derivacion-modalidad-grid { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; padding: 26px; border-radius: 18px; background: linear-gradient(150deg, #c8d8e1 0%, #aabfca 55%, #9ab1be 100%); }
.derivacion-titulo { font-family: 'Cormorant Garamond', serif; font-weight: 300; text-transform: uppercase; letter-spacing: 0.05em; text-align: center; color: #2c3a44; }
.derivacion-btn { background: rgba(255,255,255,0.55); border: 1px solid rgba(255,255,255,0.7); border-radius: 12px; color: #2c3a44; }
.derivacion-btn.selected, .derivacion-btn[aria-pressed="true"] { background: #fff; box-shadow: 0 3px 12px rgba(62,92,112,0.18); }
/* recursos: desplegable crema, nombres rojos */
.recursos-locales, .recursos-grid { background: #FBF7F1; border: 1px solid #F2E9DC; border-radius: 14px; }
.recurso-nombre { color: #af4d63 !important; }
/* botones ghost del resultado siguen el sistema (ya rectangulares por .btn) */
/* ═══ fin P6 (pase 3) ═══ */

/* ═══ v3 pase 4: modales, encuesta piloto, P2/P3 ═══ */
/* Modales al sistema (pausa / Ancora / agendamiento) */
.modal-box, .pausa-modal, .agendar-resumen-box { border-radius: 16px; }
.modal-overlay, .pausa-overlay { background: rgba(44,58,68,0.55); }
.agendar-titulo, .pausa-modal h3, #ancoraModal h2, #ancoraModal h3 {
  font-family: 'Cormorant Garamond', serif; font-weight: 300; text-transform: uppercase; letter-spacing: 0.04em; color: #2c3a44;
}
.agendar-tab.active, .agendar-tab-line { background: #3E5C70; color: #3E5C70; }
.agendar-consent-label, .agendar-hint { color: #5a6b74; }
/* Pills de género rectangulares (radio 3px) */
.genero-pill { border-radius: 3px; }
.genero-pill:has(input:checked) { border-color: #3E5C70; background: #E3EDF2; color: #2c3a44; }
/* Encuesta piloto */
.estrella.active, .estrella.hover, .estrella:hover { color: #af4d63; }
.feedback-header, .feedback-brand { color: #3E5C70; }
/* P3 anamnesis: labels serif itálica + 2 columnas en escritorio (cajitas aproximadas) */
.anamnesis-field .field-label {
  font-family: 'Jost', system-ui, sans-serif; font-style: normal; font-weight: 400;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: #6E96A2;
}
@media (min-width: 768px) {
  .anamnesis-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
}
/* ═══ fin pase 4 ═══ */

/* ═══ v3 correcciones de centrado (según <main> de la maqueta) ═══ */
/* Hero: TODO el bloque centrado (vertical + horizontal), sin vacío inferior */
.site-hero { display: flex; flex-direction: column; }
.site-hero__body {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; margin: 0 auto;
}
.site-hero__eyebrow, .site-hero__h1, .site-hero__bajada, .site-hero__red { text-align: center; }
.site-hero__bajada, .site-hero__red, .site-hero__arrow { margin-left: auto; margin-right: auto; }
.site-hero__ctas { justify-content: center; }

/* Todas las secciones del sitio: centradas (ya con .site-sec text-align center;
   reforzamos las piezas que quedaron a la izquierda) */
.site-cf-step, .site-cf-note { text-align: center; }
.site-cf-note { margin-left: auto; margin-right: auto; }

/* "Para quién es": cajitas en Cormorant Garamond 400 / 25px / lh 1.5 / #3E5C70 / centrado */
.site-pq-card {
  font-family: 'Cormorant Garamond', serif !important; font-weight: 400 !important;
  font-size: 25px !important; line-height: 1.5 !important; color: #3E5C70 !important;
  text-align: center !important;
}
/* ═══ fin correcciones de centrado ═══ */

/* ═══════════════════════════════════════════════════════════════════════════
   v3 VALORES EXACTOS (copiados inline de los .dc.html) — sobrescriben aproximaciones
   ═══════════════════════════════════════════════════════════════════════════ */

/* — SPLASH — Flujo Web.dc.html L34-52 (logo 560×172, wordmark left152 Jost300 74px) — */
.site-splash__logo { width: min(560px, 90vw); height: auto; aspect-ratio: 560 / 172; }
.site-splash__wordmark { left: 27.14%; font-size: clamp(42px, 13.2vw, 74px); font-weight: 300; letter-spacing: .5px; }
.site-splash__tagline { margin-top: 30px; font-weight: 500; font-size: 25px; letter-spacing: .2px; opacity: 0.92; font-family: 'Cormorant Garamond', serif; font-style: italic; }
.site-splash__ancora { font-weight: 300; font-size: 13px; letter-spacing: 1px; opacity: .9; }

/* — CÓMO FUNCIONA — Derivame Web v3.dc.html (max-width 1040; grid repeat(3,1fr) gap48 align-items:start) — */
.site-cf-steps { max-width: 1040px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; align-items: start; }
.site-cf-step { max-width: none; }
@media (max-width: 767px) { .site-cf-steps { grid-template-columns: 1fr; } }

/* — P6 ENFOQUES — Flujo Web.dc.html L488-508 (bandas beige rgba 1/0.55/0.22) — */
.enfoques-titulo {
  font-family: 'Jost', system-ui, sans-serif !important; font-style: normal; font-weight: 400;
  text-transform: uppercase; font-size: 15px; letter-spacing: 0.18em; text-align: center; color: #3E5C70 !important;
}
.enfoque-card {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 8px 32px;
  padding: 32px 38px 30px; border-radius: 18px; margin-bottom: 14px; border: none !important;
  background: rgba(246, 240, 230, 1) !important;
}
.enfoques-container .enfoque-card:nth-child(2) { background: rgba(246, 240, 230, 0.55) !important; }
.enfoques-container .enfoque-card:nth-child(3) { background: rgba(246, 240, 230, 0.22) !important; margin-bottom: 0; }
/* BLOQUEANTE 3 (Extension): ENFOQUE PRINCIPAL destacado — azul claro, borde azul, centrado */
.enfoque-card--principal {
  grid-template-columns: 1fr !important;
  text-align: center !important;
  background: #e6f1fb !important;
  border: 2px solid #3E5C70 !important;
}
.enfoque-label, .enfoque-nombre { grid-column: 1 / -1; }
.enfoque-label, .enfoque-label--principal, .enfoque-label--alt {
  font-size: 11px !important; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: #af4d63 !important;
}
.enfoque-nombre {
  margin: 8px 0 12px; font-family: 'Cormorant Garamond', serif !important; font-weight: 300;
  text-transform: uppercase; letter-spacing: 0.08em; font-size: 24px; line-height: 1.25; color: #2c3a44 !important;
}
.enfoque-descripcion { font-size: 14px; font-weight: 300; line-height: 1.75; color: #46555f; }
.enfoque-justificacion { font-size: 13px; font-weight: 300; line-height: 1.75; color: #46555f; }
.enfoque-justificacion-label {
  display: block; font-size: 10px !important; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: #af4d63 !important;
}
@media (max-width: 767px) { .enfoque-card { grid-template-columns: 1fr; } }

/* — FLUJO FULL-WIDTH incluido el resultado (≥860px, sin contenedores angostos) — */
@media (min-width: 768px) {
  .app-shell .screen--result > .card, .app-shell #screen-19 > .card { max-width: none; padding: 56px clamp(40px, 8vw, 140px); }
}
/* ═══ fin valores exactos ═══ */

/* — PÁGINA DE ENFOQUES — Enfoques Especialistas Piloto.dc.html (cabecera azul, etiquetas rojas, botón azul) — */
/* Enfoques Especialistas Piloto.dc.html L39 (header full-width) · L29-40 (gradiente/padding) · L52 (nota) */
.enfoques-page { background: linear-gradient(180deg, #E3EDF2, #F4F8FA); max-width: none; width: 100%; margin: 0; padding: 0; }
.enfoques-page-header {
  background: linear-gradient(180deg, #3E5C70 0%, #557388 70%, #6E96A2 100%);
  color: #F4F8FA; text-align: center; padding: 44px 64px 72px; margin: 0; width: 100%; box-sizing: border-box;
}
.enfoques-page-brand { color: #F4F8FA; font-family: 'Jost', sans-serif; font-weight: 300; }
.enfoques-page-hgroup { max-width: 820px; margin: 40px auto 0; text-align: center; }
.enfoques-page-title {
  color: #F4F8FA; font-family: 'Cormorant Garamond', serif; font-weight: 300;
  text-transform: uppercase; font-size: 38px; line-height: 1.2; letter-spacing: 0.08em; margin: 0 0 22px;
}
.enfoques-nota-transversal {
  max-width: none; margin: 0; background: none; border: none; border-radius: 0; padding: 0;
  font-family: 'Inter', sans-serif; font-size: 14.5px; font-weight: 300; line-height: 1.85; color: #E3EDF2; font-style: normal;
}
#enfoquesLista { max-width: 1000px; margin: 0 auto; padding: 40px clamp(16px, 5vw, 40px); }
.enfoque-info-card {
  background: #fff; border: 1px solid #F2E9DC; border-radius: 18px; padding: 26px 28px; margin-bottom: 20px;
}
.enfoque-info-titulo {
  font-family: 'Cormorant Garamond', serif; font-weight: 400; text-transform: uppercase;
  letter-spacing: 0.05em; font-size: 26px; color: #3E5C70;
}
.enfoque-lbl {
  display: block; font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: #af4d63; margin-bottom: 4px;
}
.enfoque-bloque p { font-size: 14px; font-weight: 300; line-height: 1.75; color: #46555f; }
.enfoque-ver-btn {
  background: #3E5C70; color: #F4F8FA; border: 1px solid #3E5C70; border-radius: 3px;
  font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; padding: 12px 26px; cursor: pointer;
}
.enfoque-ver-btn:hover { background: #335062; }
.esp-card { background: #FBF7F1; border: 1px solid #F2E9DC; border-radius: 12px; }
.esp-card__esp { color: #af4d63; }
/* ═══ fin página de enfoques ═══ */

/* ═══ v3 SUPERFICIES DEL FLUJO (punto 5) — copiadas de Flujo Web.dc.html ═══ */
/* "Qué esperar" — 4 tarjetas, 4 superficies distintas (Flujo Web L153-156) */
.piloto-info-card { border-radius: 18px; }
.piloto-info-card:nth-child(1) { background: #FBF7F1; border: 1px solid #F2E9DC; }   /* crema */
.piloto-info-card:nth-child(2) { background: #f6f0e6; border: 1px solid #e8dfca; }   /* beige */
.piloto-info-card:nth-child(3) { background: #e6e4d9; border: 1px solid #d8d5c8; }   /* greige */
.piloto-info-card:nth-child(4) { background: #f0efe7; border: 1px solid #e4e2d7; }   /* greige claro */
/* "Sobre tus datos" (confidencialidad) — crema claro (Flujo Web #fcfbf8/#eee7d8) */
.info-box--secondary { background: #fcfbf8; border: 1px solid #eee7d8; }
/* P6: caja "guardar orientación" greige (Flujo Web #e6e4d9/#d8d5c8) */
.siguiente-paso, #siguientePasoBox { background: #e6e4d9 !important; border: 1px solid #d8d5c8 !important; }
/* P6: recursos crema (Flujo Web #FBF7F1) — ya aplicado en .recursos-locales */
/* P3 anamnesis: 3 cajitas (Flujo Web L271 crema · beige · L156 greige claro) */
.anamnesis-group { border-radius: 18px; padding: 24px 22px; margin-bottom: 16px; }
.anamnesis-group--nombre   { background: #FBF7F1; border: 1px solid #F2E9DC; }  /* crema */
.anamnesis-group--contacto { background: #f6f0e6; border: 1px solid #e8dfca; }  /* beige */
.anamnesis-group--contexto { background: #f0efe7; border: 1px solid #e4e2d7; }  /* greige claro */
.anamnesis-group-label {
  display: block; font-family: 'Jost', system-ui, sans-serif; font-style: normal; font-weight: 500;
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.14em; color: #3E5C70; margin-bottom: 14px;
}
.anamnesis-group--contexto .anamnesis-group-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
@media (max-width: 620px) { .anamnesis-group--contexto .anamnesis-group-fields { grid-template-columns: 1fr; } }
/* ═══ fin superficies del flujo ═══ */

/* ═══ v3 P6 mitad inferior — valores inline de Flujo Web.dc.html L477-603 ═══ */
/* Nota tamizaje bajo el disclaimer (L477): 12px/300/#6E96A2 centrada, sin caja */
/* Nota de estándares clínicos (pantalla final) — DEFINICIÓN ÚNICA consolidada */
.clinical-standards-badge {
  display: block !important;
  margin: 0 auto 30px !important;
  max-width: 520px;
  padding: 2px 0;
  background: none !important;
  border: none !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1.7;
  letter-spacing: 0.01em;
  color: #3E5C70 !important;
  text-align: center;
  text-wrap: balance;
}
/* Banner feedback (L481-484): banda azul, heading Cormorant 21px, botón blanco */
.feedback-cta-wrap { margin: 26px 0 0; }
.feedback-cta-banner {
  background: #3E5C70 !important; border-radius: 18px; padding: 20px 32px !important; border: none;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; text-align: left;
}
.feedback-cta-eyebrow { display: none; }
.feedback-cta-heading { font-family: 'Cormorant Garamond', serif; font-weight: 400; font-size: 21px; color: #F4F8FA !important; }
.feedback-cta-sub { font-size: 12.5px; font-weight: 300; color: #E3EDF2 !important; margin-top: 3px; }
.feedback-cta-btn {
  flex: none; width: auto !important; margin: 0 !important; padding: 12px 26px !important;
  background: #F4F8FA !important; color: #3E5C70 !important; border-color: #F4F8FA !important;
  font-size: 11.5px; font-weight: 500; letter-spacing: 0.12em;
}
/* Recomendación de especialista (L515-519) */
/* Caja "Psicólogo/a" (pantalla final) — crema (el azul destacado va en ENFOQUE PRINCIPAL) */
.recomendacion-final {
  max-width: 860px;
  margin: 0 auto;
  padding: 32px 38px;
  border: 1px solid #e8dfca !important;
  border-radius: 18px;
  background: #F6F0E6 !important;
  text-align: center;
}
.rec-final-especialista {
  margin: 0 0 14px; font-family: 'Cormorant Garamond', serif; font-weight: 300;
  text-transform: uppercase; letter-spacing: 0.08em; font-size: 24px; color: #2c3a44;
}
.rec-final-enfoque { color: #af4d63; }
.rec-final-porque { font-size: 14px; font-weight: 600; line-height: 1.8; color: #3E5C70; }
/* Frase serif final (fuera del marco), centrada y controlada — DEFINICIÓN ÚNICA consolidada */
.rec-final-nota { max-width: 320px; margin: 16px auto 0; padding: 0 1rem; text-align: center; font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 400; font-size: 19px; line-height: 1.6; color: #46555f; }
.rec-final-link { color: #af4d63; text-decoration: underline; text-underline-offset: 3px; }
/* Modalidad (L521-539): banda celeste, tarjetas sin emojis */
.derivacion-widget {
  background: linear-gradient(150deg, #c8d8e1 0%, #aabfca 55%, #9ab1be 100%);
  border-radius: 22px; padding: 44px 48px; margin: 40px 0;
}
.derivacion-titulo {
  margin: 0 0 6px; font-family: 'Cormorant Garamond', serif !important; font-weight: 300;
  text-transform: uppercase; letter-spacing: 0.1em; font-size: 27px; color: #fff !important; text-align: center;
}
.derivacion-hint { margin: 0 0 26px; font-size: 13px; font-weight: 300; color: #fff; text-align: center; opacity: 0.9; }
.derivacion-modalidad-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin-bottom: 26px; background: none !important; padding: 0 !important; }
.derivacion-btn {
  background: rgba(255,255,255,0.35); border: 1px solid rgba(255,255,255,0.6); border-radius: 16px;
  padding: 28px 20px; text-align: center; cursor: pointer;
}
.derivacion-btn--selected { background: #fff; border-color: #fff; box-shadow: 0 14px 30px -18px rgba(40,60,75,.55); }
.derivacion-btn-label { display: block; font-family: 'Cormorant Garamond', serif; font-weight: 300; text-transform: uppercase; letter-spacing: 0.1em; font-size: 22px; color: #2c3a44; }
.derivacion-btn-sub { font-size: 12px; font-weight: 300; color: #3E5C70; }
.derivacion-btn[data-modalidad="Online"] .derivacion-btn-sub { color: #6E96A2; }
/* Recursos (L541-552): details crema, summary rojo, nombres rojos, *4141 primero */
.recursos-locales { background: #FBF7F1; border: 1px solid #F2E9DC; border-radius: 18px; padding: 20px 30px; margin: 32px 0; }
.recursos-titulo { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: #af4d63 !important; cursor: pointer; list-style: none; }
.recursos-grid { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.recurso-linea { margin: 0; font-size: 12.5px; font-weight: 300; line-height: 1.7; color: #46555f; }
.recurso-nombre { font-weight: 500; color: #af4d63 !important; }
.recursos-crisis { margin: 6px 0 0; font-size: 12.5px; font-weight: 400; color: #46555f; }
.recursos-crisis-em { font-weight: 600; color: #3E5C70; }
/* Guardar orientación (L556-564): greige, título Cormorant 21px, botón azul */
.email-send-section { max-width: 720px; margin: 26px auto 0; background: #e6e4d9 !important; border: 1px solid #c7c5b6 !important; border-radius: 18px; padding: 28px 34px; text-align: center; }
.email-send-title { margin: 0 0 6px; font-family: 'Cormorant Garamond', serif !important; font-weight: 300; text-transform: uppercase; letter-spacing: 0.08em; font-size: 21px; color: #2c3a44; }
.email-send-hint { margin: 0 0 12px; font-size: 12.5px; font-weight: 300; color: #6E96A2; }
.email-send-piloto { margin: 0 0 16px; font-size: 12.5px; font-weight: 300; line-height: 1.65; color: #46555f; }
.email-send-piloto-em { font-weight: 600; color: #af4d63; }
.email-send-btn { background: #3E5C70 !important; color: #F4F8FA !important; border-color: #3E5C70 !important; font-size: 11.5px; font-weight: 500; letter-spacing: 0.1em; }
.result-footer { margin-top: 26px; border-radius: 18px; }
/* Pills de género P3: rectangulares radio 3px */
.genero-pill, .genero-options .genero-pill { border-radius: 3px !important; }
@media (max-width: 640px) { .feedback-cta-banner { flex-direction: column; text-align: center; } .derivacion-modalidad-grid { grid-template-columns: 1fr; } }
/* ═══ fin P6 mitad inferior ═══ */

/* — Dev toolbar: selector de escenarios (solo localhost) — */
#devToolbar { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
#devToolbar select#devScenario { font-family: 'Inter', sans-serif; font-size: 12px; padding: 5px 8px; border-radius: 6px; border: 1px solid #cdd6dc; max-width: 230px; background: #fff; color: #2c3a44; }
#devScenarioNote { font-family: 'Inter', sans-serif; font-size: 10.5px; color: #6E96A2; max-width: 240px; line-height: 1.35; }
/* La frase serif de recomendación: definición única consolidada más arriba */
/* ═══ fin dev toolbar ═══ */

/* ═══ v3 correcciones (4) ═══ */
/* (1) PHQ-9 ítem 9 en CELESTE, no rojo (decisión: no alarmar). Solo el ítem 9. */
.option-card--alerta:has(input[name="phq9-9"]) { border-color: #A9C5D6 !important; background: #E3EDF2 !important; }
.option-card--alerta:has(input[name="phq9-9"]):hover { border-color: #6E96A2 !important; background: #d9e6ef !important; }
.option-card--alerta:has(input[name="phq9-9"]:checked) { border-color: #6E96A2 !important; background: #d9e6ef !important; }
.option-card--alerta:has(input[name="phq9-9"])::before { border-color: #A9C5D6 !important; background: transparent !important; }
.option-card--alerta:has(input[name="phq9-9"]:checked)::before { border-color: #6E96A2 !important; background: #6E96A2 !important; }
/* (3) Tarjeta modalidad seleccionada: título azul (no blanco sobre blanco), sub gris azul */
.derivacion-btn--selected .derivacion-btn-label { color: #3E5C70 !important; }
.derivacion-btn--selected .derivacion-btn-sub { color: #6E96A2 !important; }
/* (4) Dev toolbar discreto: chip colapsado + panel expandible (solo localhost) */
#devToolbar { align-items: flex-end; }
#devChip {
  width: 28px; height: 28px; border-radius: 50%; padding: 0;
  background: #2c3a44; color: #F4F8FA; border: none; cursor: pointer;
  font-size: 14px; line-height: 1; opacity: 0.4; transition: opacity .15s;
  display: flex; align-items: center; justify-content: center;
}
#devChip:hover { opacity: 1; }
#devPanel {
  display: flex; flex-direction: column; align-items: stretch; gap: 8px;
  background: #fff; border: 1px solid #cdd6dc; border-radius: 10px; padding: 12px;
  box-shadow: 0 8px 28px rgba(40,60,75,.22); max-width: 260px;
}
#devCollapse {
  font-family: 'Inter', sans-serif; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase;
  background: none; border: none; color: #6E96A2; cursor: pointer; padding: 2px 0; align-self: flex-end;
}
/* ═══ fin correcciones (4) ═══ */

/* ═══ Pantalla final (screen-19): más aire vertical entre secciones (F) ═══ */
.card--result .resumen-respuestas { margin: 10px 0 30px; padding: 22px 24px; }
.card--result .enfoques-titulo { margin-top: 40px; }
.card--result .recomendacion-final { margin-top: 40px !important; }
.card--result .siguiente-paso { margin-top: 30px; }
.card--result .psicologos-section { margin-top: 36px; }
.card--result .recursos-locales { margin-top: 30px; }
.card--result .alertas-especificas { margin-top: 24px; }
/* La flecha del acordeón de recursos indica que es desplegable/clickeable */
.recursos-titulo { cursor: pointer; }
.recursos-locales[open] .recursos-titulo span { transform: rotate(180deg); display: inline-block; transition: transform .2s; }
/* ═══ fin ajustes pantalla final ═══ */

/* ═══ Hardening móvil 390px — paddings grandes sin desbordes ═══ */
@media (max-width: 430px) {
  .enfoques-page-header { padding: 32px 22px 40px !important; }
  .derivacion-widget { padding: 28px 20px !important; }
  .recomendacion-final { padding: 24px 22px !important; }
  .email-send-section { padding: 22px 20px !important; }
  .feedback-cta-banner { padding: 18px 22px !important; }
  .anamnesis-group { padding: 20px 18px !important; }
  .site-sec { padding-left: 22px !important; padding-right: 22px !important; }
  .rec-final-especialista { font-size: 21px !important; }
  .derivacion-titulo { font-size: 23px !important; }
}
/* ═══ fin hardening móvil ═══ */

/* ═══════════════════════════════════════════════════════════════════════════
   CONTENEDOR GLOBAL DE CONTENIDO (viewports anchos 1512–2560px)
   Fondos/gradientes siguen full-bleed; el CONTENIDO se limita y centra.
   Maqueta a canvas ~1450px. Nunca texto de borde a borde.
   ═══════════════════════════════════════════════════════════════════════════ */
@media (min-width: 768px) {
  /* Flujo — pantallas de texto/opciones: columna centrada ~720px */
  .app-shell .screen > .card { max-width: 880px; margin-left: auto; margin-right: auto; padding: 56px 48px; }
  /* P3 anamnesis (screen-0): form + 3 cajitas → ~1000px */
  .app-shell #screen-0 > .card { max-width: 1000px; }
  /* P2 consentimiento: layout 2 columnas → ~1100px */
  .app-shell #screen-consent > .card { max-width: 1100px; padding: 60px clamp(40px, 6vw, 80px) 64px; }
  /* P6 resultado: bandas anchas → ~1240px */
  .app-shell #screen-19 > .card,
  .app-shell .screen--result > .card { max-width: 1240px; margin-left: auto; margin-right: auto; padding: 56px clamp(40px, 6vw, 80px); }
  /* Crisis (screen-25): NO se toca — se mantiene full-bleed */
  .app-shell #screen-25 > .card { max-width: none; }
}
/* P6 — bloques de texto internos: legibles, no ocupan los 1240px */
.resumen-respuestas, .result-disclaimer, .result-greeting, .alertas-especificas { max-width: 820px; margin-left: auto; margin-right: auto; }

/* Hero (P0b): columna generosa + H1 52px (coteja Derivame Web v3.dc.html) */
.site-hero__body { max-width: min(1040px, 90vw); }
.site-hero__h1 { font-size: clamp(34px, 4.6vw, 58px); }

/* ═══ P2 CONSENTIMIENTO — layout real de la maqueta (Flujo Web.dc.html L208-238) ═══ */
.consent-card { text-align: center; }
.consent-titulo { font-family: 'Cormorant Garamond', serif; font-weight: 300; text-transform: uppercase; font-size: clamp(24px, 3vw, 36px); line-height: 1.3; letter-spacing: 0.05em; color: #2c3a44; text-align: center; margin: 0; }
.consent-divider { width: 52px; height: 1px; background: rgba(62,92,112,0.35); margin: 24px auto 20px; }
.consent-intro { max-width: 780px; margin: 0 auto 44px; font-size: 15.5px; font-weight: 300; line-height: 1.8; color: #46555f; text-align: center; }
.consent-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; margin-bottom: 20px; text-align: left; }
.consent-grid + .consent-grid { margin-bottom: 40px; }
.consent-box { border-radius: 18px; padding: 30px 34px; }
.consent-box--es { background: #FBF7F1; border: 1px solid #F2E9DC; }
.consent-box--noes { background: #f0efe7; border: 1px solid #e4e2d7; }
.consent-box--crisis { background: #f6f0e6; border: 1px solid #e8dfca; padding: 26px 34px; }
.consent-box--datos { background: #fcfbf8; border: 1px solid #eee7d8; padding: 26px 34px; }
.consent-box-label { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: #3E5C70; margin-bottom: 10px; }
.consent-box p { margin: 0; font-size: 15px; font-weight: 300; line-height: 1.75; color: #46555f; }
.consent-box--crisis p, .consent-box--datos p { font-size: 14.5px; line-height: 1.7; }
.consent-check { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0 0 20px; }
#btnConsent { display: inline-block; width: auto; padding: 17px 60px; }
@media (max-width: 767px) {
  .consent-grid { grid-template-columns: 1fr; }
  #btnConsent { width: 100%; }
}
/* ═══ fin contenedor global + P2 ═══ */

/* ═══ Control de acceso del piloto (gate: código + acuerdo) — sistema v3 ═══ */
.gate-screen { min-height: 100vh; box-sizing: border-box; display: flex; align-items: center; justify-content: center; padding: 48px clamp(20px, 5vw, 48px); background: linear-gradient(180deg, #E3EDF2, #F4F8FA); font-family: 'Inter', sans-serif; }
.gate-card { width: 100%; max-width: 560px; background: #fff; border: 1px solid #e7eef2; border-radius: 20px; box-shadow: 0 12px 44px -24px rgba(40,60,75,.45); padding: 44px clamp(24px, 5vw, 48px); text-align: center; }
.gate-card--acuerdo { max-width: 720px; text-align: left; }
.gate-lockup { position: relative; display: inline-block; width: 150px; height: 46px; margin-bottom: 22px; }
.gate-lockup svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.gate-wordmark { position: absolute; left: 27%; top: 50%; transform: translateY(-50%); font-family: 'Jost', sans-serif; font-weight: 300; font-size: 20px; letter-spacing: .5px; color: #3E5C70; }
.gate-eyebrow { display: block; font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 400; font-size: 19px; letter-spacing: .1em; text-transform: uppercase; color: #6E96A2; margin-bottom: 8px; }
.gate-titulo { font-family: 'Cormorant Garamond', serif; font-weight: 300; text-transform: uppercase; font-size: clamp(24px, 3.4vw, 30px); line-height: 1.25; letter-spacing: .05em; color: #2c3a44; margin: 0 0 14px; }
.gate-intro { font-size: 14.5px; font-weight: 300; line-height: 1.7; color: #46555f; margin: 0 0 26px; }
.gate-field { text-align: left; margin-bottom: 18px; }
.gate-label { display: block; font-size: 12px; font-weight: 500; letter-spacing: .04em; color: #3E5C70; margin-bottom: 7px; }
.gate-input { text-align: center; letter-spacing: .1em; }
.gate-error { margin: 8px 0 0; font-size: 13px; font-weight: 400; color: #af4d63; }
.gate-volver { display: inline-block; margin-top: 16px; background: none; border: none; color: #6E96A2; font-size: 12.5px; cursor: pointer; letter-spacing: .04em; }
#gate-code .btn, #gate-acuerdo .btn { width: 100%; margin-top: 6px; }
.gate-acuerdo-box { max-height: 340px; overflow-y: auto; border: 1px solid #e4e2d7; background: #f8f9f3; border-radius: 14px; padding: 22px 24px; margin-bottom: 12px; }
.gate-acuerdo-texto p { margin: 0 0 12px; font-size: 13.5px; font-weight: 300; line-height: 1.75; color: #46555f; }
.gate-acuerdo-texto strong { color: #2c3a44; font-weight: 600; }
.gate-acuerdo-lista { margin: 0 0 12px; padding-left: 20px; }
.gate-acuerdo-lista li { margin: 0 0 10px; font-size: 13.5px; font-weight: 300; line-height: 1.7; color: #46555f; }
.gate-acuerdo-texto code { font-size: 12.5px; background: #eef2ee; padding: 1px 5px; border-radius: 4px; }
/* Aviso "lee el acuerdo completo" — imposible de no ver (rojo, mayúsculas, bold, ícono) */
.gate-acuerdo-aviso {
  display: flex; align-items: center; gap: 11px; margin: 0 0 14px; padding: 13px 16px;
  background: rgba(175,77,99,0.08); border: 1.5px solid rgba(175,77,99,0.4); border-radius: 10px;
  color: #af4d63; font-family: 'Inter', sans-serif; font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase; line-height: 1.5; text-align: left;
}
.gate-aviso-icon { flex: none; width: 22px; height: 22px; }
.gate-acuerdo-aviso.enfasis { animation: gateAvisoEnfasis 0.42s ease-in-out 0s 4; }
@keyframes gateAvisoEnfasis {
  0%, 100% { transform: scale(1); background: rgba(175,77,99,0.08); border-color: rgba(175,77,99,0.4); }
  50% { transform: scale(1.035); background: rgba(175,77,99,0.22); border-color: #af4d63; }
}
@media (prefers-reduced-motion: reduce) {
  .gate-acuerdo-aviso.enfasis { animation: none; background: rgba(175,77,99,0.22); border-color: #af4d63; }
}
.gate-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }
.gate-check { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 20px; font-size: 14px; line-height: 1.5; color: #46555f; cursor: pointer; }
.gate-check input { margin-top: 3px; flex: none; }
@media (max-width: 560px) { .gate-form { grid-template-columns: 1fr; } }
#devSaltarGate { font-family: 'Inter', sans-serif; font-size: 11px; padding: 6px 10px; border-radius: 6px; border: 1px solid #cdd6dc; background: #f4f8fa; color: #3E5C70; cursor: pointer; }
/* ═══ fin gate ═══ */

/* Logo Derívame clickeable → inicio (barra de piloto + header del hero) */
.logo-inicio { cursor: pointer; }
/* ═══ fin logo-inicio ═══ */

/* Títulos serif con nombres de enfoque largos — nunca desbordan su caja (390px) */
.rec-final-especialista, .rec-final-enfoque, .enfoque-nombre, .enfoque-info-titulo {
  overflow-wrap: break-word; word-break: break-word; hyphens: auto;
}
@media (max-width: 430px) {
  .rec-final-especialista { font-size: clamp(16px, 4.6vw, 20px) !important; letter-spacing: 0.04em !important; }
  .enfoque-nombre { font-size: clamp(17px, 5vw, 22px) !important; letter-spacing: 0.05em !important; }
  .enfoque-info-titulo { font-size: clamp(18px, 5.2vw, 24px) !important; letter-spacing: 0.04em !important; }
  .recomendacion-final { padding: 22px 18px !important; }
}
/* ═══ fin títulos serif enfoque ═══ */

/* ═══ Botón "Pausar y continuar después" — integrado en la barra de piloto ═══ */
/* Antes era position:fixed y caía sobre la barra azul (se perdía). Ahora vive
   dentro del pilot-bar, a la derecha, siempre visible y clickeable en todo ancho. */
.pilot-bar__right { display: flex; align-items: center; gap: 14px; flex-shrink: 0; min-width: 0; }
.pilot-bar { flex-wrap: wrap; row-gap: 8px; }
.btn-pausar {
  position: static; top: auto; right: auto; z-index: auto; box-shadow: none;
  background: rgba(244,248,250,0.12); color: #F4F8FA;
  border: 1px solid rgba(244,248,250,0.55); border-radius: 3px;
  padding: 8px 16px; font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.1em; white-space: nowrap; cursor: pointer;
}
.btn-pausar:hover { background: rgba(244,248,250,0.22); color: #fff; }
/* Móvil (≤767): la tagline decorativa se oculta y el grupo derecho pasa a su
   propia fila para que el botón nunca quede fuera del viewport ni tapado. */
@media (max-width: 767px) {
  .pilot-tagline { display: none; }
  .pilot-bar__right { width: 100%; justify-content: space-between; }
  .btn-pausar { padding: 7px 12px; }
}
/* ═══ fin botón pausar ═══ */

/* ═══════════════════════════════════════════════════════════════════════════
   ESCALÓN PARA PANTALLAS ANCHAS (≥1600px)
   El contenido se topaba en ~1040px (≈40% en 2560 → columna flotante). Aquí crece
   hasta ~1300-1480px con tipografías proporcionales. Los mínimos de cada clamp
   coinciden con el valor base (≤1599), así la transición en 1600 es casi imperceptible
   y NADA cambia entre 1280-1512 (esta media query solo aplica desde 1600).
   ═══════════════════════════════════════════════════════════════════════════ */
@media (min-width: 1600px) {
  /* — Hero — */
  .site-hero__body { max-width: clamp(1040px, 68vw, 1360px); }
  .site-hero__h1 { font-size: clamp(58px, 3.7vw, 68px); }
  .site-hero__eyebrow { font-size: clamp(28px, 2vw, 34px); }
  .site-hero__bajada, .site-hero__red { max-width: clamp(560px, 42vw, 700px); font-size: clamp(16px, 1.15vw, 19px); }
  .site-hero__red .big { font-size: clamp(22px, 1.7vw, 27px); }
  .site-hero__ctas .btn { font-size: 12.5px; padding: 17px 34px; }

  /* — Secciones del sitio público — */
  .site-cf-steps { max-width: clamp(1040px, 72vw, 1300px); }
  .site-cf-step h3 { font-size: clamp(30px, 2.3vw, 36px); }
  .site-pq-cards { max-width: clamp(900px, 64vw, 1180px); }
  .site-pq-card { font-size: clamp(25px, 1.7vw, 29px); }
  .site-enf-frase { max-width: clamp(720px, 50vw, 940px); font-size: clamp(22px, 1.6vw, 27px); }
  .site-eyebrow { font-size: clamp(26px, 2vw, 32px); }
  .site-footer__lockup { transform: scale(1.06); }

  /* — Flujo del piloto (títulos de pregunta + bloque de opciones) — */
  .app-shell .screen > .card { max-width: clamp(880px, 62vw, 1120px); }
  .app-shell .step-header { max-width: clamp(820px, 54vw, 980px); }
  .app-shell .options-list, .app-shell .options-grid,
  .app-shell .libre-text-wrap, .app-shell .motivos-categorias,
  .app-shell .nav-row { max-width: clamp(720px, 47vw, 780px); }
  .app-shell .step-question { font-size: clamp(34px, 2.6vw, 42px); }

  /* — P6 resultado — */
  .app-shell #screen-19 > .card,
  .app-shell .screen--result > .card { max-width: clamp(1240px, 84vw, 1480px); }
  .resumen-respuestas, .result-disclaimer, .result-greeting, .alertas-especificas { max-width: clamp(820px, 54vw, 980px); }

  /* — Enfoques (página) — */
  #enfoquesLista { max-width: clamp(1000px, 70vw, 1300px); }
  .enfoques-page-hgroup { max-width: clamp(820px, 54vw, 1000px); }
}
/* ═══ fin escalón ≥1600px ═══ */

/* Preview de escritura de la orientación durante la carga (streaming SSE) */
.loading-stream {
  max-width: 600px; margin: 26px auto 0; padding: 0 16px;
  font-family: 'Inter', system-ui, sans-serif; font-style: normal; font-weight: 400;
  font-size: 15px; line-height: 1.85; color: #4a5a63; text-align: center;
}
.loading-stream:empty { display: none; }
/* ═══ fin loading-stream ═══ */

/* ══════════════════════════════════════════════════════════════════════
   SISTEMA DE DISEÑO · CIERRE (julio 2026)
   Moon (Jost) en títulos/subtítulos/botones · Muli (Mulish) en lectura
   Azules más verdosos · difuminado atmosférico
   ══════════════════════════════════════════════════════════════════════ */
:root{
  --primary:#3B5F63;      /* azul más verdoso (el que amaste) */
  --primary-deep:#2c4a4c;
  --accent:#6E9A9C;
  --moon:'Jost', sans-serif;
  --read:'Mulish', sans-serif;
}

/* ── LECTURA · Muli, sin espaciado ── */
body, p, li, input, textarea, select,
.welcome-text, .resumen-respuestas, .resumen-respuestas *,
.option-text, .site-hero__bajada, .site-hero__red,
.site-enf-frase, .site-enf-sub, .site-pq-card, .site-pq-note,
.crisis-texto, .crisis-numbers, .crisis-numbers *, .site-cf-step p,
.loading-sub, .info-box, .result-disclaimer, .clinical-standards-badge,
.scr-sub, .field-input, .welcome-anamnesis-hint, .enfoque-desc,
.recomendacion-final, .siguiente-paso, .recurso-linea, .psicologos-nota {
  font-family: var(--read);
  text-transform: none;
  font-style: normal;
  letter-spacing: normal;
}

/* ── TÍTULOS · Moon MAYÚSCULA espaciada ── */
.step-question, .piloto-titulo, .result-title, .scr-titulo, .crisis-titulo,
.welcome-anamnesis-titulo, .enfoques-titulo, .loading-title,
.psicologos-titulo, .welcome-brand-name, .site-cf-step h3 {
  font-family: var(--moon) !important;
  font-weight: 300 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.13em !important;
  font-style: normal !important;
  color: var(--primary);
}
.site-hero__h1 {
  font-family: var(--moon) !important;
  font-weight: 200 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.09em !important;
  line-height: 1.5 !important;
}

/* ── SUBTÍTULOS / ETIQUETAS · Moon MAYÚSCULA, tamaño parejo ── */
.step-hint, .welcome-tagline, .anamnesis-group-label, .field-label,
.result-brand, .welcome-brand-by, .site-cf-step .site-cf-num ~ *,
.enfoque-nombre-label {
  font-family: var(--moon) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.16em !important;
  font-style: normal !important;
}

/* ── BOTONES · Moon MAYÚSCULA, calibre medio ── */
.btn, .site-hero__cta-primary, .site-hero__cta-ghost, .btn--crisis-call,
.btn--crisis-continue, .site-btn-azul {
  font-family: var(--moon) !important;
  font-weight: 500 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.2em !important;
}

/* ── DIFUMINADO atmosférico ── */
.site-splash{
  background:
    radial-gradient(60% 45% at 28% 12%, rgba(170,218,210,.6), transparent 60%),
    radial-gradient(55% 50% at 82% 26%, rgba(126,176,182,.55), transparent 60%),
    radial-gradient(50% 44% at 62% 60%, rgba(198,206,176,.34), transparent 60%),
    radial-gradient(58% 40% at 16% 72%, rgba(150,120,140,.22), transparent 60%),
    radial-gradient(85% 70% at 50% 112%, rgba(40,68,70,.66), transparent 66%),
    linear-gradient(150deg,#4d7678 0%,#3B5F63 45%,#2c4a4c 100%) !important;
}
.site-hero{
  background:
    radial-gradient(66% 48% at 22% 6%, rgba(168,216,208,.6), transparent 60%),
    radial-gradient(58% 52% at 84% 20%, rgba(126,176,182,.55), transparent 60%),
    radial-gradient(52% 46% at 62% 52%, rgba(198,206,176,.32), transparent 60%),
    radial-gradient(60% 40% at 12% 62%, rgba(150,120,140,.2), transparent 60%),
    radial-gradient(85% 72% at 50% 110%, rgba(40,68,70,.66), transparent 66%),
    linear-gradient(150deg,#4d7678 0%,#3B5F63 45%,#2c4a4c 100%) !important;
}
.site-sec--cf{
  background:
    radial-gradient(52% 48% at 8% 2%, rgba(132,190,158,.5), transparent 60%),
    radial-gradient(48% 54% at 94% 34%, rgba(104,164,170,.46), transparent 62%),
    radial-gradient(46% 50% at 68% 104%, rgba(250,238,220,.85), transparent 60%),
    linear-gradient(160deg,#cbe2d7 0%,#e4efe6 55%,#f4efe5 100%) !important;
}
.site-sec--enf{
  background:
    radial-gradient(50% 55% at 86% 4%, rgba(104,164,170,.48), transparent 60%),
    radial-gradient(46% 50% at 6% 66%, rgba(140,190,160,.44), transparent 62%),
    radial-gradient(48% 52% at 50% 108%, rgba(250,238,220,.7), transparent 60%),
    linear-gradient(160deg,#d6e8e2 0%,#e8efe9 55%,#f2eee4 100%) !important;
}
.site-sec--pq{
  background:
    radial-gradient(54% 50% at 14% 8%, rgba(138,190,160,.48), transparent 60%),
    radial-gradient(50% 55% at 90% 78%, rgba(104,164,170,.42), transparent 62%),
    radial-gradient(46% 48% at 55% 108%, rgba(250,238,220,.7), transparent 60%),
    linear-gradient(160deg,#cce2d6 0%,#e5efe8 55%,#f2eee4 100%) !important;
}
/* fondo app (pantallas del tamizaje) — difuminado verde→crema CON VIDA (como el mockup) */
/* fondo crema FRÍO (verde-grisáceo → cian pálido), como el mockup — sin amarillo */
.app-shell{
  background:
    radial-gradient(48% 30% at 10% 3%, rgba(150,196,190,.36), transparent 60%),
    radial-gradient(46% 34% at 92% 20%, rgba(120,172,178,.3), transparent 62%),
    radial-gradient(55% 44% at 60% 104%, rgba(228,238,236,.55), transparent 60%),
    linear-gradient(165deg,#d6e6e4 0%,#e6efec 55%,#eef4f1 100%) !important;
}
.screen{
  background:
    radial-gradient(52% 30% at 8% 2%, rgba(150,196,190,.3), transparent 60%),
    radial-gradient(48% 34% at 94% 22%, rgba(120,172,178,.26), transparent 62%),
    linear-gradient(165deg,#d8e7e5 0%,#e8efec 55%,#eef4f1 100%);
}
/* banda superior del piloto — difuminado atmosférico (no bloque plano) */
.pilot-bar{
  background:
    radial-gradient(80% 130% at 14% 0%, rgba(160,206,200,.5), transparent 60%),
    radial-gradient(70% 130% at 88% 15%, rgba(122,164,168,.46), transparent 62%),
    linear-gradient(120deg,#4d7678 0%,#3B5F63 58%,#345458 100%) !important;
}
/* Suavizar el azul petróleo de las cajas (banner feedback y similares) */
.feedback-cta-banner{
  background: linear-gradient(135deg,#5f8386 0%,#688e83 100%) !important;
}
.derivacion-widget{
  background: linear-gradient(150deg,#cddcdd 0%,#b3c7c6 55%,#a6bdbb 100%) !important;
}
/* Splash tagline — Moon, visible (antes quedaba oscuro sobre oscuro) */
.site-splash__tagline{
  font-family: var(--moon) !important;
  font-style: normal !important;
  font-weight: 300 !important;
  letter-spacing: 0.16em !important;
  font-size: 20px !important;
  color: #dbe9ea !important;
  opacity: 1 !important;
}
/* color de marca más verdoso en acentos varios */
.site-eyebrow--azul, .enfoque-nombre, .pill { color:#3B5F63; }

/* La tarjeta contenedora de cada pantalla es transparente: el contenido
   vive sobre el difuminado (como en el mockup), no sobre una hoja blanca. */
.app-shell .screen > .card{
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

/* ── Títulos que aún quedaban en serif (fondo claro) → Moon MAYÚSCULA ── */
.rec-final-especialista, .email-send-title, .enfoque-nombre, .result-greeting,
.site-eyebrow, .derivacion-btn-label {
  font-family: var(--moon) !important;
  font-weight: 300 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.13em !important;
  font-style: normal !important;
}
/* ── Títulos sobre fondo oscuro/color → Moon, conservando su color propio ── */
.feedback-cta-heading, .derivacion-titulo, .site-hero__eyebrow {
  font-family: var(--moon) !important;
  font-weight: 300 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.13em !important;
  font-style: normal !important;
}
/* ── Lectura que quedaba en serif → Muli (upright) ── */
.site-pq-card, .rec-final-nota, .email-send-hint, .email-send-piloto,
.derivacion-btn-sub, .recurso-linea, .site-enf-frase, .site-enf-sub,
.site-footer__line, .site-pq-note {
  font-family: var(--read) !important;
  font-style: normal !important;
}
/* ── Cajas de información · decisión final ──
   Importante + contexto → gris frío neutro (C)
   ¿Nos ayudas? → teal profundo (color de C)
   Enfoque → blanco (C) con borde azul (A) */
.info-box{
  background:#eef2f1 !important; border:1px solid #d8e2e0 !important;
}
.empatic-note, .context-note{
  background:#e9f0ee !important; border:1px solid #d5e0dd !important;
  border-left:4px solid var(--accent) !important; color:#33474a !important;
}
.feedback-cta-banner{
  background:linear-gradient(135deg,#3f6266 0%,#4d7678 100%) !important;
}
.enfoque-card,
.enfoque-card:nth-child(1),
.enfoque-card:nth-child(2),
.enfoque-card:nth-child(3){
  background:#ffffff !important;
  border:1.5px solid var(--primary) !important;
  border-left:4px solid var(--primary) !important;
}
/* ── Cajas beige de anamnesis → paleta fría ── */
.anamnesis-group--nombre  { background:#eef2f1 !important; border:1px solid #d8e2e0 !important; }
.anamnesis-group--contacto{ background:#e9efee !important; border:1px solid #d3dddb !important; }
.anamnesis-group--contexto{ background:#ecf1f0 !important; border:1px solid #d6e0de !important; }

/* ── Web: enfriar hero (sin khaki ni malva) y secciones (sin amarillo) ── */
.site-hero{
  background:
    radial-gradient(66% 48% at 22% 6%, rgba(170,218,210,.55), transparent 60%),
    radial-gradient(58% 52% at 84% 20%, rgba(126,176,182,.5), transparent 60%),
    radial-gradient(50% 44% at 60% 60%, rgba(150,196,190,.28), transparent 60%),
    radial-gradient(85% 72% at 50% 110%, rgba(40,68,70,.64), transparent 66%),
    linear-gradient(150deg,#4d7678 0%,#3B5F63 45%,#2c4a4c 100%) !important;
}
.site-sec--cf, .site-sec--enf, .site-sec--pq{
  background:
    radial-gradient(52% 48% at 8% 2%, rgba(150,196,190,.4), transparent 60%),
    radial-gradient(48% 54% at 94% 34%, rgba(177,192,207,.36), transparent 62%),
    radial-gradient(46% 50% at 68% 104%, rgba(228,238,236,.7), transparent 60%),
    linear-gradient(160deg,#d6e6e4 0%,#e6efec 55%,#eef4f1 100%) !important;
}
/* ═══ fin sistema de diseño · cierre ═══ */

/* ══════════════════════════════════════════════════════════════
   AJUSTES POST-LANZAMIENTO — Pamela (piloto en vivo) · julio 2026
   ══════════════════════════════════════════════════════════════ */

/* 1 · Difuminado con más color y profundidad (playa), sin franja dura */
.app-shell{
  background:
    radial-gradient(65% 20% at 50% 0%, rgba(78,131,138,.5), rgba(78,131,138,0) 62%),
    radial-gradient(52% 34% at 10% 12%, rgba(150,200,192,.5), rgba(150,200,192,0) 60%),
    radial-gradient(48% 34% at 92% 26%, rgba(120,175,182,.44), rgba(120,175,182,0) 62%),
    radial-gradient(58% 42% at 62% 104%, rgba(240,228,206,.58), rgba(240,228,206,0) 60%),
    linear-gradient(168deg,#cfe3df 0%,#dde9e4 42%,#e9efe8 72%,#eef1ea 100%) !important;
}
.screen{
  background:
    radial-gradient(72% 16% at 50% 0%, rgba(78,131,138,.46), rgba(78,131,138,0) 60%),
    radial-gradient(52% 34% at 8% 10%, rgba(150,200,192,.42), rgba(150,200,192,0) 60%),
    radial-gradient(48% 34% at 94% 24%, rgba(120,175,182,.38), rgba(120,175,182,0) 62%),
    radial-gradient(58% 42% at 60% 104%, rgba(240,228,206,.46), rgba(240,228,206,0) 60%),
    linear-gradient(168deg,#d3e5e1 0%,#dfeae5 45%,#eaefe9 100%) !important;
}
.pilot-bar{ box-shadow:0 22px 38px -18px rgba(52,84,88,.5) !important; }

/* 2 · Cajas de respuesta en crema, definidas, texto en negrita */
.checkbox-card, .option-card{
  background:linear-gradient(180deg,#fffdf8,#FBF4E8) !important;
  border:1px solid #eee1cd !important;
  box-shadow:0 5px 16px rgba(46,74,90,.07) !important;
}
.checkbox-card:has(input:checked), .option-card:has(input:checked){
  background:linear-gradient(180deg,#eff7ff,#e3eefb) !important; border-color:#3B5F63 !important;
  box-shadow:0 10px 24px rgba(62,92,112,.16) !important;
}
/* Respuestas del cuestionario: peso 600 PAREJO en todas las opciones —
   tanto las que usan <span class="option-text"> como las que usan <span> pelado
   (p. ej. antecedentes familiares, tratamiento psiquiátrico). Antes estas últimas
   quedaban en peso fino y se veían disparejas respecto al resto. */
.option-text,
.option-card > span,
.checkbox-card > span{ font-weight:600 !important; color:#2c3a44 !important; }

/* 3 · Anamnesis con vida (no ficha clínica) */
.anamnesis-group--nombre, .anamnesis-group--contacto, .anamnesis-group--contexto{
  background:linear-gradient(180deg,#ffffff,#f2f8f5) !important;
  border:1px solid #e0eae6 !important;
  box-shadow:0 12px 28px rgba(46,74,90,.09) !important;
}

/* 4 · Frase de contexto (empática) más notoria */
.empatic-note, .context-note{
  background:linear-gradient(180deg,#eef6fe,#e2eefb) !important;
  border:1px solid #cfe0ef !important; border-left:4px solid #3B5F63 !important;
  box-shadow:0 8px 22px rgba(62,92,112,.12) !important; color:#2c3a44 !important;
}

/* 5 · Coral "poco rojo" → terracota cálido más visible; eyebrow en Moon */
:root{ --secondary:#C25E45; }
.q-eyebrow{ font-family:'Jost',sans-serif !important; font-weight:500 !important; color:#C25E45 !important; letter-spacing:.24em !important; }
.recursos-titulo, .recurso-nombre, .rec-final-enfoque, .rec-final-link, .email-send-piloto-em, .enfoque-justificacion-label, .esp-card__esp, .site-hero__red, .gate-error{ color:#C25E45 !important; }

/* 6 · Quitar la bajada de la barra del piloto (no debe ir en todos lados) */
.pilot-tagline{ display:none !important; }

/* 7 · Consentimiento con tipografía Muli y caja fría */
.consent-texto, .consent-check, .consent-card p, #screen-consent p, #screen-consent li{ font-family:'Mulish',sans-serif !important; }
.consent-crisis{ background:#eef2f1 !important; border:1px solid #d8e2e0 !important; }

/* 8 · Resultado (desktop): cajas al mismo ancho, título más grande */
.result-title{ font-size:clamp(26px,2.4vw,38px) !important; }
.app-shell .card--result .resumen-respuestas,
.app-shell .card--result .result-disclaimer,
.app-shell .card--result .clinical-standards-badge,
.app-shell .card--result .feedback-cta-wrap,
.app-shell .card--result .enfoques-container,
.app-shell .card--result .empatic-note{
  max-width:760px !important; margin-left:auto !important; margin-right:auto !important;
}

/* 9 · Footer que se funde con el fondo (sin bloque duro) */
.site-footer{ background:linear-gradient(180deg,rgba(59,95,99,0) 0%,#3B5F63 42%,#2c4a4c 100%) !important; border-radius:0 !important; }
/* ═══ fin ajustes post-lanzamiento ═══ */

/* 10 · Acceso al piloto (gate) con tipografía nueva */
.gate-eyebrow{ font-family:'Jost',sans-serif !important; font-style:normal !important; font-weight:400 !important; letter-spacing:.2em !important; color:#6E9A9C !important; }
.gate-titulo{ font-family:'Jost',sans-serif !important; font-weight:300 !important; text-transform:uppercase !important; letter-spacing:.13em !important; font-style:normal !important; color:#3B5F63 !important; }
.gate-wordmark{ font-family:'Jost',sans-serif !important; }
.gate-intro, .gate-acuerdo-texto, .gate-acuerdo-lista, .gate-acuerdo-lista *, .gate-label, .gate-volver, .gate-acuerdo-box{ font-family:'Mulish',sans-serif !important; }

/* ── Portada (hero) · paleta elegida por Pamela ── */
.site-hero__eyebrow{ color:#C8AAA2 !important; }
.site-hero__red, .site-hero__red .big{ color:#C8AAA2 !important; }
.site-hero__bajada{ color:#F1F2F3 !important; }
.site-hero__arrow line, .site-hero__arrow path{ stroke:#C46E84 !important; }
.site-hero__arrow circle{ fill:#C46E84 !important; }

/* ══════════════════════════════════════════════════════════════
   MÁS COLOR EN ZONAS PLANAS (criterio) · julio 2026
   ══════════════════════════════════════════════════════════════ */

/* Difuminado con blooms también al medio (menos plano) */
.app-shell{
  background:
    radial-gradient(65% 20% at 50% 0%, rgba(78,131,138,.5), rgba(78,131,138,0) 62%),
    radial-gradient(42% 26% at 88% 46%, rgba(108,168,176,.36), rgba(108,168,176,0) 60%),
    radial-gradient(40% 24% at 10% 56%, rgba(150,200,178,.34), rgba(150,200,178,0) 60%),
    radial-gradient(52% 34% at 10% 12%, rgba(150,200,192,.5), rgba(150,200,192,0) 60%),
    radial-gradient(48% 34% at 92% 24%, rgba(120,175,182,.44), rgba(120,175,182,0) 62%),
    radial-gradient(58% 42% at 62% 104%, rgba(240,228,206,.58), rgba(240,228,206,0) 60%),
    linear-gradient(168deg,#cfe3df 0%,#dae7e2 40%,#e6efe8 70%,#eef1ea 100%) !important;
}
.screen{
  background:
    radial-gradient(72% 16% at 50% 0%, rgba(78,131,138,.46), rgba(78,131,138,0) 60%),
    radial-gradient(42% 26% at 90% 48%, rgba(108,168,176,.3), rgba(108,168,176,0) 60%),
    radial-gradient(40% 24% at 8% 58%, rgba(150,200,178,.3), rgba(150,200,178,0) 60%),
    radial-gradient(52% 34% at 8% 10%, rgba(150,200,192,.42), rgba(150,200,192,0) 60%),
    radial-gradient(48% 34% at 94% 24%, rgba(120,175,182,.38), rgba(120,175,182,0) 62%),
    radial-gradient(58% 42% at 60% 104%, rgba(240,228,206,.46), rgba(240,228,206,0) 60%),
    linear-gradient(168deg,#d3e5e1 0%,#dfeae5 45%,#eaefe9 100%) !important;
}

/* Encabezados de categoría: chip con color (no gris plano), uno por categoría */
.motivo-cat-titulo{ border-radius:11px !important; padding:9px 15px !important; color:#2c4a4c !important; }
.motivo-cat-group:nth-child(4n+1) .motivo-cat-titulo{ background:linear-gradient(90deg,#cfe6df,#e2efe9) !important; }
.motivo-cat-group:nth-child(4n+2) .motivo-cat-titulo{ background:linear-gradient(90deg,#d6e6ef,#e4edf3) !important; }
.motivo-cat-group:nth-child(4n+3) .motivo-cat-titulo{ background:linear-gradient(90deg,#f1e8d6,#f6efe1) !important; color:#6a5a3f !important; }
.motivo-cat-group:nth-child(4n)   .motivo-cat-titulo{ background:linear-gradient(90deg,#d5e6dc,#e4efe7) !important; }

/* Bienvenida piloto: cajas "Qué esperar" con tintes suaves (aqua/azul/arena/sage) */
.piloto-info-card{ box-shadow:0 8px 22px rgba(46,74,90,.08) !important; }
.piloto-info-card:nth-child(4n+1){ background:linear-gradient(180deg,#e7f2ef,#d9ece5) !important; border:1px solid #cbe1da !important; }
.piloto-info-card:nth-child(4n+2){ background:linear-gradient(180deg,#eef3f8,#e0eaf1) !important; border:1px solid #d2e0ea !important; }
.piloto-info-card:nth-child(4n+3){ background:linear-gradient(180deg,#f6efe3,#efe6d3) !important; border:1px solid #e8ddc6 !important; }
.piloto-info-card:nth-child(4n)  { background:linear-gradient(180deg,#e9f0e9,#dbe8de) !important; border:1px solid #cde0d3 !important; }

/* Consentimiento: cajas con color propio (no fome) */
.consent-box--es   { background:linear-gradient(180deg,#e7f2ef,#d9ece5) !important; border:1px solid #cbe1da !important; }
.consent-box--noes { background:linear-gradient(180deg,#eef3f8,#e0eaf1) !important; border:1px solid #d2e0ea !important; }
.consent-box--crisis{ background:linear-gradient(180deg,#f6efe3,#efe6d3) !important; border:1px solid #e8ddc6 !important; border-left:4px solid #C25E45 !important; }
.consent-box--datos{ background:linear-gradient(180deg,#eef1f0,#e3eae8) !important; border:1px solid #d8e2e0 !important; }
/* ═══ fin más color en zonas planas ═══ */
/* Título del consentimiento en Moon (faltaba) */
.consent-titulo{ font-family:'Jost',sans-serif !important; font-weight:300 !important; text-transform:uppercase !important; letter-spacing:.13em !important; font-style:normal !important; color:#3B5F63 !important; }
/* Categorías: fondo claro propio para las cajas de respuesta (que no se transparenten) */
.motivo-cat-group{ background:#fcfdfd !important; border:1px solid #e4ece9 !important; box-shadow:0 6px 16px rgba(46,74,90,.06) !important; }
.motivo-item:has(input:checked){ background:#eff7ff !important; }

/* Nota médica destacada en el resultado (Extension B2-16) */
.nota-medica{ background:linear-gradient(180deg,#f6efe3,#efe6d3); border:1px solid #e8ddc6; border-left:4px solid #C25E45; border-radius:14px; padding:16px 18px; margin:18px auto 6px; max-width:760px; box-shadow:0 8px 22px rgba(46,74,90,.08); }
.nota-medica-titulo{ display:block; font-family:'Jost',sans-serif; font-weight:500; letter-spacing:.14em; text-transform:uppercase; font-size:12px; color:#9a4a33; margin-bottom:6px; }
.nota-medica p{ font-family:'Mulish',sans-serif; font-size:14px; line-height:1.7; color:#33474a; margin:0; }
.nota-medica strong{ color:#9a4a33; }

/* Enlace de descarga de la Declaración en el consentimiento */
.consent-descarga{ text-align:center; margin:12px 0 2px; font-family:'Mulish',sans-serif; font-size:12.5px; }
.consent-descarga a{ color:#6E9A9C; text-decoration:none; letter-spacing:.02em; }
.consent-descarga a:hover{ text-decoration:underline; }

/* ═══════════════════════════════════════════════════════════════════
   AJUSTES MÓVIL — feedback prueba en celular (jul 2026)
   1) Botones "pegados" a las preguntas → separación consistente
   2) Negritas invisibles → <strong>/<b> siempre en peso real
   3) Pantallas se veían angostas en el cel → más ancho útil
   ═══════════════════════════════════════════════════════════════════ */

/* 1) Separación clara entre el contenido y la fila de botones,
      en TODAS las pantallas del cuestionario. */
.nav-row {
  margin-top: 30px;
  padding-top: 4px;
}
/* Un poco de aire extra cuando el elemento previo es un textarea/campo libre */
.libre-text-wrap + .nav-row,
.free-text + .nav-row,
.anamnesis-field + .nav-row { margin-top: 26px; }

/* 2) Que las negritas se vean de verdad. El body va en peso 300, y el
      "bolder" por defecto del navegador sólo sube 300→400 (casi invisible).
      Forzamos un peso realmente marcado y disponible en Mulish. */
strong, b, .option-text strong, p strong, li strong {
  font-weight: 700;
}

/* 3) En celular, aprovechar más ancho de pantalla (se veía angosto). */
@media (max-width: 500px) {
  body { padding-left: 10px; padding-right: 10px; }
  .card { padding: 26px 16px; }
}

/* ═══════════════════════════════════════════════════════════════════
   PANTALLA DE ORIENTACIÓN — Tarjetas de enfoque · diseño aprobado (jul 2026)
   1ª (principal): azul header/pie lleno + título blanco + "por qué" terracota
   2ª: celeste · 3ª: verde salvia · todas apiladas y alineadas a la izquierda
   ═══════════════════════════════════════════════════════════════════ */
.enfoques-container .enfoque-card{
  display:block !important; grid-template-columns:1fr !important;
  text-align:left !important; border:1.5px solid transparent !important;
  border-radius:18px !important; padding:22px 22px 24px !important; hyphens:none !important;
}
.enfoques-container .enfoque-card .enfoque-label,
.enfoques-container .enfoque-card .enfoque-nombre,
.enfoques-container .enfoque-card .enfoque-descripcion,
.enfoques-container .enfoque-card .enfoque-justificacion{ grid-column:auto !important; text-align:left !important; }
.enfoques-container .enfoque-nombre{ hyphens:none !important; word-break:normal !important; overflow-wrap:normal !important; }
.enfoques-container .enfoque-justificacion{ border-radius:12px !important; padding:13px 15px !important; margin-top:14px !important; }

/* 1 · PRINCIPAL — azul del header/pie, deslavado pero lleno, título blanco */
.enfoques-container .enfoque-card:nth-child(1){ background:rgba(84,112,126,.60) !important; border-color:rgba(84,112,126,.92) !important; }
.enfoques-container .enfoque-card:nth-child(1) .enfoque-label,
.enfoques-container .enfoque-card:nth-child(1) .enfoque-label--principal{ color:#F0D9A0 !important; }
.enfoques-container .enfoque-card:nth-child(1) .enfoque-nombre{ color:#FFFFFF !important; }
.enfoques-container .enfoque-card:nth-child(1) .enfoque-descripcion{ color:#EAF0F2 !important; }
.enfoques-container .enfoque-card:nth-child(1) .enfoque-justificacion{ background:rgba(255,255,255,.15) !important; }
.enfoques-container .enfoque-card:nth-child(1) .enfoque-justificacion-label{ color:#E6805F !important; }
.enfoques-container .enfoque-card:nth-child(1) .enfoque-justificacion-texto{ color:#F1F5F6 !important; }
.enfoques-container .enfoque-card:nth-child(1) .enfoque-justificacion-texto strong{ color:#E6805F !important; }

/* 2 · celeste */
.enfoques-container .enfoque-card:nth-child(2){ background:#E6F1FB !important; border-color:#8398A4 !important; }
.enfoques-container .enfoque-card:nth-child(2) .enfoque-justificacion{ background:#D6E4F1 !important; }

/* 3 · verde salvia */
.enfoques-container .enfoque-card:nth-child(3){ background:#E3EAE6 !important; border-color:#82998F !important; }
.enfoques-container .enfoque-card:nth-child(3) .enfoque-justificacion{ background:#D6E0DA !important; }

/* ── Nota del vínculo dentro del resultado (movida desde la landing "Para quién es") ── */
.result-vinculo-nota{
  margin-top:28px;
  background:#FBF7F1;
  border:1px solid #E6E4D9;
  border-radius:18px;
  padding:24px 26px;
}
.result-vinculo-texto{
  margin:0;
  color:#2C3A44;
  font-size:15px;
  line-height:1.7;
  font-style:italic;
}
.result-vinculo-firma{
  margin:14px 0 0;
  text-align:right;
  color:#54707E;
  font-weight:600;
  font-size:14px;
  font-style:normal;
}

/* ── Opción B: botón de pausa en zona propia bajo la navegación (visible) + leyenda ── */
.pausa-zone{
  display:flex; flex-direction:column; align-items:center; gap:9px;
  margin:16px auto 4px; max-width:820px; text-align:center;
}
.app-shell .btn-pausar{
  position:static !important; top:auto !important; right:auto !important; z-index:auto !important;
  display:inline-flex !important; align-items:center; gap:9px;
  background:#F7F0E4 !important; color:#3E5C70 !important;
  border:1px solid #EADFCB !important; border-radius:999px !important;
  padding:11px 22px !important; font-size:13px !important; font-weight:700 !important;
  letter-spacing:.02em !important; text-transform:none !important;
  box-shadow:0 2px 8px rgba(40,58,68,.10) !important; cursor:pointer;
}
.app-shell .btn-pausar::before{
  content:""; display:inline-block; width:8px; height:12px;
  border-left:3px solid #3E5C70; border-right:3px solid #3E5C70;
}
.app-shell .btn-pausar:hover{ background:#F0E7D6 !important; }
.pausa-leyenda{
  margin:0; font-size:12px; color:#8398A4; font-style:italic; line-height:1.5; max-width:440px;
}
/* Barra de progreso: mostrar el porcentaje (antes oculto por .progress-label{display:none}) */
.app-shell .progress-label{
  display:block !important; font-size:12.5px; font-weight:700;
  color:#3E5C70; letter-spacing:.02em; text-transform:none; margin-top:4px;
}
.app-shell .progress-track{ height:8px !important; background:#E3EDF2 !important; }
