/**
 * The Master Lab (TML) — Hoja de Estilos Oficial del Test Diagnóstico de Viabilidad
 * tml_diagnostico.css · Versión 2.0 (High-End Scientific Edition)
 * =========================================================================
 * Dirección de Arte y Diseño: Minerva (Tier 1 Comercial & UX/UI)
 * Sistema: The Master Lab (themasterlab.com.co)
 * Referencia cromática: TML_COM_BriefMarca.md & TML_COM_RepositorioDesignSystem.md
 * Principios: Dark Luxury, Glassmorphism, Micro-interacciones 60fps, Responsive First
 */

:root {
  /* Paleta Canónica TML */
  --tml-yankees-blue: #1D2C3F;      /* Primario Institucional */
  --tml-cobalt-blue: #1E3A84;       /* Secundario de Apoyo */
  --tml-cobalt-light: #2B6CB0;      /* Azul Interfaz / Focus */
  --tml-cobalt-hover: #3182CE;      /* Azul Interfaz Hover */
  --tml-sunray-gold: #DFAE51;       /* Dorado TML Acento Oficial */
  --tml-gold-hover: #F0C068;        /* Dorado Hover */
  --tml-gold-glow: rgba(223, 174, 81, 0.28);
  --tml-gainsboro: #D8DCDC;         /* Neutro Claro TML */
  --tml-pastel-gray: #DCD1B9;       /* Neutro Cálido TML */

  /* Dark Slate Digital Surface (Profundidad Científica) */
  --bg-canvas: #0A0F1D;            /* Fondo base ultra oscuro */
  --bg-surface-glass: rgba(23, 35, 59, 0.65);
  --bg-card-glass: rgba(17, 26, 44, 0.72);
  --bg-card-hover: rgba(29, 44, 63, 0.85);
  --bg-input: rgba(10, 15, 29, 0.85);
  --bg-header: rgba(29, 44, 63, 0.94);

  /* Texto y Legibilidad */
  --text-primary: #FFFFFF;
  --text-secondary: #E2E8F0;
  --text-muted: #94A3B8;
  --text-dim: #64748B;

  /* Bordes de Cristal y Luces */
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-light: rgba(216, 220, 220, 0.16);
  --border-gold: rgba(223, 174, 81, 0.38);
  --border-focus: #3182CE;

  /* Semáforo Metodológico */
  --color-success: #10B981;
  --color-success-glow: rgba(16, 185, 129, 0.28);
  --color-warning: #F59E0B;
  --color-warning-glow: rgba(245, 158, 11, 0.28);
  --color-danger: #EF4444;
  --color-danger-glow: rgba(239, 68, 68, 0.28);

  /* WhatsApp & Conversión */
  --color-whatsapp: #25D366;
  --color-whatsapp-hover: #22BF5B;
  --color-whatsapp-glow: rgba(37, 211, 102, 0.35);

  /* Tipografías */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Sombras Multicapa (Linear / Stripe Depth) */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px -4px rgba(0, 0, 0, 0.45), 0 2px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 45px -10px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.06);
  --shadow-gold: 0 12px 35px -6px rgba(223, 174, 81, 0.3);
  --shadow-card-hover: 0 16px 36px -8px rgba(0, 0, 0, 0.6), 0 0 20px rgba(43, 108, 176, 0.2);

  /* Radios de Curvatura */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --radius-full: 9999px;

  /* Transición Base */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ========================================================= */
/* 1. RESET Y BASE ESTILÍSTICA */
/* ========================================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-canvas);
  background-image: 
    radial-gradient(ellipse 90% 60% at 50% -15%, rgba(30, 58, 132, 0.25) 0%, transparent 70%),
    radial-gradient(circle 800px at 100% 30%, rgba(43, 108, 176, 0.08) 0%, transparent 60%),
    radial-gradient(circle 800px at 0% 70%, rgba(223, 174, 81, 0.05) 0%, transparent 60%);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ========================================================= */
/* 2. HEADER INSTITUCIONAL (Réplica themasterlab.com.co) */
/* ========================================================= */
.tml-header {
  background: var(--bg-header);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1.75rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  transition: background var(--transition-fast);
}

.tml-header-content {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.brand-logo:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.brand-logo-img {
  height: 40px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
}

/* Acciones y Metadatos del Header */
.header-right-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.back-link-site {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.03);
  transition: all var(--transition-fast);
}

.back-link-site:hover {
  color: var(--tml-sunray-gold);
  border-color: rgba(223, 174, 81, 0.35);
  background: rgba(223, 174, 81, 0.08);
  transform: translateX(-2px);
}

/* Badge de Estado del Header */
.header-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(10, 15, 29, 0.75);
  border: 1px solid rgba(223, 174, 81, 0.25);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--tml-gainsboro);
  letter-spacing: 0.3px;
  flex-shrink: 0;
}

.header-meta-badge .dot-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-success);
  box-shadow: 0 0 10px var(--color-success);
  display: inline-block;
  animation: pulseLive 2s infinite ease-in-out;
}

@keyframes pulseLive {
  0% { transform: scale(0.9); opacity: 0.85; box-shadow: 0 0 4px var(--color-success); }
  50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 12px var(--color-success); }
  100% { transform: scale(0.9); opacity: 0.85; box-shadow: 0 0 4px var(--color-success); }
}

/* ========================================================= */
/* 3. BARRA DE PROGRESO DE PRECISIÓN METODOLÓGICA (STICKY) */
/* ========================================================= */
.tml-progress-container {
  background: rgba(10, 15, 29, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-glass);
  padding: 0.6rem 1.75rem;
  position: sticky;
  top: 57px;
  z-index: 95;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  transition: all var(--transition-fast);
}

.tml-progress-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.tml-progress-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.step-indicator-dots,
.progress-steps-legend {
  display: flex;
  gap: 0.4rem;
}

.step-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-dim);
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  transition: all var(--transition-fast);
}

.step-dot.active {
  background: var(--tml-yankees-blue);
  border-color: var(--tml-sunray-gold);
  color: var(--tml-sunray-gold);
  box-shadow: 0 0 10px rgba(223, 174, 81, 0.35);
  transform: scale(1.08);
}

.step-dot.completed {
  background: var(--tml-cobalt-light);
  border-color: var(--tml-cobalt-hover);
  color: #FFF;
}

.tml-progress-track {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.tml-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--tml-cobalt-light) 0%, var(--tml-sunray-gold) 100%);
  border-radius: var(--radius-full);
  box-shadow: 0 0 10px rgba(223, 174, 81, 0.5);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.tml-progress-text {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--tml-pastel-gray);
  min-width: 140px;
  text-align: right;
  letter-spacing: 0.2px;
}

/* ========================================================= */
/* 4. CONTENEDOR PRINCIPAL (LAYOUT) */
/* ========================================================= */
.main-wrapper {
  flex: 1;
  max-width: 860px;
  width: 100%;
  margin: 1.6rem auto 3.2rem auto;
  padding: 0 1.25rem;
}

/* Tarjetas del Wizard (Glass Panels) */
.screen-panel {
  display: none;
  background: var(--bg-surface-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 2.25rem 2.25rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.screen-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(223, 174, 81, 0.4) 50%, transparent 100%);
}

.screen-panel.activo {
  display: block;
  animation: panelSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes panelSlideIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.995);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ========================================================= */
/* 5. PANTALLA 1: BIENVENIDA (GANCHO COMERCIAL) */
/* ========================================================= */
.welcome-badge-wrapper {
  margin-bottom: 1.25rem;
}

.welcome-badge, .welcome-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(223, 174, 81, 0.12);
  border: 1px solid rgba(223, 174, 81, 0.35);
  color: var(--tml-sunray-gold);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.badge-star {
  font-size: 0.9rem;
  color: var(--tml-sunray-gold);
}

.welcome-title {
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  margin-bottom: 1.25rem;
}

.welcome-title span, .gold-gradient {
  background: linear-gradient(135deg, #FFFFFF 0%, var(--tml-sunray-gold) 60%, #F0C068 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

.welcome-desc {
  color: var(--text-secondary);
  font-size: 1.06rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  font-weight: 400;
}

.welcome-desc strong {
  color: #FFF;
  font-weight: 600;
}

/* Grid de Pilares de Autoridad */
.welcome-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.75rem;
}

.feature-box {
  background: var(--bg-card-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.25rem;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.feature-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: transparent;
  transition: background var(--transition-fast);
}

.feature-box:hover {
  transform: translateY(-3px);
  border-color: rgba(223, 174, 81, 0.4);
  box-shadow: var(--shadow-md);
}

.feature-box:hover::before {
  background: linear-gradient(90deg, var(--tml-cobalt-light), var(--tml-sunray-gold));
}

.feature-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(43, 108, 176, 0.15);
  border: 1px solid rgba(43, 108, 176, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
  color: var(--tml-sunray-gold);
}

.feature-svg {
  width: 22px;
  height: 22px;
}

.feature-title {
  font-size: 0.96rem;
  font-weight: 700;
  color: #FFF;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

.feature-text {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Call to Action Container */
.welcome-cta-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.15rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-glass);
}

.btn-cta-start {
  width: 100%;
  max-width: 420px;
  justify-content: center;
  font-size: 1.05rem;
  padding: 1.05rem 2rem;
}

.welcome-trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.trust-bullet {
  color: var(--tml-sunray-gold);
  font-weight: bold;
}

/* ========================================================= */
/* 6. PANTALLA 2: WIZARD DE PREGUNTAS (INTERACCIÓN LUXURY) */
/* ========================================================= */
.question-header {
  margin-bottom: 1.35rem;
}

.question-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(43, 108, 176, 0.18);
  border: 1px solid rgba(43, 108, 176, 0.35);
  color: #90CDF4;
  padding: 0.28rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  margin-bottom: 0.65rem;
}

.question-title {
  font-size: 1.32rem;
  font-weight: 800;
  color: #FFF;
  line-height: 1.28;
  letter-spacing: -0.015em;
  margin-bottom: 0.35rem;
}

.question-subtitle {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* Grid de Opciones de Tarjeta */
.options-grid {
  display: flex;
  flex-direction: column;
  gap: 0.62rem;
  margin-bottom: 1.6rem;
}

.option-card {
  display: flex;
  align-items: flex-start;
  gap: 0.95rem;
  background: var(--bg-card-glass);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 0.85rem 1.15rem;
  cursor: pointer;
  transition: all var(--transition-smooth);
  position: relative;
  user-select: none;
}

.option-card input[type="radio"] {
  display: none;
}

/* Badge de Letra de Opción (A, B, C, D, E) */
.option-letter-badge {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-fast);
  margin-top: 2px;
}

.option-content {
  flex: 1;
}

.option-title {
  display: block;
  font-weight: 700;
  color: #FFF;
  font-size: 0.94rem;
  line-height: 1.32;
  margin-bottom: 0.18rem;
  letter-spacing: -0.01em;
}

.option-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Hover State */
.option-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(43, 108, 176, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.option-card:hover .option-letter-badge {
  background: rgba(43, 108, 176, 0.25);
  color: #FFF;
  border-color: var(--tml-cobalt-light);
}

/* Seleccionada State (Dorado TML & Resplandor) */
.option-card.seleccionada {
  background: rgba(29, 44, 63, 0.95);
  border-color: var(--tml-sunray-gold);
  box-shadow: 0 0 0 1px var(--tml-sunray-gold), var(--shadow-gold);
  transform: translateY(-2px);
}

.option-card.seleccionada .option-letter-badge {
  background: var(--tml-sunray-gold);
  color: var(--tml-yankees-blue);
  border-color: var(--tml-sunray-gold);
  font-weight: 800;
}

.option-card.seleccionada .option-title {
  color: #FFF;
}

.option-card.seleccionada .option-desc {
  color: var(--text-secondary);
}

/* Botonera de Navegación del Wizard */
.wizard-footer-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-glass);
}

/* ========================================================= */
/* 7. PANTALLA 3: CAPTURA DE LEAD (UX SIN FRICCIÓN & LEGAL) */
/* ========================================================= */
.lead-header {
  text-align: center;
  margin-bottom: 2.25rem;
}

.lead-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #4ADE80;
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.dot-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
  animation: pulseLive 1.8s infinite;
}

.lead-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: #FFF;
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}

.lead-subtitle {
  color: var(--text-secondary);
  font-size: 0.96rem;
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.6;
}

.lead-subtitle strong {
  color: #FFF;
}

/* Formulario Grid */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.form-group-full {
  grid-column: span 2;
}

.form-label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--tml-gainsboro);
  margin-bottom: 0.45rem;
  letter-spacing: 0.1px;
}

.form-input, .form-select {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.15rem;
  font-size: 0.95rem;
  color: #FFF;
  font-family: inherit;
  transition: all var(--transition-fast);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

.form-input::placeholder {
  color: var(--text-dim);
}

.form-input:focus, .form-select:focus {
  outline: none;
  border-color: var(--tml-sunray-gold);
  box-shadow: 0 0 0 3px rgba(223, 174, 81, 0.2), inset 0 2px 4px rgba(0, 0, 0, 0.4);
  background: rgba(15, 23, 42, 0.95);
}

.input-phone-container {
  display: flex;
  gap: 0.65rem;
}

.input-phone-container select {
  width: 140px;
  flex-shrink: 0;
  cursor: pointer;
}

/* Consentimiento Informado Habeas Data */
.consent-box {
  background: var(--bg-card-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  margin-bottom: 2rem;
}

.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  cursor: pointer;
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.55;
  user-select: none;
}

.checkbox-container input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--tml-sunray-gold);
  flex-shrink: 0;
  cursor: pointer;
}

.consent-text strong {
  color: #FFF;
}

.legal-link {
  color: var(--tml-sunray-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.legal-link:hover {
  color: var(--tml-gold-hover);
}

.legal-notice-note {
  display: block;
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-submit-full {
  width: 100%;
  justify-content: center;
  padding: 1.1rem;
  font-size: 1.05rem;
}

.form-validation-error {
  display: none;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid var(--color-danger);
  color: #FECACA;
  padding: 0.95rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  margin-bottom: 1.5rem;
  line-height: 1.45;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

/* ========================================================= */
/* 8. PANTALLA 4: RESULTADOS (FICHA DE LABORATORIO CIENTÍFICO) */
/* ========================================================= */
.result-header-card {
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 1.75rem;
  margin-bottom: 2.25rem;
}

.result-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.ficha-id-container {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.ficha-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.ficha-badge {
  font-family: var(--font-mono);
  background: rgba(223, 174, 81, 0.12);
  border: 1px solid rgba(223, 174, 81, 0.35);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-xs);
  font-size: 0.88rem;
  color: var(--tml-sunray-gold);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.modalidad-pill {
  color: #FFF;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  box-shadow: var(--shadow-sm);
}

.result-main-title {
  font-size: 2rem;
  font-weight: 800;
  color: #FFF;
  line-height: 1.25;
  letter-spacing: -0.025em;
  margin-bottom: 0.4rem;
}

.result-timestamp {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* Indicador Radial Gauge Dashboard */
.score-meter-card {
  background: var(--bg-card-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2.25rem;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.score-meter-card::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(43, 108, 176, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.gauge-container {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.gauge-svg-wrapper {
  position: relative;
  width: 160px;
  height: 160px;
  flex-shrink: 0;
}

.gauge-svg {
  transform: rotate(-90deg);
}

.gauge-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
}

.gauge-value {
  fill: none;
  stroke-linecap: round;
  stroke: url(#gauge-grad-green);
  transition: stroke-dashoffset 1.2s cubic-bezier(0.16, 1, 0.3, 1), stroke 0.5s ease;
  filter: drop-shadow(0 0 6px var(--color-success-glow));
}

.gauge-center-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.gauge-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: #FFF;
  line-height: 1;
  letter-spacing: -0.02em;
  font-family: var(--font-main);
}

.gauge-caption {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-top: 0.25rem;
  font-weight: 600;
}

.gauge-info-column {
  flex: 1;
}

.gauge-header-title {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.score-verdict-badge {
  display: inline-block;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
}

.score-verdict-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Tarjetas de Diagnóstico Detallado */
.diag-details-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.diag-card {
  background: var(--bg-card-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.6rem;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.diag-card:hover {
  transform: translateY(-2px);
  border-color: rgba(223, 174, 81, 0.3);
}

.diag-card-title {
  font-size: 0.85rem;
  color: var(--tml-sunray-gold);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.diag-card-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Alerta de Veto Metodológico */
.alert-veto-box {
  display: none;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid var(--color-danger);
  border-left: 5px solid var(--color-danger);
  border-radius: var(--radius-sm);
  padding: 1.4rem 1.6rem;
  color: #FECACA;
  font-size: 0.95rem;
  margin-bottom: 2.25rem;
  line-height: 1.6;
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.15);
}

/* ========================================================= */
/* 9. CARD CONVERSIÓN WHATSAPP (ORIENTACIÓN METODOLÓGICA TML) */
/* ========================================================= */
.conversion-card-cta {
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.12) 0%, rgba(29, 44, 63, 0.95) 100%);
  border: 1px solid rgba(37, 211, 102, 0.4);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2.25rem;
  text-align: center;
  margin-bottom: 2rem;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.7), 0 0 30px rgba(37, 211, 102, 0.15);
  position: relative;
  overflow: hidden;
}

.audio-badge-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.audio-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(37, 211, 102, 0.18);
  color: #4ADE80;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.audio-duration {
  font-size: 0.8rem;
  color: var(--tml-pastel-gray);
  font-weight: 600;
}

/* Visualizador de Onda Sonora (Audio Player Effect) */
.sound-wave-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 28px;
  margin-bottom: 1.25rem;
}

.sound-bar {
  width: 4px;
  height: 10px;
  background: #4ADE80;
  border-radius: var(--radius-full);
  animation: waveSound 1.2s infinite ease-in-out alternate;
}

@keyframes waveSound {
  0% { height: 6px; opacity: 0.4; }
  100% { height: 28px; opacity: 1; }
}

.cta-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: #FFF;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.cta-desc {
  color: var(--text-secondary);
  font-size: 0.98rem;
  max-width: 620px;
  margin: 0 auto 1.85rem auto;
  line-height: 1.65;
}

.cta-desc strong {
  color: #FFF;
}

.btn-whatsapp-large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  background-color: var(--color-whatsapp);
  color: #0B1120 !important;
  font-weight: 800;
  font-size: 1.12rem;
  padding: 1.15rem 2.5rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
  transition: all var(--transition-fast);
  border: none;
  cursor: pointer;
  letter-spacing: -0.01em;
}

.btn-whatsapp-large:hover {
  background-color: var(--color-whatsapp-hover);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 35px rgba(37, 211, 102, 0.6);
}

.whatsapp-icon-svg {
  flex-shrink: 0;
}

.cta-micro-guarantee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.secondary-actions-bar {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.75rem;
}

.btn-print-style {
  font-size: 0.9rem;
  padding: 0.75rem 1.5rem;
}

/* ========================================================= */
/* 10. BOTONES Y ELEMENTOS COMUNES */
/* ========================================================= */
.btn-primary {
  background: linear-gradient(135deg, var(--tml-sunray-gold) 0%, #C9973B 100%);
  color: #0B1120;
  border: none;
  border-radius: var(--radius-md);
  padding: 0.85rem 1.75rem;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: var(--shadow-gold);
  letter-spacing: -0.01em;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--tml-gold-hover) 0%, var(--tml-sunray-gold) 100%);
  transform: translateY(-2px);
  box-shadow: 0 14px 35px rgba(223, 174, 81, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary.activo-listo {
  background: linear-gradient(135deg, var(--tml-gold-hover) 0%, var(--tml-sunray-gold) 100%);
  box-shadow: 0 0 0 3px rgba(223, 174, 81, 0.45), var(--shadow-gold);
  animation: pulseButtonReady 1.8s infinite ease-in-out;
}

@keyframes pulseButtonReady {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(223, 174, 81, 0.5), var(--shadow-gold);
  }
  50% {
    transform: scale(1.025);
    box-shadow: 0 0 0 6px rgba(223, 174, 81, 0.15), 0 16px 36px rgba(223, 174, 81, 0.45);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(223, 174, 81, 0.5), var(--shadow-gold);
  }
}

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

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

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.6rem;
  font-size: 0.94rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-secondary:hover {
  color: #FFF;
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

/* Toast Notification Flotante (Zero-Alert UX) */
.tml-toast-notification {
  position: fixed;
  bottom: 2.25rem;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: rgba(29, 44, 63, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--tml-sunray-gold);
  color: #FFF;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(223, 174, 81, 0.35);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  max-width: 90vw;
  text-align: center;
}

.tml-toast-notification.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* ========================================================= */
/* 11. MODAL DE POLÍTICA DE PRIVACIDAD Y HABEAS DATA */
/* ========================================================= */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 15, 29, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 999;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.activo {
  display: flex;
  animation: modalFadeIn 0.25s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-card {
  background: var(--tml-yankees-blue);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  max-width: 680px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  animation: modalScaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-header {
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  position: relative;
}

.modal-header-tag {
  font-size: 0.75rem;
  color: var(--tml-sunray-gold);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #FFF;
  letter-spacing: -0.01em;
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition-fast);
}

.modal-close-btn:hover {
  color: #FFF;
}

.modal-body {
  padding: 1.75rem;
  overflow-y: auto;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.modal-body p {
  margin-bottom: 1rem;
}

.modal-body h4 {
  color: #FFF;
  margin: 1.25rem 0 0.5rem 0;
  font-size: 1rem;
  font-weight: 700;
}

.modal-body ul {
  padding-left: 1.35rem;
  margin-bottom: 1rem;
}

.modal-body li {
  margin-bottom: 0.4rem;
}

.modal-footer {
  padding: 1.25rem 1.75rem;
  border-top: 1px solid var(--border-glass);
  text-align: right;
  background: rgba(10, 15, 29, 0.4);
}

/* ========================================================= */
/* 12. FOOTER DE LA APLICACIÓN DIAGNÓSTICA (Limpio & Modular) */
/* ========================================================= */
.tml-app-footer {
  background: rgba(10, 15, 29, 0.92);
  border-top: 1px solid var(--border-glass);
  padding: 1.75rem 1.5rem;
  margin-top: auto;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.app-footer-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.app-footer-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-legal-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color var(--transition-fast);
}

.footer-legal-link:hover {
  color: var(--tml-sunray-gold);
}

.footer-separator {
  color: var(--border-light);
}

/* Elementos Exclusivos de Ficha de Impresión Oficial (Ocultos en pantalla interactiva) */
.print-official-header,
.print-student-meta-card,
.print-official-footer {
  display: none !important;
}

/* ========================================================= */
/* 13. MODO IMPRESIÓN (FICHA OFICIAL DE VIABILIDAD - 1 PÁGINA) */
/* ========================================================= */
@media print {
  @page {
    size: A4 portrait;
    margin: 8mm 10mm;
  }

  *, *:before, *:after {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    color-adjust: exact !important;
  }

  html, body {
    background: #FFFFFF !important;
    color: #0F172A !important;
    font-size: 9pt !important;
    line-height: 1.35 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Ocultar elementos de navegación, pie interactivo y pantallas que NO sean el resultado */
  #screen-welcome,
  #screen-wizard,
  #screen-lead,
  .tml-header,
  .tml-progress-container,
  .tml-app-footer,
  .modal-overlay,
  .secondary-actions-bar,
  .conversion-card-cta,
  .wizard-footer-nav,
  .btn-print-style,
  .btn-whatsapp-large,
  .cta-micro-guarantee,
  .result-header-card .result-timestamp,
  .result-top-bar .ficha-id-container {
    display: none !important;
  }

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

  /* Mostrar ÚNICAMENTE la pantalla de resultados ocupando estrictamente 1 página */
  #screen-result {
    display: block !important;
    background: #FFFFFF !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    page-break-inside: avoid !important;
    page-break-after: avoid !important;
    max-height: 275mm !important;
    overflow: hidden !important;
  }

  /* 1. Cabecera Membretada Oficial */
  .print-official-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-end !important;
    border-bottom: 2px solid #1D2C3F !important;
    padding-bottom: 3mm !important;
    margin-bottom: 3.5mm !important;
  }

  .print-header-brand {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 3px !important;
  }

  .print-logo-img {
    height: 32px !important;
    width: auto !important;
    display: block !important;
  }

  .print-brand-sub {
    font-size: 6.8pt !important;
    font-weight: 600 !important;
    color: #475569 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.4px !important;
    line-height: 1.1 !important;
  }

  .print-header-meta {
    text-align: right !important;
    flex-shrink: 0 !important;
  }

  .print-doc-title {
    font-size: 8.5pt !important;
    font-weight: 800 !important;
    color: #B45309 !important;
    letter-spacing: 0.2px !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
  }

  .print-meta-row {
    font-size: 7.8pt !important;
    color: #475569 !important;
    margin-top: 2px !important;
    white-space: nowrap !important;
  }

  .meta-sep {
    margin: 0 4px !important;
    color: #94A3B8 !important;
  }

  /* 2. Tarjeta de Metadatos del Estudiante */
  .print-student-meta-card {
    display: grid !important;
    grid-template-columns: 1fr 1.15fr !important;
    gap: 2mm 5mm !important;
    background: #F8FAFC !important;
    border: 1px solid #CBD5E1 !important;
    border-radius: 6px !important;
    padding: 2.5mm 4mm !important;
    margin-bottom: 3mm !important;
  }

  .print-meta-col {
    display: flex !important;
    align-items: baseline !important;
    gap: 6px !important;
    font-size: 8pt !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .print-meta-col .meta-label {
    color: #64748B !important;
    font-weight: 600 !important;
    font-size: 7.5pt !important;
    flex-shrink: 0 !important;
  }

  .print-meta-col .meta-value {
    color: #0F172A !important;
    font-weight: 700 !important;
    font-size: 8pt !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  /* 3. Título y Modalidad Clasificada */
  .result-header-card {
    border-bottom: 1px solid #E2E8F0 !important;
    padding-bottom: 2mm !important;
    margin-bottom: 3mm !important;
    background: transparent !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .result-top-bar {
    display: flex !important;
    justify-content: flex-start !important;
    margin-bottom: 1.5mm !important;
  }

  .modalidad-pill {
    background: #1D2C3F !important;
    color: #F8FAFC !important;
    font-size: 7pt !important;
    font-weight: 700 !important;
    padding: 2px 8px !important;
    border-radius: 4px !important;
    border: 1px solid #334155 !important;
    display: inline-block !important;
  }

  .result-main-title {
    font-size: 12pt !important;
    font-weight: 800 !important;
    color: #0F172A !important;
    margin: 0 !important;
    line-height: 1.25 !important;
  }

  /* 4. Alerta de Veto si aplica */
  .alert-veto-box {
    background: #FEF2F2 !important;
    border: 1px solid #F87171 !important;
    color: #991B1B !important;
    font-size: 7.8pt !important;
    padding: 2.5mm 4mm !important;
    border-radius: 5px !important;
    margin-bottom: 3mm !important;
    line-height: 1.35 !important;
  }

  /* 5. Panel de Viabilidad (Radial Gauge + Veredicto) */
  .score-meter-card {
    background: #FFFFFF !important;
    border: 1px solid #CBD5E1 !important;
    border-radius: 6px !important;
    padding: 3mm 4.5mm !important;
    margin-bottom: 3mm !important;
    box-shadow: none !important;
    position: relative !important;
    overflow: hidden !important;
  }

  .score-meter-card::after {
    display: none !important;
    content: none !important;
  }

  .gauge-container {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 16px !important;
    text-align: left !important;
  }

  .gauge-svg-wrapper {
    position: relative !important;
    width: 90px !important;
    height: 90px !important;
    min-width: 90px !important;
    min-height: 90px !important;
    max-width: 90px !important;
    max-height: 90px !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .gauge-svg {
    width: 90px !important;
    height: 90px !important;
    display: block !important;
    transform: rotate(-90deg) !important;
  }

  .gauge-track {
    fill: none !important;
    stroke: #E2E8F0 !important;
    stroke-width: 12 !important;
  }

  .gauge-value {
    fill: none !important;
    stroke-width: 12 !important;
    filter: none !important;
  }

  .gauge-center-content {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 90px !important;
    height: 90px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    pointer-events: none !important;
  }

  .gauge-number {
    font-size: 16pt !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .gauge-caption {
    font-size: 6pt !important;
    font-weight: 700 !important;
    color: #64748B !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-top: 2px !important;
    line-height: 1 !important;
  }

  .gauge-info-column {
    flex: 1 !important;
  }

  .gauge-header-title {
    font-size: 7.8pt !important;
    font-weight: 700 !important;
    color: #64748B !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
    margin-bottom: 2px !important;
  }

  .score-verdict-badge {
    display: inline-block !important;
    font-size: 8.5pt !important;
    font-weight: 800 !important;
    padding: 2px 8px !important;
    border-radius: 4px !important;
    margin: 2px 0 3px 0 !important;
  }

  .score-verdict-desc {
    font-size: 7.6pt !important;
    color: #334155 !important;
    line-height: 1.35 !important;
    margin: 0 !important;
  }

  /* 6. Cuadrícula de 3 Dimensiones Metodológicas */
  .diag-details-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 3mm !important;
    margin-bottom: 3mm !important;
    align-items: stretch !important;
  }

  .diag-card {
    background: #FFFFFF !important;
    border: 1px solid #CBD5E1 !important;
    border-radius: 6px !important;
    padding: 2.8mm 3.5mm !important;
    box-shadow: none !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .diag-card-title {
    font-size: 7.5pt !important;
    font-weight: 700 !important;
    color: #1D2C3F !important;
    margin-bottom: 1.5mm !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
  }

  .card-icon {
    font-size: 8.5pt !important;
  }

  .diag-card-desc {
    font-size: 7.2pt !important;
    color: #334155 !important;
    line-height: 1.35 !important;
    margin: 0 !important;
    flex: 1 !important;
  }

  /* 7. Pie Institucional Membretado */
  .print-official-footer {
    display: block !important;
    border-top: 1px solid #CBD5E1 !important;
    padding-top: 2mm !important;
    margin-top: 2.5mm !important;
    text-align: center !important;
  }

  .print-footer-legal {
    font-size: 6.8pt !important;
    color: #64748B !important;
    line-height: 1.25 !important;
  }

  .print-footer-contact {
    font-size: 6.8pt !important;
    font-weight: 700 !important;
    color: #1D2C3F !important;
    margin-top: 1.5px !important;
  }
}

/* ========================================================= */
/* 14. RESPONSIVE MÓVIL (< 860px y < 640px) */
/* ========================================================= */
@media (max-width: 860px) {
  .welcome-features-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .tml-header {
    padding: 0.65rem 1rem;
  }

  .header-right-meta {
    gap: 0.4rem;
  }

  .back-link-site {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
  }

  .header-meta-badge {
    padding: 0.25rem 0.55rem;
  }

  .header-meta-badge .badge-text {
    font-size: 0.7rem;
  }

  .brand-logo-img {
    height: 32px;
  }

  .tml-progress-container {
    padding: 0.4rem 1rem;
  }

  .step-indicator-dots,
  .progress-steps-legend {
    display: none; /* Simplificado en móvil */
  }

  .main-wrapper {
    margin: 1.25rem auto 2.5rem auto;
    padding: 0 1rem;
  }

  .screen-panel {
    padding: 1.75rem 1.25rem;
    border-radius: var(--radius-lg);
  }

  .welcome-title {
    font-size: 1.7rem;
    line-height: 1.25;
  }

  .welcome-desc {
    font-size: 0.95rem;
    margin-bottom: 1.75rem;
  }

  .question-title {
    font-size: 1.16rem;
    line-height: 1.24;
  }

  .options-grid {
    gap: 0.5rem;
    margin-bottom: 1.25rem;
  }

  .option-card {
    padding: 0.72rem 0.85rem;
    gap: 0.75rem;
    border-radius: 10px;
  }

  .option-letter-badge {
    width: 24px;
    height: 24px;
    font-size: 0.74rem;
    margin-top: 1px;
  }

  .option-title {
    font-size: 0.88rem;
    margin-bottom: 0.12rem;
  }

  .option-desc {
    font-size: 0.78rem;
    line-height: 1.35;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-group-full {
    grid-column: span 1;
  }

  .input-phone-container select {
    width: 110px;
  }

  .gauge-container {
    flex-direction: column;
    text-align: center;
    gap: 1.25rem;
  }

  .result-main-title {
    font-size: 1.45rem;
  }

  .cta-title {
    font-size: 1.35rem;
  }

  .btn-whatsapp-large {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 0.98rem;
  }

  .app-footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
}
