/* ========== BuenPuntaje Simulacros ========== */

/* Remove page-main padding when it contains a simulacro */
.page-main:has(.bp-sim-wrap) { max-width: 1300px; padding: 0 24px; margin: 32px auto 80px; }
.page-main:has(.bp-sim-wrap) > h1 { display: none; }

:root {
    --sim-navy:   #0F172A;
    --sim-blue:   #2D2A7B;
    --sim-gold:   #D98A00;
    --sim-green:  #0E7A4B;
    --sim-red:    #B42318;
    --sim-light:  #F6F7F9;
    --sim-white:  #ffffff;
    --sim-text:   #0F172A;
    --sim-muted:  #566074;
    --sim-border: #E4E7EC;
    --sim-radius: 16px;
    --sim-shadow: none;
    --sim-pro-bg: #ECEDFB;
}

.bp-sim-wrap { font-family: 'Manrope', system-ui, sans-serif; color: var(--sim-text); max-width: 780px; margin: 0 auto; }
.bp-sim-hidden { display: none !important; }
.bp-sim-error { color: var(--sim-red); font-weight: 600; }

/* ---- Cards ---- */
.bp-sim-card {
    background: var(--sim-white);
    border-radius: var(--sim-radius);
}
.bp-sim-start-card { text-align: center; }
.bp-sim-title { font-size: 1.6rem; font-weight: 800; color: var(--sim-navy); margin: 0 0 12px; }
.bp-sim-desc  { color: var(--sim-muted); margin: 0 0 24px; font-size: .95rem; }

/* ---- Meta grid (preguntas / tiempo) ---- */
.bp-sim-meta-grid {
    display: flex; justify-content: center; gap: 32px;
    margin: 0 0 28px;
}
.bp-sim-meta-item {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.bp-sim-meta-icon { font-size: 1.6rem; }
.bp-sim-meta-item strong { font-size: 1.8rem; font-weight: 800; color: var(--sim-navy); }
.bp-sim-meta-item span   { font-size: .8rem; color: var(--sim-muted); text-transform: uppercase; letter-spacing: .05em; }

/* ---- Previous result banner ---- */
.bp-sim-prev-result {
    background: #fef3c7; border: 1px solid #fcd34d;
    border-radius: 8px; padding: 14px 18px;
    margin-bottom: 24px; font-size: .88rem;
}
.bp-sim-prev-result p { margin: 0 0 4px; }
.bp-sim-prev-result p:last-child { margin: 0; }
.bp-sim-warning { color: #92400e; }

/* ---- Buttons ---- */
.bp-sim-btn {
    display: inline-block; border: none; cursor: pointer;
    font-family: 'Manrope', system-ui, sans-serif; font-weight: 700;
    border-radius: 8px; transition: .18s ease; text-decoration: none;
    font-size: .95rem;
}
.bp-sim-btn-start {
    background: var(--sim-blue); color: #fff;
    padding: 14px 40px; font-size: 1rem;
}
.bp-sim-btn-start:hover { background: var(--sim-navy); color: #fff; }
.bp-sim-btn-primary { background: var(--sim-blue); color: #fff; padding: 10px 22px; }
.bp-sim-btn-primary:hover { background: var(--sim-navy); }
.bp-sim-btn-outline {
    background: transparent; color: var(--sim-blue);
    border: 2px solid var(--sim-blue); padding: 9px 22px;
}
.bp-sim-btn-outline:hover { background: var(--sim-light); }
.bp-sim-btn-outline:disabled { opacity: .35; cursor: default; }
.bp-sim-btn-submit {
    background: var(--sim-green); color: #fff;
    padding: 14px 36px; font-size: 1rem;
}
.bp-sim-btn-submit:hover { background: #1e8449; }

/* ---- Question palette ---- */
.bp-sim-palette {
    display: flex; flex-wrap: wrap; gap: 6px;
    margin-bottom: 12px;
}
.bp-palette-sq {
    width: 34px; height: 34px;
    border-radius: 6px; border: 2px solid var(--sim-border);
    background: #f1f5f9; color: var(--sim-muted);
    font-family: 'Manrope', system-ui, sans-serif; font-size: .78rem; font-weight: 700;
    cursor: pointer; transition: .15s;
    display: flex; align-items: center; justify-content: center;
    padding: 0;
}
.bp-palette-sq:hover { border-color: var(--sim-blue); color: var(--sim-blue); background: #eff6ff; }
.bp-palette-sq--answered { background: var(--sim-green); border-color: var(--sim-green); color: #fff; }
.bp-palette-sq--current  { border-color: var(--sim-blue); background: var(--sim-blue); color: #fff; box-shadow: 0 0 0 3px rgba(26,93,173,.25); }

/* ---- Quiz header (progress + timer) ---- */
.bp-sim-quiz-header {
    display: flex; align-items: center; gap: 16px;
    background: var(--sim-white); border: 1px solid var(--sim-border);
    border-radius: var(--sim-radius); padding: 14px 20px;
    margin-bottom: 20px; box-shadow: var(--sim-shadow);
}
.bp-sim-progress-wrap { flex: 1; }
.bp-sim-progress-bar  { background: var(--sim-border); border-radius: 99px; height: 8px; overflow: hidden; }
.bp-sim-progress-fill { background: var(--sim-blue); height: 100%; border-radius: 99px; width: 0; transition: width .3s ease; }
.bp-sim-progress-label { font-size: .82rem; color: var(--sim-muted); margin-top: 4px; display: block; }
.bp-sim-timer {
    font-size: 1.3rem; font-weight: 800; color: var(--sim-navy);
    background: var(--sim-light); padding: 8px 16px; border-radius: 8px;
    font-variant-numeric: tabular-nums; min-width: 72px; text-align: center;
}
.bp-sim-timer.bp-timer-warning { color: var(--sim-red); animation: bp-pulse .8s infinite; }
@keyframes bp-pulse { 0%,100%{opacity:1} 50%{opacity:.5} }

/* ---- Question card ---- */
.bp-sim-question {
    background: var(--sim-white); border: 1px solid var(--sim-border);
    border-radius: var(--sim-radius); box-shadow: var(--sim-shadow);
    padding: 28px; margin-bottom: 8px;
}
.bp-sim-q-num   { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--sim-blue); font-weight: 700; margin-bottom: 8px; }
.bp-sim-q-title { font-size: 1.1rem; font-weight: 700; color: var(--sim-navy); margin-bottom: 14px; line-height: 1.5; }
/* Espacio activo de los textos con espacios (Inglés, Partes 4 y 7) */
.bp-hueco-activo {
    background: #fde68a; border-radius: 4px; padding: 0 5px; box-shadow: 0 0 0 2px #f59e0b;
}
/* Aviso de preguntas que comparten texto (estilo cuadernillo Icfes) */
.bp-sim-q-aviso {
    background: var(--sim-navy); color: #fff;
    font-size: .8rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; line-height: 1.5;
    padding: 10px 14px; margin-bottom: 10px; border-radius: 8px;
}
.bp-sim-q-contexto {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-left: 4px solid var(--sim-gold);
    border-radius: 0 8px 8px 0;
    padding: 14px 16px;
    margin-bottom: 16px;
    font-size: .9rem;
    line-height: 1.7;
}
.bp-sim-q-contexto::before {
    content: '📄 Contexto compartido';
    display: block;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #92400e;
    margin-bottom: 8px;
}
.bp-sim-q-contexto img { display: block; max-width: 100%; margin: 10px 0; }
.bp-sim-q-contexto p { margin: 0 0 .9em; }
.bp-sim-q-contexto p:last-child { margin-bottom: 0; }
/* Figuras y tablas: separación con el texto que sigue debajo */
.bp-sim-q-contexto .bp-sim-q-figura,
.bp-sim-q-enunciado .bp-sim-q-figura { margin-bottom: 20px; }
.bp-sim-q-contexto .bp-sim-q-figura:last-child,
.bp-sim-q-enunciado .bp-sim-q-figura:last-child { margin-bottom: 0; }
.bp-sim-q-enunciado { background: var(--sim-light); border-left: 4px solid var(--sim-blue); border-radius: 0 8px 8px 0; padding: 14px 16px; margin-bottom: 18px; font-size: .93rem; line-height: 1.7; }
.bp-sim-q-enunciado img { display: block; max-width: 100%; margin: 12px 0; }
.bp-sim-q-image { margin-bottom: 18px; text-align: center; }
.bp-q-img { max-width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--sim-border); }
.bp-sim-q-video { margin-bottom: 18px; }
.bp-sim-q-video iframe { width: 100%; border-radius: 8px; aspect-ratio: 16/9; border: none; }

/* ---- Tablas Markdown ---- */
.bp-md-table-wrap { overflow-x: auto; margin: 14px 0; -webkit-overflow-scrolling: touch; }
.bp-md-table { border-collapse: collapse; width: 100%; font-size: .88rem; min-width: 280px; }
.bp-md-table th,
.bp-md-table td { border: 1px solid var(--sim-border); padding: 7px 12px; line-height: 1.5; white-space: nowrap; }
.bp-md-table th { background: var(--sim-navy); color: #fff; font-weight: 600; font-size: .82rem; letter-spacing: .02em; white-space: nowrap; }
.bp-md-table tbody tr:nth-child(even) { background: var(--sim-light); }
.bp-md-table tbody tr:hover { background: #e2e8f0; }

/* ---- Options ---- */
.bp-sim-options { display: flex; flex-direction: column; gap: 10px; }

/* Image options */
.bp-sim-option-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding-top: 2px; }
.bp-opt-img { max-width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--sim-border); display: block; }

/* When option has image: stack letter on top, image takes full width below */
.bp-sim-option--has-img { flex-direction: column; align-items: flex-start; gap: 8px; padding-left: 4px; padding-right: 4px; }
.bp-sim-option--has-img .bp-sim-option-letter { margin-top: 0; margin-left: 10px; }
.bp-sim-option--has-img .bp-sim-option-text { padding-left: 10px; padding-right: 10px; }
.bp-sim-option--has-img .bp-sim-option-body { width: 100%; }

/* 2-column grid when options contain images */
.bp-sim-options:has(.bp-sim-option--has-img) {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}

.bp-sim-option {
    display: flex; align-items: flex-start; gap: 12px;
    border: 2px solid var(--sim-border); border-radius: 10px;
    padding: 12px 16px; cursor: pointer;
    transition: border-color .15s, background .15s;
}
.bp-sim-option:hover { border-color: var(--sim-blue); background: #eff6ff; }
.bp-sim-option input[type="radio"] { position: absolute; opacity: 0; }
.bp-sim-option-letter {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--sim-light); border: 2px solid var(--sim-border);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: .85rem; color: var(--sim-muted);
    flex-shrink: 0; transition: .15s;
}
.bp-sim-option-text { font-size: .93rem; line-height: 1.5; padding-top: 2px; }
/* Selected state */
.bp-sim-option.bp-selected { border-color: var(--sim-blue); background: #eff6ff; }
.bp-sim-option.bp-selected .bp-sim-option-letter { background: var(--sim-blue); border-color: var(--sim-blue); color: #fff; }
/* Review states */
.bp-sim-option.bp-correct  { border-color: var(--sim-green); background: #d1fae5; }
.bp-sim-option.bp-correct .bp-sim-option-letter { background: var(--sim-green); border-color: var(--sim-green); color: #fff; }
.bp-sim-option.bp-wrong    { border-color: var(--sim-red); background: #fee2e2; }
.bp-sim-option.bp-wrong .bp-sim-option-letter { background: var(--sim-red); border-color: var(--sim-red); color: #fff; }

/* ---- Navigation ---- */
.bp-sim-nav {
    display: flex; align-items: center; justify-content: space-between;
    margin: 16px 0; gap: 12px;
}
.bp-sim-nav-dots { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; justify-content: center; }
.bp-nav-dot {
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--sim-border); cursor: pointer; transition: .15s;
}
.bp-nav-dot.bp-dot-answered  { background: var(--sim-blue); }
.bp-nav-dot.bp-dot-current   { background: var(--sim-gold); box-shadow: 0 0 0 3px rgba(245,166,35,.3); }

/* ---- Submit area ---- */
.bp-sim-submit-wrap { text-align: center; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--sim-border); }
.bp-sim-submit-hint { font-size: .82rem; color: var(--sim-muted); margin-top: 10px; }

/* ---- Score circle ---- */
.bp-sim-score-circle {
    width: 140px; height: 140px; border-radius: 50%;
    border: 8px solid var(--sim-blue);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    margin: 0 auto 20px; transition: border-color .4s;
}
.bp-sim-score-circle.bp-score-high   { border-color: var(--sim-green); }
.bp-sim-score-circle.bp-score-medium { border-color: var(--sim-gold); }
.bp-sim-score-circle.bp-score-low    { border-color: var(--sim-red); }
.bp-score-num   { font-size: 2.4rem; font-weight: 800; color: var(--sim-navy); line-height: 1; }
.bp-score-label { font-size: .78rem; color: var(--sim-muted); }
.bp-score-pct   { font-size: 1.3rem; font-weight: 700; color: var(--sim-navy); margin: 0 0 6px; }
.bp-score-msg   { color: var(--sim-muted); margin: 0 0 28px; }

/* ---- Review list ---- */
.bp-sim-review { text-align: left; margin-top: 28px; }
.bp-review-item {
    border: 1px solid var(--sim-border); border-radius: 10px;
    margin-bottom: 16px; overflow: hidden;
}
.bp-review-item-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 16px; background: var(--sim-light); cursor: pointer;
    font-weight: 600; font-size: .92rem;
}
.bp-review-item-header.bp-rh-correct { background: #d1fae5; color: #065f46; }
.bp-review-item-header.bp-rh-wrong   { background: #fee2e2; color: #991b1b; }
.bp-review-badge { font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; }
.bp-badge-correct { background: var(--sim-green); color: #fff; }
.bp-badge-wrong   { background: var(--sim-red); color: #fff; }
.bp-badge-unanswered { background: var(--sim-muted); color: #fff; }
.bp-review-item-body { padding: 16px; display: none; }
.bp-review-item-body .bp-sim-options { pointer-events: none; }
.bp-review-explicacion,
.bp-q-explicacion {
    margin-top: 0; padding: 12px 14px;
    background: #fffbeb; border-left: 4px solid var(--sim-gold);
    border-radius: 0 0 8px 8px; line-height: 1.6;
}
/* Solo el encabezado "Explicación:" dentro del review es bloque */
.bp-review-explicacion > strong:first-child { display: block; margin-bottom: 4px; color: var(--sim-navy); }
.bp-q-exp-toggle {
    margin-top: 12px; width: 100%; text-align: left;
    background: #fef9ec; border: 1px solid var(--sim-gold);
    border-radius: 8px 8px 8px 8px; padding: 9px 14px;
    font-family: 'Manrope', system-ui, sans-serif; font-size: .85rem; font-weight: 700;
    color: #92400e; cursor: pointer; display: flex; align-items: center; gap: 6px;
    transition: background .15s;
}
.bp-q-exp-toggle:hover { background: #fef3c7; }
.bp-q-exp-toggle.is-open { border-radius: 8px 8px 0 0; }
.bp-q-exp-arrow { font-size: .7rem; transition: transform .2s; display: inline-block; }
.bp-q-exp-toggle.is-open .bp-q-exp-arrow { transform: rotate(90deg); }
.bp-resp-correcta {
    margin: 0 0 8px; padding: 5px 10px;
    background: #d1fae5; border-left: 4px solid #059669;
    border-radius: 4px; font-size: .88rem; color: #065f46;
}

/* ---- Login prompt ---- */
.bp-sim-login-prompt { text-align: center; }
.bp-sim-lock-icon { font-size: 3rem; margin: 0 0 8px; }
.bp-sim-login-prompt h3 { font-size: 1.3rem; color: var(--sim-navy); margin: 0 0 10px; }

/* ---- Loading overlay ---- */
.bp-sim-loading {
    position: fixed; inset: 0; background: rgba(255,255,255,.8);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999; font-size: 1.1rem; font-weight: 600; color: var(--sim-navy);
}
.bp-sim-loading-spinner {
    width: 40px; height: 40px; border: 4px solid var(--sim-border);
    border-top-color: var(--sim-blue); border-radius: 50%;
    animation: bp-spin .7s linear infinite; margin-right: 14px;
}
@keyframes bp-spin { to { transform: rotate(360deg); } }

/* ---- Responsive ---- */
@media (max-width: 540px) {
    .bp-sim-question { padding: 0; border: none; box-shadow: none; }
    .bp-sim-option { padding: 8px; }
    .bp-sim-option--has-img { padding: 6px; }
    .bp-sim-meta-grid { gap: 20px; }
    .bp-sim-nav { flex-wrap: wrap; }
    .bp-sim-timer { font-size: 1.1rem; }
}

/* ---- Temas de repaso (enlace + modal) ---- */
.bp-temas-link { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--sim-gold); }
.bp-temas-label { margin: 0 0 6px; font-size: .88rem; font-weight: 700; color: var(--sim-navy); }
.bp-temas-list { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.bp-tema-btn {
    background: #fff; border: 1px solid var(--sim-blue); color: var(--sim-blue);
    border-radius: 999px; padding: 4px 12px; cursor: pointer;
    font-family: 'Manrope', system-ui, sans-serif; font-size: .8rem; font-weight: 600;
    transition: background .15s, color .15s;
}
.bp-tema-btn:hover, .bp-tema-btn:focus-visible { background: var(--sim-blue); color: #fff; }

body.bp-tema-open { overflow: hidden; }
.bp-tema-modal {
    position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px;
    opacity: 0; visibility: hidden;
    transition: opacity .25s ease, visibility 0s linear .25s;
}
.bp-tema-modal.is-open { opacity: 1; visibility: visible; transition: opacity .25s ease, visibility 0s; }
@media (prefers-reduced-motion: reduce) { .bp-tema-modal, .bp-tema-modal.is-open { transition: none; } }
.bp-tema-backdrop { position: absolute; inset: 0; background: rgba(15,45,86,.55); }
.bp-tema-dialog {
    position: relative; width: 100%; max-width: 860px; max-height: 90vh;
    display: flex; flex-direction: column; background: #fff;
    border-radius: var(--sim-radius); box-shadow: 0 12px 48px rgba(15,45,86,.35);
    font-family: 'Manrope', system-ui, sans-serif; color: var(--sim-text);
}
.bp-tema-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 14px 18px; background: var(--sim-navy); color: #fff;
    border-radius: var(--sim-radius) var(--sim-radius) 0 0;
}
.bp-tema-head h3 { margin: 0; font-size: 1.05rem; color: #fff; }
.bp-tema-close {
    background: none; border: 0; color: #fff; font-size: 1.8rem; line-height: 1;
    cursor: pointer; padding: 0 4px;
}
.bp-tema-body { padding: 16px 20px 22px; overflow-y: auto; font-size: 1rem; line-height: 1.65; }
.bp-tema-body h3 { line-height: 1.3; color: var(--sim-navy); margin: 22px 0 8px; padding-bottom: 4px; border-bottom: 2px solid var(--sim-border); }
.bp-tema-body h3:first-child { margin-top: 0; }
.bp-tema-body p, .bp-tema-body ul, .bp-tema-body ol { margin: 0 0 10px; }
.bp-tema-body li { margin-bottom: 4px; }
.bp-tema-body figure { margin: 14px 0; text-align: center; }
.bp-tema-body figure img { max-width: 100%; height: auto; }
.bp-tema-body figcaption { font-size: .8rem; color: var(--sim-muted); font-style: italic; margin-top: 4px; }
.bp-tema-table { overflow-x: auto; margin: 0 0 12px; }
.bp-tema-body table { border-collapse: collapse; width: 100%; font-size: .88rem; }
.bp-tema-body th, .bp-tema-body td { border: 1px solid var(--sim-border); padding: 6px 10px; text-align: left; }
.bp-tema-body th { background: var(--sim-light); color: var(--sim-navy); }
.bp-tema-loading { color: var(--sim-muted); text-align: center; padding: 24px 0; }

@media (max-width: 599.98px) {
    .bp-tema-modal { padding: 0; }
    .bp-tema-dialog { max-width: none; width: 100%; height: 100%; max-height: none; border-radius: 0; }
    .bp-tema-head { border-radius: 0; }
}
.bp-tema-body li > p { margin: 0; }

/* ========== Visor de Inglés: por partes (estilo cuadernillo Icfes) ========== */
.bp-modo-ingles.bp-sim-wrap { max-width: 980px; }

/* Botones de parte */
.bp-ing-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.bp-ing-tab {
    display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 96px;
    padding: 8px 16px; border: 2px solid var(--sim-border); border-radius: 10px; background: #f1f5f9;
    color: var(--sim-muted); font: inherit; cursor: pointer; transition: border-color .15s, background .15s, color .15s;
}
.bp-ing-tab-t { font-weight: 800; font-size: .92rem; }
.bp-ing-tab-c { font-size: .72rem; font-weight: 600; }
.bp-ing-tab:hover { border-color: var(--sim-blue); color: var(--sim-blue); background: #eff6ff; }
.bp-ing-tab.is-completa { border-color: var(--sim-green); color: #166534; background: #ecfdf5; }
.bp-ing-tab.is-active { border-color: var(--sim-blue); background: var(--sim-blue); color: #fff; box-shadow: 0 0 0 3px rgba(26,93,173,.25); }

.bp-ing-sec { background: var(--sim-white); border: 1px solid var(--sim-border); border-radius: var(--sim-radius); box-shadow: var(--sim-shadow); padding: 20px 24px; margin-bottom: 20px; }
.bp-ing-sec .bp-sim-q-aviso { margin-bottom: 14px; }
.bp-ing-num { font-weight: 800; min-width: 2.2em; display: inline-block; }

/* Consigna, título, ejemplo */
.bp-ing-instruccion { background: #f5f5f5; border-left: 4px solid #c4c4c4; padding: 10px 16px; font-size: .92rem; line-height: 1.6; margin-bottom: 16px; }
.bp-ing-instruccion p { margin: 0 0 .5em; }
.bp-ing-instruccion p:last-child { margin-bottom: 0; }
.bp-ing-titulo { display: inline-block; border: 1.5px solid #222; border-radius: 8px; padding: 8px 28px; font-weight: 800; font-size: 1.05rem; margin-bottom: 14px; }
.bp-ing-chip { display: block; width: max-content; background: #ececec; border-radius: 6px; padding: 5px 14px; font-weight: 800; font-size: .88rem; margin: 6px 0 10px; }
.bp-ing-ej { display: flex; gap: 10px; font-size: .96rem; margin-bottom: 12px; }
.bp-ing-barra { display: flex; align-items: center; justify-content: flex-end; gap: 14px; background: #f1f1f1; border-radius: 14px; padding: 10px 14px; margin-bottom: 16px; font-size: .9rem; }
.bp-ing-barra-pill { background: #fff; border: 1px solid #d4d4d4; border-radius: 999px; padding: 4px 16px; }

/* Parte 1: dos columnas separadas por una línea */
.bp-ing-cols { display: grid; grid-template-columns: 1fr 1fr; border-top: 2px solid #333; margin: 6px 0 22px; }
.bp-ing-col-desc { padding: 16px 20px 6px 4px; border-right: 2px solid #333; }
.bp-ing-col-pal { padding: 16px 4px 6px 24px; }
.bp-ing-desc { display: flex; gap: 8px; margin-bottom: 14px; font-size: .96rem; line-height: 1.5; }
.bp-ing-desc p { margin: 0; }
.bp-ing-pal { display: flex; gap: 10px; padding: 5px 10px; font-size: .96rem; margin-bottom: 2px; }
.bp-ing-pal strong { min-width: 1.4em; }
@media (max-width: 700px) {
    .bp-ing-cols { grid-template-columns: 1fr; }
    .bp-ing-col-desc { border-right: 0; border-bottom: 2px solid #333; padding: 14px 0 4px; }
    .bp-ing-col-pal { padding: 14px 0 4px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 12px; }
}

/* Partes 2 y 3: cada ítem con su aviso o frase y, al lado, las opciones */
.bp-ing-lista { display: flex; flex-direction: column; gap: 18px; margin-bottom: 22px; }
.bp-ing-item { display: grid; grid-template-columns: 2.4em minmax(0, 1.6fr) minmax(0, 1fr); gap: 8px 16px; align-items: center; }
.bp-ing-aviso svg { max-width: 100%; height: auto; display: block; }
.bp-ing-aviso { margin: 0; }
.bp-ing-frase { font-size: 1rem; line-height: 1.5; }
.bp-ing-frase p { margin: 0; }
.bp-ing-ops { list-style: none; margin: 0; padding: 0; font-size: .95rem; line-height: 1.7; }
.bp-ing-ops li strong { display: inline-block; min-width: 1.6em; }
@media (max-width: 700px) {
    .bp-ing-item { grid-template-columns: 2.2em minmax(0, 1fr); }
    .bp-ing-ops { grid-column: 2; }
}

/* Textos (Partes 4 a 7) */
.bp-ing-texto::before { display: none; }
.bp-ing-texto { font-size: .97rem; line-height: 1.85; margin-bottom: 20px; }
.bp-hueco { transition: background .15s; border-radius: 4px; padding: 0 3px; }
.bp-hueco--lleno { text-decoration: underline; text-underline-offset: 3px; }
.bp-ing-preguntas { display: flex; flex-direction: column; gap: 22px; }
.bp-ing-pregunta-enun { display: flex; gap: 8px; font-weight: 600; margin-bottom: 10px; line-height: 1.5; }
.bp-ing-pregunta-enun p { margin: 0; }

/* Hoja de respuestas: una fila por pregunta, letras en horizontal */
.bp-ing-hoja-t { margin: 8px 0 10px; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--sim-muted); border-top: 1px solid var(--sim-border); padding-top: 14px; }
.bp-ing-hoja { display: flex; flex-direction: column; gap: 6px; }
.bp-ing-resp-item { border-bottom: 1px dashed var(--sim-border); padding-bottom: 6px; }
.bp-ing-resp-fila { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.bp-ing-resp-fila .bp-ing-num { min-width: 2.6em; }
.bp-ing-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.bp-ing-pill.bp-sim-option {
    display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 1.5px solid #555; border-radius: 999px; background: #fff;
    min-width: 36px; height: 36px; justify-content: center; position: relative;
}
.bp-ing-pill .bp-ing-pill-l { font-weight: 600; font-size: .9rem; color: #111; width: 34px; text-align: center; }
.bp-ing-pill--texto.bp-sim-option { padding: 0 14px 0 0; justify-content: flex-start; }
.bp-ing-pill-t { font-size: .92rem; }
.bp-ing-pill.bp-sim-option:hover { border-color: var(--sim-blue); background: #eff6ff; }
.bp-ing-pill.bp-sim-option.bp-selected { background: #d4d4d4; border: 2.5px solid #111; }
.bp-ing-pill.bp-sim-option.bp-selected .bp-ing-pill-l { color: #111; }
.bp-ing-resp-item .bp-q-exp-toggle { margin: 4px 0 0 2.6em; }
.bp-ing-resp-item .bp-q-explicacion { margin-left: 2.6em; }
@media (max-width: 540px) { .bp-ing-sec { padding: 14px 12px; } .bp-ing-resp-fila { gap: 6px; } }
.bp-ing-resp-item .bp-q-exp-toggle { width: auto; display: inline-flex; padding: 3px 10px; font-size: .74rem; border-radius: 6px; margin-top: 6px; }
.bp-ing-resp-item .bp-q-explicacion { margin-top: 8px; margin-bottom: 4px; }
@media (max-width: 540px) {
    .bp-ing-pills { gap: 5px; }
    .bp-ing-pill.bp-sim-option { min-width: 32px; height: 32px; }
    .bp-ing-pill .bp-ing-pill-l { width: 30px; font-size: .82rem; }
    .bp-ing-resp-item .bp-q-exp-toggle, .bp-ing-resp-item .bp-q-explicacion { margin-left: 0; }
    .bp-ing-resp-fila .bp-ing-num { min-width: 100%; }
    .bp-ing-hoja--palabras .bp-ing-pill--texto.bp-sim-option { padding-right: 10px; }
}
.bp-ing-clasica { border-bottom: 2px solid var(--sim-border); padding-bottom: 20px; margin-bottom: 24px; }
.bp-ing-clasica:last-child { border-bottom: 0; margin-bottom: 0; }
.bp-ing-instruccion--lineas p { margin: 0 0 1em; }
.bp-ing-instruccion--lineas p:last-child { margin-bottom: 0; }
/* Parte 1: barra «Respuesta» con las letras del ejemplo (la correcta marcada) y palabra del ejemplo resaltada en la lista */
.bp-ing-barra-pill { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #d4d4d4; border-radius: 999px; padding: 5px 12px; flex-wrap: wrap; }
.bp-ing-pill--fijo { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; border: 1.5px solid #555; border-radius: 50%; background: #fff; }
.bp-ing-pill--fijo .bp-ing-pill-l { width: 28px; font-size: .82rem; }
.bp-ing-pill--fijo.is-marcada { background: #d4d4d4; border: 2.5px solid #111; }
.bp-ing-pal--ej { background: #ececec; border-radius: 6px; }
@media (max-width: 540px) { .bp-ing-barra { flex-direction: column; align-items: flex-start; } .bp-ing-pill--fijo { min-width: 26px; height: 26px; } .bp-ing-pill--fijo .bp-ing-pill-l { width: 24px; font-size: .74rem; } }
/* Parte 1: el título del bloque («Sports and free time», «Food and drink») va centrado */
.bp-ing-titulo { display: block; width: max-content; max-width: 100%; margin: 0 auto 14px; text-align: center; }
/* Círculos de respuesta: mano al pasar el mouse y, al seleccionar, el borde se engrosa sin mover nada (se dibuja con sombra, no con border) */
.bp-ing-pill.bp-sim-option, .bp-ing-pill.bp-sim-option * { cursor: pointer; }
.bp-ing-pill.bp-sim-option.bp-selected { border: 1.5px solid #111; box-shadow: 0 0 0 1.5px #111; background: #d4d4d4; }
.bp-ing-pill--fijo.is-marcada { border: 1.5px solid #111; box-shadow: 0 0 0 1.5px #111; background: #d4d4d4; }
/* Parte 3: el ejemplo 0 es una imagen (personas, globo y réplicas) */
.bp-ing-ej-img { margin: 4px 0 20px; }
.bp-ing-ej-img-i { display: block; width: 100%; max-width: 760px; height: auto; border-radius: 10px; border: 1px solid var(--sim-border); margin: 0 auto; }
/* Textos con espacios: ejemplo 0 con sus opciones y barra «Respuesta»; opciones de cada pregunta en columnas alineadas */
.bp-ing-ej-fila { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-bottom: 14px; }
.bp-ing-ej-ops { display: grid; grid-template-columns: 2.6em repeat(var(--n, 3), minmax(0, 1fr)); gap: 4px 18px; align-items: center; flex: 1 1 320px; max-width: 520px; font-size: .95rem; }
.bp-ing-ej-op strong { margin-right: 8px; }
.bp-ing-ej-fila .bp-ing-barra { margin-bottom: 0; flex: 0 0 auto; }
.bp-ing-regla { border-top: 4px solid #c9c9c9; margin: 8px 0 14px; }
.bp-ing-hoja--palabras { gap: 2px; }
.bp-ing-hoja--palabras .bp-ing-resp-fila { display: grid; grid-template-columns: 3.4em minmax(0, 1fr); gap: 8px; align-items: center; }
.bp-ing-hoja--palabras .bp-ing-resp-fila .bp-ing-num { min-width: 0; }
.bp-ing-hoja--palabras .bp-ing-pills { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 8px 18px; max-width: 620px; }
.bp-ing-hoja--palabras .bp-ing-pill--texto.bp-sim-option { justify-self: start; }
@media (max-width: 540px) {
    .bp-ing-hoja--palabras .bp-ing-resp-fila { grid-template-columns: 1fr; gap: 4px; }
    .bp-ing-hoja--palabras .bp-ing-pills { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 6px 8px; }
    .bp-ing-ej-ops { grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); }
    .bp-ing-ej-ops .bp-ing-num { grid-column: 1 / -1; }
}
/* Inglés: más aire debajo de «Ver explicación» para que las filas no se vean apretadas */
.bp-ing-resp-item { padding-bottom: 18px; margin-bottom: 6px; }
.bp-ing-resp-item .bp-q-exp-toggle { margin-bottom: 4px; }
.bp-ing-pregunta .bp-q-exp-toggle { margin-bottom: 6px; }
.bp-ing-pregunta { padding-bottom: 8px; }
/* Ilustración del texto: a la derecha, dentro del recuadro, y el texto la rodea */
.bp-ing-deco { float: right; width: 150px; margin: 0 0 8px 18px; }
.bp-ing-deco-i { display: block; width: 100%; height: auto; border: 0 !important; border-radius: 0 !important; margin: 0 !important; }
.bp-ing-texto::after { content: ''; display: block; clear: both; }
@media (max-width: 540px) { .bp-ing-deco { width: 96px; margin-left: 12px; } }
/* Partes 5 y 6: el enunciado a la izquierda y las opciones (botones) a la derecha; en pantallas pequeñas, una debajo de la otra */
.bp-ing-p5--ej { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 28px; align-items: start; margin-bottom: 6px; }
.bp-ing-p5-der .bp-ing-barra { margin: 14px 0 0; justify-content: flex-start; max-width: 100%; }
.bp-ing-p5-der .bp-ing-ops { margin-bottom: 0; }
@media (min-width: 761px) {
    .bp-ing-preguntas { gap: 6px; }
    .bp-ing-p5.bp-ing-pregunta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 28px; row-gap: 0; align-items: start; padding: 14px 0 12px; border-bottom: 1px dashed var(--sim-border); }
    .bp-ing-p5.bp-ing-pregunta .bp-ing-pregunta-enun { grid-column: 1; grid-row: 1; margin-bottom: 0; }
    .bp-ing-p5.bp-ing-pregunta .bp-sim-options { grid-column: 2; grid-row: 1; gap: 8px; }
    .bp-ing-p5.bp-ing-pregunta .bp-sim-option { padding: 7px 12px; align-items: center; }
    .bp-ing-p5.bp-ing-pregunta .bp-q-exp-toggle { grid-column: 2; grid-row: 2; justify-self: start; margin-top: 8px; }
    .bp-ing-p5.bp-ing-pregunta .bp-q-explicacion { grid-column: 1 / -1; grid-row: 3; }
}
@media (max-width: 760px) { .bp-ing-p5--ej { grid-template-columns: 1fr; } }
.bp-ing-p5 .bp-q-exp-toggle { width: auto; display: inline-flex; padding: 3px 10px; font-size: .74rem; border-radius: 6px; }
/* Partes 5 y 6: la opción elegida va en gris (como los círculos de las demás partes), no en azul */
.bp-ing-pregunta .bp-sim-option:hover { border-color: #555; background: #f3f3f3; }
.bp-ing-pregunta .bp-sim-option.bp-selected { border-color: #111; background: #d4d4d4; box-shadow: 0 0 0 1.5px #111; }
.bp-ing-pregunta .bp-sim-option.bp-selected .bp-sim-option-letter { background: #fff; border-color: #111; color: #111; }
/* Opciones en columnas: cada columna es al menos tan ancha como la palabra más larga (no se solapan) */
.bp-ing-hoja--palabras .bp-ing-pills { grid-template-columns: repeat(var(--n, 3), minmax(calc(var(--w, 8) * .55em + 4em), 1fr)); max-width: none; }
.bp-ing-pill-t { white-space: nowrap; }
@media (max-width: 540px) { .bp-ing-hoja--palabras .bp-ing-pills { grid-template-columns: repeat(auto-fit, minmax(max-content, 1fr)); } }
@media (max-width: 540px) { .bp-ing-hoja--palabras .bp-ing-pills { grid-template-columns: repeat(auto-fit, minmax(calc(var(--w, 8) * .55em + 4em), 1fr)); } }

/* ========== Inglés: revisión del simulacro con el diseño del examen ========== */
.bp-ing-revision .bp-sim-option { pointer-events: none; cursor: default; }
.bp-ing-rev-titulo { margin: 0 0 14px; color: var(--sim-navy); }
.bp-ing-revision .bp-sim-q-aviso { opacity: .9; }
.bp-ing-tab.is-perfecta { border-color: var(--sim-green); background: #ecfdf5; color: #166534; }
.bp-ing-tab.is-parcial  { border-color: var(--sim-gold); background: #fffbeb; color: #92400e; }
.bp-ing-tab.is-mala     { border-color: var(--sim-red); background: #fef2f2; color: #991b1b; }
.bp-ing-tab.is-active.is-perfecta { background: var(--sim-green); color: #fff; border-color: var(--sim-green); }
.bp-ing-tab.is-active.is-parcial  { background: var(--sim-gold); color: #fff; border-color: var(--sim-gold); }
.bp-ing-tab.is-active.is-mala     { background: var(--sim-red); color: #fff; border-color: var(--sim-red); }
.bp-ing-pill.bp-sim-option.bp-correct { background: #d1fae5; border-color: var(--sim-green); box-shadow: 0 0 0 1.5px var(--sim-green); }
.bp-ing-pill.bp-sim-option.bp-wrong   { background: #fee2e2; border-color: var(--sim-red);   box-shadow: 0 0 0 1.5px var(--sim-red); }
.bp-ing-pregunta .bp-sim-option.bp-correct { border-color: var(--sim-green); background: #d1fae5; box-shadow: 0 0 0 1.5px var(--sim-green); }
.bp-ing-pregunta .bp-sim-option.bp-wrong   { border-color: var(--sim-red);   background: #fee2e2; box-shadow: 0 0 0 1.5px var(--sim-red); }
.bp-ing-rev-tag { display: inline-block; font-size: .74rem; font-weight: 700; border-radius: 999px; padding: 3px 10px; margin-left: 10px; white-space: nowrap; }
.bp-ing-rev-tag--ok  { background: #d1fae5; color: #166534; }
.bp-ing-rev-tag--mal { background: #fee2e2; color: #991b1b; }
.bp-ing-rev-tag--sin { background: #f1f5f9; color: var(--sim-muted); }
.bp-ing-resp-fila .bp-ing-rev-tag { margin-left: 4px; }
.bp-hueco--ok  { background: #d1fae5; }
.bp-hueco--mal { background: #fee2e2; }

/* ===== Simulacro con varias áreas: acordeón ===== */
.bp-areas { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.bp-area { background: none; border: 0; }
.bp-area-head { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 18px; background: var(--sim-white); border: 1px solid var(--sim-border); border-radius: var(--sim-radius); cursor: pointer; text-align: left; font: inherit; color: var(--sim-blue); }
.bp-area-head:hover { background: var(--sim-light); }
.bp-area-nombre { flex: 1; font-weight: 800; font-size: 1.05rem; }
.bp-area-cont { font-size: .8rem; font-weight: 700; color: var(--sim-muted); background: var(--sim-light); border-radius: 999px; padding: 3px 11px; }
.bp-area.is-completa .bp-area-cont { background: #dcfce7; color: #166534; }
.bp-area-flecha { transition: transform .2s; color: var(--sim-muted); }
.bp-area-head.is-open { background: var(--sim-blue); border-color: var(--sim-blue); color: #fff; }
.bp-area-head.is-open .bp-area-cont { background: rgba(255,255,255,.18); color: #fff; }
.bp-area-head.is-open .bp-area-flecha { transform: rotate(180deg); color: #fff; }
.bp-area-panel { padding: 12px 0 4px; }
.bp-modo-mixto .bp-area-panel .bp-sim-palette { margin-bottom: 14px; }
.bp-modo-mixto .bp-area-panel .bp-sim-question { margin-bottom: 8px; }

/* revisión por áreas */
.bp-rev-area { margin-bottom: 10px; }
.bp-rev-area-head.is-perfecta .bp-area-cont { background: #dcfce7; color: #166534; }
.bp-rev-area-head.is-parcial .bp-area-cont { background: #fef3c7; color: #92400e; }
.bp-rev-area-head.is-mala .bp-area-cont { background: #fee2e2; color: #991b1b; }
.bp-rev-area-head.is-open .bp-area-cont { background: rgba(255,255,255,.2); color: #fff; }
.bp-rev-area-body { padding: 12px 0 4px; }
.bp-area-head { transition: background-color .25s, color .25s; }
@media (prefers-reduced-motion: reduce) { .bp-area-head, .bp-area-flecha { transition: none; } }

/* ===== Revisión por pregunta: paleta verde/roja ===== */
.bp-rev-palette { margin-bottom: 16px; }
.bp-rev-sq {
    width: 34px; height: 34px; padding: 0; border-radius: 6px; border: 2px solid transparent;
    font-family: 'Manrope', system-ui, sans-serif; font-size: .78rem; font-weight: 700; color: #fff; cursor: pointer;
    display: flex; align-items: center; justify-content: center; transition: .15s;
}
.bp-rev-sq--ok  { background: var(--sim-green); border-color: var(--sim-green); }
.bp-rev-sq--bad { background: var(--sim-red);   border-color: var(--sim-red); }
.bp-rev-sq:hover { filter: brightness(1.08); }
.bp-rev-sq.is-active { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--sim-navy); }
.bp-rev-preguntas .bp-sim-option { cursor: default; }
.bp-rev-nav { margin-top: 14px; }
.bp-rev-nav .bp-sim-btn:disabled { opacity: .45; cursor: default; }

/* Botones de acción (iniciar / repetir / nuevo examen): centrados, en columna en pantallas angostas */
.bp-sim-acciones { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin: 18px 0 4px; }
.bp-sim-acciones .bp-sim-btn { margin: 0; }
@media (max-width: 480px) { .bp-sim-acciones { flex-direction: column; } .bp-sim-acciones .bp-sim-btn { width: 100%; } }
.bp-sim-acciones .bp-sim-btn-start { padding: 14px 32px; }
.bp-sim-acciones .bp-sim-btn-outline { padding: 12px 30px; font-size: 1rem; }

/* «Sin responder»: pastilla del tamaño de su texto, sin estirarse en filas flex/grid */
.bp-ing-rev-tag { width: max-content; max-width: 100%; align-self: flex-start; justify-self: start; grid-column: 1 / -1; line-height: 1.4; }
.bp-ing-rev-tag--abajo { display: table; margin: 6px 0 0; }   /* en Partes 5 y 6 va bajo el enunciado */
.bp-ing-resp-fila .bp-ing-rev-tag { margin-left: 0; }

/* Simulacro con varias áreas: sin ancho máximo */
.bp-sim-wrap.bp-modo-mixto { max-width: none; }

/* Título interno de la pregunta (p. ej. «lectura-159»): solo para identificarla en el HTML, el estudiante no lo ve */
.bp-sim-q-title { display: none; }
.bp-rev-estado { margin-bottom: 10px; }
.bp-rev-estado .bp-ing-rev-tag { margin-left: 0; }

/* ==========================================================================
   Diseño 2.0 · AltoPuntaje
   Panel del estudiante, examen en curso (modo concentración) y resultados.
   Va al final para sobreescribir lo anterior sin tocar las reglas de los visores.
   ========================================================================== */
.bp-sim-wrap { max-width: none; }
.bp-sim-wrap:not(.bp-modo-mixto):not(.bp-modo-ingles) #bp-screen-quiz { max-width: 880px; margin: 0 auto; }
.bp-sim-wrap h2, .bp-sim-wrap h3 { border: 0; padding: 0; }

/* ---- Botones ---- */
.bp-sim-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border-radius: 12px; border: 2px solid transparent; text-decoration: none; line-height: 1.2; }
.bp-sim-btn-start { padding: 0 26px; min-height: 52px; background: var(--sim-blue); color: #fff; }
.bp-sim-btn-start:hover, .bp-sim-btn-primary:hover { background: #1F1C5E; color: #fff; }
.bp-sim-btn-primary { padding: 0 22px; background: var(--sim-blue); color: #fff; }
.bp-sim-btn-outline { padding: 0 22px; background: #fff; color: var(--sim-blue); border: 2px solid var(--sim-blue); }
.bp-sim-btn-outline:hover { background: var(--sim-pro-bg); }
.bp-sim-btn-submit { padding: 0 28px; background: var(--sim-blue); color: #fff; }
.bp-sim-btn-submit:hover { background: #1F1C5E; }
.bp-sim-wrap a.bp-sim-btn-start, .bp-sim-wrap a.bp-sim-btn-outline { text-decoration: none; }
.bp-sim-acciones { justify-content: flex-start; margin: 22px 0 0; }
.bp-sim-acciones .bp-sim-btn-start { padding: 0 26px; }
.bp-sim-acciones .bp-sim-btn-outline { padding: 0 24px; font-size: .95rem; }
.bp-sim-warning { margin: 14px 0 0; color: #7A4B00; font-size: .88rem; }

/* ---- Panel del estudiante ---- */
.bp-panel { padding: 12px 0 24px; }
.bp-eyebrow { margin: 0 0 10px; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--sim-blue); line-height: 1.3; }
.bp-hello { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.bp-sim-wrap .bp-hello-t { margin: 0; font-size: clamp(1.9rem, 3vw, 2.5rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; color: var(--sim-navy); }
.bp-sim-wrap .bp-lead { margin: 10px 0 0; max-width: 560px; color: var(--sim-muted); font-size: 1.05rem; line-height: 1.55; }
.bp-pill-acceso { display: inline-flex; align-items: center; gap: 8px; background: var(--sim-pro-bg); color: var(--sim-blue); font-weight: 800; font-size: .85rem; padding: 9px 14px; border-radius: 999px; }
.bp-pgrid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; margin-top: 36px; align-items: start; }
.bp-card { border: 1px solid var(--sim-border); border-radius: 20px; background: #fff; padding: 28px; }
.bp-card--soft { background: var(--sim-light); }
.bp-sim-wrap .bp-card-t { margin: 0; font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; color: var(--sim-navy); line-height: 1.3; }
.bp-sim-wrap .bp-muted { margin: 0; color: var(--sim-muted); line-height: 1.55; }
.bp-main-card { display: grid; gap: 22px; }
.bp-main-card > .bp-muted { margin-top: -12px; }
.bp-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.bp-fact { background: var(--sim-pro-bg); border-radius: 14px; padding: 18px 16px; text-align: center; }
.bp-fact b { display: block; font-size: 1.7rem; font-weight: 800; letter-spacing: -.03em; color: var(--sim-blue); line-height: 1.1; }
.bp-fact span { display: block; margin-top: 4px; font-size: .88rem; color: var(--sim-muted); font-weight: 600; }
.bp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bp-chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--sim-border); border-radius: 999px; padding: 7px 14px 7px 11px; font-weight: 700; font-size: .88rem; }
.bp-chip i { width: 10px; height: 10px; border-radius: 50%; }
.bp-chip em { font-style: normal; color: var(--sim-muted); font-weight: 600; }
.bp-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.bp-checks li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.5; font-size: .98rem; margin: 0; }
.bp-checks svg { flex: none; margin-top: 2px; color: #0F766E; }
.bp-main-card .bp-sim-acciones { margin: 0; }
.bp-side { display: grid; gap: 24px; }
.bp-res-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.bp-res-h .bp-muted { font-size: .9rem; }
.bp-score-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 18px 0 6px; }
.bp-score-row b { font-size: 3.2rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.bp-score-row span { font-weight: 700; color: var(--sim-muted); }
.bp-score-row em { font-style: normal; font-weight: 800; font-size: .85rem; background: var(--sim-pro-bg); color: var(--sim-blue); padding: 5px 10px; border-radius: 999px; margin-left: auto; }
.bp-res-vacio { margin-top: 14px !important; }
.bp-bars { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 14px; }
.bp-bars li { margin: 0; }
.bp-bar-t { display: flex; justify-content: space-between; font-size: .88rem; font-weight: 700; margin-bottom: 6px; }
.bp-bar-t span { color: var(--sim-muted); }
.bp-bar-b { height: 8px; background: var(--sim-light); border-radius: 99px; overflow: hidden; }
.bp-bar-b i { display: block; height: 100%; border-radius: 99px; }
.bp-prep ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.bp-prep li { display: flex; gap: 12px; line-height: 1.5; font-size: .95rem; color: var(--sim-muted); margin: 0; }
.bp-prep li svg { flex: none; margin-top: 2px; color: var(--sim-blue); }

/* ---- Pantallas de acceso (sin sesión / sin compra) ---- */
.bp-gate { padding: 24px 0 40px; }
.bp-gate-card { max-width: 600px; margin: 0 auto; border: 1px solid var(--sim-border); border-radius: 24px; padding: 40px 36px; text-align: center; background: #fff; }
.bp-gate-ic { width: 64px; height: 64px; border-radius: 50%; background: var(--sim-pro-bg); color: var(--sim-blue); display: inline-grid; place-items: center; margin-bottom: 18px; }
.bp-sim-wrap .bp-gate-t { margin: 0; font-size: clamp(1.6rem, 3vw, 2rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; color: var(--sim-navy); }
.bp-gate-card .bp-lead { margin-left: auto; margin-right: auto; }
.bp-gate-card .bp-checks { text-align: left; max-width: 440px; margin: 26px auto 0; }
.bp-gate-card .bp-sim-acciones { justify-content: center; }
.bp-gate-nota { margin: 20px 0 0; font-size: .9rem; color: var(--sim-muted); }
.bp-gate-nota a { color: var(--sim-blue); font-weight: 700; }

/* ---- Modo concentración: durante el examen se oculta la cabecera y el pie del sitio ---- */
body.bp-sim-enfoque .ap-top, body.bp-sim-enfoque #breadcrumbs-ctn { display: none !important; }   /* el pie del sitio se mantiene */
body.bp-sim-enfoque .page-main:has(.bp-sim-wrap) { margin-top: 0; }

/* ---- Barra del examen ---- */
.bp-sim-quiz-header { position: sticky; top: 0; z-index: 40; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; background: #fff; border: 0; border-bottom: 1px solid var(--sim-border); border-radius: 0; padding: 12px 0 14px; margin: 0 0 28px; box-shadow: none; }
body.admin-bar .bp-sim-quiz-header { top: 32px; }
.bp-xlogo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.1rem; letter-spacing: -.02em; color: var(--sim-navy); text-decoration: none; }
.bp-xlogo img { height: 36px; width: auto; }
.bp-xmode { font-weight: 700; color: var(--sim-muted); font-size: .92rem; }
.bp-xmode .bp-sim-progress-label { display: inline; margin: 0; font-size: inherit; color: inherit; }
.bp-xtools { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.bp-sim-timer { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; background: #fff; border: 1.5px solid var(--sim-border); border-radius: 12px; font-size: 1.05rem; font-weight: 800; color: var(--sim-navy); min-width: 0; }
.bp-sim-timer svg { color: var(--sim-blue); flex: none; }
.bp-sim-timer.bp-timer-warning { color: var(--sim-red); border-color: var(--sim-red); }
.bp-sim-timer.bp-timer-warning svg { color: var(--sim-red); }
.bp-xprog { flex: 0 0 100%; height: 4px; margin: 2px 0 -14px; background: var(--sim-border); border-radius: 0; }
.bp-xprog .bp-sim-progress-fill { background: var(--sim-blue); border-radius: 0; }

/* ---- Paleta de preguntas ---- */
.bp-sim-palette { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 8px; margin: 0 0 16px; }
.bp-palette-sq { width: auto; min-height: 44px; height: 44px; border-radius: 10px; border: 1.5px solid var(--sim-border); background: #fff; color: var(--sim-text); font-size: .88rem; }
.bp-palette-sq:hover { border-color: var(--sim-blue); color: var(--sim-blue); background: var(--sim-pro-bg); }
.bp-palette-sq--answered { background: var(--sim-blue); border-color: var(--sim-blue); color: #fff; }
.bp-palette-sq--answered:hover { background: var(--sim-blue); color: #fff; }
.bp-palette-sq--flag { background: #FFF1D6; border-color: #E0A93A; color: #7A4B00; }
.bp-palette-sq--flag:hover { background: #FFF1D6; color: #7A4B00; border-color: #E0A93A; }
.bp-palette-sq--current { background: #fff; border-color: var(--sim-navy); color: var(--sim-navy); box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--sim-navy); }
.bp-palette-sq--current:hover { background: #fff; color: var(--sim-navy); }

/* ---- Tarjeta de la pregunta ---- */
.bp-sim-question { border: 1px solid var(--sim-border); border-radius: 20px; padding: 32px; box-shadow: none; margin-bottom: 12px; }
.bp-xmeta { margin: 0 0 20px; }
.bp-xtag { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: .85rem; padding: 7px 12px; border-radius: 999px; }
.bp-xtag i { width: 9px; height: 9px; border-radius: 50%; }
.bp-sim-q-aviso { background: var(--sim-navy); border-radius: 12px; }
.bp-sim-q-contexto { background: var(--sim-light); border: 1px solid var(--sim-border); border-radius: 14px; font-size: .96rem; }
.bp-sim-q-contexto::before { content: 'Contexto compartido'; color: var(--sim-muted); }
.bp-sim-q-enunciado { background: transparent; border: 0; border-radius: 0; padding: 0; margin-bottom: 20px; font-size: 1.08rem; line-height: 1.7; }
.bp-sim-q-enunciado p { margin: 0 0 .8em; color: inherit; line-height: inherit; }
.bp-md-table th { background: var(--sim-navy); }
.bp-sim-options { gap: 12px; }
.bp-sim-option { border: 1.5px solid var(--sim-border); border-radius: 14px; padding: 14px 18px; min-height: 56px; align-items: center; }
.bp-sim-option:hover { border-color: var(--sim-blue); background: #F7F7FD; }
.bp-sim-option-letter { border: 2px solid #9AA3B2; background: #fff; color: var(--sim-muted); }
.bp-sim-option-text { font-size: 1.02rem; line-height: 1.5; padding-top: 0; }
.bp-sim-option-text p { margin: 0; color: inherit; line-height: inherit; }
.bp-sim-option.bp-selected { border-color: var(--sim-blue); background: #F7F7FD; }
.bp-sim-option.bp-selected .bp-sim-option-letter { background: var(--sim-blue); border-color: var(--sim-blue); color: #fff; }
.bp-sim-option.bp-correct { border-color: var(--sim-green); background: #E4F3EB; }
.bp-sim-option.bp-wrong { border-color: var(--sim-red); background: #FBEAE8; }
.bp-q-explicacion, .bp-review-explicacion { background: var(--sim-light); border: 0; border-radius: 0 0 14px 14px; }
.bp-q-exp-toggle { background: var(--sim-light); border: 0; border-radius: 14px; color: var(--sim-blue); }
.bp-q-exp-toggle:hover { background: var(--sim-pro-bg); }
.bp-q-exp-toggle.is-open { border-radius: 14px 14px 0 0; }
.bp-resp-correcta { background: #E4F3EB; border-left: 0; border-radius: 10px; color: #0B5C38; }

/* ---- Botonera ---- */
.bp-sim-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 20px 0 0; padding-top: 22px; border-top: 1px solid var(--sim-border); }
.bp-btn-flag { padding: 0 16px; background: #fff; color: var(--sim-text); border: 1.5px solid var(--sim-border); font-size: .9rem; }
.bp-btn-flag:hover { background: var(--sim-light); }
.bp-btn-flag.is-on { background: #FFF1D6; border-color: #E0A93A; color: #7A4B00; }
.bp-modo-ingles #bp-btn-flag { display: none; }
.bp-sim-submit-wrap { border-top: 0; margin-top: 18px; padding-top: 0; }
.bp-sim-submit-hint { color: var(--sim-muted); }

/* ---- Examen con varias áreas: paleta lateral + tarjeta de la pregunta ---- */
.bp-modo-mixto .bp-areas { display: grid; grid-template-columns: 320px minmax(0, 1fr); grid-template-rows: repeat(8, auto) 1fr; column-gap: 32px; align-items: start; gap: 0 32px; margin-bottom: 0; }
.bp-modo-mixto .bp-area, .bp-modo-mixto .bp-area-panel:not(.bp-sim-hidden) { display: contents; }
.bp-modo-mixto .bp-area-head { grid-column: 1; margin-bottom: 8px; border-radius: 14px; padding: 0 14px; min-height: 52px; font-size: .95rem; background: #fff; color: var(--sim-text); }
.bp-modo-mixto .bp-area-head:hover { background: var(--sim-light); }
.bp-modo-mixto .bp-area-nombre { font-size: .95rem; font-weight: 800; }
.bp-modo-mixto .bp-area-panel .bp-sim-palette { grid-column: 1; background: var(--sim-light); border-radius: 14px; padding: 16px; margin: -2px 0 12px; }
.bp-modo-mixto .bp-area-preguntas { grid-column: 2; grid-row: 1 / -1; border: 1px solid var(--sim-border); border-radius: 20px; padding: 32px; }
.bp-modo-mixto .bp-area-preguntas .bp-sim-question { border: 0; padding: 0; margin: 0; border-radius: 0; }
/* Inglés: los botones «Parte N» van bajo el título del área (como la paleta de las otras áreas) y las partes en la tarjeta de la derecha */
.bp-modo-mixto .bp-area-panel #bp-ing-tabs { grid-column: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; background: var(--sim-light); border-radius: 14px; padding: 16px; margin: -2px 0 12px; }
.bp-modo-mixto .bp-area-panel #bp-ing-tabs .bp-ing-tab { min-width: 0; padding: 8px 6px; }
.bp-modo-mixto .bp-area-panel #bp-ing-sections { grid-column: 2; grid-row: 1 / -1; min-width: 0; border: 1px solid var(--sim-border); border-radius: 20px; padding: 32px; }
.bp-modo-mixto .bp-area[data-area="ingles"] .bp-ing-sec { border: 0; box-shadow: none; padding: 0; margin-bottom: 0; }
.bp-area-head.is-open { background: var(--sim-blue); border-color: var(--sim-blue); color: #fff; }
.bp-modo-mixto .bp-area-head.is-open { background: var(--sim-blue); color: #fff; }
.bp-area.is-completa .bp-area-cont { background: #E4F3EB; color: #0B5C38; }

/* ---- Resultados ---- */
.bp-rhero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.bp-rscore { display: flex; align-items: baseline; gap: 12px; margin: 22px 0 6px; flex-wrap: wrap; }
.bp-rscore b { font-size: 5rem; font-weight: 800; letter-spacing: -.05em; line-height: 1; color: var(--sim-blue); }
.bp-rscore > span { font-size: 1.2rem; font-weight: 700; color: var(--sim-muted); }
.bp-rcta { flex-wrap: wrap; }
.bp-rareas .bp-bars { margin-top: 22px; }
.bp-rrev { margin-top: 40px; }
.bp-rrev .bp-sim-review { margin-top: 20px; }
.bp-sim-review .bp-ing-rev-titulo { display: none; }
.bp-rev-areas { display: flex; flex-wrap: wrap; gap: 8px; }
.bp-rev-area { display: contents; }
.bp-rev-area-head { order: 1; width: auto; flex: none; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--sim-border); border-radius: 999px; background: #fff; color: var(--sim-text); gap: 8px; }
.bp-rev-area-head .bp-area-nombre { flex: none; font-size: .9rem; }
.bp-rev-area-head .bp-area-cont { background: transparent; padding: 0; color: var(--sim-muted); font-size: .85rem; }
.bp-rev-area-head .bp-area-flecha { display: none; }
.bp-rev-area-head.is-open { background: var(--sim-navy); border-color: var(--sim-navy); color: #fff; }
.bp-rev-area-head.is-open .bp-area-cont { background: transparent; color: #D6DAE3; }
.bp-rev-area-body { order: 2; flex: 0 0 100%; width: 100%; padding: 14px 0 0; }
.bp-rev-palette { margin-bottom: 24px; }
.bp-rev-sq { width: auto; height: 44px; min-height: 44px; border-radius: 10px; font-size: .88rem; }
.bp-rev-sq--ok { background: #E4F3EB; border-color: #9AD3B4; color: #0B5C38; }
.bp-rev-sq--bad { background: var(--sim-red); border-color: var(--sim-red); color: #fff; }
.bp-rev-sq.is-active { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--sim-navy); }
.bp-rev-preguntas .bp-sim-question { border: 0; padding: 0; }
.bp-rev-nav { padding-top: 22px; }
.bp-rev-nav .bp-sim-btn:disabled { opacity: .4; }
.bp-sim-review .bp-ing-tab { border-radius: 999px; }

/* ---- Responsive ---- */
@media (max-width: 980px) {
    .bp-pgrid, .bp-rhero { grid-template-columns: 1fr; }
    .bp-rhero { gap: 28px; }
    .bp-modo-mixto .bp-areas { grid-template-columns: 1fr; grid-template-rows: none; }
    .bp-modo-mixto .bp-area-preguntas { grid-column: 1; grid-row: auto; order: -1; margin-bottom: 20px; }
    .bp-modo-mixto .bp-area-panel #bp-ing-sections { grid-column: 1; grid-row: auto; order: -1; margin-bottom: 20px; }
}
@media (max-width: 760px) {
    .page-main:has(.bp-sim-wrap) { padding: 0 16px; margin-top: 20px; }
    .bp-card { padding: 20px; border-radius: 18px; }
    .bp-facts { gap: 8px; }
    .bp-fact { padding: 14px 8px; }
    .bp-fact b { font-size: 1.2rem; }
    .bp-sim-acciones { flex-direction: column; align-items: stretch; }
    .bp-sim-acciones .bp-sim-btn { width: 100%; }
    .bp-xmode, .bp-btn-salir, .bp-xlogo span { display: none; }
    .bp-sim-quiz-header { gap: 10px; }
    .bp-sim-question, .bp-modo-mixto .bp-area-preguntas, .bp-modo-mixto .bp-area-panel #bp-ing-sections { padding: 20px; }
    .bp-modo-mixto .bp-area-preguntas .bp-sim-question { padding: 0; }
    .bp-sim-nav { flex-wrap: wrap; }
    .bp-sim-nav .bp-sim-btn-outline, .bp-sim-nav .bp-sim-btn-primary { flex: 1; }
    .bp-btn-flag { order: 3; flex: 0 0 100%; }
    .bp-rscore b { font-size: 3.6rem; }
    .bp-gate-card { padding: 32px 22px; }
}

/* Durante el examen no se ofrece la explicación (con la respuesta correcta); se ve en la revisión, al entregar */
#bp-screen-quiz .bp-q-exp-toggle, #bp-screen-quiz .bp-q-explicacion { display: none !important; }

/* ---- Inglés: las respuestas usan el estilo de las demás áreas (esquinas redondeadas y selección en índigo, no en gris) ---- */
.bp-ing-pill.bp-sim-option { border: 1.5px solid var(--sim-border); border-radius: 12px; background: #fff; box-shadow: none; }
.bp-ing-pill .bp-ing-pill-l { color: var(--sim-muted); font-weight: 800; }
.bp-ing-pill.bp-sim-option:hover { border-color: var(--sim-blue); background: #F7F7FD; }
.bp-ing-pill.bp-sim-option:hover .bp-ing-pill-l { color: var(--sim-blue); }
.bp-ing-pill.bp-sim-option.bp-selected { border-color: var(--sim-blue); background: var(--sim-blue); box-shadow: none; }
.bp-ing-pill.bp-sim-option.bp-selected .bp-ing-pill-l { color: #fff; }
.bp-ing-pill--texto.bp-sim-option.bp-selected { background: #F7F7FD; border-color: var(--sim-blue); }
.bp-ing-pill--texto.bp-sim-option.bp-selected .bp-ing-pill-l { color: var(--sim-blue); }
.bp-ing-pill--texto.bp-sim-option.bp-selected .bp-ing-pill-t { font-weight: 700; color: var(--sim-navy); }
.bp-ing-pill--fijo { border: 1.5px solid var(--sim-border); border-radius: 10px; }
.bp-ing-pill--fijo.is-marcada { background: var(--sim-blue); border-color: var(--sim-blue); box-shadow: none; }
.bp-ing-pill--fijo.is-marcada .bp-ing-pill-l { color: #fff; }
.bp-ing-pregunta .bp-sim-option:hover { border-color: var(--sim-blue); background: #F7F7FD; }
.bp-ing-pregunta .bp-sim-option.bp-selected { border-color: var(--sim-blue); background: #F7F7FD; box-shadow: none; }
.bp-ing-pregunta .bp-sim-option.bp-selected .bp-sim-option-letter { background: var(--sim-blue); border-color: var(--sim-blue); color: #fff; }
.bp-ing-barra-pill { border-radius: 12px; }
/* revisión: acierto y error siguen en verde y rojo */
.bp-ing-pill.bp-sim-option.bp-correct { background: #E4F3EB; border-color: var(--sim-green); box-shadow: none; }
.bp-ing-pill.bp-sim-option.bp-correct .bp-ing-pill-l { color: #0B5C38; }
.bp-ing-pill.bp-sim-option.bp-wrong { background: #FBEAE8; border-color: var(--sim-red); box-shadow: none; }
.bp-ing-pill.bp-sim-option.bp-wrong .bp-ing-pill-l { color: var(--sim-red); }
.bp-ing-pregunta .bp-sim-option.bp-correct { background: #E4F3EB; border-color: var(--sim-green); box-shadow: none; }
.bp-ing-pregunta .bp-sim-option.bp-wrong { background: #FBEAE8; border-color: var(--sim-red); box-shadow: none; }
.bp-ing-pill--texto.bp-sim-option.bp-selected { box-shadow: 0 0 0 1px var(--sim-blue); }
.bp-ing-pill--texto.bp-sim-option.bp-selected .bp-ing-pill-l { background: var(--sim-blue); color: #fff; border-radius: 10px 0 0 10px; align-self: stretch; display: flex; align-items: center; justify-content: center; }

/* Inglés: respuestas redondas */
.bp-ing-pill.bp-sim-option { border-radius: 999px; }
.bp-ing-pill--fijo { border-radius: 50%; }
.bp-ing-barra-pill { border-radius: 999px; }
.bp-ing-pill--texto.bp-sim-option.bp-selected .bp-ing-pill-l { border-radius: 50%; align-self: center; width: 28px; height: 28px; margin-left: 3px; }

/* Inglés: solo las respuestas de una letra (A, B, C) son redondas; las que llevan palabra (Partes 4 y 7) siguen semicuadradas */
.bp-ing-pill--texto.bp-sim-option { border-radius: 12px; }
.bp-ing-pill--texto.bp-sim-option.bp-selected .bp-ing-pill-l { border-radius: 10px 0 0 10px; align-self: stretch; width: 34px; height: auto; margin-left: 0; }

/* Los círculos de respuesta de Inglés no heredan la altura mínima de las opciones grandes (por eso salían ovalados) */
.bp-ing-pill.bp-sim-option { min-height: 36px; height: 36px; padding: 0; }
.bp-ing-pill--texto.bp-sim-option { padding: 0 14px 0 0; }
@media (max-width: 540px) { .bp-ing-pill.bp-sim-option { min-height: 32px; height: 32px; } }

/* ==========================================================================
   Temas de repaso · enlace en la explicación y modal (diseño 2.0)
   ========================================================================== */
.bp-temas-link { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--sim-border); }
.bp-temas-label { margin: 0 0 12px; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--sim-blue); }
.bp-temas-list { display: grid; gap: 10px; align-items: stretch; }
.bp-tema-btn { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 10px 16px 10px 12px; background: #fff; border: 1.5px solid var(--sim-border); border-radius: 14px; color: var(--sim-text); cursor: pointer; text-align: left; font-size: 1rem; font-weight: 400; transition: border-color .15s, background .15s; }
.bp-tema-btn:hover, .bp-tema-btn:focus-visible { background: #F7F7FD; color: var(--sim-text); border-color: var(--sim-blue); outline: none; }
.bp-tema-btn:focus-visible { box-shadow: 0 0 0 3px var(--sim-pro-bg); }
.bp-tl-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.bp-tl-t { flex: 1; min-width: 0; display: grid; gap: 2px; font-weight: 800; line-height: 1.3; }
.bp-tl-t small { font-weight: 700; font-size: .78rem; color: var(--sim-muted); }
.bp-tl-arr { flex: none; color: var(--sim-blue); transition: transform .15s; }
.bp-tema-btn:hover .bp-tl-arr { transform: translateX(3px); }

.bp-tema-backdrop { background: rgba(15, 23, 42, .58); }
.bp-tema-modal { padding: 32px; }
.bp-tema-dialog { max-width: 880px; max-height: 100%; border-radius: 24px; box-shadow: 0 24px 64px rgba(15, 23, 42, .32); overflow: hidden; color: var(--sim-text); }
.bp-tema-head { display: flex; align-items: center; gap: 16px; padding: 20px 20px 20px 28px; background: #fff; color: var(--sim-text); border-radius: 0; border-bottom: 1px solid var(--sim-border); }
.bp-tema-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.bp-tema-ttl { min-width: 0; }
.bp-tema-tag { display: block; font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 2px; }
.bp-tema-head h3 { margin: 0; padding: 0; border: 0; font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.2; color: var(--sim-navy); }
.bp-tema-close { margin-left: auto; width: 44px; height: 44px; flex: none; display: grid; place-items: center; padding: 0; border: 1.5px solid var(--sim-border); border-radius: 12px; background: #fff; color: var(--sim-text); cursor: pointer; font-size: 1rem; }
.bp-tema-close:hover { background: var(--sim-light); }
.bp-tema-body { flex: 1; min-height: 0; padding: 6px 28px 24px; font-size: 1.02rem; line-height: 1.75; color: #1E293B; }
.bp-tema-body h3 { margin: 26px 0 10px; padding: 0; border: 0; font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.3; color: var(--sim-navy); }
.bp-tema-body h3:first-child { margin-top: 20px; }
.bp-tema-body p { margin: 0 0 12px; font-size: inherit; line-height: inherit; color: inherit; }
.bp-tema-body figure { margin: 18px 0; padding: 18px; border: 1px solid var(--sim-border); border-radius: 16px; background: #fff; }
.bp-tema-body figcaption { margin-top: 12px; font-size: .88rem; color: var(--sim-muted); font-style: normal; line-height: 1.5; }
.bp-tema-table { margin: 16px 0; border: 1px solid var(--sim-border); border-radius: 14px; overflow-x: auto; }
.bp-tema-body table { width: 100%; font-size: .98rem; }
.bp-tema-body th { background: var(--sim-light); color: var(--sim-muted); font-size: .8rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 12px 16px; border: 0; }
.bp-tema-body td { padding: 13px 16px; border: 0; border-top: 1px solid var(--sim-border); line-height: 1.5; }
.bp-tema-body ul { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 10px; }
.bp-tema-body ul li { position: relative; padding-left: 22px; margin: 0; }
.bp-tema-body ul li::before { content: ""; position: absolute; left: 4px; top: .75em; width: 7px; height: 7px; border-radius: 50%; background: var(--sim-blue); }
.bp-tema-body ul li > p { margin: 0; }
.bp-tema-body p.bp-tema-idea { background: var(--sim-pro-bg); border-radius: 16px; padding: 18px 20px; margin: 18px 0; color: var(--sim-navy); }
.bp-tema-idea-t { display: block; margin-bottom: 6px; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--sim-blue); }
.bp-tema-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 28px; border-top: 1px solid var(--sim-border); background: #fff; }
.bp-tema-hint { font-size: .88rem; color: var(--sim-muted); font-weight: 600; }
.bp-tema-hint kbd { font-family: inherit; font-size: .8rem; font-weight: 800; border: 1.5px solid var(--sim-border); border-radius: 6px; padding: 1px 6px; background: var(--sim-light); }
@media (max-width: 760px) {
    .bp-tema-modal { padding: 0; align-items: flex-end; }
    .bp-tema-dialog { width: 100%; height: auto; max-height: 92vh; border-radius: 24px 24px 0 0; }
    .bp-tema-head { padding: 16px 14px 16px 18px; gap: 12px; }
    .bp-tema-ic { width: 40px; height: 40px; }
    .bp-tema-head h3 { font-size: 1.25rem; }
    .bp-tema-body { padding: 2px 18px 20px; }
    .bp-tema-foot { padding: 14px 18px; }
    .bp-tema-hint { display: none; }
    .bp-tema-foot .bp-sim-btn { width: 100%; }
    .bp-tema-body th, .bp-tema-body td { padding: 10px 12px; }
}

/* ==========================================================================
   Respuestas con imagen en cuadrícula 2 × 2 (A y B arriba, C y D abajo)
   ========================================================================== */
.bp-sim-options:has(.bp-sim-option--has-img) { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ==========================================================================
   Acordeón de áreas: apertura y cierre suaves
   ========================================================================== */
@keyframes bp-pal-in  { from { max-height: 0; opacity: 0; padding-top: 0; padding-bottom: 0; margin-top: 0; margin-bottom: 0; } to { max-height: 800px; opacity: 1; } }
@keyframes bp-pal-out { from { max-height: 800px; opacity: 1; } to { max-height: 0; opacity: 0; padding-top: 0; padding-bottom: 0; margin-top: 0; margin-bottom: 0; } }
@keyframes bp-fade-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes bp-q-in    { from { opacity: 0; } to { opacity: 1; } }

.bp-modo-mixto .bp-area-panel > .bp-sim-palette,
.bp-modo-mixto .bp-area-panel > #bp-ing-tabs { overflow: hidden; }
.bp-modo-mixto .bp-area-panel:not(.bp-sim-hidden):not(.is-cerrando) > .bp-sim-palette,
.bp-modo-mixto .bp-area-panel:not(.bp-sim-hidden):not(.is-cerrando) > #bp-ing-tabs { animation: bp-pal-in .28s ease backwards; }
.bp-modo-mixto .bp-area-panel:not(.bp-sim-hidden):not(.is-cerrando) > .bp-area-preguntas,
.bp-modo-mixto .bp-area-panel:not(.bp-sim-hidden):not(.is-cerrando) > #bp-ing-sections { animation: bp-fade-in .3s ease backwards; }
/* el área que se cierra pliega su paleta; su tarjeta se oculta de inmediato para no pelear el lugar con la nueva */
.bp-modo-mixto .bp-area-panel.is-cerrando > .bp-sim-palette,
.bp-modo-mixto .bp-area-panel.is-cerrando > #bp-ing-tabs { animation: bp-pal-out .28s ease forwards; }
.bp-modo-mixto .bp-area-panel.is-cerrando > .bp-area-preguntas,
.bp-modo-mixto .bp-area-panel.is-cerrando > #bp-ing-sections { display: none; }
.bp-area-head { transition: background-color .28s ease, color .28s ease, border-color .28s ease; }
.bp-area-flecha { transition: transform .28s ease; }
.bp-sim-question:not(.bp-sim-hidden) { animation: bp-q-in .2s ease; }
@media (prefers-reduced-motion: reduce) {
    .bp-modo-mixto .bp-area-panel > *, .bp-sim-question { animation: none !important; }
}

/* ==========================================================================
   Panel: tres modos (Completo · Por áreas · Temario)
   ========================================================================== */
.bp-main-card { display: block; }
.bp-pane { display: grid; gap: 22px; margin-top: 26px; }
.bp-pane > .bp-muted { margin-top: -14px; }
.bp-pane .bp-sim-acciones { margin: 0; }
.bp-side-grp { display: grid; gap: 24px; }
.bp-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; background: var(--sim-light); border-radius: 14px; }
.bp-seg button { min-height: 46px; border: 0; border-radius: 11px; background: transparent; font-weight: 800; font-size: .95rem; color: var(--sim-muted); cursor: pointer; padding: 0 6px; }
.bp-seg button.on { background: #fff; color: var(--sim-blue); box-shadow: 0 1px 3px rgba(15, 23, 42, .14); }

.bp-optrow { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.bp-optrow-l { font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--sim-muted); }
.bp-optrow-h { flex: 1 0 100%; font-size: .85rem; color: var(--sim-muted); font-weight: 600; line-height: 1.4; }
.bp-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.bp-pill { min-height: 44px; min-width: 56px; padding: 0 16px; border: 1.5px solid var(--sim-border); border-radius: 999px; background: #fff; font-weight: 800; font-size: .92rem; color: var(--sim-text); cursor: pointer; }
.bp-pill:hover { border-color: var(--sim-blue); }
.bp-pill.on { background: var(--sim-blue); border-color: var(--sim-blue); color: #fff; }

.bp-arows-h { display: flex; justify-content: flex-end; font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--sim-muted); margin-bottom: -10px; }
.bp-arows { display: grid; gap: 10px; }
.bp-arow { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto minmax(110px, 150px); align-items: center; gap: 14px; width: 100%; text-align: left; padding: 14px 16px; border: 1.5px solid var(--sim-border); border-radius: 14px; background: #fff; cursor: pointer; color: var(--sim-text); }
.bp-arow.on { border-color: var(--sim-blue); background: #F7F7FD; }
.bp-cbx { width: 24px; height: 24px; border-radius: 7px; border: 2px solid #9AA3B2; display: grid; place-items: center; color: transparent; }
.bp-arow.on .bp-cbx { background: var(--sim-blue); border-color: var(--sim-blue); color: #fff; }
.bp-arow-t b { display: block; font-size: 1rem; font-weight: 800; }
.bp-arow-s { display: block; margin-top: 2px; font-size: .85rem; color: var(--sim-muted); font-weight: 600; }
.bp-tag-rec { background: #FFF1D6; color: #7A4B00; font-weight: 800; font-size: .75rem; padding: 5px 10px; border-radius: 999px; }
.bp-arow-sc { display: flex; align-items: center; gap: 10px; }
.bp-arow-bar { flex: 1; height: 8px; background: var(--sim-light); border-radius: 99px; overflow: hidden; }
.bp-arow-bar i { display: block; height: 100%; border-radius: 99px; }
.bp-arow-sc em { font-style: normal; font-weight: 800; font-size: .85rem; min-width: 40px; text-align: right; }
.bp-arow-sc em.bp-arow-nuevo { color: var(--sim-muted); font-weight: 700; text-align: right; flex: 1; }
.bp-sumbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: var(--sim-light); border-radius: 14px; padding: 16px 18px; }
.bp-sumbar div { font-size: .98rem; color: var(--sim-muted); }
.bp-sumbar b { color: var(--sim-text); }
.bp-sumbar .bp-sim-btn:disabled { opacity: .45; cursor: default; }

.bp-tmr-search { position: relative; }
.bp-tmr-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--sim-muted); pointer-events: none; }
.bp-tmr-search input { width: 100%; min-height: 50px; border: 1.5px solid var(--sim-border); border-radius: 12px; padding: 0 16px 0 46px; font-family: inherit; font-size: 1rem; color: var(--sim-text); background: #fff; box-shadow: none; margin: 0; }
.bp-tmr-search input:focus { outline: none; border-color: var(--sim-blue); box-shadow: 0 0 0 3px var(--sim-pro-bg); }
.bp-tmr-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.bp-tmr-tab { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--sim-border); border-radius: 999px; background: #fff; font-weight: 800; font-size: .9rem; color: var(--sim-text); cursor: pointer; }
.bp-tmr-tab i { width: 10px; height: 10px; border-radius: 50%; }
.bp-tmr-tab em { font-style: normal; color: var(--sim-muted); font-weight: 700; }
.bp-tmr-tab:hover { border-color: var(--sim-navy); }
.bp-tmr-tab.on { background: var(--sim-navy); border-color: var(--sim-navy); color: #fff; }
.bp-tmr-tab.on em { color: #D6DAE3; }
.bp-tmr-count { font-size: .88rem; color: var(--sim-muted); font-weight: 700; margin-bottom: -10px; }
.bp-tmr-list { border: 1px solid var(--sim-border); border-radius: 16px; max-height: 540px; overflow: auto; background: #fff; }
.bp-tmr-row { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 16px; border: 0; border-top: 1px solid var(--sim-border); border-radius: 0; background: #fff; color: var(--sim-text); min-height: 60px; text-align: left; cursor: pointer; }
.bp-tmr-row:first-child { border-top: 0; }
.bp-tmr-row:hover, .bp-tmr-row:focus-visible { background: #F7F7FD; outline: none; }
.bp-tmr-n { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: .85rem; flex: none; font-variant-numeric: tabular-nums; }
.bp-tmr-t { flex: 1; min-width: 0; font-weight: 700; line-height: 1.4; }
.bp-tmr-a { display: none; margin-top: 2px; font-size: .78rem; font-weight: 700; color: var(--sim-muted); }
.bp-tmr-row > svg { color: var(--sim-blue); flex: none; }
.bp-tmr-empty { padding: 28px; text-align: center; color: var(--sim-muted); }
.bp-reco { display: flex; align-items: center; gap: 14px; margin: 16px 0 20px; }
.bp-reco-n { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; font-size: 1.05rem; flex: none; }
.bp-reco .bp-muted { line-height: 1.5; font-size: .95rem; }
@media (max-width: 760px) {
    .bp-seg button { font-size: .88rem; }
    .bp-tmr-list { max-height: 460px; }
    .bp-optrow { align-items: flex-start; flex-direction: column; gap: 10px; }
    .bp-arow { grid-template-columns: 28px minmax(0, 1fr); row-gap: 10px; }
    .bp-arow .bp-tag-rec { grid-column: 2; justify-self: start; grid-row: 2; }
    .bp-arow-sc { grid-column: 1 / -1; }
}

/* Los botones y campos no heredan la tipografía por defecto: sin esto se veían con la fuente del navegador, no con Manrope */
.bp-sim-wrap button, .bp-sim-wrap input, .bp-sim-wrap select, .bp-sim-wrap textarea { font-family: inherit; }

/* Tema abierto desde el temario: no hay pregunta a la que volver, así que no se muestra «Volver a la pregunta» */
.bp-tema-modal.sin-volver .bp-tema-foot .bp-sim-btn { display: none; }
@media (max-width: 760px) { .bp-tema-modal.sin-volver .bp-tema-foot { display: none; } }

/* Móvil: la nota bajo «Tiempo» no debe estirarse (en columna, flex-basis 100% era un alto, no un ancho) */
@media (max-width: 760px) { .bp-optrow-h { flex: 0 0 auto; width: 100%; } }
@media (max-width: 380px) { .bp-seg button { font-size: .84rem; padding: 0 2px; white-space: nowrap; } }


/* ---- Puntaje estimado sobre 500 (como el ICFES) ---- */
.bp-pts { display: grid; gap: 2px; margin: 16px 0 6px; }
.bp-pts-l, .bp-rlabel { font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--sim-blue); }
.bp-pts-n { display: flex; align-items: baseline; gap: 8px; }
.bp-pts-n b { font-size: 4rem; font-weight: 800; letter-spacing: -.05em; line-height: 1; color: var(--sim-blue); }
.bp-pts-n span { font-size: 1.4rem; font-weight: 700; color: var(--sim-muted); }
.bp-sim-wrap .bp-pts-s { margin: 6px 0 0; color: var(--sim-muted); font-weight: 700; font-size: .95rem; line-height: 1.4; }
.bp-bar-t b { color: var(--sim-text); font-weight: 800; }
.bp-arow-sc em { min-width: 56px; }
.bp-rlabel { display: block; margin-top: 22px; }
.bp-rlabel + .bp-rscore { margin-top: 6px; }
.bp-rscore + .bp-pts-s { margin: 0 0 4px; }

/* ==========================================================================
   Temas abiertos · ejemplos resueltos con cuadros numerados y errores comunes (2026-10-28)
   ========================================================================== */
.bp-ejs-sq:focus-visible, .bp-ej-prev:focus-visible, .bp-ej-next:focus-visible { outline: 3px solid var(--sim-blue); outline-offset: 3px; }

.bp-ejs { display: flex; flex-direction: column; gap: 14px; margin: 4px 0 8px; }
.bp-tema-body p.bp-ejs-intro { margin: 0; color: var(--sim-muted); font-size: .95rem; font-weight: 600; }
.bp-ejs-pal { display: none; gap: 10px; flex-wrap: wrap; padding: 16px; background: var(--sim-light); border-radius: 18px; }
.bp-ejs.is-js .bp-ejs-pal { display: flex; }
.bp-ejs-sq { width: 56px; height: 56px; padding: 0; border-radius: 14px; border: 1.5px solid var(--sim-border); background: #fff; color: var(--sim-text); font: inherit; font-weight: 800; font-size: 1.1rem; cursor: pointer; }
.bp-ejs-sq:hover { border-color: var(--sim-blue); }
.bp-ejs-sq.is-current { border-color: var(--sim-navy); box-shadow: 0 0 0 2px var(--sim-light), 0 0 0 4px var(--sim-navy); }

.bp-ej { border: 1.5px solid var(--sim-border); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 22px; background: #fff; }
.bp-ejs.is-js .bp-ej { display: none; }
.bp-ejs.is-js .bp-ej.is-current { display: flex; }
.bp-ej-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bp-ej-n { background: var(--sim-pro-bg); color: var(--sim-blue); font-weight: 800; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.bp-ej-comp { color: var(--sim-muted); font-weight: 600; font-size: .9rem; }
.bp-tema-body h4.bp-ej-title { margin: 0; font-size: 1.35rem; line-height: 1.25; font-weight: 800; letter-spacing: -.01em; color: var(--sim-navy); }
.bp-ej-ctx > :last-child { margin-bottom: 0; }
.bp-ej-label { display: block; margin-bottom: 8px; font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--sim-blue); }
.bp-tema-body p.bp-ej-qt { margin: 0 0 12px; font-size: 1.15rem; line-height: 1.45; font-weight: 700; color: var(--sim-navy); }

/* opciones ya resueltas: la correcta resaltada, las demás atenuadas */
.bp-ej-opts { display: flex; flex-direction: column; gap: 10px; }
.bp-ej-opt { display: flex; align-items: center; gap: 14px; box-sizing: border-box; padding: 10px 16px; min-height: 56px; border-radius: 14px; border: 2px solid var(--sim-border); background: #fff; }
.bp-ej-let { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--sim-light); color: var(--sim-muted); font-weight: 800; font-size: .95rem; }
.bp-ej-ot { flex: 1; min-width: 0; font-size: 1.05rem; font-weight: 500; line-height: 1.45; color: #3A4457; }
.bp-ej-opt.is-ok { border-color: var(--sim-green); background: #E6F4F1; }
.bp-ej-opt.is-ok .bp-ej-let { background: var(--sim-green); color: #fff; }
.bp-ej-opt.is-ok .bp-ej-ot { font-weight: 700; color: var(--sim-text); }
.bp-ej-tag { flex: none; display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: .88rem; color: #0B5D55; }
.bp-ej-tag svg { color: var(--sim-green); }

/* procedimiento */
.bp-ej-steps { display: flex; flex-direction: column; gap: 12px; background: var(--sim-light); border-radius: 16px; padding: 18px 20px; }
.bp-ej-steps .bp-ej-label { margin: 0; }
.bp-ej-steps ol { list-style: none; counter-reset: ej; padding: 0; margin: 0; display: grid; gap: 12px; }
.bp-ej-steps li { counter-increment: ej; display: flex; gap: 14px; align-items: flex-start; margin: 0; }
.bp-ej-steps li::before { content: counter(ej); flex: none; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 1.5px solid #C9C8EE; color: var(--sim-blue); font-weight: 800; font-size: .9rem; display: grid; place-items: center; margin-top: 1px; box-sizing: border-box; }
.bp-ej-steps li > p { flex: 1; min-width: 0; }
.bp-ej-notes { border-top: 1px solid var(--sim-border); padding-top: 14px; }
.bp-ej-notes ul { margin: 0; }
.bp-ej-notes ul li::before { background: #CBD2DC; }
.bp-ej-notes .bp-ej-label { color: var(--sim-muted); }

.bp-ej-act { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--sim-border); padding-top: 20px; }
.bp-ejs:not(.is-js) .bp-ej-act { display: none; }
.bp-ej-prev, .bp-ej-next { min-height: 48px; padding: 0 22px; border-radius: 12px; font: inherit; font-weight: 800; cursor: pointer; }
.bp-ej-prev { border: 2px solid var(--sim-border); background: #fff; color: var(--sim-text); }
.bp-ej-prev:hover:not(:disabled) { background: var(--sim-light); }
.bp-ej-next { border: 0; background: var(--sim-blue); color: #fff; }
.bp-ej-next:hover:not(:disabled) { background: var(--sim-navy); }
.bp-ej-prev:disabled, .bp-ej-next:disabled { opacity: .45; cursor: default; }

.bp-tema-body ul.bp-tema-errores { gap: 10px; }
.bp-tema-body ul.bp-tema-errores li { padding: 14px 16px 14px 52px; background: #FEF3F2; border-radius: 14px; }
.bp-tema-body ul.bp-tema-errores li::before { left: 16px; top: 15px; width: 22px; height: 22px; border-radius: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B42318' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l10 18H2z'/%3E%3Cpath d='M12 10v5M12 18.2v.1'/%3E%3C/svg%3E") center / contain no-repeat; }

@media (max-width: 760px) {
    .bp-ejs-pal { gap: 8px; padding: 14px; }
    .bp-ejs-sq { width: 48px; height: 48px; }
    .bp-ej { padding: 18px; border-radius: 18px; gap: 20px; }
    .bp-tema-body h4.bp-ej-title { font-size: 1.2rem; }
    .bp-ej-opt { flex-wrap: wrap; }
    .bp-ej-tag { flex-basis: 100%; padding-left: 48px; }
    .bp-ej-act { flex-direction: column-reverse; align-items: stretch; }
}
@media (prefers-reduced-motion: no-preference) { .bp-tema-body { scroll-behavior: smooth; } }

/* El diálogo no debe poder desplazarse: los elementos absolutos de KaTeX (.katex-mathml) se posicionaban respecto al diálogo
   y le daban miles de px de desbordamiento, de modo que un desplazamiento interno sacaba la cabecera de la vista (2026-10-28). */
.bp-tema-body { position: relative; }
.bp-tema-dialog { overflow: hidden; overflow: clip; }

/* Más espacio sobre cada título de sección del tema (2026-10-28) */
.bp-tema-body h3 { margin-top: 48px; }
.bp-tema-body h3:first-child { margin-top: 20px; }
@media (max-width: 760px) { .bp-tema-body h3 { margin-top: 38px; } }

/* Tarjeta principal sin borde ni relleno en pantallas pequeñas (2026-10-30) */
@media (max-width: 760px) { .bp-card.bp-main-card { border: 0; padding: 0; } }

/* Preguntas del modo mixto sin borde ni relleno en pantallas pequeñas (2026-10-30) */
@media (max-width: 760px) { .bp-modo-mixto .bp-area-preguntas { border: 0; padding: 0; } }

/* Barra del examen y barra de administración de WordPress (solo si hay sesión de administrador):
   escritorio → barra fija de 32 px; 601–782 px → fija de 46 px; ≤600 px → no es fija (se va al hacer scroll), así que no hay que dejar hueco (2026-10-30) */
@media (max-width: 782px) { body.admin-bar .bp-sim-quiz-header { top: 46px; } }
@media (max-width: 600px) { body.admin-bar .bp-sim-quiz-header { top: 0; } }

/* ---- Pausar y continuar (2026-10-29) ---- */
.bp-btn-pausar { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; background: var(--sim-pro-bg); color: var(--sim-blue); border: 2px solid var(--sim-blue); border-radius: 12px; font-size: .95rem; }
.bp-btn-pausar:hover { background: #DDDFF8; }
.bp-btn-pausar svg { flex: none; }
@media (max-width: 760px) {
    .bp-btn-pausar { width: 44px; padding: 0; }
    .bp-btn-pausar span { display: none; }
}

/* diálogo de confirmación */
body.bp-pausa-abierta { overflow: hidden; }
.bp-pausa-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(15, 23, 42, .6); }
.bp-pausa-dlg { width: 520px; max-width: 100%; max-height: 100%; overflow-y: auto; box-sizing: border-box; background: #fff; border-radius: 24px; padding: 32px; box-shadow: 0 24px 64px rgba(15, 23, 42, .32); display: flex; flex-direction: column; gap: 20px; }
.bp-pausa-dlg p { margin: 0; font-size: 1.05rem; line-height: 1.6; color: #3A4457; }
.bp-pausa-dlg-h { display: flex; align-items: center; gap: 14px; }
.bp-pausa-dlg-h h2 { margin: 0; font-size: 1.5rem; line-height: 1.2; font-weight: 800; letter-spacing: -.02em; color: var(--sim-navy); }
.bp-pausa-ico { flex: none; width: 52px; height: 52px; border-radius: 14px; background: var(--sim-pro-bg); color: var(--sim-blue); display: flex; align-items: center; justify-content: center; }
.bp-pausa-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bp-pausa-stats div { background: var(--sim-light); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.bp-pausa-stats b, .bp-pausa-stats small { color: var(--sim-navy); }
.bp-pausa-stats b { font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em; }
.bp-pausa-stats small { font-size: .95rem; font-weight: 700; color: var(--sim-muted); }
.bp-pausa-stats span { font-size: .85rem; font-weight: 600; color: var(--sim-muted); }
.bp-pausa-dlg p.bp-pausa-nota, .bp-pausa p.bp-pausa-nota { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; line-height: 1.5; }
.bp-pausa-nota svg { flex: none; margin-top: 2px; color: var(--sim-green); }
.bp-pausa-btns { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 4px; }
.bp-pausa-btns .bp-sim-btn { flex: 1 1 200px; min-height: 52px; padding: 0 20px; font-size: 1rem; border-radius: 12px; }
@media (max-width: 480px) { .bp-pausa-dlg { padding: 24px 20px; } }

/* tarjeta del panel: examen en pausa */
.bp-pausa { margin-top: 28px; display: flex; flex-direction: column; gap: 18px; }
.bp-pausa-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.bp-pausa-tag { display: inline-flex; align-items: center; gap: 8px; background: #FFF1DB; color: #8A4B00; font-weight: 800; font-size: .8rem; letter-spacing: .05em; text-transform: uppercase; padding: 7px 14px; border-radius: 999px; }
.bp-sim-wrap .bp-pausa-t { margin: 0; font-size: 1.6rem; line-height: 1.2; font-weight: 800; letter-spacing: -.02em; color: var(--sim-navy); }
.bp-pausa .bp-muted { margin: 0; }
.bp-pausa .bp-fact b small { font-size: .6em; font-weight: 700; color: var(--sim-muted); letter-spacing: 0; }
.bp-pausa-prog { height: 10px; border-radius: 999px; background: var(--sim-border); overflow: hidden; }
.bp-pausa-prog i { display: block; height: 100%; background: var(--sim-blue); border-radius: 999px; }
.bp-pausa-areas { list-style: none; margin: -6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .88rem; font-weight: 700; color: #3A4457; }
.bp-pausa-areas li { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.bp-pausa-areas i { width: 10px; height: 10px; border-radius: 50%; }
.bp-pausa .bp-sim-acciones { margin: 0; justify-content: flex-start; }
.bp-pausa .bp-sim-acciones a.bp-sim-btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
@media (max-width: 760px) { .bp-sim-wrap .bp-pausa-t { font-size: 1.3rem; } }
