/* Four Distinct Activities & SCORM 1.2 Score Reporting (OLIVA La Carrasca) */
.act-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.act-card {
    background: #ffffff;
    border: 1px solid #c5d9b2;
    border-radius: 12px;
    padding: 20px 22px;
    box-shadow: 0 2px 8px rgba(45, 85, 35, 0.05);
}

.act-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e4edd8;
}

.act-type-badge {
    display: inline-block;
    background: #eef4e5;
    color: #2d5523;
    border: 1px solid #c5d9b2;
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 0.84rem;
    font-weight: 700;
}

.act-points-badge {
    font-size: 0.85rem;
    font-weight: 600;
    color: #4a6340;
}

.act-question {
    font-size: 1.08rem;
    font-weight: 600;
    color: #1e3b17;
    margin-bottom: 14px;
}

.act-options-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.act-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    background: #f9fbf6;
    border: 1px solid #d5e2c6;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.act-option:hover {
    background: #eef4e5;
    border-color: #3d6b2c;
}

.act-option input[type="radio"] {
    margin-top: 4px;
    accent-color: #2d5523;
}

/* True/False horizontal pills */
.act-tf-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
}

.act-tf-label {
    flex: 1 1 160px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #f9fbf6;
    border: 1px solid #c5d9b2;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.act-tf-label:hover {
    background: #eef4e5;
}

.act-tf-label input[type="radio"] {
    accent-color: #2d5523;
}

/* Cloze (Rellenar huecos) */
.act-cloze-sentence {
    background: #f9fbf6;
    border: 1px solid #d5e2c6;
    border-radius: 8px;
    padding: 16px 18px;
    font-size: 1.08rem;
    line-height: 1.8;
    margin-bottom: 14px;
}

.act-cloze-input {
    display: inline-block;
    width: 170px;
    max-width: 100%;
    padding: 4px 10px;
    border: 2px solid #3d6b2c;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    color: #1e3b17;
    background: #ffffff;
    margin: 0 4px;
}

.act-cloze-input.is-valid {
    border-color: #2d5523;
    background: #e7f4e4;
}

.act-cloze-input.is-invalid {
    border-color: #b43c35;
    background: #fdf0ef;
}

/* Matching (Relacionar conceptos) */
.act-match-rows {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 14px;
}

.act-match-row {
    display: grid;
    grid-template-columns: minmax(170px, 0.85fr) 1.5fr;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    background: #f9fbf6;
    border: 1px solid #d5e2c6;
    border-radius: 8px;
}

.act-match-term {
    font-weight: 700;
    color: #2d5523;
}

.act-match-select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #8fa97c;
    border-radius: 6px;
    background: #ffffff;
    color: #242921;
    font-size: 0.95rem;
}

.act-match-row.is-valid {
    border-color: #2d5523;
    background: #e7f4e4;
}

.act-match-row.is-invalid {
    border-color: #b43c35;
    background: #fdf0ef;
}

/* Buttons & Feedback */
.act-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.act-btn {
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.94rem;
}

.act-btn-check {
    background: #2d5523;
    color: #ffffff;
    border: 1px solid #2d5523;
}

.act-btn-check:hover {
    background: #1e3b17;
}

.act-btn-secondary {
    background: #ffffff;
    color: #2d5523;
    border: 1px solid #c5d9b2;
}

.act-btn-secondary:hover {
    background: #eef4e5;
}

.act-feedback {
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    line-height: 1.5;
}

.act-feedback[hidden] {
    display: none;
}

.act-feedback.is-correct {
    background: #e7f4e4;
    border: 1px solid #8ec282;
    color: #1b4415;
}

.act-feedback.is-incorrect {
    background: #fdf0ef;
    border: 1px solid #e4a9a4;
    color: #7d231f;
}

.act-feedback.is-info {
    background: #fbf8eb;
    border: 1px solid #dfd390;
    color: #5b4d0e;
}

/* Summary score box */
.act-summary-box {
    background: linear-gradient(135deg, #f4f7ee 0%, #eef4e5 100%);
    border: 2px solid #3d6b2c;
    border-radius: 12px;
    padding: 20px 22px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.act-summary-score {
    font-size: 1.55rem;
    font-weight: 800;
    color: #2d5523;
}

@media (max-width: 767.98px) {
    .act-match-row {
        grid-template-columns: 1fr;
    }
}
