/**
 * ESTILOS DE LA GUÍA DE FINANCIAMIENTO - TU CASA CON CATA (ArkiBuilders)
 * Paleta de marca, tipografía Montserrat, diseño mobile-first y print CSS.
 */

:root {
  /* Paleta Oficial */
  --teal-100: #9AD5D6;
  --teal-200: #7BCACA;
  --teal-300: #5FBDBD;
  --teal-500: #11918F;
  --teal-700: #0D6E6D;
  --teal-900: #07585A;
  
  --ink: #0B2F30;
  --ink-soft: #234E4F;
  --ink-muted: #5C7E7F;
  
  --paper: #F7FAFA;
  --white: #FFFFFF;
  --card-bg: #FFFFFF;
  --border-light: #E2ECEC;
  --border-focus: #5FBDBD;
  
  --gold-accent: #C5A059;
  --gold-light: #FEF3C7;
  --gold-dark: #92400E;
  --success: #059669;
  --warning: #D97706;
  --error: #DC2626;

  /* Sombras */
  --shadow-sm: 0 2px 8px rgba(11, 47, 48, 0.04);
  --shadow-md: 0 8px 24px rgba(11, 47, 48, 0.08);
  --shadow-lg: 0 16px 40px rgba(11, 47, 48, 0.12);
  --shadow-glow: 0 0 0 3px rgba(17, 145, 143, 0.2);

  /* Radios */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transiciones */
  --transition-fast: 0.18s ease-out;
  --transition-normal: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset y caja */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background-color: var(--paper);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Contenedor central */
.guide-wrapper {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 1rem 1rem 3.5rem 1rem;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ================= ENCABEZADO Y MARCA ================= */
.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 250, 250, 0.95);
  backdrop-filter: blur(8px);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 1.5rem;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.brand-identity {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.brand-monogram {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--teal-900);
  letter-spacing: -0.01em;
}

.brand-sub {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-icon-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--teal-900);
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-icon-pill:hover, .btn-icon-pill:focus-visible {
  border-color: var(--teal-500);
  background: var(--teal-100);
  outline: none;
}

.btn-icon-pill .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--teal-900);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
}

.btn-text-muted {
  background: none;
  border: none;
  color: var(--ink-muted);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  text-decoration: underline;
  transition: var(--transition-fast);
}

.btn-text-muted:hover {
  color: var(--error);
}

/* Barra de Progreso */
.progress-bar-wrapper {
  margin-top: 0.85rem;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--teal-900);
  margin-bottom: 0.35rem;
}

.progress-track {
  width: 100%;
  height: 6px;
  background: var(--border-light);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--teal-300), var(--teal-500));
  border-radius: var(--radius-full);
  transition: width 0.35s ease;
}

/* ================= VISTAS Y TRANSICIONES ================= */
.app-main {
  flex: 1;
}

.guide-view {
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ================= BIENVENIDA / HERO ================= */
.hero-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 3rem 2rem;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.hero-badge {
  display: inline-block;
  background: var(--teal-100);
  color: var(--teal-900);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-title {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--teal-900);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 auto 2.25rem auto;
  line-height: 1.6;
}

.trust-features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 660px;
  margin: 0 auto 2.5rem auto;
  text-align: left;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: var(--paper);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
}

.feature-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.feature-desc strong {
  display: block;
  font-size: 0.95rem;
  color: var(--teal-900);
  margin-bottom: 0.2rem;
}

.feature-desc span {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.hero-cta-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.microcopy-lock {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--ink-muted);
}

/* ================= BOTONES ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.65rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-normal);
  text-decoration: none;
  border: 1px solid transparent;
  min-height: 48px;
}

.btn-primary {
  background: var(--teal-500);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(17, 145, 143, 0.25);
}

.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--teal-700);
  box-shadow: 0 6px 18px rgba(17, 145, 143, 0.35);
  outline: none;
}

.btn-secondary {
  background: var(--white);
  border-color: var(--border-light);
  color: var(--ink);
}

.btn-secondary:hover, .btn-secondary:focus-visible {
  background: var(--paper);
  border-color: var(--teal-300);
  outline: none;
}

.btn-whatsapp {
  background: #25D366;
  color: var(--white);
  border: 1px solid #1EBE5D;
}

.btn-whatsapp:hover, .btn-whatsapp:focus-visible {
  background: #1EBE5D;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
  transform: translateY(-2px);
  outline: none;
}

.btn-outline-teal {
  background: transparent;
  border: 1.5px solid var(--teal-500);
  color: var(--teal-900);
}

.btn-outline-teal:hover {
  background: var(--teal-100);
}

.btn-error {
  background: var(--error);
  color: var(--white);
}

.btn-lg {
  padding: 1.05rem 2.2rem;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: var(--radius-lg);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  min-height: 36px;
}

.btn-arrow {
  font-size: 1.15rem;
  transition: transform var(--transition-fast);
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-text-teal {
  background: none;
  border: none;
  color: var(--teal-700);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

/* ================= DIAGNÓSTICO: TARJETAS DE PREGUNTAS ================= */
.step-card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

.diag-step-header {
  margin-bottom: 1.75rem;
}

.diag-counter-chip {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  background: var(--teal-100);
  color: var(--teal-900);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.diag-heading {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--teal-900);
  line-height: 1.3;
  margin-bottom: 0.4rem;
}

.diag-desc {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

.diag-options-grid {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.diag-option-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  background: var(--white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
}

.diag-option-card:hover {
  border-color: var(--teal-300);
  background: rgba(154, 213, 214, 0.08);
}

.diag-option-card.selected {
  border-color: var(--teal-500);
  background: rgba(154, 213, 214, 0.16);
  box-shadow: var(--shadow-glow);
}

.diag-opt-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.diag-opt-content {
  flex: 1;
}

.diag-opt-title {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--teal-900);
  margin-bottom: 0.15rem;
}

.diag-opt-desc {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.diag-opt-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: transparent;
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.diag-option-card.selected .diag-opt-check {
  background: var(--teal-500);
  border-color: var(--teal-500);
  color: var(--white);
}

.step-nav-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

/* ================= RUTA PERSONALIZADA Y HERO ================= */
.route-hero-card {
  background: linear-gradient(135deg, var(--teal-900) 0%, #0A3E40 100%);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 2.25rem 1.75rem;
  box-shadow: var(--shadow-lg);
  margin-bottom: 2rem;
}

.route-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
}

.route-tag {
  background: rgba(154, 213, 214, 0.2);
  color: var(--teal-100);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.route-date {
  color: var(--teal-100);
  opacity: 0.8;
}

.route-heading {
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  line-height: 1.25;
}

.route-desc {
  font-size: 0.95rem;
  color: var(--teal-100);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.profile-chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.profile-chip {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* ================= BARRA DE ACCIONES Y CONVERSIÓN ================= */
.actions-toolbar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0 0 2.5rem 0;
}

.btn-cta-primary {
  width: 100%;
  font-size: 1.08rem;
  font-weight: 700;
  padding: 1.15rem 2rem;
  min-height: 56px;
  background: linear-gradient(135deg, var(--teal-500) 0%, var(--teal-700) 100%);
  color: var(--white);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 22px rgba(17, 145, 143, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-decoration: none;
  border: none;
  transition: var(--transition-normal);
}

.btn-cta-primary:hover, .btn-cta-primary:focus-visible {
  background: linear-gradient(135deg, var(--teal-700) 0%, #084849 100%);
  box-shadow: 0 10px 28px rgba(17, 145, 143, 0.38);
  transform: translateY(-2px);
  outline: none;
}

.secondary-actions-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  width: 100%;
}

@media (min-width: 580px) {
  .secondary-actions-row {
    grid-template-columns: 1fr 1fr;
    gap: 1.15rem;
  }
}

.secondary-actions-row .btn-action {
  width: 100%;
  min-height: 52px;
  padding: 0.95rem 1.5rem;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}

/* ================= MÓDULOS DE CONTENIDO (ACORDEONES) ================= */
.modules-section-card,
.timeline-section-card,
.checklist-section-card,
.assessment-section-card,
.questions-section-card,
.nmls-verifier-card,
.closing-cta-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.card-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--teal-900);
  margin-bottom: 0.25rem;
}

.card-section-sub {
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-bottom: 1.25rem;
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.modules-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.module-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-fast);
}

.module-item.highlighted {
  border-color: var(--teal-500);
  background: #FAFDFD;
  box-shadow: var(--shadow-glow);
}

.module-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.15rem 1.25rem;
  cursor: pointer;
  background: var(--white);
}

.module-summary-row:hover {
  background: var(--paper);
}

.module-summary-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.module-num {
  font-size: 0.78rem;
  font-weight: 800;
  background: var(--teal-100);
  color: var(--teal-900);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.module-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--teal-900);
}

.module-badge-priority {
  font-size: 0.68rem;
  font-weight: 700;
  background: #FEF3C7;
  color: #92400E;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  margin-left: 0.5rem;
}

.module-body {
  padding: 1.25rem;
  background: var(--paper);
  border-top: 1px solid var(--border-light);
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

.module-lead {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--teal-900);
  margin-bottom: 1rem;
}

.module-points-list {
  list-style: none;
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.module-points-list li {
  position: relative;
  padding-left: 1.25rem;
}

.module-points-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--teal-500);
}

/* Badges de Fuente ⓘ */
.source-meta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
}

.source-info-left {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--ink-muted);
}

.btn-source-link {
  color: var(--teal-500);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
}

/* ================= LÍNEA DE TIEMPO INTERACTIVA ================= */
.tool-badge {
  display: inline-block;
  background: var(--teal-100);
  color: var(--teal-900);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.timeline-steps-nav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.timeline-step-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.65rem 0.4rem;
  background: var(--paper);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: center;
}

.timeline-step-btn:hover {
  border-color: var(--teal-300);
}

.timeline-step-btn.active {
  border-color: var(--teal-500);
  background: rgba(154, 213, 214, 0.2);
  box-shadow: var(--shadow-glow);
}

.t-step-num {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--teal-900);
}

.t-step-title {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-top: 0.2rem;
  line-height: 1.2;
}

.timeline-detail-card {
  background: var(--paper);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.t-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.t-detail-phase {
  font-size: 1rem;
  font-weight: 700;
  color: var(--teal-900);
}

.t-detail-duration {
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--teal-100);
  color: var(--teal-900);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.t-detail-text {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* ================= CHECKLIST PERSONAL ================= */
.checklist-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.checklist-progress-pill {
  background: var(--paper);
  border: 1px solid var(--border-light);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.prog-lbl {
  color: var(--ink-muted);
}

.prog-pct {
  color: var(--teal-700);
  font-size: 1.05rem;
}

.checklist-progress-bar {
  width: 100%;
  height: 8px;
  background: var(--border-light);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 1.75rem;
}

.checklist-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--teal-300), var(--teal-500));
  transition: width 0.4s ease;
}

.checklist-categories-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.chk-cat-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--teal-900);
  margin-bottom: 0.75rem;
}

.chk-items-grid {
  display: grid;
  gap: 0.65rem;
}

.chk-item-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--paper);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.4;
}

.chk-item-label:hover {
  border-color: var(--teal-300);
}

.chk-item-label.checked {
  background: rgba(154, 213, 214, 0.12);
  border-color: var(--teal-500);
  color: var(--ink);
}

.chk-item-label input {
  margin-top: 0.2rem;
  accent-color: var(--teal-500);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ================= MINI-AUTOEVALUACIÓN ================= */
.assessment-questions-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.eval-item-block {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-light);
}

.eval-q-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--teal-900);
  margin-bottom: 0.65rem;
}

.eval-options-grid {
  display: grid;
  gap: 0.5rem;
}

.eval-option-label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.85rem;
  background: var(--paper);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.eval-option-label:hover {
  border-color: var(--teal-300);
}

.eval-option-label input {
  accent-color: var(--teal-500);
}

.assessment-result-box {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: var(--paper);
  border-left: 4px solid var(--teal-500);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.result-traffic-light {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.traffic-green { background: #D1FAE5; color: #065F46; }
.traffic-yellow { background: #FEF3C7; color: #92400E; }
.traffic-orange { background: #FFEDD5; color: #9A3412; }

.result-traffic-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--teal-900);
  margin-bottom: 0.35rem;
}

.result-traffic-desc {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.45;
  margin-bottom: 0.5rem;
}

.result-traffic-note {
  display: block;
  font-size: 0.75rem;
  color: var(--ink-muted);
}

/* ================= 10 PREGUNTAS PARA EL BANCO ================= */
.questions-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.questions-list-grid {
  display: grid;
  gap: 0.85rem;
}

.bank-q-card {
  padding: 1rem 1.15rem;
  background: var(--paper);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}

.bank-q-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--teal-900);
  margin-bottom: 0.3rem;
}

.bank-q-why {
  font-size: 0.8rem;
  color: var(--ink-muted);
  line-height: 1.35;
}

/* ================= VERIFICADOR NMLS ================= */
.nmls-verifier-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: #F0FDF4;
  border: 1.5px solid #BBF7D0;
}

.verifier-icon {
  font-size: 2.2rem;
  line-height: 1;
}

.verifier-content {
  flex: 1;
}

.verifier-title {
  font-size: 1rem;
  font-weight: 700;
  color: #166534;
  margin-bottom: 0.2rem;
}

.verifier-desc {
  font-size: 0.82rem;
  color: #14532D;
  line-height: 1.4;
}

/* ================= CIERRE Y CONVERSIÓN CON CATA ================= */
.closing-cta-card {
  background: linear-gradient(135deg, var(--teal-900) 0%, #0A3E40 100%);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  text-align: center;
}

.closing-badge {
  display: inline-block;
  background: rgba(154, 213, 214, 0.2);
  color: var(--teal-100);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.85rem;
  text-transform: uppercase;
}

.closing-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.closing-desc {
  font-size: 0.95rem;
  color: var(--teal-100);
  max-width: 620px;
  margin: 0 auto 1.75rem auto;
  line-height: 1.55;
}

.closing-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

@media (min-width: 600px) {
  .closing-actions {
    flex-direction: row;
    justify-content: center;
  }
}

.app-legal-footer {
  font-size: 0.75rem;
  color: var(--ink-muted);
  line-height: 1.5;
  text-align: center;
  padding: 1rem 0;
}

/* ================= MODALES ================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 47, 48, 0.6);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-dialog {
  background: var(--white);
  border-radius: var(--radius-xl);
  max-width: 620px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.modal-dialog.modal-sm {
  max-width: 440px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.modal-title-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--teal-900);
}

.btn-close-modal {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--ink-muted);
  cursor: pointer;
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-light);
  background: var(--paper);
}

/* ================= PREFERS-REDUCED-MOTION ================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ================= ESTILOS DE IMPRESIÓN (@media print) ================= */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 10.5pt !important;
  }

  .guide-wrapper {
    max-width: 100% !important;
    padding: 0 !important;
  }

  /* Ocultar elementos interactivos */
  .app-header,
  .progress-bar-wrapper,
  .actions-toolbar,
  .closing-cta-card,
  .modal-backdrop,
  .btn,
  .btn-text-teal,
  .step-nav-footer,
  #view-diagnostic,
  #view-welcome,
  .timeline-steps-nav,
  .assessment-section-card {
    display: none !important;
  }

  #view-guide-content {
    display: block !important;
  }

  .route-hero-card {
    background: #ffffff !important;
    color: #000000 !important;
    border: 2px solid #07585A !important;
    box-shadow: none !important;
    padding: 1.25rem !important;
    page-break-after: avoid;
  }

  .route-heading {
    color: #07585A !important;
  }

  .profile-chip {
    background: #f0f0f0 !important;
    color: #000 !important;
    border: 1px solid #ccc !important;
  }

  .modules-section-card,
  .checklist-section-card,
  .questions-section-card,
  .nmls-verifier-card {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
    margin-top: 1rem !important;
    page-break-inside: avoid;
  }

  .module-body {
    display: block !important;
    background: #fafafa !important;
  }
}

/* ==========================================================================
   Botón Flotante de WhatsApp
   ========================================================================== */
.floating-whatsapp-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
  z-index: 9999;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
}

.floating-whatsapp-btn:hover {
  transform: scale(1.08) translateY(-3px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.6);
  color: #ffffff;
}

.floating-whatsapp-tooltip {
  position: absolute;
  right: 70px;
  background: rgba(11, 47, 48, 0.95);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.floating-whatsapp-btn:hover .floating-whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

@media print {
  .floating-whatsapp-btn {
    display: none !important;
  }
}
