/*
 * Tema Material Design 3 para el Campus Capacita.
 * Conserva la paleta original: verde #8cbf45, azul pizarra #2f4050
 * y celeste #57bfe1.
 */
:root {
  --md-sys-color-primary: #8cbf45;
  --md-sys-color-on-primary: #ffffff;
  --md-sys-color-primary-container: #e3f3c9;
  --md-sys-color-on-primary-container: #1d3600;
  --md-sys-color-secondary: #2f4050;
  --md-sys-color-on-secondary: #ffffff;
  --md-sys-color-secondary-container: #d8e4ee;
  --md-sys-color-on-secondary-container: #17232d;
  --md-sys-color-tertiary: #57bfe1;
  --md-sys-color-surface: #f9fafd;
  --md-sys-color-surface-container: #f1f3f5;
  --md-sys-color-surface-container-high: #e9ecef;
  --md-sys-color-surface-bright: #ffffff;
  --md-sys-color-on-surface: #1b1d21;
  --md-sys-color-on-surface-variant: #5c6873;
  --md-sys-color-outline: #747e8c;
  --md-sys-color-outline-variant: #d6dce1;
  --md-sys-color-error: #b3261e;
  --md-sys-color-on-error: #ffffff;
  --md-shape-extra-small: 4px;
  --md-shape-small: 8px;
  --md-shape-medium: 12px;
  --md-shape-large: 16px;
  --md-shape-extra-large: 28px;
  --md-elevation-1: 0 1px 2px rgba(47, 64, 80, .18), 0 1px 3px 1px rgba(47, 64, 80, .10);
  --md-elevation-2: 0 2px 6px 2px rgba(47, 64, 80, .14), 0 1px 2px rgba(47, 64, 80, .18);
  --md-elevation-3: 0 4px 8px 3px rgba(47, 64, 80, .14), 0 1px 3px rgba(47, 64, 80, .20);
  --md-motion-standard: cubic-bezier(.2, 0, 0, 1);
}

html { color-scheme: light; scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
img { max-width: 100%; height: auto; }
a { text-decoration: none; }
ul { margin: 0; }
button, input, textarea, select { font: inherit; }

body,
body.sc5 {
  background: var(--md-sys-color-surface);
  color: var(--md-sys-color-on-surface);
  font-family: "Roboto", Arial, sans-serif !important;
  font-size: 16px;
  letter-spacing: .01em;
}

body.fondoGris { background: var(--md-sys-color-surface-container) !important; }

h1, h2, h3, h4, h5, h6,
.dashboard-title,
.coursename {
  color: var(--md-sys-color-on-surface);
  font-family: "Roboto", Arial, sans-serif;
  letter-spacing: 0;
}

h1, h2, h3, h4, h5, h6 { font-weight: 500; }
a { color: #648f28; transition: color 180ms var(--md-motion-standard); }
a:hover { color: #4f741c; }
::selection { color: #fff; background: var(--md-sys-color-primary); }

/* Layout fluido sin dependencias de frameworks de cuadrícula. */
body.sc5 { padding: 32px 32px 48px 312px; }
.container { width: 100%; }
.admin-dashboard-right-side { margin: 0 auto; }
.little-margin{ margin-top: 7px; margin-bottom: 7px;}
.row { display: flex; flex-wrap: wrap; margin: 0 -12px; }
.row > [class*="col-"] { width: 100%; padding: 0 12px; }
.row > form { width: 100%; padding: 0 12px; }
.row > :is(h1, h2, h3, h4, h5, h6, p, fieldset):not([class*="col-"]) { width: calc(100% - 24px); margin-right: 12px; margin-left: 12px; }
@media (min-width: 576px) {
  .col-sm-2 { width: 16.6667% !important; }
  .col-sm-4 { width: 33.3333% !important; }
  .col-sm-10 { width: 83.3333% !important; }
  .col-sm-12 { width: 100% !important; }
  .col-sm-offset-2 { margin-left: 16.6667%; }
}
@media (min-width: 768px) {
  .col-md-2 { width: 16.6667% !important; }
  .col-md-3 { width: 25% !important; }
  .col-md-4 { width: 33.3333% !important; }
  .col-md-6 { width: 50% !important; }
  .col-md-7 { width: 58.3333% !important; }
  .col-md-8 { width: 66.6667% !important; }
  .col-md-9 { width: 75% !important; }
  .col-md-12 { width: 100% !important; }
}
@media (min-width: 992px) {
  .col-lg-2 { width: 16.6667% !important; }
  .col-lg-3 { width: 25% !important; }
  .col-lg-4 { width: 33.3333% !important; }
  .col-lg-6 { width: 50% !important; }
  .col-lg-10 { width: 83.3333% !important; }
  .col-lg-12 { width: 100% !important; }
}
.col-5 { width: 41.6667% !important; }
.col-12 { width: 100% !important; }
.text-center { text-align: center !important; }
.text-lg-center { text-align: center !important; }
.d-flex, .media { display: flex !important; }
.d-block, .block { display: block !important; }
.d-inline-block { display: inline-block !important; }
.align-items-center { align-items: center !important; }
.align-self-center { align-self: center !important; }
.pull-left { float: left; }
.full-width { width: 100%; }
.mb-0 { margin-bottom: 0 !important; }
.m-b { margin-bottom: 16px !important; }
.m-b-lg { margin-bottom: 30px !important; }
.m-t, .mt-2 { margin-top: 16px !important; }
.m-t-lg, .mt-3 { margin-top: 30px !important; }
.pt-2 { padding-top: 16px !important; }
.pt-3 { padding-top: 24px !important; }
.pb-2 { padding-bottom: 16px !important; }

html:not(.material-symbols-ready) .material-symbols-rounded { visibility: hidden; }
.material-symbols-rounded {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  vertical-align: middle;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

/* Indicadores de foco Material accesibles. */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid rgba(87, 191, 225, .75) !important;
  outline-offset: 2px;
}

/* Botones filled, tonal y outlined. */
.btn,
button,
input[type="submit"] {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  cursor: pointer;
  text-decoration: none;
  border-radius: 20px;
  border-width: 1px;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .02em;
  line-height: 20px;
  padding: 9px 24px;
  text-transform: none;
  transition: background-color 180ms var(--md-motion-standard), box-shadow 180ms var(--md-motion-standard), color 180ms var(--md-motion-standard), transform 180ms var(--md-motion-standard);
}

.btn:hover,
button:hover,
input[type="submit"]:hover {
  box-shadow: var(--md-elevation-1);
  transform: translateY(-1px);
}

.btn:active,
button:active,
input[type="submit"]:active {
  box-shadow: none;
  transform: translateY(0);
}

.btn-primary,
.btn-blue,
.btn-blue2,
.btn-blue3,
.activepag,
.swal2-confirm {
  color: var(--md-sys-color-on-primary) !important;
  background: var(--md-sys-color-primary) !important;
  border-color: var(--md-sys-color-primary) !important;
  box-shadow: none;
}

.btn-primary:hover, .btn-primary:focus,
.btn-blue:hover, .btn-blue:focus,
.btn-blue2:hover, .btn-blue2:focus,
.btn-blue3:hover, .btn-blue3:focus {
  color: #fff !important;
  background: #7eae3c !important;
  border-color: #7eae3c !important;
}

.btn-white,
.btn-default {
  color: var(--md-sys-color-secondary) !important;
  background: transparent !important;
  border: 1px solid var(--md-sys-color-outline) !important;
}

.btn-white:hover,
.btn-default:hover {
  color: var(--md-sys-color-secondary) !important;
  background: var(--md-sys-color-secondary-container) !important;
}

.btn-red3,
.swal2-cancel {
  color: var(--md-sys-color-on-error) !important;
  background: var(--md-sys-color-error) !important;
  border-color: var(--md-sys-color-error) !important;
}

.btn .material-symbols-rounded,
button .material-symbols-rounded { margin-right: 8px; }
.btnleft { border-radius: 0 20px 20px 0 !important; }

/* El estado presionado lo provee el componente md-ripple de Material Web. */
.md-ripple-host { position: relative !important; overflow: hidden !important; isolation: isolate; }
md-ripple { border-radius: inherit; }

/* Campos outlined de Material. */
.form-group { position: relative; margin-bottom: 20px; }
.form-horizontal .form-group { display: flex; flex-wrap: wrap; align-items: center; margin-right: -12px; margin-left: -12px; }
.form-horizontal .form-group > [class*="col-"] { padding-right: 12px; padding-left: 12px; }
.form-control,
textarea,
select.form-control,
.nice-select {
  display: block;
  width: 100%;
  min-height: 52px;
  box-sizing: border-box;
  color: var(--md-sys-color-on-surface) !important;
  background-color: var(--md-sys-color-surface-bright) !important;
  border: 1px solid var(--md-sys-color-outline) !important;
  border-radius: var(--md-shape-extra-small) !important;
  box-shadow: none !important;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 16px;
  padding: 14px 16px;
  transition: border-color 150ms var(--md-motion-standard), box-shadow 150ms var(--md-motion-standard);
}

textarea { width: 100%; }
.form-control:hover, textarea:hover, select.form-control:hover { border-color: var(--md-sys-color-on-surface) !important; }
.form-control:focus,
textarea:focus,
select.form-control:focus {
  border: 2px solid var(--md-sys-color-primary) !important;
  padding: 13px 15px;
  outline: 0;
}
.form-control::placeholder, textarea::placeholder { color: var(--md-sys-color-on-surface-variant); opacity: 1; }
.input-group { display: flex; align-items: stretch; }
.input-group .form-control { flex: 1 1 auto; min-width: 0; border-radius: 20px 0 0 20px !important; }
.input-group-btn { display: flex; }
.input-group .btnleft { height: 52px; border-radius: 0 26px 26px 0 !important; }
input[type="radio"], input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--md-sys-color-primary); vertical-align: middle; }
input[type="radio"] + label, input[type="checkbox"] + label { margin-left: 10px; cursor: pointer; }
label, .control-label { color: var(--md-sys-color-on-surface-variant); font-size: 14px; font-weight: 500; }
input[type="file"] { width: 100%; padding: 12px; color: var(--md-sys-color-on-surface-variant); background: var(--md-sys-color-surface-container); border: 1px dashed var(--md-sys-color-outline); border-radius: var(--md-shape-small); }
input[type="file"]::file-selector-button { margin-right: 12px; padding: 8px 16px; color: var(--md-sys-color-on-primary-container); background: var(--md-sys-color-primary-container); border: 0; border-radius: 18px; cursor: pointer; }

/* Navigation drawer. */
.dashboard-left-menu,
.l-navbar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 280px;
  height: 100dvh;
  background: var(--md-sys-color-secondary) !important;
  border-radius: 0;
  box-shadow: var(--md-elevation-2);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  transition: transform 240ms var(--md-motion-standard);
  z-index: 1000;
}

.dashboard-left-menu .logo { padding: 24px 32px 18px; }
.dashboard-left-menu .logo img { max-width: 190px; }
.dashboard-left-menu ul { padding: 0 12px 24px; }
.dashboard-left-menu li { list-style: none; }
.dashboard-left-menu .nav-header { list-style: none; }
.userinfodiv {
  display: grid;
  gap: 3px;
  margin: 4px 16px 12px;
  padding: 14px 16px;
  color: #fff;
  background: rgba(255,255,255,.08);
  border-radius: var(--md-shape-medium);
}
.userinfodiv span, .userinfodiv .text-muted { color: rgba(255,255,255,.7) !important; font-size: 13px; }

.dashboard-left-menu ul .nav-item { margin: 4px 0; border-radius: 28px; overflow: hidden; }
.dashboard-left-menu ul .nav-item a,
.dashboard-left-menu .dashboard-item-menu {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 28px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}
.dashboard-left-menu ul .nav-item a::after { display: none; }
.dashboard-left-menu ul .nav-item a i,
.dashboard-left-menu ul .nav-item a svg,
.dashboard-left-menu ul .nav-item a .material-symbols-rounded { width: 24px; margin: 0; color: #aeda70 !important; text-align: center; }
.dashboard-left-menu ul .nav-item:hover,
.dashboard-left-menu ul .nav-item:focus-within { background: rgba(255,255,255,.10); }
.dashboard-left-menu ul .nav-item:hover > a,
.dashboard-left-menu ul .nav-item:focus-within > a { color: #fff; }
.dashboard-left-menu ul .nav-item.menuactivo { background: var(--md-sys-color-primary-container) !important; }
.dashboard-left-menu ul .nav-item.menuactivo > a,
.dashboard-left-menu ul .nav-item.menuactivo .indicador,
.dashboard-left-menu ul .nav-item.menuactivo .material-symbols-rounded { color: var(--md-sys-color-on-primary-container) !important; }

/* Botón y scrim del drawer en pantallas pequeñas. */
.topinfo {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 1002;
  width: 48px;
  height: 48px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--md-sys-color-on-primary-container);
  background: var(--md-sys-color-primary-container);
  border: 0;
  border-radius: 16px;
  box-shadow: var(--md-elevation-3);
}
.nav-scrim { display: none; position: fixed; inset: 0; z-index: 999; min-height: 0; padding: 0; border: 0; border-radius: 0; background: rgba(23, 35, 45, .56); }
.nav-scrim:hover { transform: none; box-shadow: none; }
.language-selector { display: flex; align-items: center; gap: 2px; margin: auto 16px 18px; padding-top: 12px; color: #fff; border-top: 1px solid rgba(255,255,255,.16); }
.language-selector button { min-width: 38px; min-height: 36px; padding: 6px; color: rgba(255,255,255,.8); background: transparent; border: 0; border-radius: 18px; }
.language-selector button[aria-pressed="true"], .language-selector button:hover { color: #fff; background: rgba(255,255,255,.14); }

/* Superficies, tarjetas y contenido. */
.admin-dashboard-section { min-height: calc(100vh - 40px); }
.admin-dashboard-right-side { padding-bottom: 40px; }
.dashboard-area, .dashboard-course-area, .dashboard-coursed { margin-bottom: 32px; }
.dashboard-title { margin: 0 0 24px; font-size: 24px; font-weight: 500; line-height: 32px; }
.tab-content { width: 100%; }
.media-body { min-width: 0; margin-left: 16px; }
.single-course-wrap { margin-bottom: 24px; }
.single-course-wrap .wrap-details { padding: 20px; }
.single-course-wrap .thumb img { display: block; width: 100%; object-fit: cover; }
.single-course-wrap .wrap-details { width: 100%; }
.user-details { display: flex; align-items: center; gap: 12px; }
.user-details img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.fixbtn { display: flex; align-items: center; justify-content: flex-end; }
.reviewers-area .thumb img { border-radius: 50%; }
.review-content { line-height: 1.65; }
video { display: block; width: 100%; max-height: 70vh; margin: 12px 0; }

.section-tab,
.card,
.single-dashboard-inner,
.dashboard-course .table,
.table-responsive,
.reviewers-area,
.divcentral {
  background: var(--md-sys-color-surface-bright) !important;
  border: 1px solid var(--md-sys-color-outline-variant) !important;
  border-radius: var(--md-shape-large) !important;
  box-shadow: var(--md-elevation-1);
}

.section-tab { padding: 24px; }
.divcentral .section-tab { border: 0 !important; box-shadow: none; }
.card { height: calc(100% - 24px); margin-bottom: 24px; overflow: hidden; }
.card-header { color: var(--md-sys-color-on-secondary-container); background: var(--md-sys-color-secondary-container); border: 0; padding: 16px 20px; font-weight: 500; }
.card-body { padding: 24px; }
.card-body h4 { color: var(--md-sys-color-primary); font-size: 36px; font-weight: 500; }
.dashboard-summary-card { width: min(100%, 240px); padding: 0 12px; }
.dashboard-summary-card .card { height: auto; }
.dashboard-summary-card .card-header { padding: 10px 16px; }
.dashboard-summary-card .card-body { padding: 12px 16px; }
.dashboard-summary-card .card-body h4 { margin: 0; font-size: 28px; line-height: 36px; }
.single-dashboard-inner { color: var(--md-sys-color-on-surface); padding: 20px; }
.single-dashboard-inner:hover { background: var(--md-sys-color-surface-container) !important; box-shadow: var(--md-elevation-2); }
.single-dashboard-inner .media-body h4,
.single-dashboard-inner .media-body p { color: var(--md-sys-color-on-surface); }

/* Las tarjetas de curso conservan el azul pizarra original. */
.single-course-wrap,
.coursebox {
  border-radius: var(--md-shape-large) !important;
  box-shadow: var(--md-elevation-1);
  overflow: hidden;
}
.coursebox { margin-bottom: 16px; padding: 12px; color: var(--md-sys-color-on-secondary); background: var(--md-sys-color-secondary) !important; border: 0 !important; }
.coursebox:hover { background: #263644 !important; box-shadow: var(--md-elevation-2); transform: translateY(-1px); }
.coursebox h1, .coursebox h2, .coursebox h3, .coursebox h4, .coursebox h5, .coursebox h6,
.coursebox .coursename, .coursebox .coursename a, .coursebox p,
.coursebox span, .coursebox .user-details, .coursebox a:not(.btn) { color: var(--md-sys-color-on-secondary) !important; }
.coursebox .btn-white {
  color: var(--md-sys-color-on-primary-container) !important;
  background: var(--md-sys-color-primary-container) !important;
  border-color: var(--md-sys-color-primary-container) !important;
}
.coursebox .btn-white:hover, .coursebox .btn-white:focus {
  color: var(--md-sys-color-on-primary) !important;
  background: var(--md-sys-color-primary) !important;
  border-color: var(--md-sys-color-primary) !important;
}
.single-course-wrap .thumb img { border-radius: var(--md-shape-medium); }

/* Barra superior opcional. */
.admin-dashboard-section .main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  padding: 20px 24px;
  background: var(--md-sys-color-secondary);
  border-radius: var(--md-shape-large);
  box-shadow: var(--md-elevation-1);
}
.header-user { display: flex; align-items: center; gap: 16px; color: #fff; }
.header-user strong { display: block; }
.header-user .imgperfil { width: 72px; height: 72px; object-fit: cover; }
.header-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.admin-dashboard-section .main-header .header-actions .btn { min-height: 48px; }
.admin-dashboard-section .main-header .header-actions .btn-white {
  color: var(--md-sys-color-on-secondary) !important;
  background: rgba(255, 255, 255, .10) !important;
  border-color: rgba(255, 255, 255, .82) !important;
}
.admin-dashboard-section .main-header .header-actions .btn-white:hover,
.admin-dashboard-section .main-header .header-actions .btn-white:focus {
  color: var(--md-sys-color-on-secondary) !important;
  background: rgba(255, 255, 255, .20) !important;
  border-color: var(--md-sys-color-on-secondary) !important;
}

/* Tablas Material. */
.table-responsive { width: 100%; overflow: auto; }
.table { width: 100%; margin-bottom: 0; color: var(--md-sys-color-on-surface); background: transparent; border-collapse: collapse; }
.table > thead { color: var(--md-sys-color-on-secondary-container); background: var(--md-sys-color-secondary-container) !important; }
.table > thead > tr > th,
.table > :not(caption) > * > * { padding: 16px !important; border-color: var(--md-sys-color-outline-variant) !important; vertical-align: middle; }
.table > tbody > tr { background: var(--md-sys-color-surface-bright) !important; }
.table > tbody > tr:hover { background: var(--md-sys-color-surface-container) !important; }
.table th { font-size: 14px; font-weight: 500; text-align: left; letter-spacing: .02em; }
.table td { line-height: 1.5; }
.dashboard-course .table { border: 0; }
.dashboard-course .table thead { color: var(--md-sys-color-on-secondary-container); background: var(--md-sys-color-secondary-container); }

/* Perfil. */
.imgperfil { border: 4px solid var(--md-sys-color-primary-container); box-shadow: var(--md-elevation-1); }
.dashboard-profile-area ul li {
  min-height: 48px;
  align-items: center;
  margin: 0;
  padding: 10px 4px;
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
}
.dashboard-profile-area ul li span { color: var(--md-sys-color-on-surface-variant); font-weight: 500; }
.profile-edit-action { margin: 20px 0 0 12px; }
.hr-line-dashed { border-color: var(--md-sys-color-outline-variant); }

/* Tabs y acordeones. */
.w3-bar { display: flex; gap: 8px; width: 100%; padding: 8px !important; overflow-x: auto; }
.w3-container { padding: 16px 0; }
.city { width: 100%; }
#descripcion, #instructor { line-height: 1.5; }
.w3-bar .w3-bar-item { margin: 0; flex: 0 0 auto; }
.course-tabs { align-items: flex-end; gap: 0; padding: 8px 12px 0 !important; border-bottom: 1px solid var(--md-sys-color-outline-variant); }
.course-tabs [role="tab"] {
  min-height: 48px;
  padding: 12px 20px;
  color: var(--md-sys-color-on-surface-variant);
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: var(--md-shape-small) var(--md-shape-small) 0 0;
  box-shadow: none;
}
.course-tabs [role="tab"]:hover { color: var(--md-sys-color-on-surface); background: var(--md-sys-color-surface-container); box-shadow: none; transform: none; }
.course-tabs [role="tab"][aria-selected="true"] { color: #4f741c; background: var(--md-sys-color-primary-container); border-bottom-color: var(--md-sys-color-primary); }
.course-tabs .course-questions-action { order: 99; margin-left: 15px; margin-bottom: 6px; }
.course-tabs .course-certificate-action { margin-bottom: 6px; }
.course-tabs .course-certificate-action .material-symbols-rounded {
  margin-right: 0;
  font-size: 20px;
  line-height: 20px;
}
.padtab { padding-left: 22px; padding-right: 22px; }
.accordion-item { margin-bottom: 8px; overflow: hidden; border: 1px solid var(--md-sys-color-outline-variant) !important; border-radius: var(--md-shape-medium) !important; background: #fff; }
.accordion-item summary { min-height: 56px; display: flex; align-items: center; gap: 16px; padding: 14px 20px; color: var(--md-sys-color-on-surface); background: var(--md-sys-color-surface-bright); cursor: pointer; font-weight: 500; list-style: none; }
.accordion-item summary::-webkit-details-marker { display: none; }
.accordion-item summary::after {
  width: 0;
  height: 0;
  flex: 0 0 auto;
  margin-left: auto;
  border-right: 6px solid transparent;
  border-left: 6px solid transparent;
  border-top: 8px solid currentColor;
  content: "";
  transition: transform 180ms var(--md-motion-standard);
}
.accordion-item[data-expanded="true"] summary::after,
.accordion-item[open]:not([data-expanded]) summary::after { transform: rotate(180deg); }
.accordion-item[open] summary { color: var(--md-sys-color-on-primary-container); background: var(--md-sys-color-primary-container); }
.accordion-body { padding: 16px 20px; transform-origin: top; }
.accordion-body ul { padding: 0; }
.accordion-body li { min-height: 40px; display: flex; align-items: center; gap: 12px; margin: 4px 0; padding: 6px 8px; list-style: none; border-radius: var(--md-shape-small); }
.accordion-body li:hover { background: var(--md-sys-color-surface-container); }
.accordion-body li > span { min-width: 0; flex: 1; }
.accordion-body li p { margin: 0; }
.accordion-body .play-btn2 { display: inline-flex; align-items: center; min-width: 24px; }

/* Aula del curso: visor principal y temario lateral. */
.course-detail-shell { max-width: 1200px; }
.material-workspace { display: grid; gap: 24px; }
.material-viewer {
  min-height: 220px;
  overflow: hidden;
  scroll-margin-top: 24px;
  background: var(--md-sys-color-surface-bright);
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: var(--md-shape-large);
  box-shadow: var(--md-elevation-1);
  transition: opacity 180ms var(--md-motion-standard), box-shadow 180ms var(--md-motion-standard);
}
.material-viewer:focus { outline: none; box-shadow: var(--md-elevation-2); }
.material-viewer.is-loading { opacity: .68; cursor: progress; }
.material-viewer [hidden] { display: none !important; }
.material-viewer-empty {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 32px;
  color: var(--md-sys-color-on-surface-variant);
  text-align: center;
}
.material-viewer-empty .material-symbols-rounded { margin-bottom: 12px; color: var(--md-sys-color-primary); font-size: 52px; }
.material-viewer-empty h5 { margin: 0 0 8px; font-size: 22px; }
.material-viewer-empty p { margin: 0; }
.material-viewer-header { padding: 20px 24px 16px; border-bottom: 1px solid var(--md-sys-color-outline-variant); }
.material-viewer-header h5 { margin: 4px 0 0; font-size: 22px; line-height: 28px; }
.material-viewer-label { color: var(--md-sys-color-on-surface-variant); font-size: 13px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.material-media { width: 100%; background: #101418; }
.material-media:empty { display: none; }
.material-media video { display: block; width: 100%; max-height: min(68vh, 675px); aspect-ratio: 16 / 9; margin: 0; background: #000; }
.material-media .plyr {
  width: 100%;
  max-height: min(68vh, 675px);
  --plyr-color-main: var(--md-sys-color-primary);
  --plyr-video-control-color-hover: var(--md-sys-color-on-primary-container);
  --plyr-video-control-background-hover: var(--md-sys-color-primary-container);
  --plyr-menu-background: var(--md-sys-color-surface-bright);
  --plyr-menu-color: var(--md-sys-color-on-surface);
}
.material-media .plyr video { max-height: min(68vh, 675px); }
.material-media .plyr:fullscreen,
.material-media .plyr:-webkit-full-screen,
.material-media .plyr.plyr--fullscreen-active,
.material-media .plyr.plyr--fullscreen-fallback {
  width: 100%;
  height: 100%;
  max-height: none;
}
.material-media .plyr:fullscreen video,
.material-media .plyr:-webkit-full-screen video,
.material-media .plyr.plyr--fullscreen-active video,
.material-media .plyr.plyr--fullscreen-fallback video {
  width: 100%;
  height: 100%;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
}
.material-media.has-pdf { background: var(--md-sys-color-surface-container-high); }
.pdf-viewer { width: 100%; color: var(--md-sys-color-on-surface); background: var(--md-sys-color-surface-container-high); }
.pdf-toolbar {
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: var(--md-sys-color-secondary);
  box-shadow: var(--md-elevation-1);
}
.pdf-toolbar-spacer { flex: 1; }
.pdf-control {
  width: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  color: var(--md-sys-color-on-secondary);
  background: transparent;
  border: 0;
  border-radius: 50%;
}
.pdf-control:hover { color: var(--md-sys-color-on-secondary); background: rgba(255, 255, 255, .14); box-shadow: none; transform: none; }
.pdf-control:disabled { opacity: .35; cursor: not-allowed; box-shadow: none; transform: none; }
.pdf-control .material-symbols-rounded { margin: 0; }
.pdf-page-indicator, .pdf-zoom-indicator { flex: 0 0 auto; color: var(--md-sys-color-on-secondary); font-size: 14px; font-weight: 500; }
.pdf-canvas-viewport {
  height: min(72vh, 780px);
  min-height: 580px;
  padding: 16px;
  overflow: auto;
  overscroll-behavior: contain;
  text-align: center;
}
.pdf-canvas { display: block; max-width: none; margin: 0 auto; background: #fff; box-shadow: var(--md-elevation-2); }
.pdf-viewer:fullscreen {
  display: flex;
  width: 100vw;
  height: 100vh;
  flex-direction: column;
  background: var(--md-sys-color-surface-container-high);
}
.pdf-viewer:fullscreen .pdf-canvas-viewport {
  height: auto;
  min-height: 0;
  flex: 1 1 auto;
}
.pdf-viewer:-webkit-full-screen {
  display: flex;
  width: 100vw;
  height: 100vh;
  flex-direction: column;
  background: var(--md-sys-color-surface-container-high);
}
.pdf-viewer:-webkit-full-screen .pdf-canvas-viewport {
  height: auto;
  min-height: 0;
  flex: 1 1 auto;
}
.pdf-status { margin: 0; padding: 10px 16px; color: var(--md-sys-color-on-surface-variant); text-align: center; }
.pdf-status:empty { display: none; }
.pdf-status.is-error { color: var(--md-sys-color-error); background: #ffdad6; }
.material-description { padding: 20px 24px; line-height: 1.65; overflow-wrap: anywhere; }
.material-description:empty { display: none; }
.material-description img, .material-description iframe { max-width: 100%; }
.material-viewer-actions { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 16px 24px; border-top: 1px solid var(--md-sys-color-outline-variant); }
.material-viewer-actions #material-previous { grid-column: 1; justify-self: start; }
.material-viewer-actions #material-link { grid-column: 2; justify-self: center; }
.material-viewer-actions #material-next { grid-column: 3; justify-self: end; }
.material-viewer-actions button:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.material-list {
  min-width: 0;
  padding: 18px;
  background: var(--md-sys-color-surface-container);
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: var(--md-shape-large);
}
.material-list > h5 { margin: 0 0 12px; }
.material-list .accordion-body { padding: 10px; }
.material-list .accordion-item summary { padding-right: 14px; padding-left: 14px; }
.accordion-body li.material-item { padding: 0; }
.material-item-button {
  width: 100%;
  min-height: 48px;
  justify-content: flex-start;
  gap: 12px;
  padding: 10px 12px;
  color: var(--md-sys-color-on-surface);
  background: transparent;
  border: 0;
  border-radius: var(--md-shape-small);
  text-align: left;
}
.material-item-button:hover { color: var(--md-sys-color-on-primary-container); background: var(--md-sys-color-primary-container); box-shadow: none; transform: none; }
.material-item-button.is-active { color: var(--md-sys-color-on-primary-container); background: var(--md-sys-color-primary-container); font-weight: 500; }
.material-item-button img { flex: 0 0 auto; }

/* Paginación. */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pagination a {
  min-width: 40px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 8px;
  color: var(--md-sys-color-on-surface-variant);
  background: transparent;
  border-radius: 20px !important;
  font-weight: 500;
}
.pagination a:hover:not(.active) { background: var(--md-sys-color-secondary-container); }
.pagination a.active, .pagination .activepag { color: #fff; background: var(--md-sys-color-primary) !important; }

/* Cuestionarios. */
.pregunta,
.preguntaR,
.pregunta2R,
.pendinganswers {
  border-radius: var(--md-shape-medium);
}
.pregunta { padding: 20px; background: var(--md-sys-color-surface-bright); border: 1px solid var(--md-sys-color-outline-variant); box-shadow: var(--md-elevation-1); font-size: 22px; }
.preguntaR, .pregunta2R { padding: 18px; font-size: 18px; background-color: white; padding: 20px; border: 1px dotted; }
.pregunta2R { background: var(--md-sys-color-primary-container); }
.pregunta2R-incorrect { background: rgb(247, 244, 85); }
.question-result-icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  margin: 0 4px;
  vertical-align: middle;
}
.question-result-separator {
  width: 100%;
  height: 0;
  margin: 24px 0;
  padding: 0;
  border: 0;
  border-top: 1px solid var(--md-sys-color-outline-variant);
}
.pendinganswers { color: var(--md-sys-color-on-primary-container); background: var(--md-sys-color-primary-container); padding: 12px 16px; }
fieldset { margin: 0; padding: 0; border: 0; }
fieldset > [class*="col-"] { min-height: 48px; display: flex; align-items: center; padding: 10px 12px; border-radius: var(--md-shape-medium); }
fieldset > [class*="col-"]:hover { background: var(--md-sys-color-surface-container); }

/* Diálogos Material. */
.modal { display: none; position: fixed; inset: 0; z-index: 1100; overflow: auto; padding: 16px; background: rgba(23, 35, 45, .56); }
.modal-content {
  position: relative;
  width: min(560px, calc(100% - 32px));
  margin: max(48px, 10vh) auto;
  padding: 24px;
  color: var(--md-sys-color-on-surface);
  background: var(--md-sys-color-surface-bright);
  border: 0;
  border-radius: var(--md-shape-extra-large);
  box-shadow: var(--md-elevation-3);
}
.modal-content .close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--md-sys-color-on-surface-variant);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.modal-content .close:hover { background: var(--md-sys-color-surface-container-high); }
.title-modal { padding: 4px 44px 0; color: var(--md-sys-color-on-surface); font-size: 24px; font-weight: 500; line-height: 32px; }
#questions-qty {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}
#questions-qty .btn {
  width: 100% !important;
  min-height: 40px;
  padding: 8px 14px;
}
.swal2-popup { border-radius: var(--md-shape-extra-large) !important; font-family: "Roboto", Arial, sans-serif !important; }
.swal2-actions .swal2-styled { border-radius: 20px !important; box-shadow: none !important; font-weight: 500; }

/* Botón volver arriba. */
.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 900;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--md-sys-color-on-primary-container);
  background: var(--md-sys-color-primary-container);
  border: 0;
  border-radius: 16px;
  box-shadow: var(--md-elevation-3);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}
.back-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* Acceso y recuperación: tarjeta Material sobre la paleta original. */
body.text-white {
  min-height: 100%;
  padding: 32px 16px;
  color: #fff;
  background: radial-gradient(circle at 50% -20%, #4c5b68 0, var(--md-sys-color-secondary) 55%, #263644 100%);
}
body.text-white .loginscreen.middle-box { width: min(100%, 400px); max-width: 400px; margin: 0 auto; padding-top: max(24px, 6vh); text-align: center; }
body.text-white .loginscreen > div {
  padding: 28px;
  background: rgba(47, 64, 80, .92);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--md-shape-extra-large);
  box-shadow: 0 12px 36px rgba(0,0,0,.30);
  backdrop-filter: blur(8px);
}
body.text-white .loginscreen > div > div { padding: 0; background: transparent; border: 0; box-shadow: none; }
body.text-white .loginscreen h3 { color: #fff; font-size: 24px; line-height: 32px; }
body.text-white .loginscreen p { color: rgba(255,255,255,.78); }
body.text-white .loginscreen label { display: block; margin: 0 0 6px; color: rgba(255,255,255,.86); text-align: left; }
body.text-white .loginscreen a { color: #c7e996; font-weight: 500; }
body.text-white .loginscreen .form-control { background: #fff !important; }
body.text-white .loginscreen .btn-primary { width: 100%; min-height: 48px; border-radius: 24px; }
body.text-white .loginscreen img { max-height: 92px; margin: 0 0 28px; object-fit: contain; }
body.text-white #togglePassword { min-height: 40px; display: inline-flex !important; align-items: center; justify-content: flex-end; gap: 6px; margin: 0 !important; color: rgba(255,255,255,.82); cursor: pointer; }
body.text-white .red2 { color: #ffb4ab !important; }
body.text-white .verde2 { color: #c7e996 !important; }
.g-recaptcha, #html_element { max-width: 100%; overflow: hidden; }

@media (min-width: 1200px) {
  .material-workspace { grid-template-columns: minmax(0, 2fr) minmax(310px, .9fr); align-items: start; }
  .material-list { position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow-y: auto; overscroll-behavior: contain; }
}

@media (max-width: 991px) {
  body.sc5.container, body.sc5 { padding: 80px 16px 24px !important; }
  .dashboard-left-menu, .l-navbar { transform: translateX(-105%); }
  .dashboard-left-menu.show, .l-navbar.show { transform: translateX(0); }
  .topinfo { display: flex; }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav-scrim { display: block; }
}

@media (max-width: 767px) {
  .section-tab { padding: 18px; }
  .dashboard-title { font-size: 22px; line-height: 28px; }
  .coursebox .row > [class*="col-"] { padding-top: 6px; padding-bottom: 6px; }
  .fixbtn { justify-content: flex-start; }
  .form-horizontal .form-group { display: block; }
  .form-horizontal .form-group label { display: block; width: 100% !important; margin-bottom: 6px; }
  .dashboard-profile-area ul li { display: block; }
  .dashboard-profile-area ul li span { display: block; width: 100%; margin-bottom: 4px; }
  .w3-bar { align-items: stretch; flex-direction: column; }
  .w3-bar .w3-bar-item { width: 100%; }
  .course-tabs { align-items: flex-end; flex-direction: row; }
  .course-tabs .w3-bar-item { width: auto; }
  .course-tabs .course-questions-action { margin-left: auto; }
  .modal-content { padding: 24px 18px; }
  .material-viewer-header, .material-description { padding-right: 18px; padding-left: 18px; }
  .pdf-toolbar { flex-wrap: wrap; }
  .pdf-toolbar-spacer { display: none; }
  .pdf-canvas-viewport { height: 65vh; min-height: 440px; padding: 10px; }
  .material-viewer-actions { display: flex; flex-wrap: wrap; justify-content: space-between; padding: 16px 18px; }
  .material-viewer-actions #material-link { width: 100%; order: -1; }
  .admin-dashboard-section .main-header { align-items: stretch; flex-direction: column; }
  .header-actions { justify-content: stretch; }
  .header-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

.wrap-details h6{
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 20px;
  font-weight: bold;
}

.wrap-details .col-12 span{
  font-size: 14px;
}