/* ===== DIAGNÓSTICO — ESTILOS ===== */

.diag-hero {
  background: linear-gradient(165deg, #060d1c 0%, #0b1629 60%, #142038 100%);
  color: var(--white);
  padding: 60px 0 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.diag-hero::after {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(12,160,224,0.2) 0%, transparent 70%);
  pointer-events: none;
}
.diag-badge {
  display: inline-block;
  background: rgba(12,160,224,0.15);
  color: var(--cyan);
  font-size: .85rem;
  font-weight: 700;
  padding: 6px 20px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
  border: 1px solid rgba(12,160,224,0.25);
}
.diag-hero h1 {
  font-size: 2.8rem;
  margin-bottom: 16px;
}
.diag-hero h1 span {
  color: var(--cyan);
}
.diag-hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.65);
  max-width: 700px;
  margin: 0 auto;
}

/* Sección principal */
.diag-section {
  background: var(--off-white);
  padding: 60px 0 80px;
}
.diag-form {
  max-width: 800px;
  margin: 0 auto;
}

/* Datos del participante */
.diag-participant {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}
.diag-participant h2 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--navy);
}
.diag-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.field-group label {
  display: block;
  font-weight: 600;
  font-size: .88rem;
  margin-bottom: 6px;
  color: var(--gray-700);
}
.field-group input {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: 'Mulish', sans-serif;
  font-size: 1rem;
  background: var(--off-white);
  transition: var(--transition);
}
.field-group input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-glow);
}

/* Disclaimer / Instrucciones */
.diag-disclaimer {
  background: linear-gradient(135deg, rgba(12,160,224,0.06), rgba(12,160,224,0.02));
  border-left: 4px solid var(--cyan);
  border-radius: var(--radius-sm);
  padding: 24px 28px;
  margin-bottom: 32px;
}
.diag-disclaimer p {
  font-size: .93rem;
  line-height: 1.7;
  color: var(--gray-700);
  margin: 0 0 8px;
}
.diag-disclaimer p:last-child {
  margin-bottom: 0;
  font-style: italic;
  color: var(--gray-500);
}
.diag-disclaimer strong {
  color: var(--navy);
}

/* Categorías */
.diag-category {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}
.diag-category-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--gray-100);
}
.diag-cat-icon {
  font-size: 2rem;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(12,160,224,0.1), rgba(12,160,224,0.05));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.diag-category-header h3 {
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 4px;
}
.diag-category-header p {
  font-size: .85rem;
  color: var(--gray-500);
  margin: 0;
}

/* Preguntas */
.diag-question {
  padding: 24px 0;
  border-bottom: 1px solid var(--gray-100);
}
.diag-question:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.diag-q-number {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--cyan);
  margin-bottom: 6px;
}
.diag-question h4 {
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 8px;
}
.diag-question > p {
  color: var(--gray-700);
  font-size: .95rem;
  margin-bottom: 18px;
  line-height: 1.6;
}

/* Escala de respuestas */
.diag-scale {
  display: flex;
  align-items: center;
  gap: 12px;
}
.scale-label {
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--gray-400);
  min-width: 80px;
  line-height: 1.3;
}
.scale-label--low { text-align: right; }
.scale-label--high { text-align: left; }
.diag-options {
  display: flex;
  gap: 8px;
  flex: 1;
  justify-content: center;
}
.diag-option {
  position: relative;
  cursor: pointer;
}
.diag-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.diag-option span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--gray-200);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--gray-500);
  background: var(--white);
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
}
.diag-option:hover span {
  border-color: var(--cyan);
  color: var(--cyan);
  transform: scale(1.08);
}
.diag-option input:checked + span {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(12,160,224,0.35);
  transform: scale(1.1);
}

/* Progreso y botón */
.diag-submit-area {
  text-align: center;
  padding: 40px 0 0;
}
.diag-progress {
  font-size: .9rem;
  color: var(--gray-500);
  margin-bottom: 16px;
  font-weight: 600;
}
.diag-submit-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* ===== RESULTADOS ===== */
.diag-results {
  max-width: 800px;
  margin: 0 auto;
}
.diag-results-inner {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 48px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  text-align: center;
  animation: fadeInUp 0.6s ease;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.diag-results-inner h2 {
  font-size: 1.8rem;
  color: var(--navy);
  margin-bottom: 32px;
}
.diag-score-display {
  margin-bottom: 32px;
}
.diag-score-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 6px solid var(--gray-200);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: border-color 0.5s ease;
}
.diag-score-num {
  font-family: 'Poppins', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: var(--navy);
}
.diag-score-of {
  font-size: .9rem;
  color: var(--gray-400);
  font-weight: 600;
}

/* Perfil del resultado */
.diag-profile {
  padding: 28px;
  border-radius: var(--radius-md);
  margin-bottom: 28px;
  text-align: left;
}
.diag-profile--green {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border: 1px solid #86efac;
}
.diag-profile--yellow {
  background: linear-gradient(135deg, #fefce8, #fef9c3);
  border: 1px solid #fde047;
}
.diag-profile--red {
  background: linear-gradient(135deg, #fef2f2, #fecaca);
  border: 1px solid #fca5a5;
}
.diag-profile-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.diag-profile--green .diag-profile-badge { background: #16a34a; color: #fff; }
.diag-profile--yellow .diag-profile-badge { background: #ca8a04; color: #fff; }
.diag-profile--red .diag-profile-badge { background: #dc2626; color: #fff; }
.diag-profile h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}
.diag-profile--green h3 { color: #15803d; }
.diag-profile--yellow h3 { color: #a16207; }
.diag-profile--red h3 { color: #b91c1c; }
.diag-profile p {
  font-size: .95rem;
  line-height: 1.7;
  color: var(--gray-700);
}

/* Barras de desglose */
.diag-breakdown {
  text-align: left;
  margin-bottom: 28px;
}
.diag-breakdown h4 {
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 16px;
}
.diag-bar-item {
  display: grid;
  grid-template-columns: 1fr 180px 40px;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
  font-size: .88rem;
  color: var(--gray-700);
}
.diag-bar {
  height: 10px;
  background: var(--gray-100);
  border-radius: 5px;
  overflow: hidden;
}
.diag-bar-fill {
  height: 100%;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--cyan), #2575FC);
  transition: width 1s cubic-bezier(0.4,0,0.2,1);
  width: 0;
}
.diag-bar-val {
  font-weight: 700;
  color: var(--navy);
  text-align: right;
}

/* Tip */
.diag-tip {
  background: linear-gradient(135deg, rgba(12,160,224,0.06), rgba(12,160,224,0.02));
  border: 1px solid rgba(12,160,224,0.15);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 28px;
  text-align: left;
}
.diag-tip h4 {
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 8px;
}
.diag-tip p {
  font-size: .9rem;
  color: var(--gray-700);
  line-height: 1.7;
}

/* Acciones */
.diag-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.diag-email-status {
  font-size: .88rem;
  color: var(--green);
  font-weight: 600;
  min-height: 20px;
}

/* ===== DESCARGAS ===== */
.diag-downloads {
  background: linear-gradient(135deg, rgba(12,160,224,0.06), rgba(12,160,224,0.02));
  border: 1px solid rgba(12,160,224,0.15);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 28px;
  text-align: left;
}
.diag-downloads h4 {
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 6px;
}
.diag-downloads > p {
  font-size: .88rem;
  color: var(--gray-500);
  margin-bottom: 16px;
}
.diag-download-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.diag-download-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
}
.diag-download-btn:hover {
  border-color: var(--cyan);
  box-shadow: 0 4px 14px rgba(12,160,224,0.15);
  transform: translateY(-2px);
}
.diag-dl-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}
.diag-dl-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.diag-dl-info strong {
  font-size: .85rem;
  color: var(--navy);
  line-height: 1.3;
}
.diag-dl-info small {
  font-size: .75rem;
  color: var(--gray-400);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .diag-hero { padding: 40px 0 30px; }
  .diag-hero h1 { font-size: 2rem; }
  .diag-fields { grid-template-columns: 1fr; }
  .diag-scale {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .scale-label {
    text-align: center !important;
    min-width: auto;
  }
  .diag-options { justify-content: space-between; }
  .diag-option span { width: 42px; height: 42px; font-size: .9rem; }
  .diag-participant, .diag-category, .diag-disclaimer { padding: 24px 20px; }
  .diag-download-grid { grid-template-columns: 1fr; }
  .diag-results-inner { padding: 32px 20px; }
  .diag-bar-item { grid-template-columns: 1fr; gap: 4px; }
  .diag-bar { width: 100%; }
}
@media (max-width: 480px) {
  .diag-hero h1 { font-size: 1.6rem; }
  .diag-option span { width: 38px; height: 38px; font-size: .85rem; }
}
