/* Estilos globales para cuestionarios */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f5f5f5;
  min-height: 100vh;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-top: 2rem;
  margin-bottom: 2rem;
  border-radius: 16px;
}

.header {
  text-align: center;
  margin-bottom: 3rem;
  border-bottom: 3px solid #ff6600;
  padding-bottom: 2rem;
}

.header h1 {
  color: #333;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  text-transform: uppercase;
}

.header p {
  color: #666;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.nav-back {
  margin-top: 1rem;
  padding-top: 1rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #ff6600;
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.back-link:hover {
  background: #fff5f2;
  border-color: #ff6600;
  transform: translateX(-2px);
}

.welcome-screen {
  text-align: center;
}

.welcome-content {
  max-width: 600px;
  margin: 0 auto;
}

.welcome-content h2 {
  color: #2d3748;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.welcome-content p {
  color: #718096;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.logo-container {
  text-align: center;
  margin-bottom: 2rem;
}

.logo {
  display: inline-block;
  background: #000;
  padding: 1.5rem;
  border-radius: 8px;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  animation: logoAppear 1s ease-out forwards;
}

@keyframes logoAppear {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.logo-top-bar {
  height: 3px;
  background: #ff6600;
  margin-bottom: 0.8rem;
}

.logo-text {
  text-align: center;
  margin-bottom: 0.8rem;
}

.logo-podo, .logo-logia {
  display: block;
  color: #ff6600;
  font-weight: bold;
  font-size: 1.8rem;
  line-height: 1.1;
  letter-spacing: 1px;
}

.logo-center-bar {
  background: #ff6600;
  color: white;
  padding: 0.6rem;
  text-align: center;
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 0.8rem;
  letter-spacing: 0.5px;
}

.logo-name {
  color: #d4a574;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.themes-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.theme-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  background: #f7fafc;
  border-radius: 12px;
  border: 2px solid #e2e8f0;
}

.theme-icon {
  font-size: 1.5rem;
  margin-right: 1rem;
}

.theme-name {
  font-weight: 600;
  color: #4a5568;
}

/* Estilos para el formulario de datos del paciente */
.patient-info {
  margin: 2rem 0;
  padding: 1.5rem;
  background: #f7fafc;
  border-radius: 12px;
  border: 2px solid #e2e8f0;
  text-align: left;
}

.patient-info h3 {
  color: #2d3748;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #4a5568;
  font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="date"],
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="date"]:focus,
.form-group select:focus {
  outline: none;
  border-color: #ff6600;
  box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);
}

.form-group input[type="text"]::placeholder,
.form-group input[type="email"]::placeholder {
  color: #a0aec0;
}

.form-group input[type="text"]:invalid,
.form-group input[type="email"]:invalid,
.form-group input[type="date"]:invalid,
.form-group select:invalid {
  border-color: #e53e3e;
}

.form-group input[type="text"]:valid,
.form-group input[type="email"]:valid,
.form-group input[type="date"]:valid,
.form-group select:valid {
  border-color: #38a169;
}

.form-group input[type="date"] {
  color: #4a5568;
}

.form-group input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(52%) sepia(65%) saturate(4382%) hue-rotate(1deg) brightness(100%) contrast(97%);
  cursor: pointer;
}

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #ff6600 50%), linear-gradient(135deg, #ff6600 50%, transparent 50%), linear-gradient(to right, #e2e8f0, #e2e8f0);
  background-position: calc(100% - 20px) calc(50% - 2px), calc(100% - 15px) calc(50% - 2px), calc(100% - 2.5rem) 50%;
  background-size: 8px 8px, 8px 8px, 1px 60%;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
  color: #4a5568;
  font-weight: 500;
}

.form-group select:focus {
  background-image: linear-gradient(45deg, transparent 50%, #ff6600 50%), linear-gradient(135deg, #ff6600 50%, transparent 50%), linear-gradient(to right, rgba(255, 102, 0, 0.3), rgba(255, 102, 0, 0.3));
}

.privacy-container {
  margin-top: 1rem;
}

.privacy-label {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  padding: 0.75rem;
  background: #f8f9fa;
  border-radius: 12px;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
  gap: 1rem;
}

.privacy-label:hover {
  border-color: #ff6600;
  background: #fff5f2;
}

.privacy-label input[type="checkbox"] {
  margin: 0;
  transform: scale(1.2);
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.privacy-text {
  font-weight: 500;
  color: #495057;
  font-size: 1rem;
  line-height: 1.5;
}

.privacy-text a {
  color: #ff6600;
  text-decoration: none;
  font-weight: 600;
}

.privacy-text a:hover {
  text-decoration: underline;
}

.privacy-info-box {
  margin-top: 1rem;
  padding: 1rem;
  background: #f0f9ff;
  border: 1px solid #0ea5e9;
  border-radius: 8px;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.privacy-info-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.privacy-info-content p {
  margin: 0;
  color: #0c4a6e;
  font-size: 0.9rem;
  line-height: 1.5;
}

.privacy-info-content strong {
  color: #0369a1;
}

.instructions {
  text-align: left;
  background: #ebf4ff;
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.instructions h3 {
  color: #2d3748;
  margin-bottom: 1rem;
}

.instructions ul {
  color: #4a5568;
  padding-left: 1.5rem;
}

.instructions li {
  margin-bottom: 0.5rem;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background-color: #e2e8f0;
  border-radius: 4px;
  margin-bottom: 2rem;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #ff6600;
  border-radius: 4px;
  transition: width 0.3s ease;
}

.quiz-container {
  display: none;
}

.question-container {
  margin-bottom: 2rem;
}

.question-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e2e8f0;
}

.question-number {
  font-weight: 600;
  color: #4a5568;
  font-size: 1rem;
}

.question-theme {
  background: #ff6600;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.question-text {
  font-size: 1.2rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.options-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.option {
  display: flex;
  align-items: center;
  padding: 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: white;
}

.option:hover {
  border-color: #667eea;
  background-color: #f7fafc;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.option.selected {
  border-color: #667eea;
  background-color: #ebf4ff;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.option input[type="radio"] {
  margin-right: 1rem;
  transform: scale(1.2);
}

.option label {
  cursor: pointer;
  font-size: 1rem;
  color: #4a5568;
  flex: 1;
}

.navigation-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  gap: 1rem;
}

.btn {
  padding: 1rem 2rem;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn:hover::after {
  opacity: 1;
}

.btn-primary {
  background: #ff6600;
  color: white;
  border: 2px solid #ff6600;
}

.btn-primary:hover {
  background: #e55a00;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 102, 0, 0.3);
}

.start-button {
  padding: 1.2rem 2.5rem;
  font-size: 1.1rem;
  margin: 1rem auto;
  background: linear-gradient(135deg, #ff6600, #e55a00);
  border: none;
  box-shadow: 0 10px 20px rgba(255, 102, 0, 0.25);
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  display: block;
  text-align: center;
  max-width: fit-content;
}

.start-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: all 0.6s ease;
}

.start-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(255, 102, 0, 0.35);
}

.start-button:hover::before {
  left: 100%;
}

.btn-secondary {
  background: #e2e8f0;
  color: #4a5568;
  border: 2px solid #e2e8f0;
}

.btn-secondary:hover {
  background: #cbd5e0;
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-enabled {
  background: #ff6600 !important;
  color: white !important;
  opacity: 1 !important;
  cursor: pointer !important;
}

.btn-disabled {
  background: #ccc !important;
  color: #666 !important;
  opacity: 0.5 !important;
  cursor: not-allowed !important;
}

.btn-enabled:hover {
  background: #e55a00 !important;
  transform: translateY(-2px) !important;
}

.btn-spinner {
  display: none;
}

.btn-spinner .spinner {
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: inline-block;
  vertical-align: middle;
}

.results-container {
  text-align: center;
  display: none;
}

.results-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.loading-container {
  text-align: center;
  padding: 3rem;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
}

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid #e2e8f0;
  border-top: 4px solid #ff6600;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 2rem;
  box-shadow: 0 4px 20px rgba(255, 102, 0, 0.2);
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.loading-dots span {
  width: 8px;
  height: 8px;
  background: #ff6600;
  border-radius: 50%;
  animation: dots 1.4s infinite ease-in-out;
}

.loading-dots span:nth-child(1) {
  animation-delay: -0.32s;
}

.loading-dots span:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes dots {
  0%, 80%, 100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

.results-display {
  text-align: left;
}

.patient-info-section {
  margin-bottom: 2rem;
}

.patient-info-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: white;
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
}

.patient-avatar {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #ff6600, #e55a00);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.avatar-icon {
  font-size: 1.5rem;
  color: white;
}

.patient-details h3 {
  color: #2d3748;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.completion-date {
  color: #718096;
  font-size: 0.9rem;
  margin: 0;
}

.overall-score-section {
  margin-bottom: 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.overall-score-card {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  color: white;
  padding: 3rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(124, 58, 237, 0.3);
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.score-header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 3rem;
  gap: 1rem;
  width: 100%;
}

.score-content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  justify-items: center;
  width: 100%;
  text-align: center;
}

.score-chart-area {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0 auto;
}

.score-description-area {
  text-align: center;
}

.score-header h2 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
}

.score-badge {
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  min-width: fit-content;
  display: inline-block;
  text-align: center;
}

.score-description {
  font-size: 1.1rem;
  opacity: 0.9;
  margin: 0;
}

.summary-section {
  background: #f7fafc;
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
}

.summary-section h3 {
  font-size: 1.5rem;
  color: #2d3748;
  margin-bottom: 1.5rem;
  text-align: center;
}

.summary-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
}

.stat-item {
  text-align: center;
  padding: 1rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: #ff6600;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: #718096;
  font-size: 0.9rem;
  font-weight: 500;
}

.error-container {
  text-align: center;
  padding: 3rem;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
}

.error-icon {
  font-size: 6rem;
  margin-bottom: 1rem;
}

.error-container h3 {
  color: #dc3545;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.error-message {
  color: #6c757d;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #dc3545;
}

.error-details {
  color: #6c757d;
  font-size: 0.9rem;
  font-family: monospace;
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  overflow-x: auto;
}

.validation-message {
  margin-top: 1rem;
}

.alert {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.alert-warning {
  background-color: #fff3cd;
  border: 1px solid #ffeaa7;
  color: #856404;
}

.alert strong {
  font-weight: 600;
}

/* Modal personalizado */
.custom-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.modal-content {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  position: relative;
  z-index: 1001;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.modal-icon {
  font-size: 2rem;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2d3748;
  margin: 0;
}

.modal-body {
  margin-bottom: 2rem;
}

.modal-body p {
  color: #4a5568;
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
}

.modal-footer {
  text-align: right;
}

/* Footer */
.footer {
  margin-top: 3rem;
  padding: 2rem 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.footer-text {
  color: #6b7280;
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.5;
}

.footer-link {
  color: #ff6600;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.footer-link:hover {
  color: #e55a00;
  text-decoration: underline;
}

.footer-link:focus {
  outline: 2px solid #ff6600;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Debug section */
.debug-section {
  margin-top: 2rem;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 12px;
  border: 2px solid #e9ecef;
}

.debug-container h4 {
  color: #495057;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.debug-input-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.debug-input-group label {
  font-weight: 600;
  color: #495057;
}

.debug-input-group input {
  padding: 0.5rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  width: 100px;
}

.btn-debug {
  background: #6c757d;
  color: white;
  border: 2px solid #6c757d;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.btn-debug:hover {
  background: #5a6268;
  border-color: #5a6268;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    margin: 1rem;
    padding: 1.5rem;
    border-radius: 15px;
  }

  .header h1 {
    font-size: 2rem;
  }

  .question-text {
    font-size: 1.1rem;
  }

  .navigation-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .themes-list {
    grid-template-columns: 1fr;
  }

  .question-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .overall-score-card {
    padding: 2rem 1.5rem;
  }

  .summary-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .results-actions {
    flex-direction: column;
  }

  .patient-info-card {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .patient-avatar {
    width: 45px;
    height: 45px;
  }

  .avatar-icon {
    font-size: 1.3rem;
  }

  .loading-container {
    padding: 2rem 1.5rem;
  }

  .loading-spinner {
    width: 50px;
    height: 50px;
  }

  .loading-container h3 {
    font-size: 1.3rem;
  }

  .loading-container p {
    font-size: 1rem;
  }

  .privacy-label {
    flex-direction: column;
    gap: 1rem;
    text-align: left;
  }
  
  .privacy-text {
    font-size: 0.9rem;
  }

  .privacy-info-box {
    padding: 0.75rem;
  }

  .privacy-info-content p {
    font-size: 0.85rem;
  }

  .debug-input-group {
    flex-direction: column;
    align-items: stretch;
  }

  .debug-input-group input {
    width: 100%;
  }

  /* Responsive para nuevos tipos de input */
  .numeric-input {
    font-size: 1.1rem;
    padding: 0.8rem;
  }

  .numeric-input-wrapper {
    padding: 1rem;
  }

  .scale-label {
    font-size: 0.8rem;
  }

  .multiple-instruction {
    font-size: 0.9rem;
    padding: 0.8rem;
  }

  .option-multiple {
    padding: 0.8rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .option-multiple input[type="checkbox"] {
    margin-right: 0.5rem;
    width: 18px;
    height: 18px;
  }

  .option-multiple label {
    font-size: 0.9rem;
  }

  /* Responsive para inputs de hora, número y texto */
  .time-input, .number-input {
    font-size: 1.1rem;
    padding: 0.8rem;
  }

  .time-input-wrapper, .number-input-wrapper, .text-input-wrapper {
    padding: 1rem;
  }

  .helper-text {
    font-size: 0.8rem;
  }

  .text-input {
    font-size: 0.9rem;
    padding: 0.8rem;
    min-height: 70px;
  }

  .optional-indicator {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    margin-left: 0.5rem;
  }

  .companion-intro {
    padding: 1rem;
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .intro-icon {
    font-size: 1.5rem;
  }

  .intro-content h4 {
    font-size: 1.1rem;
  }

  .intro-content p {
    font-size: 0.9rem;
  }
}

/* Estilos para inputs numéricos (tipo numero_0_100) */
.numeric-input-container {
  width: 100%;
  margin: 1rem 0;
}

.numeric-input-wrapper {
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.numeric-input-wrapper:focus-within {
  border-color: #ff6600;
  box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);
}

.numeric-input {
  width: 100%;
  padding: 1rem;
  font-size: 1.2rem;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  background: white;
  transition: all 0.3s ease;
}

.numeric-input:focus {
  outline: none;
  border-color: #ff6600;
  box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);
}

.numeric-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #dee2e6;
}

.scale-label {
  font-size: 0.9rem;
  color: #6c757d;
  font-weight: 500;
}

/* Estilos para opciones múltiples (tipo multiple_no_puntuable) */
.multiple-options-container {
  width: 100%;
}

.multiple-instruction {
  font-size: 1rem;
  color: #495057;
  margin-bottom: 1rem;
  padding: 1rem;
  background: #e3f2fd;
  border-radius: 8px;
  border-left: 4px solid #2196f3;
  font-weight: 500;
}

.option-multiple {
  display: flex;
  align-items: center;
  padding: 1rem;
  margin-bottom: 0.5rem;
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
}

.option-multiple:hover {
  background: #e3f2fd;
  border-color: #2196f3;
  transform: translateX(4px);
}

.option-multiple.selected {
  background: #e8f5e8;
  border-color: #4caf50;
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
}

.option-multiple input[type="checkbox"] {
  margin-right: 1rem;
  width: 20px;
  height: 20px;
  accent-color: #4caf50;
  cursor: pointer;
}

.option-multiple label {
  flex: 1;
  cursor: pointer;
  font-weight: 500;
  color: #495057;
  line-height: 1.5;
}

.option-multiple.selected label {
  color: #2e7d32;
  font-weight: 600;
}

/* Estilos para inputs de hora (tipo hora) */
.time-input-container {
  width: 100%;
  margin: 1rem 0;
}

.time-input-wrapper {
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.time-input-wrapper:focus-within {
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.time-input {
  width: 100%;
  padding: 1rem;
  font-size: 1.2rem;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  background: white;
  transition: all 0.3s ease;
}

.time-input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.time-helper {
  margin-top: 0.75rem;
  text-align: center;
}

.helper-text {
  font-size: 0.9rem;
  color: #6c757d;
  font-weight: 500;
}

/* Estilos para inputs numéricos generales (tipo numero) */
.number-input-container {
  width: 100%;
  margin: 1rem 0;
}

.number-input-wrapper {
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.number-input-wrapper:focus-within {
  border-color: #28a745;
  box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.number-input {
  width: 100%;
  padding: 1rem;
  font-size: 1.2rem;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  background: white;
  transition: all 0.3s ease;
}

.number-input:focus {
  outline: none;
  border-color: #28a745;
  box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.number-helper {
  margin-top: 0.75rem;
  text-align: center;
}

/* Estilos para inputs de texto (tipo texto) */
.text-input-container {
  width: 100%;
  margin: 1rem 0;
}

.text-input-wrapper {
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.text-input-wrapper:focus-within {
  border-color: #6f42c1;
  box-shadow: 0 0 0 3px rgba(111, 66, 193, 0.1);
}

.text-input {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  font-family: inherit;
  line-height: 1.5;
  background: white;
  transition: all 0.3s ease;
  resize: vertical;
  min-height: 80px;
}

.text-input:focus {
  outline: none;
  border-color: #6f42c1;
  box-shadow: 0 0 0 3px rgba(111, 66, 193, 0.1);
}

.text-helper {
  margin-top: 0.75rem;
  text-align: center;
}

/* Indicador de pregunta opcional */
.optional-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 1rem;
  padding: 0.25rem 0.75rem;
  background: #e3f2fd;
  color: #1976d2;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.optional-indicator::before {
  content: "ℹ️";
  font-size: 0.9rem;
}

/* Mensaje de introducción para preguntas del compañero */
.companion-intro {
  background: linear-gradient(135deg, #e3f2fd, #f3e5f5);
  border: 2px solid #2196f3;
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.intro-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.intro-content h4 {
  color: #1565c0;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.intro-content p {
  color: #424242;
  line-height: 1.6;
  margin: 0;
  font-size: 0.95rem;
}
