/* ==========================================================================
   Simulador OPE SESCAM — hoja de estilo única (style-v31.css)
   Organizada por capas: tokens → reset → layout → componentes → responsive.
   Reglas: sin selectores duplicados, sin valores mágicos repetidos, sin
   !important salvo para pisar un estado concreto, foco visible y motion
   respetado.
   ========================================================================== */

/* ── 1. TOKENS ─────────────────────────────────────────────────────────── */
:root {
    /* Controles nativos en oscuro coherente con el tema */
    color-scheme: dark;

    /* Marca / acento turquesa brillante */
    --primary: #38bdf8;
    --primary-light: #7dd3fc;
    --secondary: #0288D1;
    --accent: #38bdf8;
    --primary-rgb: 56, 189, 248;
    --accent-rgb: 56, 189, 248;

    /* Fondo de app azul-gris muy oscuro + texto claro */
    --bg-gradient: #1a1e2e;
    --app-text: #ffffff;
    --app-text-light: #cbd5e1;

    /* Contenedores oscuros (ligeramente más claros que el fondo) */
    --card-bg: #242a3a;
    --text: #ffffff;
    --text-light: #cbd5e1;
    --text-muted: #94a3b8;

    /* Estado (vivos) */
    --success: #22c55e;
    --error: #ef4444;
    --error-dark: #f87171;
    --warning: #facc15;

    /* Bordes sobre fondo oscuro */
    --border-soft: rgba(255, 255, 255, 0.10);
    --border: rgba(255, 255, 255, 0.18);
    --border-strong: rgba(255, 255, 255, 0.30);

    /* Radios */
    --radius: 16px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-pill: 999px;

    /* Sombras y elevación */
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.40);
    --shadow-overlay: 0 10px 30px rgba(0, 0, 0, 0.50);
}

/* ── 2. RESET Y BASE ───────────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    width: 100%;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg-gradient);
    background-attachment: fixed;
    background-size: cover;
    color: var(--app-text);
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100vw;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 900px;
    padding: 20px;
    margin: 0 auto;
    background: transparent;
    position: relative;
    z-index: 1;
}

/* ── 3. VISTAS (SPA) ───────────────────────────────────────────────────── */
.view {
    display: none;
    animation: fadeIn 0.3s ease;
    background: transparent;
}

.view.active {
    display: block;
}

.hidden {
    display: none !important;
}

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

/* ── 4. TIPOGRAFÍA ─────────────────────────────────────────────────────── */
h1 {
    font-size: 2rem;
    text-align: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.section-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}

.subtitle {
    text-align: center;
    color: var(--app-text-light);
    margin: 0 0 1.5rem;
    font-size: 1rem;
}

/* Frase motivacional aleatoria */
.motivational {
    text-align: center;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0 0 0.75rem;
    min-height: 1.4em;
}

/* ── 5. LAYOUT DE REJILLA ──────────────────────────────────────────────── */
.menu-grid,
.topics-wrapper,
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    align-items: stretch;
}

/* ── 6. TARJETAS DE MENÚ Y TEMAS ───────────────────────────────────────── */
.btn-menu,
.btn-topic,
.btn-mode {
    position: relative;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: left;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    color: var(--text);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-card);
    background: var(--card-bg);
    overflow: visible;
}

/* Degradado de brillo superior compartido */
.btn-menu::before,
.btn-topic::before,
.btn-mode::before,
.card::before,
.btn-option::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0) 50%);
    pointer-events: none;
    border-radius: inherit;
}

.btn-menu {
    border-top: 4px solid var(--accent);
    padding: 1.5rem;
}

.btn-topic {
    border-left: 6px solid var(--primary);
    border-top: 4px solid var(--accent);
    padding: 1.5rem;
}

.btn-menu strong,
.btn-topic strong {
    font-weight: 800;
    margin-bottom: 0.5rem;
    display: block;
}

.btn-menu strong { font-size: 1.25rem; }
.btn-topic strong { font-size: 1.1rem; }

.btn-menu .badge,
.btn-menu small {
    margin-top: auto;
    align-self: flex-start;
}

.btn-menu:hover,
.btn-topic:hover,
.btn-mode:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    background: #2c3346;
    box-shadow: 0 15px 30px rgba(var(--primary-rgb), 0.28), 0 4px 12px rgba(0, 0, 0, 0.30);
}

.btn-topic:hover {
    border-left-color: var(--secondary);
    border-top-color: var(--secondary);
}

.btn-menu.special {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
}

.badge {
    background: rgba(255, 255, 255, 0.12);
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-score {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.btn-menu.special .badge {
    background: rgba(255, 255, 255, 0.2);
}

.btn-menu.special-red {
    background: linear-gradient(135deg, #ff5252, #c62828);
    color: white;
}

.btn-menu.special-red:hover {
    box-shadow: 0 6px 22px rgba(198, 40, 40, 0.4);
}

.btn-topic .topic-title-sub {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    display: block;
}

.btn-topic small {
    margin-top: auto;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    display: block;
}

/* ── 7. CABECERA DE VISTA ──────────────────────────────────────────────── */
.view-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--primary-light);
}

.view-header h2 {
    color: var(--app-text);
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0;
}

.btn-icon {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ── 8. CONFIGURACIÓN (modo aleatorio) ─────────────────────────────────── */
.config-container-premium {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.config-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.segmented-control {
    display: flex;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.08);
    padding: 4px;
    border-radius: var(--radius-md);
    gap: 4px;
}

.segment {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-light);
}

.segment.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
}

.setting-row {
    margin-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #2c3346;
    border-radius: var(--radius-md);
}

.timer-config-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-control-premium {
    width: 100%;
    padding: 10px 40px 10px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background-color: #ffffff;
    color: #111827;
    font-size: 1rem;
    font-weight: 600;
    color-scheme: light; /* el desplegable nativo combine con el select blanco */
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2338bdf8' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px 8px;
}

.source-grid-premium {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.source-card {
    background: var(--card-bg);
    color: var(--text);
    padding: 15px;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.5;
    transform: scale(0.95);
}

.source-card.active {
    opacity: 1;
    transform: scale(1);
    border-color: var(--primary);
    box-shadow: 0 8px 16px rgba(var(--primary-rgb), 0.1);
}

.source-icon { font-size: 1.8rem; }
.source-name { font-size: 0.9rem; font-weight: 700; }

/* ── 9. BOTONES ────────────────────────────────────────────────────────── */
.btn-primary-premium {
    background: #2563eb;
    color: white;
    border: none;
    padding: 20px;
    border-radius: var(--radius-lg);
    width: 100%;
    font-size: 1.2rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: none;
    transition: background 0.2s ease;
}

.btn-primary-premium:hover {
    background: #1d4ed8;
}

.btn-primary {
    background: #2563eb;
    color: white;
    border: none;
    padding: 18px 32px;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s ease;
    box-shadow: none;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 1px solid var(--border);
    padding: 10px 20px;
    border-radius: var(--radius);
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
}

.btn-small {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    border: 1px solid var(--border);
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
}

.btn-back {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--app-text);
    padding: 0 10px;
    transition: transform 0.2s;
}

.btn-back:hover {
    transform: translateX(-3px);
    color: var(--primary);
}

/* ── 10. JUEGO: CABECERA Y CRONÓMETRO ──────────────────────────────────── */
.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.counters {
    display: flex;
    align-items: center;
}

.controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* El botón "Siguiente" ocupa el espacio restante junto a "Anterior" */
.controls .btn-primary {
    width: auto;
    flex: 1;
}

.game-timer {
    background: linear-gradient(135deg, #e53935, #b71c1c);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 800;
    padding: 5px 11px;
    border-radius: var(--radius-sm);
    letter-spacing: 0.04em;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(229, 57, 53, 0.4);
    transition: background 0.5s;
    flex-shrink: 0;
    margin: 0 10px;
}

.game-timer.warning {
    background: linear-gradient(135deg, #ff6f00, #e65100);
    box-shadow: 0 2px 8px rgba(255, 111, 0, 0.5);
    animation: timerPulse 1.2s ease-in-out infinite;
}

.game-timer.urgent {
    background: linear-gradient(135deg, #c62828, #7f0000);
    box-shadow: 0 2px 8px rgba(198, 40, 40, 0.7);
    animation: timerBlink 0.5s ease-in-out infinite;
}

@keyframes timerPulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.06); }
}

@keyframes timerBlink {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.35; }
}

.progress-container {
    flex-grow: 1;
    margin: 0 15px;
    background: rgba(255, 255, 255, 0.2);
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--secondary);
    width: 0%;
    transition: width 0.3s;
}

/* ── 11. TARJETAS Y PREGUNTA ───────────────────────────────────────────── */
.card {
    background: var(--card-bg);
    color: var(--text);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-card);
    margin-bottom: 24px;
    border: 1px solid var(--border);
    border-top: 5px solid var(--accent);
    position: relative;
    overflow: hidden;
}

.card h2,
.card h3 {
    color: var(--text);
    font-weight: 800;
}

.card p {
    color: var(--text-light);
    line-height: 1.6;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 5px;
}

.question-card {
    border-top: 5px solid var(--primary);
}

.tag {
    background: rgba(56, 189, 248, 0.15);
    color: var(--primary-light);
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

#pregunta-texto {
    font-size: 1.25rem;
    line-height: 1.5;
    margin: 20px 0 30px 0;
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-option {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 18px 24px;
    border-radius: 14px;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text);
    width: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.btn-option:hover {
    border-color: var(--primary);
    background: #f3f4f6;
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(var(--primary-rgb), 0.25);
}

.btn-option:disabled {
    cursor: default;
    pointer-events: none;
    opacity: 0.9;
}

.btn-option.correct {
    background: rgba(34, 197, 94, 0.20);
    border-color: var(--success);
    color: #bbf7d0;
    font-weight: bold;
    box-shadow: 0 0 0 1px var(--success) inset;
}

.btn-option.incorrect {
    background: linear-gradient(135deg, #dc2626 0%, var(--error-dark) 100%);
    border-color: #991b1b;
    color: white;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3), inset 0 2px 4px rgba(255, 255, 255, 0.2);
}

.btn-option.exam-selected {
    border: 2px solid var(--primary) !important;
    background: rgba(var(--accent-rgb), 0.10) !important;
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.15);
    font-weight: 700;
}

/* Opción marcada en modo examen (la alterna game.js) */
.btn-option.selected {
    border: 2px solid var(--primary);
    background: rgba(var(--accent-rgb), 0.12);
    font-weight: 700;
}

.feedback {
    margin-top: 20px;
    padding: 15px;
    background: rgba(250, 204, 21, 0.15);
    border-radius: var(--radius-md);
    border-left: 5px solid var(--warning);
}

.feedback.correct {
    background: rgba(34, 197, 94, 0.15);
    border-left-color: var(--success);
}

.feedback.incorrect {
    background: rgba(239, 68, 68, 0.15);
    border-left-color: var(--error);
}

.score-circle {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary);
    margin: 20px 0;
}

.score-circle .total {
    font-size: 1.5rem;
    color: var(--primary);
}

/* ── 12. SELECCIÓN DE MODO ─────────────────────────────────────────────── */
.mode-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 25px;
}

.btn-mode {
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 20px;
    align-items: center;
    gap: 10px;
    overflow: hidden;
}

.btn-mode .icon { font-size: 2.5rem; }

.btn-mode strong {
    font-size: 1.1rem;
    color: var(--primary);
}

.btn-mode small {
    color: var(--text-light);
    font-size: 0.85rem;
}

/* ── 13. TABLA DE PROGRESO ─────────────────────────────────────────────── */
.progress-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.progress-table th,
.progress-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-soft);
}

.progress-table th {
    color: var(--primary);
    font-weight: 600;
}

.progress-table tr:last-child td {
    border-bottom: none;
}

.score-good { color: var(--success); font-weight: bold; }
.score-bad  { color: var(--error);   font-weight: bold; }

/* ── 14. PROGRESO GLOBAL ───────────────────────────────────────────────── */
.global-progress-wrapper {
    margin-top: 10px;
    width: 100%;
}

.global-progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-light);
}

.global-progress-bar-bg {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    overflow: hidden;
}

.global-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-light), var(--primary));
    border-radius: 10px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── 15. OVERLAY DE ACCESO ─────────────────────────────────────────────── */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-box {
    background: var(--card-bg);
    color: var(--text);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-overlay);
    text-align: center;
    width: 90%;
    max-width: 400px;
}

.login-box input {
    width: calc(100% - 24px);
    padding: 12px;
    margin: 20px 0;
    font-size: 1.1rem;
    color: var(--text);
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color 0.2s;
}

.login-box input:focus {
    border-color: var(--primary);
}

/* ── 16. MODAL Y NAVEGADOR DE PREGUNTAS ────────────────────────────────── */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background: var(--card-bg);
    color: var(--text);
    border-radius: var(--radius);
    padding: 20px;
    width: 100%;
    max-width: 600px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-overlay);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid var(--border-soft);
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.modal-header .admin-btn {
    margin-left: auto;
}

.table-container {
    overflow-y: auto;
    overflow-x: auto;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
}

.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.grid-content {
    background: var(--card-bg);
    color: var(--text);
    padding: 25px;
    border-radius: var(--radius);
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.grid-buttons-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.btn-grid-number {
    aspect-ratio: 1/1;
    border: 2px solid var(--border);
    background: var(--card-bg);
    color: var(--text);
    border-radius: var(--radius-sm);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.btn-grid-number:hover {
    border-color: var(--primary);
    background: #f0f0ff;
}

.btn-grid-number.current {
    box-shadow: 0 0 0 3px var(--secondary);
    transform: scale(1.1);
    z-index: 1;
}

.btn-grid-number.answered {
    background: var(--primary-light);
    color: white;
    border-color: var(--primary-light);
}

/* ── 17. VISTA COMPLETA DEL EXAMEN ─────────────────────────────────────── */
.full-exam-view {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding-bottom: 2rem;
    overflow-x: hidden;
    width: 100%;
    animation: fadeIn 0.3s ease;
}

.full-view-question-card {
    background: var(--card-bg);
    color: var(--text);
    border-radius: var(--radius);
    padding: 16px;
    border: 1px solid var(--border);
    border-left: 5px solid var(--primary);
    border-top: 4px solid var(--accent);
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.full-view-question-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0) 50%);
    pointer-events: none;
    border-radius: inherit;
}

.full-view-q-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.full-view-q-num {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-weight: 800;
    font-size: 0.8rem;
    width: 26px;
    height: 26px;
    min-width: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(var(--primary-rgb), 0.3);
}

.full-view-q-text {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text);
    margin: 0 0 14px 0;
    word-break: break-word;
    overflow-wrap: break-word;
}

.full-view-opts {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.full-view-opt {
    font-size: 0.95rem;
    min-height: 48px;
    padding: 12px 14px;
    word-break: break-word;
    overflow-wrap: break-word;
    align-items: flex-start;
    text-align: left;
    white-space: normal;
}

.full-view-finish-btn {
    margin-top: 0.5rem;
    min-height: 52px;
    background: #2563eb;
    box-shadow: none;
    font-size: 1.1rem;
    border-radius: var(--radius-lg);
}

.full-view-finish-btn:hover {
    background: #1d4ed8;
}

#btn-toggle-fullview {
    min-width: 44px;
    min-height: 44px;
    padding: 2px 8px;
    font-size: 1.2rem;
    margin-right: 10px;
    flex-shrink: 0;
}

.btn-small.active-view-btn {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.4);
}

/* ── 18. RÉCORDS ───────────────────────────────────────────────────────── */
.badge-record {
    /* En flujo (no absolute): se apila debajo del contenido y nunca pisa la barra */
    position: static;
    align-self: flex-end;
    margin-top: 8px;
    background: rgba(34, 197, 94, 0.20);
    color: #bbf7d0;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    pointer-events: none;
    border: 1px solid rgba(34, 197, 94, 0.4);
    display: flex;
    align-items: center;
    gap: 4px;
    animation: badgeAppear 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    white-space: nowrap;
}

/* Colores del feedback motivacional (los aplica game.js por clase).
   Tonos vivos para que resalten sobre la tarjeta blanca. */
.texto-exito-teal { color: var(--success); }
.texto-bien-teal { color: var(--primary); }
.texto-aviso-naranja { color: var(--warning); }
.texto-peligro-rojo { color: var(--error); }

.badge-record.pass {
    background: rgba(34, 197, 94, 0.20);
    color: #bbf7d0;
    border-color: rgba(34, 197, 94, 0.4);
}

.badge-record.fail {
    background: rgba(239, 68, 68, 0.20);
    color: #fecaca;
    border-color: rgba(239, 68, 68, 0.4);
}

@keyframes badgeAppear {
    from { opacity: 0; transform: scale(0.8) translateY(5px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.card-has-record {
    border-left: 5px solid var(--success) !important;
    transition: border-left 0.3s ease;
}

/* ── 19. SELECTS EN LÍNEA (config del simulacro) ───────────────────────── */
.select-inline {
    width: auto;
    min-width: 120px;
}

/* ── 20. UTILIDADES Y VARIANTES ────────────────────────────────────────── */
.text-center { text-align: center; }
.text-left { text-align: left; }
.m-0 { margin: 0; }
.mt-40 { margin-top: 40px; }
.table-scroll { overflow-x: auto; }

.footer-note {
    text-align: center;
    margin-top: 15px;
    color: var(--app-text-light);
    font-size: 0.8rem;
}

.footnote {
    text-align: center;
    color: var(--app-text-light);
    margin-top: 20px;
    font-size: 0.8rem;
}

.exams-subtitle {
    text-align: center;
    color: var(--app-text);
    margin-top: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 10px;
}

.field-label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
}

/* Campo de contraseña con botón de ver/ocultar */
.password-wrap {
    position: relative;
    margin: 20px 0;
}

.password-wrap input {
    width: 100%;
    margin: 0;
    padding-right: 44px;
}

.password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    padding: 6px;
    color: var(--text-light);
}

/* Fila "Recordar usuario" */
.remember-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 4px 0 18px;
    cursor: pointer;
}

.remember-row input {
    width: auto;
    margin: 0;
    accent-color: #2563eb;
}

.view-header-flat {
    position: relative;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 5px;
    border: none;
    padding-bottom: 0;
    min-height: 50px;
}

/* Flecha + título en una fila que respeta espacios (nunca se pisan) */
.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.setting-title {
    display: block;
    color: var(--primary);
}

.setting-hint {
    color: var(--text-light);
}

.results-actions {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
}

.results-review-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.results-review-row .btn-action-outline {
    width: auto;
    flex: 1 1 150px;
}

/* Jerarquía de acciones de resultados: principal → outline → enlace */
.btn-action-primary {
    width: 100%;
    background: #2563eb;
    color: #ffffff;
    border: none;
    padding: 16px 20px;
    border-radius: var(--radius);
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: none;
    transition: background 0.2s ease;
}

.btn-action-primary:hover {
    background: #1d4ed8;
}

.btn-action-outline {
    width: 100%;
    background: transparent;
    color: #60a5fa;
    border: 2px solid #3b82f6;
    padding: 14px 20px;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.btn-action-outline:hover {
    background: rgba(59, 130, 246, 0.12);
    color: #93c5fd;
}

.btn-action-link {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    padding: 6px;
    text-decoration: none;
    box-shadow: none;
}

.btn-action-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

.kbd-hint {
    text-align: center;
    color: var(--app-text-light);
    font-size: 0.8rem;
    margin-top: 1rem;
}

.kbd-hint kbd {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    padding: 0 5px;
    font-family: inherit;
    font-size: 0.75rem;
}

/* En pantallas táctiles no hay teclado físico: ocultar la leyenda */
@media (hover: none) {
    .kbd-hint { display: none; }
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translate(-50%, 20px);
    background: rgba(30, 41, 59, 0.95);
    color: white;
    padding: 10px 18px;
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 9500;
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

.topic-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.topic-stat {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
}

.topic-stat .ts-name {
    flex: 0 0 150px;
    font-weight: 600;
    font-size: 0.8rem;
    line-height: 1.2;
}

.topic-stat .ts-bar-bg {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 5px;
    overflow: hidden;
}

.topic-stat .ts-bar {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-light), var(--primary));
}

.topic-stat .ts-pct {
    flex: 0 0 42px;
    text-align: right;
    color: var(--text-light);
}

.failures-list {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.failure-item {
    font-size: 0.85rem;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    background: rgba(239, 68, 68, 0.08);
    border-left: 3px solid var(--error);
}

.failure-item .fi-meta {
    color: var(--text-light);
    font-size: 0.75rem;
}

.link-inline {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font: inherit;
    text-decoration: underline;
    padding: 0;
}

/* Resumen de actividad (Mi Progreso) */
.stats-summary {
    margin-top: 10px;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 12px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
}

.stat-num {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-lbl {
    font-size: 0.75rem;
    color: var(--text-light);
    text-align: center;
}

.stat-chart {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 70px;
    margin-top: 16px;
}

.stat-bar {
    flex: 1;
    background: linear-gradient(180deg, var(--primary-light), var(--primary));
    border-radius: 4px 4px 0 0;
    min-height: 8px;
}

.results-breakdown {
    margin-top: 20px;
    text-align: left;
}

.results-breakdown h4 {
    margin: 0 0 10px;
}

.rb-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px solid var(--border-soft);
    font-size: 0.9rem;
}

.rb-name {
    font-weight: 600;
}

.onboarding-list {
    text-align: left;
    line-height: 1.7;
    padding-left: 1.2rem;
    margin: 0 0 1rem;
}

/* Panel de administración */
.admin-sep td {
    font-weight: bold;
    text-align: center;
    color: var(--primary);
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
}

.admin-count {
    text-align: center;
    font-weight: bold;
}

.admin-log {
    font-size: 0.8rem;
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.admin-btn {
    background: rgba(255, 255, 255, 0.10);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 5px 9px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.admin-btn:hover {
    background: rgba(255, 255, 255, 0.18);
}

/* Botón "marcar como dudosa" en la tarjeta de pregunta */
.dudosa-btn {
    margin-left: auto;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    color: var(--text-light);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 3px 10px;
    cursor: pointer;
    white-space: nowrap;
}

.dudosa-btn.marked {
    background: rgba(250, 204, 21, 0.20);
    border-color: var(--warning);
    color: #fde68a;
}

/* Chip de racha (acabado premium, "fuego vivo") */
.streak-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(to right, rgba(249, 115, 22, 0.12), rgba(239, 68, 68, 0.10));
    color: #fb923c;
    border: 1px solid rgba(249, 115, 22, 0.30);
    border-radius: var(--radius-pill);
    padding: 4px 10px;
    font-size: 0.85rem;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.20);
}

.streak-flame {
    width: 15px;
    height: 15px;
    animation: flamePulse 1.8s ease-in-out infinite;
}

@keyframes flamePulse {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50%      { transform: scale(1.12); opacity: 1; }
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

/* Anillo de meta diaria */
.daily-goal {
    position: relative;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
}

.daily-goal svg {
    display: block;
    transform: rotate(-90deg);
}

.daily-bg {
    fill: none;
    stroke: var(--border);
    stroke-width: 3;
}

.daily-fill {
    fill: none;
    stroke: var(--primary);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 94.25;
    stroke-dashoffset: 94.25;
    transition: stroke-dashoffset 0.5s ease;
}

.daily-count {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--app-text);
}

:root[data-theme="light"] .streak-chip {
    background: linear-gradient(to right, rgba(249, 115, 22, 0.12), rgba(239, 68, 68, 0.12));
    color: #c2410c;
    border-color: rgba(249, 115, 22, 0.35);
}

/* Buscador de preguntas */
#search-input {
    background-image: none;
    padding-right: 14px;
}

.search-results {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 60vh;
    overflow-y: auto;
}

.search-item {
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
}

.search-opts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.search-opt {
    font-size: 0.78rem;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-light);
}

.search-opt.ok {
    background: rgba(34, 197, 94, 0.20);
    color: #bbf7d0;
    font-weight: 600;
}

:root[data-theme="light"] .search-opt {
    background: rgba(0, 0, 0, 0.05);
}

:root[data-theme="light"] .search-opt.ok {
    background: #dcfce7;
    color: #166534;
}

.exam-breakdown {
    background: rgba(255, 255, 255, 0.04);
    padding: 15px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.exam-breakdown h4 {
    margin-top: 0;
}

.exam-breakdown ul {
    list-style: none;
    padding: 0;
    margin: 0;
    line-height: 1.8;
}

.exam-breakdown .eb-ok {
    color: #4ade80;
}

.exam-breakdown .eb-err {
    color: #f87171;
}

.exam-breakdown .eb-blank {
    color: var(--text-muted);
}

.exam-breakdown .eb-total {
    margin-top: 8px;
    border-top: 1px solid var(--border-strong);
    padding-top: 6px;
    color: var(--text);
    font-weight: 600;
}

.exam-breakdown .eb-final {
    font-size: 1.1em;
    color: var(--primary);
}

.exam-breakdown .eb-note {
    font-size: 0.85em;
    color: var(--text-light);
    margin: 8px 0 0;
}

/* Overlay de acceso */
#access-title { color: var(--primary); }
#access-msg { font-weight: bold; }
#access-retry { margin-top: 1.2rem; }

#access-code-input {
    flex: 1;
    min-width: 140px;
    padding: 0.55rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-strong);
    font-size: 1rem;
    text-align: center;
}

#btn-access-retry { padding: 0.55rem 1.2rem; }

.spinner {
    width: 34px;
    height: 34px;
    margin: 18px auto 0;
    border: 3px solid rgba(var(--primary-rgb), 0.25);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

#licencia-activa {
    color: #4CAF50;
    font-weight: bold;
    display: none;
    margin-top: 5px;
}

/* Aviso de carga incompleta */
#data-warning {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9000;
    background: #fff3cd;
    color: #7a4b00;
    border-bottom: 2px solid #ffc107;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Variantes de botones y elementos con un único uso */
#admin-modal-title { margin: 0; font-size: 1.5rem; color: var(--primary); }
#btn-admin-panel { margin-top: 40px; width: 100%; font-size: 0.9rem; opacity: 0.8; }
#btn-failures { grid-column: 1 / -1; }
#btn-back-menu { flex-shrink: 0; }
#btn-clear-history { margin-top: 15px; background: #ffeba7; color: #555; }
#btn-clear-records { margin-top: 15px; background: #ffcdd2; color: #c62828; }
#btn-show-grid { margin-right: 6px; padding: 2px 8px; font-size: 1.2rem; }
#btn-close-grid { margin-top: 20px; }
#mode-tag { background: rgba(34, 197, 94, 0.20); color: #bbf7d0; }
#resultado-motivacional { margin: 20px 0; padding: 15px; border-radius: 10px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border-soft); }
#resultado-porcentaje { font-size: 2.5rem; margin: 0; }
#resultado-texto { font-size: 1.1rem; font-weight: bold; margin-top: 10px; }
#exam-feedback-container { text-align: left; margin-top: 20px; }

#btn-clear-failures-header {
    background-color: #f44336;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    padding: 4px 8px;
    margin-left: 10px;
    font-weight: bold;
    border: 1px solid #d32f2f;
    cursor: pointer;
}


/* ── 21. RESPONSIVE ────────────────────────────────────────────────────── */
@media (min-width: 540px) {
    .full-view-question-card { padding: 22px 24px; }
    .full-view-opt { font-size: 1rem; padding: 13px 18px; }
    .full-view-q-text { font-size: 1.05rem; }
}

@media (min-width: 768px) {
    .menu-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .mode-grid {
        grid-template-columns: 1fr;
    }

    /* Cabecera del test: se envuelve y la barra de progreso ocupa su propia línea */
    .game-header {
        flex-wrap: wrap;
        row-gap: 8px;
    }

    .progress-container {
        order: 20;
        flex-basis: 100%;
        margin: 0;
    }

    .counters {
        margin-left: auto;
    }

    /* Los ajustes del simulacro se apilan */
    .setting-row {
        flex-wrap: wrap;
    }

    .setting-row .select-inline {
        width: 100%;
    }

    .container {
        padding: 14px;
    }

    /* Los botones de resultados ocupan todo el ancho */
    .results-review-row {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }

    .header-left h1 {
        font-size: 1.25rem;
    }

    .card {
        padding: 20px;
    }

    #resultado-porcentaje {
        font-size: 2rem;
    }
}

@media (max-width: 400px) {
    .btn-menu strong,
    .btn-topic strong {
        font-size: 1.1rem;
    }

    .badge-record {
        font-size: 0.7rem;
        padding: 2px 6px;
    }

    .game-timer {
        font-size: 0.85rem;
        margin: 0 6px;
    }
}

/* ── 22. ACCESIBILIDAD ─────────────────────────────────────────────────── */
/* Foco visible para navegación por teclado (solo cuando no se usa el ratón) */
:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

button:focus-visible,
input:focus-visible,
[role="button"]:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

/* Respeta a quien pide menos movimiento */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

    .view,
    .full-exam-view {
        animation: none;
    }

    .game-timer.warning,
    .game-timer.urgent {
        animation: none;
    }
}

/* ── 24. TEMA CLARO (opcional, botón "🌓 Tema") ────────────────────────── */
:root[data-theme="light"] {
    color-scheme: light;
    --primary: #0369a1;
    --primary-light: #38bdf8;
    --secondary: #0284c7;
    --accent: #0369a1;
    --primary-rgb: 3, 105, 161;
    --accent-rgb: 3, 105, 161;

    --bg-gradient: linear-gradient(135deg, #eef2f7 0%, #dbe4ee 100%);
    --app-text: #0f172a;
    --app-text-light: #475569;

    --card-bg: #ffffff;
    --text: #111827;
    --text-light: #374151;
    --text-muted: #6b7280;

    --success: #16a34a;
    --error: #dc2626;
    --error-dark: #b91c1c;
    --warning: #b45309;

    --border-soft: #e5e7eb;
    --border: #d1d5db;
    --border-strong: #9ca3af;

    --shadow-card: 0 10px 30px rgba(2, 8, 20, 0.12);
    --shadow-overlay: 0 10px 30px rgba(2, 8, 20, 0.18);
}

/* Superficies que en oscuro usan blanco translúcido → gris claro en modo claro */
:root[data-theme="light"] .tag {
    background: #e0f2fe;
    color: #0369a1;
}

:root[data-theme="light"] .badge,
:root[data-theme="light"] .badge-score {
    background: rgba(0, 0, 0, 0.06);
    color: #111827;
}

:root[data-theme="light"] .segmented-control,
:root[data-theme="light"] .setting-row,
:root[data-theme="light"] .stat,
:root[data-theme="light"] .exam-breakdown,
:root[data-theme="light"] #resultado-motivacional,
:root[data-theme="light"] .topic-stat .ts-bar-bg,
:root[data-theme="light"] .global-progress-bar-bg,
:root[data-theme="light"] .progress-container,
:root[data-theme="light"] .admin-sep td {
    background: rgba(0, 0, 0, 0.05);
}

:root[data-theme="light"] .btn-small,
:root[data-theme="light"] .admin-btn {
    background: #eef2f7;
    color: #111827;
    border-color: #d1d5db;
}

:root[data-theme="light"] .kbd-hint kbd {
    background: rgba(0, 0, 0, 0.06);
    border-color: #d1d5db;
}

:root[data-theme="light"] .badge-record {
    background: #dcfce7;
    color: #166534;
    border-color: #86efac;
}

:root[data-theme="light"] .badge-record.pass {
    background: #dcfce7;
    color: #166534;
    border-color: #86efac;
}

:root[data-theme="light"] .badge-record.fail {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fca5a5;
}

:root[data-theme="light"] .exams-subtitle {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

:root[data-theme="light"] .feedback { background: #fff7e6; }
:root[data-theme="light"] .feedback.correct { background: #e8f5e9; }
:root[data-theme="light"] .feedback.incorrect { background: #fdecea; }

:root[data-theme="light"] .texto-exito-teal,
:root[data-theme="light"] .eb-ok { color: #15803d; }
:root[data-theme="light"] .texto-bien-teal { color: #0369a1; }
:root[data-theme="light"] .texto-aviso-naranja { color: #b45309; }
:root[data-theme="light"] .texto-peligro-rojo,
:root[data-theme="light"] .eb-err { color: #dc2626; }
