/* ==========================================================================
   Diagnóstico Estratégico - La Pescadería de Envigado S.A.S
   Estilos personalizados y componentes interactivos
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary-navy: #0f172a;
  --secondary-teal: #0d9488;
  --accent-blue: #0284c7;
  --bg-slate: #f8fafc;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-slate);
  color: #1e293b;
  -webkit-font-smoothing: antialiased;
}

/* Transiciones entre ventanas del Wizard */
.wizard-step {
  display: none;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.wizard-step.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Escala Likert 1 a 5 - Tarjetas y Radio Buttons estilizados */
.likert-group {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
}

@media (max-width: 640px) {
  .likert-group {
    grid-template-columns: repeat(5, 1fr);
    gap: 0.25rem;
  }
}

.likert-option {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 0.5rem;
  border-radius: 0.75rem;
  border: 2px solid #e2e8f0;
  background-color: #ffffff;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  text-align: center;
}

.likert-option:hover {
  border-color: #94a3b8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.likert-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.likert-number {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.25rem;
  transition: transform 0.2s ease;
}

.likert-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  line-height: 1.2;
}

/* Colores específicos según el valor seleccionado */
.likert-option.selected[data-val="1"] {
  border-color: #ef4444;
  background-color: #fef2f2;
  color: #991b1b;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}
.likert-option.selected[data-val="1"] .likert-number { color: #ef4444; transform: scale(1.15); }

.likert-option.selected[data-val="2"] {
  border-color: #f97316;
  background-color: #fff7ed;
  color: #9a3412;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
}
.likert-option.selected[data-val="2"] .likert-number { color: #f97316; transform: scale(1.15); }

.likert-option.selected[data-val="3"] {
  border-color: #eab308;
  background-color: #fefce8;
  color: #854d0e;
  box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.2);
}
.likert-option.selected[data-val="3"] .likert-number { color: #ca8a04; transform: scale(1.15); }

.likert-option.selected[data-val="4"] {
  border-color: #06b6d4;
  background-color: #ecfeff;
  color: #155e75;
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2);
}
.likert-option.selected[data-val="4"] .likert-number { color: #0891b2; transform: scale(1.15); }

.likert-option.selected[data-val="5"] {
  border-color: #10b981;
  background-color: #ecfdf5;
  color: #065f46;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}
.likert-option.selected[data-val="5"] .likert-number { color: #059669; transform: scale(1.15); }

/* Range Slider estilizado alternativo */
.custom-slider-container {
  padding: 0.5rem 0.25rem;
}

.custom-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 9999px;
  background: #e2e8f0;
  outline: none;
  transition: background 0.3s ease;
}

.custom-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #0d9488;
  border: 3px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.15s ease-in-out;
}

.custom-range::-webkit-slider-thumb:hover {
  transform: scale(1.18);
  box-shadow: 0 4px 10px rgba(13, 148, 136, 0.4);
}

/* Tarjeta de Pregunta */
.question-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.question-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
}

.question-card.answered {
  border-left: 4px solid #0d9488;
}

/* Barra de progreso superior */
.progress-bar-fill {
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animaciones sutiles */
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(13, 148, 136, 0); }
}

.pulse-active {
  animation: pulseGlow 2s infinite;
}

/* Estilos de Impresión / PDF */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 12pt;
  }
  .no-print {
    display: none !important;
  }
  .print-only {
    display: block !important;
  }
  .wizard-step {
    display: block !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .question-card {
    border: 1px solid #ccc !important;
    page-break-inside: avoid;
    margin-bottom: 1rem;
  }
  .shadow-lg, .shadow-xl, .shadow-md, .shadow-sm {
    box-shadow: none !important;
  }
}
