/* ========================================================= */
/* ===== ESTILOS RESPONSIVOS PARA EVALUADOR SUSTENTABLE ===== */
/* ========================================================= */

/* --- ESTILOS BASE (Mobile-First) --- */
.main-content-grid {
    display: flex;
    /* Usamos Flexbox para mayor compatibilidad */
    flex-direction: column;
    /* Apila los elementos verticalmente en móviles */
    gap: 30px;
}

.results-sidebar {
    position: static;
    /* La barra de resultados se muestra como un bloque normal */
    margin-top: 20px;
    background: #20212B;
    color: #fff;
    padding: 25px;
    border-radius: 5px;
}

/* --- ESTILOS PARA PANTALLAS GRANDES (ESCRITORIO, A PARTIR DE 992px) --- */
@media (min-width: 992px) {
    .main-content-grid {
        display: grid;
        /* Cambiamos a Grid para el diseño de 2 columnas */
        grid-template-columns: 2fr 1fr;
        /* Diseño de dos columnas */
    }

    .results-sidebar {
        position: sticky;
        /* Hacemos que la barra lateral sea fija al hacer scroll */
        top: 20px;
    }
}

/* --- RESTO DE LOS ESTILOS (sin cambios funcionales mayores) --- */
#evaluacion h2,
#evaluacion h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #4a4c70;
    font-weight: 700;
}

.config-container {
    background-color: #f3f6ff;
    padding: 25px;
    margin-bottom: 30px;
    border-left: 5px solid #FDBE33;
    border-radius: 5px;
}

#certification-description {
    padding: 15px;
    background-color: #fff;
    border-left: 3px solid #FDBE33;
    margin-top: 20px;
    font-size: 0.9em;
}

#evaluationForm .card {
    margin-bottom: 10px;
    border-radius: 0;
    border: 1px solid #e9ecef;
    box-shadow: none;
}

#evaluationForm .card-header {
    background-color: #f8f9fa;
    padding: 0;
    border-bottom: 1px solid #e9ecef;
}

#evaluationForm .card-header .btn-link {
    width: 100%;
    text-align: left;
    padding: 12px 20px;
    font-weight: 700;
    font-size: 18px;
    color: #4a4c70;
    text-decoration: none;
}

#evaluationForm .card-header .btn-link:hover {
    color: #FDBE33;
}

#evaluationForm .card-header .btn-link:focus {
    box-shadow: none;
}

#evaluationForm .card-body {
    padding: 10px 20px;
    background-color: #fff;
}

.credit-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 15px;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.credit-item:last-child {
    border-bottom: none;
}

.credit-info-wrapper {
    display: flex;
    flex-direction: column;
}

.credit-item-main {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.credit-item-main .info-icon {
    font-size: 18px;
    color: #007bff;
    cursor: pointer;
    margin-right: 15px;
    flex-shrink: 0;
}

.credit-item-main label {
    margin: 0;
    font-weight: 500;
}

.indicators {
    display: flex;
    gap: 10px;
    margin-left: 33px;
}

.indicators span {
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 4px;
    color: white;
    font-weight: 600;
}

.cost-indicator {
    background-color: #6c757d;
}

.roi-indicator {
    background-color: #28a745;
}

.point-selector {
    display: flex;
    flex-wrap: wrap;
}

.point-selector .btn {
    min-width: 35px;
    height: 35px;
    border: 1px solid #ccc;
    background-color: #f8f9fa;
    color: #333;
    margin-right: 5px;
    margin-bottom: 5px;
    transition: all 0.2s ease;
}

.point-selector .btn.active {
    background-color: #FDBE33;
    color: #20212B;
    border-color: #FDBE33;
    font-weight: 700;
}

.point-selector .btn:hover {
    background-color: #e2e6ea;
}

.point-selector .btn.active:hover {
    background-color: #fbc852;
}

.results-sidebar .results-title {
    font-size: 22px;
    font-weight: 700;
    color: #FDBE33;
    text-align: center;
    margin-bottom: 20px;
}

.score-container {
    text-align: center;
}

.score-container p {
    margin: 0;
    font-size: 16px;
    color: #ccc;
}

#totalScore {
    font-size: 48px;
    font-weight: 700;
    color: #FDBE33;
}

#maxScore {
    font-size: 20px;
    color: #ccc;
}

.progress-bar-container {
    background: #4a4c70;
    height: 10px;
    border-radius: 5px;
    margin-top: 10px;
}

#progressBar {
    background: #FDBE33;
    height: 100%;
    transition: width 0.4s ease;
    border-radius: 5px;
}

#certificationLevel {
    text-align: center;
    margin-top: 20px;
}

#certificationLevel h4 {
    font-size: 18px;
    margin-bottom: 5px;
    color: #fff;
}

#levelText {
    font-weight: 700;
    font-size: 22px;
    color: #FDBE33;
}

.chart-container {
    height: 280px;
    margin-top: 25px;
    cursor: pointer;
}

.btn-block i {
    margin-right: 8px;
}

.disclaimer {
    background-color: rgba(253, 190, 51, 0.1);
    border-left: 4px solid #FDBE33;
    padding: 10px 15px;
    margin: 20px 0;
    display: flex;
    align-items: center;
}

.disclaimer i {
    font-size: 20px;
    color: #FDBE33;
    margin-right: 10px;
}

.disclaimer p {
    margin: 0;
    font-size: 13px;
    color: #eee;
}

#recommendations,
#costBenefitAnalysis {
    margin-top: 25px;
}

#recommendations h4,
#costBenefitAnalysis h4 {
    font-size: 18px;
    color: #FDBE33;
    border-bottom: 1px solid #4a4c70;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

#recommendations ul {
    padding-left: 20px;
    margin: 0;
}

#recommendations li {
    font-size: 14px;
    margin-bottom: 8px;
    color: #ddd;
}

#costBenefitAnalysis p {
    font-size: 14px;
    color: #ddd;
}

#costBenefitAnalysis i,
#recommendations i {
    margin-right: 8px;
}

.modal-content {
    border-radius: 0;
}

.modal-header {
    background-color: #4a4c70;
    color: #FDBE33;
}

.modal-header .close {
    color: #fff;
    opacity: 1;
}

.modal-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    display: block;
}

#modalDocs h6 {
    font-weight: 700;
    color: #4a4c70;
}

#modalDocs ul {
    list-style-type: none;
    padding-left: 0;
}

#modalDocs li {
    background: #e9ecef;
    padding: 5px 10px;
    margin-bottom: 5px;
    border-radius: 3px;
    font-size: 14px;
}

#modalDocs i {
    color: #28a745;
    margin-right: 8px;
}

.technical-term {
    text-decoration: underline dotted #007bff;
    cursor: help;
    position: relative;
}

.btn-donar-sidebar {
    padding: 15px 20px;
    background-color: #28a745;
    color: #ffffff;
    font-weight: 700;
    font-size: 16px;
    border-radius: 5px;
    border: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-donar-sidebar:hover {
    background-color: #218838;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-donar-sidebar i {
    margin-right: 10px;
    animation: pulse-heart 1.5s infinite;
}

@keyframes pulse-heart {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}