/* ── Eneagrama Test – Estilos ─────────────────────────────────── */

#ene-wrapper {
    max-width: 800px;
    margin: 0 auto;
    font-family: 'Segoe UI', Arial, sans-serif;
    color: #333;
}

/* Barra de progreso */
#ene-progress-bar-container {
    background: #ecf0f1;
    border-radius: 30px;
    padding: 6px 14px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
}

#ene-progress-bar {
    height: 8px;
    background: #2c3e50;
    border-radius: 30px;
    width: 0%;
    transition: width 0.4s ease;
    flex-shrink: 0;
    min-width: 0;
}

#ene-progress-label {
    font-size: 12px;
    color: #7f8c8d;
    white-space: nowrap;
}

/* Páginas */
.ene-page {
    display: none;
}
.ene-page.active {
    display: block;
    animation: eneFadeIn 0.3s ease;
}
@keyframes eneFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Encabezados */
#ene-wrapper h2 {
    font-size: 26px;
    color: #2c3e50;
    margin-bottom: 12px;
    border-bottom: 3px solid #2c3e50;
    padding-bottom: 10px;
}
#ene-wrapper h3 {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 20px;
    background: #ecf0f1;
    padding: 10px 15px;
    border-radius: 6px;
}

.ene-intro {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 12px;
}

/* Campos */
.ene-field {
    margin-bottom: 20px;
}
.ene-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #2c3e50;
}
.ene-field input[type="text"],
.ene-field input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #dde;
    border-radius: 8px;
    font-size: 15px;
    transition: border 0.2s;
    box-sizing: border-box;
}
.ene-field input:focus {
    border-color: #2c3e50;
    outline: none;
}
.ene-field small {
    display: block;
    color: #888;
    margin-top: 5px;
    font-size: 12px;
}

/* Preguntas */
.ene-question {
    background: #fafafa;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 16px;
    transition: border-color 0.2s;
}
.ene-question.answered {
    border-color: #2ecc71;
    background: #f0fff4;
}
.ene-question.invalid {
    border-color: #e74c3c;
    background: #fff5f5;
}

.ene-q-text {
    margin: 0 0 12px 0;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
}
.ene-q-num {
    font-weight: 700;
    color: #2c3e50;
    margin-right: 4px;
}

/* Escala */
.ene-scale {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.ene-scale-label {
    font-size: 11px;
    color: #999;
    flex-shrink: 0;
}
.ene-radio-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}
.ene-radio-label input[type="radio"] {
    display: none;
}
.ene-radio-custom {
    width: 38px;
    height: 38px;
    border: 2px solid #ccc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    color: #888;
    transition: all 0.2s;
    background: #fff;
    user-select: none;
}
.ene-radio-label input:checked + .ene-radio-custom {
    background: #2c3e50;
    border-color: #2c3e50;
    color: #fff;
    transform: scale(1.1);
}
.ene-radio-label:hover .ene-radio-custom {
    border-color: #2c3e50;
    color: #2c3e50;
}

/* Navegación */
.ene-nav {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.ene-btn {
    padding: 13px 30px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.ene-btn-next,
.ene-btn-submit {
    background: #2c3e50;
    color: #fff;
}
.ene-btn-next:hover,
.ene-btn-submit:hover {
    background: #1a252f;
    transform: translateY(-1px);
}
.ene-btn-secondary {
    background: #ecf0f1;
    color: #555;
}
.ene-btn-secondary:hover {
    background: #dde;
}
.ene-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Spinner */
.ene-spinner {
    text-align: center;
    padding: 60px 20px;
    font-size: 18px;
    color: #555;
}
.ene-spinner::after {
    content: '';
    display: block;
    width: 48px;
    height: 48px;
    border: 4px solid #ddd;
    border-top-color: #2c3e50;
    border-radius: 50%;
    margin: 20px auto 0;
    animation: ene-spin 0.8s linear infinite;
}
@keyframes ene-spin {
    to { transform: rotate(360deg); }
}

/* Resultado */
#ene-result-content .ene-result-header {
    padding: 30px 25px;
    border-radius: 12px;
    margin-bottom: 24px;
    color: #fff;
    text-align: center;
}
#ene-result-content .ene-result-header h2 {
    color: #fff;
    border: none;
    margin: 0 0 8px 0;
    font-size: 28px;
}
#ene-result-content .ene-result-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 16px;
}

.ene-result-section {
    background: #fafafa;
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 18px;
    border: 1px solid #eee;
}
.ene-result-section h4 {
    margin: 0 0 12px 0;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
}
.ene-result-section p {
    margin: 0;
    line-height: 1.7;
    color: #444;
}

.ene-result-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 580px) {
    .ene-scale {
        gap: 4px;
    }
    .ene-radio-custom {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
    #ene-wrapper h2 {
        font-size: 20px;
    }
    .ene-btn {
        padding: 11px 20px;
        font-size: 14px;
    }
}
