body{
    padding-top:20px !important;
}

.question-block{
    margin-bottom:1.5rem;
}

.question-title{
    font-weight:600;
    margin-bottom:.5rem;
}

.checkbox-container{
    border:1px solid #dee2e6;
    border-radius:.75rem;
    padding:1rem;
    background:#fff;
}

.checkbox-container .form-check{
    margin-bottom:.5rem;
}

/* ==========================
   Cards
========================== */

.card{
    border-radius:1rem;
}

.card-header{
    padding:1rem 1.25rem;
}

.card-header h5 {
    font-weight: 500 !important;
}

.card-body{
    padding:1.5rem;
}

/* ==========================
   Formularios
========================== */

.form-label{
    font-weight:600;
}

.form-control,
.form-select{
    min-height:48px;
}

/* ==========================
   Campo OTRO
========================== */

.otro-container{
    background:#f8f9fa;
    border:1px solid #dee2e6;
    border-radius:12px;
    padding:1rem;
}
.ocupacion-pills{
    display:flex;
    flex-wrap:wrap;
    gap:.75rem;
}

.pill-wrapper{
    position:relative;
}

.pill-wrapper input[type="radio"]{
    display:none;
}

.pill-option{
    display:block;
    padding:.7rem 1rem;
    border:2px solid #dee2e6;
    border-radius:999px;
    background:#fff;
    cursor:pointer;
    transition:.2s;
    margin:0;
    font-weight:500;
}

.pill-option:hover{
    border-color:#14498c;
}

.pill-wrapper input[type="radio"]:checked + .pill-option{
    background:#14498c;
    border-color:#14498c;
    color:#fff;
}

/* ==========================
   Cards de choices
========================== */
.tipo-choices-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:.75rem;
}

.tipo-choices-card{
    border:2px solid #dee2e6;
    border-radius:12px;
    background:white;
    padding:1rem;
    text-align:left;
    transition:.2s;
    min-height:80px;
}

.tipo-choices-card:hover{
    border-color:#14498c;
}

.tipo-choices-card.active{
    background:#14498c;
    border-color:#14498c;
    color:white;
}

/* ==========================
   Cards de selección
========================== */

.choice-card-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:.75rem;
}

.choice-card{
    border:2px solid #dee2e6;
    border-radius:12px;
    background:white;
    padding:1rem;
    text-align:left;
    transition:.2s;
    min-height:80px;
    cursor:pointer;
}

.choice-card:hover{
    border-color:#14498c;
}

.choice-card.active{
    background:#14498c;
    color:white;
    border-color:#14498c;
}

/* ==========================
   Encabezado de batería
========================== */

.encuesta-icono{
    width:90px;
    height:90px;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:24px;

    background:linear-gradient(
        135deg,
        #e7f1ff 0%,
        #d7e8ff 100%
    );

    color:#14498c;

    box-shadow:
        0 8px 20px rgba(20,73,140,.15);

    flex-shrink:0;
}

.encuesta-icono i{
    font-size:2.5rem;
}

/* ==========================
   Responsive
========================== */

@media (max-width:768px){

    .card-body{
        padding:1rem;
    }

    .encuesta-icono{
        width:72px;
        height:72px;
        border-radius:20px;
    }

    .encuesta-icono i{
        font-size:2rem;
    }

    .ocupacion-pills{
        gap:.5rem;
    }

    .pill-option{
        width:100%;
    }

    .pill-option span{
        text-align:center;
    }

    .choice-card-grid{
        grid-template-columns:1fr;
    }

}
.pill-wrapper{
    position:relative;
}

.pill-wrapper input[type="checkbox"]{
    position:absolute;
    opacity:0;
}

.pill-option{
    display:block;
    padding:.7rem 1rem;
    border:2px solid #dee2e6;
    border-radius:999px;
    background:white;
    cursor:pointer;
    transition:.2s;
}

.pill-option:hover{
    border-color:#14498c;
}

.pill-wrapper input[type="checkbox"]:checked + .pill-option{
    background:#14498c;
    border-color:#14498c;
    color:white;
}

.pill-wrapper input[type="checkbox"]:focus + .pill-option{
    outline:3px solid #86b7fe;
    outline-offset:2px;
}

.tipo-choices-pills{
    display:flex;
    flex-wrap:wrap;
    gap:.75rem;
}

.tipo-choice-pill{
    padding:.65rem 1rem;
    border:2px solid #dee2e6;
    border-radius:999px;
    background:#fff;
    font-weight:500;
    cursor:pointer;
    transition:.2s;
}

.tipo-choice-pill:hover{
    border-color:#14498c;
}

.tipo-choice-pill.active{
    background:#14498c;
    border-color:#14498c;
    color:#fff;
}

/* ==========================
   Campo marcado como
   "Prefiere no responder"
========================== */

.campo-no-responde {
    position: relative;
}

.campo-no-responde .form-control:disabled,
.campo-no-responde .form-select:disabled {
    background-color: #e9ecef;
    border-color: #adb5bd;
    color: #6c757d;
    cursor: not-allowed;
    opacity: 1;
}

.campo-no-responde .form-check-input:disabled {
    cursor: not-allowed;
}

.no-responde-indicador {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-top: .5rem;
    padding: .3rem .65rem;
    border-radius: 999px;
    background-color: #e9ecef;
    color: #6c757d;
    font-size: .8rem;
    font-weight: 600;
}

.no-responde-indicador i {
    font-size: .85rem;
}

/* ============================================================
   MATRIZ DE OPCIONES
============================================================ */

.matriz-opciones {
    margin-top: 1.5rem;
}

.matriz-opciones-header {
    margin-bottom: 1rem;
}

.matriz-opciones-header h5 {
    font-weight: 600;
}


/* ============================================================
   COLUMNA
============================================================ */

.matriz-columna {
    height: 100%;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: .5rem;
    overflow: hidden;
}

.matriz-columna-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .75rem;

    padding: .75rem 1rem;

    background: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.matriz-columna-body {
    padding: .5rem 1rem;
}


/* ============================================================
   OPCIONES
============================================================ */

.matriz-opcion {
    display: flex;
    align-items: center;
    gap: .65rem;

    width: 100%;
    padding: .65rem .25rem;
    margin: 0;

    cursor: pointer;

    border-bottom: 1px solid rgba(0, 0, 0, .05);

    transition: opacity .15s ease, background-color .15s ease;
}

.matriz-opcion:last-child {
    border-bottom: 0;
}


/* Ocultamos el radio nativo */

.matriz-opcion input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}


/* Radio visual */

.matriz-radio {
    width: 18px;
    height: 18px;

    flex: 0 0 18px;

    border: 2px solid #adb5bd;
    border-radius: 50%;

    background: #fff;

    transition:
        border-color .15s ease,
        background-color .15s ease,
        box-shadow .15s ease;
}


/* Radio seleccionado */

.matriz-opcion input[type="radio"]:checked + .matriz-radio {
    border-color: #0d6efd;
    background: #0d6efd;

    box-shadow:
        inset 0 0 0 4px #fff;
}


/* Hover */

.matriz-opcion:hover .matriz-radio {
    border-color: #0d6efd;
}


/* Texto */

.matriz-opcion-text {
    line-height: 1.4;
}


/* Foco accesible */

.matriz-opcion input[type="radio"]:focus-visible + .matriz-radio {
    outline: 3px solid rgba(13, 110, 253, .25);
    outline-offset: 2px;
}

/* ============================================================
   DESHABILITADO
============================================================ */

.matriz-opcion:has(input[type="radio"]:disabled) {

    cursor: not-allowed;
    opacity: .55;
}


.matriz-opcion:has(input[type="radio"]:disabled) .matriz-radio {

    background-color: #e9ecef;
    border-color: #ced4da;
}


.matriz-opcion:has(input[type="radio"]:disabled) .matriz-opcion-text {

    color: #6c757d;
}


/*
 * Evitar el efecto hover cuando está deshabilitado
 */

.matriz-opcion:has(input[type="radio"]:disabled):hover .matriz-radio {

    border-color: #ced4da;
}

/* ============================================================
   ERROR DE MATRIZ
============================================================ */

.matriz-columna-error {

    border: 1px solid #dc3545;

    box-shadow:
        0 0 0 .15rem rgba(220, 53, 69, .08);
}


.matriz-columna-error .matriz-columna-header {

    background-color: rgba(220, 53, 69, .06);

    border-bottom-color: rgba(220, 53, 69, .2);
}


.matriz-error {

    margin-top: .75rem;
    padding: .65rem .75rem;

    border-radius: .375rem;

    background-color: rgba(220, 53, 69, .08);

    color: #b02a37;

    font-size: .875rem;
}


.matriz-error i {
    font-size: .8rem;
}
/* ============================================================
   INDICADOR NO RESPONDE
============================================================ */

/* ============================================================
   NO RESPONDE - MATRIZ
============================================================ */

.matriz-columna
.no-responde-indicador {

    padding: .4rem 0.5rem;
    
    margin-left: 1rem !important;

    background-color: rgba(25, 135, 84, .06);

    border-bottom: 1px solid rgba(25, 135, 84, .15);

    color: #198754;

    font-size: .875rem;
    font-weight: 500;
}
/* ============================================================
   MULTIPLE CHOICE
============================================================ */

.multiple-opciones-header {
    margin-bottom: 1rem;
}


/* ============================================================
   CONTENEDOR
============================================================ */

.multiple-columna {
    background: #fff;

    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: .5rem;

}


/* ============================================================
   BODY
============================================================ */

.multiple-columna-body {
    padding: .5rem 1rem;
}


/* ============================================================
   OPCIONES
============================================================ */

.multiple-opcion {
    display: flex;
    align-items: center;
    gap: .65rem;

    width: 100%;

    padding: .65rem .25rem;
    margin: 0;

    cursor: pointer;

    border-bottom: 1px solid rgba(0, 0, 0, .05);

    transition:
        opacity .15s ease,
        background-color .15s ease;
}

.multiple-opcion:last-child {
    border-bottom: 0;
}


/* ============================================================
   CHECKBOX
============================================================ */

.multiple-opcion .form-check-input {
    margin: 0;

    flex: 0 0 auto;

    cursor: pointer;
}


/* ============================================================
   TEXTO
============================================================ */

.multiple-opcion-text {
    line-height: 1.4;

    cursor: pointer;
}


/* ============================================================
   HOVER
============================================================ */

.multiple-opcion:hover {
    background-color: #f8f9fa;
}


/* ============================================================
   SELECCIONADO
============================================================ */

.multiple-opcion:has(.form-check-input:checked) {
    background-color: rgba(13, 110, 253, .05);
}


/* ============================================================
   FOCO ACCESIBLE
============================================================ */

.multiple-opcion:has(.form-check-input:focus-visible) {
    outline: 3px solid rgba(13, 110, 253, .2);
    outline-offset: 2px;
}


/* ============================================================
   DESHABILITADO
============================================================ */

.multiple-opcion:has(.form-check-input:disabled) {

    cursor: not-allowed;
    opacity: .55;
}


.multiple-opcion:has(.form-check-input:disabled)
.multiple-opcion-text {

    color: #6c757d;

    cursor: not-allowed;
}


.multiple-opcion:has(.form-check-input:disabled)
.form-check-input {

    cursor: not-allowed;
}


/*
 * Evitar efecto hover cuando está deshabilitado
 */

.multiple-opcion:has(.form-check-input:disabled):hover {

    background-color: transparent;
}


/* ============================================================
   ERROR
============================================================ */

.multiple-columna-error {

    border: 1px solid #dc3545;

    box-shadow:
        0 0 0 .15rem rgba(220, 53, 69, .08);
}


.multiple-error {

    margin-top: .75rem;

    padding: .65rem .75rem;

    border-radius: .375rem;

    background-color: rgba(220, 53, 69, .08);

    color: #b02a37;

    font-size: .875rem;
}

/* ============================================================
   BODY
============================================================ */

.multiple-columna-body {
    padding: .5rem 1rem;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2rem;
}

@media (max-width: 767.98px) {

    .multiple-columna-body {
        grid-template-columns: 1fr;
    }

}

/* ============================================================
   NO RESPONDE
============================================================ */

.no-responde-indicador {

    display: inline-flex;
    align-items: center;

    margin-left: auto;

    color: #198754;

    font-size: .875rem;
    font-weight: 500;

    white-space: nowrap;
}


/* Matriz */

.matriz-columna-header
.no-responde-indicador {

    margin-left: auto;
}


/* Multiple Choice */

.multiple-opciones-header
.no-responde-indicador {

    margin-left: auto;
}

.multiple-opcion:has(.form-check-input:disabled) {
    cursor: not-allowed;
    opacity: .55;
}

/* =====================================================
   ESCALA
===================================================== */
.escala {
    --escala-posicion: 50%;
    width: 100%;
    margin-top: 1.5rem;
}


/* =====================================================
   EXTREMOS
===================================================== */

.escala-extremos {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: .75rem;
}

.escala-extremo-izquierda,
.escala-extremo-derecha {
    font-size: .85rem;
    color: #6c757d;
}

.escala-extremo-izquierda {
    text-align: left;
}

.escala-extremo-derecha {
    text-align: right;
}


/* =====================================================
   CONTENEDOR
===================================================== */

.escala-control {
    width: 100%;
}


/* =====================================================
   LÍNEA
===================================================== */

.escala-linea {
    position: relative;
    width: 100%;
    height: 75px;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}


/* =====================================================
   LÍNEA HORIZONTAL
===================================================== */

.escala-linea::before {
    content: "";

    position: absolute;

    left: 0;
    right: 0;

    top: 9px;

    height: 4px;

    background-color: #dee2e6;

    border-radius: 999px;

    z-index: 0;
}


/* =====================================================
   OPCIONES
===================================================== */

.escala-opcion {
    position: relative;

    width: auto;
    flex: 1;

    padding: 0;
    margin: 0;

    border: 0;
    background: transparent;

    display: flex;
    flex-direction: column;
    align-items: center;

    cursor: pointer;

    z-index: 2;
}


/* =====================================================
   PUNTO
===================================================== */

.escala-punto {
    width: 18px;
    height: 18px;

    border-radius: 50%;

    background-color: white;

    border: 3px solid #adb5bd;

    box-sizing: border-box;

    transition:
        transform .15s ease,
        background-color .15s ease,
        border-color .15s ease;
}


/* =====================================================
   PUNTO ACTIVO
===================================================== */

.escala-opcion.activo .escala-punto {
    background-color: #1ca3bb;

    border-color: #1ca3bb;

    transform: scale(1.25);
}


/* =====================================================
   TEXTO
===================================================== */

.escala-opcion-label {
    margin-top: .75rem;

    max-width: 150px;

    text-align: center;

    font-size: .8rem;

    line-height: 1.25;

    color: #6c757d;
}

.escala-opcion.activo .escala-opcion-label {
    color: #212529;
    font-weight: 600;
}


/* =====================================================
   RANGE
   Se utiliza solamente como control de desplazamiento.
===================================================== */

.escala-input {
    position: absolute;

    left: 0;
    top: 0;

    width: 100%;
    height: 20px;

    margin: 0;

    opacity: 0;

    cursor: pointer;

    z-index: 5;
}


/* =====================================================
   VALOR SELECCIONADO
===================================================== */

.escala-valor {
    text-align: center;

    min-height: 1.5rem;

    margin-top: .25rem;
}

.escala-valor-text {
    font-weight: 600;
    font-size: .9rem;
}

.campo-focus-error {
    outline: 3px solid rgba(220, 53, 69, .35);
    outline-offset: 2px;
}


/* =====================================================
   BOTÓN "PREFIERE NO RESPONDER"
===================================================== */

.btn-no-responde {
    white-space: nowrap;
}


/* =====================================================
   PANTALLAS PEQUEÑAS
===================================================== */

@media (max-width: 768px) {

    .btn-no-responde {
        width: 190px;
        max-width: 120px;
        white-space: normal;    
    }

}