/* ==========================================================================
   Banquea - Estilo general de la plataforma (todas las pestañas)
   Paleta: #02555b principal · #01191b menú · #01897B acento · #34D9C0 menta · #010822 marino
   Va en un archivo aparte porque Vue elimina los <style> dentro de #app.
   ========================================================================== */

:root { --pu-teal: #02555b; --pu-teal2: #01897B; --pu-mint: #34D9C0; --pu-deep: #01191b; --pu-ink: #0d2d30; --pu-muted: #5c7578; --pu-line: #e3eeee;
  --pu-shadow: 0 12px 32px rgba(1, 25, 27, .2); }

/* ---------- Fondo general ---------- */
.app-main { background: radial-gradient(1100px 520px at 85% -8%, rgba(52, 217, 192, .14), transparent 60%),
  radial-gradient(900px 500px at 0% 100%, rgba(1, 137, 123, .25), transparent 65%), linear-gradient(180deg, #02555b 0%, #013f44 100%) !important; }
.app-main ::selection { background: rgba(52, 217, 192, .35); }

/* ---------- Cabecera superior ---------- */
header.navbar.sticky-top { background: linear-gradient(90deg, #02555b, #01191b) !important; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); border-bottom: 1px solid rgba(52, 217, 192, .12); }
header.navbar .btn.btn-dark { border-radius: 999px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .08) !important; font-weight: 500; transition: background .15s ease, transform .15s ease; }
header.navbar .btn.btn-dark:hover { background: rgba(255, 255, 255, .18) !important; transform: translateY(-1px); }

/* ---------- Menú lateral ---------- */
.app-navbar { background: linear-gradient(180deg, #01191b 0%, #011214 100%) !important; border-right: 1px solid rgba(52, 217, 192, .08); box-shadow: 6px 0 24px rgba(0, 0, 0, .25) !important; }
.app-navbar .nav-item { margin-bottom: 6px !important; }
.app-navbar .nav-link { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 14px !important; color: rgba(255, 255, 255, .72) !important;
  font-weight: 400; position: relative; transition: background .18s ease, color .18s ease, transform .18s ease; }
.app-navbar .nav-link i { width: 26px; text-align: center; font-size: 1.15rem !important; color: #6fbfb8; transition: color .18s ease; }
.app-navbar .nav-link:hover { background: rgba(52, 217, 192, .1) !important; color: #fff !important; transform: translateX(3px); }
.app-navbar .nav-link:hover i { color: var(--pu-mint); }
.app-navbar .active > .nav-link, .app-navbar .nav-link.active { background: linear-gradient(90deg, rgba(52, 217, 192, .22), rgba(52, 217, 192, .05)) !important; color: #fff !important; font-weight: 600; }
.app-navbar .active > .nav-link i, .app-navbar .nav-link.active i { color: var(--pu-mint); }
.app-navbar .active > .nav-link::before, .app-navbar .nav-link.active::before { content: ""; position: absolute; left: -12px; top: 18%; bottom: 18%; width: 4px; border-radius: 4px; background: var(--pu-mint); }
.app-navbar .badge { border-radius: 999px; }

/* ---------- Título de cada página ---------- */
.pu-hero { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 8px 0 22px; padding: 22px 26px; border-radius: 24px; color: #fff;
  background: linear-gradient(120deg, #010822 0%, #01191b 45%, #02555b 100%); border: 1px solid rgba(52, 217, 192, .18); box-shadow: var(--pu-shadow); }
.pu-hero::before { content: ""; position: absolute; width: 320px; height: 320px; right: -90px; top: -150px; border-radius: 50%; border: 1px solid rgba(52, 217, 192, .35); box-shadow: 0 0 0 40px rgba(52, 217, 192, .04); pointer-events: none; }
.pu-hero-main { position: relative; z-index: 1; min-width: 0; }
.pu-hero-title { margin: 0; font-size: 1.5rem; font-weight: 700; color: #fff; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.pu-hero-desc { margin: 4px 0 0; color: #a9cfcf; font-weight: 300; font-size: .95rem; }
.pu-back { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .3); color: #fff; font-size: .78rem; font-weight: 500; text-decoration: none; transition: background .15s ease; }
.pu-back:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.pu-hero-ico { position: relative; z-index: 1; flex: 0 0 52px; height: 52px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.6rem; color: var(--pu-mint);
  background: rgba(52, 217, 192, .12); border: 1px solid rgba(52, 217, 192, .25); }

/* ---------- Tarjetas ---------- */
.app-main .card { border: 0; border-radius: 22px; box-shadow: 0 10px 28px rgba(1, 25, 27, .18); }
.app-main .card.bg-dark, .app-main .card.bg-dark .card-body { color: #fff; }
.app-main .card.bg-dark { background: linear-gradient(160deg, #012a2d 0%, #01191b 100%) !important; border: 1px solid rgba(52, 217, 192, .12); }
.app-main .card h3, .app-main .card h4, .app-main .card h5 { letter-spacing: -.01em; }
.app-main .card-header { background: transparent; border-bottom: 1px solid var(--pu-line); font-weight: 600; }
.app-main .animate__bounceIn, .app-main .animate__bounceInUp { animation: none !important; }

/* ---------- Botones ---------- */
.app-main .btn { font-weight: 600; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.app-main .btn:hover { transform: translateY(-2px); }
.app-main .btn-primary { background: linear-gradient(135deg, #02555b 0%, #01897B 100%); border: 0; box-shadow: 0 8px 18px rgba(2, 85, 91, .32); }
.app-main .btn-primary:hover, .app-main .btn-primary:focus { background: linear-gradient(135deg, #02666d 0%, #02a08f 100%); box-shadow: 0 12px 24px rgba(2, 85, 91, .4); }
.app-main .btn-outline-primary { border-width: 2px; color: var(--pu-teal); border-color: var(--pu-teal); }
.app-main .btn-outline-primary:hover { background: var(--pu-teal); color: #fff; }
.app-main .btn-warning { box-shadow: 0 8px 18px rgba(255, 193, 7, .28); }
.app-main .btn-success { background: linear-gradient(135deg, #0a9e74, #34c79a); border: 0; }

/* ---------- Formularios ---------- */
.app-main .form-control, .app-main .form-select { border: 2px solid #dbe8e8; border-radius: 14px; background-color: #f9fcfc; }
.app-main .form-control:focus, .app-main .form-select:focus { border-color: var(--pu-teal2); box-shadow: 0 0 0 4px rgba(1, 137, 123, .15); background-color: #fff; }
.app-main .form-check-input:checked { background-color: var(--pu-teal2); border-color: var(--pu-teal2); }

/* ---------- Tablas ---------- */
.app-main .table { color: var(--pu-ink); }
.app-main .table > thead > tr > th, .app-main .table thead th { background: #eaf4f4; color: #02555b; font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .03em; border-bottom: 0; }
.app-main .table > :not(caption) > * > * { border-bottom-color: var(--pu-line); padding: .8rem .9rem; }
.app-main .table-hover > tbody > tr:hover > * { background: #f2fafa; }
.app-main .table-responsive { border-radius: 16px; }

/* ---------- Etiquetas, progreso, listas, avisos, pestañas, paginación ---------- */
.app-main .badge { border-radius: 999px; font-weight: 600; padding: .45em .85em; }
.app-main .progress { border-radius: 999px; background: #e3eeee; overflow: hidden; }
.app-main .progress-bar { background: linear-gradient(90deg, #01897B, #34D9C0); }
.app-main .list-group-item { border-color: var(--pu-line); }
.app-main .alert { border: 0; border-radius: 16px; }
.app-main .nav-pills .nav-link.active, .app-main .nav-tabs .nav-link.active { background: var(--pu-teal); color: #fff; border-color: var(--pu-teal); }
.app-main .nav-tabs .nav-link { border-radius: 12px 12px 0 0; color: var(--pu-teal); }
.app-main .page-link { color: var(--pu-teal); border-radius: 10px !important; margin: 0 2px; border: 0; background: #eaf4f4; }
.app-main .page-item.active .page-link { background: var(--pu-teal); color: #fff; }
.app-main .modal-content { border: 0; border-radius: 22px; overflow: hidden; }
.app-main .accordion-item { border-radius: 14px !important; overflow: hidden; }

/* ---------- Inicio (dashboard) ---------- */
.pu-grid { display: grid; gap: 22px; margin-bottom: 22px; }
.pu-grid-main { grid-template-columns: 1fr; }
.pu-grid-tiles { grid-template-columns: 1fr; }
@media (min-width: 992px) { .pu-grid-main { grid-template-columns: 1.55fr 1fr; } .pu-grid-tiles { grid-template-columns: repeat(3, 1fr); } }

.pu-action { position: relative; overflow: hidden; padding: 28px; border-radius: 26px; color: #fff; background: linear-gradient(135deg, #010822 0%, #01191b 40%, #02555b 100%);
  border: 1px solid rgba(52, 217, 192, .2); box-shadow: var(--pu-shadow); }
.pu-action::after { content: ""; position: absolute; width: 360px; height: 360px; right: -110px; bottom: -170px; border-radius: 50%; border: 1px solid rgba(52, 217, 192, .35); box-shadow: 0 0 0 44px rgba(52, 217, 192, .05); pointer-events: none; }
.pu-eyebrow { display: inline-flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; font-weight: 600; color: var(--pu-mint); margin-bottom: 10px; }
.pu-action h2 { position: relative; z-index: 1; font-size: 1.6rem; font-weight: 700; color: #fff; margin: 0 0 10px; }
.pu-action p { position: relative; z-index: 1; color: #cfe6e6; font-weight: 300; max-width: 560px; line-height: 1.65; margin: 0 0 18px; }
.pu-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 12px; }
.pu-cta { display: inline-flex; align-items: center; gap: 8px; padding: .8rem 1.4rem; border-radius: 14px; font-weight: 600; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.pu-cta:hover { transform: translateY(-2px); }
.pu-cta-main { background: linear-gradient(135deg, #34D9C0, #01c9a6); color: #012a2d; box-shadow: 0 12px 26px rgba(52, 217, 192, .35); }
.pu-cta-main:hover { color: #012a2d; box-shadow: 0 16px 32px rgba(52, 217, 192, .45); }
.pu-cta-ghost { background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid rgba(255, 255, 255, .25); }
.pu-cta-ghost:hover { background: rgba(255, 255, 255, .18); color: #fff; }

.pu-news { margin-top: 18px; display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 18px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); position: relative; z-index: 1; }
.pu-news-ico { flex: 0 0 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 193, 7, .16); color: #ffc107; font-size: 1.2rem; }
.pu-news b { color: #fff; }
.pu-news p { margin: 2px 0 0; font-size: .88rem; color: #cfe6e6; }

.pu-panel { background: #fff; border-radius: 26px; padding: 24px; box-shadow: var(--pu-shadow); color: var(--pu-ink); }
.pu-panel-title { display: flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; font-weight: 700; color: var(--pu-teal); margin-bottom: 16px; }
.pu-weak { display: grid; gap: 16px; }
.pu-weak-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pu-weak-cat { font-size: .74rem; color: #7b9496; margin: 0 0 2px; }
.pu-weak-name { font-weight: 600; font-size: .9rem; line-height: 1.3; }
.pu-pill { flex: 0 0 auto; border-radius: 999px; padding: 3px 10px; font-size: .75rem; font-weight: 700; color: #fff; }
.pu-pill.bad { background: #e5484d; } .pu-pill.mid { background: #f5a524; color: #4a3300; } .pu-pill.good { background: #01897B; }
.pu-bar { height: 7px; border-radius: 999px; background: #e3eeee; margin-top: 8px; overflow: hidden; }
.pu-bar > i { display: block; height: 100%; border-radius: 999px; }
.pu-bar .bad { background: #e5484d; } .pu-bar .mid { background: #f5a524; } .pu-bar .good { background: linear-gradient(90deg, #01897B, #34D9C0); }
.pu-empty { text-align: center; color: var(--pu-muted); padding: 18px 6px; }
.pu-empty i { font-size: 2.4rem; color: var(--pu-teal2); display: block; margin-bottom: 8px; }
.pu-panel .pu-link { display: block; text-align: center; margin-top: 18px; padding: .7rem; border-radius: 14px; background: #eaf4f4; color: var(--pu-teal); font-weight: 600; text-decoration: none; transition: background .15s ease; }
.pu-panel .pu-link:hover { background: #d9eeee; }

.pu-tile { display: flex; flex-direction: column; background: #fff; border-radius: 24px; padding: 22px; box-shadow: var(--pu-shadow); color: var(--pu-ink); height: 100%; }
.pu-tile-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.pu-tile-ico { flex: 0 0 44px; height: 44px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem; color: #fff; background: linear-gradient(135deg, #02555b, #01897B); }
.pu-tile h3 { margin: 0; font-size: 1rem; font-weight: 600; }
.pu-big { font-size: 2.6rem; font-weight: 700; line-height: 1; color: var(--pu-teal); }
.pu-tile p { color: var(--pu-muted); margin: 8px 0 16px; font-size: .92rem; }
.pu-tile .btn { margin-top: auto; align-self: flex-start; }
.pu-tile-dark { background: linear-gradient(150deg, #010822 0%, #01191b 45%, #02555b 100%); color: #fff; border: 1px solid rgba(52, 217, 192, .2); }
.pu-tile-dark h3, .pu-tile-dark p { color: #fff; }
.pu-tile-dark p { color: #cfe6e6; }
.pu-tile-dark .pu-tile-ico { background: rgba(52, 217, 192, .15); color: var(--pu-mint); border: 1px solid rgba(52, 217, 192, .3); }
.pu-act { display: flex; gap: 12px; align-items: flex-start; }
.pu-act-date { font-size: .78rem; color: #7b9496; }

/* ---------- Celular ---------- */
@media (max-width: 767.98px) {
  .pu-hero { padding: 16px 18px; border-radius: 20px; margin-top: 4px; }
  .pu-hero-title { font-size: 1.2rem; }
  .pu-hero-ico { display: none; }
  .pu-action { padding: 22px 18px; border-radius: 22px; }
  .pu-action h2 { font-size: 1.3rem; }
  .pu-actions .pu-cta { flex: 1 1 100%; justify-content: center; }
  .pu-panel, .pu-tile { border-radius: 20px; padding: 18px; }
  .app-main .card { border-radius: 18px; }
  .app-navbar .nav-link { padding: 13px 14px; }
}

/* Tarjetas "pu-tile" fuera de la grilla del inicio (p. ej. al lado de otras cajas) */
.pu-tile { margin-bottom: 22px; }
.pu-grid .pu-tile { margin-bottom: 0; }

/* ==========================================================================
   Parte 2 - patrones que se repiten en TODAS las pestañas
   ========================================================================== */

/* Tarjetas dentro de tarjetas: más ligeras (resumen, listas de exámenes, estadísticas...) */
.app-main .card .card:not(.bg-dark):not(.text-white):not(.bg-primary) { box-shadow: none !important; border: 1px solid var(--pu-line) !important; background: #f7fbfb; border-radius: 16px; }
.app-main .card .card.bg-light { background: #f3f9f9 !important; }
.app-main .card .card .card-body { padding: 1.1rem 1.25rem; }

/* Paneles verdes de acento (columna derecha de resúmenes) */
.app-main .card .bg-primary.rounded-end-4, .app-main .card > .row > .bg-primary { background: linear-gradient(150deg, #010822 0%, #01191b 45%, #02555b 100%) !important; }

/* Tarjetas de elección (Iniciar examen, Entrenamiento, etc.) */
.app-main .card-streched-link { transition: transform .18s ease, box-shadow .18s ease; border: 1px solid transparent !important; position: relative; }
.app-main .card-streched-link:hover { transform: translateY(-3px); box-shadow: 0 18px 38px rgba(1, 25, 27, .28); border-color: rgba(52, 217, 192, .6) !important; }
.app-main .card-streched-link .fs-1 { width: 58px; height: 58px; display: inline-flex; align-items: center; justify-content: center; border-radius: 18px;
  background: linear-gradient(135deg, #02555b, #01897B); font-size: 1.7rem !important; box-shadow: 0 10px 20px rgba(2, 85, 91, .3); }
.app-main .card-streched-link .fs-1, .app-main .card-streched-link .fs-1 i { color: #fff !important; }
.app-main .card-streched-link h3 { font-size: 1.25rem; font-weight: 700; color: var(--pu-ink); }
.app-main .card-streched-link .text-secondary { color: var(--pu-muted) !important; }

/* Íconos circulares de las listas */
.app-main .card .rounded-circle.border { background: #eaf6f6; border-width: 2px !important; }

/* Barras de progreso sin rayas */
.app-main .progress-bar-striped { background-image: none !important; animation: none !important; }
.app-main .progress { height: 12px; }
.app-main .progress-bar.bg-success { background: linear-gradient(90deg, #01897B, #34D9C0) !important; }

/* Botones de página sobre fondo verde (Iniciar examen, etc.) */
.app-main main > .btn-outline-light, .app-main main > a.btn-outline-light, .app-main .btn-outline-light.btn-lg { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .35); color: #fff; border-radius: 14px; backdrop-filter: blur(4px); }
.app-main .btn-outline-light:hover { background: #34D9C0; border-color: #34D9C0; color: #012a2d; }
.app-main .btn-sm { border-radius: 12px; }
.app-main .btn-outline-danger { border-width: 2px; }

/* Textos */
.app-main .text-muted { color: #6b8588 !important; }
.app-main .card h3.text-primary, .app-main .card h4.text-primary { color: var(--pu-teal) !important; }
.app-main .form-label { font-weight: 600; font-size: .85rem; color: #3d5a5d; }

/* Avisos */
.app-main .alert-success { background: #d6f5ef; color: #02695f; }
.app-main .alert-danger { background: #fdecec; color: #a61e2d; }
.app-main .alert-warning { background: #fff3cd; color: #7a5a00; }
.app-main .alert-info { background: #e1f3fb; color: #0b5370; }

/* Ventanas emergentes: cabecera con la marca */
.modal-content { border: 0; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 70px rgba(1, 8, 34, .35); }
.modal-header.bg-primary, .modal-header.bg-dark { background: linear-gradient(120deg, #010822, #02555b) !important; color: #fff; border: 0; }
.modal-header { border-bottom-color: var(--pu-line); }
.modal-footer { border-top-color: var(--pu-line); }
.modal-title { font-weight: 700; }
.modal-backdrop.show { opacity: .6; background: #010822; }

/* Tablas con buscador (DataTables) */
.app-main .dataTables_wrapper input, .app-main .dataTables_wrapper select { border: 2px solid #dbe8e8; border-radius: 12px; padding: 4px 10px; }
.app-main .dataTables_wrapper .paginate_button.current { background: var(--pu-teal) !important; color: #fff !important; border: 0 !important; border-radius: 10px; }
.app-main table.dataTable thead th { border-bottom: 0 !important; }

/* Acordeones y desplegables */
.app-main .accordion-button:not(.collapsed) { background: #eaf6f6; color: var(--pu-teal); box-shadow: none; }
.app-main .accordion-item { border: 1px solid var(--pu-line); margin-bottom: 10px; }

/* Enlaces en tarjetas claras */
.app-main .card a:not(.btn):not(.nav-link):not(.pu-cta):not(.pu-link):not(.page-link):not(.qx-dot):not(.stretched-link) { color: var(--pu-teal2); }
.app-main .card.bg-dark a:not(.btn):not(.qx-dot), .app-main .card.text-white a:not(.btn) { color: #7ce8d8; }

/* Pie de página */
footer.bg-dark { background: linear-gradient(90deg, #010822, #01191b) !important; border-top: 1px solid rgba(52, 217, 192, .15); font-size: .88rem; }
footer .list-inline-item a { text-decoration: none !important; opacity: .85 !important; }
footer .list-inline-item a:hover { color: var(--pu-mint) !important; opacity: 1 !important; }

/* Barra de desplazamiento */
.app-main { scrollbar-color: rgba(52, 217, 192, .5) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(2, 85, 91, .6); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(1, 137, 123, .85); background-clip: padding-box; }

/* Celular: aprovechar el ancho */
@media (max-width: 767.98px) {
  .app-main { padding-left: 12px !important; padding-right: 12px !important; }
  .app-main .card-body { padding: 1.1rem; }
  .app-main .card-streched-link .btn { width: 100%; margin-top: 8px; }
  .app-main .card-streched-link .row > div:last-child { justify-content: stretch !important; }
  .app-main .table-responsive, .app-main .dataTables_wrapper { overflow-x: auto; }
}

/* ---------- Mi cuenta ---------- */
.pu-grid-2 { grid-template-columns: 1fr; }
@media (min-width: 992px) { .pu-grid-2 { grid-template-columns: 1fr 1fr; } }
.pu-profile { display: flex; align-items: center; gap: 22px; padding: 26px; margin-bottom: 22px; border-radius: 26px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #010822 0%, #01191b 42%, #02555b 100%); border: 1px solid rgba(52, 217, 192, .2); box-shadow: var(--pu-shadow); }
.pu-profile::after { content: ""; position: absolute; width: 340px; height: 340px; right: -100px; top: -160px; border-radius: 50%; border: 1px solid rgba(52, 217, 192, .35); box-shadow: 0 0 0 40px rgba(52, 217, 192, .04); pointer-events: none; }
.pu-avatar { flex: 0 0 84px; height: 84px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 2.2rem; font-weight: 700;
  color: #012a2d; background: linear-gradient(135deg, #34D9C0, #01c9a6); box-shadow: 0 0 0 5px rgba(52, 217, 192, .25), 0 14px 30px rgba(0, 0, 0, .3); position: relative; z-index: 1; }
.pu-profile-info { position: relative; z-index: 1; min-width: 0; }
.pu-profile-info h2 { margin: 0; font-size: 1.5rem; font-weight: 700; color: #fff; overflow-wrap: anywhere; }
.pu-profile-info p { margin: 2px 0 10px; color: #a9cfcf; overflow-wrap: anywhere; }
.pu-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pu-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: .78rem; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); color: #e8f6f6; }
.pu-chip-ok { background: rgba(52, 217, 192, .18); border-color: rgba(52, 217, 192, .4); color: #34D9C0; }
.pu-field { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 20px; padding: 16px 18px; box-shadow: var(--pu-shadow); }
.pu-field-ico { flex: 0 0 46px; height: 46px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.25rem; color: #fff; background: linear-gradient(135deg, #02555b, #01897B); }
.pu-field-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pu-field-body small { color: #7b9496; font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.pu-field-body b { color: var(--pu-ink); font-size: 1.02rem; overflow-wrap: anywhere; }
@media (max-width: 575.98px) { .pu-profile { flex-direction: column; text-align: center; padding: 22px 18px; } .pu-chips { justify-content: center; } .pu-field { padding: 14px; } }

/* ---------- Suscripción: planes ---------- */
.app-main section.section.bg-light { background: transparent !important; padding: 8px 0 0 !important; }
.app-main .my-6 { margin-top: 2rem; margin-bottom: 2rem; }
.app-main .my-6 > h2.display-5 { font-size: 1.9rem; font-weight: 700; }
.app-main .card.h-100 > .card-header { background: linear-gradient(135deg, #02555b, #01897B); color: #fff; border: 0; padding: 14px 16px; }
.app-main .card.h-100 > .card-header h3 { color: #fff; font-weight: 600 !important; }
.app-main .card.h-100 { transition: transform .18s ease, box-shadow .18s ease; overflow: hidden; }
.app-main .card.h-100:hover { transform: translateY(-4px); box-shadow: 0 22px 44px rgba(1, 25, 27, .3); }
.app-main .card.h-100 .card-title.h1 { color: var(--pu-teal); font-weight: 700; }
.app-main .card.h-100 .list-unstyled li { position: relative; padding-left: 26px; text-align: left; }
.app-main .card.h-100 .list-unstyled li::before { content: "\F26A"; font-family: "bootstrap-icons"; position: absolute; left: 0; color: #01897B; }
.app-main .card.h-100.border-dark { border: 2px solid #34D9C0 !important; box-shadow: 0 0 0 5px rgba(52, 217, 192, .2), 0 20px 40px rgba(1, 25, 27, .28); }
.app-main .card.h-100 .card-footer { background: transparent !important; }

/* ---------- Historial de suscripción y listas con ícono ---------- */
.app-main .list-group-flush > .list-group-item { background: transparent; }
.app-main .list-group-item .rounded-circle.border { flex: 0 0 38px; }

/* ---------- Pago (checkout) ---------- */
.app-main .card .list-group-item.bg-light { background: #f3f9f9 !important; border-radius: 0; }
.app-main .card form .form-control, .app-main .card form .form-select { min-height: 46px; }

/* ---------- Flash cards ---------- */
.pu-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; margin-bottom: 22px; }
.pu-cat { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 24px 22px 22px; border-radius: 24px; text-decoration: none; color: #fff; overflow: hidden; min-height: 170px;
  background: linear-gradient(145deg, #010822 0%, #01191b 45%, #02555b 100%); border: 1px solid rgba(52, 217, 192, .2); box-shadow: var(--pu-shadow); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.pu-cat::after { content: ""; position: absolute; width: 190px; height: 190px; right: -70px; bottom: -90px; border-radius: 50%; border: 1px solid rgba(52, 217, 192, .3); box-shadow: 0 0 0 26px rgba(52, 217, 192, .05); }
.pu-cat:hover { transform: translateY(-4px); border-color: rgba(52, 217, 192, .7); box-shadow: 0 22px 44px rgba(1, 25, 27, .35); color: #fff; }
.pu-cat-ico { width: 46px; height: 46px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem; background: rgba(52, 217, 192, .15); color: #34D9C0; border: 1px solid rgba(52, 217, 192, .3); margin-bottom: 8px; }
.pu-cat-name { font-weight: 700; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .02em; line-height: 1.3; position: relative; z-index: 1; }
.pu-cat-count { color: #a9cfcf; font-size: .85rem; position: relative; z-index: 1; }
.pu-cat-go { position: absolute; right: 18px; top: 18px; font-size: 1.4rem; color: #34D9C0; opacity: .7; transition: transform .18s ease, opacity .18s ease; }
.pu-cat:hover .pu-cat-go { transform: translateX(3px); opacity: 1; }

.app-main .flip-card-front, .app-main .flip-card-back { border: 0 !important; border-radius: 26px !important; box-shadow: 0 16px 36px rgba(1, 25, 27, .3); }
.app-main .flip-card-front { background: linear-gradient(145deg, #010822 0%, #01191b 45%, #02555b 100%) !important; }
.app-main .flip-card-back { background: #fff !important; color: var(--pu-ink); }
.app-main .flip-card-btn-turn-to-back, .app-main .flip-card-btn-turn-to-front { border: 0 !important; border-radius: 12px !important; font-weight: 600; padding: 8px 14px !important; }
.app-main .flip-card-btn-turn-to-back { background: rgba(52, 217, 192, .18) !important; color: #34D9C0 !important; }
.app-main .flip-card-btn-turn-to-front { background: linear-gradient(135deg, #02555b, #01897B) !important; }
.app-main .flip-card { height: 420px !important; }

/* ---------- Pasos numerados (Entrenamiento) ---------- */
.pu-step-n { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: #012a2d; background: linear-gradient(135deg, #34D9C0, #01c9a6); margin-bottom: 6px; box-shadow: 0 8px 18px rgba(52, 217, 192, .35); }
.pu-tile .pu-tile-ico + h3 { margin: 0; }

/* ---------- Estadísticas: tarjetas de indicadores ---------- */
.app-main .card .card h5.card-title.text-dark, .app-main .card .card .card-title.fw-semibold { font-size: .76rem; text-transform: uppercase; letter-spacing: .07em; color: #7b9496 !important; font-weight: 700 !important; margin-bottom: .6rem; }
.app-main .card .card h2.fw-bold { font-size: 2.1rem; line-height: 1.1; }
.app-main .card-header.d-flex { background: transparent; padding: 1.25rem 1.5rem .25rem; }
.app-main .card-header h3 { font-size: 1.15rem; font-weight: 700; color: var(--pu-ink); }
.app-main #btnRangeDatesLineChart { border-radius: 999px; }
.app-main canvas { max-width: 100%; }

/* ---------- Resultado de un examen ---------- */
.pu-result { background: linear-gradient(150deg, #010822 0%, #01191b 45%, #02555b 100%); color: #fff; border-radius: 26px; padding: 24px; margin-bottom: 22px; border: 1px solid rgba(52, 217, 192, .2); box-shadow: var(--pu-shadow); }
.pu-result-head { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.pu-result-head h4 { margin: 0 0 2px; font-size: 1.1rem; font-weight: 700; color: #fff; }
.pu-result-head small { color: #a9cfcf; }
.pu-ring { --p: 0; flex: 0 0 92px; height: 92px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: conic-gradient(#34D9C0 calc(var(--p) * 1%), rgba(255, 255, 255, .14) 0); position: relative; }
.pu-ring::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: #01191b; }
.pu-ring span { position: relative; font-weight: 700; font-size: 1.15rem; color: #fff; }
.pu-result-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 10px; }
.pu-result-stats > div { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 8px; border-radius: 16px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); }
.pu-result-stats i { font-size: 1.2rem; } .pu-result-stats b { font-size: 1.5rem; line-height: 1.1; } .pu-result-stats span { font-size: .75rem; color: #a9cfcf; }
.pu-result-stats .ok i { color: #34D9C0; } .pu-result-stats .bad i { color: #ff7b80; } .pu-result-stats .note i { color: #ffc107; }
.pu-result-dates { margin: 16px 0 0; font-size: .8rem; color: #a9cfcf; }

/* ---------- Cabeceras escritas a mano en algunas páginas (Documentación, Docentes, Calculadora, Bot, Geo...) ---------- */
.app-main nav.bg-primary.text-white.rounded-4 { position: relative; overflow: hidden; background: linear-gradient(120deg, #010822 0%, #01191b 45%, #02555b 100%) !important;
  border: 1px solid rgba(52, 217, 192, .18); border-radius: 24px !important; box-shadow: var(--pu-shadow) !important; }
.app-main nav.bg-primary.text-white.rounded-4::before { content: ""; position: absolute; width: 320px; height: 320px; right: -90px; top: -150px; border-radius: 50%; border: 1px solid rgba(52, 217, 192, .35); box-shadow: 0 0 0 40px rgba(52, 217, 192, .04); pointer-events: none; }
.app-main nav.bg-primary.text-white.rounded-4 > * { position: relative; z-index: 1; }
.app-main nav.bg-primary.text-white.rounded-4 .bi { color: #34D9C0; opacity: 1 !important; }

/* Videos */
.app-main .video-card { border-radius: 20px; overflow: hidden; background: #fff; border: 0; box-shadow: var(--pu-shadow) !important; }
.app-main .video-card video { border-radius: 0 !important; }
.app-main .video-title { font-weight: 600; color: var(--pu-ink); }

/* Documentos */
.app-main .list-group-item-action { border-radius: 14px !important; margin-bottom: 8px; border: 1px solid var(--pu-line); }
.app-main .list-group-item-action:hover { background: #f2fafa; }

/* ==========================================================================
   MODO CLARO / OSCURO  (html[data-theme="light" | "dark"], se guarda en el navegador)
   ========================================================================== */
.pu-theme-btn { min-width: 42px; }
.pu-theme-btn .pu-ic-sun, .pu-theme-btn .pu-ic-moon { display: none; }
html[data-theme="dark"] .pu-theme-btn .pu-ic-sun { display: inline-block; color: #ffd24d; }
html[data-theme="light"] .pu-theme-btn .pu-ic-moon { display: inline-block; color: #bfe9e4; }

/* ---------- CLARO ---------- */
html[data-theme="light"] .app-main { background: radial-gradient(1000px 480px at 90% -10%, rgba(1, 137, 123, .14), transparent 60%), linear-gradient(180deg, #eef6f6 0%, #e4f0f0 100%) !important; }
html[data-theme="light"] .app-main .card { box-shadow: 0 8px 24px rgba(1, 25, 27, .09); }
html[data-theme="light"] .pu-panel, html[data-theme="light"] .pu-tile:not(.pu-tile-dark), html[data-theme="light"] .pu-field { box-shadow: 0 8px 24px rgba(1, 25, 27, .09); }
html[data-theme="light"] .app-main main > .btn-outline-light, html[data-theme="light"] .app-main main > a.btn-outline-light, html[data-theme="light"] .app-main .btn-outline-light.btn-lg {
  background: #fff; border: 2px solid #02555b; color: #02555b; }
html[data-theme="light"] .app-main .btn-outline-light:hover { background: #02555b; border-color: #02555b; color: #fff; }
html[data-theme="light"] .app-main .my-6 .text-white, html[data-theme="light"] .app-main .my-6 h2, html[data-theme="light"] .app-main .my-6 p { color: #0d2d30 !important; }
html[data-theme="light"] .app-main > main > .text-white, html[data-theme="light"] .app-main main > h1.text-white, html[data-theme="light"] .app-main main > h2.text-white, html[data-theme="light"] .app-main main > p.text-white { color: #0d2d30 !important; }

/* ---------- OSCURO ---------- */
html[data-theme="dark"] { color-scheme: dark; }
html[data-theme="dark"] .app-main { background: radial-gradient(1000px 480px at 90% -10%, rgba(52, 217, 192, .1), transparent 60%), linear-gradient(180deg, #022f33 0%, #01171a 100%) !important; }
html[data-theme="dark"] .app-main .card { background: #0b2a2d; color: #e3f1f1; border: 1px solid rgba(52, 217, 192, .1); box-shadow: 0 10px 28px rgba(0, 0, 0, .35); }
html[data-theme="dark"] .app-main .card .card:not(.bg-dark):not(.text-white):not(.bg-primary),
html[data-theme="dark"] .app-main .card .card.bg-light { background: #0f3236 !important; border-color: rgba(52, 217, 192, .12) !important; }
html[data-theme="dark"] .app-main .card-header { border-bottom-color: rgba(255, 255, 255, .08); color: #e3f1f1; }
html[data-theme="dark"] .app-main .card-footer { background: transparent !important; border-top-color: rgba(255, 255, 255, .08); }
html[data-theme="dark"] .app-main .bg-white, html[data-theme="dark"] .app-main .bg-light { background-color: #0b2a2d !important; color: #e3f1f1; }
html[data-theme="dark"] .app-main .card .bg-light, html[data-theme="dark"] .app-main .list-group-item.bg-light { background-color: #0f3236 !important; }
html[data-theme="dark"] .app-main .text-dark, html[data-theme="dark"] .app-main .text-body, html[data-theme="dark"] .app-main .text-secondary,
html[data-theme="dark"] .app-main h1, html[data-theme="dark"] .app-main h2, html[data-theme="dark"] .app-main h3, html[data-theme="dark"] .app-main h4,
html[data-theme="dark"] .app-main h5, html[data-theme="dark"] .app-main h6, html[data-theme="dark"] .app-main .card-title { color: #e8f5f5 !important; }
html[data-theme="dark"] .app-main .text-muted, html[data-theme="dark"] .app-main small.text-muted { color: #8fb3b3 !important; }
html[data-theme="dark"] .app-main .text-primary, html[data-theme="dark"] .app-main .card h3.text-primary, html[data-theme="dark"] .app-main .card h4.text-primary { color: #34D9C0 !important; }
html[data-theme="dark"] .app-main .card a:not(.btn):not(.nav-link):not(.pu-cta):not(.pu-link):not(.page-link):not(.qx-dot):not(.stretched-link) { color: #7ce8d8; }
html[data-theme="dark"] .app-main .border, html[data-theme="dark"] .app-main .border-bottom, html[data-theme="dark"] .app-main .border-top { border-color: rgba(255, 255, 255, .1) !important; }
html[data-theme="dark"] .app-main hr { border-color: rgba(255, 255, 255, .15); }

/* Lo que ya tiene fondo oscuro de marca conserva su texto */
html[data-theme="dark"] .pu-hero h1, html[data-theme="dark"] .pu-action h2, html[data-theme="dark"] .pu-profile-info h2, html[data-theme="dark"] .pu-result-head h4,
html[data-theme="dark"] .pu-tile-dark h3, html[data-theme="dark"] .pu-news b, html[data-theme="dark"] .pu-cat-name { color: #fff !important; }

/* formularios */
html[data-theme="dark"] .app-main .form-control, html[data-theme="dark"] .app-main .form-select, html[data-theme="dark"] .app-main textarea,
html[data-theme="dark"] .modal .form-control, html[data-theme="dark"] .modal .form-select { background-color: #06191b; border-color: #1c4a4d; color: #e8f5f5; }
html[data-theme="dark"] .app-main .form-control:focus, html[data-theme="dark"] .app-main .form-select:focus { background-color: #071f22; border-color: #34D9C0; box-shadow: 0 0 0 4px rgba(52, 217, 192, .18); }
html[data-theme="dark"] .app-main .form-control::placeholder { color: #6f9494; }
html[data-theme="dark"] .app-main .form-label, html[data-theme="dark"] .app-main label { color: #bcd8d8; }

/* tablas y listas */
html[data-theme="dark"] .app-main .table { --bs-table-bg: transparent; --bs-table-striped-bg: rgba(255, 255, 255, .03); color: #e3f1f1; }
html[data-theme="dark"] .app-main .table > thead > tr > th, html[data-theme="dark"] .app-main .table thead th { background: #0f3236; color: #34D9C0; }
html[data-theme="dark"] .app-main .table > :not(caption) > * > * { border-bottom-color: rgba(255, 255, 255, .08); color: #e3f1f1; background-color: transparent; }
html[data-theme="dark"] .app-main .table-hover > tbody > tr:hover > * { background: rgba(52, 217, 192, .07); }
html[data-theme="dark"] .app-main .list-group-item { background: transparent; color: #e3f1f1; border-color: rgba(255, 255, 255, .08); }
html[data-theme="dark"] .app-main .list-group-item:hover { background: rgba(52, 217, 192, .06) !important; }
html[data-theme="dark"] .app-main .list-group-item-action { background: #0f3236; }
html[data-theme="dark"] .app-main .accordion-item, html[data-theme="dark"] .app-main .accordion-button { background: #0b2a2d; color: #e3f1f1; border-color: rgba(52, 217, 192, .12); }
html[data-theme="dark"] .app-main .accordion-button:not(.collapsed) { background: #0f3236; color: #34D9C0; }
html[data-theme="dark"] .app-main .accordion-button::after { filter: brightness(2.2); }
html[data-theme="dark"] .app-main .page-link { background: #0f3236; color: #34D9C0; }
html[data-theme="dark"] .app-main .page-item.active .page-link { background: #01897B; color: #fff; }
html[data-theme="dark"] .app-main .progress { background: rgba(255, 255, 255, .1); }
html[data-theme="dark"] .app-main .nav-tabs { border-color: rgba(255, 255, 255, .1); }
html[data-theme="dark"] .app-main .nav-tabs .nav-link { color: #bcd8d8; }
html[data-theme="dark"] .app-main .nav-tabs .nav-link.active { background: #0b2a2d; color: #34D9C0; border-color: rgba(52, 217, 192, .25) rgba(52, 217, 192, .25) #0b2a2d; }
html[data-theme="dark"] .app-main .dataTables_wrapper, html[data-theme="dark"] .app-main .dataTables_wrapper label { color: #bcd8d8; }
html[data-theme="dark"] .app-main .dataTables_wrapper input, html[data-theme="dark"] .app-main .dataTables_wrapper select { background: #06191b; border-color: #1c4a4d; color: #e8f5f5; }
html[data-theme="dark"] .app-main .btn-outline-primary { color: #34D9C0; border-color: #34D9C0; }
html[data-theme="dark"] .app-main .btn-outline-primary:hover { background: #34D9C0; color: #012a2d; }
html[data-theme="dark"] .app-main .btn-outline-danger { color: #ff8a8f; border-color: #ff8a8f; }
html[data-theme="dark"] .app-main .btn-outline-danger:hover { background: #ff8a8f; color: #2a0608; }
html[data-theme="dark"] .app-main .btn-secondary { background: #1b4448; border-color: #1b4448; color: #e3f1f1; }

/* avisos */
html[data-theme="dark"] .app-main .alert-success { background: rgba(52, 217, 192, .14); color: #7ce8d8; }
html[data-theme="dark"] .app-main .alert-danger { background: rgba(255, 90, 100, .14); color: #ff9da3; }
html[data-theme="dark"] .app-main .alert-warning { background: rgba(255, 193, 7, .14); color: #ffd666; }
html[data-theme="dark"] .app-main .alert-info { background: rgba(80, 190, 240, .14); color: #8ed8f8; }

/* ventanas emergentes */
html[data-theme="dark"] .modal-content { background: #0b2a2d; color: #e3f1f1; border: 1px solid rgba(52, 217, 192, .15); }
html[data-theme="dark"] .modal-header, html[data-theme="dark"] .modal-footer { border-color: rgba(255, 255, 255, .08); }
html[data-theme="dark"] .modal .btn-close { filter: invert(1) grayscale(1) brightness(2); }
html[data-theme="dark"] .modal-title, html[data-theme="dark"] .modal-body { color: #e3f1f1; }

/* tarjetas propias */
html[data-theme="dark"] .pu-panel, html[data-theme="dark"] .pu-tile:not(.pu-tile-dark), html[data-theme="dark"] .pu-field { background: #0b2a2d; color: #e3f1f1; border: 1px solid rgba(52, 217, 192, .1); box-shadow: 0 10px 28px rgba(0, 0, 0, .35); }
html[data-theme="dark"] .pu-tile:not(.pu-tile-dark) h3, html[data-theme="dark"] .pu-field-body b, html[data-theme="dark"] .pu-weak-name { color: #e8f5f5 !important; }
html[data-theme="dark"] .pu-big { color: #34D9C0; }
html[data-theme="dark"] .pu-tile p, html[data-theme="dark"] .pu-empty { color: #9ec0c0; }
html[data-theme="dark"] .pu-tile-dark p { color: #cfe6e6; }
html[data-theme="dark"] .pu-bar { background: rgba(255, 255, 255, .12); }
html[data-theme="dark"] .pu-panel .pu-link { background: #0f3236; color: #34D9C0; }
html[data-theme="dark"] .pu-panel-title { color: #34D9C0; }
html[data-theme="dark"] .app-main .card .rounded-circle.border { background: #0f3236; }
html[data-theme="dark"] .app-main .card-streched-link h3 { color: #e8f5f5 !important; }
html[data-theme="dark"] .app-main .card-streched-link .text-secondary { color: #9ec0c0 !important; }
html[data-theme="dark"] .app-main .card.h-100 .card-title.h1 { color: #34D9C0 !important; }
html[data-theme="dark"] .app-main .flip-card-back { background: #0b2a2d !important; color: #e3f1f1; }
html[data-theme="dark"] .app-main .flip-card-back h4 { color: #34D9C0 !important; }
html[data-theme="dark"] .app-main .video-card { background: #0b2a2d; }
html[data-theme="dark"] .app-main .video-title { color: #e8f5f5; }

/* pantalla de pregunta */
html[data-theme="dark"] .qx-card { background: #0b2a2d; }
html[data-theme="dark"] .qx-text { color: #e8f5f5; }
html[data-theme="dark"] .qx-opt { background: #0f3236; border-color: #1c4a4d; color: #e8f5f5; }
html[data-theme="dark"] .qx-opt:hover:not(:disabled):not(.is-selected) { background: #123b40; border-color: #34D9C0; }
html[data-theme="dark"] .qx-opt.is-dashed { background: #0a2124; }
html[data-theme="dark"] .qx-skip { background: #15393d; color: #bcd8d8; }
html[data-theme="dark"] .qx-skip:hover:not(:disabled) { background: #1b4448; color: #34D9C0; }
html[data-theme="dark"] .qx-opt.is-selected, html[data-theme="dark"] .qx-opt.is-selected:hover:not(:disabled) { color: #fff; }

/* Alternativa elegida en modo oscuro: debe verse claramente distinta */
html[data-theme="dark"] .qx-opt.is-selected,
html[data-theme="dark"] .qx-opt.is-selected:hover:not(:disabled),
html[data-theme="dark"] .qx-opt.is-selected:focus,
html[data-theme="dark"] .qx-opt.is-selected:active { background: linear-gradient(135deg, #01897B 0%, #14b8a0 100%); border-color: #34D9C0; color: #fff; box-shadow: 0 0 0 3px rgba(52, 217, 192, .35), 0 10px 24px rgba(0, 0, 0, .4); font-weight: 600; }
html[data-theme="dark"] .qx-opt.is-selected .qx-opt-text { color: #fff; }

/* ==========================================================================
   FLASH CARDS llamativas (modal del resultado y pantalla de categorías)
   ========================================================================== */
.row > :nth-child(4n+1) { --fc: #01c9a6; --fc2: #02555b; }
.row > :nth-child(4n+2) { --fc: #8b6cff; --fc2: #3a2bb5; }
.row > :nth-child(4n+3) { --fc: #ff8a5c; --fc2: #d93a55; }
.row > :nth-child(4n+4) { --fc: #22c3f0; --fc2: #0a63b8; }

.app-main .flip-card-3D-wrapper { perspective: 1100px; }
.app-main .flip-card { height: 360px !important; transition: transform .7s cubic-bezier(.4, .2, .2, 1) !important; cursor: pointer; }
.flip-toggle:checked ~ .flip-card-3D-wrapper .flip-card { transform: rotateY(-180deg); }

.app-main .flip-card-front, .app-main .flip-card-back { border: 0 !important; border-radius: 26px !important; overflow: hidden; box-shadow: 0 18px 36px rgba(1, 8, 34, .32); padding: 0 !important; }
.app-main .flip-card-front { background: linear-gradient(145deg, var(--fc2, #02555b) 0%, var(--fc, #01c9a6) 100%) !important; color: #fff !important; }
.app-main .flip-card-back { background: #fff !important; color: #0d2d30 !important; box-shadow: inset 0 10px 0 var(--fc, #01c9a6), 0 18px 36px rgba(1, 8, 34, .32) !important; }

/* adornos de la tarjeta */
.app-main .flip-card-front::before, .app-main .flip-card-back::before { position: absolute; top: 14px; left: 16px; z-index: 3; padding: 4px 12px; border-radius: 999px; font-size: .7rem; font-weight: 700; letter-spacing: .12em; }
.app-main .flip-card-front::before { content: "PREGUNTA"; background: rgba(255, 255, 255, .22); color: #fff; }
.app-main .flip-card-back::before { content: "RESPUESTA"; background: var(--fc2, #02555b); color: #fff; top: 18px; }
.app-main .flip-card-front::after { content: "?"; position: absolute; right: -14px; top: -34px; font-size: 11rem; font-weight: 800; line-height: 1; color: rgba(255, 255, 255, .13); pointer-events: none; }
.app-main .flip-card-back::after { content: "✓"; position: absolute; right: 8px; bottom: -34px; font-size: 9rem; font-weight: 800; line-height: 1; color: var(--fc, #01c9a6); opacity: .12; pointer-events: none; }

.app-main .flip-card-front .card-body, .app-main .flip-card-back .card-body { position: relative; z-index: 2; padding: 56px 22px 58px !important; }
.app-main .flip-card-front .text-info-flashcard { color: #fff !important; font-weight: 600; line-height: 1.4; text-shadow: 0 2px 10px rgba(0, 0, 0, .25); }
.app-main .flip-card-back .text-info-flashcard { color: #0d2d30 !important; font-weight: 500; line-height: 1.5; }
.app-main .flip-card-front small, .app-main .flip-card-front .text-white-50 { color: rgba(255, 255, 255, .8) !important; }
.app-main .flip-card-back small { color: #6b8588 !important; }

/* botones "Información" / "Regresar" y pista */
.app-main .flip-card-btn-turn-to-back, .app-main .flip-card-btn-turn-to-front { position: absolute; bottom: 14px !important; z-index: 4; border: 0 !important; border-radius: 999px !important; font-weight: 600; font-size: .82rem; padding: 7px 14px !important; cursor: pointer; }
.app-main .flip-card-btn-turn-to-back { right: 14px !important; background: rgba(255, 255, 255, .95) !important; color: var(--fc2, #02555b) !important; box-shadow: 0 6px 14px rgba(0, 0, 0, .2); }
.app-main .flip-card-btn-turn-to-front { left: 14px !important; background: var(--fc2, #02555b) !important; color: #fff !important; box-shadow: 0 6px 14px rgba(0, 0, 0, .2); }

/* modo oscuro */
html[data-theme="dark"] .app-main .flip-card-back { background: #0f3236 !important; color: #e8f5f5 !important; }
html[data-theme="dark"] .app-main .flip-card-back .text-info-flashcard { color: #e8f5f5 !important; }
html[data-theme="dark"] .app-main .flip-card-back small { color: #9ec0c0 !important; }

/* ventana de flash cards */
#modalShow .modal-content { background: linear-gradient(180deg, #021f22, #01171a); }
#modalShow .modal-body { padding: 22px 18px 8px; }
#modalShow .modal-header { background: linear-gradient(120deg, #010822, #02555b) !important; }
#modalShow .modal-title { letter-spacing: .06em; }
#modalShow .modal-footer { border: 0; justify-content: center; }
#modalShow .btn-close-footer { border-radius: 999px; padding: .55rem 2rem; font-weight: 600; }
#modalShow .modal-header .btn-close { filter: invert(1) grayscale(1) brightness(2); opacity: .9; }
@media (max-width: 767.98px) { .app-main .flip-card { height: 320px !important; } .app-main .flip-card-front .card-body, .app-main .flip-card-back .card-body { padding: 54px 16px 56px !important; } }

/* ---------- Resultado: más información ---------- */
.pu-result-stats .blank i { color: #ffc107; }
.pu-result-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-top: 12px; }
.pu-result-facts > div { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.pu-result-facts i { color: #34D9C0; font-size: 1.05rem; }
.pu-result-facts span { font-size: .72rem; color: #a9cfcf; }
.pu-result-facts b { font-size: 1.05rem; color: #fff; }
.pu-result-facts .up i, .pu-result-facts .up b { color: #34D9C0; }
.pu-result-facts .down i, .pu-result-facts .down b { color: #ff8a8f; }
.pu-result-areas { margin-top: 18px; }
.pu-result-sub { font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #34D9C0; margin-bottom: 10px; }
.pu-area { margin-bottom: 12px; }
.pu-area-top { display: flex; justify-content: space-between; gap: 10px; font-size: .82rem; color: #e3f1f1; }
.pu-area-top b { color: #fff; white-space: nowrap; font-size: .78rem; }
.pu-result .pu-bar { background: rgba(255, 255, 255, .14); height: 7px; margin-top: 5px; }
.pu-result-tip { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 12px 14px; border-radius: 16px; background: rgba(255, 193, 7, .12); border: 1px solid rgba(255, 193, 7, .3); }
.pu-result-tip > i { color: #ffc107; font-size: 1.3rem; }
.pu-result-tip div { flex: 1; display: flex; flex-direction: column; font-size: .85rem; color: #fff; }
.pu-result-tip span { color: #d8e6e6; font-size: .78rem; }
.pu-result-tip .pu-cta { padding: .45rem 1rem; font-size: .85rem; }
@media (max-width: 575.98px) { .pu-result-tip { flex-wrap: wrap; } .pu-result-tip .pu-cta { width: 100%; justify-content: center; } }

/* ---------- Resultado: tópicos para repasar y preguntas falladas de nuevo ---------- */
.pu-result-topics, .pu-result-repeat { margin-top: 18px; }
.pu-result-sub.warn { color: #ffc107; }
.pu-topic { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 8px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.pu-topic-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pu-topic-info b { color: #fff; font-size: .88rem; line-height: 1.3; }
.pu-topic-info span { color: #ff9da3; font-size: .75rem; }
.pu-topic-btn { flex: 0 0 auto; border: 0; border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: .78rem; color: #012a2d; background: linear-gradient(135deg, #34D9C0, #01c9a6); }
.pu-topic-btn:hover { filter: brightness(1.08); }
.pu-repeat { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 12px; margin-bottom: 6px; border-radius: 12px; background: rgba(255, 193, 7, .08); border: 1px solid rgba(255, 193, 7, .22); font-size: .8rem; color: #e8f1f1; }
.pu-repeat b { flex: 0 0 auto; color: #ffc107; font-size: .72rem; white-space: nowrap; }
.pu-result-repeat small { color: #a9cfcf; }

/* Sin desplazamiento lateral: 100vw incluye la barra de scroll vertical y hacía la página más ancha que la ventana */
html, body { overflow-x: clip; max-width: 100%; }
@media (min-width: 768px) {
  .app-main { width: calc(100% - 300px) !important; min-width: 0; }
}
.app-main { max-width: 100%; }
.app-main main, .app-main .row { min-width: 0; }

/* ==========================================================================
   Pantalla "Exámenes": tipos de examen de colores + continuar examen (opción A)
   ========================================================================== */
.pu-types-head { display: flex; align-items: center; gap: 8px; margin: 4px 0 12px; font-size: .78rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #34D9C0; }
html[data-theme="light"] .pu-types-head { color: #02555b; }
.pu-types { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-bottom: 8px; }
.pu-type { --c1: #02555b; --c2: #01897B; position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 168px; padding: 20px 18px 18px; border-radius: 22px; color: #fff; text-decoration: none; overflow: hidden;
  background: linear-gradient(145deg, var(--c1) 0%, var(--c2) 100%); box-shadow: 0 14px 30px rgba(1, 8, 34, .28); transition: transform .18s ease, box-shadow .18s ease; }
.pu-type::after { content: ""; position: absolute; width: 150px; height: 150px; right: -50px; bottom: -60px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.pu-type:hover { transform: translateY(-4px); box-shadow: 0 22px 40px rgba(1, 8, 34, .4); color: #fff; }
.pu-type b { position: relative; z-index: 1; font-size: 1.05rem; font-weight: 700; line-height: 1.25; }
.pu-type small { position: relative; z-index: 1; font-size: .8rem; color: rgba(255, 255, 255, .88); line-height: 1.4; }
.pu-type-ico { width: 46px; height: 46px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.35rem; background: rgba(255, 255, 255, .2); margin-bottom: 8px; position: relative; z-index: 1; }
.pu-type-badge { position: absolute; top: 14px; right: 14px; z-index: 2; padding: 3px 10px; border-radius: 999px; font-size: .68rem; font-weight: 700; letter-spacing: .04em; background: #fff; color: #7a2a14; }
.pu-type-lock { position: absolute; top: 14px; right: 14px; z-index: 2; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(1, 8, 34, .45); font-size: .85rem; }
.pu-type-violet { --c1: #4b34c4; --c2: #8b6cff; }
.pu-type-coral { --c1: #c8452a; --c2: #ff8a5c; }
.pu-type-rose { --c1: #b3205a; --c2: #ff5c93; }
.pu-type-blue { --c1: #0a63b8; --c2: #22c3f0; }
.pu-type-amber { --c1: #a8700a; --c2: #f5b83d; }
.pu-type-green { --c1: #0a7f5e; --c2: #34c79a; }

/* Aviso de examen en curso */
.pu-resume { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; padding: 16px 18px; border-radius: 22px; color: #fff; background: linear-gradient(120deg, #0a7f5e, #01897B 60%, #34D9C0 140%); box-shadow: var(--pu-shadow); border: 1px solid rgba(255, 255, 255, .25); }
.pu-resume-ico { flex: 0 0 48px; height: 48px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.6rem; background: rgba(255, 255, 255, .2); }
.pu-resume-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pu-resume-txt b { font-size: 1.05rem; color: #fff; }
.pu-resume-txt span { font-size: .85rem; color: rgba(255, 255, 255, .88); }
.pu-resume .pu-cta { white-space: nowrap; }

@media (max-width: 575.98px) {
  .pu-types { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .pu-type { min-height: 150px; padding: 16px 14px; border-radius: 18px; }
  .pu-type small { display: none; }
  .pu-resume { flex-wrap: wrap; }
  .pu-resume .pu-cta { width: 100%; justify-content: center; }
}

/* Tarjetas de examen con la paleta de Banquea (verdes azulados, marino, menta y el amarillo de las etiquetas) */
.pu-type-violet { --c1: #02555b; --c2: #01897B; }
.pu-type-coral  { --c1: #00867f; --c2: #34D9C0; }
.pu-type-rose   { --c1: #010822; --c2: #0b4a6f; }
.pu-type-blue   { --c1: #0a3d62; --c2: #00a7a6; }
.pu-type-amber  { --c1: #b78700; --c2: #ffc107; }
.pu-type-green  { --c1: #010822; --c2: #02555b; }
.pu-type-amber, .pu-type-amber b { color: #2b2000; }
.pu-type-amber small { color: rgba(43, 32, 0, .82); }
.pu-type-amber .pu-type-ico { background: rgba(43, 32, 0, .14); }
.pu-type-amber .pu-type-lock { background: rgba(43, 32, 0, .5); color: #fff; }
.pu-type-coral .pu-type-badge { color: #02555b; }
.pu-type-coral b, .pu-type-coral small { text-shadow: 0 1px 6px rgba(1, 25, 27, .35); }

/* Botón "Volver" más visible */
.pu-hero .pu-back { gap: 7px; padding: 7px 16px 7px 12px; border: 0; border-radius: 999px; font-size: .88rem; font-weight: 600; letter-spacing: .01em;
  color: #012a2d; background: linear-gradient(135deg, #34D9C0, #01c9a6); box-shadow: 0 8px 18px rgba(52, 217, 192, .35); transition: transform .15s ease, box-shadow .15s ease; }
.pu-hero .pu-back i { font-size: 1.05rem; }
.pu-hero .pu-back:hover { color: #012a2d; background: linear-gradient(135deg, #5ae6d0, #01c9a6); transform: translateX(-3px); box-shadow: 0 12px 24px rgba(52, 217, 192, .45); }
@media (max-width: 575.98px) {
  .pu-hero-title { gap: 8px; }
  .pu-hero .pu-back { order: -1; flex: 0 0 100%; width: fit-content; font-size: .85rem; padding: 7px 14px 7px 10px; }
}

/* Sin amarillo: categoría en azul cielo y especial en verde fresco (siguen siendo tonos fríos de Banquea) */
.pu-type-amber { --c1: #0b6fa4; --c2: #4cc9f0; }
.pu-type-green { --c1: #0a5d3f; --c2: #5fcf9a; }
.pu-type-amber, .pu-type-amber b { color: #fff; }
.pu-type-amber small { color: rgba(255, 255, 255, .9); }
.pu-type-amber .pu-type-ico { background: rgba(255, 255, 255, .2); }
.pu-type-amber .pu-type-lock { background: rgba(1, 8, 34, .45); color: #fff; }

/* ==========================================================================
   Exámenes programados (simulacros / extraordinarios): tarjetas tipo plataforma de entrenamiento
   ========================================================================== */
.pu-sched-list { display: grid; gap: 16px; margin-bottom: 22px; }
.pu-sched { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 22px 24px; border-radius: 24px; color: #fff; overflow: hidden;
  background: linear-gradient(135deg, #010822 0%, #01191b 45%, #02555b 100%); border: 1px solid rgba(52, 217, 192, .18); box-shadow: var(--pu-shadow); }
.pu-sched::after { content: ""; position: absolute; width: 220px; height: 220px; right: -70px; top: -90px; border-radius: 50%; border: 1px solid rgba(52, 217, 192, .25); box-shadow: 0 0 0 30px rgba(52, 217, 192, .04); pointer-events: none; }
.pu-sched-ico { width: 62px; height: 62px; border-radius: 20px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.9rem; background: rgba(52, 217, 192, .14); color: #34D9C0; border: 1px solid rgba(52, 217, 192, .3); }
.pu-sched-main { position: relative; z-index: 1; min-width: 0; }
.pu-sched-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 6px; }
.pu-sched-pill { padding: 3px 12px; border-radius: 999px; font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; background: rgba(255, 255, 255, .14); color: #e8f5f5; }
.pu-sched-date { font-size: .8rem; color: #a9cfcf; }
.pu-sched h3 { margin: 0; font-size: 1.3rem; font-weight: 700; color: #fff !important; line-height: 1.25; text-transform: uppercase; letter-spacing: .01em; }
.pu-sched h3 small { font-size: .8rem; font-weight: 600; color: #34D9C0; margin-left: 6px; text-transform: none; }
.pu-sched-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 8px; }
.pu-sched-chips span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: .78rem; font-weight: 500; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14); color: #e8f5f5; }
.pu-sched p { margin: 0; font-size: .86rem; line-height: 1.5; color: #bcd8d8; max-width: 70ch; }
.pu-sched-cta { position: relative; z-index: 1; }
.pu-sched .pu-cta { white-space: nowrap; border: 0; }
.pu-cta-done { background: rgba(52, 217, 192, .16); color: #34D9C0; border: 1px solid rgba(52, 217, 192, .4) !important; }
.pu-cta-done:hover { background: rgba(52, 217, 192, .28); color: #34D9C0; }
.pu-cta-wait { background: rgba(255, 255, 255, .08); color: #9ec0c0; border: 1px dashed rgba(255, 255, 255, .25) !important; cursor: not-allowed; }

/* Estados */
.pu-sched-available { border-color: #34D9C0; box-shadow: 0 0 0 4px rgba(52, 217, 192, .16), var(--pu-shadow); background: linear-gradient(135deg, #010822 0%, #02464b 55%, #01897B 130%); }
.pu-sched-available .pu-sched-pill { background: #34D9C0; color: #012a2d; }
.pu-sched-available .pu-sched-ico { background: #34D9C0; color: #012a2d; }
.pu-sched-done .pu-sched-pill { background: rgba(52, 217, 192, .18); color: #34D9C0; }
.pu-sched-waiting { background: linear-gradient(135deg, #0a1124 0%, #0b1a1d 100%); border-color: rgba(255, 255, 255, .12); }
.pu-sched-waiting .pu-sched-ico { background: rgba(255, 255, 255, .08); color: #9ec0c0; border-color: rgba(255, 255, 255, .15); }
.pu-sched-waiting .pu-sched-pill { background: rgba(255, 193, 7, .16); color: #ffd666; }

@media (max-width: 767.98px) {
  .pu-sched { grid-template-columns: auto minmax(0, 1fr); padding: 18px; border-radius: 20px; gap: 14px; }
  .pu-sched-ico { width: 50px; height: 50px; font-size: 1.5rem; border-radius: 16px; }
  .pu-sched h3 { font-size: 1.1rem; }
  .pu-sched-cta { grid-column: 1 / -1; }
  .pu-sched-cta .pu-cta, .pu-sched-cta form, .pu-sched-cta button { width: 100%; justify-content: center; }
}

/* ---- Exámenes programados: tarjetas CLARAS y con colores variados (menos verde y menos oscuro) ---- */
.pu-sched { --sc1: #1d6fe0; --sc2: #22c3f0; background: #ffffff !important; color: #10282b; border: 1px solid #dbe6ef; border-left: 8px solid var(--sc1); box-shadow: 0 12px 30px rgba(1, 25, 27, .18); }
.pu-sched::after { border-color: rgba(29, 111, 224, .12); box-shadow: 0 0 0 30px rgba(29, 111, 224, .04); }
.pu-sched h3 { color: #0d2d30 !important; }
.pu-sched h3 small { color: var(--sc1); }
.pu-sched p { color: #4f6366; }
.pu-sched-date { color: #5c7578; }
.pu-sched-pill { background: #eaf1fb; color: var(--sc1); }
.pu-sched-chips span { background: #f2f6f9; border-color: #dbe6ef; color: #3e5255; }
.pu-sched-ico { background: linear-gradient(135deg, var(--sc1), var(--sc2)); color: #fff; border: 0; box-shadow: 0 10px 20px rgba(29, 111, 224, .28); }

/* Disponible: azul vivo */
.pu-sched-available { --sc1: #1d6fe0; --sc2: #22c3f0; background: #ffffff !important; border-color: #b9d6f7; border-left-color: #1d6fe0; box-shadow: 0 0 0 4px rgba(34, 195, 240, .22), 0 14px 32px rgba(1, 25, 27, .22); }
.pu-sched-available .pu-sched-pill { background: linear-gradient(135deg, #1d6fe0, #22c3f0); color: #fff; }
.pu-sched-available .pu-sched-ico { background: linear-gradient(135deg, #1d6fe0, #22c3f0); color: #fff; }
.pu-sched-available .pu-cta-main { background: linear-gradient(135deg, #1d6fe0, #22c3f0); color: #fff; box-shadow: 0 12px 24px rgba(29, 111, 224, .35); }
.pu-sched-available .pu-cta-main:hover { color: #fff; box-shadow: 0 16px 30px rgba(29, 111, 224, .45); }

/* Realizado: verde suave, solo como acento */
.pu-sched-done { --sc1: #0a9e74; --sc2: #34c79a; border-color: #cfe9e0; border-left-color: #0a9e74; }
.pu-sched-done::after { border-color: rgba(10, 158, 116, .12); box-shadow: 0 0 0 30px rgba(10, 158, 116, .04); }
.pu-sched-done .pu-sched-pill { background: #e2f6ee; color: #067a59; }
.pu-sched-done .pu-sched-ico { background: linear-gradient(135deg, #0a9e74, #34c79a); box-shadow: 0 10px 20px rgba(10, 158, 116, .28); }
.pu-sched .pu-cta-done { background: #e2f6ee; color: #067a59; border: 1px solid #bfe6d7 !important; }
.pu-sched .pu-cta-done:hover { background: #d3f0e5; color: #067a59; }

/* En espera: ámbar y gris */
.pu-sched-waiting { --sc1: #0d9a8a; --sc2: #34D9C0; border-color: #cdebe6; border-left-color: #14b8a6; }
.pu-sched-waiting::after { border-color: rgba(20, 184, 166, .14); box-shadow: 0 0 0 30px rgba(20, 184, 166, .05); }
.pu-sched-waiting .pu-sched-pill { background: #dcf6f1; color: #0a7568; }
.pu-sched-waiting .pu-sched-ico { background: linear-gradient(135deg, #0d9a8a, #34D9C0); color: #fff; box-shadow: 0 10px 20px rgba(20, 184, 166, .3); }
.pu-sched .pu-cta-wait { background: #eef9f7; color: #0a7568; border: 1px dashed #9fdcd3 !important; }

/* El modo oscuro pinta todos los h3 de claro: en estas tarjetas CLARAS el título debe ser oscuro */
html[data-theme="dark"] .app-main .pu-sched h3, html[data-theme="light"] .app-main .pu-sched h3, .app-main .pu-sched h3 { color: #0d2d30 !important; }
html[data-theme="dark"] .app-main .pu-sched h3 small { color: var(--sc1) !important; }

/* =====================================================================
   TARJETAS CLARAS CON COLOR en toda la plataforma (como "Evaluaciones programadas"):
   fondo de la página oscuro, tarjetas blancas con barra de color a la izquierda.
   ===================================================================== */

/* ---- Historial de exámenes (Normal y SERUMS) ---- */
.pu-hx-list { display: grid; gap: 16px; margin-bottom: 22px; }
.pu-hx { --sc1: #0d9a8a; --sc2: #34D9C0; position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 20px 24px; border-radius: 24px; overflow: hidden;
  background: #fff !important; color: #10282b; border: 1px solid #dbe6ef; border-left: 8px solid var(--sc1); box-shadow: 0 12px 30px rgba(1, 25, 27, .18); }
.pu-hx::after { content: ""; position: absolute; width: 220px; height: 220px; right: -70px; top: -90px; border-radius: 50%; border: 1px solid rgba(13, 154, 138, .12); box-shadow: 0 0 0 30px rgba(13, 154, 138, .04); pointer-events: none; }
.pu-hx-ico { width: 56px; height: 56px; border-radius: 18px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.6rem; color: #fff; background: linear-gradient(135deg, var(--sc1), var(--sc2)); box-shadow: 0 10px 20px rgba(1, 25, 27, .2); }
.pu-hx-main { position: relative; z-index: 1; min-width: 0; }
.pu-hx-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 6px; }
.pu-hx-pill { padding: 3px 12px; border-radius: 999px; font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; background: #dcf6f1; color: #0a7568; }
.pu-hx-date { font-size: .8rem; color: #5c7578; }
.pu-hx h3 { margin: 0; font-size: 1.2rem; font-weight: 700; line-height: 1.25; text-transform: uppercase; letter-spacing: .01em; }
.pu-hx-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.pu-hx-chips span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: .78rem; background: #f2f6f9; border: 1px solid #dbe6ef; color: #3e5255; }
.pu-hx p { margin: 8px 0 0; font-size: .84rem; color: #4f6366; }
.pu-hx-bar { height: 8px; border-radius: 99px; background: #e6eef5; margin-top: 12px; overflow: hidden; max-width: 420px; }
.pu-hx-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--sc1), var(--sc2)); }
.pu-hx-cta { position: relative; z-index: 1; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: flex-end; }
.pu-hx-score { text-align: center; line-height: 1; }
.pu-hx-score b { display: block; font-size: 1.9rem; font-weight: 800; color: var(--sc1); }
.pu-hx-score small { font-size: .68rem; text-transform: uppercase; letter-spacing: .07em; color: #7b9496; }
.pu-hx-cancel { font-size: .8rem; color: #c4423f !important; cursor: pointer; text-decoration: underline; }
.pu-hx .pu-cta { white-space: nowrap; border: 0; }
.pu-hx .pu-cta-done { background: #e2f6ee; color: #067a59; border: 1px solid #bfe6d7 !important; }
.pu-hx .pu-cta-main { background: linear-gradient(135deg, #1d6fe0, #22c3f0); color: #fff; box-shadow: 0 12px 24px rgba(29, 111, 224, .3); }
.pu-hx-ok  { --sc1: #0a9e74; --sc2: #34c79a; }
.pu-hx-mid { --sc1: #1d6fe0; --sc2: #22c3f0; }
.pu-hx-low { --sc1: #0b4a8f; --sc2: #3d8fd1; }
.pu-hx-run { --sc1: #1d6fe0; --sc2: #22c3f0; }
.pu-hx-lock { --sc1: #8aa0a8; --sc2: #b7c6cb; }
.pu-hx-ok .pu-hx-pill { background: #e2f6ee; color: #067a59; }
.pu-hx-mid .pu-hx-pill, .pu-hx-run .pu-hx-pill { background: #eaf1fb; color: #1d6fe0; }
.pu-hx-low .pu-hx-pill { background: #e6eefa; color: #0b4a8f; }
html[data-theme] .app-main .pu-hx h3 { color: #0d2d30 !important; }
@media (max-width: 767.98px) {
  .pu-hx { grid-template-columns: auto minmax(0, 1fr); padding: 18px; border-radius: 20px; gap: 14px; }
  .pu-hx-cta { grid-column: 1 / -1; justify-content: space-between; }
}

/* ---- Flash cards: categorías en tarjetas claras de colores ---- */
.pu-cat { --cc: #0d9a8a; --cc2: #34D9C0; background: #fff !important; color: #10282b !important; border: 1px solid #dbe6ef; border-left: 8px solid var(--cc); box-shadow: 0 12px 30px rgba(1, 25, 27, .18); }
.pu-cat::after { border-color: rgba(13, 154, 138, .12); box-shadow: 0 0 0 26px rgba(13, 154, 138, .04); }
.pu-cat:hover { border-color: var(--cc); box-shadow: 0 18px 38px rgba(1, 25, 27, .28); color: #10282b !important; }
.pu-cat-ico { background: linear-gradient(135deg, var(--cc), var(--cc2)); color: #fff; border: 0; box-shadow: 0 10px 20px rgba(1, 25, 27, .2); }
html[data-theme] .app-main .pu-cat .pu-cat-name { color: #0d2d30 !important; }
.pu-cat-count { color: #5c7578; }
.pu-cat-go { color: var(--cc); opacity: .9; }
.pu-cats > .pu-cat:nth-child(5n+1) { --cc: #0d9a8a; --cc2: #34D9C0; }
.pu-cats > .pu-cat:nth-child(5n+2) { --cc: #1d6fe0; --cc2: #22c3f0; }
.pu-cats > .pu-cat:nth-child(5n+3) { --cc: #0a9e74; --cc2: #34c79a; }
.pu-cats > .pu-cat:nth-child(5n+4) { --cc: #0b2a55; --cc2: #1d6fa8; }
.pu-cats > .pu-cat:nth-child(5n+5) { --cc: #14a58f; --cc2: #5be3cf; }

/* ---- Mi cuenta, paneles y tarjetas en modo oscuro: también claras ---- */
html[data-theme="dark"] .pu-field, html[data-theme="dark"] .pu-panel, html[data-theme="dark"] .pu-tile:not(.pu-tile-dark) {
  background: #fff !important; color: #10282b; border: 1px solid #dbe6ef; border-left: 8px solid #0d9a8a; }
html[data-theme="dark"] .pu-field-body b, html[data-theme="dark"] .pu-tile:not(.pu-tile-dark) h3, html[data-theme="dark"] .pu-weak-name { color: #0d2d30 !important; }
html[data-theme="dark"] .pu-field-body small, html[data-theme="dark"] .pu-tile p, html[data-theme="dark"] .pu-empty { color: #5c7578; }
html[data-theme="dark"] .pu-big { color: #0d9a8a; }
.pu-field:nth-child(4n+2), [class*="col"]:nth-child(4n+2) > .pu-field { border-left-color: #1d6fe0 !important; }
.pu-field:nth-child(4n+3), [class*="col"]:nth-child(4n+3) > .pu-field { border-left-color: #0a9e74 !important; }
.pu-field:nth-child(4n+4), [class*="col"]:nth-child(4n+4) > .pu-field { border-left-color: #0b2a55 !important; }

html[data-theme="dark"] .app-main .card:not(.bg-dark):not(.text-white):not(.bg-primary):not(.qx-card),
html[data-theme="dark"] .app-main .accordion-item, html[data-theme="dark"] .modal-content {
  background: #fff !important; color: #10282b; border: 1px solid #dbe6ef; box-shadow: 0 12px 30px rgba(1, 25, 27, .18); }
html[data-theme="dark"] .app-main .card:not(.bg-dark):not(.text-white):not(.bg-primary):not(.qx-card) .card:not(.bg-dark):not(.text-white):not(.bg-primary):not(.qx-card),
html[data-theme="dark"] .app-main .card:not(.qx-card) .bg-light, html[data-theme="dark"] .app-main .card:not(.qx-card) .list-group-item.bg-light { background: #f4f8fa !important; border-color: #dbe6ef !important; }
html[data-theme="dark"] .app-main .card:not(.bg-dark):not(.text-white):not(.bg-primary):not(.qx-card) :is(h1, h2, h3, h4, h5, h6, .card-title, .text-dark, .text-body, .text-secondary),
html[data-theme="dark"] .modal-content :is(h1, h2, h3, h4, h5, h6, .modal-title, .modal-body) { color: #0d2d30 !important; }
html[data-theme="dark"] .app-main .card:not(.bg-dark):not(.text-white):not(.bg-primary):not(.qx-card) :is(.text-muted, small.text-muted) { color: #5c7578 !important; }
html[data-theme="dark"] .app-main .card:not(.bg-dark):not(.text-white):not(.bg-primary):not(.qx-card) .text-primary { color: #0d9a8a !important; }
html[data-theme="dark"] .app-main .card:not(.bg-dark):not(.text-white):not(.bg-primary):not(.qx-card) .table { color: #10282b; }
html[data-theme="dark"] .app-main .card:not(.qx-card) .table thead th, html[data-theme="dark"] .app-main .card:not(.qx-card) .table > thead > tr > th { background-color: #eef6f6 !important; color: #0a7568; }
html[data-theme="dark"] .app-main .card:not(.qx-card) .table > :not(caption) > * > * { color: #10282b; border-bottom-color: #e3eeee; }
html[data-theme="dark"] .app-main .card:not(.qx-card) .list-group-item { background: transparent; color: #10282b; border-color: #e3eeee; }
html[data-theme="dark"] .app-main .card:not(.qx-card) .form-control, html[data-theme="dark"] .app-main .card:not(.qx-card) .form-select, html[data-theme="dark"] .app-main .card:not(.qx-card) textarea,
html[data-theme="dark"] .modal .form-control, html[data-theme="dark"] .modal .form-select { background-color: #fff; border-color: #cfdede; color: #10282b; }
html[data-theme="dark"] .app-main .card:not(.qx-card) .form-label, html[data-theme="dark"] .app-main .card:not(.qx-card) label { color: #3e5255; }
html[data-theme="dark"] .app-main .card:not(.qx-card) hr { border-color: #e3eeee; }
html[data-theme="dark"] .app-main .card:not(.qx-card) .border { border-color: #dbe6ef !important; }
html[data-theme="dark"] .app-main .card:not(.qx-card) a:not(.btn):not(.nav-link):not(.pu-cta):not(.pu-link):not(.page-link):not(.qx-dot):not(.stretched-link) { color: #0d9a8a; }
html[data-theme="dark"] .app-main .accordion-button { background: #fff; color: #0d2d30; }
html[data-theme="dark"] .app-main .accordion-button:not(.collapsed) { background: #eaf6f6; color: #0a7568; }
html[data-theme="dark"] .app-main .accordion-button::after { filter: none; }
html[data-theme="dark"] .modal .btn-close { filter: none; }

/* ---- Bloque de acción grande (Entrenamiento personalizado, etc.): tarjeta clara con color ---- */
.pu-action { background: #fff !important; color: #10282b; border: 1px solid #dbe6ef; border-left: 8px solid #1d6fe0; box-shadow: 0 12px 30px rgba(1, 25, 27, .18); }
.pu-action::after { border-color: rgba(29, 111, 224, .12); box-shadow: 0 0 0 40px rgba(29, 111, 224, .04); }
.pu-action .pu-eyebrow { color: #1d6fe0; }
html[data-theme] .app-main .pu-action h2 { color: #0d2d30 !important; }
.pu-action p { color: #4f6366; }
.pu-action .pu-cta-main { background: linear-gradient(135deg, #1d6fe0, #22c3f0); color: #fff; box-shadow: 0 12px 24px rgba(29, 111, 224, .3); }
.pu-action .pu-cta-main:hover { color: #fff; }
/* los 3 pasos, cada uno con su color */
.pu-grid-tiles > .pu-tile:nth-child(3n+1) { border-left-color: #0d9a8a !important; }
.pu-grid-tiles > .pu-tile:nth-child(3n+2) { border-left-color: #1d6fe0 !important; }
.pu-grid-tiles > .pu-tile:nth-child(3n+3) { border-left-color: #0a9e74 !important; }
.pu-grid-tiles > .pu-tile:nth-child(3n+2) .pu-step-n { background: linear-gradient(135deg, #1d6fe0, #22c3f0); color: #fff; }
.pu-grid-tiles > .pu-tile:nth-child(3n+3) .pu-step-n { background: linear-gradient(135deg, #0a9e74, #34c79a); color: #fff; }

/* ---- Racha de estudio (inicio) ---- */
.pu-streak-main { display: flex; align-items: baseline; gap: 10px; margin: 2px 0 14px; }
.pu-streak-n { font-size: 2.8rem; font-weight: 800; line-height: 1; color: #0d9a8a; }
.pu-streak-main span { font-size: 1rem; font-weight: 600; color: #3e5255; }
.pu-streak-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.pu-streak-day { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.pu-streak-day small { font-size: .68rem; font-weight: 700; letter-spacing: .06em; color: #7b9496; }
.pu-streak-day span { width: 100%; max-width: 40px; aspect-ratio: 1; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .85rem; font-weight: 600;
  background: #eef3f6; color: #7b9496; border: 2px solid transparent; }
.pu-streak-day.is-future span { background: transparent; border: 2px dashed #d3dfe5; color: #a9bcc4; }
.pu-streak-day.is-used span { background: linear-gradient(135deg, #0d9a8a, #34D9C0); color: #fff; box-shadow: 0 6px 14px rgba(13, 154, 138, .35); font-size: 1.05rem; }
.pu-streak-day.is-today span { border-color: #1d6fe0; box-shadow: 0 0 0 3px rgba(29, 111, 224, .18); }
.pu-streak-day.is-today small { color: #1d6fe0; }
.pu-streak-foot { margin: 14px 0 0 !important; font-size: .85rem; color: #4f6366; display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: space-between; }
.pu-streak-best { color: #0b4a8f; font-weight: 600; }

/* ---- Análisis del alumno (inicio): métricas, constancia y dominios ---- */
.pu-m-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 16px; }
.pu-m { --mc: #0d9a8a; position: relative; background: #fff; color: #10282b; border: 1px solid #dbe6ef; border-left: 8px solid var(--mc); border-radius: 22px; padding: 18px 20px; box-shadow: 0 12px 30px rgba(1, 25, 27, .18); }
.pu-m-ico { width: 42px; height: 42px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem; color: #fff; background: var(--mc); margin-bottom: 8px; }
.pu-m b { display: block; font-size: 2rem; font-weight: 800; line-height: 1.1; color: var(--mc); }
html[data-theme] .app-main .pu-m h4 { margin: 2px 0 6px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #3e5255 !important; }
.pu-m p { margin: 0; font-size: .82rem; line-height: 1.45; color: #5c7578; }
.pu-m p em { display: block; font-size: .72rem; color: #8aa0a8; margin-top: 2px; font-style: normal; }
.pu-m-wide { background: #fff; border: 1px solid #dbe6ef; border-left: 8px solid #1d6fe0; border-radius: 22px; padding: 16px 20px; margin-bottom: 16px; box-shadow: 0 12px 30px rgba(1, 25, 27, .18); overflow-x: auto; }
.pu-m-wide-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-weight: 600; color: #0d2d30; }
.pu-m-wide-head b { color: #1d6fe0; font-size: .85rem; }
.pu-heat { display: flex; gap: 5px; }
.pu-heat > div { display: grid; grid-template-rows: repeat(7, 1fr); gap: 5px; }
.pu-heat i { width: 16px; height: 16px; border-radius: 5px; background: #e6eef5; display: block; }
.pu-heat i.is-on { background: linear-gradient(135deg, #0d9a8a, #34D9C0); }
.pu-heat i.is-out { background: transparent; }
.pu-dom { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 22px; }
.pu-dom-card { --dc: #0a9e74; background: #fff; color: #10282b; border: 1px solid #dbe6ef; border-left: 8px solid var(--dc); border-radius: 22px; padding: 20px 22px; box-shadow: 0 12px 30px rgba(1, 25, 27, .18); }
html[data-theme] .app-main .pu-dom-card h4 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: .95rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--dc) !important; }
.pu-dom-ico { width: 34px; height: 34px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: var(--dc); }
.pu-dom-row { margin-bottom: 12px; }
.pu-dom-row > div { display: flex; justify-content: space-between; gap: 12px; font-size: .88rem; }
.pu-dom-row span { font-weight: 600; color: #0d2d30; min-width: 0; overflow-wrap: anywhere; }
.pu-dom-row b { color: var(--dc); }
.pu-dom-row i { display: block; height: 7px; border-radius: 99px; background: #e6eef5; margin-top: 5px; overflow: hidden; }
.pu-dom-row u { display: block; height: 100%; border-radius: 99px; background: var(--dc); text-decoration: none; }
.pu-dom-empty { margin: 0; font-size: .85rem; color: #5c7578; }
.pu-dom-cta { display: flex; justify-content: center; margin-top: 8px; width: 100%; background: linear-gradient(135deg, #1d6fe0, #22c3f0); color: #fff; box-shadow: 0 12px 24px rgba(29, 111, 224, .3); }
.pu-dom-cta:hover { color: #fff; }
@media (max-width: 991.98px) { .pu-m-grid { grid-template-columns: repeat(2, 1fr); } .pu-dom { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .pu-m { padding: 14px; } .pu-m b { font-size: 1.6rem; } }

/* ---- "Cancelar examen": botón redondeado ---- */
.pu-hx .pu-hx-cancel { display: inline-flex; align-items: center; gap: 6px; padding: .55rem 1.1rem; border-radius: 999px; background: #fff; color: #0b4a8f !important; border: 2px solid #c9d9ec; font-size: .85rem; font-weight: 600; text-decoration: none; cursor: pointer; transition: background .15s ease, border-color .15s ease; }
.pu-hx .pu-hx-cancel:hover { background: #eaf1fb; border-color: #1d6fe0; }

/* ---- Tarjetas del inicio SERUMS: separadas y redondeadas (izquierda blanca, derecha oscura) ---- */
html[data-theme] .app-main .card.pu-split { background: transparent !important; border: 0 !important; box-shadow: none !important; }
.pu-split > .row { display: flex; flex-wrap: nowrap; gap: 18px; margin: 0; }
.pu-split > .row > [class*="col-lg-8"] { flex: 1 1 0; width: auto; max-width: none; padding: 0; min-width: 0; }
.pu-split > .row > [class*="col-lg-8"] > .card-body { height: 100%; background: #fff; border-radius: 24px; box-shadow: 0 12px 30px rgba(1, 25, 27, .18); padding: 1.6rem; }
.pu-split > .row > [class*="col-lg-4"] { flex: 0 0 calc(33.333% - 12px); width: auto; max-width: none; border-radius: 24px !important; box-shadow: 0 12px 30px rgba(1, 25, 27, .18); }
@media (max-width: 991.98px) {
  .pu-split > .row { flex-direction: column; }
  .pu-split > .row > [class*="col-lg-4"] { flex: 1 1 auto; }
}

/* ---- Calendario de constancia (meses con números) ---- */
.pu-cal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pu-cal h5 { margin: 0 0 8px; font-size: .9rem; font-weight: 700; color: #0d2d30; }
html[data-theme] .app-main .pu-cal h5 { color: #0d2d30 !important; }
.pu-cal-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.pu-cal-days small { font-size: .66rem; font-weight: 700; color: #7b9496; padding-bottom: 2px; }
.pu-cal-days span { aspect-ratio: 1; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-size: .74rem; color: #6b8084; background: #f1f5f8; max-width: 34px; width: 100%; margin: 0 auto; }
.pu-cal-days span.is-blank { background: transparent; }
.pu-cal-days span.is-future { background: transparent; color: #b4c4cb; }
.pu-cal-days span.is-used { background: linear-gradient(135deg, #0d9a8a, #34D9C0); color: #fff; font-weight: 700; box-shadow: 0 4px 10px rgba(13, 154, 138, .3); }
.pu-cal-days span.is-today { box-shadow: 0 0 0 3px rgba(29, 111, 224, .35); border: 2px solid #1d6fe0; font-weight: 800; }
.pu-cal-days span.is-today:not(.is-used) { color: #1d6fe0; background: #fff; }
.pu-cal-legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 12px; font-size: .78rem; color: #5c7578; }
.pu-cal-legend i { display: inline-block; width: 14px; height: 14px; border-radius: 50%; vertical-align: -2px; margin-right: 6px; background: #f1f5f8; }
.pu-cal-legend i.is-used { background: linear-gradient(135deg, #0d9a8a, #34D9C0); }
.pu-cal-legend i.is-today { background: #fff; border: 2px solid #1d6fe0; }
@media (max-width: 767.98px) { .pu-cal-grid { grid-template-columns: 1fr; } .pu-cal-days span { max-width: 38px; } }

/* ---- Panel derecho de las tarjetas separadas: azul Banquea con texto claro ---- */
.pu-split > .row > [class*="col-lg-4"] { background: linear-gradient(145deg, #0a8f86 0%, #12b3a0 55%, #34D9C0 130%) !important; color: #fff; }
html[data-theme] .app-main .card.pu-split > .row > [class*="col-lg-4"] :is(h1, h2, h3, h4, h5, h6, .fw-bold, .display-6, span) { color: #fff !important; }
html[data-theme] .app-main .card.pu-split > .row > [class*="col-lg-4"] .text-white-50, html[data-theme] .app-main .card.pu-split > .row > [class*="col-lg-4"] p { color: rgba(255, 255, 255, .78) !important; }
html[data-theme] .app-main .card.pu-split > .row > [class*="col-lg-4"] .badge { color: #fff !important; }

/* ---- Calendario y racha en azul (días en que resolviste un examen) ---- */
.pu-cal-days span.is-used { background: linear-gradient(135deg, #1d6fe0, #22c3f0); box-shadow: 0 4px 10px rgba(29, 111, 224, .35); }
.pu-cal-days span.is-today { border-color: #0b2a55; box-shadow: 0 0 0 3px rgba(11, 42, 85, .25); }
.pu-cal-days span.is-today:not(.is-used) { color: #0b2a55; }
.pu-cal-legend i.is-used { background: linear-gradient(135deg, #1d6fe0, #22c3f0); }
.pu-cal-legend i.is-today { border-color: #0b2a55; }
.pu-streak-n { color: #1d6fe0; }
.pu-streak-day.is-used span { background: linear-gradient(135deg, #1d6fe0, #22c3f0); box-shadow: 0 6px 14px rgba(29, 111, 224, .35); }
.pu-streak-day.is-today span { border-color: #0b2a55; box-shadow: 0 0 0 3px rgba(11, 42, 85, .2); }
.pu-streak-day.is-today small { color: #0b2a55; }
.pu-m-wide { border-left-color: #1d6fe0; }

/* ---- Tarjetas separadas: misma cuadrícula que la fila de abajo (1.55fr / 1fr, separación de 22px) ---- */
html[data-theme] .app-main .card.pu-split { background-color: transparent !important; background-image: none !important; margin-bottom: 22px !important; overflow: visible; }
.pu-split > .row { display: grid !important; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 22px; margin: 0; }
.pu-split > .row > [class*="col-lg-8"], .pu-split > .row > [class*="col-lg-4"] { flex: none; width: auto; max-width: none; margin: 0; }
.pu-split > .row > [class*="col-lg-8"] { padding: 0; }
.pu-split > .row > [class*="col-lg-4"] { padding: 1.6rem !important; display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 991.98px) { .pu-split > .row { grid-template-columns: 1fr; } }

/* ---- Tarjetas separadas: fondo transparente real y panel derecho azul con texto blanco (especificidad alta para ganar a las reglas de tarjetas claras) ---- */
html[data-theme] .app-main .card.pu-split.pu-split.pu-split.pu-split.pu-split.pu-split.pu-split { background: transparent !important; background-color: transparent !important; background-image: none !important; border: 0 !important; box-shadow: none !important; }
html[data-theme] .app-main .card.pu-split.pu-split > .row > [class*="col-lg-4"] { background: linear-gradient(145deg, #0a8f86 0%, #12b3a0 55%, #34D9C0 130%) !important; }
html[data-theme] .app-main .card.pu-split.pu-split.pu-split.pu-split > .row > [class*="col-lg-4"] :is(h1, h2, h3, h4, h5, h6, .fw-bold, .display-6, span, b, strong, a:not(.btn)) { color: #fff !important; }
html[data-theme] .app-main .card.pu-split.pu-split.pu-split.pu-split > .row > [class*="col-lg-4"] :is(p, .text-white-50, small) { color: rgba(255, 255, 255, .8) !important; }
html[data-theme] .app-main .card.pu-split.pu-split.pu-split.pu-split > .row > [class*="col-lg-4"] .btn-light { color: #066b63 !important; background: #fff; }
html[data-theme] .app-main .card.pu-split.pu-split.pu-split.pu-split > .row > [class*="col-lg-4"] .btn-light * { color: #066b63 !important; }

/* ---- Panel derecho de las tarjetas separadas: BLANCO con barra turquesa, como las demás tarjetas ---- */
html[data-theme] .app-main .card.pu-split.pu-split > .row > [class*="col-lg-4"] { background: #fff !important; border: 1px solid #dbe6ef; border-left: 8px solid #0d9a8a; box-shadow: 0 12px 30px rgba(1, 25, 27, .18); }
html[data-theme] .app-main .card.pu-split.pu-split.pu-split.pu-split > .row > [class*="col-lg-4"] :is(h1, h2, h3, h4, h5, h6, .fw-bold, .display-6, b, strong) { color: #0d2d30 !important; }
html[data-theme] .app-main .card.pu-split.pu-split.pu-split.pu-split > .row > [class*="col-lg-4"] :is(p, .text-white-50, small) { color: #5c7578 !important; }
html[data-theme] .app-main .card.pu-split.pu-split.pu-split.pu-split > .row > [class*="col-lg-4"] .btn-light { background: linear-gradient(135deg, #0d9a8a, #34D9C0) !important; color: #fff !important; border: 0; box-shadow: 0 10px 20px rgba(13, 154, 138, .3); }
html[data-theme] .app-main .card.pu-split.pu-split.pu-split.pu-split > .row > [class*="col-lg-4"] .btn-light * { color: #fff !important; }

/* ---- Panel derecho blanco: textos oscuros (con prioridad mayor que la regla de texto blanco anterior) ---- */
html[data-theme] .app-main .card.pu-split.pu-split.pu-split.pu-split.pu-split.pu-split > .row > [class*="col-lg-4"] :is(h1, h2, h3, h4, h5, h6, .fw-bold, .display-6, span, b, strong) { color: #0d2d30 !important; }
html[data-theme] .app-main .card.pu-split.pu-split.pu-split.pu-split.pu-split.pu-split > .row > [class*="col-lg-4"] :is(p, .text-white-50, small) { color: #5c7578 !important; }
html[data-theme] .app-main .card.pu-split.pu-split.pu-split.pu-split.pu-split.pu-split > .row > [class*="col-lg-4"] :is(p.fw-bold, .text-uppercase) { color: #0d9a8a !important; }
html[data-theme] .app-main .card.pu-split.pu-split.pu-split.pu-split.pu-split.pu-split > .row > [class*="col-lg-4"] .badge { color: #fff !important; }
html[data-theme] .app-main .card.pu-split.pu-split.pu-split.pu-split.pu-split.pu-split > .row > [class*="col-lg-4"] .btn-light, html[data-theme] .app-main .card.pu-split.pu-split.pu-split.pu-split.pu-split.pu-split > .row > [class*="col-lg-4"] .btn-light * { color: #fff !important; }
