/* ==========================================================================
   ESTRUCTURA GENERAL (Vigas y Columnas del Cuestionario)
   ========================================================================== */

#cg-quiz-container {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.cg-quiz-layout {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.cg-quiz-content {
    flex: 3;
}

.cg-quiz-sidebar {
    flex: 1;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 24px;
    position: sticky;
    top: 20px;
}

.cg-step {
    display: none;
}
.cg-step.active {
    display: block;
}

/* Botón Siguiente Universal */
.cg-btn-next, .cg-btn-submit {
    background: #0054a6;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    padding: 12px 35px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.cg-btn-next:hover, .cg-btn-submit:hover {
    background: #003d7a;
}

/* ==========================================================================
   BARRA LATERAL CON CONECTORES GRISES DERECHA
   ========================================================================== */
.cg-quiz-sidebar h3 {
    font-size: 11px;
    letter-spacing: 1.5px;
    color: #475569;
    margin-bottom: 25px;
    font-weight: 700;
}

.cg-progress-list {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}

/* Elemento de lista */
.cg-sidebar-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 24px;
    opacity: 0.35;
    position: relative;
    transition: opacity 0.3s;
}

.cg-sidebar-item.active {
    opacity: 1;
}

/* Línea gris conectora vertical detrás de los números */
.cg-sidebar-item:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 12px;
    top: 24px;
    bottom: -24px;
    width: 1px;
    background: #cbd5e1;
    z-index: 1;
}

.step-number {
    background: #e2e8f0;
    color: #475569;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    position: relative;
    z-index: 2; /* Por encima de la línea vertical */
}

.cg-sidebar-item.active .step-number {
    background: #0054a6;
    color: #ffffff;
}

.step-label {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    display: block;
}

.step-selection-value {
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
}

/* Estilo fuerte y llamativo para el botón Siguiente */
.cg-btn-next {
    background-color: #0054a6 !important; /* Azul fuerte e intenso (combinando con tu diseño) */
    color: #ffffff !important;            /* Texto en blanco puro */
    opacity: 1 !important;                /* Forzamos a que no se vea opaco ni transparente */
    font-weight: 700 !important;          /* Texto en negrita para darle más peso */
    padding: 12px 24px !important;        /* Espaciado interno para que se vea robusto */
    border: none !important;
    border-radius: 4px !important;        /* Bordes sutilmente redondeados */
    transition: background-color 0.2s ease, transform 0.1s ease !important;
    cursor: pointer !important;
}

/* Efecto al pasar el mouse por encima (Hover) */
.cg-btn-next:hover {
    background-color: #003f7e !important; /* Un azul un poco más oscuro al pasar el cursor */
    opacity: 1 !important;
    transform: translateY(-1px) !important; /* Pequeño efecto de elevación */
}

/* Efecto al hacer clic (Active) */
.cg-btn-next:active {
    transform: translateY(1px) !important;  /* Efecto de hundimiento al presionarlo */
}