.dtsa2-question {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
}

.dtsa2-question ul {
    list-style: none;
    padding: 0;
}

.dtsa2-option {

    width: 100%;
    text-align: left;

    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;

    background: white;
    color: #222;

    cursor: pointer;

    transition: 0.2s;
}

.dtsa2-option:hover {
    background: #f3f3f3;
}

.dtsa2-option.selected:not(.correct):not(.incorrect) {

    background: #2563eb;
    border-color: #1d4ed8;
    color: white;

}
#dtsa2-correct-btn {

    padding: 14px 20px;

    background: #111827;
    color: white;

    border: none;
    border-radius: 10px;

    cursor: pointer;

    font-size: 16px;
    font-weight: bold;

    margin-top: 20px;
}

#dtsa2-correct-btn:hover {
    background: #1f2937;
}

.dtsa2-option.correct {

    background: #16a34a;
    border-color: #15803d;
    color: white;

}

.dtsa2-option.incorrect {

    background: #dc2626;
    border-color: #b91c1c;
    color: white;

}

#dtsa2-results {

    margin-top: 30px;

    font-size: 22px;
    font-weight: bold;

}
.dtsa2-option:disabled {

    cursor: default;

}
.dtsa2-actions {

    display: flex;
    gap: 15px;

    margin-top: 20px;

}

#dtsa2-reload-btn {

    padding: 14px 20px;

    background: #2563eb;
    color: white;

    border: none;
    border-radius: 10px;

    cursor: pointer;

    font-size: 16px;
    font-weight: bold;

}

#dtsa2-reload-btn:hover {
    background: #1d4ed8;
}
.dtsa2-explanation {

    display: none;

    margin-top: 15px;
    padding: 15px;

    background: #f3f4f6;

    border-left: 4px solid #2563eb;

    border-radius: 8px;

    line-height: 1.5;

}
.dtsa2-option.unanswered-correct {

    background: #facc15;
    border-color: #eab308;
    color: #111827;

}
.dtsa2-topbar {

    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 20px;

    margin-bottom: 30px;

    flex-wrap: wrap;

}

.dtsa2-amount-selector {

    display: flex;
    gap: 10px;

    flex-wrap: wrap;

}

.dtsa2-amount-btn {

    display: inline-block !important;

    padding: 10px 18px !important;

    border: none !important;
    border-radius: 10px !important;

    background: #334155 !important;

    color: #e5e7eb !important;

    cursor: pointer !important;

    font-weight: 600 !important;

    transition: all 0.2s ease !important;

    opacity: 0.72;

}

/* 10 preguntas */





/* 20 preguntas */



/* 40 preguntas */



.dtsa2-amount-btn:hover {

    background: #f3f4f6;

}
.dtsa2-topbar h2 {

    color: #1e293b;

    margin: 0;

    font-size: 32px;

}
.dtsa2-amount-btn.active {

    opacity: 1;

    background: #1d4ed8 !important;

    border-bottom: 4px solid #14b8a6 !important;

    color: white !important;

}
/* =========================
   CENTRO DE TESTS
========================= */

.dtsa2-center {

    max-width: 1000px;

    margin: 50px auto;

    padding: 30px;

}

.dtsa2-center-header {

    text-align: center;

    margin-bottom: 40px;

}

.dtsa2-center-header h1 {

    font-size: 42px;

    color: #1e293b;

    margin-bottom: 15px;

}

.dtsa2-center-header p {

    font-size: 18px;

    color: #64748b;

    max-width: 700px;

    margin: 0 auto;

    line-height: 1.6;

}

/* GRID TEMAS */

.dtsa2-topic-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));

    gap: 20px;

    margin-bottom: 40px;

}

.dtsa2-topic-card {

    background: white;

    border-radius: 18px;

    padding: 30px 20px;

    text-align: center;

    cursor: pointer;

    border: 2px solid transparent;

    box-shadow: 0 4px 14px rgba(0,0,0,0.06);

    transition: all 0.2s ease;

}

.dtsa2-topic-card:hover {

    transform: translateY(-4px);

    box-shadow: 0 8px 24px rgba(0,0,0,0.10);

}

.dtsa2-topic-card span {

    font-size: 42px;

    display: block;

    margin-bottom: 15px;

}

.dtsa2-topic-card h3 {

    font-size: 20px;

    color: #1e293b;

    margin: 0;

}

/* TARJETA ACTIVA */

.dtsa2-topic-card.active {

    border: 3px solid #14b8a6;

    background: #dffaf5;

    transform: translateY(-4px);

    box-shadow: 0 10px 25px rgba(20,184,166,0.25);

}

/* PARTE INFERIOR */

.dtsa2-center-bottom {

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 20px;

    flex-wrap: wrap;

}

/* BOTONES CANTIDAD */

.dtsa2-center-amounts {

    display: flex;

    gap: 12px;

}

.dtsa2-center-amount {

    padding: 12px 18px;

    border: none;

    border-radius: 10px;

    background: #334155;

    color: white;

    font-weight: bold;

    cursor: pointer;

    opacity: 0.7;

    transition: 0.2s;

}

.dtsa2-center-amount.active {

    opacity: 1;

    background: #1d4ed8;

    border-bottom: 4px solid #14b8a6;

}

/* BOTON PRINCIPAL */

#dtsa2-start-test {

    padding: 16px 28px;

    border: none;

    border-radius: 14px;

    background: #111827;

    color: white;

    font-size: 17px;

    font-weight: bold;

    cursor: pointer;

    transition: 0.2s;

}

#dtsa2-start-test:hover {

    background: #1f2937;

    transform: translateY(-2px);

}

/* RESPONSIVE */

@media (max-width: 768px) {

    .dtsa2-center {

        padding: 20px;

    }

    .dtsa2-center-header h1 {

        font-size: 34px;

    }

    .dtsa2-center-bottom {

        flex-direction: column;

        align-items: stretch;

    }

    #dtsa2-start-test {

        width: 100%;

    }

    .dtsa2-center-amounts {

        width: 100%;

        justify-content: center;

    }

}
/* =========================
   RESULTADOS TEST
========================= */

.dtsa2-result-card {

    margin-top: 40px;

    padding: 35px;

    border-radius: 22px;

    background: white;

    box-shadow: 0 8px 28px rgba(0,0,0,0.08);

    text-align: center;

}

.dtsa2-result-status {

    font-size: 28px;

    font-weight: 800;

    margin-bottom: 18px;

}

.dtsa2-result-status.pass {

    color: #16a34a;

}

.dtsa2-result-status.fail {

    color: #dc2626;

}

.dtsa2-result-score {

    font-size: 42px;

    font-weight: bold;

    color: #1e293b;

    margin-bottom: 12px;

}

.dtsa2-result-percent {

    font-size: 24px;

    color: #64748b;

}
.dtsa2-perfect-message {

    margin-top: 25px;

    padding: 18px;

    border-radius: 14px;

    background: #ecfeff;

    color: #0f766e;

    font-size: 18px;

    font-weight: 700;

}
.dtsa2-result-actions {

    display: flex;

    gap: 15px;

    justify-content: center;

    flex-wrap: wrap;

    margin-top: 30px;

}

.dtsa2-result-btn {

    padding: 14px 22px;

    border: none;

    border-radius: 12px;

    background: #1d4ed8;

    color: white;

    font-weight: bold;

    cursor: pointer;

    transition: 0.2s;

}

.dtsa2-result-btn:hover {

    transform: translateY(-2px);

}

.dtsa2-result-btn.secondary {

    background: #334155;

}
/* =========================
   TEMPORIZADOR
========================= */

#dtsa2-timer {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding: 12px 18px;

    border-radius: 12px;

    background: #111827;

    color: white;

    font-size: 20px;

    font-weight: bold;

    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  
}
#dtsa2-timer.warning {

    background: #f59e0b;

}

#dtsa2-timer.danger {

    background: #dc2626;

}
.dtsa2-simulacro-title {

    font-size: 26px;

    font-weight: 800;

    color: #0f172a;

    margin-bottom: 20px;

}
.dtsa2-back-btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 12px 18px;

    margin-bottom: 20px;

    border-radius: 12px;

    background: #334155;

    color: white;

    font-weight: 600;

    text-decoration: none;

    transition: 0.2s;

}

.dtsa2-back-btn:hover {

    background: #1e293b;

    transform: translateY(-1px);

}
.dtsa2-start-sim-btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 16px 26px;

    margin-top: 25px;

    border-radius: 14px;

    background: #dc2626;

    color: white;

    font-size: 18px;

    font-weight: 700;

    text-decoration: none;

    transition: 0.2s;

}

.dtsa2-start-sim-btn:hover {

    background: #b91c1c;

    transform: translateY(-2px);

}
.dtsa2-practice-note {

    margin-top: 18px;

    padding: 14px 18px;

    border-radius: 12px;

    background: #eff6ff;

    color: #1e3a8a;

    font-size: 15px;

    line-height: 1.5;

    font-weight: 500;

}
.dtsa2-course-navigation {

    margin-top: 60px;

    padding: 35px 25px;

    border-radius: 20px;

    background: #f8fafc;

    text-align: center;

}

.dtsa2-course-navigation h3 {

    margin-bottom: 25px;

    font-size: 24px;

}

.dtsa2-course-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));

    gap: 15px;

    margin-bottom: 30px;

}

.dtsa2-course-grid a {

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 14px 18px;

    border-radius: 12px;

    background: white;

    border: 1px solid #e2e8f0;

    color: #1e293b;

    text-decoration: none;

    font-weight: 600;

    transition: 0.2s;

}

.dtsa2-course-grid a:hover {

    background: #2563eb;

    color: white;

    transform: translateY(-2px);

}

.dtsa2-course-tests-link a {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 14px 24px;

    border-radius: 12px;

    background: #2563eb;

    color: white;

    font-weight: 700;

    text-decoration: none;

}

.dtsa2-course-tests-link a:hover {

    background: #1d4ed8;

}
.dtsa2-timer-wrapper {

    position: fixed;

    top: 200px;

    right: 20px;

    z-index: 9999;

}
@media (max-width: 768px) {

    .dtsa2-timer-wrapper {

        top: 80px;

        right: 10px;

    }

}
