/* --- GENERAL WRAPPER --- */
.esautoev-wrapper, #esgCuestionario, #esgResultados {
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1.45;
    color: #222;
}

/* TITULOS */
.esg-metadata-block h3,
.esg-questions-block h3,
.esg-results-block h3 {
    margin: 30px 0 15px;
    font-size: 1.4rem;
    font-weight: 600;
}

.esg-group-title {
    margin: 40px 0 15px;
    font-size: 1.3rem;
    font-weight: 600;
    border-left: 4px solid #54B7B3;
    padding-left: 10px;
}

/* --- METADATA BLOCK (datos previos) --- */
.esg-meta-item {
    margin-bottom: 15px;
}

.esg-meta-select {
    width: 100%;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 0.95rem;
}

/* --- QUESTION BLOCK STYLE (tipo Google Forms) --- */

.esg-question {
    background: #fff;
    border-radius: 10px;
    padding: 18px 22px;
    margin-bottom: 18px;
    border: 1px solid #eee;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: box-shadow 0.25s ease;
}

.esg-question:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.esg-question-header {
    margin-bottom: 12px;
}

.esg-aspecto {
    font-size: 0.9rem;
    font-weight: 600;
    color: #54B7B3;
    margin-bottom: 3px;
}

.esg-pregunta {
    font-size: 1.05rem;
    font-weight: 500;
}

/* ANSWER OPTIONS */
.esg-answer-option {
    display: flex;
    align-items: center;
    margin: 6px 0;
    padding: 6px 10px;
    border-radius: 6px;
    transition: background 0.15s ease;
}

.esg-answer-option:hover {
    background: #f2f6fc;
}

.esg-answer-option input {
    margin-right: 8px;
    transform: scale(1.2);
}

/* SUBMIT */
.esg-submit-wrapper {
    text-align: center;
    margin: 40px 0;
}

#esgSubmitBtn {
    background: #54B7B3;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background .2s;
}

#esgSubmitBtn:hover {
    background: #7EC9C6;
}

/* --- RESULTS SECTION --- */
.esg-results-block {
    margin-top: 40px;
    padding: 20px;
    background: #fafafa;
    border-radius: 10px;
}

.esg-result-group {
    margin-top: 35px;
    font-size: 1.3rem;
    font-weight: 600;
    border-left: 4px solid #6c4ad1;
    padding-left: 10px;
    color: #333;
}

.esg-result-item {
    margin: 18px 0;
    padding: 15px 18px;
    border-radius: 10px;
    border: 1px solid #ddd;
    background: #fff;
}

.esg-result-item.ok {
    border-left: 4px solid #2ecc71;
}

.esg-result-item.ko {
    border-left: 4px solid #e74c3c;
}

.esg-result-mensaje {
    margin-top: 10px;
    background: #fff6f4;
    padding: 10px;
    border-radius: 6px;
    border-left: 3px solid #e74c3c;
}

.esg-result-recurso a {
    display: inline-block;
    margin-top: 6px;
    color: #54B7B3;
    font-weight: 600;
}



.wizard-container {
    margin-top: 25px;
}

.wizard-step {
    animation: fadeIn .35s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}


.wizard-prev-btn {
    margin-top: 25px;
    background: #1f524d;
    color: white;
    border: none;
    font-size: 16px;
    cursor: pointer;
}

.wizard-prev-btn:hover {
    background: #17423f;
}

.wizard-next-btn,
.wizard-submit-btn {
    margin-top: 25px;
    background: #54B7B3;
    color: white;
    border: none;
    font-size: 16px;
    cursor: pointer;
}

.wizard-next-btn:hover,
.wizard-submit-btn:hover {
    background: #17423f;
}

.esg-group-title {
    padding-bottom: 10px;
    margin-bottom: 15px;
    border-bottom: 2px solid #eee;
    font-size: 22px;
    color: #1f524d;
}

.esg-question {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 14px;
    border-left: 5px solid #1f524d20;
}

.esg-answer-option {
    display: block;
    margin: 6px 0;
}

.esg-answer-option input {
    margin-right: 8px;
}
