/* ============================================================
   Tema LimeSurvey 3.25 (fruity_fiscol, extendido de Fruity)
   Fiscalía General de la Nación
   Pegar en: Configuración > Temas > fruity_fiscol > Editor de tema > custom.css
   ============================================================ */

:root {
  --fgn-blue: #08539F;
  --fgn-blue-dark: #063f7a;
  --fgn-red: #E41E29;
  --fgn-text: #1f2933;
  --fgn-bg: #f1f4f8;
}

body {
  background-color: var(--fgn-bg) !important;
  color: var(--fgn-text);
}

/* ---------- Barra superior: blanca, con logo y línea azul ---------- */
.navbar.navbar-default {
  background: #ffffff !important;
  border: none !important;
  border-bottom: 4px solid var(--fgn-blue) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
  min-height: 74px;
}
/* Fruity oculta el logo en móvil (hidden-xs): lo mostramos siempre */
.navbar .logo-container.hidden-xs {
  display: block !important;
}
.navbar-brand.logo-container {
  height: auto;
  padding: 8px 15px;
}
.navbar .logo-container > img.logo {
  padding: 0 !important;
}
/* Enlace "Salir y borrar la encuesta" de la barra superior */
.navbar #navbar {
  display: none !important;
}
.navbar .logo {
  height: 56px !important;
  max-height: none !important;
  width: auto !important;
  max-width: none !important;
}
/* Contenedor superior vacío (idioma / barra de progreso, desactivados) que deja un hueco */
.top-container {
  display: none !important;
}
#main-col {
  margin-top: 0;
}
#welcome-container .survey-name {
  margin-top: 24px;
}
/* Menú hamburguesa sin contenido útil en esta encuesta */
.navbar-toggle {
  display: none !important;
}

/* ---------- Título de la encuesta ---------- */
.survey-name {
  color: var(--fgn-blue) !important;
  font-weight: 700;
  font-size: 2em;
  hyphens: none;
  -webkit-hyphens: none;
  word-break: normal;
  overflow-wrap: normal;
  margin: 10px 0 24px;
}

/* ---------- Tarjeta de cada pregunta ---------- */
.question-container {
  background: #ffffff;
  border: none !important;
  border-top: 4px solid var(--fgn-blue) !important;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
  padding: 20px 16px 8px;
  margin: 0 0 24px !important;
}
.question-title-container,
.ls-label-question {
  background: transparent !important;
  color: var(--fgn-text) !important;
  font-size: 1.15em;
  font-weight: 600;
  hyphens: none;
  -webkit-hyphens: none;
}
.question-text {
  hyphens: none;
  -webkit-hyphens: none;
}
.asterisk,
.asterisk .fa,
.text-danger {
  color: var(--fgn-red) !important;
}
/* Separación entre el asterisco de obligatoria y el texto de la pregunta */
.question-title-container .asterisk {
  margin-right: 8px;
}

/* ---------- Respuestas con imagen: siempre en fila, también en móvil ---------- */
.radio-list.row {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  margin: 10px 0 0;
}
.radio-list.row::before,
.radio-list.row::after {
  display: none;
}
.radio-list > ul {
  float: none;
  flex: 0 1 190px;
  width: auto;
  padding: 0 8px;
  margin: 0;
}
.answer-item.radio-item {
  text-align: center;
  padding: 0;
  margin: 0 0 12px;
}
.answer-item.radio-item label {
  display: block;
  padding: 14px 6px 46px;
  margin: 0;
  cursor: pointer;
  border: 2px solid #e3e8ef;
  border-radius: 12px;
  background-color: #ffffff;
  transition: background-color .15s ease, border-color .15s ease;
}
.answer-item.radio-item label:hover {
  border-color: rgba(8, 83, 159, .45);
}
.answer-item.radio-item label p {
  margin: 0;
}
.answer-item.radio-item label strong {
  display: inline-block;
  margin-top: 10px;
  font-size: 1.2em;
  letter-spacing: .05em;
}
/* Palabra en el color de su icono */
.answer-item[id$="A1"] label strong,
.answer-item[id$="SI"] label strong { color: #2f8f1f; }
.answer-item[id$="A2"] label strong { color: #c77d00; }
.answer-item[id$="A3"] label strong,
.answer-item[id$="NO"] label strong { color: #c8323a; }
.answer-item.radio-item img {
  width: 110px !important;
  height: 110px !important;
}
.answer-item.radio-item img {
  transition: transform .15s ease;
}
.answer-item.radio-item label:hover img {
  transform: scale(1.06);
}

/* Círculo del radio: centrado debajo de la palabra */
.answer-item.radio-item input[type="radio"] {
  left: 50% !important;
  right: auto !important;
  top: auto !important;
  bottom: 14px;
  margin: 0 0 0 -11px !important;
  width: 22px;
  height: 22px;
}
.answer-item.radio-item label::before {
  left: 50% !important;
  top: auto !important;
  bottom: 14px;
  margin-left: -11px !important;
  width: 22px;
  height: 22px;
  border: 2px solid var(--fgn-blue) !important;
}
.answer-item.radio-item label::after {
  left: 50% !important;
  top: auto !important;
  bottom: 19px;
  margin-left: -6px !important;
  width: 12px;
  height: 12px;
  background-color: var(--fgn-blue) !important;
}

/* Opción seleccionada: fondo azul suave y borde azul */
.answer-item.radio-item input[type="radio"]:checked + label {
  background-color: rgba(8, 83, 159, .10);
  border-color: var(--fgn-blue);
}
.answer-item.radio-item input[type="radio"]:focus + label::before {
  outline: none;
  box-shadow: 0 0 0 3px rgba(8, 83, 159, .3);
}

/* ---------- Botones ---------- */
.btn-primary,
#ls-button-submit,
#ls-button-next {
  background-color: var(--fgn-blue) !important;
  border-color: var(--fgn-blue) !important;
  color: #ffffff !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 12px 36px;
  border-radius: 6px;
}
.btn-primary:hover,
.btn-primary:focus,
#ls-button-submit:hover,
#ls-button-next:hover {
  background-color: var(--fgn-blue-dark) !important;
  border-color: var(--fgn-blue-dark) !important;
}
/* Botón Enviar centrado */
#navigator-container .col-xs-6.text-left {
  display: none;
}
#navigator-container .col-xs-6.text-right {
  width: 100%;
  text-align: center;
}
#ls-button-submit {
  min-width: 260px;
}
/* "Salir y borrar la encuesta": no aporta en una encuesta de 3 preguntas */
.ls-clearall {
  display: none !important;
}

a { color: var(--fgn-blue); }
.progress-bar { background-color: var(--fgn-blue) !important; }

/* ---------- Móvil ---------- */
@media (max-width: 767px) {
  body {
    padding-top: 84px !important;
  }
  .navbar.navbar-default {
    min-height: 70px;
  }
  .navbar-brand.logo-container {
    float: none;
    text-align: center;
  }
  .navbar .logo {
    height: 50px !important;
    margin: 0 auto;
  }
  #welcome-container .survey-name {
    font-size: 1.45em;
    margin: 16px 0 18px;
  }
  #ls-button-submit {
    width: 100%;
    min-width: 0;
  }
  .question-container {
    padding: 16px 8px 4px;
  }
  .question-title-container,
  .ls-label-question {
    font-size: 1.05em;
  }
  .radio-list > ul {
    padding: 0 5px;
  }
  .answer-item.radio-item label {
    padding: 12px 4px 44px;
  }
  .answer-item.radio-item img {
    width: 84px !important;
    height: 84px !important;
  }
  .answer-item.radio-item label strong {
    font-size: .95em;
    margin-top: 8px;
  }
}
