:root {
  --primary-color: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary-color: #f3f4f6;
  --text-color: #1f2937;
  --text-light: #6b7280;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --border-radius: 8px;
  --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --transition: all 0.3s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: #f9fafb;
  padding: 0;
  margin: 0;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

header {
  background-color: white;
  padding: 1.5rem 0;
  box-shadow: var(--box-shadow);
  margin-bottom: 2rem;
  text-align: center;
}

.logo {
  max-width: 200px;
  margin-bottom: 1rem;
}

h1 {
  color: var(--text-color);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.subtitle {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.question {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  display: none;
  opacity: 0;
  transform: translateX(20px);
  transition: var(--transition);
}

.question.active {
  display: block;
  opacity: 1;
  transform: translateX(0);
}

.question p {
  margin-bottom: 1rem;
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--text-color);
}

.question small {
  display: block;
  color: var(--text-light);
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.progress-container {
  margin-bottom: 2rem;
}

.progress {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background-color: #e5e7eb;
  border-radius: 3px;
  margin: 10px 0;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background-color: var(--primary-color);
  border-radius: 3px;
  transition: width 0.3s ease;
}

#progressText {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light);
  margin: 0.5rem 0;
}

.options-container {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 1rem;
}

.option {
  display: flex;
  align-items: center;
  padding: 0.8rem;
  border: 1px solid #e5e7eb;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
}

.option:hover {
  background-color: #f9fafb;
  border-color: var(--primary-color);
}

.option input {
  margin-right: 0.8rem;
}

button {
  background-color: var(--primary-color);
  color: white;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

button:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

button:disabled {
  background-color: #d1d5db;
  cursor: not-allowed;
  transform: none;
}

.result {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  background: white;
  box-shadow: var(--box-shadow);
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
}

.result.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.cta {
  margin-top: 2rem;
  padding: 1.5rem;
  background-color: #eff6ff;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--box-shadow);
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
}

.cta.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.cta p {
  margin-bottom: 1rem;
  font-weight: 500;
  font-size: 1.1rem;
}

.cta-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.cta-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem;
  cursor: pointer;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.cta-option:hover {
  background-color: rgba(37, 99, 235, 0.1);
}

.cta-option i {
  font-size: 1.2rem;
  color: var(--primary-color);
}

.email-form {
  display: none;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #d1d5db;
}

.email-form.show {
  display: block;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.email-form input {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #d1d5db;
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.email-form input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.privacy-policy {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 0.5rem;
}

.privacy-policy a {
  color: var(--primary-color);
  text-decoration: none;
}

.privacy-policy a:hover {
  text-decoration: underline;
}

.success-message {
  display: none;
  margin-top: 1rem;
  padding: 1rem;
  background-color: #d1fae5;
  color: #065f46;
  border-radius: var(--border-radius);
  font-weight: 500;
}

.success-message.show {
  display: block;
  animation: fadeIn 0.5s ease;
}

.button-container {
  display: flex;
  justify-content: space-between;
  max-width: 500px;
  margin: 2rem auto;
}

.result h2 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.result p {
  line-height: 1.6;
  margin-bottom: 1rem;
}

.risk-level {
  font-weight: 500;
  margin: 1rem 0;
  padding: 1rem;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.risk-low {
  background-color: #d1fae5;
  color: #065f46;
}

.risk-medium {
  background-color: #fef3c7;
  color: #92400e;
}

.risk-high {
  background-color: #fee2e2;
  color: #991b1b;
}

.navigation-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
}

.footer {
  text-align: center;
  padding: 2rem 0;
  color: var(--text-light);
  font-size: 0.9rem;
  margin-top: 3rem;
  border-top: 1px solid #e5e7eb;
}

@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  .question {
    padding: 1rem;
  }

  .button-container {
    flex-direction: column;
    gap: 1rem;
  }

  button {
    width: 100%;
  }
}
.aviso-evaluacion {
  background-color: #f9fafb;
  border-left: 4px solid #d1d5db;
  color: #4b5563;
  box-shadow: none;
}
.info-tooltip {
  margin-left: 0.5rem;
  cursor: help;
  color: var(--text-light);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.info-tooltip:hover {
  color: var(--primary-color);
}
.info-button {
  margin-left: 0.5rem;
  cursor: pointer;
  font-size: 1.1rem;
  color: #6b7280;
  transition: color 0.3s ease;
}

.info-button:hover {
  color: #2266a7;
}

.info-popup {
  position: fixed;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  background: #f9fafb;
  border: 1px solid #d1d5db;
  padding: 1rem 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 999;
  max-width: 90%;
  width: 400px;
  border-radius: 6px;
}

.info-popup p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.4;
  color: #374151;
  max-width: 90%;
  width: 340px;
}

.hidden {
  display: none;
}

.cerrar-popup {
  margin-top: 1rem;
  background: #2266a7;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
}
.info-contextual {
  margin-top: 1.5rem;
  padding: 1rem;
  background-color: #f9fafb;
  border-left: 4px solid #d1d5db;
  font-size: 0.88rem;
  color: #4b5563;
  border-radius: 6px;
}
#progressText {
  font-size: 1rem;
  font-weight: 600;
  color: #2266a7;
  background-color: #f0f4fa;
  border-left: 4px solid #93c5fd;
  padding: 0.5rem 1rem;
  margin-bottom: 1rem;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  width: fit-content;
  transition: background-color 0.3s ease;
}
#progressText.flash {
  background-color: #dbeafe;
}
