/* =============================================================
   encuesta-fullcredit.css
   Estilos con scope limitado al componente de encuesta
   Fullcredit. Todos los selectores están prefijados con
   #fc-survey o con .fc-* para evitar conflictos con otras
   hojas de estilo de la aplicación.
   ============================================================= */

/* ─── Variables de marca ─────────────────────────────────────
   Definidas dentro del scope del componente para no pisar
   variables globales de la aplicación.
   ──────────────────────────────────────────────────────────── */

#fc-survey, .fc-modal {
  --fc-accent: #ff7b56;
  --fc-hot: #ff3800;
  --fc-row-odd: #ffffff;
  --fc-row-even: #ffe4dc;
  --fc-row-hover: #fdd5c9;
  --fc-row-cat: #f2bd9e;
  --fc-comment-bg: #ffec4c;
  --fc-font: 'Roboto', sans-serif;
  --fc-size: 11px;
  --fc-color: #000000;
}

/* ─── Tipografía base del componente ───────────────────────── */

#fc-survey, #fc-survey *, .fc-modal, .fc-modal * {
  font-family: var(--fc-font) !important;
  font-size: var(--fc-size) !important;
  color: var(--fc-color) !important;
}

/* ─── Contador de progreso ─────────────────────────────────── */

#fc-survey #progress-counter {
  color: #888888 !important;
}

/* ─── Tabla ────────────────────────────────────────────────── */

#fc-survey #survey-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

#fc-survey #survey-table thead th {
  font-weight: 700;
  background: #f5f5f5;
  border-bottom: 2px solid var(--fc-accent);
  padding: 8px 10px;
  white-space: nowrap;
}

/* Filas normales — alternancia por clase asignada desde JS */

#fc-survey #survey-table tbody tr.row-odd td {
  background-color: var(--fc-row-odd);
}

#fc-survey #survey-table tbody tr.row-even td {
  background-color: var(--fc-row-even);
}

/* Fila de categoría */

#fc-survey #survey-table tbody tr.row-category td {
  background-color: var(--fc-row-cat);
  font-weight: 700;
}

/* Hover — solo filas normales, no categorías */

#fc-survey #survey-table tbody tr.row-odd:hover td, #fc-survey #survey-table tbody tr.row-even:hover td {
  background-color: var(--fc-row-hover) !important;
  transition: background-color 0.15s ease;
}

#fc-survey #survey-table tbody td {
  padding: 6px 10px;
  vertical-align: middle;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* ─── Columnas ─────────────────────────────────────────────── */

#fc-survey .col-num {
  width: 36px;
  text-align: center;
  font-weight: 700;
  color: var(--fc-accent) !important;
}

#fc-survey tr.row-category .col-num {
  color: transparent !important;
}

#fc-survey .col-question {
  line-height: 1.5;
}

#fc-survey .col-radio {
  width: 120px;
  white-space: nowrap;
}

#fc-survey .col-icon {
  width: 36px;
  text-align: center;
  padding: 3px 6px !important;
}

/* Ícono del encabezado de columna */

#fc-survey .col-icon .bi {
  font-size: 13px !important;
  color: var(--fc-accent) !important;
}

/* Celdas de radio e ícono en filas de categoría */

#fc-survey tr.row-category .col-radio, #fc-survey tr.row-category .col-icon {
  background-color: var(--fc-row-cat);
}

/* ─── Radio buttons ────────────────────────────────────────── */

#fc-survey .survey-radio {
  appearance: none;
  -webkit-appearance: none;
  width: 13px;
  height: 13px;
  border: 2px solid var(--fc-accent);
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  top: 2px;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s;
}

#fc-survey .survey-radio:checked {
  background-color: var(--fc-accent);
  border-color: var(--fc-accent);
  box-shadow: inset 0 0 0 2px #ffffff;
}

#fc-survey .survey-radio:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 123, 86, 0.25);
}

#fc-survey .form-check-inline {
  margin-right: 10px;
}

#fc-survey .form-check-label {
  cursor: pointer;
  padding-left: 3px;
}

/* ─── Botón ícono de comentario ────────────────────────────── */

#fc-survey .comment-trigger {
  background: transparent;
  border: none;
  border-radius: 4px;
  padding: 3px 5px;
  cursor: pointer;
  line-height: 1;
  transition: background-color 0.2s ease;
}

#fc-survey .comment-trigger .bi {
  font-size: 15px !important;
  color: var(--fc-accent) !important;
  transition: color 0.2s, transform 0.2s;
}

/* Estado: sin comentario — hover sutil */

#fc-survey .comment-trigger:hover {
  background-color: rgba(255, 123, 86, 0.1);
}

/* Estado: con comentario — fondo amarillo + ícono rojo */

#fc-survey .comment-trigger.has-comment {
  background-color: var(--fc-comment-bg);
}

#fc-survey .comment-trigger.has-comment .bi {
  color: var(--fc-hot) !important;
}

/* Hover sobre botón con comentario — ligero oscurecimiento */

#fc-survey .comment-trigger.has-comment:hover {
  background-color: #f5e000;
}

#fc-survey .comment-trigger:hover .bi {
  transform: scale(1.15);
}

/* ─── Modal ──────────────────────────────────────────────────
   Usa .fc-modal en modal-content para acotar los estilos
   sin afectar otros modales de la aplicación.
   ──────────────────────────────────────────────────────────── */

.fc-modal .modal-title {
  font-weight: 700;
}

.fc-modal .modal-title .bi {
  color: var(--fc-accent) !important;
}

.fc-modal #modal-question-ref {
  color: var(--fc-accent) !important;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.fc-modal #modal-question-text-preview {
  color: #555555 !important;
  margin-bottom: 10px;
  line-height: 1.5;
}

.fc-modal #modal-comment-input {
  border-color: #dddddd;
  resize: vertical;
}

.fc-modal #modal-comment-input:focus {
  border-color: var(--fc-accent);
  box-shadow: 0 0 0 3px rgba(255, 123, 86, 0.2);
}

/* ─── Botón guardar comentario ─────────────────────────────── */

.fc-btn-save {
  background-color: var(--fc-accent);
  border-color: var(--fc-accent);
  color: #ffffff !important;
}

.fc-btn-save:hover {
  background-color: var(--fc-hot);
  border-color: var(--fc-hot);
  color: #ffffff !important;
}

