@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Fraunces:opsz,wght@9..144,700;9..144,800&family=Inter:wght@400;500;600;700;800&family=Lato:wght@400;700;900&family=Merriweather:wght@400;700;900&family=Montserrat:wght@400;600;700;800&family=Nunito:wght@400;600;700;800&family=Open+Sans:wght@400;600;700;800&family=Oswald:wght@400;600;700&family=Playfair+Display:wght@500;600;700;800&family=Poppins:wght@400;500;600;700;800&family=Raleway:wght@400;600;700;800&family=Roboto:wght@400;500;700;900&family=Source+Sans+3:wght@400;600;700;800&display=swap');
:root{
  --green:#12924f;
  --green-dark:#0b7a43;
  --ink:#17223a;
  --muted:#566176;
  --bg:#f0f1f3;
  --card:#ffffff;
  --line:#d6dbe3;
  --line2:#cbd2dc;
  --yellow:#efc531;
  --dark:#1f2230;
  --shadow:0 14px 35px rgba(23,32,51,.06);
}

*{box-sizing:border-box}
html,body{margin:0;min-height:100%}
body.px-admin{
  background:var(--bg);
  color:var(--ink);
  font-family:"Inter","Segoe UI",Arial,sans-serif;
  font-size:16px;
  line-height:1.42;
  border-top:5px solid #2d333d;
}
a{text-decoration:none;color:inherit}
.topbar-admin{
  background:#fff;
  border-bottom:1px solid #d5d5d5;
  height:86px;
  display:flex;
  align-items:center;
  position:sticky;
  top:0;
  z-index:50;
}
.topbar-inner{
  width:min(1320px,calc(100% - 48px));
  margin:auto;
  display:flex;
  align-items:center;
}
.logo{
  width:230px;
  height:54px;
  object-fit:contain;
  object-position:left center;
}
.topbar-menu{
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:30px;
  font-weight:900;
  letter-spacing:.06em;
  text-transform:uppercase;
  font-size:14px;
}
.topbar-menu a,.topbar-menu span{color:#0a0e18}
.admin-wrap{
  width:min(1320px,calc(100% - 48px));
  margin:34px auto 70px;
  display:grid;
  grid-template-columns:300px minmax(0,1fr);
  gap:26px;
  align-items:start;
}
.side-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  padding:22px;
  box-shadow:var(--shadow);
  position:sticky;
  top:116px;
}
.side-menu{display:grid;gap:11px}
.side-menu a{
  display:flex;
  align-items:center;
  min-height:58px;
  padding:14px 22px;
  border:1px solid var(--line2);
  border-radius:12px;
  background:#fff;
  color:#102341;
  font-size:19px;
  font-weight:900;
}
.side-menu a.active{
  background:var(--green);
  border-color:var(--green);
  color:#fff;
}
.side-menu hr{
  border:0;
  border-top:1px solid #9da5b1;
  width:100%;
  margin:8px 0;
}
.admin-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  box-shadow:var(--shadow);
  padding:28px;
}
.admin-card + .admin-card{margin-top:18px}
.page-title{
  font-size:34px;
  font-weight:900;
  color:var(--ink);
  margin:0 0 6px;
  letter-spacing:-.03em;
}
.page-subtitle{margin:0 0 22px;color:var(--muted);font-size:16px}
.block-card{
  border:1px solid var(--line);
  border-radius:14px;
  overflow:hidden;
  background:#fff;
  margin-bottom:16px;
}
.block-card.collapsed .block-body{display:none}
.block-head{
  background:#f6f8fb;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:16px 20px;
}
.block-head h2{margin:0;font-size:22px;color:var(--ink);font-weight:900}
.block-toggle{
  width:38px;height:38px;border-radius:50%;
  display:grid;place-items:center;
  background:#eef8f2;color:var(--green-dark);
  font-weight:900;
  border:0;
  cursor:pointer;
}
.block-body{padding:22px}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.form-grid.three{grid-template-columns:repeat(3,1fr)}
.form-grid.four{grid-template-columns:repeat(4,1fr)}
.span2{grid-column:1/-1}
label{display:grid;gap:7px;font-weight:900;color:#102341}
input,select,textarea{
  width:100%;
  border:1px solid #cfd4dc;
  border-radius:9px;
  padding:12px 13px;
  font:inherit;
  color:#102341;
  background:#fff;
}
textarea{min-height:94px;resize:vertical}
input[type=color]{width:58px;min-height:44px;padding:4px}
input[type=file]{padding:10px;background:#fff}
button,.btn-admin{
  border:0;border-radius:10px;background:var(--green);color:#fff;
  padding:14px 22px;font-weight:900;cursor:pointer;
  display:inline-flex;align-items:center;justify-content:center;text-decoration:none;font-size:16px;
}
.btn-light{background:#fff;color:#111;border:1px solid var(--line2)}
.btn-danger{background:#fff;color:#b91c1c;border:1px solid #e2b7b7}
.button-row{display:flex;gap:12px;flex-wrap:wrap;margin-top:18px}
.notice{
  background:#fff8d8;border:1px solid #e8ca67;border-radius:10px;padding:16px;margin:16px 0;
}
.notice.green{background:#eef9f2;border-color:#b9e3c8}
.preview-hero{border:1px dashed #b8c4d5;border-radius:14px;overflow:hidden;background:#f7fafc}
.preview-hero img{width:100%;height:190px;object-fit:cover;display:block}
.feature-preview{
  background:var(--yellow);
  border-radius:10px;
  padding:22px;
  min-height:170px;
  margin-bottom:14px;
}
.feature-preview .icon{font-size:28px;margin-bottom:10px}
.feature-preview h4{font-size:18px;margin:0 0 10px}
.feature-preview p{line-height:1.55;margin:0}
.preview-banner-card{
  background:#13223b;color:#fff;border-radius:10px;overflow:hidden;min-height:235px;margin-bottom:14px;
}
.preview-banner-card img{width:100%;height:120px;object-fit:cover;background:#fff}
.preview-banner-card div{padding:16px}
.preview-footer{
  background:#1f2230;color:#fff;border-radius:14px;padding:28px;
}
.preview-footer-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:26px}
.preview-footer h3{margin:0 0 8px;font-size:18px}
.preview-footer a{display:block;color:#fff;margin:4px 0}
.course-admin-layout{display:grid;grid-template-columns:390px 1fr;gap:22px}
.course-list{display:grid;gap:10px;max-height:680px;overflow:auto;padding-right:4px}
.course-list-item{border:1px solid var(--line2);border-radius:9px;padding:12px;background:#fff}
.course-list-item.active{border-color:var(--green);box-shadow:0 0 0 3px rgba(18,146,79,.10)}
.course-list-item strong{display:block;color:#111}
.course-list-item small{display:block;color:#111;margin-top:4px}
.res-table{width:100%;border-collapse:collapse;background:#fff}
.res-table th,.res-table td{border:1px solid #cfd4dc;padding:12px;text-align:left;vertical-align:top}
.alert{padding:14px 16px;border-radius:10px;margin-bottom:16px;font-weight:900}
.alert.ok,.ok{background:#e9f8ef;border-left:6px solid var(--green)}
.alert.err,.err{background:#fff1f2;border-left:6px solid #b91c1c}
.muted{color:var(--muted)}
.admin-footer-note{margin-top:16px;color:var(--muted)}
@media(max-width:1100px){
  .admin-wrap,.course-admin-layout{grid-template-columns:1fr}
  .side-card{position:relative;top:auto}
  .form-grid,.form-grid.three,.form-grid.four,.preview-footer-grid{grid-template-columns:1fr}
  .topbar-inner{flex-wrap:wrap;padding:12px 0}
  .topbar-admin{height:auto}
  .topbar-menu{margin-left:0;flex-wrap:wrap}
}


/* ===== Fase 3B: panel único con tabs originales ===== */
.admin-layout-v74{display:grid;grid-template-columns:300px minmax(0,1fr);gap:26px;align-items:start}
.admin-section{display:none}
.admin-section.active{display:block}
.admin-tabs-left{position:sticky;top:116px}
.v74-editor-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.v74-editor-grid .span2{grid-column:1/-1}
.v74-pill-row{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0}
.v74-small-note{font-size:13px;color:#667085;margin-top:6px}
.v74-json-box{min-height:280px;font-family:Consolas,Monaco,monospace;font-size:13px;line-height:1.45}
.v74-course-picker{display:grid;grid-template-columns:360px 1fr;gap:22px}
.v74-course-list{max-height:760px;overflow:auto;display:grid;gap:10px;padding-right:5px}
.v74-course-list a{border:1px solid #cfd4dc;border-radius:9px;padding:12px;background:#fff;color:#111}
.v74-course-list a.active{border-color:var(--green);box-shadow:0 0 0 3px rgba(18,146,79,.10)}
.v74-preview-card{border:1px dashed #b8c4d5;background:#f7fafc;border-radius:12px;padding:16px}
.v74-footer-columns-table{width:100%;border-collapse:collapse}
.v74-footer-columns-table td,.v74-footer-columns-table th{border:1px solid #cfd4dc;padding:10px;vertical-align:top}
.v74-status-line{display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap}
@media(max-width:1100px){
  .admin-layout-v74,.v74-course-picker,.v74-editor-grid{grid-template-columns:1fr}
  .admin-tabs-left{position:relative;top:auto}
}


/* ===== Fase 3C: tipografía y diseño profesional del panel ===== */
:root{
  --admin-font:"Segoe UI Variable","Segoe UI",Roboto,Arial,sans-serif;
  --admin-title:#111827;
  --admin-soft:#f8fafc;
  --admin-border:#d7dde8;
  --admin-green:#0f8f4d;
  --admin-green-dark:#08733b;
}
body.px-admin{
  font-family:var(--admin-font)!important;
  font-size:15.5px!important;
  line-height:1.5!important;
  color:#1f2937!important;
  background:
    radial-gradient(circle at top right, rgba(15,143,77,.06), transparent 32%),
    #eef1f5!important;
}
body.px-admin input,
body.px-admin textarea,
body.px-admin select,
body.px-admin button{
  font-family:var(--admin-font)!important;
}
.topbar-admin{
  box-shadow:0 6px 18px rgba(17,24,39,.05);
}
.topbar-menu{
  font-size:13px!important;
  letter-spacing:.04em!important;
}
.side-menu a{
  font-size:17px!important;
  min-height:54px!important;
  padding:13px 18px!important;
}
.side-menu a.active{
  background:linear-gradient(135deg,var(--admin-green),var(--admin-green-dark))!important;
}
.admin-card{
  border-color:var(--admin-border)!important;
  box-shadow:0 16px 38px rgba(17,24,39,.07)!important;
}
.page-title{
  font-size:32px!important;
  letter-spacing:-.025em!important;
  color:var(--admin-title)!important;
}
.page-subtitle{
  font-size:15.5px!important;
  max-width:820px;
}
.block-head{
  background:linear-gradient(180deg,#fbfcfe,#f3f6fa)!important;
  border-bottom:1px solid var(--admin-border);
}
.block-head h2{
  font-size:21px!important;
}
label{
  font-size:14.5px!important;
  color:#162033!important;
}
input,select,textarea{
  border-color:#cbd5e1!important;
  border-radius:10px!important;
}
input:focus,textarea:focus,select:focus{
  outline:none!important;
  border-color:var(--admin-green)!important;
  box-shadow:0 0 0 3px rgba(15,143,77,.11)!important;
}
button,.btn-admin{
  background:linear-gradient(135deg,var(--admin-green),var(--admin-green-dark));
  box-shadow:0 8px 20px rgba(15,143,77,.13);
}
.btn-light{
  background:#fff!important;
  color:#111827!important;
  box-shadow:none!important;
}
.image-spec{
  display:grid;
  gap:3px;
  background:#f7fbff;
  border:1px solid #bfdbfe;
  border-left:5px solid #0f8f4d;
  border-radius:12px;
  padding:12px 14px;
  margin:10px 0 12px;
  color:#1e3a5f;
}
.image-spec strong{font-size:14px;color:#0f172a}
.image-spec span{font-size:13px;font-weight:700}
.image-spec em{font-size:12.5px;color:#475569;font-style:normal}
.v74-dashboard-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  margin:14px 0 22px;
}
.v74-stat-card{
  background:#fff;
  border:1px solid var(--admin-border);
  border-radius:14px;
  padding:18px;
}
.v74-stat-card strong{
  display:block;
  font-size:30px;
  line-height:1;
  color:var(--admin-green);
}
.v74-stat-card span{
  display:block;
  color:#526071;
  font-weight:800;
  margin-top:7px;
  font-size:13px;
}
.v74-course-filter{
  display:grid;
  grid-template-columns:1fr 150px;
  gap:10px;
  margin-bottom:12px;
}
.v74-course-list a small{
  display:block;
  margin-top:4px;
  color:#64748b;
}
.v74-course-list a .course-dot{
  display:inline-flex;
  width:8px;height:8px;border-radius:99px;background:#0f8f4d;margin-right:6px;
}
.course-count-badge{
  display:inline-flex;
  border-radius:999px;
  background:#e8f7ee;
  color:#0f7a42;
  padding:6px 10px;
  font-weight:900;
  font-size:13px;
}
.v74-preview-card img[src="../"],
.v74-preview-card img:not([src]){
  display:none;
}
.admin-help-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}
@media(max-width:1100px){
  .v74-dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .admin-help-row{grid-template-columns:1fr}
  .v74-course-filter{grid-template-columns:1fr}
}
@media(max-width:700px){
  .v74-dashboard-grid{grid-template-columns:1fr}
}


/* ===== Fase 3D: recomendaciones visibles al lado de cada preview ===== */
.preview-spec-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) 320px;
  gap:16px;
  align-items:stretch;
  grid-column:1/-1;
  margin:10px 0 14px;
}
.preview-spec-row .preview-hero,
.preview-spec-row .v74-preview-card,
.preview-spec-row .preview-banner-card{
  margin:0!important;
  height:100%;
}
.image-spec-inline{
  margin:0!important;
  min-height:100%;
  align-content:start;
  background:linear-gradient(180deg,#f7fbff,#eef8f3);
  border:1px solid #b7d7c6;
  border-left:6px solid #0f8f4d;
  border-radius:14px;
  padding:15px 16px;
  box-shadow:0 8px 20px rgba(15,143,77,.06);
}
.image-spec-title{
  display:inline-flex;
  width:max-content;
  background:#0f8f4d;
  color:#fff;
  border-radius:999px;
  padding:4px 9px;
  font-weight:900;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.04em;
  margin-bottom:7px;
}
.image-spec-inline strong{
  display:block;
  color:#0f172a;
  font-size:15px;
  margin-bottom:6px;
}
.image-spec-inline span{
  display:block;
  font-size:13px;
  color:#24415f;
  margin:2px 0;
}
.image-spec-inline em{
  display:block;
  margin-top:8px;
  color:#475569;
  font-size:12.5px;
  line-height:1.45;
}
.preview-spec-row.compact{
  grid-template-columns:minmax(0,1fr) 280px;
}
.preview-spec-row.compact .preview-banner-card{
  min-height:260px;
}
@media(max-width:900px){
  .preview-spec-row,
  .preview-spec-row.compact{
    grid-template-columns:1fr;
  }
}


/* ===== Fase 3E: revisión funcional del panel ===== */
.panel-tabbar{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin:18px 0 0;
}
.panel-tabbar a{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  border:1px solid #cbd5e1;
  border-radius:12px;
  background:#fff;
  color:#102341;
  font-weight:900;
  text-align:center;
}
.panel-tabbar a.active{
  background:linear-gradient(135deg,#0f8f4d,#08733b);
  color:#fff;
  border-color:#0f8f4d;
  box-shadow:0 8px 18px rgba(15,143,77,.14);
}
.functional-audit{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin-top:16px;
}
.functional-audit .audit-item{
  border:1px solid #d7dde8;
  border-radius:14px;
  background:#fff;
  padding:14px;
}
.functional-audit .audit-item strong{
  display:block;
  font-size:18px;
  color:#0f8f4d;
}
.functional-audit .audit-item span{
  display:block;
  color:#526071;
  font-weight:800;
  font-size:13px;
  margin-top:4px;
}
.panel-warning{
  border-left:6px solid #d97706;
  background:#fff8e6;
  border-radius:12px;
  padding:14px 16px;
  margin-top:14px;
  color:#533500;
}
@media(max-width:1100px){
  .panel-tabbar{grid-template-columns:repeat(2,minmax(0,1fr))}
  .functional-audit{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:700px){
  .panel-tabbar,.functional-audit{grid-template-columns:1fr}
}


/* ===== Fase 3M: últimos cambios consolidados y corregidos ===== */
body.px-admin{font-weight:400!important;}
body.px-admin label{font-weight:600!important;}
body.px-admin input,
body.px-admin textarea,
body.px-admin select,
body.px-admin option{font-weight:400!important;color:#1f2937!important;letter-spacing:0!important;}
body.px-admin .muted,
body.px-admin .image-spec,
body.px-admin .image-spec *,
body.px-admin .v74-small-note,
body.px-admin .panel-warning,
body.px-admin .notice,
body.px-admin .notice *,
body.px-admin .preview-feature p,
body.px-admin .feature-preview p,
body.px-admin .v74-preview-card,
body.px-admin .v74-preview-card *{font-weight:400!important;}
body.px-admin .page-title{font-weight:750!important;}
body.px-admin .block-head h2,
body.px-admin h2,
body.px-admin h3{font-weight:650!important;}
body.px-admin .side-menu a,
body.px-admin .panel-tabbar a,
body.px-admin button,
body.px-admin .btn-admin{font-weight:650!important;}
.image-spec-simple span,
.image-spec-simple strong,
.image-spec-simple em{font-weight:400!important;font-size:15px!important;line-height:1.4!important;color:#102341!important;}
.course-image-block{grid-column:1/-1;margin:12px 0;}
.course-image-block .block-head h2{font-size:18px!important;}
.course-image-block input,
.course-image-block label{font-weight:400!important;}
.feature-icon-admin-preview{min-height:110px;display:flex;align-items:center;justify-content:center;background:#fff;}
.feature-icon-img{max-width:72px;max-height:72px;object-fit:contain;display:inline-block;}
.feature-icon-emoji{font-size:30px;line-height:1;}
.feature-preview .feature-icon-img{max-width:52px;max-height:52px;}


/* ===== Fase 3O: vista previa real e inmediata en Estilos ===== */
.style-live-preview{
  background:#fff;
  border:1px dashed #cfd4dc;
  border-radius:14px;
  padding:18px;
  display:grid;
  gap:16px;
  overflow:hidden;
}
.style-preview-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  border-bottom:1px solid #edf0f4;
  padding-bottom:10px;
}
.style-preview-kicker{
  color:#07863b;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.style-preview-note{
  color:#687386;
  font-size:13px;
  font-weight:600;
  text-align:right;
}
.style-preview-menu{
  display:flex;
  flex-wrap:wrap;
  gap:14px 22px;
  align-items:center;
  color:#17223a;
  font-weight:800;
  letter-spacing:.04em;
}
.style-preview-hero{
  background:linear-gradient(135deg,#f8fafc,#fff);
  border:1px solid #e5e9ef;
  border-radius:14px;
  padding:20px;
}
.style-preview-badge,
.style-preview-section > span,
.style-preview-course > span{
  display:inline-block;
  color:#07863b;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.style-preview-hero h2{
  margin:8px 0 8px;
  color:#17223a;
  line-height:1.02;
  max-width:1050px;
}
.style-preview-hero p{
  margin:0;
  color:#4f5b70;
  max-width:980px;
  line-height:1.45;
}
.style-preview-grid{
  display:grid;
  grid-template-columns:minmax(0,1.25fr) minmax(0,.85fr);
  gap:16px;
}
.style-preview-course{
  border:1px solid #e2e7ee;
  border-radius:14px;
  padding:18px;
  background:#fff;
  box-shadow:0 10px 28px rgba(23,32,58,.05);
}
.style-preview-course h3{
  margin:8px 0;
  color:#17223a;
  line-height:1.1;
}
.style-preview-course p{
  margin:0 0 14px;
  color:#566176;
  line-height:1.45;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.style-preview-course button{
  pointer-events:none;
  border:0;
  border-radius:999px;
  background:var(--green);
  color:#fff;
  padding:10px 16px;
  font-weight:800;
}
.style-preview-section{
  border-top:1px solid #edf0f4;
  padding-top:12px;
}
.style-preview-section h3{
  margin:8px 0 8px;
  color:#17223a;
  line-height:1.1;
}
.style-preview-section p{
  margin:0 0 10px;
  color:#566176;
  line-height:1.5;
}
.style-preview-section strong{
  color:#17223a;
}
@media (max-width:900px){
  .style-preview-grid{grid-template-columns:1fr}
  .style-preview-hero h2{font-size:clamp(32px,9vw,54px)!important}
  .style-preview-head{display:grid}
  .style-preview-note{text-align:left}
}


/* ===== Fase 3P: orden del panel y menos negritas ===== */
body.px-admin{
  font-weight:400!important;
  letter-spacing:0!important;
}
body.px-admin .topbar-menu,
body.px-admin .side-menu a,
body.px-admin .panel-tabbar a,
body.px-admin label,
body.px-admin button,
body.px-admin .btn-admin,
body.px-admin .badge,
body.px-admin strong{
  font-weight:600!important;
}
body.px-admin .page-title{
  font-weight:650!important;
  font-size:30px!important;
}
body.px-admin .page-subtitle,
body.px-admin .notice,
body.px-admin .notice *,
body.px-admin .muted,
body.px-admin p,
body.px-admin li,
body.px-admin span,
body.px-admin input,
body.px-admin textarea,
body.px-admin select{
  font-weight:400!important;
}
body.px-admin .block-head h2,
body.px-admin h2,
body.px-admin h3{
  font-weight:600!important;
}
body.px-admin .side-menu{
  gap:9px!important;
}
body.px-admin .side-menu a{
  min-height:48px!important;
  padding:11px 16px!important;
  font-size:16px!important;
  letter-spacing:0!important;
}
body.px-admin .panel-tabbar a{
  min-height:42px!important;
  font-size:14.5px!important;
  letter-spacing:0!important;
}
body.px-admin .functional-audit .audit-item strong,
body.px-admin .v74-stat-card strong{
  font-weight:650!important;
}
body.px-admin .topbar-menu span{display:none!important;}
@media(max-width:900px){
  body.px-admin .admin-wrap{width:min(100% - 24px,1320px)!important;margin-top:18px!important;gap:16px!important;}
  body.px-admin .side-card{padding:14px!important;border-radius:14px!important;}
  body.px-admin .side-menu{grid-template-columns:1fr 1fr!important;display:grid!important;}
  body.px-admin .side-menu a{font-size:14.5px!important;min-height:44px!important;padding:10px 12px!important;}
  body.px-admin .side-menu hr{grid-column:1/-1!important;}
}
@media(max-width:560px){
  body.px-admin .side-menu{grid-template-columns:1fr!important;}
}


/* ===== Fase 3Q: controles junto a vistas previas ===== */
body.px-admin .admin-card{padding:24px!important;}
body.px-admin .block-body{padding:18px!important;}
.control-preview-pair,
.feature-editor-pair,
.promo-editor-pair{
  display:grid;
  grid-template-columns:minmax(300px,.92fr) minmax(340px,1.08fr);
  gap:18px;
  align-items:start;
}
.control-preview-controls,
.feature-editor-controls,
.promo-editor-controls{display:grid;gap:13px;}
.control-preview-box,
.feature-editor-preview,
.promo-editor-preview{
  display:grid;
  gap:12px;
  min-width:0;
}
.sticky-preview-box{position:sticky;top:108px;align-self:start;}
.brand-copy-preview{
  border:1px solid #e5e9ef;
  border-radius:12px;
  padding:14px;
  background:#fff;
}
.brand-copy-preview span{
  display:inline-block;
  color:#0f8f4d;
  text-transform:uppercase;
  letter-spacing:.04em;
  font-size:12px;
  margin-bottom:6px;
}
.brand-copy-preview h3{font-size:24px!important;line-height:1.1;margin:0 0 7px!important;}
.brand-copy-preview p{font-size:14px!important;line-height:1.45;margin:0!important;color:#526071;}
.hero-maintenance-title{border:1px solid #e5e9ef;border-radius:12px;background:#f8fafc;padding:12px;}
.hero-maintenance-title span{font-weight:600!important;}
.hero-maintenance-title small{font-weight:400!important;color:#64748b;}
.feature-editor-card .feature-preview{margin:0!important;min-height:160px;}
.preview-spec-stacked{grid-template-columns:1fr!important;gap:10px!important;}
.preview-spec-stacked .image-spec-inline{min-height:auto!important;}
#featureCardsEditor{grid-template-columns:1fr!important;}
#promoItemsEditor{grid-template-columns:1fr!important;}
.promo-editor-card h3{margin:0 0 2px!important;}
.promo-editor-preview .preview-banner-card{margin:0!important;}
.style-control-preview{
  grid-template-columns:minmax(270px,.82fr) minmax(420px,1.18fr)!important;
  gap:14px 18px!important;
}
.style-control-preview .style-live-preview{
  grid-column:2!important;
  grid-row:1 / span 18!important;
  position:sticky;
  top:108px;
  align-self:start;
}
.style-control-preview label{grid-column:1!important;}
.style-control-preview .style-preview-grid{grid-template-columns:1fr!important;}
.style-control-preview .style-preview-hero h2{font-size:clamp(28px,3.2vw,46px)!important;}
.footer-preview-pair{grid-template-columns:minmax(360px,.9fr) minmax(420px,1.1fr);}
.footer-preview-pair .preview-footer{margin-top:0!important;}
.footer-preview-pair .preview-footer-grid{grid-template-columns:repeat(2,1fr)!important;gap:18px!important;}
body.px-admin .side-menu a,
body.px-admin .panel-tabbar a,
body.px-admin label,
body.px-admin button,
body.px-admin .btn-admin,
body.px-admin strong{font-weight:550!important;}
body.px-admin .page-title{font-weight:620!important;}
body.px-admin .block-head h2,
body.px-admin h2,
body.px-admin h3{font-weight:570!important;}
@media(max-width:1180px){
  .control-preview-pair,
  .feature-editor-pair,
  .promo-editor-pair,
  .footer-preview-pair,
  .style-control-preview{grid-template-columns:1fr!important;}
  .sticky-preview-box,
  .style-control-preview .style-live-preview{position:relative!important;top:auto!important;grid-column:auto!important;grid-row:auto!important;}
  .style-control-preview label{grid-column:auto!important;}
  .footer-preview-pair .preview-footer-grid{grid-template-columns:1fr!important;}
}

/* Fase 3R: controles de estilos junto al texto real que modifican */
.style-direct-layout{
  display:grid;
  gap:18px;
}
.style-direct-grid{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:12px!important;
}
.style-direct-row{
  display:grid;
  grid-template-columns:minmax(360px, 1.08fr) minmax(340px, .92fr);
  gap:14px;
  align-items:stretch;
  padding:14px;
  border:1px solid #e5e9ef;
  border-radius:16px;
  background:#fff;
}
.style-direct-sample{
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-width:0;
  padding:14px;
  border:1px dashed #d6dee9;
  border-radius:14px;
  background:linear-gradient(180deg,#f8fafc,#ffffff);
}
.style-direct-label{
  display:block;
  margin:0 0 8px;
  color:#0f8f4d;
  font-size:12px;
  font-weight:550!important;
  text-transform:uppercase;
  letter-spacing:.055em;
}
.style-direct-sample h3,
.style-direct-sample p,
.style-direct-sample strong{
  margin:0!important;
  line-height:1.16!important;
}
.style-direct-sample p{
  line-height:1.42!important;
}
.style-direct-controls{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  align-content:center;
}
.style-mini-control{
  margin:0!important;
  gap:5px!important;
  font-weight:500!important;
}
.style-mini-control span{
  font-size:12px;
  color:#475569;
  font-weight:500!important;
}
.style-mini-control small{
  color:#64748b;
  font-size:11px;
  margin-top:-3px;
}
.style-mini-control select,
.style-mini-control input{
  min-height:44px!important;
}
.style-direct-row.headline-sample .style-direct-sample{
  background:#071b43;
  color:#fff;
  border-color:#12386d;
}
.style-direct-row.subtitle-sample .style-direct-sample{
  background:#071b43;
  color:#eef6ff;
  border-color:#12386d;
}
.style-direct-row.kicker-sample .style-direct-sample,
.style-direct-row.menu-sample .style-direct-sample{
  background:#f3fff7;
}
.style-direct-row.button-sample button{
  width:max-content;
  max-width:100%;
  border:0;
  border-radius:12px;
  padding:13px 22px;
  color:#fff;
  background:#11964f;
}
.style-direct-row.card-title-sample .style-direct-sample,
.style-direct-row.desc-sample .style-direct-sample{
  background:#fbfcff;
}
@media(max-width:1120px){
  .style-direct-row{grid-template-columns:1fr;}
  .style-direct-controls{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:680px){
  .style-direct-controls{grid-template-columns:1fr;}
  .style-direct-row{padding:10px;}
}

/* ===== Fase 3S: Resumen ejecutivo, backup/restore y migración ===== */
body.px-admin .side-menu a:first-child{
  border-color:#0f8f4d!important;
}
.summary-panel-card{
  display:block;
}
.summary-panel-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:18px;
  margin-bottom:18px;
}
.summary-actions-top{
  margin:0!important;
  justify-content:flex-end;
}
.summary-only-notices{
  margin:12px 0 0!important;
}
.summary-only-notices .notice span{
  font-weight:560!important;
  color:#0f5132;
}
.summary-audit{
  margin:18px 0!important;
}
.summary-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
  margin-top:18px;
}
.summary-box{
  border:1px solid #dfe6ef;
  border-radius:18px;
  background:#fff;
  padding:18px;
  box-shadow:0 8px 22px rgba(15,23,42,.035);
}
.summary-box.wide{grid-column:1/-1;}
.summary-box h2{
  font-size:20px!important;
  margin:0 0 12px!important;
  color:#102341;
  font-weight:590!important;
}
.summary-box code{
  background:#f1f5f9;
  border:1px solid #e2e8f0;
  border-radius:8px;
  padding:2px 6px;
  font-size:12.5px;
}
.summary-reservation-list{
  display:grid;
  gap:12px;
}
.reservation-course-row{
  display:grid;
  gap:7px;
}
.reservation-course-meta{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
}
.reservation-course-meta span{
  color:#1f2937;
}
.reservation-course-meta strong{
  color:#0f8f4d;
  font-weight:620!important;
}
.reservation-course-bar{
  height:9px;
  border-radius:999px;
  background:#e9f1ee;
  overflow:hidden;
}
.reservation-course-bar i{
  display:block;
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg,#0f8f4d,#14b56a);
}
.stacked-actions{
  align-items:stretch;
  gap:10px;
}
.stacked-actions .btn-admin{
  justify-content:center;
}
.restore-mini-form{
  display:grid;
  gap:10px;
  margin-top:14px;
  padding-top:14px;
  border-top:1px solid #e5e9ef;
}
.restore-mini-form label{
  margin:0!important;
}
.summary-steps{
  margin:0;
  padding-left:20px;
  color:#334155;
}
.summary-steps li{
  margin:0 0 8px;
  line-height:1.45;
}
.system-check-list{
  display:grid;
  gap:9px;
}
.system-check-list div{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  border-bottom:1px solid #edf1f7;
  padding:8px 0;
}
.system-check-list div:last-child{border-bottom:0;}
.system-check-list span{
  color:#526071;
}
.system-check-list strong{
  color:#102341;
  font-weight:600!important;
  text-align:right;
  word-break:break-word;
}
.ok-text{color:#0f8f4d!important;}
.bad-text{color:#b42318!important;}
.pending-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
.pending-grid div{
  border:1px solid #e5e9ef;
  border-radius:14px;
  background:#f8fafc;
  padding:13px;
}
.pending-grid strong{
  display:block;
  margin-bottom:4px;
  color:#102341;
  font-weight:580!important;
}
.pending-grid span{
  display:block;
  color:#526071;
  line-height:1.4;
}
@media(max-width:1100px){
  .summary-panel-head{flex-direction:column;}
  .summary-actions-top{justify-content:flex-start;}
  .summary-grid{grid-template-columns:1fr;}
  .pending-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:640px){
  .summary-box{padding:14px;}
  .pending-grid{grid-template-columns:1fr;}
  .summary-actions-top{width:100%;}
  .summary-actions-top .btn-admin{width:100%;justify-content:center;}
}

/* Fase 3T: destacados en módulo de cursos */
.check-row{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-start;
  gap:10px!important;
  min-height:48px;
  padding:10px 12px;
  border:1px solid #d9e0ea;
  border-radius:12px;
  background:#f8fafc;
  font-weight:500!important;
}
.check-row input[type="checkbox"]{
  width:18px!important;
  height:18px!important;
  padding:0!important;
  margin:0!important;
  accent-color:#0f8f4d;
}
.check-row span{
  color:#102341;
}
.featured-note{
  margin:0 0 16px;
}
.featured-note span{
  color:#0f8f4d;
  font-weight:650;
  margin-right:8px;
}
.course-featured-toggle{
  border-color:#b7e4c7;
  background:#f1fbf5;
}


/* ===== Fase 3V: editor de texto inteligente sobre portada ===== */
.hero-overlay-switch{grid-column:1/-1!important;border:1px solid #dceee5;border-radius:12px;background:#f5fbf7;padding:12px 14px!important;}
.preview-hero-smart{position:relative;min-height:300px;border-radius:16px;overflow:hidden;background:#0b1738;border:1px solid #d8e1ec;}
.preview-hero-smart img{position:absolute;inset:0;width:100%!important;height:100%!important;object-fit:cover!important;display:block;}
.preview-hero-smart .preview-hero-shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(4,13,36,.74),rgba(4,13,36,.18));z-index:1;}
.preview-hero-copy{position:relative;z-index:2;display:grid;gap:8px;align-content:center;min-height:300px;padding:26px;max-width:min(100%, calc(var(--preview-hero-copy-max,1268px) / 12));}
.preview-hero-copy span{display:inline-flex;width:max-content;max-width:100%;background:rgba(255,255,255,.88);color:#087b41;border-radius:999px;padding:6px 12px;font-size:11px;text-transform:uppercase;letter-spacing:.06em;font-weight:650;}
.preview-hero-copy h3{margin:0!important;font-size:clamp(26px,4vw,44px)!important;line-height:1.02!important;color:#fff!important;text-shadow:0 10px 28px rgba(0,0,0,.28);}
.preview-hero-copy p{margin:0!important;font-size:15px!important;line-height:1.45!important;color:rgba(255,255,255,.92)!important;max-width:620px;}
.preview-hero-smart.hero-text-dark .preview-hero-shade{background:linear-gradient(90deg,rgba(255,255,255,.86),rgba(255,255,255,.15));}
.preview-hero-smart.hero-text-dark .preview-hero-copy h3{color:#071c4f!important;text-shadow:0 10px 28px rgba(255,255,255,.55);}
.preview-hero-smart.hero-text-dark .preview-hero-copy p{color:#17233b!important;text-shadow:0 8px 22px rgba(255,255,255,.45);}
.preview-hero-smart.hero-text-dark .preview-hero-copy span{background:rgba(7,134,59,.10);color:#06743d;}
.preview-hero-smart[data-hero-position="center"] .preview-hero-copy{margin:auto;text-align:center;justify-items:center;}
.preview-hero-smart[data-hero-position="right"] .preview-hero-copy{margin-left:auto;text-align:right;justify-items:end;}
.preview-hero-smart[data-enabled="0"] .preview-hero-copy{display:none;}
.smart-copy-note p{font-size:13px!important;color:#536070!important;line-height:1.45!important;}
@media(max-width:900px){.preview-hero-copy{max-width:100%;padding:22px}.preview-hero-smart{min-height:250px}.preview-hero-copy{min-height:250px}}


/* Fase 3X: SEO y redes */
.seo-editor-grid{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:24px;align-items:start;margin-top:20px}
.seo-controls textarea{min-height:96px}
.seo-preview-card{position:sticky;top:18px;border:1px solid #d9e1ec;border-radius:22px;background:#fff;padding:20px;box-shadow:0 18px 42px rgba(15,23,42,.08)}
.seo-preview-card h2{margin:0 0 14px;font-size:20px;font-weight:650;color:#10203b}
.seo-preview-search{border:1px solid #e3e9f2;border-radius:16px;padding:16px;background:#fafcff;margin-bottom:16px}
.seo-preview-url{display:block;color:#07834d;font-size:13px;margin-bottom:5px;word-break:break-all}
.seo-preview-search strong{display:block;color:#1a0dab;font-size:18px;font-weight:500;line-height:1.25;margin-bottom:6px}
.seo-preview-search p{margin:0;color:#4b5563;font-size:14px;line-height:1.45}
.seo-preview-social{border:1px solid #dfe6ef;border-radius:16px;overflow:hidden;background:#fff;margin-bottom:16px}
.seo-preview-social img{display:block;width:100%;height:198px;object-fit:cover;background:#eef2f7}
.seo-preview-social div{padding:14px 16px}
.seo-preview-social span{display:block;text-transform:uppercase;color:#697386;font-size:12px;letter-spacing:.05em;margin-bottom:5px}
.seo-preview-social strong{display:block;color:#111827;font-size:17px;font-weight:650;line-height:1.25;margin-bottom:5px}
.seo-preview-social p{margin:0;color:#4b5563;font-size:14px;line-height:1.4}
@media(max-width:980px){.seo-editor-grid{grid-template-columns:1fr}.seo-preview-card{position:relative;top:auto}}


/* ===== Fase 3Y: alineación exacta entre controles CMS y frontend ===== */
.style-map-notice{
  margin:0 0 2px!important;
  font-weight:500!important;
}
.style-front-selector{
  display:block;
  width:max-content;
  max-width:100%;
  margin-top:10px;
  padding:5px 8px;
  border-radius:999px;
  background:#eef6ff;
  color:#305377;
  font-family:Consolas, Monaco, monospace;
  font-size:11px;
  white-space:normal;
  line-height:1.35;
}
.style-direct-row.featured-subtitle-sample .style-direct-sample{
  background:#fffdf7;
  border-color:#ead9a3;
}
.style-direct-row.featured-subtitle-sample .style-direct-sample h3{
  line-height:1!important;
}
.style-direct-controls .style-mini-control select,
.style-direct-controls .style-mini-control input{
  width:100%;
}

/* Fase 3Z: nota de familias tipográficas */
.style-font-note{margin:8px 0 18px;color:#667085;font-size:13px;line-height:1.5;background:#f8fafc;border:1px solid #e5e7eb;border-radius:10px;padding:10px 12px}.style-mini-control select{min-width:220px}

/* ===== Fase 4A: coherencia real entre controles de fuente y vista previa ===== */
body.px-admin .style-map-notice{
  font-size:14px!important;
  line-height:1.45!important;
}
body.px-admin .style-direct-row{
  grid-template-columns:minmax(420px,1fr) minmax(360px,.82fr)!important;
  gap:16px!important;
  align-items:stretch!important;
}
body.px-admin .style-direct-sample{
  min-height:132px!important;
  justify-content:center!important;
  overflow:hidden!important;
}
body.px-admin .style-direct-label{
  font-family:Inter,"Segoe UI",Arial,sans-serif!important;
  color:#0f8f4d!important;
  font-size:12px!important;
  font-weight:600!important;
  letter-spacing:.06em!important;
  margin-bottom:10px!important;
}
body.px-admin .style-real-text{
  max-width:100%!important;
  overflow-wrap:anywhere!important;
}
body.px-admin .style-target-note{
  grid-column:1/-1;
  border:1px solid #dbe4f0;
  border-radius:12px;
  padding:10px 12px;
  background:#f8fafc;
  display:grid;
  gap:4px;
}
body.px-admin .style-target-note span{
  font-size:11px!important;
  color:#64748b;
  text-transform:uppercase;
  letter-spacing:.05em;
  font-weight:600!important;
}
body.px-admin .style-target-note code{
  font-family:Consolas,Monaco,"Courier New",monospace!important;
  font-size:12.5px!important;
  color:#0f172a!important;
  white-space:normal!important;
  line-height:1.35!important;
}
body.px-admin .style-font-live{
  display:block;
  margin-top:6px;
  font-size:12px!important;
  color:#334155;
  font-style:normal;
  line-height:1.25;
}
body.px-admin .style-mini-control select[data-style-font-select]{
  transition:border-color .15s ease,box-shadow .15s ease;
}
body.px-admin .style-mini-control select[data-style-font-select]:focus{
  border-color:#0f8f4d!important;
  box-shadow:0 0 0 3px rgba(15,143,77,.12)!important;
}

/* La muestra imita el contexto real del frontend. */
body.px-admin .sample-menu .style-direct-sample{background:#fff!important;color:#071a38!important;min-height:92px!important;}
body.px-admin .sample-menu .style-real-text{font-weight:700!important;letter-spacing:.04em;text-transform:uppercase;}

body.px-admin .sample-hero-badge .style-direct-sample,
body.px-admin .sample-hero-title .style-direct-sample,
body.px-admin .sample-hero-subtitle .style-direct-sample{
  background:#071b43!important;
  color:#fff!important;
  border-color:#12386d!important;
}
body.px-admin .sample-hero-badge .style-real-text{display:inline-flex!important;width:max-content;max-width:100%;padding:7px 16px;border-radius:999px;background:rgba(255,255,255,.95);color:#0f8f4d!important;font-weight:700!important;letter-spacing:.08em;text-transform:uppercase;}
body.px-admin .sample-hero-title .style-real-text{font-weight:500!important;line-height:.98!important;letter-spacing:-.04em!important;}
body.px-admin .sample-hero-subtitle .style-real-text{font-weight:450!important;line-height:1.4!important;color:#e8f1ff!important;}

body.px-admin .sample-catalog-title .style-direct-sample,
body.px-admin .sample-catalog-subtitle .style-direct-sample{background:#f8fafc!important;color:#243a63!important;text-align:center!important;}
body.px-admin .sample-catalog-title .style-real-text{font-weight:800!important;line-height:1.15!important;}
body.px-admin .sample-catalog-subtitle .style-real-text{font-weight:650!important;line-height:1.45!important;}

body.px-admin .sample-feature-title .style-direct-sample,
body.px-admin .sample-feature-subtitle .style-direct-sample,
body.px-admin .sample-feature-text .style-direct-sample,
body.px-admin .sample-feature-button .style-direct-sample{
  background:#fff!important;
  color:#172233!important;
  border-color:#d4dae4!important;
}
body.px-admin .sample-feature-title .style-real-text{font-weight:650!important;line-height:1.12!important;color:#172233!important;}
body.px-admin .sample-feature-subtitle .style-real-text{font-weight:700!important;line-height:1.35!important;color:#0f8f4d!important;text-transform:uppercase;letter-spacing:.04em;}
body.px-admin .sample-feature-text .style-real-text{font-weight:400!important;line-height:1.5!important;color:#445066!important;}
body.px-admin .sample-feature-button .style-real-text,
body.px-admin .sample-rest-button .style-real-text{width:max-content;max-width:100%;border:0;border-radius:999px;padding:10px 18px;background:#0f8f4d;color:#fff!important;font-weight:650!important;}

body.px-admin .sample-rest-title .style-direct-sample,
body.px-admin .sample-rest-subtitle .style-direct-sample,
body.px-admin .sample-rest-text .style-direct-sample,
body.px-admin .sample-rest-button .style-direct-sample{
  background:#fff!important;
  color:#172233!important;
  border-color:#d4dae4!important;
}
body.px-admin .sample-rest-title .style-real-text{font-weight:650!important;line-height:1.12!important;color:#172233!important;}
body.px-admin .sample-rest-subtitle .style-real-text{font-weight:700!important;line-height:1.35!important;color:#0f8f4d!important;text-transform:uppercase;letter-spacing:.04em;}
body.px-admin .sample-rest-text .style-real-text{font-weight:400!important;line-height:1.5!important;color:#445066!important;}

body.px-admin .sample-section-badge .style-direct-sample{background:#f3fff7!important;color:#0f8f4d!important;}
body.px-admin .sample-section-badge .style-real-text{font-weight:700!important;letter-spacing:.06em;text-transform:uppercase;}
body.px-admin .sample-section-title .style-direct-sample,
body.px-admin .sample-section-text .style-direct-sample{background:#071b43!important;color:#fff!important;}
body.px-admin .sample-section-title .style-real-text{font-weight:700!important;line-height:1.1!important;}
body.px-admin .sample-section-text .style-real-text{color:#e7efff!important;line-height:1.5!important;}
body.px-admin .sample-share-label .style-direct-sample{background:#f8fafc!important;color:#172233!important;min-height:90px!important;}
body.px-admin .sample-share-label .style-real-text{font-weight:700!important;}

@media(max-width:1120px){
  body.px-admin .style-direct-row{grid-template-columns:1fr!important;}
}


/* ===== Fase 4B: preview de portada con ancho de texto editable ===== */
.preview-hero-smart{--preview-hero-copy-max:1268px;}
.preview-hero-smart .preview-hero-copy{max-width:min(100%, calc(var(--preview-hero-copy-max,1268px) / 12))!important;}


/* ===== Fase 4C: Estilos coherentes con la tarjeta real del frontend ===== */
body.px-admin .style-frontend-card-block .block-body{padding:14px 16px 18px!important;}
body.px-admin .style-front-editor{display:grid;grid-template-columns:minmax(320px,420px) 1fr;gap:18px;align-items:start;}
body.px-admin .style-front-preview-shell{position:sticky;top:18px;border:1px solid #d9e1ec;border-radius:16px;background:#f8fafc;padding:14px;}
body.px-admin .style-preview-title{font-family:Inter,"Segoe UI",Arial,sans-serif!important;font-size:12px!important;line-height:1.35!important;color:#64748b;text-transform:uppercase;letter-spacing:.06em;font-weight:600!important;margin:0 0 10px;}
body.px-admin .cms-style-preview-card{width:100%!important;max-width:390px!important;min-height:0!important;background:#fff!important;border:1px solid #cfd6e2!important;border-radius:8px!important;overflow:hidden!important;box-shadow:0 10px 28px rgba(15,23,42,.08)!important;display:flex!important;flex-direction:column!important;}
body.px-admin .cms-style-preview-card .thumb{display:block!important;width:100%!important;aspect-ratio:400/210!important;background:#f2f4f7!important;overflow:hidden!important;}
body.px-admin .cms-style-preview-card .thumb img{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;}
body.px-admin .cms-style-preview-card .course-body{display:flex!important;flex-direction:column!important;gap:10px!important;min-height:0!important;padding:22px 20px 18px!important;background:#fff!important;}
body.px-admin .cms-style-preview-card .course-body h3{margin:0!important;color:#172233!important;font-weight:650!important;line-height:1.12!important;letter-spacing:-.01em!important;}
body.px-admin .cms-style-preview-card .course-subtitle{margin:0!important;color:#0f8f4d!important;font-weight:700!important;line-height:1.35!important;text-transform:uppercase!important;letter-spacing:.04em!important;min-height:0!important;}
body.px-admin .cms-style-preview-card .course-card-text{margin:0!important;color:#445066!important;font-weight:400!important;line-height:1.5!important;}
body.px-admin .cms-style-preview-card .card-bottom{margin-top:auto!important;padding-top:8px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;}
body.px-admin .cms-style-preview-card .interest{display:inline-flex!important;align-items:center!important;color:#0f8f4d!important;text-decoration:none!important;font-weight:700!important;line-height:1.1!important;margin-left:auto!important;}
body.px-admin .cms-style-preview-card-secondary .thumb{aspect-ratio:400/190!important;}
body.px-admin .style-front-controls{display:grid;gap:12px;}
body.px-admin .style-control-group{display:grid;grid-template-columns:1.1fr minmax(190px,.8fr) minmax(120px,.5fr);gap:12px;align-items:end;border:1px solid #d9e1ec;border-radius:14px;background:#fff;padding:12px;}
body.px-admin .style-control-heading{display:grid;gap:4px;align-self:center;}
body.px-admin .style-control-heading strong{font-family:Inter,"Segoe UI",Arial,sans-serif!important;font-size:14px!important;color:#0f172a!important;font-weight:650!important;line-height:1.25!important;}
body.px-admin .style-control-heading span{font-family:Inter,"Segoe UI",Arial,sans-serif!important;font-size:12.5px!important;color:#64748b!important;line-height:1.35!important;}
body.px-admin .style-control-selector{grid-column:1/-1;display:flex;align-items:center;gap:8px;border-radius:10px;background:#f8fafc;border:1px dashed #dbe4f0;padding:8px 10px;}
body.px-admin .style-control-selector span{font-family:Inter,"Segoe UI",Arial,sans-serif!important;font-size:11px!important;text-transform:uppercase;letter-spacing:.05em;color:#64748b;font-weight:600!important;white-space:nowrap;}
body.px-admin .style-control-selector code{font-family:Consolas,Monaco,"Courier New",monospace!important;font-size:12px!important;color:#0f172a!important;white-space:normal;line-height:1.35;}
body.px-admin .style-control-group .style-mini-control{margin:0!important;}
body.px-admin .style-control-group .style-mini-control select,
body.px-admin .style-control-group .style-mini-control input{min-width:0!important;width:100%!important;}
@media(max-width:1180px){
  body.px-admin .style-front-editor{grid-template-columns:1fr;}
  body.px-admin .style-front-preview-shell{position:relative;top:auto;}
  body.px-admin .cms-style-preview-card{max-width:520px!important;}
}
@media(max-width:860px){
  body.px-admin .style-control-group{grid-template-columns:1fr;}
  body.px-admin .style-control-selector{display:grid;align-items:start;}
}

/* ===== Fase 4D: acciones de mantenimiento de cursos arriba y abajo ===== */
body.px-admin .course-form-actions{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  align-items:center;
  justify-content:flex-start;
}
body.px-admin .course-form-actions-top{
  margin:0 0 18px;
  padding:14px 0 18px;
  border-bottom:1px solid #e4eaf3;
}
body.px-admin .course-form-actions-bottom{
  margin:18px 0 0;
  padding:18px 0 0;
  border-top:1px solid #e4eaf3;
}
body.px-admin .course-form-actions .course-save-btn,
body.px-admin .course-form-actions .course-delete-btn{
  min-width:164px;
}
@media(max-width:640px){
  body.px-admin .course-form-actions .course-save-btn,
  body.px-admin .course-form-actions .course-delete-btn{
    width:100%;
  }
}

/* ===== Fase 4E: acciones arriba y abajo en páginas de mantenimiento ===== */
body.px-admin .maintenance-actions{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  align-items:center;
  justify-content:flex-start;
}
body.px-admin .maintenance-actions-top{
  margin:0 0 18px;
  padding:14px 0 18px;
  border-bottom:1px solid #e4eaf3;
}
body.px-admin .maintenance-actions-bottom{
  margin:22px 0 0;
  padding:18px 0 0;
  border-top:1px solid #e4eaf3;
}
body.px-admin .maintenance-actions > button,
body.px-admin .maintenance-actions > a{
  min-width:170px;
  text-align:center;
}
@media(max-width:640px){
  body.px-admin .maintenance-actions > button,
  body.px-admin .maintenance-actions > a{
    width:100%;
  }
}

/* ===== Fase 4I: limpieza, coherencia y preparación estable ===== */
.warn-text{color:#b7791f!important;}
.readiness-box{
  background:linear-gradient(180deg,#ffffff,#f8fbff);
}
.readiness-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:18px;
  margin-bottom:14px;
}
.readiness-score{
  min-width:76px;
  text-align:center;
  border:1px solid #dfe6ef;
  border-radius:999px;
  padding:10px 14px;
  background:#fff;
  font-size:20px;
  font-weight:680!important;
}
.readiness-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
.readiness-item{
  border:1px solid #e3e9f2;
  border-radius:14px;
  background:#fff;
  padding:13px;
  display:flex;
  gap:10px;
  align-items:flex-start;
}
.readiness-item>span{
  width:26px;
  height:26px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 26px;
  font-weight:700;
}
.readiness-item.ready>span{background:#e9f9ef;color:#0f8f4d;}
.readiness-item.review>span{background:#fff7e6;color:#b7791f;}
.readiness-item strong{
  display:block;
  color:#102341;
  font-weight:610!important;
  margin-bottom:3px;
}
.readiness-item em{
  display:block;
  color:#526071;
  font-style:normal;
  font-size:13px;
  line-height:1.35;
}
.production-grid code{font-size:12px;}
.technical-cleanup-box{
  border-color:#f1d7a7;
  background:#fffdf8;
}
@media(max-width:980px){
  .readiness-grid{grid-template-columns:1fr 1fr;}
}
@media(max-width:620px){
  .readiness-head{flex-direction:column;}
  .readiness-grid{grid-template-columns:1fr;}
}

/* ===== Fase 5A1B: menú contextual de Cursos sobre base F4J ===== */
body.px-admin .course-panel-order{display:none;}
body.px-admin.course-focus-mode .cms-panel-order{display:none;}
body.px-admin.course-focus-mode .course-panel-order{display:grid;}
body.px-admin.course-focus-mode .admin-wrap{
  width:min(1560px,calc(100% - 32px));
  grid-template-columns:245px minmax(0,1fr);
  gap:18px;
}
body.px-admin.course-focus-mode .side-card{
  padding:16px;
  top:102px;
}
body.px-admin.course-focus-mode .side-menu a{
  min-height:46px;
  padding:11px 14px;
  font-size:15px;
  border-radius:10px;
  font-weight:850;
}
body.px-admin.course-focus-mode .side-menu .course-back-to-cms{
  background:#111827;
  border-color:#111827;
  color:#fff;
}
body.px-admin.course-focus-mode #tab-cursos .admin-card{
  padding:22px;
}
body.px-admin.course-focus-mode #tab-cursos .course-work-head{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:flex-start;
  margin-bottom:14px;
}
body.px-admin.course-focus-mode #tab-cursos .course-work-kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:#e9f8ef;
  color:#0b7a43;
  border:1px solid #bfe8ce;
  padding:7px 10px;
  border-radius:999px;
  font-weight:900;
  font-size:13px;
  margin-bottom:8px;
}
body.px-admin.course-focus-mode #tab-cursos .v74-course-picker{
  grid-template-columns:300px minmax(0,1fr);
  gap:18px;
  align-items:start;
}
body.px-admin.course-focus-mode #tab-cursos .v74-course-filter{
  grid-template-columns:1fr;
}
body.px-admin.course-focus-mode #tab-cursos .v74-course-list{
  max-height:540px;
}
body.px-admin.course-focus-mode #tab-cursos .v74-course-list a{
  padding:10px 11px;
}
body.px-admin.course-focus-mode #tab-cursos form .form-grid{
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
}
body.px-admin.course-focus-mode #tab-cursos form .form-grid > label.span2,
body.px-admin.course-focus-mode #tab-cursos form .form-grid > .span2{
  grid-column:1/-1;
}
body.px-admin.course-focus-mode #tab-cursos #cDescription,
body.px-admin.course-focus-mode #tab-cursos #cLongDescription,
body.px-admin.course-focus-mode #tab-cursos #cOutcomes,
body.px-admin.course-focus-mode #tab-cursos #cModules{
  min-height:150px;
}
body.px-admin.course-focus-mode #tab-cursos #cLongDescription{
  min-height:230px;
}
body.px-admin.course-focus-mode .course-edit-zone{
  border:1px solid #e0e6ef;
  border-radius:16px;
  padding:18px;
  background:linear-gradient(180deg,#ffffff 0%,#fbfcfe 100%);
}
body.px-admin.course-focus-mode .course-zone-title{
  margin:0 0 14px;
  font-size:18px;
  font-weight:950;
  color:#111827;
  display:flex;
  align-items:center;
  gap:8px;
}
body.px-admin.course-focus-mode .course-zone-title:before{
  content:'';
  width:9px;height:9px;border-radius:50%;background:#12924f;
  display:inline-block;
}
body.px-admin.course-focus-mode .course-form-actions-bottom{
  position:sticky;
  bottom:12px;
  background:rgba(255,255,255,.94);
  border:1px solid #dbe3ee;
  border-radius:14px;
  padding:12px;
  z-index:20;
  box-shadow:0 16px 30px rgba(15,23,42,.10);
}
@media(max-width:1180px){
  body.px-admin.course-focus-mode .admin-wrap{grid-template-columns:1fr;}
  body.px-admin.course-focus-mode .side-card{position:relative;top:auto;}
  body.px-admin.course-focus-mode .course-panel-order{grid-template-columns:repeat(2,minmax(0,1fr));}
  body.px-admin.course-focus-mode #tab-cursos .v74-course-picker{grid-template-columns:1fr;}
  body.px-admin.course-focus-mode #tab-cursos form .form-grid{grid-template-columns:1fr 1fr;}
}
@media(max-width:760px){
  body.px-admin.course-focus-mode #tab-cursos form .form-grid{grid-template-columns:1fr;}
  body.px-admin.course-focus-mode .course-panel-order{grid-template-columns:1fr;}
  body.px-admin.course-focus-mode #tab-cursos .course-work-head{display:block;}
}

/* R37: Participante / contacto desplazado diez espacios en Reservaciones. */
@media(min-width:981px){
  body.px-admin #tab-reservas .reservas-compact-table th:nth-child(3),
  body.px-admin #tab-reservas .reservas-compact-table td:nth-child(3){
    padding-left:92px!important;
  }
}

/* ===== Fase 5A1C: Cursos por páginas de trabajo ===== */
body.px-admin.course-focus-mode .admin-wrap{
  width:min(1580px,calc(100% - 28px));
  grid-template-columns:235px minmax(0,1fr);
  gap:18px;
}
body.px-admin.course-focus-mode .course-work-page{
  padding:24px;
}
.course-page-tabs{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin:16px 0 18px;
  padding:12px;
  border:1px solid #dfe6ef;
  border-radius:16px;
  background:#f8fafc;
}
.course-page-tabs a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:9px 14px;
  border:1px solid #d3dbe7;
  border-radius:999px;
  background:#fff;
  color:#102341;
  font-weight:850;
  font-size:14px;
}
.course-page-tabs a.active{
  background:#12924f;
  border-color:#12924f;
  color:#fff;
}
.course-page-box{
  border:1px solid #dfe6ef;
  border-radius:18px;
  background:#fff;
  padding:22px;
  margin-top:14px;
}
.course-page-headline{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  margin-bottom:18px;
}
.course-page-headline h2{
  margin:0 0 4px;
  font-size:25px;
  font-weight:950;
  color:#111827;
  letter-spacing:-.02em;
}
.course-page-headline p{
  margin:0;
  color:#566176;
  line-height:1.45;
}
.clean-editor-page .course-edit-zone{
  border:0!important;
  border-radius:0!important;
  padding:0!important;
  background:transparent!important;
}
.course-single-form .form-grid{
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
}
.course-single-form .form-grid .span2,
.description-wide-form .span2{
  grid-column:1/-1;
}
.description-wide-form textarea#cDescription{min-height:150px!important;}
.description-wide-form textarea#cLongDescription{min-height:280px!important;}
.description-wide-form textarea#cOutcomes,
.description-wide-form textarea#cModules{min-height:210px!important;}
.course-image-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
  align-items:start;
}
.course-filter-wide{
  display:grid;
  grid-template-columns:minmax(260px,1fr) 220px;
  gap:12px;
  margin-bottom:16px;
}
.course-list-tablelike{
  max-height:none!important;
  overflow:visible!important;
  display:grid;
  gap:12px;
}
.course-row-card{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:16px;
  align-items:center;
  border:1px solid #d7dde8;
  border-radius:14px;
  background:#fff;
  padding:14px 16px;
}
.course-row-card strong{
  display:block;
  color:#111827;
  font-size:16px;
  font-weight:900;
}
.course-row-card small{
  display:block;
  color:#566176;
  margin-top:4px;
}
.course-row-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.course-row-actions .btn-admin{
  padding:9px 12px;
  min-height:38px;
  font-size:13px;
}
body.px-admin.course-focus-mode .course-form-actions-bottom{
  position:sticky;
  bottom:12px;
  background:rgba(255,255,255,.96);
  border:1px solid #dbe3ee;
  border-radius:14px;
  padding:12px;
  z-index:20;
  box-shadow:0 16px 30px rgba(15,23,42,.10);
}
@media(max-width:1180px){
  body.px-admin.course-focus-mode .admin-wrap{grid-template-columns:1fr;}
  .course-single-form .form-grid,.course-image-grid{grid-template-columns:1fr 1fr;}
  .course-row-card{grid-template-columns:1fr;}
  .course-row-actions{justify-content:flex-start;}
}
@media(max-width:760px){
  .course-single-form .form-grid,.course-image-grid,.course-filter-wide{grid-template-columns:1fr;}
  .course-page-headline{display:block;}
  .course-page-headline .button-row{margin-top:12px!important;}
  .course-page-tabs a{width:100%;justify-content:center;}
}

/* Fase 5A1E: lista de cursos por columnas y edición mejor organizada */
.course-list-table-wrap{
  width:100%;
  overflow-x:auto;
  border:1px solid #d7dde8;
  border-radius:16px;
  background:#fff;
}
.course-admin-table{
  width:100%;
  min-width:960px;
  border-collapse:separate;
  border-spacing:0;
  background:#fff;
}
.course-admin-table th,
.course-admin-table td{
  padding:13px 14px;
  border-bottom:1px solid #e4e9f1;
  text-align:left;
  vertical-align:middle;
  font-size:14px;
}
.course-admin-table th{
  background:#f7f9fc;
  color:#243044;
  font-weight:900;
  white-space:nowrap;
}
.course-admin-table tbody tr:hover{background:#fbfdff;}
.course-admin-table tbody tr:last-child td{border-bottom:0;}
.course-name-cell strong{
  display:block;
  color:#111827;
  font-size:15px;
  font-weight:900;
}
.course-name-cell small{
  display:block;
  color:#667085;
  margin-top:3px;
  font-size:12px;
}
.course-status-pill{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:5px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
  border:1px solid #dbe3ee;
  background:#f6f8fb;
  color:#344054;
  white-space:nowrap;
}
.course-status-pill.status-published{background:#ecfdf3;border-color:#b7ebc6;color:#067647;}
.course-status-pill.status-draft{background:#fffaeb;border-color:#fedf89;color:#b54708;}
.course-status-pill.status-archived{background:#f2f4f7;border-color:#d0d5dd;color:#475467;}
.inline-action-form{margin:0;display:inline;}
.compact-danger{
  min-height:34px;
  padding:7px 10px!important;
  font-size:13px!important;
}
.course-admin-subgroup{
  margin-top:4px;
  padding:14px 16px;
  border:1px dashed #cbd5e1;
  border-radius:14px;
  background:#f8fafc;
}
.course-admin-subgroup h3{
  margin:0;
  color:#0f172a;
  font-size:15px;
  font-weight:900;
}
.course-admin-subgroup p{
  margin:4px 0 0;
  color:#667085;
  font-size:13px;
  line-height:1.35;
}
@media(max-width:760px){
  .course-admin-table th,.course-admin-table td{padding:10px 11px;font-size:13px;}
}

/* ===== Fase 5A1J: previews contextuales en Estilos ===== */
.style-live-preview-context{
  border-style:solid!important;
  background:#ffffff!important;
}
.style-live-preview-context .style-preview-head{
  border-bottom:1px solid #eef2f6!important;
}
.style-live-preview-context .style-preview-note{
  font-weight:500!important;
}
.style-preview-page-bg{
  border:1px solid #e2e8f0;
  border-radius:14px;
  min-height:170px;
  padding:24px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.style-preview-bg-card{
  width:min(100%,520px);
  background:#fff;
  border:1px solid #dbe3ec;
  border-radius:12px;
  padding:18px 20px;
  box-shadow:0 12px 28px rgba(15,23,42,.06);
}
.style-preview-bg-card span{
  display:block;
  color:#07863b;
  font-size:12px;
  font-weight:750;
  letter-spacing:.05em;
  text-transform:uppercase;
  margin-bottom:8px;
}
.style-preview-bg-card strong{
  display:block;
  color:#17223a;
  font-size:22px;
  line-height:1.15;
  margin-bottom:6px;
}
.style-preview-bg-card p{
  margin:0;
  color:#566176;
  line-height:1.45;
}
.style-preview-only-menu{
  border:1px solid #e2e8f0;
  border-radius:12px;
  background:#f8fafc;
  padding:16px 18px;
}
.style-preview-single-card{
  grid-template-columns:minmax(0,1fr)!important;
  max-width:640px;
}
.style-live-preview-context .style-preview-section{
  border-top:0!important;
  padding-top:0!important;
}

/* FASE 5A1K - Footer funcional */
.footer-admin-functional{overflow:visible;}
.footer-headline-clean{align-items:flex-start;border-bottom:1px solid #e5eaf0;padding-bottom:18px;margin-bottom:20px;}
.footer-admin-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(320px,.65fr);gap:22px;align-items:start;}
.footer-admin-main{display:grid;gap:18px;}
.footer-settings-card .block-body + .block-body{border-top:1px solid #edf1f5;margin-top:0;padding-top:16px;}
.footer-settings-card textarea{min-height:92px;resize:vertical;}
.footer-style-grid label{min-width:0;}
.footer-mini-actions{display:grid;gap:14px;margin-bottom:18px;}
.footer-inline-form{display:grid;gap:12px;padding:14px;border:1px solid #e4ebf2;border-radius:16px;background:#fbfcfd;align-items:end;}
.footer-add-column{grid-template-columns:minmax(220px,1fr) 110px auto;}
.footer-add-link{grid-template-columns:180px minmax(180px,1fr) minmax(220px,1.2fr) 92px auto;}
.footer-column-list{display:grid;gap:16px;}
.footer-column-editor{border:1px solid #dfe7ef;border-radius:18px;background:#fff;box-shadow:0 8px 22px rgba(15,23,42,.04);padding:16px;}
.footer-column-title-form{display:grid;grid-template-columns:minmax(220px,1fr) 110px auto;gap:12px;align-items:end;margin-bottom:12px;}
.footer-link-list{display:grid;gap:8px;margin-top:10px;}
.footer-link-editor-row{display:grid;grid-template-columns:160px minmax(160px,1fr) minmax(220px,1.2fr) 78px auto;gap:8px;align-items:center;padding:10px;border-radius:14px;background:#f8fafc;border:1px solid #e7eef5;}
.footer-delete-row{display:flex;justify-content:flex-end;margin-top:-4px;margin-bottom:6px;}
.footer-delete-column{display:flex;justify-content:flex-end;border-top:1px solid #edf1f5;padding-top:12px;margin-top:12px;}
.footer-admin-preview-col{min-width:0;}
.footer-preview-sticky{top:16px;}
.preview-caption{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:#607086;font-weight:800;margin-bottom:10px;}
.footer-live-preview{border-radius:18px;padding:22px!important;box-shadow:0 16px 36px rgba(15,23,42,.16);}
.footer-preview-brand-row{display:grid;grid-template-columns:1.4fr .9fr;gap:18px;margin-bottom:18px;}
.footer-preview-brand-row strong{display:block;font-size:18px;margin-bottom:8px;}
.footer-preview-brand-row p{margin:0;color:inherit;opacity:.85;line-height:1.55;font-size:13px;}
.footer-preview-contact{display:grid;gap:6px;align-content:start;font-size:13px;}
.footer-preview-contact span{opacity:.86;}
.footer-live-preview .preview-footer-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:18px!important;}
.footer-live-preview .preview-footer-grid h3{text-transform:none;letter-spacing:0;margin-bottom:8px;}
.footer-live-preview .preview-footer-grid a{opacity:.9;text-decoration:none;margin:5px 0;}
.footer-preview-bottom{display:flex;gap:14px;flex-wrap:wrap;justify-content:space-between;opacity:.9;}
@media(max-width:1100px){.footer-admin-layout{grid-template-columns:1fr}.footer-admin-preview-col{order:-1}.footer-preview-sticky{position:static}.footer-add-link,.footer-link-editor-row{grid-template-columns:1fr 1fr}.footer-add-column,.footer-column-title-form{grid-template-columns:1fr 100px}.footer-add-column button,.footer-column-title-form button,.footer-add-link button,.footer-link-editor-row button{grid-column:1/-1}}
@media(max-width:720px){.footer-preview-brand-row{grid-template-columns:1fr}.footer-live-preview .preview-footer-grid{grid-template-columns:1fr!important}.footer-add-link,.footer-link-editor-row,.footer-add-column,.footer-column-title-form{grid-template-columns:1fr}.footer-delete-row,.footer-delete-column{justify-content:stretch}.footer-delete-row button,.footer-delete-column button{width:100%}}

/* FASE 5A1L - Footer con estructura funcional + fondo panel admin */
body.px-admin{background:var(--admin-panel-bg,var(--bg))!important;}
body.px-admin .style-preview-admin-bg{border:1px solid #d9e2ec;border-radius:14px;padding:18px;background:#f0f1f3;min-height:128px;display:flex;align-items:center;justify-content:center;}
body.px-admin .style-preview-admin-card{width:min(100%,460px);border:1px solid #d8e0eb;border-radius:14px;background:#fff;padding:18px;box-shadow:0 12px 26px rgba(15,23,42,.06);}
body.px-admin .style-preview-admin-card span{display:block;color:#0f8f4d;font-size:12px;text-transform:uppercase;letter-spacing:.08em;font-weight:700;margin-bottom:6px;}
body.px-admin .style-preview-admin-card strong{display:block;color:#12203a;font-size:20px;margin-bottom:6px;}
body.px-admin .style-preview-admin-card p{margin:0;color:#64748b;font-size:14px;}
.footer-admin-v76 .footer-headline-clean{border-bottom:1px solid #e5eaf0;padding-bottom:18px;margin-bottom:20px;}
.footer-builder-layout{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(390px,.95fr);gap:22px;align-items:start;}
.footer-builder-panel{display:grid;gap:16px;}
.footer-builder-tabs{position:sticky;top:96px;z-index:3;display:flex;gap:8px;flex-wrap:wrap;background:#fff;border:1px solid #dde6ef;border-radius:16px;padding:8px;box-shadow:0 10px 22px rgba(15,23,42,.04);}
.footer-builder-tabs a{font-size:13px;font-weight:650;color:#42526a;padding:9px 12px;border-radius:11px;background:#f8fafc;border:1px solid transparent;}
.footer-builder-tabs a:hover{color:#0b7a43;border-color:#cce4d6;background:#f3fbf6;}
.footer-builder-section{border:1px solid #dfe7ef;border-radius:18px;background:#fff;padding:18px;box-shadow:0 9px 24px rgba(15,23,42,.04);}
.footer-builder-section h2{margin:0 0 4px!important;color:#12203a;font-size:18px!important;}
.footer-builder-section > p{margin:0 0 14px;color:#64748b;font-size:14px;}
.footer-layout-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:14px;}
.footer-layout-card{display:flex!important;gap:10px;align-items:flex-start;border:1px solid #dfe7ef;border-radius:15px;background:#fbfdff;padding:13px!important;cursor:pointer;min-height:96px;}
.footer-layout-card.selected,.footer-layout-card:hover{border-color:#0f8f4d;background:#f4fbf7;}
.footer-layout-card input{margin-top:3px;width:auto!important;}
.footer-layout-card span{display:grid;gap:5px;}
.footer-layout-card strong{color:#12203a;font-size:14px!important;}
.footer-layout-card small{color:#66758a;font-size:12.5px;line-height:1.35;}
.footer-toggle-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
.footer-toggle-grid .check-row{background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:11px 12px!important;}
.footer-save-row{position:sticky;bottom:14px;z-index:4;justify-content:flex-end;background:rgba(255,255,255,.88);backdrop-filter:blur(8px);border:1px solid #e2e8f0;border-radius:16px;padding:10px;}
.footer-preview-panel{min-width:0;}
.footer-preview-panel .panel-note-soft{margin-top:14px;}
.footer-live-preview{border-radius:18px;padding:28px!important;box-shadow:0 18px 42px rgba(15,23,42,.18);}
.footer-preview-main-row{display:grid;grid-template-columns:1.1fr 1.4fr .9fr;gap:22px;align-items:start;}
.footer-preview-brand-block strong{display:block;font-size:20px;letter-spacing:-.02em;margin-bottom:10px;}
.footer-preview-brand-block p{margin:0;color:inherit;opacity:.88;line-height:1.55;font-size:13.5px;}
.footer-preview-badges{display:flex;gap:6px;flex-wrap:wrap;margin-top:12px;}
.footer-preview-badges span{font-size:11px;border:1px solid rgba(255,255,255,.13);border-radius:999px;padding:5px 8px;background:rgba(255,255,255,.04);}
.footer-preview-link-columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;}
.footer-preview-link-columns h3,.footer-preview-contact-block h3{font-size:14px!important;margin:0 0 10px!important;text-transform:none!important;letter-spacing:0!important;}
.footer-preview-link-columns span,.footer-preview-contact-block span{display:block;font-size:12.5px;color:inherit;opacity:.82;margin:0 0 7px;line-height:1.35;}
.footer-preview-contact-block{display:grid;gap:2px;}
.footer-preview-socials{display:flex;gap:10px;justify-content:flex-end;border-top:1px solid rgba(255,255,255,.12);margin-top:20px;padding-top:16px;}
.footer-preview-socials span{font-size:12px;border:1px solid rgba(255,255,255,.14);border-radius:999px;padding:6px 10px;background:rgba(255,255,255,.04);}
.footer-preview-bottom{display:flex;gap:16px;justify-content:space-between;border-top:1px solid rgba(255,255,255,.12);margin-top:18px;padding-top:14px;font-size:12px;opacity:.82;}
.footer-link-builder{margin-top:22px;}
@media(max-width:1180px){.footer-builder-layout{grid-template-columns:1fr}.footer-preview-panel{order:-1}.footer-preview-sticky{position:static!important}.footer-builder-tabs{position:static}.footer-preview-main-row{grid-template-columns:1fr 1fr}.footer-preview-contact-block{grid-column:1/-1}.footer-layout-options{grid-template-columns:1fr}}
@media(max-width:720px){.footer-preview-main-row,.footer-preview-link-columns,.footer-toggle-grid{grid-template-columns:1fr}.footer-preview-bottom,.footer-preview-socials{justify-content:flex-start;flex-wrap:wrap}.footer-builder-section{padding:14px}.footer-layout-card{min-height:0}.footer-builder-tabs a{flex:1;text-align:center}}


/* FASE 5A1U — Login profesional */
.px-login-page{
  min-height:100vh;
  margin:0;
  background:
    radial-gradient(circle at top left, rgba(15,123,55,.14), transparent 34%),
    linear-gradient(135deg,#f4f7f6 0%,#ffffff 46%,#eef3f1 100%);
  color:#132238;
}
.px-login-shell{
  min-height:100vh;
  display:grid;
  grid-template-columns:minmax(360px,520px) minmax(420px,1fr);
  align-items:center;
  gap:48px;
  max-width:1180px;
  margin:0 auto;
  padding:42px 28px;
  box-sizing:border-box;
}
.px-login-card{
  background:rgba(255,255,255,.94);
  border:1px solid rgba(190,202,210,.75);
  box-shadow:0 28px 80px rgba(15,35,55,.12);
  border-radius:28px;
  padding:38px;
}
.px-login-logo{
  display:inline-flex;
  align-items:center;
  margin-bottom:28px;
}
.px-login-logo img{
  max-width:210px;
  max-height:62px;
  object-fit:contain;
}
.px-login-heading span,
.px-login-kicker{
  display:inline-flex;
  align-items:center;
  width:max-content;
  color:#0a7a3a;
  background:#e8f6ee;
  border:1px solid #cdebd9;
  border-radius:999px;
  padding:7px 12px;
  font-size:13px;
  font-weight:800;
  letter-spacing:.02em;
}
.px-login-heading h1{
  margin:18px 0 10px;
  font-size:34px;
  line-height:1.08;
  color:#0d1b2f;
  letter-spacing:-.03em;
}
.px-login-heading p{
  margin:0 0 24px;
  color:#526174;
  font-size:16px;
  line-height:1.55;
}
.px-login-alert{
  background:#fff1f2;
  color:#991b1b;
  border:1px solid #fecdd3;
  border-radius:16px;
  padding:13px 15px;
  margin:0 0 18px;
  font-weight:700;
}
.px-login-form{
  display:grid;
  gap:16px;
}
.px-login-form label{
  display:grid;
  gap:8px;
  font-weight:800;
  color:#17243a;
  font-size:14px;
}
.px-login-form input{
  height:52px;
  border:1px solid #cad5df;
  border-radius:15px;
  background:#fff;
  padding:0 15px;
  font-size:16px;
  color:#122033;
  outline:none;
  transition:border-color .18s ease, box-shadow .18s ease;
}
.px-login-form input:focus{
  border-color:#0b7f3a;
  box-shadow:0 0 0 4px rgba(11,127,58,.12);
}
.px-login-form button{
  margin-top:6px;
  height:54px;
  border:0;
  border-radius:16px;
  background:#087a36;
  color:#fff;
  font-size:16px;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 14px 28px rgba(8,122,54,.22);
}
.px-login-form button:hover{
  background:#066b2f;
}
.px-login-footer{
  display:flex;
  justify-content:space-between;
  gap:16px;
  margin-top:24px;
  color:#6b788b;
  font-size:13px;
}
.px-login-footer a{
  color:#0b6f37;
  text-decoration:none;
  font-weight:800;
}
.px-login-side{
  min-height:620px;
  display:flex;
  align-items:center;
  border-radius:34px;
  background:
    linear-gradient(135deg,rgba(7,89,41,.94),rgba(10,121,58,.82)),
    url('../img/hero-portada-full.jpg') center/cover no-repeat;
  color:#fff;
  overflow:hidden;
  box-shadow:0 35px 90px rgba(8,68,36,.2);
}
.px-login-side-inner{
  max-width:560px;
  padding:56px;
}
.px-login-side h2{
  font-size:44px;
  line-height:1.05;
  letter-spacing:-.04em;
  margin:22px 0 18px;
}
.px-login-side p{
  color:rgba(255,255,255,.88);
  font-size:18px;
  line-height:1.6;
  margin:0 0 24px;
}
.px-login-side ul{
  list-style:none;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  margin:0;
  padding:0;
}
.px-login-side li{
  background:rgba(255,255,255,.13);
  border:1px solid rgba(255,255,255,.2);
  border-radius:16px;
  padding:13px 14px;
  font-weight:800;
}
.footer-admin-provisional{
  text-align:right;
  padding:8px 22px 14px;
}
.footer-admin-provisional a{
  color:rgba(255,255,255,.42);
  font-size:12px;
  text-decoration:none;
  letter-spacing:.02em;
}
.footer-admin-provisional a:hover{
  color:rgba(255,255,255,.86);
}
@media (max-width:900px){
  .px-login-shell{grid-template-columns:1fr;padding:24px 16px;}
  .px-login-side{display:none;}
  .px-login-card{padding:28px 22px;border-radius:22px;}
  .px-login-heading h1{font-size:29px;}
  .px-login-footer{flex-direction:column;}
}

/* FASE 5A1V — Subtítulos en vista previa de tarjetas */
.style-preview-course .style-preview-course-subtitle{
  margin:6px 0 8px;
  color:#526174;
  line-height:1.35;
}

/* FASE 5A2B */
.course-admin-table th{font-size:15px!important;}

/* ===== Fase 5A3D: ayuda visual para selección segura de profesor en grupos ===== */
.section-note{
  background:#f6f8fb;
  border:1px solid var(--line);
  border-left:5px solid var(--green);
  border-radius:12px;
  padding:13px 15px;
  color:var(--muted);
  font-weight:700;
  line-height:1.5;
}
.section-note strong{color:var(--ink)}

/* ===== Fase 5A3E: mantenimiento independiente de profesores ===== */
.professor-maintenance-grid{
  display:grid;
  grid-template-columns:minmax(340px,0.95fr) minmax(460px,1.25fr);
  gap:18px;
  align-items:start;
}
.teacher-photo-preview{
  width:180px;
  height:180px;
  object-fit:cover;
  border-radius:18px;
  border:1px solid var(--line);
  background:#f6f8fb;
}
.teacher-name-cell{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:220px;
}
.teacher-name-cell strong,
.teacher-name-cell small,
.professor-admin-table td small{
  display:block;
}
.teacher-mini-photo{
  width:44px;
  height:44px;
  border-radius:14px;
  object-fit:cover;
  border:1px solid var(--line);
  background:#f6f8fb;
  flex:0 0 auto;
}
.teacher-actions{
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
}
.teacher-actions .btn-light,
.teacher-actions button{
  white-space:nowrap;
}
.professor-table-wrap{
  margin:0;
}
@media (max-width:1100px){
  .professor-maintenance-grid{grid-template-columns:1fr;}
}

/* ===== FASE5A3G: administración de horarios múltiples por grupo ===== */
.group-schedule-admin-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:18px;align-items:start;margin-top:18px;}
.group-schedule-panel{border:1px solid #dbe4ef;background:#fff;border-radius:18px;overflow:hidden;box-shadow:0 12px 28px rgba(15,23,42,.04);}
.group-schedule-panel .block-head{background:#f7f9fc;}
.group-schedule-mini-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;}
.group-schedule-mini-grid .span2{grid-column:1/-1;}
.schedule-count-pill{display:inline-flex;align-items:center;justify-content:center;min-width:32px;border-radius:999px;background:#eef8f2;color:#087b3a;border:1px solid #cce8d7;padding:4px 9px;font-weight:850;font-size:12px;}
.schedule-summary-list{display:grid;gap:6px;min-width:180px;}
.schedule-summary-list span{display:inline-flex;width:max-content;max-width:100%;border:1px solid #e2e8f0;background:#f8fafc;border-radius:999px;padding:5px 9px;font-size:12px;font-weight:750;color:#475467;}
.schedule-admin-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap;}
.schedule-status-active{background:#eef8f2!important;color:#087b3a!important;border-color:#cce8d7!important;}
.schedule-status-full{background:#fff4e5!important;color:#a15c00!important;border-color:#ffdba3!important;}
.schedule-status-inactive{background:#f2f4f7!important;color:#667085!important;border-color:#d0d5dd!important;}
@media(max-width:1000px){.group-schedule-admin-grid{grid-template-columns:1fr;}}

/* ===== FASE5A3M: estabilización página Grupos ===== */
.groups-clean-note{margin:4px 0 0!important;}
body.px-admin.course-focus-mode #tab-cursos .course-page-box .description-wide-form{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:16px!important;
}
body.px-admin.course-focus-mode #tab-cursos .course-page-box .description-wide-form > label.span2,
body.px-admin.course-focus-mode #tab-cursos .course-page-box .description-wide-form > .span2{
  grid-column:1/-1!important;
}
.course-page-box .block-card.course-editor-block{
  border:1px solid #dbe4ef;
  border-radius:18px;
  overflow:hidden;
  background:#fff;
  box-shadow:0 12px 28px rgba(15,23,42,.04);
}
.course-page-box .block-card.course-editor-block .block-head{
  background:#f7f9fc;
}
.course-page-box .section-note.groups-clean-note{
  background:#f0fbf4;
  border-color:#cfeada;
  border-left-color:#12924f;
  color:#25523a;
}
.course-page-box .schedule-summary-list span{
  background:#eef8f2;
  border-color:#cce8d7;
  color:#087b3a;
  font-weight:850;
}
.course-page-box .course-admin-table th,
.course-page-box .course-admin-table td{
  vertical-align:middle;
}
.course-page-box .group-schedule-admin-grid{
  grid-template-columns:minmax(0,1fr) minmax(320px,.75fr)!important;
}
@media(max-width:1000px){
  .course-page-box .group-schedule-admin-grid,
  body.px-admin.course-focus-mode #tab-cursos .course-page-box .description-wide-form{
    grid-template-columns:1fr!important;
  }
}


/* ===== FASE5A3W: preview reducido de carrusel en Admin > Portada ===== */
#tab-portada .carousel-admin-box{
  background:#fbfcfb;
  border:1px solid #dfe7e2;
  border-radius:16px;
  padding:18px;
  margin:14px 0 22px;
}
#tab-portada .carousel-admin-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
  align-items:start;
  margin-top:16px;
}
#tab-portada .carousel-admin-slide{
  min-width:0;
  background:#fff;
  border:1px solid #dfe7e2;
  border-radius:14px;
  padding:14px;
  overflow:hidden;
}
#tab-portada .carousel-admin-slide h3{
  margin:0 0 12px;
  color:#102341;
  font-size:16px;
}
#tab-portada .carousel-admin-preview{
  width:100%;
  max-width:100%;
  height:180px;
  overflow:hidden;
  border:1px solid #dfe7e2;
  border-radius:12px;
  background:#f4f7f5;
  margin:0 0 12px;
  display:block;
}
#tab-portada .carousel-admin-preview img,
#tab-portada img[id^="homeCarouselPreview"]{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  height:180px!important;
  max-height:180px!important;
  object-fit:cover!important;
  object-position:center!important;
  border:0!important;
  margin:0!important;
}
#tab-portada .carousel-admin-slide label{
  margin-top:10px;
}
#tab-portada .carousel-admin-slide textarea{
  min-height:76px;
}
#tab-portada .carousel-admin-slide .mini-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
}
@media(max-width:1250px){
  #tab-portada .carousel-admin-grid{
    grid-template-columns:1fr;
  }
  #tab-portada .carousel-admin-preview,
  #tab-portada .carousel-admin-preview img,
  #tab-portada img[id^="homeCarouselPreview"]{
    height:160px!important;
    max-height:160px!important;
  }
}


/* ===== FASE5A4: admin reservas + encabezados estandarizados ===== */
:root{
  --admin-heading-font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}
.page-title,
.section-title,
.block-head h2,
.admin-card h1,
.admin-card h2,
.summary-panel-head h1,
.reservations-admin-v2 h1{
  font-family:var(--admin-heading-font)!important;
  letter-spacing:-.02em;
}
.reservation-kpis{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin:18px 0;
}
.reservation-kpis div{
  background:#f7faf8;
  border:1px solid #dfe7e2;
  border-radius:14px;
  padding:16px;
}
.reservation-kpis span{
  display:block;
  color:#5f6b7a;
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.reservation-kpis strong{
  display:block;
  margin-top:6px;
  color:#102034;
  font-size:28px;
  line-height:1;
}
.reservation-table-wrap{
  overflow:auto;
  margin-top:18px;
  border:1px solid #dfe7e2;
  border-radius:14px;
  background:#fff;
}
.reservation-table-v2{
  margin:0!important;
  min-width:1060px;
}
.reservation-table-v2 th{
  background:#f7faf8;
  color:#102034;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.reservation-table-v2 td{
  vertical-align:top;
}
.reservation-status-form{
  display:grid;
  gap:8px;
  min-width:190px;
}
.reservation-status-form select{
  width:100%;
  min-height:40px;
  padding:8px 10px;
  border:1px solid #cfd8d3;
  border-radius:10px;
  background:#fff;
  color:#102034;
  font-weight:800;
}
.reservation-admin-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:max-content;
  max-width:100%;
  padding:6px 9px;
  border-radius:999px;
  background:#fff4d6;
  color:#7a5200;
  font-size:11px;
  font-weight:950;
}
.reservation-admin-badge.status-confirmed{
  background:#eaf8ef;
  color:#0b6333;
}
.reservation-admin-badge.status-contacted{
  background:#eef4ff;
  color:#174ea6;
}
.reservation-admin-badge.status-cancelled,
.reservation-admin-badge.status-cancelada{
  background:#fff1f0;
  color:#a1261d;
}
.reservation-admin-badge.status-unavailable{
  background:#f2f4f7;
  color:#344054;
}
@media(max-width:900px){
  .reservation-kpis{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media(max-width:560px){
  .reservation-kpis{
    grid-template-columns:1fr;
  }
}


/* ===== FASE5A5: flujo simple de cohortes/grupos ===== */
.cohort-simple-page .course-page-headline{
  align-items:flex-start;
}
.cohort-simple-head h2{
  margin-bottom:6px;
}
.cohort-form-card{
  border:1px solid #dfe7e2;
}
.cohort-simple-form{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.cohort-simple-form label.span2{
  grid-column:1/-1;
}
.cohort-form-note{
  padding:13px 15px;
  border:1px solid #d9eadf;
  border-radius:12px;
  background:#f3fbf6;
  color:#315d40;
  font-size:13px;
  font-weight:800;
  line-height:1.45;
}
.cohort-table-wrap{
  border:1px solid #dfe7e2;
  border-radius:16px;
  overflow:auto;
  background:#fff;
}
.cohort-table{
  min-width:1120px;
}
.cohort-table th{
  background:#f7faf8;
  color:#102034;
  font-size:12px;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.cohort-table td{
  vertical-align:top;
}
.cohort-table .course-status-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:7px 10px;
  border-radius:999px;
  background:#eaf8ef;
  color:#0b6333;
  font-size:12px;
  font-weight:950;
  white-space:nowrap;
}
.cohort-table .course-status-pill.status-lleno{
  background:#fff4d6;
  color:#7a5200;
}
.cohort-table .course-status-pill.status-borrador{
  background:#eef2f7;
  color:#344054;
}
.cohort-table .course-status-pill.status-iniciado{
  background:#e8f1ff;
  color:#174ea6;
}
.cohort-table .course-status-pill.status-finalizado,
.cohort-table .course-status-pill.status-inactivo{
  background:#fff1f0;
  color:#a1261d;
}
.cohort-bottom-note{
  margin-top:16px;
  padding:14px 16px;
  border-radius:12px;
  background:#f7faf8;
  border:1px solid #dfe7e2;
}
@media(max-width:820px){
  .cohort-simple-form{
    grid-template-columns:1fr;
  }
}


/* ===== FASE5A7: edición de cohorte sin reservas ===== */
.cohort-action-row{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
}
.cohort-action-row .btn-light{
  min-height:34px;
  display:inline-flex;
  align-items:center;
}
.cohort-locked-note{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  font-size:12px;
  font-weight:800;
}
.cohort-form-card .block-head h2::after{
  content:"";
}


/* ===== FASE5A17: reservas aprobado - tabla principal amplia con filtros y selección ===== */
.reservas-approved-page{
  background:#f6f8fb;
  border:1px solid #dfe7e2;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 12px 32px rgba(15,23,42,.045);
}
.reservas-approved-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:24px;
  padding:26px 28px;
  background:#fff;
  border-bottom:1px solid #dfe7e2;
}
.reservas-title-box{
  display:flex;
  align-items:flex-start;
  gap:14px;
}
.reservas-title-icon{
  display:flex;
  align-items:center;
  justify-content:center;
  width:46px;
  height:46px;
  border-radius:14px;
  background:#eaf8ef;
  color:#0b6333;
  font-size:22px;
  font-weight:950;
}
.reservas-approved-head .page-title{
  margin:0 0 5px!important;
}
.reservas-approved-head .page-subtitle{
  margin:0!important;
  color:#667085;
}
.reservas-head-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
}
.reservas-head-actions form{
  margin:0;
}
.danger-soft{
  color:#b42318!important;
  background:#fff7f6!important;
  border-color:#f7c5bf!important;
}
.reservas-approved-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 330px;
  gap:18px;
  padding:18px;
}
.reservas-data-main{
  min-width:0;
  display:grid;
  gap:14px;
}
.reservas-filter-bar{
  display:grid;
  grid-template-columns:minmax(230px,1.4fr) minmax(150px,.8fr) minmax(150px,.8fr) minmax(150px,.8fr) minmax(140px,.7fr) minmax(140px,.7fr) auto;
  gap:12px;
  align-items:end;
  padding:18px;
  background:#fff;
  border:1px solid #dfe7e2;
  border-radius:14px;
}
.reservas-filter-bar label,
.reservas-filter-bar .filter-search{
  display:grid;
  gap:6px;
  color:#102034;
  font-size:12px;
  font-weight:900;
}
.reservas-filter-bar input,
.reservas-filter-bar select{
  min-height:42px;
  width:100%;
  border:1px solid #cfd8d3;
  border-radius:10px;
  padding:9px 11px;
  background:#fff;
  color:#102034;
  font-weight:700;
}
.filter-actions{
  display:flex;
  gap:8px;
  align-items:center;
}
.reservas-bulk-form{
  display:grid;
  gap:0;
}
.reservas-bulk-bar{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  padding:14px 18px;
  background:#fff;
  border:1px solid #dfe7e2;
  border-bottom:0;
  border-radius:14px 14px 0 0;
}
.select-all-reservas{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:#344054;
  font-size:13px;
  font-weight:850;
}
.select-all-reservas input,
.res-row-check{
  width:18px;
  height:18px;
  accent-color:#07863b;
}
.bulk-selected-count{
  color:#475467;
  font-size:13px;
  font-weight:850;
}
.reservas-bulk-bar select{
  min-height:38px;
  border:1px solid #cfd8d3;
  border-radius:10px;
  padding:7px 10px;
  background:#fff;
  color:#102034;
  font-weight:800;
}
.clear-res-selection{
  min-height:38px;
}
.reservas-table-card{
  overflow:auto;
  background:#fff;
  border:1px solid #dfe7e2;
  border-radius:0 0 14px 14px;
}
.reservas-approved-table{
  width:100%;
  min-width:1200px;
  border-collapse:separate;
  border-spacing:0;
}
.reservas-approved-table th{
  background:#f7faf8;
  color:#102034;
  font-size:12px;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.035em;
  text-align:left;
  padding:13px 14px;
  border-bottom:1px solid #dfe7e2;
  white-space:nowrap;
}
.reservas-approved-table td{
  padding:15px 14px;
  border-bottom:1px solid #edf1ef;
  vertical-align:top;
  color:#243044;
  font-size:13px;
}
.reservas-approved-table tr:hover td{
  background:#fbfdfc;
}
.reservas-approved-table tr:last-child td{
  border-bottom:0;
}
.check-col{
  width:42px;
  text-align:center!important;
}
.res-date-cell strong{
  display:block;
  max-width:130px;
  color:#344054;
  font-size:13px;
  line-height:1.45;
}
.res-person-cell strong{
  display:block;
  color:#102034;
  font-size:13.5px;
  line-height:1.35;
}
.res-contact-cell{
  display:grid;
  gap:6px;
  min-width:150px;
}
.res-contact-cell a{
  color:#174ea6;
  text-decoration:none;
  font-weight:850;
  overflow-wrap:anywhere;
  line-height:1.35;
}
.res-contact-cell a:first-child{
  color:#0b6333;
}
.res-course-cell{
  min-width:145px;
  color:#102034;
  font-weight:850;
  line-height:1.45;
}
.res-schedule-cell{
  min-width:190px;
}
.res-schedule-cell strong{
  display:block;
  color:#102034;
  line-height:1.45;
}
.res-schedule-cell span{
  display:inline-flex;
  margin-top:6px;
  padding:5px 8px;
  border-radius:999px;
  background:#f2f4f7;
  color:#475467;
  font-size:11px;
  font-weight:950;
}
.res-status-cell{
  min-width:125px;
}
.res-notes-cell{
  max-width:220px;
  color:#475467;
  line-height:1.45;
}
.res-actions-cell{
  min-width:145px;
}
.approved-inline-status{
  margin:0;
}
.approved-inline-status select{
  width:100%;
  min-height:38px;
  border:1px solid #cfd8d3;
  border-radius:10px;
  padding:7px 10px;
  background:#fff;
  color:#102034;
  font-weight:800;
}
.reservation-admin-badge.status-new{
  background:#fff4d6;
  color:#7a5200;
}
.reservation-admin-badge.status-contacted{
  background:#eef4ff;
  color:#174ea6;
}
.reservation-admin-badge.status-confirmed{
  background:#eaf8ef;
  color:#0b6333;
}
.reservation-admin-badge.status-completed{
  background:#f3e8ff;
  color:#6941c6;
}
.reservation-admin-badge.status-cancelled,
.reservation-admin-badge.status-unavailable{
  background:#fff1f0;
  color:#b42318;
}
.empty-reservations{
  padding:28px;
  text-align:center;
  color:#667085;
  font-weight:900;
}
.reservas-approved-side{
  display:grid;
  gap:14px;
  align-content:start;
}
.res-side-summary,
.res-side-actions,
.res-side-flow{
  background:#fff;
  border:1px solid #dfe7e2;
  border-radius:14px;
  padding:18px;
  box-shadow:0 8px 24px rgba(15,23,42,.035);
}
.res-side-summary h2,
.res-side-actions h2,
.res-side-flow h2{
  margin:0 0 14px!important;
  color:#102034!important;
  font-size:17px!important;
  line-height:1.2!important;
}
.res-summary-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
.res-summary-grid div{
  min-height:82px;
  padding:13px;
  border:1px solid #dfe7e2;
  border-radius:12px;
  background:#fff;
}
.res-summary-grid span{
  display:block;
  color:#667085;
  font-size:12px;
  font-weight:900;
}
.res-summary-grid strong{
  display:block;
  margin-top:8px;
  color:#102034;
  font-size:26px;
  line-height:1;
}
.res-summary-grid .pending{background:#fffaf0;border-color:#f3dfad;}
.res-summary-grid .contacted{background:#f6f9ff;border-color:#cfe0ff;}
.res-summary-grid .confirmed{background:#f7fcf8;border-color:#cfead8;}
.res-summary-grid .completed{background:#faf7ff;border-color:#e7d7ff;}
.res-summary-grid .cancelled{background:#fff7f6;border-color:#f7c5bf;}
.res-side-actions{
  display:grid;
  gap:0;
}
.res-side-actions a{
  display:grid;
  grid-template-columns:38px minmax(0,1fr);
  gap:12px;
  padding:14px 0;
  border-bottom:1px solid #edf1ef;
  text-decoration:none;
  color:#102034;
}
.res-side-actions a:last-child{
  border-bottom:0;
}
.res-side-actions a > span{
  display:flex;
  align-items:center;
  justify-content:center;
  width:38px;
  height:38px;
  border-radius:10px;
  background:#eaf8ef;
  color:#0b6333;
  font-weight:950;
}
.res-side-actions strong{
  display:block;
  color:#102034;
  font-size:13.5px;
}
.res-side-actions small{
  display:block;
  margin-top:4px;
  color:#667085;
  font-size:12px;
  line-height:1.35;
  font-weight:750;
}
.res-side-flow ol{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:11px;
}
.res-side-flow li{
  display:grid;
  grid-template-columns:28px minmax(0,1fr);
  gap:10px;
  align-items:center;
  color:#344054;
  font-size:13px;
  font-weight:850;
}
.res-side-flow li span{
  display:flex;
  align-items:center;
  justify-content:center;
  width:28px;
  height:28px;
  border-radius:50%;
  background:#07863b;
  color:#fff;
  font-weight:950;
  font-size:12px;
}
.res-side-flow small{
  color:#667085;
  font-weight:750;
}
@media(max-width:1320px){
  .reservas-approved-layout{
    grid-template-columns:1fr;
  }
  .reservas-approved-side{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}
@media(max-width:1050px){
  .reservas-filter-bar{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .filter-search{
    grid-column:1/-1;
  }
  .reservas-approved-side{
    grid-template-columns:1fr;
  }
}
@media(max-width:720px){
  .reservas-approved-head{
    display:grid;
  }
  .reservas-head-actions{
    justify-content:flex-start;
    flex-wrap:wrap;
  }
  .reservas-filter-bar{
    grid-template-columns:1fr;
  }
  .filter-search{
    grid-column:auto;
  }
}


/* ===== FASE5A19: Reservas diseño aprobado sin menú lateral CMS ===== */
body.px-reservas-fullscreen .admin-wrap{
  grid-template-columns:1fr!important;
  max-width:none!important;
  width:100%!important;
  padding:34px 36px!important;
}
body.px-reservas-fullscreen .side-card{
  display:none!important;
}
body.px-reservas-fullscreen main{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
}
body.px-reservas-fullscreen .reservas-approved-page{
  width:100%!important;
  max-width:none!important;
}
body.px-reservas-fullscreen .reservas-approved-layout{
  grid-template-columns:minmax(0,1fr) 360px!important;
}
body.px-reservas-fullscreen .reservas-data-main{
  min-width:0!important;
}
body.px-reservas-fullscreen .reservas-approved-table{
  min-width:1320px!important;
}
body.px-reservas-fullscreen .reservas-table-card{
  overflow:auto!important;
}
body.px-reservas-fullscreen .reservas-approved-table th,
body.px-reservas-fullscreen .reservas-approved-table td{
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
}
body.px-reservas-fullscreen .res-date-cell strong,
body.px-reservas-fullscreen .res-contact-cell a,
body.px-reservas-fullscreen .res-course-cell,
body.px-reservas-fullscreen .res-schedule-cell strong,
body.px-reservas-fullscreen .res-notes-cell{
  max-width:none!important;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  overflow-wrap:anywhere!important;
}
body.px-reservas-fullscreen .res-notes-cell{
  min-width:260px!important;
}
body.px-reservas-fullscreen .res-contact-cell{
  min-width:190px!important;
}
body.px-reservas-fullscreen .res-schedule-cell{
  min-width:260px!important;
}
.reservas-back-cms{
  padding-left:14px!important;
  padding-right:14px!important;
  white-space:nowrap!important;
}
@media(max-width:1320px){
  body.px-reservas-fullscreen .reservas-approved-layout{
    grid-template-columns:1fr!important;
  }
  body.px-reservas-fullscreen .reservas-approved-side{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
}
@media(max-width:760px){
  body.px-reservas-fullscreen .admin-wrap{
    padding:18px 12px!important;
  }
  body.px-reservas-fullscreen .reservas-approved-side{
    grid-template-columns:1fr!important;
  }
}


/* ===== FASE5A20: reservas detecta #tab-reservas, sin menú y botones compactos ===== */
body.px-reservas-fullscreen .side-card{
  display:none!important;
}
body.px-reservas-fullscreen .admin-wrap{
  grid-template-columns:1fr!important;
  max-width:none!important;
  width:100%!important;
  padding:26px 28px!important;
}
body.px-reservas-fullscreen main{
  width:100%!important;
  max-width:none!important;
}
body.px-reservas-fullscreen .reservas-approved-page{
  margin:0!important;
  width:100%!important;
  max-width:none!important;
}
body.px-reservas-fullscreen .reservas-approved-head{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:start!important;
  gap:18px!important;
  padding:24px 28px!important;
}
body.px-reservas-fullscreen .reservas-head-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:10px!important;
  min-width:0!important;
}
body.px-reservas-fullscreen .reservas-head-actions .btn-admin,
body.px-reservas-fullscreen .reservas-head-actions .btn-light{
  min-height:44px!important;
  padding:0 16px!important;
  border-radius:11px!important;
  font-size:14px!important;
  line-height:1!important;
  white-space:nowrap!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
}
body.px-reservas-fullscreen .reservas-back-cms{
  min-width:82px!important;
}
body.px-reservas-fullscreen .reservas-csv-btn{
  min-width:62px!important;
}
body.px-reservas-fullscreen .reservas-delete-btn{
  min-width:74px!important;
}
body.px-reservas-fullscreen .reservas-approved-layout{
  grid-template-columns:minmax(0,1fr) 360px!important;
}
body.px-reservas-fullscreen .reservas-approved-table{
  min-width:1320px!important;
}
body.px-reservas-fullscreen .reservas-approved-table th,
body.px-reservas-fullscreen .reservas-approved-table td{
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
}
body.px-reservas-fullscreen .res-date-cell strong,
body.px-reservas-fullscreen .res-contact-cell a,
body.px-reservas-fullscreen .res-course-cell,
body.px-reservas-fullscreen .res-schedule-cell strong,
body.px-reservas-fullscreen .res-notes-cell{
  max-width:none!important;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  overflow-wrap:anywhere!important;
}
@media(max-width:1320px){
  body.px-reservas-fullscreen .reservas-approved-layout{
    grid-template-columns:1fr!important;
  }
  body.px-reservas-fullscreen .reservas-approved-side{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
}
@media(max-width:760px){
  body.px-reservas-fullscreen .admin-wrap{
    padding:16px 10px!important;
  }
  body.px-reservas-fullscreen .reservas-approved-head{
    grid-template-columns:1fr!important;
  }
  body.px-reservas-fullscreen .reservas-head-actions{
    justify-content:flex-start!important;
    flex-wrap:wrap!important;
  }
  body.px-reservas-fullscreen .reservas-approved-side{
    grid-template-columns:1fr!important;
  }
}


/* ===== FASE5A21: reservas con dashboard arriba y tabla limpia sin sidebar ===== */
body.px-reservas-fullscreen .reservas-clean-dashboard-page{
  width:100%!important;
  max-width:none!important;
  overflow:hidden!important;
}
body.px-reservas-fullscreen .reservas-clean-dashboard-page .reservas-approved-head{
  grid-template-columns:minmax(0,1fr) auto!important;
  padding:20px 24px!important;
}
body.px-reservas-fullscreen .reservas-clean-dashboard-page .reservas-head-actions{
  flex-wrap:nowrap!important;
}
body.px-reservas-fullscreen .reservas-clean-dashboard-page .reservas-head-actions .btn-admin,
body.px-reservas-fullscreen .reservas-clean-dashboard-page .reservas-head-actions .btn-light{
  min-height:40px!important;
  padding:0 13px!important;
  font-size:13px!important;
}
.reservas-dashboard-header{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:10px;
  padding:16px 20px 0;
  background:#f6f8fb;
}
.reservas-dashboard-header .dash-card{
  min-height:82px;
  padding:14px 16px;
  border:1px solid #dfe7e2;
  border-radius:14px;
  background:#fff;
  box-shadow:0 8px 22px rgba(15,23,42,.035);
}
.reservas-dashboard-header .dash-card span{
  display:block;
  color:#667085;
  font-size:12px;
  font-weight:900;
  line-height:1.2;
}
.reservas-dashboard-header .dash-card strong{
  display:block;
  margin-top:8px;
  color:#102034;
  font-size:27px;
  line-height:1;
}
.reservas-dashboard-header .dash-card.pending{background:#fffaf0;border-color:#f3dfad;}
.reservas-dashboard-header .dash-card.contacted{background:#f6f9ff;border-color:#cfe0ff;}
.reservas-dashboard-header .dash-card.confirmed{background:#f7fcf8;border-color:#cfead8;}
.reservas-dashboard-header .dash-card.completed{background:#faf7ff;border-color:#e7d7ff;}
.reservas-dashboard-header .dash-card.cancelled{background:#fff7f6;border-color:#f7c5bf;}
.reservas-clean-main{
  padding:14px 20px 20px!important;
  display:grid!important;
  gap:12px!important;
  min-width:0!important;
}
.reservas-filter-clean{
  grid-template-columns:minmax(210px,1.4fr) minmax(145px,.75fr) minmax(145px,.75fr) minmax(140px,.7fr) minmax(132px,.65fr) minmax(132px,.65fr) auto!important;
  padding:14px!important;
  border-radius:13px!important;
}
.reservas-filter-clean input,
.reservas-filter-clean select{
  min-height:38px!important;
  font-size:13px!important;
}
.reservas-quick-strip{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  padding:10px 14px;
  background:#fff;
  border:1px solid #dfe7e2;
  border-radius:13px;
}
.reservas-quick-strip a{
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:34px;
  padding:0 10px;
  border:1px solid #dfe7e2;
  border-radius:10px;
  background:#f7faf8;
  color:#0b6333;
  text-decoration:none;
  font-size:12px;
  font-weight:900;
}
.reservas-quick-strip a span{
  color:#0b6333;
  font-weight:950;
}
.reservas-quick-strip .flow-mini{
  margin-left:auto;
  color:#667085;
  font-size:12px;
  font-weight:850;
}
.reservas-bulk-clean{
  padding:11px 14px!important;
  border-radius:13px 13px 0 0!important;
}
.reservas-table-clean-card{
  border-radius:0 0 13px 13px!important;
  overflow:visible!important;
}
.reservas-clean-table{
  width:100%!important;
  min-width:0!important;
  table-layout:fixed!important;
}
.reservas-clean-table th,
.reservas-clean-table td{
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  overflow-wrap:anywhere!important;
  word-break:normal!important;
  padding:12px 11px!important;
  font-size:12.5px!important;
}
.reservas-clean-table .check-col{width:38px!important;}
.reservas-clean-table th:nth-child(2),
.reservas-clean-table td:nth-child(2){width:105px!important;}
.reservas-clean-table th:nth-child(3),
.reservas-clean-table td:nth-child(3){width:125px!important;}
.reservas-clean-table th:nth-child(4),
.reservas-clean-table td:nth-child(4){width:150px!important;}
.reservas-clean-table th:nth-child(5),
.reservas-clean-table td:nth-child(5){width:145px!important;}
.reservas-clean-table th:nth-child(6),
.reservas-clean-table td:nth-child(6){width:210px!important;}
.reservas-clean-table th:nth-child(7),
.reservas-clean-table td:nth-child(7){width:110px!important;}
.reservas-clean-table th:nth-child(8),
.reservas-clean-table td:nth-child(8){width:auto!important;}
.reservas-clean-table th:nth-child(9),
.reservas-clean-table td:nth-child(9){width:132px!important;}
.reservas-clean-table .res-contact-cell,
.reservas-clean-table .res-schedule-cell,
.reservas-clean-table .res-notes-cell,
.reservas-clean-table .res-course-cell{
  min-width:0!important;
  max-width:none!important;
}
.reservas-clean-table .res-date-cell strong,
.reservas-clean-table .res-person-cell strong,
.reservas-clean-table .res-contact-cell a,
.reservas-clean-table .res-schedule-cell strong,
.reservas-clean-table .res-course-cell,
.reservas-clean-table .res-notes-cell{
  max-width:none!important;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
}
.reservas-clean-table .approved-inline-status select{
  min-height:34px!important;
  font-size:12px!important;
  padding:6px 8px!important;
}
@media(max-width:1380px){
  .reservas-dashboard-header{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  .reservas-filter-clean{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
  .reservas-filter-clean .filter-search{
    grid-column:1/-1!important;
  }
}
@media(max-width:980px){
  .reservas-dashboard-header{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .reservas-filter-clean{
    grid-template-columns:1fr!important;
  }
  .reservas-filter-clean .filter-search{
    grid-column:auto!important;
  }
  .reservas-quick-strip .flow-mini{
    margin-left:0;
    width:100%;
  }
  .reservas-table-clean-card{
    overflow:auto!important;
  }
  .reservas-clean-table{
    min-width:980px!important;
  }
}


/* ===== FASE5A22: Reservas sin columna Notas, tabla más cómoda ===== */
.reservas-clean-table th:nth-child(2),
.reservas-clean-table td:nth-child(2){width:116px!important;}
.reservas-clean-table th:nth-child(3),
.reservas-clean-table td:nth-child(3){width:165px!important;}
.reservas-clean-table th:nth-child(4),
.reservas-clean-table td:nth-child(4){width:205px!important;}
.reservas-clean-table th:nth-child(5),
.reservas-clean-table td:nth-child(5){width:190px!important;}
.reservas-clean-table th:nth-child(6),
.reservas-clean-table td:nth-child(6){width:auto!important;}
.reservas-clean-table th:nth-child(7),
.reservas-clean-table td:nth-child(7){width:135px!important;}
.reservas-clean-table th:nth-child(8),
.reservas-clean-table td:nth-child(8){width:145px!important;}
.reservas-clean-table .res-schedule-cell{
  min-width:0!important;
}
.reservas-clean-table .res-schedule-cell strong{
  line-height:1.55!important;
}
.reservas-clean-table .res-contact-cell{
  gap:7px!important;
}
.reservas-clean-table .res-course-cell{
  line-height:1.55!important;
}
.reservas-clean-table .res-person-cell strong{
  font-size:13.5px!important;
  line-height:1.45!important;
}


/* ===== FASE5A23: Reservas refinada, grupos dependientes de curso, estado Inscrito ===== */
.reservas-clean-dashboard-page .reservas-dashboard-header{
  grid-template-columns:repeat(6,minmax(0,1fr))!important;
  gap:12px!important;
  padding:18px 22px 0!important;
}
.reservas-clean-dashboard-page .dash-card{
  min-height:86px!important;
  border-radius:16px!important;
}
.reservas-clean-dashboard-page .dash-card.completed span{
  color:#6941c6!important;
}
.reservas-filter-clean{
  align-items:end!important;
  box-shadow:0 8px 26px rgba(15,23,42,.03)!important;
}
.reservas-filter-clean label,
.reservas-filter-clean .filter-search{
  font-size:12px!important;
  letter-spacing:.01em!important;
}
.reservas-filter-clean select option[hidden]{
  display:none!important;
}
.reservas-quick-strip{
  justify-content:space-between!important;
}
.reservas-quick-strip .flow-mini{
  color:#475467!important;
}
.reservas-clean-table{
  table-layout:fixed!important;
  border-collapse:separate!important;
}
.reservas-clean-table th{
  background:#f8fbf9!important;
  border-bottom:1px solid #dfe7e2!important;
}
.reservas-clean-table td{
  vertical-align:middle!important;
}
.reservas-clean-table tr:hover td{
  background:#fbfdfc!important;
}
.reservas-clean-table th:nth-child(2),
.reservas-clean-table td:nth-child(2){width:118px!important;}
.reservas-clean-table th:nth-child(3),
.reservas-clean-table td:nth-child(3){width:175px!important;}
.reservas-clean-table th:nth-child(4),
.reservas-clean-table td:nth-child(4){width:220px!important;}
.reservas-clean-table th:nth-child(5),
.reservas-clean-table td:nth-child(5){width:205px!important;}
.reservas-clean-table th:nth-child(6),
.reservas-clean-table td:nth-child(6){width:auto!important; min-width:260px!important;}
.reservas-clean-table th:nth-child(7),
.reservas-clean-table td:nth-child(7){width:140px!important;}
.reservas-clean-table th:nth-child(8),
.reservas-clean-table td:nth-child(8){width:150px!important;}
.reservas-clean-table .res-contact-cell a{
  display:block!important;
  line-height:1.35!important;
}
.reservas-clean-table .res-schedule-cell strong{
  display:block!important;
  font-size:12.8px!important;
  line-height:1.5!important;
}
.reservas-clean-table .res-schedule-cell span{
  margin-top:8px!important;
}
.reservation-admin-badge.status-completed{
  background:#f3e8ff!important;
  color:#6941c6!important;
}
@media(max-width:1380px){
  .reservas-clean-dashboard-page .reservas-dashboard-header{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
}
@media(max-width:980px){
  .reservas-clean-dashboard-page .reservas-dashboard-header{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}


/* ===== FASE5A24: Reservas refactor final acumulado ===== */
.reservas-final-page{
  --res-border:#dfe7e2;
  --res-text:#102034;
  --res-muted:#667085;
  --res-green:#07863b;
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  background:#f7faf9!important;
  border-color:var(--res-border)!important;
}
.reservas-final-page *{
  letter-spacing:0!important;
}
.reservas-final-page .reservas-approved-head{
  padding:20px 24px!important;
  background:#fff!important;
  border-bottom:1px solid var(--res-border)!important;
}
.reservas-final-page .reservas-title-icon{
  width:42px!important;
  height:42px!important;
  border-radius:12px!important;
  font-size:19px!important;
}
.reservas-final-page .page-title{
  font-size:28px!important;
  line-height:1.1!important;
  font-weight:900!important;
  color:var(--res-text)!important;
}
.reservas-final-page .page-subtitle{
  font-size:14px!important;
  line-height:1.45!important;
  color:var(--res-muted)!important;
  font-weight:650!important;
}
.reservas-final-page .reservas-head-actions .reservas-delete-btn,
.reservas-final-page .danger-soft{
  display:none!important;
}
.reservas-final-dashboard{
  grid-template-columns:repeat(7,minmax(0,1fr))!important;
  gap:10px!important;
  padding:16px 20px 0!important;
}
.reservas-final-dashboard .dash-card{
  min-height:74px!important;
  padding:12px 14px!important;
  border-radius:14px!important;
  box-shadow:0 8px 20px rgba(15,23,42,.03)!important;
}
.reservas-final-dashboard .dash-card span{
  font-size:11px!important;
  font-weight:850!important;
  color:#5f6b7a!important;
}
.reservas-final-dashboard .dash-card strong{
  font-size:25px!important;
  margin-top:7px!important;
  font-weight:900!important;
}
.reservas-final-dashboard .dash-card.archived{
  background:#f2f4f7!important;
  border-color:#d0d5dd!important;
}
.reservas-final-dashboard .dash-card.archived span,
.reservas-final-dashboard .dash-card.archived strong{
  color:#344054!important;
}
.reservas-final-main{
  padding:14px 20px 20px!important;
  gap:12px!important;
}
.reservas-final-filters{
  grid-template-columns:minmax(230px,1.45fr) minmax(170px,.95fr) minmax(170px,.95fr) minmax(145px,.75fr) auto!important;
  padding:14px!important;
  border-radius:14px!important;
  background:#fff!important;
  box-shadow:0 8px 22px rgba(15,23,42,.035)!important;
}
.reservas-final-filters label,
.reservas-final-filters .filter-search{
  color:var(--res-text)!important;
  font-size:12px!important;
  font-weight:850!important;
  gap:6px!important;
}
.reservas-final-filters input,
.reservas-final-filters select{
  min-height:39px!important;
  border-radius:10px!important;
  border-color:#ccd6d1!important;
  font-size:13px!important;
  font-weight:650!important;
}
.reservas-final-filters .filter-actions{
  align-items:end!important;
}
.reservas-bulk-final{
  display:grid!important;
  grid-template-columns:auto auto minmax(210px,280px) auto auto!important;
  gap:10px!important;
  align-items:center!important;
  padding:12px 14px!important;
  border-radius:14px!important;
  border:1px solid var(--res-border)!important;
  background:#fff!important;
  box-shadow:0 8px 22px rgba(15,23,42,.03)!important;
}
.reservas-bulk-final .select-all-reservas{
  margin:0!important;
  white-space:nowrap!important;
}
.reservas-bulk-final .bulk-selected-count{
  white-space:nowrap!important;
  color:#475467!important;
  font-size:13px!important;
  font-weight:800!important;
}
.reservas-bulk-final select{
  min-height:39px!important;
  width:100%!important;
  font-size:13px!important;
  font-weight:750!important;
}
.reservas-bulk-final .btn-admin,
.reservas-bulk-final .btn-light{
  min-height:39px!important;
  padding:0 16px!important;
  border-radius:10px!important;
  font-size:13px!important;
  font-weight:850!important;
}
.reservas-final-table-card{
  overflow:visible!important;
  border-radius:14px!important;
  border:1px solid var(--res-border)!important;
  background:#fff!important;
  box-shadow:0 8px 24px rgba(15,23,42,.035)!important;
}
.reservas-final-table{
  width:100%!important;
  min-width:0!important;
  table-layout:fixed!important;
  border-collapse:separate!important;
}
.reservas-final-table th{
  padding:12px 11px!important;
  background:#f8fbf9!important;
  color:#102034!important;
  font-size:11px!important;
  font-weight:900!important;
  text-transform:uppercase!important;
  border-bottom:1px solid var(--res-border)!important;
}
.reservas-final-table td{
  padding:13px 11px!important;
  font-size:12.5px!important;
  color:#243044!important;
  border-bottom:1px solid #eef2ef!important;
  vertical-align:middle!important;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  overflow-wrap:anywhere!important;
}
.reservas-final-table tr:hover td{
  background:#fbfdfc!important;
}
.reservas-final-table .check-col{width:38px!important;}
.reservas-final-table th:nth-child(2),
.reservas-final-table td:nth-child(2){width:108px!important;}
.reservas-final-table th:nth-child(3),
.reservas-final-table td:nth-child(3){width:165px!important;}
.reservas-final-table th:nth-child(4),
.reservas-final-table td:nth-child(4){width:205px!important;}
.reservas-final-table th:nth-child(5),
.reservas-final-table td:nth-child(5){width:190px!important;}
.reservas-final-table th:nth-child(6),
.reservas-final-table td:nth-child(6){width:auto!important;}
.reservas-final-table th:nth-child(7),
.reservas-final-table td:nth-child(7){width:132px!important;}
.reservas-final-table th:nth-child(8),
.reservas-final-table td:nth-child(8){width:150px!important;}
.reservas-final-table .res-date-cell strong,
.reservas-final-table .res-person-cell strong,
.reservas-final-table .res-contact-cell a,
.reservas-final-table .res-course-cell,
.reservas-final-table .res-schedule-cell strong{
  font-size:12.7px!important;
  line-height:1.45!important;
  font-weight:800!important;
  max-width:none!important;
  overflow:visible!important;
  white-space:normal!important;
  text-overflow:clip!important;
}
.reservas-final-table .res-contact-cell{
  min-width:0!important;
  gap:6px!important;
}
.reservas-final-table .res-contact-cell a:first-child{
  color:#08783a!important;
}
.reservas-final-table .res-contact-cell a{
  color:#174ea6!important;
}
.reservas-final-table .res-schedule-cell{
  min-width:0!important;
}
.reservas-final-table .res-schedule-cell span{
  margin-top:7px!important;
  padding:4px 8px!important;
  font-size:11px!important;
}
.reservas-final-table .approved-inline-status select{
  min-height:34px!important;
  border-radius:9px!important;
  font-size:12px!important;
}
.reservation-admin-badge.status-archived{
  background:#f2f4f7!important;
  color:#344054!important;
}
.reservation-admin-badge.status-completed{
  background:#f3e8ff!important;
  color:#6941c6!important;
}
.reservas-final-strip{
  order:99!important;
  margin-top:0!important;
  justify-content:flex-start!important;
  gap:8px!important;
}
.reservas-final-strip .flow-mini{
  margin-left:auto!important;
  color:#667085!important;
  font-size:12px!important;
  font-weight:800!important;
}
@media(max-width:1500px){
  .reservas-final-dashboard{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
  }
}
@media(max-width:1180px){
  .reservas-final-filters{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  .reservas-final-filters .filter-search{
    grid-column:1/-1!important;
  }
  .reservas-bulk-final{
    grid-template-columns:1fr 1fr!important;
  }
  .reservas-final-table-card{
    overflow:auto!important;
  }
  .reservas-final-table{
    min-width:980px!important;
  }
}
@media(max-width:760px){
  .reservas-final-dashboard{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  .reservas-final-filters,
  .reservas-bulk-final{
    grid-template-columns:1fr!important;
  }
  .reservas-final-strip .flow-mini{
    margin-left:0!important;
    width:100%!important;
  }
}


/* ===== FASE5A25: Reservas sin columna Acciones, sin Archivada visible y correo sin negrita ===== */
.reservas-final-dashboard{
  grid-template-columns:repeat(6,minmax(0,1fr))!important;
}
.reservas-final-dashboard .dash-card.archived{
  display:none!important;
}
.reservas-final-table th:nth-child(2),
.reservas-final-table td:nth-child(2){width:112px!important;}
.reservas-final-table th:nth-child(3),
.reservas-final-table td:nth-child(3){width:180px!important;}
.reservas-final-table th:nth-child(4),
.reservas-final-table td:nth-child(4){width:230px!important;}
.reservas-final-table th:nth-child(5),
.reservas-final-table td:nth-child(5){width:215px!important;}
.reservas-final-table th:nth-child(6),
.reservas-final-table td:nth-child(6){width:auto!important;}
.reservas-final-table th:nth-child(7),
.reservas-final-table td:nth-child(7){width:145px!important;}
.reservas-final-table .res-contact-cell a{
  font-weight:650!important;
}
.reservas-final-table .res-contact-cell a:first-child{
  font-weight:850!important;
}
.reservas-final-table .res-contact-cell a[href^="mailto:"]{
  font-weight:500!important;
  color:#174ea6!important;
}
.reservation-admin-badge.status-archived{
  background:#fff1f0!important;
  color:#b42318!important;
}
@media(max-width:1500px){
  .reservas-final-dashboard{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
}


/* ===== FASE5A26: Resumen actualizado con contexto de reservaciones y grupos ===== */
.summary-v26{
  background:#f7faf9!important;
  border-color:#dfe7e2!important;
}
.summary-v26 .summary-panel-head{
  background:#fff!important;
  border:1px solid #dfe7e2!important;
  border-radius:18px!important;
  padding:24px!important;
  margin-bottom:16px!important;
}
.summary-eyebrow{
  display:inline-flex;
  align-items:center;
  width:max-content;
  padding:6px 10px;
  border-radius:999px;
  background:#eaf8ef;
  color:#0b6333;
  font-size:11px;
  font-weight:950;
  text-transform:uppercase;
  margin-bottom:8px;
}
.summary-dashboard-v26{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:12px;
  margin:0 0 16px;
}
.summary-kpi{
  min-height:104px;
  padding:16px;
  border:1px solid #dfe7e2;
  border-radius:16px;
  background:#fff;
  box-shadow:0 8px 24px rgba(15,23,42,.035);
}
.summary-kpi span{
  display:block;
  color:#667085;
  font-size:12px;
  font-weight:900;
}
.summary-kpi strong{
  display:block;
  margin:8px 0 5px;
  color:#102034;
  font-size:30px;
  line-height:1;
  font-weight:950;
}
.summary-kpi small{
  color:#667085;
  font-size:12px;
  font-weight:750;
  line-height:1.3;
}
.summary-kpi.primary{background:#f7fcf8;border-color:#cfead8;}
.summary-kpi.pending{background:#fffaf0;border-color:#f3dfad;}
.summary-kpi.confirmed{background:#eefcf3;border-color:#cdebd8;}
.summary-kpi.completed{background:#faf7ff;border-color:#e7d7ff;}
.summary-kpi.groups{background:#f6f9ff;border-color:#cfe0ff;}
.summary-kpi.courses{background:#fff;border-color:#dfe7e2;}
.summary-context-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  margin-bottom:16px;
}
.summary-context-card{
  min-height:260px;
}
.summary-box-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}
.summary-box-head h2{
  margin:0!important;
}
.summary-box-head a{
  color:#0b6333;
  font-size:12px;
  font-weight:900;
  text-decoration:none;
  padding:6px 10px;
  border:1px solid #dfe7e2;
  border-radius:999px;
  background:#f7faf8;
  white-space:nowrap;
}
.summary-state-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.summary-state-grid div{
  padding:12px;
  border:1px solid #e6ece8;
  border-radius:13px;
  background:#fff;
}
.summary-state-grid span{
  display:block;
  color:#667085;
  font-size:11px;
  font-weight:850;
  line-height:1.25;
}
.summary-state-grid strong{
  display:block;
  margin-top:7px;
  color:#102034;
  font-size:24px;
  line-height:1;
  font-weight:950;
}
.summary-note{
  margin:12px 0 0!important;
  color:#667085!important;
  font-size:12.5px!important;
  line-height:1.5!important;
  font-weight:700!important;
}
.summary-grid-v26{
  margin-top:0!important;
}
.latest-reservation-list{
  display:grid;
  gap:9px;
}
.latest-reservation-list div{
  display:grid;
  gap:4px;
  padding:10px 0;
  border-bottom:1px solid #edf1ef;
}
.latest-reservation-list div:last-child{
  border-bottom:0;
}
.latest-reservation-list strong{
  color:#102034;
  font-size:13px;
  line-height:1.25;
}
.latest-reservation-list span{
  color:#667085;
  font-size:12px;
  line-height:1.3;
  font-weight:750;
}
.latest-reservation-list em{
  width:max-content;
  padding:4px 8px;
  border-radius:999px;
  background:#eaf8ef;
  color:#0b6333;
  font-style:normal;
  font-size:11px;
  font-weight:900;
}
@media(max-width:1280px){
  .summary-dashboard-v26{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  .summary-context-grid{
    grid-template-columns:1fr;
  }
}
@media(max-width:760px){
  .summary-dashboard-v26{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .summary-state-grid{
    grid-template-columns:1fr;
  }
}


/* ===== FASE5A27: actualización puntual Reservas fullscreen + tabla estable ===== */
html.px-reservas-fullscreen-html body.px-admin .admin-wrap,
body.px-reservas-fullscreen .admin-wrap{
  grid-template-columns:1fr!important;
  max-width:none!important;
  width:100%!important;
  padding:26px 28px!important;
  margin:26px auto 70px!important;
}
html.px-reservas-fullscreen-html body.px-admin .admin-wrap > aside.side-card,
body.px-reservas-fullscreen .admin-wrap > aside.side-card,
html.px-reservas-fullscreen-html body.px-admin .side-card,
body.px-reservas-fullscreen .side-card{
  display:none!important;
  visibility:hidden!important;
  width:0!important;
  min-width:0!important;
  max-width:0!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
}
html.px-reservas-fullscreen-html body.px-admin .admin-wrap > main,
body.px-reservas-fullscreen .admin-wrap > main{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
}
html.px-reservas-fullscreen-html body.px-admin .reservas-final-table-card,
body.px-reservas-fullscreen .reservas-final-table-card{
  overflow-x:auto!important;
  overflow-y:visible!important;
}
html.px-reservas-fullscreen-html body.px-admin .reservas-final-table,
body.px-reservas-fullscreen .reservas-final-table{
  min-width:1120px!important;
  table-layout:fixed!important;
}
html.px-reservas-fullscreen-html body.px-admin .reservas-final-table th,
body.px-reservas-fullscreen .reservas-final-table th{
  white-space:normal!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
  line-height:1.2!important;
}
html.px-reservas-fullscreen-html body.px-admin .reservas-final-table th:nth-child(6),
html.px-reservas-fullscreen-html body.px-admin .reservas-final-table td:nth-child(6),
body.px-reservas-fullscreen .reservas-final-table th:nth-child(6),
body.px-reservas-fullscreen .reservas-final-table td:nth-child(6){
  width:310px!important;
  min-width:310px!important;
}
html.px-reservas-fullscreen-html body.px-admin .reservas-final-table th:nth-child(4),
html.px-reservas-fullscreen-html body.px-admin .reservas-final-table td:nth-child(4),
body.px-reservas-fullscreen .reservas-final-table th:nth-child(4),
body.px-reservas-fullscreen .reservas-final-table td:nth-child(4){
  width:220px!important;
}
html.px-reservas-fullscreen-html body.px-admin .reservas-final-table th:nth-child(5),
html.px-reservas-fullscreen-html body.px-admin .reservas-final-table td:nth-child(5),
body.px-reservas-fullscreen .reservas-final-table th:nth-child(5),
body.px-reservas-fullscreen .reservas-final-table td:nth-child(5){
  width:200px!important;
}
html.px-reservas-fullscreen-html body.px-admin .reservas-final-table th:nth-child(7),
html.px-reservas-fullscreen-html body.px-admin .reservas-final-table td:nth-child(7),
body.px-reservas-fullscreen .reservas-final-table th:nth-child(7),
body.px-reservas-fullscreen .reservas-final-table td:nth-child(7){
  width:150px!important;
}
@media(max-width:760px){
  html.px-reservas-fullscreen-html body.px-admin .admin-wrap,
  body.px-reservas-fullscreen .admin-wrap{
    padding:16px 10px!important;
  }
}


/* ===== FASE5A28: blindaje navegación Reservas/Resumen/Grupos ===== */
html.px-reservas-fullscreen-html body.px-admin .reservas-final-table th,
body.px-reservas-fullscreen .reservas-final-table th{
  word-break:keep-all!important;
}
html.px-reservas-fullscreen-html body.px-admin .reservas-final-table th:nth-child(6),
body.px-reservas-fullscreen .reservas-final-table th:nth-child(6){
  min-width:310px!important;
  width:310px!important;
}
html.px-reservas-fullscreen-html body.px-admin .reservas-final-table-card,
body.px-reservas-fullscreen .reservas-final-table-card{
  scrollbar-width:thin;
}


/* ===== FASE5A29: ajustes acumulados Reservas / Cursos / Footer admin ===== */
/* Reservaciones: quitar negritas en teléfono, correo, curso y horario */
.reservas-final-table .res-contact-cell a,
.reservas-final-table .res-contact-cell a:first-child,
.reservas-final-table .res-contact-cell a[href^="mailto:"],
.reservas-final-table .res-course-cell,
.reservas-final-table .res-schedule-cell strong{
  font-weight:500!important;
}
.reservas-final-table .res-contact-cell a:first-child{
  color:#08783a!important;
}
.reservas-final-table .res-person-cell strong,
.reservas-final-table .res-date-cell strong{
  font-weight:650!important;
}

/* Menú de cursos: opción activa visible */
.course-panel-order a.active{
  background:#07863b!important;
  border-color:#07863b!important;
  color:#fff!important;
  box-shadow:0 10px 24px rgba(7,134,59,.16)!important;
}
.course-panel-order .course-back-to-cms.active{
  background:#061526!important;
  border-color:#061526!important;
  color:#fff!important;
}

/* Grupos: profesor integrado debajo de modalidad */
.cohort-table th:nth-child(3),
.cohort-table td:nth-child(3){
  width:30%!important;
}
.cohort-table .cohort-schedule-professor-cell{
  min-width:240px!important;
}
.cohort-table .cohort-schedule-professor-cell strong,
.cohort-table .cohort-schedule-professor-cell span,
.cohort-table .cohort-schedule-professor-cell small{
  display:block!important;
}
.cohort-table .cohort-schedule-professor-cell strong{
  line-height:1.45!important;
}
.cohort-table .cohort-schedule-professor-cell span{
  margin-top:5px!important;
}
.cohort-table .cohort-schedule-professor-cell small{
  margin-top:7px!important;
  color:#667085!important;
  font-size:12px!important;
  font-weight:600!important;
}


/* FASE5A29: Preview footer admin más compacto en beneficios */
.footer-preview-badges{
  gap:6px!important;
}
.footer-preview-badges span{
  line-height:1.15!important;
  padding-top:3px!important;
  padding-bottom:3px!important;
}


/* ===== FASE5A30: restauración visual página Estilos ===== */
#tab-estilos .admin-card{
  background:#fff!important;
}
#tab-estilos .style-control-preview{
  align-items:start!important;
}


/* ===== FASE5A31: términos Grupos / Cupos ===== */
.cohort-table th:nth-child(5),
.cohort-table td:nth-child(5){
  width:90px!important;
}

/* ===== Fase 5A34: Usuarios, Roles y Control de Acceso ===== */
.topbar-user-role{display:inline-flex;align-items:center;gap:6px;border:1px solid rgba(15,23,42,.12);background:#fff;border-radius:999px;padding:7px 11px;color:#334155;font-size:13px;font-weight:700;white-space:nowrap;}
.access-admin-card{padding:24px;}
.access-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px;}
.access-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:18px 0;}
.access-kpis article{background:#f8fafc;border:1px solid #e2e8f0;border-radius:18px;padding:16px;box-shadow:0 8px 22px rgba(15,23,42,.04);}
.access-kpis span{display:block;color:#64748b;font-size:13px;font-weight:700;margin-bottom:6px;}
.access-kpis strong{display:block;font-size:30px;line-height:1;color:#0f172a;}
.access-kpis small{display:block;color:#64748b;margin-top:7px;}
.access-admin-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(320px,.75fr);gap:18px;align-items:start;margin-top:16px;}
.access-admin-grid.roles-grid{grid-template-columns:minmax(0,1fr) minmax(300px,.72fr);}
.access-box{background:#fff;border:1px solid #e2e8f0;border-radius:20px;padding:18px;box-shadow:0 12px 30px rgba(15,23,42,.05);}
.access-box h2{margin:0 0 6px;font-size:20px;color:#0f172a;}
.access-form .form-grid{margin-top:14px;}
.access-form label small{display:block;color:#64748b;font-weight:500;margin-top:2px;}
.access-table-wrap{margin-top:18px;}
.access-table td small{display:block;color:#64748b;margin-top:4px;line-height:1.3;}
.access-pill{display:inline-flex;align-items:center;border-radius:999px;background:#ecfdf5;border:1px solid #bbf7d0;color:#166534;font-size:12px;font-weight:800;padding:5px 10px;white-space:nowrap;}
.access-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;}
.access-actions form{margin:0;}
.access-actions .btn-admin{padding:8px 10px;font-size:13px;}
.access-activity-list{display:grid;gap:10px;margin-top:12px;}
.access-activity-list article{border:1px solid #e2e8f0;background:#f8fafc;border-radius:14px;padding:12px;}
.access-activity-list strong{display:block;color:#0f172a;font-size:14px;}
.access-activity-list span{display:block;color:#334155;font-size:13px;margin-top:3px;}
.access-activity-list small{display:block;color:#64748b;font-size:12px;margin-top:5px;}
.access-role-list{display:grid;gap:10px;margin-top:12px;max-height:420px;overflow:auto;padding-right:4px;}
.access-role-list a{display:block;text-decoration:none;background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px;padding:13px;color:#0f172a;transition:.15s ease;}
.access-role-list a:hover,.access-role-list a.active{background:#ecfdf5;border-color:#86efac;transform:translateY(-1px);}
.access-role-list strong{display:block;font-size:15px;}
.access-role-list span{display:block;color:#64748b;font-size:12px;margin-top:4px;}
.access-permissions-box{margin-top:18px;}
.access-permissions-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:14px;}
.permission-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;}
.permission-grid fieldset{border:1px solid #e2e8f0;background:#f8fafc;border-radius:16px;padding:14px;margin:0;}
.permission-grid legend{font-weight:900;color:#0f172a;padding:0 6px;}
.permission-grid label{display:grid;grid-template-columns:18px minmax(0,1fr);gap:8px;align-items:start;background:#fff;border:1px solid #edf2f7;border-radius:12px;padding:10px;margin:9px 0 0;cursor:pointer;}
.permission-grid input{margin-top:2px;}
.permission-grid span{font-weight:750;color:#1e293b;font-size:13px;}
.permission-grid small{grid-column:2;color:#64748b;font-size:11px;line-height:1.2;word-break:break-word;}
@media(max-width:1100px){.access-kpis{grid-template-columns:repeat(2,minmax(0,1fr));}.access-admin-grid,.access-admin-grid.roles-grid,.permission-grid{grid-template-columns:1fr;}.access-head{flex-direction:column;}.topbar-user-role{display:none;}}
@media(max-width:640px){.access-admin-card{padding:16px;}.access-kpis{grid-template-columns:1fr;}.access-box{padding:14px;}.access-table .btn-admin{width:100%;}.access-actions{align-items:stretch;}.access-actions form{width:100%;}}

/* ===== FASE5A38: bienvenida, usuario visible y resumen ejecutivo ===== */
body.px-admin .topbar-menu span.topbar-user-role{
  display:inline-flex!important;
  align-items:center!important;
  gap:8px!important;
  border:1px solid #dfe7e2!important;
  background:#f8fbf9!important;
  border-radius:999px!important;
  padding:7px 11px!important;
  color:#17223a!important;
  font-size:12px!important;
  font-weight:600!important;
  letter-spacing:0!important;
  text-transform:none!important;
  max-width:360px!important;
}
.topbar-user-role i,
.side-user-avatar,
.summary-user-avatar{
  display:inline-grid;
  place-items:center;
  border-radius:999px;
  background:#0b7a43;
  color:#fff;
  font-style:normal;
  font-weight:800!important;
  letter-spacing:0!important;
  flex:0 0 auto;
}
.topbar-user-role i{width:25px;height:25px;font-size:12px;}
.topbar-user-role b{font-weight:650!important;max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.topbar-user-role em{font-style:normal;color:#667085;font-weight:500!important;max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.side-user-card{
  display:flex;
  align-items:center;
  gap:12px;
  padding:13px 13px;
  margin-bottom:14px;
  border:1px solid #dfe7e2;
  border-radius:15px;
  background:linear-gradient(135deg,#f8fbf9 0%,#ffffff 100%);
}
.side-user-avatar{width:42px;height:42px;font-size:16px;box-shadow:0 8px 20px rgba(11,122,67,.16);}
.side-user-copy{min-width:0;display:grid;gap:2px;}
.side-user-copy small{color:#667085;font-size:11px;text-transform:uppercase;letter-spacing:.04em;font-weight:650!important;}
.side-user-copy strong{color:#102034;font-size:14px;line-height:1.15;font-weight:700!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.side-user-copy span{color:#0b7a43;font-size:12px;font-weight:600!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.summary-welcome-head{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(300px,390px)!important;
  align-items:stretch!important;
  gap:22px!important;
}
.summary-welcome-copy{display:flex;flex-direction:column;justify-content:center;min-width:0;}
.summary-welcome-copy .page-title{font-size:32px!important;margin-bottom:8px!important;}
.summary-role-line{display:flex;flex-wrap:wrap;gap:8px;margin-top:4px;}
.summary-role-line span{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:6px 11px;
  border-radius:999px;
  background:#f8fafc;
  border:1px solid #e2e8f0;
  color:#475467;
  font-size:13px;
  font-weight:500!important;
}
.summary-role-line strong{color:#0b7a43;font-weight:750!important;}
.summary-user-actions{display:grid;gap:12px;align-content:start;}
.summary-user-card{
  display:flex;
  gap:13px;
  align-items:center;
  padding:15px;
  border-radius:18px;
  border:1px solid #dfe7e2;
  background:linear-gradient(135deg,#f7fcf8 0%,#fff 72%);
  box-shadow:0 10px 26px rgba(15,23,42,.045);
}
.summary-user-avatar{width:52px;height:52px;font-size:20px;box-shadow:0 10px 24px rgba(11,122,67,.18);}
.summary-user-card div:last-child{display:grid;gap:2px;min-width:0;}
.summary-user-card small{color:#667085;font-size:11px;text-transform:uppercase;letter-spacing:.05em;font-weight:700!important;}
.summary-user-card strong{color:#102034;font-size:16px;font-weight:750!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.summary-user-card span{color:#0b7a43;font-size:13px;font-weight:650!important;}
.summary-user-card em{color:#667085;font-size:12px;font-style:normal;font-weight:500!important;}
.summary-user-actions .summary-actions-top{justify-content:stretch!important;gap:8px!important;display:grid!important;grid-template-columns:1fr!important;margin:0!important;}
.summary-user-actions .summary-actions-top a{justify-content:center!important;text-align:center!important;min-height:42px!important;padding:10px 14px!important;}
.summary-dashboard-v26 .summary-kpi span{font-weight:600!important;}
.summary-dashboard-v26 .summary-kpi strong{font-weight:760!important;}
@media(max-width:1200px){
  .summary-welcome-head{grid-template-columns:1fr!important;}
  .summary-user-actions .summary-actions-top{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media(max-width:900px){
  body.px-admin .topbar-menu span.topbar-user-role{display:none!important;}
  .side-user-card{display:none!important;}
}
@media(max-width:620px){
  .summary-user-actions .summary-actions-top{grid-template-columns:1fr!important;}
  .summary-user-card{align-items:flex-start;}
  .summary-welcome-copy .page-title{font-size:27px!important;}
}



/* ===== FASE5A39: estilización coherente de Cursos, Profesores, Grupos e Inscripciones ===== */
.module-hero-head{
  padding:20px 22px;
  border:1px solid #dfe7e2;
  border-radius:20px;
  background:linear-gradient(135deg,#f7fbf8 0%,#ffffff 75%);
  box-shadow:0 12px 30px rgba(15,23,42,.04);
}
.module-hero-head-compact{margin-bottom:18px;}
.module-hero-copy{min-width:0;}
.module-hero-kicker{
  display:inline-flex;align-items:center;min-height:28px;padding:5px 11px;border-radius:999px;
  background:#eef8f2;border:1px solid #cde8d6;color:#0b7a43;font-size:12px;font-weight:800;
  text-transform:uppercase;letter-spacing:.04em;margin-bottom:10px;
}
.module-mini-stats{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px;}
.module-mini-stats span{
  display:inline-flex;align-items:center;gap:7px;min-height:34px;padding:7px 12px;border-radius:999px;
  background:#fff;border:1px solid #e2e8f0;color:#475467;font-size:13px;font-weight:650;
}
.module-mini-stats strong{color:#102034;font-size:14px;font-weight:850;}
.module-hero-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:flex-start;gap:8px;}
.courses-page-box,.professors-page-box,.groups-page-box,.access-admin-card{
  background:linear-gradient(180deg,#ffffff 0%,#fbfcfd 100%);
}
.professors-page-box .professor-maintenance-grid,
.groups-page-box .cohort-table-wrap,
.courses-page-box .course-list-table-wrap,
#tab-inscripciones .access-table-wrap{margin-top:18px;}
.professors-page-box .block-card.course-editor-block,
.groups-page-box .block-card.course-editor-block,
.courses-page-box .course-admin-table,
#tab-inscripciones .course-admin-table{box-shadow:0 12px 28px rgba(15,23,42,.03);}
.professors-page-box .block-head h2,
.groups-page-box .block-head h2,
.courses-page-box .block-head h2{font-size:22px;}
.professors-page-box .course-admin-table th,
.groups-page-box .course-admin-table th,
.courses-page-box .course-admin-table th,
#tab-inscripciones .course-admin-table th{
  background:#f7faf8;
  color:#102034;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.professors-page-box .course-admin-table tbody tr,
.groups-page-box .course-admin-table tbody tr,
.courses-page-box .course-admin-table tbody tr,
#tab-inscripciones .course-admin-table tbody tr{transition:background .15s ease, transform .15s ease;}
.professors-page-box .course-admin-table tbody tr:hover,
.groups-page-box .course-admin-table tbody tr:hover,
.courses-page-box .course-admin-table tbody tr:hover,
#tab-inscripciones .course-admin-table tbody tr:hover{background:#fbfdfb;}
.professors-page-box .description-wide-form label,
.groups-page-box .description-wide-form label,
.courses-page-box .form-grid label{font-weight:750;color:#17223a;}
.professors-page-box .description-wide-form input,
.professors-page-box .description-wide-form textarea,
.professors-page-box .description-wide-form select,
.groups-page-box .description-wide-form input,
.groups-page-box .description-wide-form textarea,
.groups-page-box .description-wide-form select,
.courses-page-box .form-grid input,
.courses-page-box .form-grid textarea,
.courses-page-box .form-grid select{
  margin-top:7px;
  border-radius:12px;
  border-color:#d7e1dd;
  background:#fff;
}
#tab-inscripciones .access-head{padding:0;margin-bottom:18px;}
#tab-inscripciones .summary-dashboard-v26{margin-top:0;}
#tab-inscripciones .summary-kpi{box-shadow:0 10px 24px rgba(15,23,42,.04);}
@media(max-width:900px){
  .module-hero-head{padding:18px;}
  .module-hero-actions{justify-content:flex-start;}
}
@media(max-width:640px){
  .module-mini-stats span{width:100%;justify-content:space-between;}
}


/* ===== FASE5A40: menú lateral unificado CMS + Cursos ===== */
.unified-panel-menu{display:grid;gap:11px;}
.unified-panel-menu .side-submenu{
  display:grid;
  gap:8px;
  margin:-3px 0 4px 14px;
  padding:6px 0 0 14px;
  border-left:2px solid #d7e2dc;
}
.unified-panel-menu .side-submenu a{
  min-height:42px;
  padding:10px 14px;
  border-radius:12px;
  font-size:14px;
  font-weight:800;
  background:#f8faf9;
  border:1px solid #d9e3df;
}
.unified-panel-menu .side-submenu a.active{
  background:#e9f8ef;
  color:#0b7a43;
  border-color:#bfe8ce;
  box-shadow:none;
}
.course-work-head-note{
  align-self:flex-start;
  max-width:340px;
  padding:10px 14px;
  border-radius:14px;
  border:1px solid #dfe7e2;
  background:#f7fbf8;
  color:#4b5b70;
  font-size:13px;
  line-height:1.45;
  font-weight:600;
}
body.px-admin.course-focus-mode .side-menu.course-panel-order{display:none!important;}
@media(max-width:1180px){
  .unified-panel-menu .side-submenu{margin:2px 0 4px 0;padding:8px 0 0 0;border-left:0;border-top:1px solid #d7e2dc;}
}
@media(max-width:760px){
  .course-work-head-note{display:none;}
  body.px-admin .unified-panel-menu .side-submenu{grid-column:1/-1;}
  body.px-admin .unified-panel-menu .side-submenu a{font-size:14px!important;min-height:42px!important;}
}


/* ===== FASE5A41: menú CMS operativo por bloques ===== */
body.px-admin .side-card{
  padding:18px!important;
}
.cms-nav-v41{
  display:grid!important;
  gap:16px!important;
}
.cms-nav-v41 .cms-nav-section{
  display:grid;
  gap:8px;
}
.cms-nav-v41 .cms-nav-title{
  padding:0 4px;
  color:#6b7280;
  font-size:11px;
  line-height:1.2;
  font-weight:850;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.cms-nav-v41 .cms-nav-links{
  display:grid;
  gap:8px;
}
.cms-nav-v41 .cms-nav-links a{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  min-height:44px!important;
  padding:10px 14px!important;
  border:1px solid #d8e1dc!important;
  border-radius:13px!important;
  background:#fff!important;
  color:#17223a!important;
  font-size:14.5px!important;
  font-weight:760!important;
  line-height:1.2!important;
  box-shadow:none!important;
  text-decoration:none!important;
  transition:background .15s ease,border-color .15s ease,color .15s ease,transform .15s ease;
}
.cms-nav-v41 .cms-nav-links a:hover{
  background:#f7fbf8!important;
  border-color:#bfe8ce!important;
  color:#0b7a43!important;
  transform:translateY(-1px);
}
.cms-nav-v41 .cms-nav-links a.active{
  background:#0b7a43!important;
  border-color:#0b7a43!important;
  color:#fff!important;
  box-shadow:0 10px 22px rgba(11,122,67,.16)!important;
}
.cms-nav-v41 .cms-nav-external{
  padding-top:12px;
  border-top:1px solid #d7e2dc;
}
.cms-nav-v41 .cms-nav-external .cms-nav-links a{
  background:#f9fbfa!important;
}
body.px-admin.course-focus-mode .side-menu.course-panel-order,
body.px-admin.course-focus-mode .unified-panel-menu .side-submenu{
  display:none!important;
}
body.px-admin.course-focus-mode #tab-cursos .course-work-head{
  align-items:flex-start!important;
}
@media(max-width:1180px){
  body.px-admin .cms-nav-v41{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:14px!important;
  }
  body.px-admin .cms-nav-v41 .cms-nav-section{
    align-content:start;
  }
  body.px-admin .cms-nav-v41 .cms-nav-external{
    padding-top:0;
    border-top:0;
  }
}
@media(max-width:720px){
  body.px-admin .cms-nav-v41{
    grid-template-columns:1fr!important;
  }
  body.px-admin .cms-nav-v41 .cms-nav-links a{
    min-height:42px!important;
    font-size:14px!important;
  }
}


/* ===== FASE5A42: navegación CMS corregida + profesores en flujo vertical ===== */
body.px-admin .cms-nav-v42{
  display:grid!important;
  gap:15px!important;
}
body.px-admin .cms-nav-v42 .cms-nav-section{
  display:grid!important;
  gap:8px!important;
}
body.px-admin .cms-nav-v42 .cms-nav-title{
  padding:0 4px!important;
  color:#6b7280!important;
  font-size:11px!important;
  line-height:1.2!important;
  font-weight:850!important;
  text-transform:uppercase!important;
  letter-spacing:.08em!important;
}
body.px-admin .cms-nav-v42 .cms-nav-links{
  display:grid!important;
  gap:8px!important;
}
body.px-admin .cms-nav-v42 .cms-nav-links a,
body.px-admin.course-focus-mode .cms-nav-v42 .cms-nav-links a{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  min-height:44px!important;
  padding:10px 14px!important;
  border:1px solid #d8e1dc!important;
  border-radius:13px!important;
  background:#fff!important;
  color:#17223a!important;
  font-size:14.5px!important;
  font-weight:760!important;
  line-height:1.2!important;
  box-shadow:none!important;
  text-decoration:none!important;
  transform:none!important;
}
body.px-admin .cms-nav-v42 .cms-nav-links a:hover,
body.px-admin.course-focus-mode .cms-nav-v42 .cms-nav-links a:hover{
  background:#f7fbf8!important;
  border-color:#bfe8ce!important;
  color:#0b7a43!important;
}
body.px-admin .cms-nav-v42 .cms-nav-links a.active,
body.px-admin.course-focus-mode .cms-nav-v42 .cms-nav-links a.active{
  background:#0b7a43!important;
  border-color:#0b7a43!important;
  color:#fff!important;
  box-shadow:0 10px 22px rgba(11,122,67,.16)!important;
}
body.px-admin .cms-nav-v42 .cms-nav-external{
  padding-top:12px!important;
  border-top:1px solid #d7e2dc!important;
}
body.px-admin .cms-nav-v42 .cms-nav-external .cms-nav-links a{
  background:#f9fbfa!important;
}
body.px-admin.course-focus-mode .cms-nav-v42{
  display:grid!important;
}
body.px-admin.course-focus-mode .cms-panel-order.cms-nav-v42{
  display:grid!important;
}
body.px-admin .cms-nav-v42 a:first-child{
  border-color:#d8e1dc!important;
}
body.px-admin .cms-nav-v42 a:first-child.active{
  border-color:#0b7a43!important;
}
.professors-page-box .professor-maintenance-grid{
  grid-template-columns:1fr!important;
  gap:20px!important;
}
.professors-page-box .professor-table-wrap{
  width:100%!important;
  max-width:100%!important;
}
.professors-page-box .course-editor-block{
  width:100%!important;
}
@media(max-width:1180px){
  body.px-admin .cms-nav-v42{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:14px!important;
  }
  body.px-admin .cms-nav-v42 .cms-nav-external{
    padding-top:0!important;
    border-top:0!important;
  }
}
@media(max-width:720px){
  body.px-admin .cms-nav-v42{
    grid-template-columns:1fr!important;
  }
  body.px-admin .cms-nav-v42 .cms-nav-links a{
    min-height:42px!important;
    font-size:14px!important;
  }
}


/* ===== FASE5A43: horarios en columnas, un horario por línea ===== */
.admin-schedule-cell,
.reservation-table-v2 td.admin-schedule-cell,
.access-table td.admin-schedule-cell,
.cohort-schedule-professor-cell{
  min-width:190px;
}
.admin-schedule-lines{
  display:grid;
  gap:6px;
  align-items:start;
  max-width:100%;
}
.admin-schedule-lines span{
  display:block;
  width:max-content;
  max-width:100%;
  padding:4px 0;
  color:#102034;
  font-weight:650;
  line-height:1.35;
  white-space:normal;
  word-break:normal;
}
.admin-schedule-lines span + span{
  border-top:1px solid #edf2f7;
}
.cohort-schedule-professor-cell .admin-schedule-lines{
  margin-bottom:4px;
}
.cohort-schedule-professor-cell .admin-schedule-lines span{
  font-weight:850;
}
@media(max-width:760px){
  .admin-schedule-cell,
  .reservation-table-v2 td.admin-schedule-cell,
  .access-table td.admin-schedule-cell,
  .cohort-schedule-professor-cell{
    min-width:170px;
  }
}


/* ===== FASE5A44: Resumen sin botones rápidos duplicados ===== */
.summary-user-actions .summary-actions-top{
  gap:8px!important;
}
.summary-user-actions .summary-actions-top:empty{
  display:none!important;
}
.summary-user-actions{
  align-content:start!important;
}


/* ===== FASE5A45: no afecta el menú administrativo ===== */
body.px-admin .topbar-admin{
  border-bottom:1px solid #d9e1dc;
}


/* ===== FASE5A46: listas administrativas sin scroll horizontal y alineadas arriba ===== */

/* Regla base para que las filas empiecen arriba y no queden elementos centrados en vertical. */
body.px-admin table th,
body.px-admin table td{
  vertical-align:top!important;
}

/* Evita que teléfonos, correos, nombres de cursos, estados y horarios fuercen scroll horizontal. */
body.px-admin .course-admin-table,
body.px-admin .reservation-table-v2,
body.px-admin .access-table,
body.px-admin .users-table,
body.px-admin .roles-table,
body.px-admin .data-table{
  width:100%!important;
  max-width:100%!important;
  table-layout:fixed!important;
  border-collapse:separate;
  border-spacing:0;
}

body.px-admin .course-admin-table th,
body.px-admin .course-admin-table td,
body.px-admin .reservation-table-v2 th,
body.px-admin .reservation-table-v2 td,
body.px-admin .access-table th,
body.px-admin .access-table td,
body.px-admin .users-table th,
body.px-admin .users-table td,
body.px-admin .roles-table th,
body.px-admin .roles-table td,
body.px-admin .data-table th,
body.px-admin .data-table td{
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  word-break:normal!important;
  line-height:1.45!important;
}

/* Los contenedores ya no deben obligar scroll horizontal en escritorio. */
body.px-admin .course-list-table-wrap,
body.px-admin .cohort-table-wrap,
body.px-admin .access-table-wrap,
body.px-admin .reservation-table-wrap,
body.px-admin .table-responsive{
  max-width:100%!important;
  overflow-x:visible!important;
}

/* Reservaciones: anchuras proporcionales para evitar desbordes. */
body.px-admin .reservation-table-v2 th:nth-child(1),
body.px-admin .reservation-table-v2 td:nth-child(1){width:46px!important;}
body.px-admin .reservation-table-v2 th:nth-child(2),
body.px-admin .reservation-table-v2 td:nth-child(2){width:105px!important;}
body.px-admin .reservation-table-v2 th:nth-child(3),
body.px-admin .reservation-table-v2 td:nth-child(3){width:17%!important;}
body.px-admin .reservation-table-v2 th:nth-child(4),
body.px-admin .reservation-table-v2 td:nth-child(4){width:19%!important;}
body.px-admin .reservation-table-v2 th:nth-child(5),
body.px-admin .reservation-table-v2 td:nth-child(5){width:19%!important;}
body.px-admin .reservation-table-v2 th:nth-child(6),
body.px-admin .reservation-table-v2 td:nth-child(6){width:24%!important;}
body.px-admin .reservation-table-v2 th:nth-child(7),
body.px-admin .reservation-table-v2 td:nth-child(7){width:150px!important;}

/* Cursos: evita columnas exageradas y permite wrap. */
body.px-admin .courses-page-box .course-admin-table th,
body.px-admin .courses-page-box .course-admin-table td,
body.px-admin .professors-page-box .course-admin-table th,
body.px-admin .professors-page-box .course-admin-table td,
body.px-admin .groups-page-box .course-admin-table th,
body.px-admin .groups-page-box .course-admin-table td{
  vertical-align:top!important;
}

/* Contacto y líneas compuestas: siempre una línea de dato debajo de otra. */
body.px-admin td .muted,
body.px-admin td small,
body.px-admin .admin-contact-lines,
body.px-admin .admin-list-lines{
  display:block;
  margin-top:4px;
  line-height:1.35;
}

/* Horarios: un horario por línea y alineado arriba en tablas. */
body.px-admin .admin-schedule-cell,
body.px-admin td.admin-schedule-cell{
  vertical-align:top!important;
  min-width:0!important;
}
body.px-admin .admin-schedule-lines{
  display:grid!important;
  gap:6px!important;
  justify-items:start!important;
  align-items:start!important;
  margin:0!important;
}
body.px-admin .admin-schedule-lines span{
  display:block!important;
  width:auto!important;
  max-width:100%!important;
  padding:3px 10px!important;
  border-radius:999px!important;
  background:#f3f5f7!important;
  color:#102034!important;
  font-weight:650!important;
  line-height:1.32!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
}
body.px-admin .admin-schedule-lines span + span{
  border-top:0!important;
}

/* Estados: evita que las etiquetas de estado estiren columnas. */
body.px-admin .status-pill,
body.px-admin .reservation-status,
body.px-admin .badge,
body.px-admin .chip{
  display:inline-flex!important;
  max-width:100%!important;
  white-space:normal!important;
  line-height:1.25!important;
  align-items:flex-start!important;
}

/* Botoneras dentro de tablas: se apilan y no empujan la tabla. */
body.px-admin table .button-row,
body.px-admin table .actions,
body.px-admin table .table-actions{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:6px!important;
  align-items:flex-start!important;
}
body.px-admin table .button-row a,
body.px-admin table .button-row button,
body.px-admin table .actions a,
body.px-admin table .actions button,
body.px-admin table .table-actions a,
body.px-admin table .table-actions button{
  max-width:100%!important;
  white-space:normal!important;
}

/* En pantallas medianas o pequeñas se permite scroll solo si no hay espacio real. */
@media(max-width:1100px){
  body.px-admin .course-list-table-wrap,
  body.px-admin .cohort-table-wrap,
  body.px-admin .access-table-wrap,
  body.px-admin .reservation-table-wrap,
  body.px-admin .table-responsive{
    overflow-x:auto!important;
    -webkit-overflow-scrolling:touch;
  }
  body.px-admin .reservation-table-v2,
  body.px-admin .course-admin-table,
  body.px-admin .access-table{
    min-width:920px!important;
  }
}
@media(max-width:760px){
  body.px-admin .reservation-table-v2,
  body.px-admin .course-admin-table,
  body.px-admin .access-table{
    min-width:820px!important;
  }
}


/* ===== FASE5A47: rebalanceo fino de columnas administrativas ===== */

/*
  La fase anterior redujo scroll horizontal, pero algunas tablas quedaron con columnas
  visualmente desbalanceadas. Esta fase corrige distribución por tipo de lista.
*/

/* Base: mantener alineación superior, pero dejar que cada tabla use su distribución propia. */
body.px-admin table th,
body.px-admin table td{
  vertical-align:top!important;
}

/* En escritorio grande, las tablas principales deben usar el ancho disponible sin empujar scroll. */
@media(min-width:1101px){
  body.px-admin .course-admin-table,
  body.px-admin .reservation-table-v2,
  body.px-admin .access-table{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    table-layout:fixed!important;
  }

  body.px-admin .course-list-table-wrap,
  body.px-admin .cohort-table-wrap,
  body.px-admin .access-table-wrap,
  body.px-admin .reservation-table-wrap,
  body.px-admin .table-responsive{
    overflow-x:visible!important;
  }
}

/* Reservaciones: distribución más realista de columnas. */
body.px-admin .reservation-table-balanced th:nth-child(1),
body.px-admin .reservation-table-balanced td:nth-child(1){
  width:42px!important;
  min-width:42px!important;
  max-width:42px!important;
}
body.px-admin .reservation-table-balanced th:nth-child(2),
body.px-admin .reservation-table-balanced td:nth-child(2){
  width:96px!important;
}
body.px-admin .reservation-table-balanced th:nth-child(3),
body.px-admin .reservation-table-balanced td:nth-child(3){
  width:16%!important;
}
body.px-admin .reservation-table-balanced th:nth-child(4),
body.px-admin .reservation-table-balanced td:nth-child(4){
  width:18%!important;
}
body.px-admin .reservation-table-balanced th:nth-child(5),
body.px-admin .reservation-table-balanced td:nth-child(5){
  width:18%!important;
}
body.px-admin .reservation-table-balanced th:nth-child(6),
body.px-admin .reservation-table-balanced td:nth-child(6){
  width:22%!important;
}
body.px-admin .reservation-table-balanced th:nth-child(7),
body.px-admin .reservation-table-balanced td:nth-child(7){
  width:126px!important;
  text-align:left!important;
}

/* Corrige reglas anteriores demasiado anchas en reservaciones. */
body.px-admin .reservation-table-v2 th:nth-child(7),
body.px-admin .reservation-table-v2 td:nth-child(7){
  width:126px!important;
}

/* El estado no debe flotar al centro de la fila; debe arrancar arriba. */
body.px-admin .reservation-table-v2 td:last-child,
body.px-admin .access-table td:last-child,
body.px-admin .course-admin-table td:last-child{
  vertical-align:top!important;
}

/* Contacto: teléfono y correo en líneas limpias sin comerse columnas vecinas. */
body.px-admin .reservation-table-v2 td:nth-child(4),
body.px-admin .access-table td:nth-child(4){
  overflow-wrap:anywhere!important;
}
body.px-admin .reservation-table-v2 td:nth-child(4) a,
body.px-admin .access-table td:nth-child(4) a{
  display:block!important;
  max-width:100%!important;
  overflow-wrap:anywhere!important;
}

/* Horarios: chips compactos y uno debajo de otro, alineados arriba. */
body.px-admin .admin-schedule-lines{
  align-content:start!important;
  justify-content:start!important;
  justify-items:start!important;
}
body.px-admin .admin-schedule-lines span{
  max-width:100%!important;
  width:auto!important;
  padding:3px 9px!important;
  border-radius:999px!important;
  line-height:1.28!important;
}

/* Inscripciones / acceso: distribución parecida a Reservaciones, pero con más espacio para participante. */
body.px-admin #tab-inscripciones .access-table th:nth-child(1),
body.px-admin #tab-inscripciones .access-table td:nth-child(1){
  width:105px!important;
}
body.px-admin #tab-inscripciones .access-table th:nth-child(2),
body.px-admin #tab-inscripciones .access-table td:nth-child(2){
  width:20%!important;
}
body.px-admin #tab-inscripciones .access-table th:nth-child(3),
body.px-admin #tab-inscripciones .access-table td:nth-child(3){
  width:20%!important;
}
body.px-admin #tab-inscripciones .access-table th:nth-child(4),
body.px-admin #tab-inscripciones .access-table td:nth-child(4){
  width:20%!important;
}
body.px-admin #tab-inscripciones .access-table th:nth-child(5),
body.px-admin #tab-inscripciones .access-table td:nth-child(5){
  width:25%!important;
}
body.px-admin #tab-inscripciones .access-table th:nth-child(6),
body.px-admin #tab-inscripciones .access-table td:nth-child(6){
  width:130px!important;
}

/* Cursos: nombre/curso con más espacio, estados y acciones compactos. */
body.px-admin .courses-page-box .course-admin-table th:last-child,
body.px-admin .courses-page-box .course-admin-table td:last-child{
  width:150px!important;
}
body.px-admin .courses-page-box .course-admin-table td,
body.px-admin .courses-page-box .course-admin-table th{
  overflow-wrap:anywhere!important;
}

/* Profesores: catálogo más estable y sin columnas fantasmas. */
body.px-admin .professors-page-box .course-admin-table th:nth-child(1),
body.px-admin .professors-page-box .course-admin-table td:nth-child(1){
  width:24%!important;
}
body.px-admin .professors-page-box .course-admin-table th:nth-child(2),
body.px-admin .professors-page-box .course-admin-table td:nth-child(2){
  width:24%!important;
}
body.px-admin .professors-page-box .course-admin-table th:nth-child(3),
body.px-admin .professors-page-box .course-admin-table td:nth-child(3){
  width:28%!important;
}
body.px-admin .professors-page-box .course-admin-table th:nth-child(4),
body.px-admin .professors-page-box .course-admin-table td:nth-child(4){
  width:110px!important;
}
body.px-admin .professors-page-box .course-admin-table th:nth-child(5),
body.px-admin .professors-page-box .course-admin-table td:nth-child(5){
  width:150px!important;
}

/* Grupos: curso y horario equilibrados; acciones compactas. */
body.px-admin .groups-page-box .course-admin-table th:nth-child(1),
body.px-admin .groups-page-box .course-admin-table td:nth-child(1){
  width:24%!important;
}
body.px-admin .groups-page-box .course-admin-table th:nth-child(2),
body.px-admin .groups-page-box .course-admin-table td:nth-child(2){
  width:26%!important;
}
body.px-admin .groups-page-box .course-admin-table th:nth-child(3),
body.px-admin .groups-page-box .course-admin-table td:nth-child(3){
  width:16%!important;
}
body.px-admin .groups-page-box .course-admin-table th:nth-child(4),
body.px-admin .groups-page-box .course-admin-table td:nth-child(4){
  width:100px!important;
}
body.px-admin .groups-page-box .course-admin-table th:nth-child(5),
body.px-admin .groups-page-box .course-admin-table td:nth-child(5){
  width:120px!important;
}
body.px-admin .groups-page-box .course-admin-table th:nth-child(6),
body.px-admin .groups-page-box .course-admin-table td:nth-child(6){
  width:145px!important;
}

/* Botones y etiquetas dentro de columnas finales. */
body.px-admin table .button-row{
  justify-content:flex-start!important;
  align-items:flex-start!important;
}
body.px-admin table .btn-admin,
body.px-admin table .btn-light,
body.px-admin table button{
  max-width:100%!important;
}

/* Si una tabla tiene demasiadas columnas para pantallas medianas, que el scroll sea controlado y no permanente. */
@media(max-width:1100px){
  body.px-admin .reservation-table-v2,
  body.px-admin .access-table,
  body.px-admin .course-admin-table{
    min-width:860px!important;
  }
  body.px-admin .course-list-table-wrap,
  body.px-admin .cohort-table-wrap,
  body.px-admin .access-table-wrap,
  body.px-admin .reservation-table-wrap,
  body.px-admin .table-responsive{
    overflow-x:auto!important;
  }
}

/* En pantallas amplias, remueve mínimos heredados que generaban scroll innecesario. */
@media(min-width:1400px){
  body.px-admin .reservation-table-v2,
  body.px-admin .access-table,
  body.px-admin .course-admin-table{
    min-width:0!important;
  }
}


/* ===== FASE5A47B: alcance real de tablas de reservaciones/aprobadas ===== */

/* La tabla real de Reservaciones usa clases reservas-*, no reservation-table-v2. */
body.px-admin .reservas-approved-table,
body.px-admin .reservas-clean-table,
body.px-admin .reservas-final-table,
body.px-admin .reservations-list-balanced{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  table-layout:fixed!important;
}

body.px-admin .reservas-approved-table th,
body.px-admin .reservas-approved-table td,
body.px-admin .reservas-clean-table th,
body.px-admin .reservas-clean-table td,
body.px-admin .reservas-final-table th,
body.px-admin .reservas-final-table td{
  vertical-align:top!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  word-break:normal!important;
  line-height:1.45!important;
}

/* Reservaciones reales: selector, fecha, participante, contacto, curso, horario, estado/acciones. */
body.px-admin .reservations-list-balanced th:nth-child(1),
body.px-admin .reservations-list-balanced td:nth-child(1){
  width:42px!important;
  min-width:42px!important;
  max-width:42px!important;
}
body.px-admin .reservations-list-balanced th:nth-child(2),
body.px-admin .reservations-list-balanced td:nth-child(2){
  width:96px!important;
}
body.px-admin .reservations-list-balanced th:nth-child(3),
body.px-admin .reservations-list-balanced td:nth-child(3){
  width:16%!important;
}
body.px-admin .reservations-list-balanced th:nth-child(4),
body.px-admin .reservations-list-balanced td:nth-child(4){
  width:18%!important;
}
body.px-admin .reservations-list-balanced th:nth-child(5),
body.px-admin .reservations-list-balanced td:nth-child(5){
  width:18%!important;
}
body.px-admin .reservations-list-balanced th:nth-child(6),
body.px-admin .reservations-list-balanced td:nth-child(6){
  width:22%!important;
}
body.px-admin .reservations-list-balanced th:nth-child(7),
body.px-admin .reservations-list-balanced td:nth-child(7){
  width:126px!important;
}

/* Las tablas de inscripción/acceso usan access-table; se rebalancean sin dejar columnas huecas. */
body.px-admin .access-list-balanced{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  table-layout:fixed!important;
}
body.px-admin .access-list-balanced th,
body.px-admin .access-list-balanced td{
  vertical-align:top!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
}

/* En escritorio, scroll visible solo cuando sea inevitable. */
@media(min-width:1101px){
  body.px-admin .reservas-approved-wrap,
  body.px-admin .reservas-table-wrap,
  body.px-admin .reservation-table-wrap,
  body.px-admin .access-table-wrap{
    overflow-x:visible!important;
    max-width:100%!important;
  }
}
@media(max-width:1100px){
  body.px-admin .reservas-approved-table,
  body.px-admin .reservas-clean-table,
  body.px-admin .reservas-final-table,
  body.px-admin .access-list-balanced{
    min-width:860px!important;
  }
}


/* ===== FASE5A48: encabezados de tablas sin mayúsculas forzadas ===== */
body.px-admin .course-admin-table th,
body.px-admin .reservation-table-v2 th,
body.px-admin .reservas-approved-table th,
body.px-admin .reservas-clean-table th,
body.px-admin .reservas-final-table th,
body.px-admin .access-table th,
body.px-admin .users-table th,
body.px-admin .roles-table th,
body.px-admin .data-table th,
body.px-admin table th{
  text-transform:none!important;
  letter-spacing:.01em!important;
  font-size:13.5px!important;
  line-height:1.35!important;
  font-weight:750!important;
  color:#17223a!important;
}

/* En tablas densas, mantener legibilidad sin que el encabezado domine la fila. */
body.px-admin .reservas-approved-table th,
body.px-admin .reservas-clean-table th,
body.px-admin .reservas-final-table th,
body.px-admin .reservation-table-v2 th,
body.px-admin .access-table th{
  font-size:13px!important;
}

/* Evitar que encabezados largos vuelvan a forzar ancho horizontal. */
body.px-admin table th{
  white-space:normal!important;
  overflow-wrap:normal!important;
}


/* ===== FASE5A49: Lista de cursos con Nombre del curso ampliado ===== */

/*
  La columna "Nombre del curso" estaba demasiado estrecha.
  Se le asigna cerca del doble de espacio útil y se compactan las columnas secundarias.
*/
body.px-admin .courses-page-box .courses-list-balanced,
body.px-admin .courses-page-box .course-admin-table.courses-list-balanced{
  table-layout:fixed!important;
  width:100%!important;
  min-width:0!important;
}

/* Lista de cursos: columna 1 = Nombre del curso. */
body.px-admin .courses-page-box .courses-list-balanced th:nth-child(1),
body.px-admin .courses-page-box .courses-list-balanced td:nth-child(1){
  width:34%!important;
  min-width:260px!important;
  max-width:none!important;
}

/* Segunda columna: categoría / área / resumen operativo, compacta pero legible. */
body.px-admin .courses-page-box .courses-list-balanced th:nth-child(2),
body.px-admin .courses-page-box .courses-list-balanced td:nth-child(2){
  width:16%!important;
}

/* Tercera columna: modalidad / duración / datos secundarios. */
body.px-admin .courses-page-box .courses-list-balanced th:nth-child(3),
body.px-admin .courses-page-box .courses-list-balanced td:nth-child(3){
  width:14%!important;
}

/* Cuarta columna: estado / publicación. */
body.px-admin .courses-page-box .courses-list-balanced th:nth-child(4),
body.px-admin .courses-page-box .courses-list-balanced td:nth-child(4){
  width:12%!important;
}

/* Quinta columna: acciones, compacta. */
body.px-admin .courses-page-box .courses-list-balanced th:nth-child(5),
body.px-admin .courses-page-box .courses-list-balanced td:nth-child(5){
  width:150px!important;
}

/* Si existen más columnas por versiones anteriores, que sean compactas y no le roben ancho al nombre. */
body.px-admin .courses-page-box .courses-list-balanced th:nth-child(n+6),
body.px-admin .courses-page-box .courses-list-balanced td:nth-child(n+6){
  width:110px!important;
}

/* Nombre del curso: más aire, mejor lectura y menos cortes violentos. */
body.px-admin .courses-page-box .courses-list-balanced td:nth-child(1) strong,
body.px-admin .courses-page-box .courses-list-balanced td:nth-child(1) a,
body.px-admin .courses-page-box .courses-list-balanced td:nth-child(1){
  font-size:15px!important;
  line-height:1.38!important;
  overflow-wrap:normal!important;
  word-break:normal!important;
}

/* Descripciones secundarias debajo del nombre más suaves. */
body.px-admin .courses-page-box .courses-list-balanced td:nth-child(1) small,
body.px-admin .courses-page-box .courses-list-balanced td:nth-child(1) .muted{
  display:block!important;
  margin-top:5px!important;
  font-size:13px!important;
  line-height:1.35!important;
  color:#667085!important;
}

/* Mantener encabezado cómodo, sin forzar mayúsculas. */
body.px-admin .courses-page-box .courses-list-balanced th{
  font-size:13.5px!important;
  text-transform:none!important;
  letter-spacing:.01em!important;
}

/* En pantallas medianas se permite scroll controlado antes de aplastar el nombre. */
@media(max-width:1200px){
  body.px-admin .courses-page-box .courses-list-balanced{
    min-width:980px!important;
  }
  body.px-admin .course-list-table-wrap{
    overflow-x:auto!important;
    -webkit-overflow-scrolling:touch;
  }
}

@media(min-width:1201px){
  body.px-admin .courses-page-box .courses-list-balanced{
    min-width:0!important;
  }
  body.px-admin .course-list-table-wrap{
    overflow-x:visible!important;
  }
}


/* ===== FASE5A50: estilización controlada de la página Estilos ===== */

/* Contenedor general del módulo Estilos */
body.px-admin #tab-estilos{
  --estilos-card-bg:#ffffff;
  --estilos-soft-bg:#f7fbf8;
  --estilos-border:#dfe7e2;
  --estilos-accent:#0b7a43;
}

/* Cabecera del módulo: más limpia y menos saturada */
body.px-admin #tab-estilos .access-head,
body.px-admin #tab-estilos .course-page-headline,
body.px-admin #tab-estilos .section-head,
body.px-admin #tab-estilos .block-head:first-child{
  padding:22px 24px!important;
  border:1px solid var(--estilos-border)!important;
  border-radius:22px!important;
  background:linear-gradient(135deg,#f7fbf8 0%,#ffffff 76%)!important;
  box-shadow:0 14px 32px rgba(15,23,42,.045)!important;
  margin-bottom:18px!important;
}

/* Títulos y ayudas */
body.px-admin #tab-estilos h1,
body.px-admin #tab-estilos h2{
  color:#102034!important;
  letter-spacing:-.02em!important;
}
body.px-admin #tab-estilos p,
body.px-admin #tab-estilos .section-note,
body.px-admin #tab-estilos .muted{
  color:#58657a!important;
  line-height:1.55!important;
}

/* Tarjetas internas */
body.px-admin #tab-estilos .block-card,
body.px-admin #tab-estilos .course-editor-block,
body.px-admin #tab-estilos .style-panel,
body.px-admin #tab-estilos .preview-card,
body.px-admin #tab-estilos .admin-card,
body.px-admin #tab-estilos fieldset{
  border:1px solid var(--estilos-border)!important;
  border-radius:20px!important;
  background:var(--estilos-card-bg)!important;
  box-shadow:0 10px 26px rgba(15,23,42,.035)!important;
}

/* Separación entre grupos de controles */
body.px-admin #tab-estilos .block-card + .block-card,
body.px-admin #tab-estilos .course-editor-block + .course-editor-block,
body.px-admin #tab-estilos .style-panel + .style-panel,
body.px-admin #tab-estilos fieldset + fieldset{
  margin-top:18px!important;
}

/* Formularios: más aire y alineación */
body.px-admin #tab-estilos form,
body.px-admin #tab-estilos .form-grid,
body.px-admin #tab-estilos .settings-grid,
body.px-admin #tab-estilos .style-grid{
  gap:16px!important;
}

body.px-admin #tab-estilos label{
  color:#17223a!important;
  font-weight:780!important;
  line-height:1.35!important;
}

body.px-admin #tab-estilos input[type="text"],
body.px-admin #tab-estilos input[type="number"],
body.px-admin #tab-estilos input[type="url"],
body.px-admin #tab-estilos input[type="email"],
body.px-admin #tab-estilos input[type="color"],
body.px-admin #tab-estilos select,
body.px-admin #tab-estilos textarea{
  border:1px solid #d7e1dd!important;
  border-radius:13px!important;
  background:#fff!important;
  min-height:42px!important;
  box-shadow:none!important;
}

body.px-admin #tab-estilos input:focus,
body.px-admin #tab-estilos select:focus,
body.px-admin #tab-estilos textarea:focus{
  border-color:#93d4aa!important;
  box-shadow:0 0 0 4px rgba(11,122,67,.09)!important;
  outline:none!important;
}

/* Inputs de color: que no rompan la línea */
body.px-admin #tab-estilos input[type="color"]{
  width:64px!important;
  min-width:64px!important;
  padding:4px!important;
  cursor:pointer;
}

/* Previews más consistentes */
body.px-admin #tab-estilos .preview,
body.px-admin #tab-estilos .style-preview,
body.px-admin #tab-estilos .live-preview,
body.px-admin #tab-estilos .preview-box{
  border:1px solid #e2e8f0!important;
  border-radius:18px!important;
  background:linear-gradient(180deg,#ffffff 0%,#f8faf9 100%)!important;
  padding:18px!important;
  overflow:hidden!important;
}

/* Botones dentro de estilos */
body.px-admin #tab-estilos .button-row{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:10px!important;
  align-items:center!important;
  justify-content:flex-start!important;
}

body.px-admin #tab-estilos .btn-admin,
body.px-admin #tab-estilos button[type="submit"]{
  border-radius:13px!important;
}

/* Tablas dentro de estilos, si existen */
body.px-admin #tab-estilos table{
  width:100%!important;
  table-layout:fixed!important;
}
body.px-admin #tab-estilos th,
body.px-admin #tab-estilos td{
  vertical-align:top!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
}

/* En pantallas pequeñas, mantener controles legibles */
@media(max-width:900px){
  body.px-admin #tab-estilos .access-head,
  body.px-admin #tab-estilos .course-page-headline,
  body.px-admin #tab-estilos .section-head,
  body.px-admin #tab-estilos .block-head:first-child{
    padding:18px!important;
  }
  body.px-admin #tab-estilos .form-grid,
  body.px-admin #tab-estilos .settings-grid,
  body.px-admin #tab-estilos .style-grid{
    grid-template-columns:1fr!important;
  }
}


/* ===== FASE5A52: Portada admin simple con estilos por bloque ===== */
body.px-admin #tab-portada.portada-simple-admin-v52{
  --v52-border:#dfe7e2;
  --v52-soft:#f8fafc;
  --v52-blue:#2563eb;
  --v52-navy:#0f172a;
  --v52-muted:#5f6b7a;
}

body.px-admin #tab-portada .portada-v52-shell{
  display:grid;
  gap:18px;
  margin-bottom:24px;
}

body.px-admin #tab-portada .portada-v52-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  padding:22px 24px;
  border:1px solid var(--v52-border);
  border-radius:22px;
  background:linear-gradient(135deg,#ffffff 0%,#f8fbff 100%);
  box-shadow:0 14px 34px rgba(15,23,42,.045);
}

body.px-admin #tab-portada .portada-v52-head h1{
  margin:5px 0 6px;
  color:#102034;
  font-size:30px;
  line-height:1.05;
  letter-spacing:-.025em;
}

body.px-admin #tab-portada .portada-v52-head p{
  margin:0;
  color:var(--v52-muted);
  font-size:15px;
  line-height:1.55;
  max-width:760px;
}

body.px-admin #tab-portada .portada-v52-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

body.px-admin #tab-portada .portada-v52-blocks{
  display:grid;
  gap:12px;
}

body.px-admin #tab-portada .portada-v52-block{
  display:grid;
  grid-template-columns:44px minmax(220px,340px) minmax(250px,1fr) minmax(250px,360px);
  gap:18px;
  align-items:center;
  padding:16px;
  border:1px solid var(--v52-border);
  border-radius:20px;
  background:#fff;
  box-shadow:0 10px 26px rgba(15,23,42,.032);
}

body.px-admin #tab-portada .portada-v52-block.is-active{
  border-color:#8fb7ff;
  box-shadow:0 0 0 2px rgba(37,99,235,.08),0 12px 28px rgba(15,23,42,.04);
}

body.px-admin #tab-portada .portada-v52-order{
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  border-radius:10px;
  background:#eef4ff;
  color:#1d4ed8;
  font-weight:850;
  font-size:14px;
}

body.px-admin #tab-portada .portada-v52-preview{
  min-height:96px;
  border:1px solid #e4ebf0;
  border-radius:14px;
  background:#f8fafc;
  overflow:hidden;
}

body.px-admin #tab-portada .portada-v52-preview-hero{
  display:flex;
  align-items:center;
  padding:18px;
  min-height:120px;
  color:#fff;
  background:
    linear-gradient(90deg,rgba(15,23,42,.82),rgba(15,23,42,.35)),
    radial-gradient(circle at 75% 20%,rgba(37,99,235,.28),transparent 36%),
    linear-gradient(135deg,#1e293b,#64748b);
}

body.px-admin #tab-portada .portada-v52-preview-hero strong{
  display:block;
  max-width:220px;
  font-size:21px;
  line-height:1.05;
  letter-spacing:-.02em;
}

body.px-admin #tab-portada .portada-v52-preview-hero span{
  display:block;
  margin-top:8px;
  font-size:12px;
  opacity:.88;
}

body.px-admin #tab-portada .portada-v52-preview-hero em{
  display:inline-flex;
  margin-top:12px;
  padding:8px 14px;
  border-radius:10px;
  background:#2563eb;
  color:#fff;
  font-style:normal;
  font-weight:800;
  font-size:12px;
}

body.px-admin #tab-portada .portada-v52-preview-courses{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:14px;
}
body.px-admin #tab-portada .portada-v52-preview-courses span{
  display:block;
  width:78px;
  height:58px;
  border-radius:10px;
  background:linear-gradient(135deg,#dbeafe,#94a3b8);
}

body.px-admin #tab-portada .portada-v52-preview-contact{
  display:grid;
  place-items:center;
  text-align:center;
  padding:14px;
}
body.px-admin #tab-portada .portada-v52-preview-contact strong{
  color:#102034;
  font-size:18px;
}
body.px-admin #tab-portada .portada-v52-preview-contact span{
  color:#667085;
  font-size:13px;
  margin-top:4px;
}

body.px-admin #tab-portada .portada-v52-preview-banner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:18px;
  color:#fff;
  background:linear-gradient(135deg,#2563eb,#1d4ed8);
}
body.px-admin #tab-portada .portada-v52-preview-banner strong{
  font-size:15px;
}
body.px-admin #tab-portada .portada-v52-preview-banner span{
  border:1px solid rgba(255,255,255,.7);
  border-radius:10px;
  padding:7px 10px;
  font-size:12px;
  font-weight:750;
}

body.px-admin #tab-portada .portada-v52-content h2{
  margin:0 0 7px;
  color:#102034;
  font-size:18px;
  line-height:1.2;
  letter-spacing:-.01em;
}
body.px-admin #tab-portada .portada-v52-content p{
  margin:0;
  color:#667085;
  font-size:14px;
  line-height:1.5;
}

body.px-admin #tab-portada .portada-v52-chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:14px;
}
body.px-admin #tab-portada .portada-v52-chips span{
  display:inline-flex;
  align-items:center;
  min-height:32px;
  padding:7px 12px;
  border:1px solid #dbe3ee;
  border-radius:10px;
  background:#fff;
  color:#344054;
  font-weight:750;
  font-size:12.5px;
}

body.px-admin #tab-portada .portada-v52-style{
  display:grid;
  gap:10px;
  padding:14px;
  border:1px solid #e4ebf0;
  border-radius:16px;
  background:#fbfcfe;
}
body.px-admin #tab-portada .portada-v52-style-title{
  color:#102034;
  font-weight:850;
  font-size:13px;
}
body.px-admin #tab-portada .portada-v52-control{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  color:#5f6b7a;
  font-size:12.5px;
  font-weight:650;
}
body.px-admin #tab-portada .portada-v52-control b{
  width:26px;
  height:26px;
  border-radius:8px;
  box-shadow:inset 0 0 0 1px rgba(15,23,42,.08);
}

body.px-admin #tab-portada .portada-v52-size{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  border:1px solid #dbe3ee;
  border-radius:10px;
  overflow:hidden;
}
body.px-admin #tab-portada .portada-v52-size span{
  display:grid;
  place-items:center;
  min-height:30px;
  color:#5f6b7a;
  font-size:12px;
  font-weight:800;
  border-right:1px solid #dbe3ee;
}
body.px-admin #tab-portada .portada-v52-size span:last-child{border-right:0;}
body.px-admin #tab-portada .portada-v52-size .selected{
  background:#eef4ff;
  color:#1d4ed8;
}

body.px-admin #tab-portada .portada-v52-note{
  padding:13px 16px;
  border:1px solid #dbeafe;
  border-radius:16px;
  background:#f8fbff;
  color:#475467;
  font-size:13.5px;
  line-height:1.45;
}

/* Limpieza visual de controles existentes de portada: menos carga, más tarjeta simple. */
body.px-admin #tab-portada .block-card,
body.px-admin #tab-portada .course-editor-block,
body.px-admin #tab-portada fieldset,
body.px-admin #tab-portada .admin-card{
  border:1px solid #e1e8ee!important;
  border-radius:18px!important;
  background:#fff!important;
  box-shadow:0 8px 22px rgba(15,23,42,.025)!important;
}

body.px-admin #tab-portada .block-head,
body.px-admin #tab-portada .section-head,
body.px-admin #tab-portada .course-page-headline{
  border-radius:18px!important;
  background:#fbfcfe!important;
  border:1px solid #e1e8ee!important;
  padding:18px 20px!important;
}

body.px-admin #tab-portada label{
  color:#17223a!important;
  font-weight:760!important;
}

body.px-admin #tab-portada input[type="text"],
body.px-admin #tab-portada input[type="url"],
body.px-admin #tab-portada input[type="number"],
body.px-admin #tab-portada select,
body.px-admin #tab-portada textarea{
  border-radius:12px!important;
  border-color:#d7e1dd!important;
  min-height:40px!important;
  background:#fff!important;
}

body.px-admin #tab-portada .button-row{
  gap:8px!important;
  flex-wrap:wrap!important;
}

@media(max-width:1180px){
  body.px-admin #tab-portada .portada-v52-block{
    grid-template-columns:38px minmax(180px,1fr) minmax(220px,1fr);
  }
  body.px-admin #tab-portada .portada-v52-style{
    grid-column:2/-1;
  }
}
@media(max-width:760px){
  body.px-admin #tab-portada .portada-v52-head{
    flex-direction:column;
    padding:18px;
  }
  body.px-admin #tab-portada .portada-v52-block{
    grid-template-columns:36px 1fr;
  }
  body.px-admin #tab-portada .portada-v52-preview,
  body.px-admin #tab-portada .portada-v52-content,
  body.px-admin #tab-portada .portada-v52-style{
    grid-column:1/-1;
  }
}


/* ===== FASE5A55: retirar guía visual no funcional de Portada ===== */
body.px-admin #tab-portada .portada-v52-shell,
body.px-admin #tab-portada .portada-v52-blocks,
body.px-admin #tab-portada .portada-v52-note{
  display:none!important;
}

/* La página Portada debe mostrar solo controles funcionales reales. */
body.px-admin #tab-portada{
  scroll-margin-top:90px;
}


/* ===== FASE5A56: Portada funcional real organizada por bloques ===== */
body.px-admin #tab-portada.portada-functional-v56{
  --p56-border:#dfe7e2;
  --p56-soft:#f8fafc;
  --p56-soft2:#f3f7f5;
  --p56-blue:#2563eb;
  --p56-green:#0b7a43;
  --p56-navy:#102034;
  --p56-muted:#5b6778;
}

/* Guía superior funcional: navegación y contexto, no maqueta. */
body.px-admin #tab-portada .portada-v56-guide{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  margin-bottom:20px;
  padding:20px 22px;
  border:1px solid var(--p56-border);
  border-radius:22px;
  background:linear-gradient(135deg,#ffffff 0%,#f8fbff 100%);
  box-shadow:0 12px 30px rgba(15,23,42,.04);
}

body.px-admin #tab-portada .portada-v56-guide h1{
  margin:5px 0 6px;
  color:var(--p56-navy);
  font-size:29px;
  line-height:1.1;
  letter-spacing:-.025em;
}

body.px-admin #tab-portada .portada-v56-guide p{
  margin:0;
  max-width:760px;
  color:var(--p56-muted);
  font-size:14.5px;
  line-height:1.55;
}

body.px-admin #tab-portada .portada-v56-guide-map{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  justify-content:flex-end;
  max-width:430px;
}

body.px-admin #tab-portada .portada-v56-guide-map a{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:7px 12px;
  border:1px solid #dbe3ee;
  border-radius:999px;
  background:#fff;
  color:#24415f;
  font-size:12.5px;
  font-weight:800;
  text-decoration:none;
}

body.px-admin #tab-portada .portada-v56-guide-map a:hover{
  border-color:#b8d5ff;
  background:#f8fbff;
  color:#1d4ed8;
}

body.px-admin #tab-portada .portada-v56-anchor{
  display:block;
  height:1px;
  scroll-margin-top:110px;
}

/* Estructura real de la pantalla: tarjetas más limpias, sin duplicar controles. */
body.px-admin #tab-portada .block-card,
body.px-admin #tab-portada .course-editor-block,
body.px-admin #tab-portada .admin-card,
body.px-admin #tab-portada fieldset{
  border:1px solid #e0e8ee!important;
  border-radius:20px!important;
  background:#fff!important;
  box-shadow:0 10px 24px rgba(15,23,42,.03)!important;
}

body.px-admin #tab-portada .block-card + .block-card,
body.px-admin #tab-portada .course-editor-block + .course-editor-block,
body.px-admin #tab-portada .admin-card + .admin-card,
body.px-admin #tab-portada fieldset + fieldset{
  margin-top:16px!important;
}

/* Cabeceras reales: claras, no pesadas. */
body.px-admin #tab-portada .block-head,
body.px-admin #tab-portada .section-head,
body.px-admin #tab-portada .course-page-headline{
  border:1px solid #e0e8ee!important;
  border-radius:18px!important;
  background:#fbfcfe!important;
  padding:17px 20px!important;
  margin-bottom:14px!important;
}

body.px-admin #tab-portada .block-head h2,
body.px-admin #tab-portada .section-head h2,
body.px-admin #tab-portada .course-page-headline h2,
body.px-admin #tab-portada h2{
  color:var(--p56-navy)!important;
  font-size:21px!important;
  line-height:1.22!important;
  letter-spacing:-.015em!important;
  text-transform:none!important;
}

body.px-admin #tab-portada p,
body.px-admin #tab-portada .section-note,
body.px-admin #tab-portada .muted,
body.px-admin #tab-portada small{
  color:var(--p56-muted)!important;
  line-height:1.5!important;
}

/* Formularios reales: más compactos y legibles. */
body.px-admin #tab-portada .form-grid,
body.px-admin #tab-portada .settings-grid,
body.px-admin #tab-portada .style-grid,
body.px-admin #tab-portada form{
  gap:14px!important;
}

body.px-admin #tab-portada label{
  color:#17223a!important;
  font-weight:760!important;
  line-height:1.35!important;
}

body.px-admin #tab-portada input[type="text"],
body.px-admin #tab-portada input[type="url"],
body.px-admin #tab-portada input[type="email"],
body.px-admin #tab-portada input[type="number"],
body.px-admin #tab-portada input[type="color"],
body.px-admin #tab-portada select,
body.px-admin #tab-portada textarea{
  border:1px solid #d7e1dd!important;
  border-radius:12px!important;
  background:#fff!important;
  min-height:40px!important;
  box-shadow:none!important;
}

body.px-admin #tab-portada input:focus,
body.px-admin #tab-portada select:focus,
body.px-admin #tab-portada textarea:focus{
  outline:none!important;
  border-color:#93c5fd!important;
  box-shadow:0 0 0 4px rgba(37,99,235,.08)!important;
}

/* Inputs de color: compactos, sin estirar formularios. */
body.px-admin #tab-portada input[type="color"]{
  width:58px!important;
  min-width:58px!important;
  height:40px!important;
  padding:4px!important;
}

/* Botoneras reales: alineadas y sin saltos raros. */
body.px-admin #tab-portada .button-row{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:9px!important;
  align-items:center!important;
  justify-content:flex-start!important;
}

body.px-admin #tab-portada .btn-admin,
body.px-admin #tab-portada button,
body.px-admin #tab-portada input[type="submit"]{
  border-radius:12px!important;
}

/* Previews e imágenes dentro de portada: mejor contenidas. */
body.px-admin #tab-portada img{
  max-width:100%!important;
  height:auto!important;
}

body.px-admin #tab-portada .preview,
body.px-admin #tab-portada .style-preview,
body.px-admin #tab-portada .live-preview,
body.px-admin #tab-portada .preview-box,
body.px-admin #tab-portada .hero-preview,
body.px-admin #tab-portada .course-preview{
  border:1px solid #e2e8f0!important;
  border-radius:16px!important;
  background:#f8fafc!important;
  overflow:hidden!important;
}

/* Avanzado / respaldo: visualmente secundario, pero funcional y visible. */
body.px-admin #tab-portada #portada-avanzado + .block-card,
body.px-admin #tab-portada #portada-avanzado + .course-editor-block,
body.px-admin #tab-portada #portada-avanzado + fieldset,
body.px-admin #tab-portada [id="portada-avanzado"] ~ .block-card:last-of-type,
body.px-admin #tab-portada [id="portada-avanzado"] ~ fieldset:last-of-type{
  background:#fbfcfe!important;
  border-style:dashed!important;
}

/* Tablas si aparecen dentro de portada. */
body.px-admin #tab-portada table{
  width:100%!important;
  table-layout:fixed!important;
}

body.px-admin #tab-portada th,
body.px-admin #tab-portada td{
  vertical-align:top!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  text-transform:none!important;
}

/* Seguridad: mantener retirado el bloque visual falso de FASE5A52/55 si queda en cache. */
body.px-admin #tab-portada .portada-v52-shell,
body.px-admin #tab-portada .portada-v52-blocks,
body.px-admin #tab-portada .portada-v52-note{
  display:none!important;
}

@media(max-width:1100px){
  body.px-admin #tab-portada .portada-v56-guide{
    flex-direction:column;
  }
  body.px-admin #tab-portada .portada-v56-guide-map{
    justify-content:flex-start;
    max-width:none;
  }
}

@media(max-width:760px){
  body.px-admin #tab-portada .portada-v56-guide{
    padding:17px;
  }
  body.px-admin #tab-portada .portada-v56-guide h1{
    font-size:25px;
  }
  body.px-admin #tab-portada .form-grid,
  body.px-admin #tab-portada .settings-grid,
  body.px-admin #tab-portada .style-grid{
    grid-template-columns:1fr!important;
  }
}


/* ===== FASE5A57: Estilos funcionales y coherencia visual del CMS ===== */
body.px-admin #tab-estilos.estilos-functional-v57{
  --e57-border:#dfe7e2;
  --e57-soft:#f8fafc;
  --e57-soft-blue:#f8fbff;
  --e57-blue:#2563eb;
  --e57-green:#0b7a43;
  --e57-navy:#102034;
  --e57-muted:#5b6778;
}

/* Guía superior funcional: sirve para navegar por controles reales. */
body.px-admin #tab-estilos .estilos-v57-guide{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  margin-bottom:20px;
  padding:20px 22px;
  border:1px solid var(--e57-border);
  border-radius:22px;
  background:linear-gradient(135deg,#ffffff 0%,#f8fbff 100%);
  box-shadow:0 12px 30px rgba(15,23,42,.04);
}

body.px-admin #tab-estilos .estilos-v57-copy h1{
  margin:5px 0 6px;
  color:var(--e57-navy);
  font-size:29px;
  line-height:1.1;
  letter-spacing:-.025em;
}

body.px-admin #tab-estilos .estilos-v57-copy p{
  margin:0;
  color:var(--e57-muted);
  font-size:14.5px;
  line-height:1.55;
  max-width:780px;
}

body.px-admin #tab-estilos .estilos-v57-map{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  justify-content:flex-end;
  max-width:520px;
}

body.px-admin #tab-estilos .estilos-v57-map a{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:7px 12px;
  border:1px solid #dbe3ee;
  border-radius:999px;
  background:#fff;
  color:#24415f;
  font-size:12.5px;
  font-weight:800;
  text-decoration:none;
}

body.px-admin #tab-estilos .estilos-v57-map a:hover{
  border-color:#b8d5ff;
  background:#f8fbff;
  color:#1d4ed8;
}

body.px-admin #tab-estilos .estilos-v57-anchor{
  display:block;
  height:1px;
  scroll-margin-top:110px;
}

/* Tarjetas reales de estilos: orden visual sin romper formularios. */
body.px-admin #tab-estilos .block-card,
body.px-admin #tab-estilos .course-editor-block,
body.px-admin #tab-estilos .admin-card,
body.px-admin #tab-estilos .style-panel,
body.px-admin #tab-estilos .preview-card,
body.px-admin #tab-estilos fieldset{
  border:1px solid #e0e8ee!important;
  border-radius:20px!important;
  background:#fff!important;
  box-shadow:0 10px 24px rgba(15,23,42,.03)!important;
}

body.px-admin #tab-estilos .block-card + .block-card,
body.px-admin #tab-estilos .course-editor-block + .course-editor-block,
body.px-admin #tab-estilos .admin-card + .admin-card,
body.px-admin #tab-estilos .style-panel + .style-panel,
body.px-admin #tab-estilos fieldset + fieldset{
  margin-top:16px!important;
}

/* Cabeceras más claras y menos pesadas. */
body.px-admin #tab-estilos .block-head,
body.px-admin #tab-estilos .section-head,
body.px-admin #tab-estilos .course-page-headline{
  border:1px solid #e0e8ee!important;
  border-radius:18px!important;
  background:#fbfcfe!important;
  padding:17px 20px!important;
  margin-bottom:14px!important;
}

body.px-admin #tab-estilos .block-head h2,
body.px-admin #tab-estilos .section-head h2,
body.px-admin #tab-estilos .course-page-headline h2,
body.px-admin #tab-estilos h2{
  color:var(--e57-navy)!important;
  font-size:21px!important;
  line-height:1.22!important;
  letter-spacing:-.015em!important;
  text-transform:none!important;
}

/* Textos de ayuda y notas */
body.px-admin #tab-estilos p,
body.px-admin #tab-estilos .section-note,
body.px-admin #tab-estilos .muted,
body.px-admin #tab-estilos small{
  color:var(--e57-muted)!important;
  line-height:1.5!important;
}

/* Formularios reales: compactos y consistentes. */
body.px-admin #tab-estilos form,
body.px-admin #tab-estilos .form-grid,
body.px-admin #tab-estilos .settings-grid,
body.px-admin #tab-estilos .style-grid,
body.px-admin #tab-estilos .controls-grid{
  gap:14px!important;
}

body.px-admin #tab-estilos label{
  color:#17223a!important;
  font-weight:760!important;
  line-height:1.35!important;
}

body.px-admin #tab-estilos input[type="text"],
body.px-admin #tab-estilos input[type="url"],
body.px-admin #tab-estilos input[type="email"],
body.px-admin #tab-estilos input[type="number"],
body.px-admin #tab-estilos input[type="color"],
body.px-admin #tab-estilos select,
body.px-admin #tab-estilos textarea{
  border:1px solid #d7e1dd!important;
  border-radius:12px!important;
  background:#fff!important;
  min-height:40px!important;
  box-shadow:none!important;
}

body.px-admin #tab-estilos input:focus,
body.px-admin #tab-estilos select:focus,
body.px-admin #tab-estilos textarea:focus{
  outline:none!important;
  border-color:#93c5fd!important;
  box-shadow:0 0 0 4px rgba(37,99,235,.08)!important;
}

/* Color pickers: compactos para que no deformen filas. */
body.px-admin #tab-estilos input[type="color"]{
  width:58px!important;
  min-width:58px!important;
  height:40px!important;
  padding:4px!important;
  cursor:pointer;
}

/* Sliders y controles numéricos */
body.px-admin #tab-estilos input[type="range"]{
  width:100%!important;
  accent-color:var(--e57-blue);
}

body.px-admin #tab-estilos .button-row{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:9px!important;
  align-items:center!important;
  justify-content:flex-start!important;
}

body.px-admin #tab-estilos .btn-admin,
body.px-admin #tab-estilos button,
body.px-admin #tab-estilos input[type="submit"]{
  border-radius:12px!important;
}

/* Previews dentro de estilos: útiles pero no dominantes. */
body.px-admin #tab-estilos .preview,
body.px-admin #tab-estilos .style-preview,
body.px-admin #tab-estilos .live-preview,
body.px-admin #tab-estilos .preview-box,
body.px-admin #tab-estilos .preview-card{
  border:1px solid #e2e8f0!important;
  border-radius:16px!important;
  background:linear-gradient(180deg,#ffffff 0%,#f8fafc 100%)!important;
  overflow:hidden!important;
  padding:16px!important;
}

/* Separación conceptual por tipo de estilos usando anchors. */
body.px-admin #tab-estilos #estilos-colores,
body.px-admin #tab-estilos #estilos-tipografia,
body.px-admin #tab-estilos #estilos-botones,
body.px-admin #tab-estilos #estilos-tarjetas,
body.px-admin #tab-estilos #estilos-portada,
body.px-admin #tab-estilos #estilos-cursos,
body.px-admin #tab-estilos #estilos-footer,
body.px-admin #tab-estilos #estilos-avanzado{
  display:block;
  height:1px;
  scroll-margin-top:110px;
}

/* Avanzado: menos dominante, pero visible y funcional. */
body.px-admin #tab-estilos #estilos-avanzado ~ .block-card,
body.px-admin #tab-estilos #estilos-avanzado ~ .course-editor-block,
body.px-admin #tab-estilos #estilos-avanzado ~ fieldset{
  background:#fbfcfe!important;
}

/* CSS personalizado o campos técnicos, cuando existan. */
body.px-admin #tab-estilos textarea[name*="css" i],
body.px-admin #tab-estilos textarea[id*="css" i],
body.px-admin #tab-estilos textarea[class*="css" i]{
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace!important;
  font-size:13px!important;
  line-height:1.45!important;
  min-height:160px!important;
  background:#0f172a!important;
  color:#e5e7eb!important;
  border-color:#1f2937!important;
}

/* Tablas si aparecen en estilos */
body.px-admin #tab-estilos table{
  width:100%!important;
  table-layout:fixed!important;
}

body.px-admin #tab-estilos th,
body.px-admin #tab-estilos td{
  vertical-align:top!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  text-transform:none!important;
}

@media(max-width:1100px){
  body.px-admin #tab-estilos .estilos-v57-guide{
    flex-direction:column;
  }
  body.px-admin #tab-estilos .estilos-v57-map{
    justify-content:flex-start;
    max-width:none;
  }
}

@media(max-width:760px){
  body.px-admin #tab-estilos .estilos-v57-guide{
    padding:17px;
  }
  body.px-admin #tab-estilos .estilos-v57-copy h1{
    font-size:25px;
  }
  body.px-admin #tab-estilos .form-grid,
  body.px-admin #tab-estilos .settings-grid,
  body.px-admin #tab-estilos .style-grid,
  body.px-admin #tab-estilos .controls-grid{
    grid-template-columns:1fr!important;
  }
}


/* ===== FASE5A58: seguridad visible en formulario de reservas ===== */
.pym-reserve-css-ok .pym-hidden-field,
.pym-hidden-field{
  position:absolute!important;
  left:-9999px!important;
  width:1px!important;
  height:1px!important;
  opacity:0!important;
  pointer-events:none!important;
}

.pym-reserve-css-ok .pym-reserve-security-note{
  margin:0 0 16px;
  padding:12px 14px;
  border:1px solid #dbeafe;
  border-radius:14px;
  background:#f8fbff;
  color:#475467;
  font-size:13px;
  line-height:1.45;
}


/* ===== FASE5A59: previews de portada menos opacos en admin ===== */
body.px-admin #tab-portada .hero-preview,
body.px-admin #tab-portada .style-preview,
body.px-admin #tab-portada .live-preview,
body.px-admin #tab-portada .preview-box{
  filter:none!important;
}

body.px-admin #tab-portada .hero-preview::before,
body.px-admin #tab-portada .hero-preview::after,
body.px-admin #tab-portada .style-preview::before,
body.px-admin #tab-portada .style-preview::after,
body.px-admin #tab-portada .live-preview::before,
body.px-admin #tab-portada .live-preview::after{
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  opacity:.18!important;
}


/* ===== FASE5A60: Inscripciones reales online y asistidas ===== */
body.px-admin #tab-inscripciones.enrollments-admin-v60 .enrollment-filter-bar{
  display:grid;
  grid-template-columns:minmax(220px,1fr) minmax(180px,240px) minmax(160px,210px) minmax(160px,210px) auto auto;
  gap:10px;
  align-items:center;
  margin:18px 0;
}
body.px-admin #tab-inscripciones .enrollment-create-box{
  margin:18px 0;
  border:1px solid #dfe7e2;
  border-radius:18px;
  background:#fbfcfe;
  padding:0;
  overflow:hidden;
}
body.px-admin #tab-inscripciones .enrollment-create-box summary{
  cursor:pointer;
  padding:16px 18px;
  font-weight:900;
  color:#102034;
  background:#f8fbff;
  border-bottom:1px solid #e6edf2;
}
body.px-admin #tab-inscripciones .enrollment-create-form{
  padding:18px;
}
body.px-admin #tab-inscripciones .enrollment-create-form .full{
  grid-column:1 / -1;
}
body.px-admin #tab-inscripciones .enrollments-table td{
  vertical-align:top;
}
body.px-admin #tab-inscripciones .enrollments-table small{
  display:block;
  margin-top:4px;
  color:#667085;
}
body.px-admin #tab-inscripciones .enrollment-status-form{
  display:grid;
  gap:7px;
  min-width:170px;
}
body.px-admin #tab-inscripciones .enrollment-status-form select,
body.px-admin #tab-inscripciones .enrollment-status-form input{
  min-height:34px!important;
  border-radius:10px!important;
  font-size:12px!important;
}
body.px-admin .btn-mini{
  min-height:32px!important;
  padding:7px 10px!important;
  font-size:12px!important;
}
body.px-admin #tab-reservas .res-action-cell form{
  margin:0;
}
@media(max-width:1100px){
  body.px-admin #tab-inscripciones.enrollments-admin-v60 .enrollment-filter-bar{
    grid-template-columns:1fr 1fr;
  }
}
@media(max-width:760px){
  body.px-admin #tab-inscripciones.enrollments-admin-v60 .enrollment-filter-bar{
    grid-template-columns:1fr;
  }
}


/* ===== FASE5A61: menú académico ordenado e inscripciones preparadas ===== */
body.px-admin #tab-inscripciones .inscriptions-v61-guide{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  margin:0 0 18px;
  padding:18px 20px;
  border:1px solid #dbeafe;
  border-radius:20px;
  background:linear-gradient(135deg,#ffffff 0%,#f8fbff 100%);
  box-shadow:0 10px 24px rgba(15,23,42,.035);
}
body.px-admin #tab-inscripciones .inscriptions-v61-guide h2{
  margin:5px 0 6px;
  color:#102034;
  font-size:23px;
  line-height:1.15;
}
body.px-admin #tab-inscripciones .inscriptions-v61-guide p{
  margin:0;
  color:#5b6778;
  max-width:760px;
  line-height:1.5;
}
body.px-admin #tab-inscripciones .inscriptions-v61-flow{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:8px;
  max-width:560px;
}
body.px-admin #tab-inscripciones .inscriptions-v61-flow span{
  display:inline-flex;
  min-height:32px;
  align-items:center;
  padding:7px 11px;
  border:1px solid #dbe3ee;
  border-radius:999px;
  background:#fff;
  color:#24415f;
  font-size:12px;
  font-weight:850;
}
body.px-admin #tab-inscripciones .enrollment-online-pending{
  margin:18px 0 0;
  padding:13px 15px;
  border:1px solid #e4e7ec;
  border-radius:16px;
  background:#fffdf7;
  color:#475467;
  line-height:1.45;
}
body.px-admin #tab-inscripciones .enrollment-online-pending strong{
  color:#102034;
}
@media(max-width:960px){
  body.px-admin #tab-inscripciones .inscriptions-v61-guide{
    flex-direction:column;
  }
  body.px-admin #tab-inscripciones .inscriptions-v61-flow{
    justify-content:flex-start;
  }
}


/* ===== FASE5A62: UX de Inscripciones según mockup aprobado ===== */
body.px-admin #tab-inscripciones.enrollments-admin-v62{
  --ins-blue:#0b63f6;
  --ins-blue-soft:#eef5ff;
  --ins-navy:#0f1b3d;
  --ins-muted:#5d6b82;
  --ins-border:#dde7f0;
  --ins-bg:#f6f8fb;
  --ins-green:#0f8a3c;
  --ins-orange:#d97706;
  --ins-red:#c53030;
  --ins-purple:#6d28d9;
  background:var(--ins-bg);
}
body.px-admin #tab-inscripciones .ins-v62-page{
  display:grid;
  gap:14px;
}
body.px-admin #tab-inscripciones .ins-v62-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  padding:4px 2px 8px;
}
body.px-admin #tab-inscripciones .ins-v62-head .page-title{
  margin:0 0 4px;
  font-size:30px;
  letter-spacing:-.03em;
  color:var(--ins-navy);
}
body.px-admin #tab-inscripciones .ins-v62-head .page-subtitle{
  margin:0;
  color:var(--ins-muted);
  font-size:14.5px;
}
body.px-admin #tab-inscripciones .ins-v62-top-actions{
  display:flex;
  gap:9px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
body.px-admin #tab-inscripciones .ins-v62-scenarios-card,
body.px-admin #tab-inscripciones .ins-v62-flow,
body.px-admin #tab-inscripciones .ins-v62-form-card,
body.px-admin #tab-inscripciones .ins-v62-summary-card,
body.px-admin #tab-inscripciones .ins-v62-filters,
body.px-admin #tab-inscripciones .ins-v62-table-card,
body.px-admin #tab-inscripciones .ins-v62-quick-card,
body.px-admin #tab-inscripciones .ins-v62-alert-card{
  border:1px solid var(--ins-border);
  border-radius:18px;
  background:#fff;
  box-shadow:0 10px 26px rgba(15,27,61,.035);
}
body.px-admin #tab-inscripciones .ins-v62-scenarios-card{
  padding:16px 18px;
}
body.px-admin #tab-inscripciones .ins-v62-scenarios-card h2,
body.px-admin #tab-inscripciones .ins-v62-card-title h2,
body.px-admin #tab-inscripciones .ins-v62-summary-card h2,
body.px-admin #tab-inscripciones .ins-v62-table-head h2,
body.px-admin #tab-inscripciones .ins-v62-quick-card h2,
body.px-admin #tab-inscripciones .ins-v62-alert-card h2{
  margin:0 0 14px;
  color:var(--ins-navy);
  font-size:17px;
  letter-spacing:-.01em;
}
body.px-admin #tab-inscripciones .ins-v62-scenarios{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
}
body.px-admin #tab-inscripciones .ins-v62-scenario{
  display:grid;
  grid-template-columns:62px 1fr;
  gap:12px;
  min-height:142px;
  padding:15px;
  border:1px solid #e4ebf3;
  border-radius:15px;
  background:#fff;
}
body.px-admin #tab-inscripciones .ins-v62-icon{
  width:50px;height:50px;border-radius:16px;
  display:grid;place-items:center;
  font-size:24px;font-weight:900;
}
body.px-admin #tab-inscripciones .ins-v62-icon.blue{background:#eef5ff;color:#0b63f6;}
body.px-admin #tab-inscripciones .ins-v62-icon.purple{background:#f3eefe;color:#6d28d9;}
body.px-admin #tab-inscripciones .ins-v62-icon.orange{background:#fff4e5;color:#f97316;}
body.px-admin #tab-inscripciones .ins-v62-icon.teal{background:#eefdf9;color:#0f766e;}
body.px-admin #tab-inscripciones .ins-v62-scenario-copy h3{
  margin:0 0 6px;color:var(--ins-navy);font-size:16px;line-height:1.15;
}
body.px-admin #tab-inscripciones .ins-v62-scenario-copy p{
  margin:0;color:var(--ins-muted);font-size:13px;line-height:1.45;
}
body.px-admin #tab-inscripciones .ins-v62-scenario-foot{
  grid-column:1/-1;
  display:flex;align-items:center;gap:8px;justify-content:space-between;
}
body.px-admin #tab-inscripciones .ins-v62-badge,
body.px-admin #tab-inscripciones .ins-v62-pill,
body.px-admin #tab-inscripciones mark{
  display:inline-flex;align-items:center;
  min-height:24px;padding:4px 9px;
  border-radius:999px;font-size:12px;font-weight:850;
  background:#eef2f7;color:#344054;text-decoration:none;
}
body.px-admin #tab-inscripciones .ins-v62-badge.ok{background:#eaf8ee;color:#147a34;}
body.px-admin #tab-inscripciones .ins-v62-badge.warn{background:#fff4e5;color:#b45309;}
body.px-admin #tab-inscripciones .ins-v62-count{
  margin-left:auto;margin-right:4px;
  min-width:30px;text-align:center;
  padding:5px 8px;border-radius:999px;
  background:#f1f5f9;color:#24415f;font-weight:900;font-size:12px;
}
body.px-admin #tab-inscripciones .ins-v62-flow{
  display:flex;align-items:center;gap:10px;
  padding:13px 16px;
  overflow:auto;
}
body.px-admin #tab-inscripciones .ins-v62-flow>strong{
  white-space:nowrap;margin-right:8px;color:var(--ins-navy);
}
body.px-admin #tab-inscripciones .ins-v62-flow i{font-style:normal;color:#667085;}
body.px-admin #tab-inscripciones .ins-v62-step{
  display:flex;align-items:center;gap:9px;
  min-width:158px;
  padding:9px 11px;
  border:1px solid #e4ebf3;border-radius:14px;background:#fff;
}
body.px-admin #tab-inscripciones .ins-v62-step b{
  width:28px;height:28px;border-radius:999px;
  display:grid;place-items:center;background:#eef5ff;color:#0b63f6;
}
body.px-admin #tab-inscripciones .ins-v62-step span{
  display:grid;gap:1px;color:var(--ins-navy);font-weight:850;font-size:13px;
}
body.px-admin #tab-inscripciones .ins-v62-step small{
  color:var(--ins-muted);font-weight:650;font-size:11px;
}
body.px-admin #tab-inscripciones .ins-v62-main-grid{
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(340px,.9fr);
  gap:14px;
}
body.px-admin #tab-inscripciones .ins-v62-form-card,
body.px-admin #tab-inscripciones .ins-v62-summary-card{
  padding:16px 18px;
}
body.px-admin #tab-inscripciones .ins-v62-details{
  border:0;
}
body.px-admin #tab-inscripciones .ins-v62-details summary{
  cursor:pointer;
  margin-bottom:14px;
  color:#24415f;
  font-weight:900;
}
body.px-admin #tab-inscripciones .ins-v62-form-steps{
  display:grid;grid-template-columns:repeat(4,1fr);
  gap:10px;margin:0 0 14px;
}
body.px-admin #tab-inscripciones .ins-v62-form-steps span{
  display:flex;align-items:center;gap:8px;
  padding-bottom:10px;border-bottom:2px solid #e4ebf3;
  color:#5d6b82;font-weight:850;font-size:13px;
}
body.px-admin #tab-inscripciones .ins-v62-form-steps span.active{
  color:#0b63f6;border-bottom-color:#0b63f6;
}
body.px-admin #tab-inscripciones .ins-v62-form-steps b{
  width:24px;height:24px;border-radius:999px;display:grid;place-items:center;background:#eef5ff;color:#0b63f6;
}
body.px-admin #tab-inscripciones .ins-v62-form-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}
body.px-admin #tab-inscripciones .ins-v62-form-grid label{
  display:grid;gap:6px;
  color:#344054;font-size:12.5px;font-weight:850;
}
body.px-admin #tab-inscripciones .ins-v62-form-grid label em{
  color:#d92d20;font-style:normal;
}
body.px-admin #tab-inscripciones .ins-v62-form-grid .span-2{grid-column:span 2;}
body.px-admin #tab-inscripciones .ins-v62-form-grid .span-4{grid-column:1/-1;}
body.px-admin #tab-inscripciones .ins-v62-form-grid input,
body.px-admin #tab-inscripciones .ins-v62-form-grid select,
body.px-admin #tab-inscripciones .ins-v62-form-grid textarea,
body.px-admin #tab-inscripciones .ins-v62-filters input,
body.px-admin #tab-inscripciones .ins-v62-filters select{
  min-height:39px!important;
  border:1px solid #d7e1ed!important;
  border-radius:11px!important;
  background:#fff!important;
  padding:8px 10px!important;
}
body.px-admin #tab-inscripciones .ins-v62-form-actions{
  display:flex;justify-content:flex-end;gap:10px;margin-top:14px;
}
body.px-admin #tab-inscripciones .ins-v62-summary-list{
  border:1px solid #e4ebf3;border-radius:15px;overflow:hidden;
}
body.px-admin #tab-inscripciones .ins-v62-summary-row{
  display:grid;
  grid-template-columns:34px 170px 1fr;
  gap:10px;
  align-items:start;
  padding:12px 14px;
  border-bottom:1px solid #e4ebf3;
}
body.px-admin #tab-inscripciones .ins-v62-summary-row:last-child{border-bottom:0;}
body.px-admin #tab-inscripciones .ins-v62-summary-row>span{
  color:#0b63f6;font-weight:900;font-size:20px;line-height:1;
}
body.px-admin #tab-inscripciones .ins-v62-summary-row strong{
  color:#102034;font-size:13px;
}
body.px-admin #tab-inscripciones .ins-v62-summary-row p{
  margin:0;color:#344054;font-weight:750;font-size:13px;
}
body.px-admin #tab-inscripciones .ins-v62-summary-row small{
  display:block;margin-top:3px;color:#667085;font-weight:600;
}
body.px-admin #tab-inscripciones mark.green{background:#eaf8ee;color:#147a34;}
body.px-admin #tab-inscripciones mark.blue{background:#eef5ff;color:#0b63f6;}
body.px-admin #tab-inscripciones mark.orange{background:#fff4e5;color:#b45309;}
body.px-admin #tab-inscripciones .ins-v62-filters{
  display:grid;
  grid-template-columns:minmax(250px,1fr) minmax(160px,220px) minmax(150px,190px) minmax(150px,190px) auto auto;
  gap:10px;align-items:center;
  padding:13px;
}
body.px-admin #tab-inscripciones .ins-v62-table-card{
  padding:16px 18px;
}
body.px-admin #tab-inscripciones .ins-v62-table-head{
  display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:10px;
}
body.px-admin #tab-inscripciones .ins-v62-table td,
body.px-admin #tab-inscripciones .ins-v62-table th{
  vertical-align:top!important;
  white-space:normal!important;
}
body.px-admin #tab-inscripciones .ins-v62-table small{
  display:block;margin-top:4px;color:#667085;
}
body.px-admin #tab-inscripciones .ins-v62-pill.source{background:#eef5ff;color:#0b63f6;}
body.px-admin #tab-inscripciones .ins-v62-pill.state-inscrito,
body.px-admin #tab-inscripciones .ins-v62-pill.state-preinscrito,
body.px-admin #tab-inscripciones .ins-v62-pill.pay-pagado{
  background:#eaf8ee;color:#147a34;
}
body.px-admin #tab-inscripciones .ins-v62-pill.state-solicitud,
body.px-admin #tab-inscripciones .ins-v62-pill.state-pendiente_documentos,
body.px-admin #tab-inscripciones .ins-v62-pill.pay-pendiente,
body.px-admin #tab-inscripciones .ins-v62-pill.pay-parcial{
  background:#fff4e5;color:#b45309;
}
body.px-admin #tab-inscripciones .ins-v62-pill.state-cancelado{
  background:#fee4e2;color:#b42318;
}
body.px-admin #tab-inscripciones .ins-v62-bottom-grid{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;
}
body.px-admin #tab-inscripciones .ins-v62-quick-card,
body.px-admin #tab-inscripciones .ins-v62-alert-card{padding:16px 18px;}
body.px-admin #tab-inscripciones .ins-v62-actions{
  display:grid;grid-template-columns:repeat(4,1fr);gap:10px;
}
body.px-admin #tab-inscripciones .ins-v62-actions a{
  min-height:102px;
  display:grid;gap:5px;align-content:center;justify-items:center;text-align:center;
  border:1px solid #e4ebf3;border-radius:15px;background:#fff;text-decoration:none;color:#24415f;
}
body.px-admin #tab-inscripciones .ins-v62-actions a span{
  font-size:26px;color:#0b63f6;font-weight:900;
}
body.px-admin #tab-inscripciones .ins-v62-actions a strong{color:#102034;}
body.px-admin #tab-inscripciones .ins-v62-actions a small{color:#667085;}
body.px-admin #tab-inscripciones .ins-v62-alert-card ul{
  list-style:none;margin:0;padding:0;display:grid;gap:8px;
}
body.px-admin #tab-inscripciones .ins-v62-alert-card li{
  display:grid;grid-template-columns:32px 1fr;gap:9px;
  padding:9px 10px;border:1px solid #e4ebf3;border-radius:12px;
}
body.px-admin #tab-inscripciones .ins-v62-alert-card li span{font-size:18px;}
body.px-admin #tab-inscripciones .ins-v62-alert-card li strong{color:#102034;font-size:13px;}
body.px-admin #tab-inscripciones .ins-v62-alert-card li small{grid-column:2;color:#667085;}
@media(max-width:1250px){
  body.px-admin #tab-inscripciones .ins-v62-scenarios{grid-template-columns:repeat(2,1fr);}
  body.px-admin #tab-inscripciones .ins-v62-main-grid{grid-template-columns:1fr;}
  body.px-admin #tab-inscripciones .ins-v62-actions{grid-template-columns:repeat(2,1fr);}
}
@media(max-width:840px){
  body.px-admin #tab-inscripciones .ins-v62-head{flex-direction:column;}
  body.px-admin #tab-inscripciones .ins-v62-scenarios{grid-template-columns:1fr;}
  body.px-admin #tab-inscripciones .ins-v62-form-grid{grid-template-columns:1fr;}
  body.px-admin #tab-inscripciones .ins-v62-form-grid .span-2,
  body.px-admin #tab-inscripciones .ins-v62-form-grid .span-4{grid-column:auto;}
  body.px-admin #tab-inscripciones .ins-v62-form-steps{grid-template-columns:1fr 1fr;}
  body.px-admin #tab-inscripciones .ins-v62-filters{grid-template-columns:1fr;}
  body.px-admin #tab-inscripciones .ins-v62-bottom-grid{grid-template-columns:1fr;}
  body.px-admin #tab-inscripciones .ins-v62-summary-row{grid-template-columns:30px 1fr;}
  body.px-admin #tab-inscripciones .ins-v62-summary-row p{grid-column:2;}
}


/* ===== FASE5A63: Inscripciones en vista amplia sin menú lateral ===== */
body.px-inscripciones-fullscreen .admin-wrap{
  grid-template-columns:1fr!important;
  max-width:none!important;
  width:100%!important;
  padding:26px 28px!important;
}
body.px-inscripciones-fullscreen .side-card{
  display:none!important;
}
body.px-inscripciones-fullscreen main{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
}
body.px-inscripciones-fullscreen #tab-inscripciones,
body.px-inscripciones-fullscreen #tab-inscripciones .ins-v62-page{
  width:100%!important;
  max-width:none!important;
}
body.px-inscripciones-fullscreen #tab-inscripciones .ins-v62-head{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:start!important;
}
body.px-inscripciones-fullscreen #tab-inscripciones .ins-v62-top-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:10px!important;
  flex-wrap:wrap!important;
}
body.px-inscripciones-fullscreen #tab-inscripciones .inscripciones-back-cms{
  min-width:132px!important;
  white-space:nowrap!important;
}
body.px-inscripciones-fullscreen #tab-inscripciones .ins-v62-scenarios{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
}
body.px-inscripciones-fullscreen #tab-inscripciones .ins-v62-main-grid{
  grid-template-columns:minmax(0,1.08fr) minmax(360px,.92fr)!important;
}
body.px-inscripciones-fullscreen #tab-inscripciones .ins-v62-table-card{
  overflow:hidden!important;
}
body.px-inscripciones-fullscreen #tab-inscripciones .course-list-table-wrap{
  overflow:auto!important;
}
body.px-inscripciones-fullscreen #tab-inscripciones .ins-v62-table{
  min-width:1280px!important;
}
body.px-inscripciones-fullscreen #tab-inscripciones .ins-v62-table th,
body.px-inscripciones-fullscreen #tab-inscripciones .ins-v62-table td{
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  overflow-wrap:anywhere!important;
}
body.px-inscripciones-fullscreen #tab-inscripciones .ins-v62-bottom-grid{
  grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
}
@media(max-width:1320px){
  body.px-inscripciones-fullscreen #tab-inscripciones .ins-v62-scenarios{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  body.px-inscripciones-fullscreen #tab-inscripciones .ins-v62-main-grid{
    grid-template-columns:1fr!important;
  }
}
@media(max-width:760px){
  body.px-inscripciones-fullscreen .admin-wrap{
    padding:16px 10px!important;
  }
  body.px-inscripciones-fullscreen #tab-inscripciones .ins-v62-head{
    grid-template-columns:1fr!important;
  }
  body.px-inscripciones-fullscreen #tab-inscripciones .ins-v62-top-actions{
    justify-content:flex-start!important;
  }
  body.px-inscripciones-fullscreen #tab-inscripciones .ins-v62-scenarios{
    grid-template-columns:1fr!important;
  }
  body.px-inscripciones-fullscreen #tab-inscripciones .ins-v62-bottom-grid{
    grid-template-columns:1fr!important;
  }
}


/* ===== FASE5A64: funciones visuales de botones de Inscripciones ===== */
body.px-admin #tab-inscripciones .ins-v64-scenario-note{
  margin:0 0 14px;
  padding:11px 13px;
  border:1px solid #dbeafe;
  border-radius:13px;
  background:#f8fbff;
  color:#475467;
  font-size:13px;
  line-height:1.45;
}
body.px-admin #tab-inscripciones .ins-v64-scenario-note strong{
  color:#0b63f6;
}
body.px-admin #tab-inscripciones .ins-v64-summary-actions{
  display:grid;
  gap:9px;
  margin-top:14px;
}
body.px-admin #tab-inscripciones .ins-v64-summary-actions form{
  margin:0;
}
body.px-admin #tab-inscripciones .ins-v64-summary-actions .btn-admin{
  width:100%;
  justify-content:center;
}
body.px-admin #tab-inscripciones .ins-v64-approve{
  background:#0f8a3c!important;
  border-color:#0f8a3c!important;
}
body.px-admin #tab-inscripciones .ins-v64-payment-form{
  display:grid;
  grid-template-columns:minmax(120px,1fr) auto;
  gap:8px;
}
body.px-admin #tab-inscripciones .ins-v64-payment-form input{
  min-height:40px!important;
  border:1px solid #d7e1ed!important;
  border-radius:11px!important;
  padding:8px 10px!important;
}
body.px-admin #tab-inscripciones .ins-v62-scenario .btn-admin,
body.px-admin #tab-inscripciones .ins-v62-actions a,
body.px-admin #tab-inscripciones .ins-v62-summary-card .btn-admin{
  cursor:pointer;
}
body.px-admin #tab-inscripciones .ins-v62-scenario:hover,
body.px-admin #tab-inscripciones .ins-v62-actions a:hover{
  transform:translateY(-1px);
  box-shadow:0 12px 24px rgba(15,27,61,.06);
}


/* ===== FASE5A65: verificación navegación / herramientas rápidas de escenarios ===== */
body.px-admin #tab-inscripciones .ins-v65-scenario-tools{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:12px;
}
body.px-admin #tab-inscripciones .ins-v65-scenario-tools a{
  display:inline-flex;
  align-items:center;
  min-height:32px;
  padding:7px 11px;
  border:1px solid #dbe3ee;
  border-radius:999px;
  background:#f8fbff;
  color:#24415f;
  font-size:12px;
  font-weight:850;
  text-decoration:none;
}
body.px-admin #tab-inscripciones .ins-v65-scenario-tools a:hover{
  border-color:#b8d5ff;
  color:#0b63f6;
}


/* ===== FASE5A66: corrección funcional de Inscripciones ===== */
body.px-admin #tab-inscripciones .ins-v64-payment-form{
  grid-template-columns:1fr!important;
}
body.px-admin #tab-inscripciones .ins-v64-payment-form input[type="text"]{
  min-height:40px!important;
  border:1px solid #d7e1ed!important;
  border-radius:11px!important;
  padding:8px 10px!important;
}
body.px-admin #tab-inscripciones .ins-v62-form-grid input[type="datetime-local"]{
  min-height:39px!important;
  border:1px solid #d7e1ed!important;
  border-radius:11px!important;
  background:#fff!important;
  padding:8px 10px!important;
}
body.px-admin #tab-inscripciones .ins-v62-filters{
  grid-template-columns:minmax(220px,1fr) minmax(150px,200px) minmax(145px,180px) minmax(145px,180px) minmax(145px,180px) minmax(145px,180px) auto auto!important;
}
@media(max-width:1180px){
  body.px-admin #tab-inscripciones .ins-v62-filters{
    grid-template-columns:1fr 1fr!important;
  }
}
@media(max-width:760px){
  body.px-admin #tab-inscripciones .ins-v62-filters{
    grid-template-columns:1fr!important;
  }
}


/* ===== FASE5A67: menú lateral interno de Inscripciones ===== */
body.px-admin #tab-inscripciones .ins-v67-shell{
  display:grid;
  grid-template-columns:280px minmax(0,1fr);
  gap:16px;
  align-items:start;
}
body.px-admin #tab-inscripciones .ins-v67-side-menu{
  position:sticky;
  top:18px;
  border:1px solid var(--ins-border, #dde7f0);
  border-radius:18px;
  background:#fff;
  box-shadow:0 10px 26px rgba(15,27,61,.035);
  padding:14px;
}
body.px-admin #tab-inscripciones .ins-v67-side-title{
  display:grid;
  gap:3px;
  padding:6px 6px 12px;
  border-bottom:1px solid #e5edf5;
  margin-bottom:10px;
}
body.px-admin #tab-inscripciones .ins-v67-side-title span{
  color:#0b63f6;
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.06em;
}
body.px-admin #tab-inscripciones .ins-v67-side-title strong{
  color:#0f1b3d;
  font-size:17px;
  letter-spacing:-.02em;
}
body.px-admin #tab-inscripciones .ins-v67-nav{
  display:grid;
  gap:7px;
}
body.px-admin #tab-inscripciones .ins-v67-nav a{
  display:grid;
  grid-template-columns:34px minmax(0,1fr);
  gap:10px;
  align-items:center;
  min-height:58px;
  padding:9px 10px;
  border:1px solid transparent;
  border-radius:14px;
  color:#24415f;
  text-decoration:none;
  background:#fff;
}
body.px-admin #tab-inscripciones .ins-v67-nav a span{
  width:34px;
  height:34px;
  border-radius:12px;
  display:grid;
  place-items:center;
  background:#f2f6fb;
  color:#0b63f6;
  font-weight:950;
}
body.px-admin #tab-inscripciones .ins-v67-nav a strong{
  color:#102034;
  font-size:13.5px;
  font-weight:900;
  line-height:1.2;
}
body.px-admin #tab-inscripciones .ins-v67-nav a small{
  grid-column:2;
  color:#667085;
  font-size:11.5px;
  font-weight:650;
  margin-top:-3px;
}
body.px-admin #tab-inscripciones .ins-v67-nav a:hover{
  border-color:#cfe2ff;
  background:#f8fbff;
  transform:translateY(-1px);
}
body.px-admin #tab-inscripciones .ins-v67-nav a.active{
  border-color:#b8d5ff;
  background:#eef5ff;
  box-shadow:inset 3px 0 0 #0b63f6;
}
body.px-admin #tab-inscripciones .ins-v67-nav a.active span{
  background:#0b63f6;
  color:#fff;
}
body.px-admin #tab-inscripciones .ins-v67-divider{
  height:1px;
  background:#e5edf5;
  margin:6px 4px;
}
body.px-admin #tab-inscripciones .ins-v67-content{
  min-width:0;
  display:grid;
  gap:14px;
}
body.px-admin #tab-inscripciones .ins-v62-scenarios-card{
  margin:0;
}
@media(max-width:1180px){
  body.px-admin #tab-inscripciones .ins-v67-shell{
    grid-template-columns:1fr;
  }
  body.px-admin #tab-inscripciones .ins-v67-side-menu{
    position:relative;
    top:auto;
  }
  body.px-admin #tab-inscripciones .ins-v67-nav{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media(max-width:760px){
  body.px-admin #tab-inscripciones .ins-v67-nav{
    grid-template-columns:1fr;
  }
}


/* ===== FASE5A68: menú lateral de Inscripciones funcional ===== */
body.px-admin #tab-inscripciones .ins-v67-nav button.ins-v68-nav-action{
  appearance:none;
  -webkit-appearance:none;
  width:100%;
  border:1px solid transparent;
  cursor:pointer;
  font-family:inherit;
  display:grid;
  grid-template-columns:34px minmax(0,1fr);
  gap:10px;
  align-items:center;
  min-height:58px;
  padding:9px 10px;
  border-radius:14px;
  color:#24415f;
  text-decoration:none;
  background:#fff;
  text-align:left;
}
body.px-admin #tab-inscripciones .ins-v67-nav button.ins-v68-nav-action span{
  width:34px;
  height:34px;
  border-radius:12px;
  display:grid;
  place-items:center;
  background:#f2f6fb;
  color:#0b63f6;
  font-weight:950;
}
body.px-admin #tab-inscripciones .ins-v67-nav button.ins-v68-nav-action strong{
  color:#102034;
  font-size:13.5px;
  font-weight:900;
  line-height:1.2;
}
body.px-admin #tab-inscripciones .ins-v67-nav button.ins-v68-nav-action small{
  grid-column:2;
  color:#667085;
  font-size:11.5px;
  font-weight:650;
  margin-top:-3px;
}
body.px-admin #tab-inscripciones .ins-v67-nav button.ins-v68-nav-action:hover{
  border-color:#cfe2ff;
  background:#f8fbff;
  transform:translateY(-1px);
}
body.px-admin #tab-inscripciones .ins-v67-nav button.ins-v68-nav-action.active{
  border-color:#b8d5ff;
  background:#eef5ff;
  box-shadow:inset 3px 0 0 #0b63f6;
}
body.px-admin #tab-inscripciones .ins-v67-nav button.ins-v68-nav-action.active span{
  background:#0b63f6;
  color:#fff;
}
body.px-admin #tab-inscripciones .ins-v68-active-context{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 14px;
  border:1px solid #cfe2ff;
  border-radius:16px;
  background:#f8fbff;
  color:#24415f;
  box-shadow:0 8px 20px rgba(15,27,61,.025);
}
body.px-admin #tab-inscripciones .ins-v68-active-context strong{
  color:#0f1b3d;
  font-size:14px;
}
body.px-admin #tab-inscripciones .ins-v68-active-context span{
  color:#667085;
  font-size:12.5px;
  font-weight:650;
}
@media(max-width:760px){
  body.px-admin #tab-inscripciones .ins-v68-active-context{
    display:grid;
  }
}


/* ===== FASE5A69: proceso inscripción en línea ===== */
body.px-admin #tab-inscripciones .ins-v68-active-context .btn-admin{
  white-space:nowrap;
}


/* ===== FASE5A74: Inscripciones simples y confiables ===== */
body.px-admin #tab-inscripciones .page-subtitle{
  max-width:760px;
}
body.px-admin #tab-inscripciones .ins-v74-simple-nav .ins-v68-nav-action{
  min-height:62px!important;
}
body.px-admin #tab-inscripciones .ins-v74-simple-nav .ins-v68-nav-action span{
  font-size:14px!important;
}
body.px-admin #tab-inscripciones .ins-v74-context{
  border-color:#dbeafe!important;
  background:#fbfdff!important;
}
body.px-admin #tab-inscripciones .ins-v74-queue-card{
  border:1px solid var(--ins-border,#dde7f0);
  border-radius:18px;
  background:#fff;
  box-shadow:0 10px 26px rgba(15,27,61,.035);
  padding:16px 18px;
}
body.px-admin #tab-inscripciones .ins-v74-queue-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:14px;
  margin-bottom:14px;
}
body.px-admin #tab-inscripciones .ins-v74-queue-head h2{
  margin:0 0 4px;
  color:#0f1b3d;
  font-size:18px;
}
body.px-admin #tab-inscripciones .ins-v74-queue-head p{
  margin:0;
  color:#667085;
  font-size:13px;
}
body.px-admin #tab-inscripciones .ins-v74-queue-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}
body.px-admin #tab-inscripciones .ins-v74-work-card{
  display:grid;
  gap:5px;
  min-height:118px;
  padding:14px;
  border:1px solid #e4ebf3;
  border-radius:16px;
  background:#fbfdff;
  text-decoration:none;
  color:#102034;
}
body.px-admin #tab-inscripciones .ins-v74-work-card:hover{
  border-color:#b8d5ff;
  background:#f8fbff;
  transform:translateY(-1px);
}
body.px-admin #tab-inscripciones .ins-v74-work-card.primary{
  background:#eef5ff;
  border-color:#cfe2ff;
}
body.px-admin #tab-inscripciones .ins-v74-work-card span{
  color:#667085;
  font-size:12px;
  font-weight:900;
}
body.px-admin #tab-inscripciones .ins-v74-work-card strong{
  color:#0f1b3d;
  font-size:28px;
  line-height:1;
}
body.px-admin #tab-inscripciones .ins-v74-work-card small{
  color:#667085;
  font-size:12px;
  font-weight:650;
}
body.px-admin #tab-inscripciones .ins-v74-simple-flow{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
  padding:12px 14px;
  border:1px solid var(--ins-border,#dde7f0);
  border-radius:16px;
  background:#fff;
  box-shadow:0 8px 22px rgba(15,27,61,.028);
}
body.px-admin #tab-inscripciones .ins-v74-simple-flow strong{
  color:#0f1b3d;
  margin-right:4px;
}
body.px-admin #tab-inscripciones .ins-v74-simple-flow span{
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:7px 10px;
  border-radius:999px;
  background:#f2f6fb;
  color:#344054;
  font-weight:850;
  font-size:12.5px;
}
body.px-admin #tab-inscripciones .ins-v74-simple-flow b{
  width:22px;
  height:22px;
  border-radius:999px;
  display:grid;
  place-items:center;
  background:#0b63f6;
  color:#fff;
  font-size:11px;
}
body.px-admin #tab-inscripciones .ins-v62-form-steps{
  display:none!important;
}
body.px-admin #tab-inscripciones .ins-v74-actions{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
}
@media(max-width:1180px){
  body.px-admin #tab-inscripciones .ins-v74-queue-grid,
  body.px-admin #tab-inscripciones .ins-v74-actions{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}
@media(max-width:760px){
  body.px-admin #tab-inscripciones .ins-v74-queue-head{
    display:grid;
  }
  body.px-admin #tab-inscripciones .ins-v74-queue-grid,
  body.px-admin #tab-inscripciones .ins-v74-actions{
    grid-template-columns:1fr!important;
  }
}


/* ===== FASE5A85: Ver inscripción con detalle limpio ===== */
.ins-v85-summary-card{
  border:1px solid #dbe7f4!important;
  background:#fff!important;
}
.ins-v85-selected-head{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
  padding:12px;
  border:1px solid #e5edf6;
  border-radius:14px;
  background:#f8fbff;
  margin-bottom:12px;
}
.ins-v85-selected-head strong{
  display:block;
  color:#0f1b3d;
  font-size:16px;
}
.ins-v85-selected-head small{
  display:block;
  color:#667085;
  margin-top:4px;
  line-height:1.35;
}
.ins-v85-selected-head > span{
  display:inline-flex;
  padding:6px 10px;
  border-radius:999px;
  background:#eef5ff;
  color:#0b63f6;
  font-weight:950;
  font-size:12px;
}
.ins-v85-detail-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
.ins-v85-detail-grid > div{
  border:1px solid #e8eef6;
  border-radius:12px;
  background:#fff;
  padding:10px 11px;
  min-width:0;
}
.ins-v85-detail-grid > div.wide{
  grid-column:1/-1;
}
.ins-v85-detail-grid small{
  display:block;
  color:#667085;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.055em;
  font-weight:900;
  margin-bottom:5px;
}
.ins-v85-detail-grid strong{
  display:block;
  color:#111827;
  font-size:13.5px;
  line-height:1.35;
  overflow-wrap:anywhere;
  white-space:normal;
}
.ins-v85-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:12px;
}
tr.ins-v85-row-selected td{
  background:#f8fbff!important;
  box-shadow:inset 3px 0 0 #0b63f6;
}


/* ===== FASE5A86: Reordenamiento de Inscripciones ===== */
.ins-v86-operational-nav{
  display:grid!important;
  gap:9px!important;
}
.ins-v86-nav-link{
  display:grid;
  grid-template-columns:34px 1fr;
  gap:10px;
  align-items:center;
  text-decoration:none;
  color:#102034;
  border:1px solid #e2eaf4;
  background:#fff;
  border-radius:14px;
  padding:10px 11px;
  min-height:62px;
}
.ins-v86-nav-link span{
  width:30px;
  height:30px;
  border-radius:999px;
  display:grid;
  place-items:center;
  background:#eef5ff;
  color:#0b63f6;
  font-weight:950;
}
.ins-v86-nav-link strong{
  display:block;
  font-size:13px;
  color:#0f1b3d;
}
.ins-v86-nav-link small{
  display:block;
  color:#667085;
  font-size:11.5px;
  margin-top:2px;
  line-height:1.25;
}
.ins-v86-nav-link.active{
  border-color:#b8d5ff;
  background:#f8fbff;
  box-shadow:inset 3px 0 0 #0b63f6;
}
.ins-v86-context{
  border-color:#cfe1ff!important;
  background:#f8fbff!important;
}
.ins-v86-workspace-card{
  border:1px solid #dbe7f4;
  border-radius:18px;
  background:#fff;
  box-shadow:0 10px 24px rgba(16,24,40,.04);
  padding:16px 18px;
}
.ins-v86-workspace-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:14px;
  margin-bottom:13px;
}
.ins-v86-workspace-head h2{
  margin:0 0 4px;
  font-size:18px;
  color:#0f1b3d;
}
.ins-v86-workspace-head p{
  margin:0;
  color:#667085;
  font-size:13px;
  max-width:760px;
  line-height:1.4;
}
.ins-v86-workspace-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}
.ins-v86-work-card{
  display:grid;
  gap:5px;
  text-decoration:none;
  border:1px solid #e4ebf3;
  border-radius:14px;
  background:#fbfdff;
  padding:13px;
  color:#102034;
}
.ins-v86-work-card.active{
  background:#eef5ff;
  border-color:#b8d5ff;
}
.ins-v86-work-card small{
  color:#667085;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.055em;
  font-weight:900;
}
.ins-v86-work-card strong{
  color:#0f1b3d;
  font-size:26px;
  line-height:1;
}
.ins-v86-work-card span{
  color:#667085;
  font-size:12px;
  font-weight:750;
}
.ins-v86-action-title{
  margin:12px 0 6px;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.07em;
  color:#667085;
  font-weight:950;
}
@media(max-width:1100px){
  .ins-v86-workspace-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:720px){
  .ins-v86-workspace-head{display:grid;}
  .ins-v86-workspace-grid{grid-template-columns:1fr;}
}


/* ===== FASE5A87: Inscripciones simple, limpio y operativo ===== */
#tab-inscripciones .ins-v67-side-menu,
#tab-inscripciones .ins-v86-workspace-card,
#tab-inscripciones .ins-v74-simple-flow,
#tab-inscripciones .ins-v62-flow,
#tab-inscripciones .ins-v62-guide,
#tab-inscripciones .ins-v62-scenarios-card,
#tab-inscripciones .ins-v74-queue-card,
#tab-inscripciones .ins-v62-bottom-grid,
#tab-inscripciones .ins-v68-active-context{
  display:none!important;
}

#tab-inscripciones .ins-v67-shell{
  display:block!important;
}

#tab-inscripciones .ins-v67-content{
  width:100%!important;
  max-width:none!important;
}

#tab-inscripciones .ins-v87-top-tabs{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:16px 0 14px;
  padding:8px;
  border:1px solid #dbe7f4;
  background:#fff;
  border-radius:14px;
  box-shadow:0 8px 20px rgba(16,24,40,.035);
}

#tab-inscripciones .ins-v87-top-tabs a{
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:9px 14px;
  border-radius:10px;
  color:#344054;
  font-weight:850;
  font-size:13px;
  border:1px solid transparent;
}

#tab-inscripciones .ins-v87-top-tabs a:hover{
  background:#f8fbff;
  border-color:#dbeafe;
}

#tab-inscripciones .ins-v87-top-tabs a.active{
  background:#0b63f6;
  border-color:#0b63f6;
  color:#fff;
}

#tab-inscripciones .ins-v87-list-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:14px;
  margin:14px 0 10px;
  padding:14px 16px;
  border:1px solid #dbe7f4;
  background:#fff;
  border-radius:14px;
  box-shadow:0 8px 20px rgba(16,24,40,.035);
}

#tab-inscripciones .ins-v87-list-head h2{
  margin:0 0 3px;
  color:#0f1b3d;
  font-size:18px;
}

#tab-inscripciones .ins-v87-list-head p{
  margin:0;
  color:#667085;
  font-size:13px;
}

#tab-inscripciones .ins-v62-main-grid{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 390px!important;
  gap:16px!important;
  align-items:start!important;
}

#tab-inscripciones .ins-v62-form-card{
  margin-bottom:14px!important;
  border:1px solid #dbe7f4!important;
  border-radius:14px!important;
  background:#fff!important;
  box-shadow:0 8px 20px rgba(16,24,40,.035)!important;
}

#tab-inscripciones .ins-v62-form-card > summary{
  cursor:pointer;
  padding:13px 16px!important;
  font-weight:900;
  color:#0f1b3d;
}

#tab-inscripciones .table-wrap{
  border-radius:14px!important;
  border:1px solid #dbe7f4!important;
  background:#fff!important;
  box-shadow:0 8px 20px rgba(16,24,40,.035)!important;
}

#tab-inscripciones table th{
  background:#f8fafc!important;
  color:#344054!important;
  font-size:12px!important;
  text-transform:none!important;
  letter-spacing:0!important;
  white-space:nowrap;
}

#tab-inscripciones table td{
  vertical-align:top!important;
  font-size:13px!important;
}

#tab-inscripciones .btn-admin.btn-mini{
  min-height:32px!important;
  padding:7px 11px!important;
  font-size:12.5px!important;
  border-radius:8px!important;
  margin:2px!important;
}

#tab-inscripciones .ins-v62-summary-card,
#tab-inscripciones .ins-v85-summary-card{
  position:sticky;
  top:12px;
  border-radius:14px!important;
  box-shadow:0 8px 20px rgba(16,24,40,.035)!important;
}

#tab-inscripciones .ins-v85-detail-grid{
  grid-template-columns:1fr!important;
}

#tab-inscripciones .ins-v85-detail-grid > div.wide{
  grid-column:auto!important;
}

@media(max-width:1100px){
  #tab-inscripciones .ins-v62-main-grid{
    grid-template-columns:1fr!important;
  }
  #tab-inscripciones .ins-v62-summary-card,
  #tab-inscripciones .ins-v85-summary-card{
    position:relative;
    top:auto;
  }
}

@media(max-width:700px){
  #tab-inscripciones .ins-v87-list-head{
    display:grid;
  }
  #tab-inscripciones .ins-v87-top-tabs{
    display:grid;
    grid-template-columns:1fr 1fr;
  }
}

#tab-inscripciones .ins-v62-table-head{
  display:none!important;
}
#tab-inscripciones .course-list-table-wrap{
  border-radius:14px!important;
  border:1px solid #dbe7f4!important;
  background:#fff!important;
  box-shadow:0 8px 20px rgba(16,24,40,.035)!important;
}


/* ===== FASE5A88: acciones reales de botones ===== */
#tab-inscripciones .button-row{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:6px!important;
  align-items:center!important;
}
#tab-inscripciones .button-row a,
#tab-inscripciones .button-row button{
  pointer-events:auto!important;
  position:relative!important;
  z-index:2!important;
}
#tab-inscripciones .ins-v88-inline-detail{
  margin:12px 0 14px;
  padding:16px;
  border:1px solid #cfe1ff;
  background:#f8fbff;
  border-radius:14px;
  box-shadow:0 10px 24px rgba(16,24,40,.045);
}
#tab-inscripciones .ins-v88-inline-head{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
  margin-bottom:12px;
}
#tab-inscripciones .ins-v88-inline-head h2{
  margin:0 0 4px;
  color:#0f1b3d;
  font-size:19px;
}
#tab-inscripciones .ins-v88-inline-head p{
  margin:0;
  color:#667085;
  font-size:13px;
}
#tab-inscripciones .ins-v88-detail-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}
#tab-inscripciones .ins-v88-detail-grid > div{
  padding:10px 11px;
  border:1px solid #e3ebf5;
  background:#fff;
  border-radius:11px;
}
#tab-inscripciones .ins-v88-detail-grid > div.wide{
  grid-column:span 2;
}
#tab-inscripciones .ins-v88-detail-grid small{
  display:block;
  color:#667085;
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.055em;
  margin-bottom:5px;
}
#tab-inscripciones .ins-v88-detail-grid strong{
  display:block;
  color:#111827;
  font-size:13.5px;
  line-height:1.35;
  overflow-wrap:anywhere;
}
#tab-inscripciones .ins-v88-detail-actions,
#tab-inscripciones .ins-v88-payment-actions{
  margin-top:12px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
#tab-inscripciones .ins-v88-payment-form{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}
#tab-inscripciones .ins-v88-payment-form label{
  display:grid;
  gap:6px;
  color:#344054;
  font-weight:850;
  font-size:12px;
}
#tab-inscripciones .ins-v88-payment-form input{
  min-height:38px;
  border:1px solid #cfd8e3;
  border-radius:9px;
  padding:8px 10px;
}
#tab-inscripciones .ins-v88-payment-actions{
  grid-column:1/-1;
}
#tab-inscripciones tr.ins-v88-expanded-row td{
  background:#f8fbff!important;
  color:#344054;
  font-size:13px!important;
  border-top:0!important;
  box-shadow:inset 3px 0 0 #0b63f6;
}
@media(max-width:1000px){
  #tab-inscripciones .ins-v88-detail-grid,
  #tab-inscripciones .ins-v88-payment-form{
    grid-template-columns:1fr 1fr;
  }
  #tab-inscripciones .ins-v88-detail-grid > div.wide{
    grid-column:1/-1;
  }
}
@media(max-width:650px){
  #tab-inscripciones .ins-v88-inline-head{
    display:grid;
  }
  #tab-inscripciones .ins-v88-detail-grid,
  #tab-inscripciones .ins-v88-payment-form{
    grid-template-columns:1fr;
  }
}


/* ===== FASE5A95: Footer admin limpio y funcional ===== */
#tab-footer .footer-admin-functional{
  background:#f8fafc!important;
  border:1px solid #dbe7f4!important;
  box-shadow:0 16px 38px rgba(16,24,40,.06)!important;
}
#tab-footer .footer-headline-clean{
  align-items:flex-start!important;
  padding:4px 2px 0!important;
  margin-bottom:14px!important;
}
#tab-footer .footer-v95-status-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin:14px 0 16px;
}
#tab-footer .footer-v95-status-card{
  background:#fff;
  border:1px solid #dbe7f4;
  border-radius:14px;
  padding:13px 14px;
  box-shadow:0 8px 20px rgba(16,24,40,.035);
}
#tab-footer .footer-v95-status-card small{
  display:block;
  color:#667085;
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.055em;
  margin-bottom:5px;
}
#tab-footer .footer-v95-status-card strong{
  display:block;
  color:#0f1b3d;
  font-size:16px;
}
#tab-footer .footer-v95-status-card.action a{
  display:inline-flex;
  min-height:32px;
  align-items:center;
  justify-content:center;
  padding:7px 11px;
  border-radius:9px;
  background:#eef5ff;
  color:#0b63f6;
  text-decoration:none;
  font-weight:900;
  font-size:13px;
}
#tab-footer .footer-builder-layout{
  display:grid!important;
  grid-template-columns:minmax(0,1.1fr) minmax(360px,.9fr)!important;
  gap:18px!important;
  align-items:start!important;
}
#tab-footer .footer-builder-panel,
#tab-footer .footer-preview-panel{
  min-width:0!important;
}
#tab-footer .footer-builder-panel{
  display:grid;
  gap:14px;
}
#tab-footer .footer-v95-tabs{
  position:sticky;
  top:10px;
  z-index:5;
  display:flex!important;
  flex-wrap:wrap;
  gap:8px!important;
  background:#ffffff!important;
  border:1px solid #dbe7f4!important;
  border-radius:14px!important;
  padding:8px!important;
  box-shadow:0 10px 24px rgba(16,24,40,.055)!important;
}
#tab-footer .footer-v95-tabs a{
  display:inline-flex!important;
  align-items:center!important;
  gap:8px!important;
  min-height:36px;
  padding:8px 12px!important;
  border-radius:10px!important;
  color:#344054!important;
  font-weight:900!important;
  text-decoration:none!important;
  background:#fff!important;
  border:1px solid transparent!important;
}
#tab-footer .footer-v95-tabs a:hover{
  background:#f8fbff!important;
  border-color:#cfe1ff!important;
}
#tab-footer .footer-v95-tabs a span{
  width:22px;
  height:22px;
  display:grid;
  place-items:center;
  border-radius:999px;
  background:#eef5ff;
  color:#0b63f6;
  font-size:12px;
}
#tab-footer .footer-builder-section{
  background:#fff!important;
  border:1px solid #dbe7f4!important;
  border-radius:16px!important;
  padding:18px!important;
  box-shadow:0 10px 24px rgba(16,24,40,.04)!important;
}
#tab-footer .footer-builder-section h2{
  margin:0 0 6px!important;
  font-size:18px!important;
  color:#0f1b3d!important;
  letter-spacing:-.02em;
}
#tab-footer .footer-builder-section > p{
  margin:0 0 14px!important;
  color:#667085!important;
  font-size:13px!important;
  line-height:1.45!important;
}
#tab-footer .footer-layout-options{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:10px!important;
}
#tab-footer .footer-layout-card{
  border:1px solid #dbe7f4!important;
  border-radius:14px!important;
  background:#fbfdff!important;
  padding:13px!important;
  min-height:88px!important;
}
#tab-footer .footer-layout-card.selected,
#tab-footer .footer-layout-card:has(input:checked){
  border-color:#a9ceff!important;
  background:#f1f7ff!important;
  box-shadow:inset 3px 0 0 #0b63f6!important;
}
#tab-footer .footer-toggle-grid{
  margin-top:12px!important;
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:8px!important;
}
#tab-footer .footer-toggle-grid .check-row{
  background:#f8fafc!important;
  border:1px solid #e6edf5!important;
  border-radius:12px!important;
  padding:10px 12px!important;
}
#tab-footer .footer-v95-contact-grid{
  align-items:end;
}
#tab-footer .footer-v95-field > span{
  display:flex;
  align-items:center;
  gap:8px;
  font-weight:900;
}
#tab-footer .footer-v95-social-field b{
  width:24px;
  height:24px;
  border-radius:999px;
  display:inline-grid;
  place-items:center;
  background:rgba(16,185,129,.13);
  border:1px solid rgba(16,185,129,.34);
  color:#039855;
  font-size:11px;
  font-weight:950;
  line-height:1;
  font-style:normal;
}
#tab-footer .footer-v95-social-field.social-instagram b{font-size:15px;}
#tab-footer .footer-v95-social-field.social-linkedin b{font-size:10px;}
#tab-footer .footer-v95-social-field.social-youtube b{font-size:12px;}
#tab-footer .footer-v95-style-grid input[type=color]{
  width:100%;
  min-height:42px;
  padding:4px!important;
  border-radius:10px!important;
}
#tab-footer .footer-v95-save-row{
  position:sticky;
  bottom:10px;
  z-index:6;
  display:flex!important;
  justify-content:space-between!important;
  align-items:center!important;
  gap:12px!important;
  background:#ffffff!important;
  border:1px solid #cfe1ff!important;
  border-radius:14px!important;
  padding:12px!important;
  box-shadow:0 16px 34px rgba(16,24,40,.12)!important;
}
#tab-footer .footer-v95-save-row span{
  color:#667085;
  font-size:13px;
  font-weight:750;
}
#tab-footer .footer-v95-save-row button{
  min-width:160px!important;
  background:#0b63f6!important;
  color:#fff!important;
  border:1px solid #0b63f6!important;
  border-radius:10px!important;
  min-height:42px!important;
  font-weight:950!important;
}
#tab-footer .footer-preview-sticky{
  position:sticky!important;
  top:10px!important;
  background:#fff!important;
  border:1px solid #dbe7f4!important;
  border-radius:16px!important;
  padding:14px!important;
  box-shadow:0 12px 28px rgba(16,24,40,.06)!important;
}
#tab-footer .footer-v95-preview-caption{
  display:flex!important;
  justify-content:space-between!important;
  gap:12px!important;
  align-items:center!important;
  margin-bottom:10px!important;
}
#tab-footer .footer-v95-preview-caption strong{
  color:#0f1b3d;
  font-size:15px;
}
#tab-footer .footer-v95-preview-caption span{
  color:#667085;
  font-size:12px;
  text-align:right;
}
#tab-footer .footer-live-preview{
  border-radius:14px!important;
  overflow:hidden!important;
  border:1px solid rgba(255,255,255,.12)!important;
}
@media(max-width:1180px){
  #tab-footer .footer-builder-layout{
    grid-template-columns:1fr!important;
  }
  #tab-footer .footer-preview-sticky,
  #tab-footer .footer-v95-tabs,
  #tab-footer .footer-v95-save-row{
    position:relative!important;
    top:auto!important;
    bottom:auto!important;
  }
}
@media(max-width:820px){
  #tab-footer .footer-v95-status-grid,
  #tab-footer .footer-layout-options,
  #tab-footer .footer-toggle-grid{
    grid-template-columns:1fr!important;
  }
  #tab-footer .footer-v95-tabs{
    display:grid!important;
    grid-template-columns:1fr 1fr;
  }
}


/* ===== FASE5A99: Inscripciones mockup aprobado + sidebar minimizable ===== */
body.px-inscripciones-fullscreen .topbar-admin{display:none!important;}
body.px-inscripciones-fullscreen .admin-wrap{
  display:grid!important;
  grid-template-columns:64px minmax(0,1fr)!important;
  gap:0!important;
  max-width:none!important;
  width:100%!important;
  padding:0!important;
  min-height:100vh!important;
  background:#f6f8fb!important;
}
body.px-inscripciones-fullscreen .admin-wrap > aside.side-card{
  display:flex!important;
  position:sticky!important;
  top:0!important;
  height:100vh!important;
  width:64px!important;
  min-width:64px!important;
  max-width:64px!important;
  overflow:hidden!important;
  border-radius:0!important;
  background:#061d38!important;
  border:0!important;
  padding:10px 8px!important;
  box-shadow:none!important;
  z-index:30!important;
}
body.px-inscripciones-fullscreen.px-cms-rail-open .admin-wrap{grid-template-columns:280px minmax(0,1fr)!important;}
body.px-inscripciones-fullscreen.px-cms-rail-open .admin-wrap > aside.side-card{
  width:280px!important;min-width:280px!important;max-width:280px!important;overflow:auto!important;padding:16px!important;
}
body.px-inscripciones-fullscreen .side-user-card,
body.px-inscripciones-fullscreen .cms-nav-title,
body.px-inscripciones-fullscreen .cms-nav-external{display:none!important;}
body.px-inscripciones-fullscreen.px-cms-rail-open .side-user-card,
body.px-inscripciones-fullscreen.px-cms-rail-open .cms-nav-title,
body.px-inscripciones-fullscreen.px-cms-rail-open .cms-nav-external{display:block!important;}
body.px-inscripciones-fullscreen .side-menu{width:100%!important;display:flex!important;flex-direction:column!important;gap:8px!important;align-items:center!important;}
body.px-inscripciones-fullscreen.px-cms-rail-open .side-menu{align-items:stretch!important;}
body.px-inscripciones-fullscreen .cms-nav-section{width:100%!important;margin:0!important;padding:0!important;border:0!important;}
body.px-inscripciones-fullscreen .cms-nav-links{display:flex!important;flex-direction:column!important;gap:8px!important;align-items:center!important;}
body.px-inscripciones-fullscreen.px-cms-rail-open .cms-nav-links{align-items:stretch!important;}
body.px-inscripciones-fullscreen .cms-nav-links a{
  width:42px!important;height:42px!important;min-height:42px!important;padding:0!important;border-radius:12px!important;
  display:grid!important;place-items:center!important;font-size:0!important;color:#dbeafe!important;background:transparent!important;text-decoration:none!important;
}
body.px-inscripciones-fullscreen .cms-nav-links a.active{background:#0b63f6!important;color:#fff!important;}
body.px-inscripciones-fullscreen.px-cms-rail-open .cms-nav-links a{
  width:auto!important;height:auto!important;min-height:40px!important;padding:10px 12px!important;display:flex!important;justify-content:flex-start!important;font-size:14px!important;
}
body.px-inscripciones-fullscreen .cms-nav-links a::before{font-size:20px!important;line-height:1!important;}
body.px-inscripciones-fullscreen .cms-nav-links a[href*="tab=resumen"]::before{content:'⌂';}
body.px-inscripciones-fullscreen .cms-nav-links a[href*="tab=inscripciones"]::before{content:'▦';}
body.px-inscripciones-fullscreen .cms-nav-links a[href*="tab=reservas"]::before{content:'▣';}
body.px-inscripciones-fullscreen .cms-nav-links a[href*="tab=cursos"]::before{content:'▤';}
body.px-inscripciones-fullscreen .cms-nav-links a[href*="course_page=groups"]::before{content:'♚';}
body.px-inscripciones-fullscreen .cms-nav-links a[href*="course_page=professors"]::before{content:'♙';}
body.px-inscripciones-fullscreen .cms-nav-links a[href*="tab=marca"]::before{content:'◇';}
body.px-inscripciones-fullscreen .cms-nav-links a[href*="tab=portada"]::before{content:'▧';}
body.px-inscripciones-fullscreen .cms-nav-links a[href*="tab=footer"]::before{content:'▥';}
body.px-inscripciones-fullscreen .cms-nav-links a[href*="tab=estilos"]::before{content:'◌';}
body.px-inscripciones-fullscreen .cms-nav-links a[href*="tab=seo"]::before{content:'⌕';}
body.px-inscripciones-fullscreen .cms-nav-links a[href*="tab=usuarios"]::before{content:'♟';}
body.px-inscripciones-fullscreen .cms-nav-links a[href*="tab=roles"]::before{content:'⚙';}
body.px-inscripciones-fullscreen .cms-nav-links a[href*="tab=datos"]::before{content:'⇄';}
body.px-inscripciones-fullscreen.px-cms-rail-open .cms-nav-links a::before{margin-right:10px;}
body.px-inscripciones-fullscreen .admin-wrap > main{width:100%!important;max-width:none!important;min-width:0!important;padding:0!important;}
body.px-inscripciones-fullscreen .admin-section:not(#tab-inscripciones){display:none!important;}
#tab-inscripciones.ins-v99-page{
  display:block!important;width:100%!important;max-width:none!important;margin:0!important;padding:0 26px 28px!important;background:#f6f8fb!important;color:#0f172a!important;
}
.ins-v99-topbar{
  display:grid;grid-template-columns:48px minmax(260px,420px) auto;align-items:center;gap:18px;min-height:66px;background:#fff;border-bottom:1px solid #e5eaf2;margin:0 -26px 26px;padding:0 26px;box-shadow:0 1px 0 rgba(15,23,42,.02);
}
.ins-v99-menu-toggle{width:38px;height:38px;border:1px solid #dbe5f1;border-radius:10px;background:#fff;color:#344054;font-size:19px;cursor:pointer;}
.ins-v99-search{display:flex;align-items:center;border:1px solid #dbe5f1;border-radius:10px;background:#fff;min-height:40px;overflow:hidden;}
.ins-v99-search input{border:0!important;background:#fff!important;min-height:38px!important;padding:0 13px!important;flex:1;font-size:14px;}
.ins-v99-search button{border:0;background:#fff;color:#475467;width:42px;font-size:18px;}
.ins-v99-user-pill{justify-self:end;display:grid;grid-template-columns:36px auto;column-gap:10px;align-items:center;}
.ins-v99-user-pill span{width:36px;height:36px;border-radius:999px;background:#eaf2ff;color:#0b63f6;font-weight:950;display:grid;place-items:center;grid-row:1/3;}
.ins-v99-user-pill strong{font-size:13px;line-height:1.1;color:#0f172a;}.ins-v99-user-pill small{font-size:12px;color:#667085;}
.ins-v99-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:start;margin-bottom:18px;}
.ins-v99-head h1{margin:0;color:#101828;font-size:31px;letter-spacing:-.04em;line-height:1.1;font-weight:950;}
.ins-v99-breadcrumb{display:flex;align-items:center;gap:8px;color:#667085;font-size:13px;margin-top:10px;}.ins-v99-breadcrumb a{color:#667085;text-decoration:none;}.ins-v99-breadcrumb strong{color:#344054;}
.ins-v99-head-actions{display:flex;gap:10px;align-items:center;justify-content:flex-end;}
.ins-v99-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:0 16px;border-radius:10px;font-weight:900;text-decoration:none;border:1px solid #dbe5f1;background:#fff;color:#344054;cursor:pointer;font-size:14px;}
.ins-v99-btn.primary{background:#0b63f6;border-color:#0b63f6;color:#fff;box-shadow:0 8px 18px rgba(11,99,246,.18);}.ins-v99-btn.light{background:#fff;color:#344054;}
.ins-v99-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:18px;}
.ins-v99-kpi{display:grid;grid-template-columns:64px 1fr auto;grid-template-rows:auto auto 1fr;gap:3px 12px;padding:22px;background:#fff;border:1px solid #dbe5f1;border-radius:15px;box-shadow:0 10px 24px rgba(16,24,40,.05);text-decoration:none;color:#101828;min-height:132px;}
.ins-v99-kpi .ico{grid-row:1/4;width:54px;height:54px;border-radius:999px;display:grid;place-items:center;font-size:25px;font-weight:900;}.ins-v99-kpi small{font-size:14px;color:#475467;font-weight:750;}.ins-v99-kpi strong{font-size:28px;letter-spacing:-.04em;line-height:1.05;color:#101828;}.ins-v99-kpi em{grid-column:2/4;align-self:end;border-top:1px solid #eef2f7;padding-top:14px;font-style:normal;color:#475467;font-weight:800;}.ins-v99-kpi em::after{content:'›';float:right;font-size:22px;color:#667085;}.ins-v99-kpi.pending .ico{background:#fff4d9;color:#b7791f;}.ins-v99-kpi.pre .ico{background:#eaf2ff;color:#0b63f6;}.ins-v99-kpi.ok .ico{background:#e9f8ef;color:#07803c;}.ins-v99-kpi.pay .ico{background:#fdecec;color:#c23333;}
.ins-v99-tabs{display:flex;align-items:center;gap:8px;margin:0 0 0;padding:0;overflow:auto;}
.ins-v99-tabs a{display:inline-flex;align-items:center;gap:10px;min-height:52px;padding:0 20px;border:1px solid #dbe5f1;border-bottom:0;border-radius:12px 12px 0 0;background:#fff;text-decoration:none;color:#344054;font-weight:850;white-space:nowrap;}.ins-v99-tabs a b{font-size:12px;background:#eef2f7;color:#344054;border-radius:999px;padding:3px 8px;}.ins-v99-tabs a.active{color:#0b63f6;border-color:#cfe0ff;box-shadow:inset 0 -3px 0 #0b63f6;}.ins-v99-tabs a.active b{background:#0b63f6;color:#fff;}
.ins-v99-table-card{background:#fff;border:1px solid #dbe5f1;border-radius:0 14px 14px 14px;box-shadow:0 12px 28px rgba(16,24,40,.055);overflow:hidden;}.ins-v99-table-wrap{overflow:auto;}.ins-v99-table{width:100%;min-width:1040px;border-collapse:collapse;table-layout:fixed;}.ins-v99-table th{height:52px;text-align:left;padding:0 20px;background:#fbfcfe;color:#101828;font-size:13px;font-weight:950;border-bottom:1px solid #e5eaf2;}.ins-v99-table td{padding:14px 20px;border-bottom:1px solid #eef2f7;vertical-align:middle;color:#1d2939;font-size:13px;}.ins-v99-table tbody tr:hover{background:#fbfdff;}.ins-v99-table tr.selected{background:#f4f8ff;}.ins-v99-table th:nth-child(1){width:250px}.ins-v99-table th:nth-child(2){width:210px}.ins-v99-table th:nth-child(3){width:170px}.ins-v99-table th:nth-child(4){width:170px}.ins-v99-table th:nth-child(5){width:140px}.ins-v99-table th:nth-child(6){width:130px}.ins-v99-table th:nth-child(7){width:160px}.ins-v99-table td strong{display:block;font-weight:850;color:#1d2939;line-height:1.25;}.ins-v99-table td small{display:block;margin-top:4px;color:#667085;font-size:12px;line-height:1.25;overflow-wrap:anywhere;}.ins-v99-student{display:grid;grid-template-columns:42px minmax(0,1fr);gap:12px;align-items:center;}.ins-v99-student .avatar{width:42px;height:42px;border-radius:999px;background:linear-gradient(135deg,#eaf2ff,#f8fafc);border:1px solid #dbe5f1;color:#0b63f6;font-weight:950;display:grid;place-items:center;}
.ins-v99-badge{display:inline-flex;align-items:center;justify-content:center;min-height:26px;padding:4px 12px;border-radius:8px;font-size:12px;font-weight:900;white-space:nowrap;}.ins-v99-badge.academic.solicitud,.ins-v99-badge.academic.pendiente_documentos{background:#fff4d9;color:#a15c00;}.ins-v99-badge.academic.preinscrito{background:#eaf2ff;color:#0b63f6;}.ins-v99-badge.academic.inscrito{background:#e9f8ef;color:#087443;}.ins-v99-badge.academic.cancelado{background:#fdecec;color:#b42318;}.ins-v99-badge.payment.pendiente{background:#fdecec;color:#b42318;}.ins-v99-badge.payment.parcial{background:#fff4d9;color:#a15c00;}.ins-v99-badge.payment.pagado,.ins-v99-badge.payment.exonerado{background:#e9f8ef;color:#087443;}.ins-v99-actions{display:flex;align-items:center;gap:8px;}.ins-v99-actions a,.ins-v99-actions button{width:33px;height:33px;border:1px solid #dbe5f1;background:#fff;border-radius:8px;color:#0b63f6;display:grid;place-items:center;text-decoration:none;font-size:14px;cursor:pointer;}.ins-v99-actions button{color:#079455;}.ins-v99-actions form{margin:0;}
.ins-v99-pagination{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:14px 20px;background:#fff;}.ins-v99-pagination>span{font-size:13px;color:#475467;font-weight:650;}.ins-v99-pagination div{display:flex;gap:8px;align-items:center;}.ins-v99-pagination select,.ins-v99-pagination a,.ins-v99-pagination b{min-height:36px;border:1px solid #dbe5f1;border-radius:8px;background:#fff;color:#344054;display:grid;place-items:center;padding:0 12px;text-decoration:none;font-weight:750;}.ins-v99-pagination b{background:#0b63f6;border-color:#0b63f6;color:#fff;}.ins-v99-muted{color:#667085;font-weight:700;}
.ins-v99-detail,.ins-v99-form-card{background:#fff;border:1px solid #dbe5f1;border-radius:14px;margin:0 0 18px;padding:18px;box-shadow:0 12px 28px rgba(16,24,40,.055);}.ins-v99-detail-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:14px;}.ins-v99-detail-head h2{margin:0;color:#101828;font-size:20px;}.ins-v99-detail-head p{margin:4px 0 0;color:#667085;}.ins-v99-detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;}.ins-v99-detail-grid div{border:1px solid #eef2f7;border-radius:11px;padding:12px;background:#fbfcfe;}.ins-v99-detail-grid .wide{grid-column:span 2;}.ins-v99-detail-grid small{display:block;color:#667085;font-weight:800;font-size:12px;margin-bottom:5px;}.ins-v99-detail-grid strong{display:block;color:#101828;overflow-wrap:anywhere;}.ins-v99-detail-actions,.ins-v99-form-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:14px;}.ins-v99-payment-form,.ins-v99-admin-form{display:grid;gap:14px;}.ins-v99-payment-form{grid-template-columns:repeat(4,minmax(0,1fr)) auto;align-items:end;}.ins-v99-form-section{border:1px solid #eef2f7;border-radius:14px;padding:15px;background:#fbfcfe;}.ins-v99-form-section h3{margin:0 0 12px;color:#101828;font-size:16px;}.ins-v99-form-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;}.ins-v99-form-grid .wide{grid-column:span 2;}.ins-v99-form-card label,.ins-v99-payment-form label{display:grid;gap:6px;color:#344054;font-weight:850;font-size:12px;}.ins-v99-form-card input,.ins-v99-form-card select,.ins-v99-form-card textarea,.ins-v99-payment-form input{width:100%;min-height:39px;border:1px solid #dbe5f1;border-radius:9px;background:#fff;padding:8px 10px;color:#101828;}.ins-v99-form-card em{color:#d92d20;font-style:normal;}
@media(max-width:1180px){.ins-v99-kpis{grid-template-columns:repeat(2,minmax(0,1fr));}.ins-v99-detail-grid,.ins-v99-form-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.ins-v99-payment-form{grid-template-columns:1fr 1fr;}.ins-v99-table{min-width:980px;}}
@media(max-width:820px){body.px-inscripciones-fullscreen .admin-wrap{grid-template-columns:1fr!important;}body.px-inscripciones-fullscreen .admin-wrap > aside.side-card{display:none!important;}#tab-inscripciones.ins-v99-page{padding:0 12px 20px!important;}.ins-v99-topbar{grid-template-columns:44px minmax(0,1fr);margin:0 -12px 18px;padding:0 12px;}.ins-v99-user-pill{display:none;}.ins-v99-head{grid-template-columns:1fr;}.ins-v99-head-actions{justify-content:flex-start;flex-wrap:wrap;}.ins-v99-kpis{grid-template-columns:1fr;}.ins-v99-detail-grid,.ins-v99-form-grid{grid-template-columns:1fr;}.ins-v99-detail-grid .wide,.ins-v99-form-grid .wide{grid-column:auto;}.ins-v99-pagination{align-items:flex-start;flex-direction:column;}.ins-v99-payment-form{grid-template-columns:1fr;}}


/* ===== FASE5A100: sidebar CMS colapsado limpio sin texto invadiendo ===== */
body.px-inscripciones-fullscreen:not(.px-cms-rail-open) .admin-wrap{
  grid-template-columns:64px minmax(0,1fr)!important;
}
body.px-inscripciones-fullscreen:not(.px-cms-rail-open) .admin-wrap > aside.side-card{
  width:64px!important;
  min-width:64px!important;
  max-width:64px!important;
  padding:10px 8px!important;
  overflow:hidden!important;
  background:#061d38!important;
}
body.px-inscripciones-fullscreen:not(.px-cms-rail-open) .side-card *,
body.px-inscripciones-fullscreen:not(.px-cms-rail-open) .side-menu *,
body.px-inscripciones-fullscreen:not(.px-cms-rail-open) .cms-nav-v42 *{
  box-sizing:border-box!important;
}
body.px-inscripciones-fullscreen:not(.px-cms-rail-open) .side-user-card,
body.px-inscripciones-fullscreen:not(.px-cms-rail-open) .side-user-copy,
body.px-inscripciones-fullscreen:not(.px-cms-rail-open) .cms-nav-title,
body.px-inscripciones-fullscreen:not(.px-cms-rail-open) .cms-nav-external{
  display:none!important;
  visibility:hidden!important;
  width:0!important;
  height:0!important;
  overflow:hidden!important;
}
body.px-inscripciones-fullscreen:not(.px-cms-rail-open) .side-menu,
body.px-inscripciones-fullscreen:not(.px-cms-rail-open) .cms-nav-v42,
body.px-inscripciones-fullscreen:not(.px-cms-rail-open) .cms-nav-section,
body.px-inscripciones-fullscreen:not(.px-cms-rail-open) .cms-nav-links{
  width:48px!important;
  max-width:48px!important;
  min-width:48px!important;
  margin:0 auto!important;
  padding:0!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:8px!important;
  overflow:hidden!important;
}
body.px-inscripciones-fullscreen:not(.px-cms-rail-open) .cms-nav-links a{
  position:relative!important;
  display:block!important;
  width:48px!important;
  height:48px!important;
  min-width:48px!important;
  max-width:48px!important;
  min-height:48px!important;
  max-height:48px!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  border-radius:14px!important;
  overflow:hidden!important;
  white-space:nowrap!important;
  text-indent:-9999px!important;
  font-size:0!important;
  line-height:0!important;
  color:transparent!important;
  background:transparent!important;
  box-shadow:none!important;
}
body.px-inscripciones-fullscreen:not(.px-cms-rail-open) .cms-nav-links a.active{
  background:#0b63f6!important;
  color:transparent!important;
}
body.px-inscripciones-fullscreen:not(.px-cms-rail-open) .cms-nav-links a::before{
  position:absolute!important;
  left:50%!important;
  top:50%!important;
  transform:translate(-50%,-50%)!important;
  display:grid!important;
  place-items:center!important;
  width:48px!important;
  height:48px!important;
  margin:0!important;
  padding:0!important;
  text-indent:0!important;
  font-size:20px!important;
  line-height:1!important;
  color:#eaf2ff!important;
  text-align:center!important;
  overflow:visible!important;
}
body.px-inscripciones-fullscreen:not(.px-cms-rail-open) .cms-nav-links a.active::before{
  color:#fff!important;
}
body.px-inscripciones-fullscreen.px-cms-rail-open .cms-nav-links a{
  text-indent:0!important;
  font-size:14px!important;
  line-height:1.2!important;
  color:#17223a!important;
  white-space:normal!important;
  overflow:visible!important;
}
body.px-inscripciones-fullscreen.px-cms-rail-open .cms-nav-links a.active{
  color:#fff!important;
}
body.px-inscripciones-fullscreen.px-cms-rail-open .cms-nav-links a::before{
  position:static!important;
  transform:none!important;
  width:auto!important;
  height:auto!important;
  color:inherit!important;
}
@media(max-width:1180px){
  body.px-inscripciones-fullscreen .admin-wrap{
    grid-template-columns:64px minmax(0,1fr)!important;
  }
  body.px-inscripciones-fullscreen.px-cms-rail-open .admin-wrap{
    grid-template-columns:240px minmax(0,1fr)!important;
  }
  body.px-inscripciones-fullscreen.px-cms-rail-open .admin-wrap > aside.side-card{
    width:240px!important;
    min-width:240px!important;
    max-width:240px!important;
  }
}
@media(max-width:760px){
  body.px-inscripciones-fullscreen .admin-wrap{
    grid-template-columns:0 minmax(0,1fr)!important;
  }
  body.px-inscripciones-fullscreen:not(.px-cms-rail-open) .admin-wrap > aside.side-card{
    transform:translateX(-70px)!important;
    pointer-events:none!important;
  }
  body.px-inscripciones-fullscreen.px-cms-rail-open .admin-wrap{
    grid-template-columns:minmax(0,1fr)!important;
  }
  body.px-inscripciones-fullscreen.px-cms-rail-open .admin-wrap > aside.side-card{
    position:fixed!important;
    left:0!important;
    top:0!important;
    width:240px!important;
    min-width:240px!important;
    max-width:240px!important;
    box-shadow:0 20px 60px rgba(0,0,0,.28)!important;
  }
}


/* ===== FASE5A101: Inscripciones sin sidebar fijo, menú solo bajo demanda ===== */
body.px-inscripciones-fullscreen .admin-wrap{
  grid-template-columns:minmax(0,1fr)!important;
  width:100%!important;
  max-width:none!important;
  padding:0!important;
  margin:0!important;
  gap:0!important;
  background:#f6f8fb!important;
}
body.px-inscripciones-fullscreen .admin-wrap > aside.side-card{
  display:block!important;
  position:fixed!important;
  left:0!important;
  top:0!important;
  bottom:0!important;
  width:286px!important;
  min-width:286px!important;
  max-width:286px!important;
  height:100vh!important;
  padding:16px!important;
  border-radius:0!important;
  border:0!important;
  background:#061d38!important;
  box-shadow:0 24px 80px rgba(2,6,23,.35)!important;
  z-index:1000!important;
  overflow:auto!important;
  transform:translateX(-110%)!important;
  transition:transform .18s ease!important;
  pointer-events:none!important;
}
body.px-inscripciones-fullscreen.px-cms-rail-open .admin-wrap > aside.side-card{
  transform:translateX(0)!important;
  pointer-events:auto!important;
}
body.px-inscripciones-fullscreen.px-cms-rail-open::before{
  content:"";
  position:fixed;
  inset:0;
  background:rgba(15,23,42,.42);
  z-index:999;
}
body.px-inscripciones-fullscreen .admin-wrap > main{
  grid-column:1!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  padding:0!important;
  margin:0!important;
}
body.px-inscripciones-fullscreen .side-user-card{
  display:grid!important;
  grid-template-columns:44px minmax(0,1fr)!important;
  align-items:center!important;
  gap:10px!important;
  background:rgba(255,255,255,.07)!important;
  border:1px solid rgba(255,255,255,.12)!important;
  border-radius:14px!important;
  padding:12px!important;
  margin-bottom:14px!important;
}
body.px-inscripciones-fullscreen .side-user-avatar{
  background:#0b63f6!important;
  color:#fff!important;
}
body.px-inscripciones-fullscreen .side-user-copy small,
body.px-inscripciones-fullscreen .side-user-copy span{
  color:#b8c7dc!important;
}
body.px-inscripciones-fullscreen .side-user-copy strong{
  color:#fff!important;
}
body.px-inscripciones-fullscreen .side-menu,
body.px-inscripciones-fullscreen .cms-nav-v42,
body.px-inscripciones-fullscreen .cms-nav-section,
body.px-inscripciones-fullscreen .cms-nav-links{
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  display:grid!important;
  gap:8px!important;
  align-items:stretch!important;
  overflow:visible!important;
}
body.px-inscripciones-fullscreen .cms-nav-title{
  display:block!important;
  color:#8da2bc!important;
  font-size:11px!important;
  font-weight:950!important;
  text-transform:uppercase!important;
  letter-spacing:.08em!important;
  margin:12px 4px 6px!important;
}
body.px-inscripciones-fullscreen .cms-nav-external{
  display:block!important;
}
body.px-inscripciones-fullscreen .cms-nav-links a{
  position:relative!important;
  width:100%!important;
  height:auto!important;
  min-height:42px!important;
  max-height:none!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:10px!important;
  padding:10px 12px!important;
  border-radius:12px!important;
  border:1px solid rgba(255,255,255,.09)!important;
  background:rgba(255,255,255,.05)!important;
  color:#eaf2ff!important;
  font-size:14px!important;
  line-height:1.2!important;
  font-weight:850!important;
  text-indent:0!important;
  white-space:normal!important;
  overflow:visible!important;
  text-decoration:none!important;
}
body.px-inscripciones-fullscreen .cms-nav-links a.active{
  background:#0b63f6!important;
  border-color:#0b63f6!important;
  color:#fff!important;
}
body.px-inscripciones-fullscreen .cms-nav-links a::before{
  position:static!important;
  transform:none!important;
  width:24px!important;
  height:24px!important;
  min-width:24px!important;
  display:grid!important;
  place-items:center!important;
  margin:0!important;
  padding:0!important;
  text-indent:0!important;
  color:inherit!important;
  font-size:18px!important;
  line-height:1!important;
}
body.px-inscripciones-fullscreen .ins-v99-topbar{
  position:sticky!important;
  top:0!important;
  z-index:50!important;
}
body.px-inscripciones-fullscreen .ins-v99-menu-toggle{
  position:relative!important;
  z-index:1001!important;
  background:#fff!important;
}
body.px-inscripciones-fullscreen.px-cms-rail-open .ins-v99-menu-toggle{
  background:#0b63f6!important;
  color:#fff!important;
  border-color:#0b63f6!important;
}
body.px-inscripciones-fullscreen #tab-inscripciones.ins-v99-page{
  padding-left:26px!important;
  padding-right:26px!important;
}
@media(max-width:760px){
  body.px-inscripciones-fullscreen .admin-wrap{
    grid-template-columns:minmax(0,1fr)!important;
  }
  body.px-inscripciones-fullscreen .admin-wrap > aside.side-card{
    width:min(286px,88vw)!important;
    min-width:0!important;
    max-width:88vw!important;
  }
  body.px-inscripciones-fullscreen #tab-inscripciones.ins-v99-page{
    padding-left:14px!important;
    padding-right:14px!important;
  }
  body.px-inscripciones-fullscreen .ins-v99-topbar{
    margin-left:-14px!important;
    margin-right:-14px!important;
    padding-left:14px!important;
    padding-right:14px!important;
    grid-template-columns:44px minmax(0,1fr)!important;
  }
  body.px-inscripciones-fullscreen .ins-v99-user-pill{
    display:none!important;
  }
}


/* ===== FASE5A102: navegación única en Inscripciones, sin sidebars mezclados ===== */
body.px-inscripciones-fullscreen .admin-wrap{
  display:block!important;
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
  background:#f6f8fb!important;
}
body.px-inscripciones-fullscreen .admin-wrap > aside.side-card{
  display:none!important;
  visibility:hidden!important;
  width:0!important;
  min-width:0!important;
  max-width:0!important;
  height:0!important;
  overflow:hidden!important;
  transform:none!important;
  pointer-events:none!important;
}
body.px-inscripciones-fullscreen.px-cms-rail-open::before,
body.px-inscripciones-fullscreen.px-cms-rail-open .admin-wrap > aside.side-card{
  display:none!important;
  content:none!important;
}
body.px-inscripciones-fullscreen .admin-wrap > main{
  display:block!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
}
body.px-inscripciones-fullscreen #tab-inscripciones.ins-v99-page{
  width:100%!important;
  max-width:none!important;
  padding:0 26px 28px!important;
  background:#f6f8fb!important;
}
body.px-inscripciones-fullscreen .ins-v99-topbar{
  grid-template-columns:48px minmax(260px,420px) auto!important;
  overflow:visible!important;
}
.ins-v102-menu-wrap{
  position:relative;
  width:48px;
  height:48px;
  z-index:80;
}
.ins-v102-menu-wrap .ins-v99-menu-toggle{
  width:42px!important;
  height:42px!important;
  min-height:42px!important;
}
.ins-v102-menu-panel{
  position:absolute;
  left:0;
  top:52px;
  width:286px;
  max-height:min(72vh,720px);
  overflow:auto;
  display:none;
  background:#061d38;
  color:#fff;
  border:1px solid rgba(255,255,255,.12);
  border-radius:16px;
  padding:12px;
  box-shadow:0 24px 70px rgba(2,6,23,.32);
}
.ins-v102-menu-wrap.is-open .ins-v102-menu-panel{
  display:block!important;
}
.ins-v102-menu-head{
  padding:12px 12px 14px;
  border-radius:13px;
  background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.1);
  margin-bottom:10px;
}
.ins-v102-menu-head strong{
  display:block;
  color:#fff;
  font-size:15px;
  font-weight:950;
}
.ins-v102-menu-head span{
  display:block;
  color:#b8c7dc;
  font-size:12px;
  margin-top:3px;
}
.ins-v102-menu-panel a{
  display:flex!important;
  align-items:center;
  min-height:40px;
  padding:10px 12px;
  border-radius:11px;
  color:#eaf2ff!important;
  text-decoration:none!important;
  font-size:14px;
  font-weight:850;
  background:transparent;
  border:1px solid transparent;
  margin:3px 0;
}
.ins-v102-menu-panel a:hover{
  background:rgba(255,255,255,.08);
  border-color:rgba(255,255,255,.1);
}
.ins-v102-menu-panel a.active{
  background:#0b7a43!important;
  color:#fff!important;
}
.ins-v102-menu-foot{
  margin-top:10px;
  padding-top:10px;
  border-top:1px solid rgba(255,255,255,.12);
}
body.px-inscripciones-fullscreen .ins-v99-menu-toggle{
  background:#fff!important;
  color:#344054!important;
  border-color:#dbe5f1!important;
}
.ins-v102-menu-wrap.is-open .ins-v99-menu-toggle{
  background:#0b63f6!important;
  color:#fff!important;
  border-color:#0b63f6!important;
}
@media(max-width:760px){
  body.px-inscripciones-fullscreen #tab-inscripciones.ins-v99-page{
    padding-left:14px!important;
    padding-right:14px!important;
  }
  body.px-inscripciones-fullscreen .ins-v99-topbar{
    margin-left:-14px!important;
    margin-right:-14px!important;
    padding-left:14px!important;
    padding-right:14px!important;
    grid-template-columns:48px minmax(0,1fr)!important;
  }
  .ins-v102-menu-panel{
    width:min(286px,86vw);
  }
}


/* ===== FASE5A103: barra superior CMS unificada para todo el panel ===== */
body.px-admin{
  background:#f6f8fb!important;
}
body.px-admin .topbar-admin{
  display:none!important;
}
.cms-v103-topbar{
  position:sticky;
  top:0;
  z-index:900;
  min-height:72px;
  display:grid;
  grid-template-columns:minmax(260px,360px) minmax(260px,520px) auto;
  align-items:center;
  gap:18px;
  padding:12px 28px;
  background:#ffffff;
  border-bottom:1px solid #e5eaf2;
  box-shadow:0 1px 0 rgba(15,23,42,.03);
}
.cms-v103-left{
  display:flex;
  align-items:center;
  gap:14px;
  min-width:0;
}
.cms-v103-menu-toggle{
  width:44px;
  height:44px;
  min-width:44px;
  display:grid;
  place-items:center;
  border:1px solid #dbe5f1;
  border-radius:12px;
  background:#fff;
  color:#344054;
  font-size:21px;
  cursor:pointer;
  box-shadow:0 10px 20px rgba(16,24,40,.04);
}
.cms-v103-menu-toggle:hover{
  border-color:#b7c7dc;
  background:#f8fbff;
}
body.px-cms-global-menu-open .cms-v103-menu-toggle{
  background:#0b63f6;
  border-color:#0b63f6;
  color:#fff;
}
.cms-v103-brand{
  display:flex;
  align-items:center;
  gap:11px;
  color:#0f172a;
  text-decoration:none;
  min-width:0;
}
.cms-v103-brand img{
  width:38px;
  height:38px;
  object-fit:contain;
}
.cms-v103-brand span{
  display:flex;
  align-items:baseline;
  gap:7px;
  min-width:0;
}
.cms-v103-brand strong{
  font-size:18px;
  letter-spacing:.01em;
  font-weight:950;
  white-space:nowrap;
}
.cms-v103-brand em{
  font-size:13px;
  font-style:normal;
  color:#0b63f6;
  font-weight:950;
  letter-spacing:.08em;
}
.cms-v103-search{
  display:flex;
  align-items:center;
  min-height:44px;
  border:1px solid #dbe5f1;
  border-radius:12px;
  background:#fff;
  overflow:hidden;
  box-shadow:0 8px 18px rgba(16,24,40,.035);
}
.cms-v103-search input{
  border:0!important;
  background:#fff!important;
  min-height:42px!important;
  padding:0 15px!important;
  flex:1;
  min-width:0;
  font-size:14px!important;
  color:#101828!important;
}
.cms-v103-search button{
  width:48px;
  min-height:44px;
  border:0;
  background:#fff;
  color:#475467;
  font-size:18px;
  cursor:pointer;
}
.cms-v103-user{
  justify-self:end;
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}
.cms-v103-public,
.cms-v103-logout{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:36px;
  padding:8px 11px;
  border-radius:10px;
  border:1px solid #dbe5f1;
  background:#fff;
  color:#344054;
  text-decoration:none;
  font-size:13px;
  font-weight:850;
  white-space:nowrap;
}
.cms-v103-public:hover,
.cms-v103-logout:hover{
  background:#f8fbff;
  border-color:#b7c7dc;
}
.cms-v103-avatar{
  width:40px;
  height:40px;
  border-radius:999px;
  background:#eaf2ff;
  color:#0b63f6;
  display:grid;
  place-items:center;
  font-weight:950;
}
.cms-v103-user-copy{
  display:grid;
  line-height:1.15;
  min-width:0;
}
.cms-v103-user-copy strong{
  color:#101828;
  font-size:13.5px;
  white-space:nowrap;
  max-width:160px;
  overflow:hidden;
  text-overflow:ellipsis;
}
.cms-v103-user-copy em{
  color:#667085;
  font-size:12.5px;
  font-style:normal;
  white-space:nowrap;
}
body.px-admin .admin-wrap{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:24px 28px 70px!important;
  display:block!important;
  background:#f6f8fb!important;
}
body.px-admin .admin-wrap > main{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
}
body.px-admin .admin-wrap > aside.side-card{
  position:fixed!important;
  left:0!important;
  top:0!important;
  bottom:0!important;
  width:292px!important;
  min-width:292px!important;
  max-width:292px!important;
  height:100vh!important;
  overflow:auto!important;
  z-index:1001!important;
  margin:0!important;
  border:0!important;
  border-radius:0!important;
  padding:18px!important;
  background:#061d38!important;
  box-shadow:0 24px 80px rgba(2,6,23,.38)!important;
  transform:translateX(-110%)!important;
  transition:transform .18s ease!important;
  pointer-events:none!important;
}
body.px-admin.px-cms-global-menu-open .admin-wrap > aside.side-card{
  display:block!important;
  visibility:visible!important;
  transform:translateX(0)!important;
  pointer-events:auto!important;
}
body.px-admin.px-cms-global-menu-open::before{
  content:"";
  position:fixed;
  inset:0;
  background:rgba(15,23,42,.42);
  z-index:1000;
}
body.px-admin .side-user-card{
  display:grid!important;
  grid-template-columns:44px minmax(0,1fr)!important;
  align-items:center!important;
  gap:10px!important;
  background:rgba(255,255,255,.07)!important;
  border:1px solid rgba(255,255,255,.12)!important;
  border-radius:14px!important;
  padding:12px!important;
  margin-bottom:14px!important;
}
body.px-admin .side-user-avatar{
  background:#0b63f6!important;
  color:#fff!important;
}
body.px-admin .side-user-copy small,
body.px-admin .side-user-copy span{
  color:#b8c7dc!important;
}
body.px-admin .side-user-copy strong{
  color:#fff!important;
}
body.px-admin .side-menu,
body.px-admin .cms-nav-v42,
body.px-admin .cms-nav-section,
body.px-admin .cms-nav-links{
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  display:grid!important;
  gap:8px!important;
  align-items:stretch!important;
  overflow:visible!important;
}
body.px-admin .cms-nav-title{
  display:block!important;
  color:#8da2bc!important;
  font-size:11px!important;
  font-weight:950!important;
  text-transform:uppercase!important;
  letter-spacing:.08em!important;
  margin:12px 4px 6px!important;
}
body.px-admin .cms-nav-external{
  display:block!important;
}
body.px-admin .cms-nav-links a{
  position:relative!important;
  width:100%!important;
  height:auto!important;
  min-height:42px!important;
  max-height:none!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:10px!important;
  padding:10px 12px!important;
  border-radius:12px!important;
  border:1px solid rgba(255,255,255,.09)!important;
  background:rgba(255,255,255,.05)!important;
  color:#eaf2ff!important;
  font-size:14px!important;
  line-height:1.2!important;
  font-weight:850!important;
  text-indent:0!important;
  white-space:normal!important;
  overflow:visible!important;
  text-decoration:none!important;
}
body.px-admin .cms-nav-links a:hover{
  background:rgba(255,255,255,.1)!important;
}
body.px-admin .cms-nav-links a.active{
  background:#0b7a43!important;
  border-color:#0b7a43!important;
  color:#fff!important;
}
body.px-admin .cms-nav-links a::before{
  position:static!important;
  transform:none!important;
  width:24px!important;
  height:24px!important;
  min-width:24px!important;
  display:grid!important;
  place-items:center!important;
  margin:0!important;
  padding:0!important;
  text-indent:0!important;
  color:inherit!important;
  font-size:18px!important;
  line-height:1!important;
}
body.px-inscripciones-fullscreen .ins-v103-hide-localbar{
  display:none!important;
}
body.px-inscripciones-fullscreen #tab-inscripciones.ins-v99-page{
  padding-top:0!important;
}
@media(max-width:980px){
  .cms-v103-topbar{
    grid-template-columns:auto minmax(0,1fr) auto;
    padding:10px 14px;
    gap:10px;
  }
  .cms-v103-brand strong{font-size:16px;}
  .cms-v103-brand em{display:none;}
  .cms-v103-public{display:none;}
  .cms-v103-user-copy{display:none;}
}
@media(max-width:720px){
  .cms-v103-topbar{
    grid-template-columns:auto minmax(0,1fr);
  }
  .cms-v103-brand span,
  .cms-v103-user,
  .cms-v103-logout{
    display:none!important;
  }
  body.px-admin .admin-wrap{
    padding:16px 12px 60px!important;
  }
  body.px-admin .admin-wrap > aside.side-card{
    width:min(292px,88vw)!important;
    min-width:0!important;
    max-width:88vw!important;
  }
}


/* ===== FASE5A104: compatibilidad de navegación admin y entrada en Bienvenida ===== */
body.px-admin .cms-v103-topbar{
  min-height:68px!important;
}
body.px-admin .cms-v103-brand span strong::after{
  content:"";
}
body.px-admin #tab-resumen.active{
  display:block!important;
}
body.px-admin .admin-section:not(.active){
  display:none;
}
body.px-admin .cms-nav-links a[href*="tab=resumen"].active::after{
  content:"";
}
body.px-admin .cms-v103-menu-toggle[aria-expanded="true"]{
  background:#0b63f6!important;
  color:#fff!important;
  border-color:#0b63f6!important;
}
@media(max-width:720px){
  body.px-admin .cms-v103-search input{font-size:13px!important;}
}


/* ===== FASE5A105: tablas admin sin columnas finales comprimidas ===== */
body.px-admin .course-list-table-wrap,
body.px-admin .cohort-table-wrap,
body.px-admin .professor-table-wrap,
body.px-admin .course-table-wrap,
body.px-admin .table-responsive{
  width:100%!important;
  max-width:100%!important;
  overflow-x:auto!important;
  overflow-y:visible!important;
  -webkit-overflow-scrolling:touch;
}
body.px-admin table.course-admin-table,
body.px-admin table.cohort-table,
body.px-admin table.professor-admin-table,
body.px-admin table.ins-v99-table{
  table-layout:auto!important;
  width:100%!important;
  min-width:980px!important;
  border-collapse:separate;
}
body.px-admin table.course-admin-table th,
body.px-admin table.course-admin-table td,
body.px-admin table.cohort-table th,
body.px-admin table.cohort-table td,
body.px-admin table.professor-admin-table th,
body.px-admin table.professor-admin-table td{
  white-space:normal!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
  vertical-align:top!important;
}
body.px-admin table.course-admin-table th:nth-last-child(1),
body.px-admin table.course-admin-table td:nth-last-child(1),
body.px-admin table.cohort-table th:nth-last-child(1),
body.px-admin table.cohort-table td:nth-last-child(1),
body.px-admin table.professor-admin-table th:nth-last-child(1),
body.px-admin table.professor-admin-table td:nth-last-child(1){
  width:170px!important;
  min-width:170px!important;
  max-width:none!important;
  white-space:nowrap!important;
  text-align:left!important;
}
body.px-admin table.course-admin-table th:nth-last-child(2),
body.px-admin table.course-admin-table td:nth-last-child(2),
body.px-admin table.cohort-table th:nth-last-child(2),
body.px-admin table.cohort-table td:nth-last-child(2),
body.px-admin table.professor-admin-table th:nth-last-child(2),
body.px-admin table.professor-admin-table td:nth-last-child(2){
  width:130px!important;
  min-width:130px!important;
  max-width:none!important;
  white-space:nowrap!important;
  text-align:left!important;
}
body.px-admin .cohort-table th:nth-child(1),
body.px-admin .cohort-table td:nth-child(1){
  min-width:230px!important;
}
body.px-admin .cohort-table th:nth-child(2),
body.px-admin .cohort-table td:nth-child(2){
  min-width:150px!important;
}
body.px-admin .cohort-table th:nth-child(3),
body.px-admin .cohort-table td:nth-child(3){
  min-width:260px!important;
}
body.px-admin .cohort-table th:nth-child(4),
body.px-admin .cohort-table td:nth-child(4){
  min-width:120px!important;
  white-space:nowrap!important;
}
body.px-admin .cohort-table th:nth-child(5),
body.px-admin .cohort-table td:nth-child(5),
body.px-admin .cohort-table th:nth-child(6),
body.px-admin .cohort-table td:nth-child(6){
  min-width:100px!important;
  white-space:nowrap!important;
}
body.px-admin .course-status-pill,
body.px-admin .schedule-count-pill,
body.px-admin .cohort-action-row,
body.px-admin .teacher-actions{
  white-space:nowrap!important;
}
body.px-admin .cohort-action-row,
body.px-admin .teacher-actions{
  display:flex!important;
  flex-wrap:nowrap!important;
  gap:8px!important;
  align-items:center!important;
}
body.px-admin .cohort-action-row .btn-light,
body.px-admin .teacher-actions .btn-light,
body.px-admin table.course-admin-table td:nth-last-child(1) .btn-light{
  display:inline-flex!important;
  width:auto!important;
  min-width:86px!important;
  justify-content:center!important;
  white-space:nowrap!important;
}
body.px-admin .cohort-table thead th:nth-last-child(2),
body.px-admin .cohort-table thead th:nth-last-child(1){
  writing-mode:horizontal-tb!important;
  text-orientation:mixed!important;
  letter-spacing:normal!important;
}
@media(max-width:1120px){
  body.px-admin table.course-admin-table,
  body.px-admin table.cohort-table,
  body.px-admin table.professor-admin-table{
    width:max-content!important;
    min-width:1120px!important;
  }
}


/* ===== FASE5A106: correcciones acumuladas Admin CMS ===== */

/* Grupos / Cohortes: tabla con columnas mejor distribuidas hacia la izquierda */
body.px-admin .cohort-table-wrap{
  overflow-x:auto!important;
  overflow-y:visible!important;
}
body.px-admin table.cohort-table{
  table-layout:fixed!important;
  width:100%!important;
  min-width:1120px!important;
}
body.px-admin .cohort-table th,
body.px-admin .cohort-table td{
  text-align:left!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
}
body.px-admin .cohort-table th:nth-child(1),
body.px-admin .cohort-table td:nth-child(1){
  width:24%!important;
  min-width:210px!important;
}
body.px-admin .cohort-table th:nth-child(2),
body.px-admin .cohort-table td:nth-child(2){
  width:14%!important;
  min-width:120px!important;
}
body.px-admin .cohort-table th:nth-child(3),
body.px-admin .cohort-table td:nth-child(3){
  width:23%!important;
  min-width:250px!important;
  padding-left:12px!important;
  text-align:left!important;
}
body.px-admin .cohort-table th:nth-child(4),
body.px-admin .cohort-table td:nth-child(4){
  width:10%!important;
  min-width:108px!important;
  padding-left:10px!important;
  text-align:left!important;
  white-space:nowrap!important;
}
body.px-admin .cohort-table th:nth-child(5),
body.px-admin .cohort-table td:nth-child(5){
  width:8%!important;
  min-width:88px!important;
  padding-left:10px!important;
  text-align:left!important;
  white-space:nowrap!important;
}
body.px-admin .cohort-table th:nth-child(6),
body.px-admin .cohort-table td:nth-child(6){
  width:8%!important;
  min-width:88px!important;
  padding-left:10px!important;
  text-align:left!important;
  white-space:nowrap!important;
}
body.px-admin .cohort-table th:nth-child(7),
body.px-admin .cohort-table td:nth-child(7){
  width:10%!important;
  min-width:118px!important;
  padding-left:10px!important;
  text-align:left!important;
  white-space:nowrap!important;
}
body.px-admin .cohort-table th:nth-child(8),
body.px-admin .cohort-table td:nth-child(8){
  width:13%!important;
  min-width:180px!important;
  padding-left:10px!important;
  padding-right:12px!important;
  text-align:left!important;
  white-space:nowrap!important;
}
body.px-admin .cohort-schedule-professor-cell,
body.px-admin .cohort-schedule-professor-cell *{
  text-align:left!important;
}
body.px-admin .cohort-schedule-professor-cell{
  display:table-cell!important;
  vertical-align:top!important;
}
body.px-admin .cohort-schedule-professor-cell .schedule-line,
body.px-admin .cohort-schedule-professor-cell span,
body.px-admin .cohort-schedule-professor-cell small{
  margin-left:0!important;
  justify-content:flex-start!important;
  align-items:flex-start!important;
}
body.px-admin .cohort-schedule-professor-cell .schedule-line,
body.px-admin .cohort-schedule-professor-cell strong,
body.px-admin .cohort-schedule-professor-cell b{
  max-width:100%!important;
}
body.px-admin .cohort-schedule-professor-cell .schedule-line,
body.px-admin .cohort-schedule-professor-cell .schedule-badge,
body.px-admin .cohort-schedule-professor-cell .pill{
  margin-left:0!important;
}
body.px-admin .cohort-action-row{
  justify-content:flex-start!important;
  margin-left:0!important;
  transform:translateX(-10px);
}
body.px-admin .cohort-action-row .muted{
  white-space:nowrap!important;
}
body.px-admin .cohort-action-row .inline-action-form{
  display:inline-flex!important;
  margin:0!important;
}

/* Inscripciones: KPIs pegados debajo del encabezado del módulo */
body.px-admin #tab-inscripciones .ins-v99-head{
  margin-bottom:10px!important;
}
body.px-admin #tab-inscripciones .ins-v106-kpis-under-title,
body.px-admin #tab-inscripciones .ins-v99-kpis{
  margin-top:0!important;
  margin-bottom:18px!important;
}
body.px-admin #tab-inscripciones .ins-v99-tabs{
  margin-top:0!important;
}


/* ===== FASE5A107: reparación real columnas grupos / horario sin paréntesis ===== */
body.px-admin .cohort-table-wrap{
  overflow-x:auto!important;
}
body.px-admin table.cohort-table{
  table-layout:fixed!important;
  width:100%!important;
  min-width:1080px!important;
}
body.px-admin .cohort-table th,
body.px-admin .cohort-table td{
  text-align:left!important;
  vertical-align:top!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
}
body.px-admin .cohort-table th:nth-child(1), body.px-admin .cohort-table td:nth-child(1){width:23%!important;min-width:205px!important;}
body.px-admin .cohort-table th:nth-child(2), body.px-admin .cohort-table td:nth-child(2){width:13%!important;min-width:115px!important;}
body.px-admin .cohort-table th:nth-child(3), body.px-admin .cohort-table td:nth-child(3){
  width:25%!important;
  min-width:270px!important;
  padding-left:0!important;
  transform:translateX(-18px);
}
body.px-admin .cohort-table th:nth-child(4), body.px-admin .cohort-table td:nth-child(4),
body.px-admin .cohort-table th:nth-child(5), body.px-admin .cohort-table td:nth-child(5),
body.px-admin .cohort-table th:nth-child(6), body.px-admin .cohort-table td:nth-child(6),
body.px-admin .cohort-table th:nth-child(7), body.px-admin .cohort-table td:nth-child(7){
  padding-left:0!important;
  transform:translateX(-18px);
  white-space:nowrap!important;
}
body.px-admin .cohort-table th:nth-child(4), body.px-admin .cohort-table td:nth-child(4){width:9%!important;min-width:105px!important;}
body.px-admin .cohort-table th:nth-child(5), body.px-admin .cohort-table td:nth-child(5){width:7%!important;min-width:80px!important;}
body.px-admin .cohort-table th:nth-child(6), body.px-admin .cohort-table td:nth-child(6){width:8%!important;min-width:86px!important;}
body.px-admin .cohort-table th:nth-child(7), body.px-admin .cohort-table td:nth-child(7){width:9%!important;min-width:112px!important;}
body.px-admin .cohort-table th:nth-child(8), body.px-admin .cohort-table td:nth-child(8){
  width:13%!important;
  min-width:170px!important;
  padding-left:0!important;
  transform:translateX(-24px);
  white-space:nowrap!important;
}
body.px-admin .cohort-schedule-professor-cell,
body.px-admin .cohort-schedule-professor-cell .admin-schedule-lines,
body.px-admin .cohort-schedule-professor-cell .admin-schedule-lines span,
body.px-admin .cohort-schedule-professor-cell span,
body.px-admin .cohort-schedule-professor-cell small{
  text-align:left!important;
  margin-left:0!important;
  justify-content:flex-start!important;
  align-items:flex-start!important;
}
body.px-admin .cohort-schedule-professor-cell .admin-schedule-lines{
  display:block!important;
  width:100%!important;
}
body.px-admin .cohort-schedule-professor-cell .admin-schedule-lines span{
  display:inline-block!important;
  max-width:100%!important;
  white-space:normal!important;
}
body.px-admin .cohort-action-row{
  display:flex!important;
  flex-wrap:nowrap!important;
  gap:8px!important;
  justify-content:flex-start!important;
  align-items:center!important;
  transform:none!important;
}
body.px-admin .cohort-action-row .inline-action-form{
  margin:0!important;
}


/* ===== FASE5A108: mover Día + horario 7 espacios a la izquierda ===== */
body.px-admin .cohort-table th:nth-child(3),
body.px-admin .cohort-table td:nth-child(3){
  transform:translateX(-42px)!important;
  padding-left:0!important;
  text-align:left!important;
}
body.px-admin .cohort-schedule-professor-cell,
body.px-admin .cohort-schedule-professor-cell .admin-schedule-lines,
body.px-admin .cohort-schedule-professor-cell .admin-schedule-lines span,
body.px-admin .cohort-schedule-professor-cell span,
body.px-admin .cohort-schedule-professor-cell small{
  text-align:left!important;
  margin-left:0!important;
  padding-left:0!important;
}


/* ===== FASE5A109: solo módulo activo visible en Admin CMS ===== */
body.px-admin main > section.admin-section{
  display:none!important;
}
body.px-admin main > section.admin-section.active{
  display:block!important;
}
body.px-admin main > section.admin-section:not(.active){
  visibility:hidden!important;
  height:0!important;
  min-height:0!important;
  max-height:0!important;
  overflow:hidden!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  box-shadow:none!important;
}


/* ===== FASE5A110: Grupos sin columna Cohorte y acciones completas ===== */
body.px-admin table.cohort-table{
  table-layout:fixed!important;
  width:100%!important;
  min-width:1180px!important;
}
body.px-admin .cohort-table th,
body.px-admin .cohort-table td{
  text-align:left!important;
  vertical-align:top!important;
}
body.px-admin .cohort-table th:nth-child(1),
body.px-admin .cohort-table td:nth-child(1){
  width:27%!important;
  min-width:250px!important;
}
body.px-admin .cohort-table th:nth-child(2),
body.px-admin .cohort-table td:nth-child(2){
  width:25%!important;
  min-width:290px!important;
  transform:none!important;
  padding-left:0!important;
}
body.px-admin .cohort-table th:nth-child(3),
body.px-admin .cohort-table td:nth-child(3){
  width:11%!important;
  min-width:120px!important;
  transform:none!important;
  padding-left:0!important;
  white-space:nowrap!important;
}
body.px-admin .cohort-table th:nth-child(4),
body.px-admin .cohort-table td:nth-child(4){
  width:7%!important;
  min-width:80px!important;
  transform:none!important;
  padding-left:0!important;
  white-space:nowrap!important;
}
body.px-admin .cohort-table th:nth-child(5),
body.px-admin .cohort-table td:nth-child(5){
  width:9%!important;
  min-width:95px!important;
  transform:none!important;
  padding-left:0!important;
  white-space:nowrap!important;
}
body.px-admin .cohort-table th:nth-child(6),
body.px-admin .cohort-table td:nth-child(6){
  width:10%!important;
  min-width:115px!important;
  transform:none!important;
  padding-left:0!important;
  white-space:nowrap!important;
}
body.px-admin .cohort-table th:nth-child(7),
body.px-admin .cohort-table td:nth-child(7){
  width:21%!important;
  min-width:260px!important;
  transform:none!important;
  padding-left:0!important;
  white-space:nowrap!important;
}
body.px-admin .cohort-actions-cell{
  white-space:nowrap!important;
}
body.px-admin .cohort-action-row-v110{
  display:flex!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:8px!important;
  transform:none!important;
}
body.px-admin .cohort-action-row-v110 .inline-action-form{
  margin:0!important;
  display:inline-flex!important;
}
body.px-admin .cohort-action-row-v110 .compact-action{
  min-width:74px!important;
  padding:10px 12px!important;
  min-height:38px!important;
  border-radius:10px!important;
  font-size:13px!important;
  font-weight:900!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-decoration:none!important;
  white-space:nowrap!important;
}
body.px-admin .cohort-action-row-v110 .compact-warning{
  border-color:#f2c94c!important;
  color:#7a4b00!important;
  background:#fffaf0!important;
}
body.px-admin .cohort-action-row-v110 .compact-danger{
  border-color:#e7b8b8!important;
  color:#b42318!important;
  background:#fff!important;
}
body.px-admin .cohort-schedule-professor-cell{
  transform:none!important;
  padding-left:0!important;
}


/* ===== FASE5A111: Grupos sin scroll horizontal y Día + horario 5 espacios a la derecha ===== */
body.px-admin.course-focus-mode #tab-cursos .course-list-table-wrap.cohort-table-wrap,
body.px-admin #tab-cursos .course-list-table-wrap.cohort-table-wrap{
  width:100%!important;
  max-width:100%!important;
  overflow-x:hidden!important;
  overflow-y:visible!important;
}
body.px-admin.course-focus-mode #tab-cursos table.cohort-table,
body.px-admin #tab-cursos table.cohort-table{
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  table-layout:fixed!important;
}
body.px-admin.course-focus-mode #tab-cursos .cohort-table th,
body.px-admin.course-focus-mode #tab-cursos .cohort-table td,
body.px-admin #tab-cursos .cohort-table th,
body.px-admin #tab-cursos .cohort-table td{
  box-sizing:border-box!important;
  overflow:hidden!important;
  text-overflow:clip!important;
}

/* 7 columnas: Curso | Día + horario | Inicio | Cupos | Reservas | Estado | Acción */
body.px-admin.course-focus-mode #tab-cursos .cohort-table th:nth-child(1),
body.px-admin.course-focus-mode #tab-cursos .cohort-table td:nth-child(1),
body.px-admin #tab-cursos .cohort-table th:nth-child(1),
body.px-admin #tab-cursos .cohort-table td:nth-child(1){
  width:20%!important;
  min-width:0!important;
  max-width:none!important;
}
body.px-admin.course-focus-mode #tab-cursos .cohort-table th:nth-child(2),
body.px-admin.course-focus-mode #tab-cursos .cohort-table td:nth-child(2),
body.px-admin #tab-cursos .cohort-table th:nth-child(2),
body.px-admin #tab-cursos .cohort-table td:nth-child(2){
  width:23%!important;
  min-width:0!important;
  max-width:none!important;
  padding-left:30px!important;
  transform:none!important;
  text-align:left!important;
}
body.px-admin.course-focus-mode #tab-cursos .cohort-table th:nth-child(3),
body.px-admin.course-focus-mode #tab-cursos .cohort-table td:nth-child(3),
body.px-admin #tab-cursos .cohort-table th:nth-child(3),
body.px-admin #tab-cursos .cohort-table td:nth-child(3){
  width:11%!important;
  min-width:0!important;
  max-width:none!important;
  transform:none!important;
  white-space:nowrap!important;
}
body.px-admin.course-focus-mode #tab-cursos .cohort-table th:nth-child(4),
body.px-admin.course-focus-mode #tab-cursos .cohort-table td:nth-child(4),
body.px-admin #tab-cursos .cohort-table th:nth-child(4),
body.px-admin #tab-cursos .cohort-table td:nth-child(4){
  width:7%!important;
  min-width:0!important;
  max-width:none!important;
  transform:none!important;
  white-space:nowrap!important;
}
body.px-admin.course-focus-mode #tab-cursos .cohort-table th:nth-child(5),
body.px-admin.course-focus-mode #tab-cursos .cohort-table td:nth-child(5),
body.px-admin #tab-cursos .cohort-table th:nth-child(5),
body.px-admin #tab-cursos .cohort-table td:nth-child(5){
  width:8%!important;
  min-width:0!important;
  max-width:none!important;
  transform:none!important;
  white-space:nowrap!important;
}
body.px-admin.course-focus-mode #tab-cursos .cohort-table th:nth-child(6),
body.px-admin.course-focus-mode #tab-cursos .cohort-table td:nth-child(6),
body.px-admin #tab-cursos .cohort-table th:nth-child(6),
body.px-admin #tab-cursos .cohort-table td:nth-child(6){
  width:10%!important;
  min-width:0!important;
  max-width:none!important;
  transform:none!important;
  white-space:nowrap!important;
}
body.px-admin.course-focus-mode #tab-cursos .cohort-table th:nth-child(7),
body.px-admin.course-focus-mode #tab-cursos .cohort-table td:nth-child(7),
body.px-admin #tab-cursos .cohort-table th:nth-child(7),
body.px-admin #tab-cursos .cohort-table td:nth-child(7){
  width:21%!important;
  min-width:0!important;
  max-width:none!important;
  transform:none!important;
  white-space:normal!important;
}

/* Acciones compactas para que quepan sin scroll */
body.px-admin.course-focus-mode #tab-cursos .cohort-action-row-v110,
body.px-admin #tab-cursos .cohort-action-row-v110{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:6px!important;
  align-items:flex-start!important;
  justify-content:flex-start!important;
  max-width:100%!important;
}
body.px-admin.course-focus-mode #tab-cursos .cohort-action-row-v110 .compact-action,
body.px-admin #tab-cursos .cohort-action-row-v110 .compact-action{
  min-width:0!important;
  width:auto!important;
  padding:8px 10px!important;
  min-height:34px!important;
  font-size:12px!important;
  line-height:1!important;
}
body.px-admin.course-focus-mode #tab-cursos .cohort-actions-cell,
body.px-admin #tab-cursos .cohort-actions-cell{
  white-space:normal!important;
  overflow:visible!important;
}

/* Textos internos controlados */
body.px-admin.course-focus-mode #tab-cursos .cohort-table .course-name-cell strong,
body.px-admin #tab-cursos .cohort-table .course-name-cell strong{
  display:block!important;
  max-width:100%!important;
  line-height:1.35!important;
}
body.px-admin.course-focus-mode #tab-cursos .cohort-schedule-professor-cell,
body.px-admin #tab-cursos .cohort-schedule-professor-cell{
  padding-left:30px!important;
  transform:none!important;
}
body.px-admin.course-focus-mode #tab-cursos .cohort-schedule-professor-cell .admin-schedule-lines span,
body.px-admin #tab-cursos .cohort-schedule-professor-cell .admin-schedule-lines span{
  white-space:normal!important;
  max-width:100%!important;
}
@media(max-width:1180px){
  body.px-admin.course-focus-mode #tab-cursos .cohort-action-row-v110 .compact-action,
  body.px-admin #tab-cursos .cohort-action-row-v110 .compact-action{
    padding:7px 8px!important;
    font-size:11.5px!important;
  }
}


/* ===== FASE5A112: Grupos sin encabezados redundantes ===== */
body.px-admin #tab-cursos .groups-page-box-v112{
  padding-top:20px!important;
}
body.px-admin #tab-cursos .groups-page-box-v112 > .course-page-headline,
body.px-admin #tab-cursos .groups-page-box-v112 .cohort-simple-head{
  display:none!important;
}
body.px-admin #tab-cursos .groups-mini-stats-v112{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:10px!important;
  margin:0 0 18px!important;
  padding:0!important;
}
body.px-admin #tab-cursos .groups-mini-stats-v112 span{
  display:inline-flex!important;
  align-items:center!important;
  gap:8px!important;
  min-height:38px!important;
  padding:8px 14px!important;
  border:1px solid #dbe5f1!important;
  border-radius:999px!important;
  background:#fff!important;
  color:#344054!important;
  font-size:14px!important;
  font-weight:700!important;
}
body.px-admin #tab-cursos .groups-mini-stats-v112 strong{
  font-size:16px!important;
  color:#101828!important;
}


/* ===== FASE5A113: grupos con histórico y formulario limpio ===== */
body.px-admin #tab-cursos .cohort-simple-form .label-inline-note{
  gap:7px!important;
}
body.px-admin #tab-cursos .cohort-simple-form .label-inline-note small{
  display:inline!important;
  font-size:inherit!important;
  font-weight:700!important;
  color:#667085!important;
  margin-left:4px!important;
}
body.px-admin #tab-cursos .cohort-simple-form .label-inline-note{
  display:block!important;
  font-weight:900!important;
}
body.px-admin #tab-cursos .cohort-simple-form .label-inline-note select{
  margin-top:7px!important;
}


/* ===== FASE5A114: botones uniformes y logo original de marca ===== */

/* Logo original completo en barra superior CMS */
.cms-v103-brand.cms-v114-brand-original{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  min-width:220px!important;
  max-width:300px!important;
}
.cms-v103-brand.cms-v114-brand-original img{
  width:170px!important;
  height:auto!important;
  max-height:32px!important;
  object-fit:contain!important;
  object-position:left center!important;
  display:block!important;
}
.cms-v103-brand.cms-v114-brand-original .cms-v114-cms-badge{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  height:24px!important;
  padding:0 8px!important;
  border-radius:999px!important;
  background:#eaf2ff!important;
  color:#0b63f6!important;
  font-size:12px!important;
  font-weight:950!important;
  font-style:normal!important;
  letter-spacing:.08em!important;
}

/* Botones del admin: tamaño base uniforme */
body.px-admin .btn-light,
body.px-admin .btn-admin,
body.px-admin .btn-danger,
body.px-admin button.btn-light,
body.px-admin a.btn-light,
body.px-admin .footer-delete-row button,
body.px-admin .footer-delete-column button{
  min-height:42px!important;
  padding:10px 16px!important;
  border-radius:11px!important;
  font-size:14px!important;
  font-weight:900!important;
  line-height:1!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  text-decoration:none!important;
  white-space:nowrap!important;
  box-sizing:border-box!important;
}

/* Acciones de tablas: mismo tamaño para Editar / Archivar / Eliminar / Cancelar */
body.px-admin table .btn-light,
body.px-admin table .btn-admin,
body.px-admin table .btn-danger,
body.px-admin table button.btn-light,
body.px-admin table a.btn-light,
body.px-admin .course-admin-table .btn-light,
body.px-admin .course-admin-table .btn-admin,
body.px-admin .course-admin-table .btn-danger,
body.px-admin .course-admin-table button,
body.px-admin .course-admin-table a.btn-light{
  width:116px!important;
  min-width:116px!important;
  max-width:116px!important;
  min-height:44px!important;
  height:44px!important;
  padding:0 12px!important;
  border-radius:12px!important;
  font-size:14px!important;
  font-weight:900!important;
  line-height:1!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  white-space:nowrap!important;
}

/* En tablas con muchas acciones, mantener equilibrio sin tamaños distintos */
body.px-admin .cohort-action-row-v110 .compact-action,
body.px-admin #tab-cursos .cohort-action-row-v110 .compact-action,
body.px-admin .teacher-actions .btn-light,
body.px-admin .course-action-row .btn-light{
  width:98px!important;
  min-width:98px!important;
  max-width:98px!important;
  height:40px!important;
  min-height:40px!important;
  padding:0 10px!important;
  font-size:13px!important;
  border-radius:11px!important;
}

/* Botón Archivar y Editar en listado de cursos: mismo ancho visual */
body.px-admin #tab-cursos .course-admin-table td:nth-last-child(1) .btn-light,
body.px-admin #tab-cursos .course-admin-table td:nth-last-child(1) button,
body.px-admin #tab-cursos .course-admin-table td:nth-last-child(2) .btn-light,
body.px-admin #tab-cursos .course-admin-table td:nth-last-child(2) button{
  width:116px!important;
  min-width:116px!important;
  max-width:116px!important;
}

/* Evita que formularios inline alteren el tamaño del botón */
body.px-admin .inline-action-form,
body.px-admin .footer-delete-row,
body.px-admin .footer-delete-column{
  display:inline-flex!important;
  align-items:center!important;
  margin:0!important;
  padding:0!important;
}
@media(max-width:720px){
  .cms-v103-brand.cms-v114-brand-original{
    min-width:auto!important;
  }
  .cms-v103-brand.cms-v114-brand-original img{
    width:138px!important;
    max-height:28px!important;
  }
  .cms-v103-brand.cms-v114-brand-original .cms-v114-cms-badge{
    display:none!important;
  }
}


/* ===== FASE5A115: encabezados inscripciones más grandes ===== */
body.px-admin #tab-inscripciones .ins-v99-tabs a{
  font-size:16px!important;
  min-height:56px!important;
  padding:0 24px!important;
}
body.px-admin #tab-inscripciones .ins-v99-tabs a b{
  font-size:13px!important;
}
body.px-admin #tab-inscripciones .ins-v99-table th{
  font-size:15px!important;
  line-height:1.2!important;
  font-weight:900!important;
}


/* ===== FASE5A116: cursos con eliminar solo para borradores ===== */
body.px-admin #tab-cursos .course-delete-cell{
  white-space:nowrap!important;
}
body.px-admin #tab-cursos .course-delete-locked{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:116px!important;
  height:42px!important;
  border-radius:12px!important;
  background:#f8fafc!important;
  border:1px dashed #dbe5f1!important;
  color:#667085!important;
  font-weight:800!important;
  font-size:12px!important;
}
body.px-admin #tab-cursos .course-delete-draft{
  border-color:#f3b7b0!important;
  color:#b42318!important;
  background:#fff!important;
}
body.px-admin #tab-cursos .course-admin-table th:nth-last-child(1),
body.px-admin #tab-cursos .course-admin-table td:nth-last-child(1),
body.px-admin #tab-cursos .course-admin-table th:nth-last-child(2),
body.px-admin #tab-cursos .course-admin-table td:nth-last-child(2),
body.px-admin #tab-cursos .course-admin-table th:nth-last-child(3),
body.px-admin #tab-cursos .course-admin-table td:nth-last-child(3){
  min-width:132px!important;
  width:132px!important;
  text-align:left!important;
}


/* ===== FASE5A117: cursos con estados Publicado / Borrador / Cancelado ===== */
body.px-admin #tab-cursos .course-bulk-form-v117{
  display:block!important;
}
body.px-admin #tab-cursos .course-filter-v117{
  margin-bottom:14px!important;
}
body.px-admin #tab-cursos .course-bulk-toolbar-v117{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:14px!important;
  flex-wrap:wrap!important;
  padding:14px 16px!important;
  margin:0 0 14px!important;
  border:1px solid #dbe5f1!important;
  border-radius:14px!important;
  background:#fff!important;
}
body.px-admin #tab-cursos .course-bulk-counter{
  display:inline-flex!important;
  align-items:center!important;
  gap:6px!important;
  color:#344054!important;
  font-weight:850!important;
}
body.px-admin #tab-cursos .course-bulk-counter strong{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:28px!important;
  height:28px!important;
  border-radius:999px!important;
  background:#eef4ff!important;
  color:#0b63f6!important;
}
body.px-admin #tab-cursos .course-bulk-actions{
  display:flex!important;
  gap:10px!important;
  flex-wrap:wrap!important;
}
body.px-admin #tab-cursos .courses-list-v117{
  table-layout:fixed!important;
}
body.px-admin #tab-cursos .courses-list-v117 .course-select-col{
  width:54px!important;
  min-width:54px!important;
  text-align:center!important;
}
body.px-admin #tab-cursos .courses-list-v117 input[type="checkbox"]{
  width:18px!important;
  height:18px!important;
  accent-color:#0b63f6!important;
  cursor:pointer!important;
}
body.px-admin .course-status-pill.status-cancelled,
body.px-admin .course-status-pill.status-archived{
  background:#fff1f0!important;
  color:#b42318!important;
  border:1px solid #f3b7b0!important;
}
body.px-admin .course-status-pill.status-draft{
  background:#fff7e6!important;
  color:#b54708!important;
  border:1px solid #fedf89!important;
}
body.px-admin .course-status-pill.status-published{
  background:#ecfdf3!important;
  color:#067647!important;
  border:1px solid #abefc6!important;
}


/* ===== FASE5A118: encabezado de cursos unificado con modelo de reservas ===== */
body.px-admin #tab-cursos .course-filter-v118{
  grid-template-columns:minmax(260px,1.45fr) minmax(220px,.8fr) auto!important;
  padding:14px!important;
  border-radius:13px!important;
  margin-bottom:14px!important;
}
body.px-admin #tab-cursos .course-filter-v118 label,
body.px-admin #tab-cursos .course-filter-v118 .filter-search{
  display:grid!important;
  gap:6px!important;
  color:#102034!important;
  font-size:12px!important;
  font-weight:900!important;
}
body.px-admin #tab-cursos .course-filter-v118 input,
body.px-admin #tab-cursos .course-filter-v118 select{
  min-height:38px!important;
  font-size:13px!important;
}
body.px-admin #tab-cursos .course-filter-v118 .filter-actions{
  justify-content:flex-end!important;
}
body.px-admin #tab-cursos .course-bulk-bar-v118{
  margin:0 0 14px!important;
  padding:12px 14px!important;
  border:1px solid #dfe7e2!important;
  border-radius:13px!important;
  background:#fff!important;
}
body.px-admin #tab-cursos .course-bulk-bar-v118 .bulk-selected-count{
  color:#475467!important;
  font-size:13px!important;
  font-weight:850!important;
}
body.px-admin #tab-cursos .course-bulk-bar-v118 .bulk-selected-count b{
  color:#0b63f6!important;
  font-weight:950!important;
}
body.px-admin #tab-cursos .course-bulk-bar-v118 select{
  min-width:220px!important;
}
body.px-admin #tab-cursos .course-list-table-wrap{
  margin-top:0!important;
}
body.px-admin #tab-cursos .courses-list-v117 .course-select-col{
  width:48px!important;
  min-width:48px!important;
  text-align:center!important;
}
@media(max-width:1120px){
  body.px-admin #tab-cursos .course-filter-v118{
    grid-template-columns:1fr 1fr!important;
  }
  body.px-admin #tab-cursos .course-filter-v118 .filter-search{
    grid-column:1 / -1!important;
  }
  body.px-admin #tab-cursos .course-filter-v118 .filter-actions{
    grid-column:1 / -1!important;
    justify-content:flex-start!important;
  }
}
@media(max-width:700px){
  body.px-admin #tab-cursos .course-filter-v118{
    grid-template-columns:1fr!important;
  }
  body.px-admin #tab-cursos .course-bulk-bar-v118{
    align-items:stretch!important;
  }
  body.px-admin #tab-cursos .course-bulk-bar-v118 select,
  body.px-admin #tab-cursos .course-bulk-bar-v118 .btn-admin,
  body.px-admin #tab-cursos .course-bulk-bar-v118 .clear-res-selection{
    width:100%!important;
  }
}


/* ===== FASE5A119: Cursos alineado al estándar de Reservas ===== */
body.px-admin #tab-cursos .course-bulk-form-v119{
  display:grid!important;
  gap:14px!important;
}
body.px-admin #tab-cursos .course-controls-standard{
  width:100%!important;
  box-sizing:border-box!important;
}
body.px-admin #tab-cursos .course-filter-v118.course-controls-standard{
  display:grid!important;
  grid-template-columns:minmax(260px,1.45fr) minmax(220px,.7fr) auto!important;
  gap:12px!important;
  align-items:end!important;
  padding:14px!important;
  background:#fff!important;
  border:1px solid #dfe7e2!important;
  border-radius:14px!important;
  margin:0!important;
}
body.px-admin #tab-cursos .course-filter-v118.course-controls-standard label,
body.px-admin #tab-cursos .course-filter-v118.course-controls-standard .filter-search{
  display:grid!important;
  gap:6px!important;
  color:#102034!important;
  font-size:12px!important;
  font-weight:900!important;
}
body.px-admin #tab-cursos .course-filter-v118.course-controls-standard input,
body.px-admin #tab-cursos .course-filter-v118.course-controls-standard select{
  min-height:42px!important;
  width:100%!important;
  border:1px solid #cfd8d3!important;
  border-radius:10px!important;
  padding:9px 11px!important;
  background:#fff!important;
  color:#102034!important;
  font-size:14px!important;
  font-weight:700!important;
}
body.px-admin #tab-cursos .course-filter-v118.course-controls-standard .filter-actions{
  display:flex!important;
  gap:8px!important;
  align-items:center!important;
  justify-content:flex-end!important;
}
body.px-admin #tab-cursos .course-bulk-bar-v118.course-controls-standard{
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
  flex-wrap:wrap!important;
  padding:14px 18px!important;
  background:#fff!important;
  border:1px solid #dfe7e2!important;
  border-radius:14px!important;
  margin:0!important;
}
body.px-admin #tab-cursos .course-bulk-bar-v118.course-controls-standard .select-all-reservas{
  display:inline-flex!important;
  align-items:center!important;
  gap:8px!important;
  color:#344054!important;
  font-size:14px!important;
  font-weight:850!important;
  margin-right:auto!important;
}
body.px-admin #tab-cursos .course-bulk-bar-v118.course-controls-standard .bulk-selected-count{
  color:#475467!important;
  font-size:14px!important;
  font-weight:850!important;
  min-width:150px!important;
}
body.px-admin #tab-cursos .course-bulk-bar-v118.course-controls-standard .bulk-selected-count b{
  color:#0b63f6!important;
  font-weight:950!important;
}
body.px-admin #tab-cursos .course-bulk-bar-v118.course-controls-standard select{
  min-height:42px!important;
  min-width:260px!important;
  border:1px solid #cfd8d3!important;
  border-radius:10px!important;
  padding:9px 11px!important;
  background:#fff!important;
  color:#102034!important;
  font-weight:800!important;
}
body.px-admin #tab-cursos .course-bulk-bar-v118.course-controls-standard .btn-admin,
body.px-admin #tab-cursos .course-bulk-bar-v118.course-controls-standard .btn-light{
  min-height:42px!important;
  padding:9px 18px!important;
}
body.px-admin #tab-cursos .course-list-table-wrap{
  margin-top:0!important;
}
body.px-admin #tab-cursos .courses-list-v117{
  border-radius:14px!important;
  overflow:hidden!important;
}
body.px-admin #tab-cursos .courses-list-v117 .course-select-col{
  width:52px!important;
  min-width:52px!important;
  max-width:52px!important;
  text-align:center!important;
}
body.px-admin #tab-cursos .courses-list-v117 .course-select-col input[type="checkbox"],
body.px-admin #tab-cursos .course-bulk-bar-v118 input[type="checkbox"]{
  width:18px!important;
  height:18px!important;
  accent-color:#07863b!important;
}
@media(max-width:980px){
  body.px-admin #tab-cursos .course-filter-v118.course-controls-standard{
    grid-template-columns:1fr!important;
  }
  body.px-admin #tab-cursos .course-filter-v118.course-controls-standard .filter-actions{
    justify-content:flex-start!important;
  }
  body.px-admin #tab-cursos .course-bulk-bar-v118.course-controls-standard{
    align-items:stretch!important;
  }
  body.px-admin #tab-cursos .course-bulk-bar-v118.course-controls-standard .select-all-reservas,
  body.px-admin #tab-cursos .course-bulk-bar-v118.course-controls-standard .bulk-selected-count,
  body.px-admin #tab-cursos .course-bulk-bar-v118.course-controls-standard select,
  body.px-admin #tab-cursos .course-bulk-bar-v118.course-controls-standard button{
    width:100%!important;
    margin-right:0!important;
  }
}


/* ===== FASE5A120: menú admin sin sombra bloqueante ni congelamiento ===== */
body.px-admin.px-cms-global-menu-open::before,
body.px-admin.px-cms-rail-open::before,
body.px-reservas-fullscreen.px-cms-global-menu-open::before,
body.px-reservas-fullscreen.px-cms-rail-open::before,
body.px-inscripciones-fullscreen.px-cms-global-menu-open::before,
body.px-inscripciones-fullscreen.px-cms-rail-open::before{
  content:none!important;
  display:none!important;
  background:transparent!important;
  pointer-events:none!important;
}
body.px-admin.px-cms-global-menu-open,
body.px-admin.px-cms-rail-open{
  overflow:auto!important;
}
body.px-admin.px-cms-global-menu-open .admin-wrap > aside.side-card,
body.px-admin.px-cms-rail-open .admin-wrap > aside.side-card,
html.px-reservas-fullscreen-html body.px-admin.px-cms-global-menu-open .admin-wrap > aside.side-card,
html.px-reservas-fullscreen-html body.px-admin.px-cms-rail-open .admin-wrap > aside.side-card,
body.px-reservas-fullscreen.px-cms-global-menu-open .admin-wrap > aside.side-card,
body.px-reservas-fullscreen.px-cms-rail-open .admin-wrap > aside.side-card,
body.px-inscripciones-fullscreen.px-cms-global-menu-open .admin-wrap > aside.side-card,
body.px-inscripciones-fullscreen.px-cms-rail-open .admin-wrap > aside.side-card{
  display:block!important;
  visibility:visible!important;
  position:fixed!important;
  left:0!important;
  top:72px!important;
  bottom:0!important;
  width:292px!important;
  min-width:292px!important;
  max-width:292px!important;
  height:calc(100vh - 72px)!important;
  padding:18px!important;
  margin:0!important;
  border:0!important;
  border-radius:0!important;
  background:#061d38!important;
  box-shadow:18px 0 42px rgba(2,6,23,.22)!important;
  transform:translateX(0)!important;
  transition:transform .18s ease!important;
  pointer-events:auto!important;
  z-index:950!important;
  overflow:auto!important;
}
body.px-admin:not(.px-cms-global-menu-open):not(.px-cms-rail-open) .admin-wrap > aside.side-card{
  pointer-events:none!important;
}
body.px-admin .cms-v103-topbar{
  z-index:1000!important;
}
body.px-cms-global-menu-open .cms-v103-menu-toggle,
body.px-cms-rail-open .cms-v103-menu-toggle{
  background:#0b63f6!important;
  border-color:#0b63f6!important;
  color:#fff!important;
}
@media(max-width:720px){
  body.px-admin.px-cms-global-menu-open .admin-wrap > aside.side-card,
  body.px-admin.px-cms-rail-open .admin-wrap > aside.side-card{
    top:72px!important;
    width:min(86vw,292px)!important;
    min-width:min(86vw,292px)!important;
    max-width:min(86vw,292px)!important;
  }
}

/* FASE5A120: refuerzo visible de controles de Cursos tipo Reservas */
body.px-admin #tab-cursos .course-filter-v118.course-controls-standard,
body.px-admin #tab-cursos .course-bulk-bar-v118.course-controls-standard{
  display:grid!important;
  opacity:1!important;
  visibility:visible!important;
}
body.px-admin #tab-cursos .course-bulk-bar-v118.course-controls-standard{
  display:flex!important;
}
body.px-admin #tab-cursos .course-bulk-bar-v118.course-controls-standard select#courseBulkStatus,
body.px-admin #tab-cursos .course-bulk-bar-v118.course-controls-standard button[type="submit"]{
  display:inline-flex!important;
  visibility:visible!important;
}


/* ===== FASE5A121: controles de Cursos forzados aunque quede HTML viejo ===== */
body.px-admin #tab-cursos .course-bulk-toolbar-v117,
body.px-admin #tab-cursos .course-bulk-forced-v121,
body.px-admin #tab-cursos .course-bulk-bar-v118.course-controls-standard{
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
  flex-wrap:wrap!important;
  padding:14px 18px!important;
  background:#fff!important;
  border:1px solid #dfe7e2!important;
  border-radius:14px!important;
  margin:0 0 14px!important;
  box-shadow:none!important;
}
body.px-admin #tab-cursos .course-bulk-toolbar-v117 .course-bulk-counter{
  display:inline-flex!important;
  align-items:center!important;
  gap:8px!important;
  margin-right:auto!important;
  min-width:170px!important;
}
body.px-admin #tab-cursos .course-bulk-toolbar-v117 .course-bulk-actions{
  display:none!important;
}
body.px-admin #tab-cursos .course-bulk-forced-v121 .select-all-reservas,
body.px-admin #tab-cursos .course-bulk-bar-v118.course-controls-standard .select-all-reservas{
  display:inline-flex!important;
  align-items:center!important;
  gap:8px!important;
  margin-right:auto!important;
  font-weight:850!important;
}
body.px-admin #tab-cursos #courseBulkStatus{
  display:inline-flex!important;
  visibility:visible!important;
  min-width:260px!important;
  min-height:42px!important;
  border:1px solid #cfd8d3!important;
  border-radius:10px!important;
  padding:9px 11px!important;
  background:#fff!important;
  color:#102034!important;
  font-weight:800!important;
}
body.px-admin #tab-cursos .course-filter-forced-v121,
body.px-admin #tab-cursos .course-filter-v118.course-controls-standard{
  display:grid!important;
  grid-template-columns:minmax(260px,1.45fr) minmax(220px,.7fr) auto!important;
  gap:12px!important;
  align-items:end!important;
  padding:14px!important;
  background:#fff!important;
  border:1px solid #dfe7e2!important;
  border-radius:14px!important;
  margin:0 0 14px!important;
}
body.px-admin #tab-cursos .course-filter-forced-v121 input,
body.px-admin #tab-cursos .course-filter-forced-v121 select,
body.px-admin #tab-cursos .course-filter-v118.course-controls-standard input,
body.px-admin #tab-cursos .course-filter-v118.course-controls-standard select{
  min-height:42px!important;
}


/* ===== FASE5A122: controles masivos de Cursos en una sola línea ===== */
body.px-admin #tab-cursos .course-bulk-bar-v118.course-controls-standard,
body.px-admin #tab-cursos .course-bulk-forced-v121,
body.px-admin #tab-cursos .course-bulk-toolbar-v117{
  display:flex!important;
  align-items:center!important;
  gap:14px!important;
  flex-wrap:nowrap!important;
}
body.px-admin #tab-cursos .course-bulk-bar-v118.course-controls-standard .select-all-reservas,
body.px-admin #tab-cursos .course-bulk-forced-v121 .select-all-reservas,
body.px-admin #tab-cursos .course-bulk-toolbar-v117 .select-all-reservas{
  margin-right:0!important;
  white-space:nowrap!important;
  flex:0 0 auto!important;
}
body.px-admin #tab-cursos .course-bulk-bar-v118.course-controls-standard .bulk-selected-count,
body.px-admin #tab-cursos .course-bulk-forced-v121 .bulk-selected-count,
body.px-admin #tab-cursos .course-bulk-toolbar-v117 .bulk-selected-count,
body.px-admin #tab-cursos .course-bulk-toolbar-v117 .course-bulk-counter{
  margin-right:0!important;
  white-space:nowrap!important;
  flex:0 0 auto!important;
}
body.px-admin #tab-cursos .course-bulk-bar-v118.course-controls-standard #courseBulkStatus,
body.px-admin #tab-cursos .course-bulk-forced-v121 #courseBulkStatus,
body.px-admin #tab-cursos .course-bulk-toolbar-v117 #courseBulkStatus{
  flex:1 1 auto!important;
  min-width:260px!important;
  width:auto!important;
  margin-left:6px!important;
}
body.px-admin #tab-cursos .course-bulk-bar-v118.course-controls-standard .btn-admin,
body.px-admin #tab-cursos .course-bulk-bar-v118.course-controls-standard .btn-light,
body.px-admin #tab-cursos .course-bulk-forced-v121 .btn-admin,
body.px-admin #tab-cursos .course-bulk-forced-v121 .btn-light,
body.px-admin #tab-cursos .course-bulk-toolbar-v117 .btn-admin,
body.px-admin #tab-cursos .course-bulk-toolbar-v117 .btn-light{
  flex:0 0 auto!important;
  white-space:nowrap!important;
}
@media (max-width: 980px){
  body.px-admin #tab-cursos .course-bulk-bar-v118.course-controls-standard,
  body.px-admin #tab-cursos .course-bulk-forced-v121,
  body.px-admin #tab-cursos .course-bulk-toolbar-v117{
    flex-wrap:wrap!important;
  }
  body.px-admin #tab-cursos .course-bulk-bar-v118.course-controls-standard #courseBulkStatus,
  body.px-admin #tab-cursos .course-bulk-forced-v121 #courseBulkStatus,
  body.px-admin #tab-cursos .course-bulk-toolbar-v117 #courseBulkStatus{
    flex:1 1 100%!important;
    width:100%!important;
    min-width:100%!important;
    margin-left:0!important;
  }
}


/* ===== FASE5A123: Reservas sin columnas truncadas y contacto negro ===== */
body.px-admin #tab-reservas .reservas-final-table-card{
  width:100%!important;
  max-width:100%!important;
  overflow:hidden!important;
  border-radius:14px!important;
}
body.px-admin #tab-reservas .reservas-final-table{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  table-layout:fixed!important;
}
body.px-admin #tab-reservas .reservas-final-table th,
body.px-admin #tab-reservas .reservas-final-table td{
  box-sizing:border-box!important;
  overflow:visible!important;
  text-overflow:clip!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  word-break:normal!important;
  vertical-align:top!important;
}
body.px-admin #tab-reservas .reservas-final-table th{
  padding:12px 10px!important;
  font-size:12px!important;
  line-height:1.2!important;
}
body.px-admin #tab-reservas .reservas-final-table td{
  padding:13px 10px!important;
  font-size:13px!important;
  line-height:1.35!important;
}

/* Distribución balanceada para no empujar acciones fuera de pantalla */
body.px-admin #tab-reservas .reservas-final-table th:nth-child(1),
body.px-admin #tab-reservas .reservas-final-table td:nth-child(1){width:42px!important;}
body.px-admin #tab-reservas .reservas-final-table th:nth-child(2),
body.px-admin #tab-reservas .reservas-final-table td:nth-child(2){width:8%!important;}
body.px-admin #tab-reservas .reservas-final-table th:nth-child(3),
body.px-admin #tab-reservas .reservas-final-table td:nth-child(3){width:17%!important;}
body.px-admin #tab-reservas .reservas-final-table th:nth-child(4),
body.px-admin #tab-reservas .reservas-final-table td:nth-child(4){width:17%!important;}
body.px-admin #tab-reservas .reservas-final-table th:nth-child(5),
body.px-admin #tab-reservas .reservas-final-table td:nth-child(5){width:15%!important;}
body.px-admin #tab-reservas .reservas-final-table th:nth-child(6),
body.px-admin #tab-reservas .reservas-final-table td:nth-child(6){width:23%!important;}
body.px-admin #tab-reservas .reservas-final-table th:nth-child(7),
body.px-admin #tab-reservas .reservas-final-table td:nth-child(7){width:12%!important;}
body.px-admin #tab-reservas .reservas-final-table th:nth-child(8),
body.px-admin #tab-reservas .reservas-final-table td:nth-child(8){width:148px!important;}

/* Contacto en negro como el resto de columnas */
body.px-admin #tab-reservas .reservas-final-table .res-contact-cell,
body.px-admin #tab-reservas .reservas-final-table .res-contact-cell a,
body.px-admin #tab-reservas .reservas-final-table .res-contact-cell a:first-child,
body.px-admin #tab-reservas .res-contact-cell,
body.px-admin #tab-reservas .res-contact-cell a,
body.px-admin #tab-reservas .res-contact-cell a:first-child{
  color:#102034!important;
  text-decoration:none!important;
}
body.px-admin #tab-reservas .res-contact-cell{
  display:grid!important;
  gap:6px!important;
  min-width:0!important;
}

/* Acciones visibles dentro de la tabla */
body.px-admin #tab-reservas .res-action-cell{
  display:grid!important;
  gap:8px!important;
  align-content:start!important;
  justify-items:stretch!important;
  min-width:0!important;
  max-width:148px!important;
}
body.px-admin #tab-reservas .res-action-cell .inline-form{
  width:100%!important;
  margin:0!important;
  padding:0!important;
  display:block!important;
}
body.px-admin #tab-reservas .res-action-cell .btn-admin,
body.px-admin #tab-reservas .res-action-cell .btn-light,
body.px-admin #tab-reservas .res-action-cell .btn-mini{
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  min-height:40px!important;
  height:auto!important;
  padding:9px 10px!important;
  border-radius:12px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  white-space:normal!important;
  line-height:1.15!important;
  font-size:13px!important;
  font-weight:900!important;
}

/* Horarios compactos, sin empujar botones */
body.px-admin #tab-reservas .res-schedule-cell strong{
  display:grid!important;
  gap:6px!important;
}
body.px-admin #tab-reservas .res-schedule-cell strong span,
body.px-admin #tab-reservas .res-schedule-cell strong b{
  max-width:100%!important;
}
body.px-admin #tab-reservas .res-schedule-cell span{
  max-width:100%!important;
}

/* En pantallas medianas se permite scroll solo como último recurso controlado */
@media(max-width:1180px){
  body.px-admin #tab-reservas .reservas-final-table-card{
    overflow-x:auto!important;
  }
  body.px-admin #tab-reservas .reservas-final-table{
    min-width:1080px!important;
  }
}


/* ===== FASE5A124: confirmación de reservas por email ===== */
body.px-admin #tab-reservas .res-confirmed-email{
  display:block!important;
  margin-top:7px!important;
  color:#087b35!important;
  font-size:11px!important;
  line-height:1.25!important;
  font-weight:900!important;
}
body.px-admin #tab-reservas .reservation-admin-badge.status-confirmed{
  background:#eaf8ef!important;
  color:#087b35!important;
}


/* ===== FASE5A125: reparación Contacto y acciones en tabla de Reservas ===== */

/* La tabla debe respirar mejor sin partir datos carácter por carácter */
body.px-admin #tab-reservas .reservas-final-table{
  table-layout:fixed!important;
  width:100%!important;
}

/* Nueva distribución más balanceada: evita que Contacto y Acciones se compriman */
body.px-admin #tab-reservas .reservas-final-table th:nth-child(1),
body.px-admin #tab-reservas .reservas-final-table td:nth-child(1){width:42px!important;}
body.px-admin #tab-reservas .reservas-final-table th:nth-child(2),
body.px-admin #tab-reservas .reservas-final-table td:nth-child(2){width:110px!important;}
body.px-admin #tab-reservas .reservas-final-table th:nth-child(3),
body.px-admin #tab-reservas .reservas-final-table td:nth-child(3){width:18%!important;}
body.px-admin #tab-reservas .reservas-final-table th:nth-child(4),
body.px-admin #tab-reservas .reservas-final-table td:nth-child(4){width:230px!important;min-width:230px!important;}
body.px-admin #tab-reservas .reservas-final-table th:nth-child(5),
body.px-admin #tab-reservas .reservas-final-table td:nth-child(5){width:17%!important;}
body.px-admin #tab-reservas .reservas-final-table th:nth-child(6),
body.px-admin #tab-reservas .reservas-final-table td:nth-child(6){width:24%!important;}
body.px-admin #tab-reservas .reservas-final-table th:nth-child(7),
body.px-admin #tab-reservas .reservas-final-table td:nth-child(7){width:150px!important;}
body.px-admin #tab-reservas .reservas-final-table th:nth-child(8),
body.px-admin #tab-reservas .reservas-final-table td:nth-child(8){width:170px!important;min-width:170px!important;}

/* Regla general: no partir palabras/correos en caracteres verticales */
body.px-admin #tab-reservas .reservas-final-table td{
  word-break:normal!important;
  overflow-wrap:normal!important;
}

/* Contacto: teléfono y correo en color negro y con corte controlado */
body.px-admin #tab-reservas .reservas-final-table .res-contact-cell{
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  gap:8px!important;
  color:#102034!important;
  min-width:220px!important;
  max-width:100%!important;
  white-space:normal!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
}
body.px-admin #tab-reservas .reservas-final-table .res-contact-cell a,
body.px-admin #tab-reservas .reservas-final-table .res-contact-cell a:link,
body.px-admin #tab-reservas .reservas-final-table .res-contact-cell a:visited,
body.px-admin #tab-reservas .reservas-final-table .res-contact-cell a:first-child{
  display:block!important;
  color:#102034!important;
  text-decoration:none!important;
  white-space:nowrap!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
  max-width:100%!important;
}

/* Si el correo es demasiado largo, que use puntos suspensivos, no columna vertical */
body.px-admin #tab-reservas .reservas-final-table .res-contact-cell a[href^="mailto:"]{
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}

/* Acciones dentro de su columna, sin quedar cortadas */
body.px-admin #tab-reservas .reservas-final-table .res-action-cell{
  max-width:none!important;
  min-width:160px!important;
  width:160px!important;
  padding-right:14px!important;
}
body.px-admin #tab-reservas .reservas-final-table .res-action-cell .btn-admin,
body.px-admin #tab-reservas .reservas-final-table .res-action-cell .btn-light,
body.px-admin #tab-reservas .reservas-final-table .res-action-cell .btn-mini{
  width:100%!important;
  min-width:130px!important;
  max-width:100%!important;
  white-space:normal!important;
}

/* En pantallas donde no quepa todo, scroll controlado pero sin truncar contenido */
@media(max-width:1280px){
  body.px-admin #tab-reservas .reservas-final-table-card{
    overflow-x:auto!important;
  }
  body.px-admin #tab-reservas .reservas-final-table{
    min-width:1180px!important;
  }
}


/* ===== FASE5A128: Encabezados de tabla de Inscripciones alineados verticalmente ===== */
body.px-admin #tab-inscripciones .ins-v99-table thead tr{
  height:58px!important;
}
body.px-admin #tab-inscripciones .ins-v99-table th{
  height:58px!important;
  min-height:58px!important;
  padding:12px 18px!important;
  vertical-align:middle!important;
  line-height:1.18!important;
  font-size:15px!important;
  font-weight:950!important;
  letter-spacing:0!important;
  text-transform:none!important;
  background:#f8fafc!important;
  color:#101828!important;
  border-bottom:1px solid #dbe5f1!important;
  white-space:normal!important;
}
body.px-admin #tab-inscripciones .ins-v99-table th,
body.px-admin #tab-inscripciones .ins-v99-table th *{
  display:table-cell!important;
  vertical-align:middle!important;
}
body.px-admin #tab-inscripciones .ins-v99-table th:nth-child(4){
  line-height:1.18!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
}
body.px-admin #tab-inscripciones .ins-v99-table th:nth-child(1),
body.px-admin #tab-inscripciones .ins-v99-table th:nth-child(2),
body.px-admin #tab-inscripciones .ins-v99-table th:nth-child(3),
body.px-admin #tab-inscripciones .ins-v99-table th:nth-child(5),
body.px-admin #tab-inscripciones .ins-v99-table th:nth-child(6),
body.px-admin #tab-inscripciones .ins-v99-table th:nth-child(7){
  white-space:nowrap!important;
}


/* ===== FASE5A132: Reservas balanceadas sin scroll horizontal + paginador ===== */
body.px-admin #tab-reservas .reservas-final-table-card{
  width:100%!important;
  max-width:100%!important;
  overflow-x:hidden!important;
}
body.px-admin #tab-reservas .reservas-final-table{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  table-layout:fixed!important;
}
body.px-admin #tab-reservas .reservas-final-table th,
body.px-admin #tab-reservas .reservas-final-table td{
  box-sizing:border-box!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  white-space:normal!important;
  vertical-align:top!important;
}
body.px-admin #tab-reservas .reservas-final-table th{
  padding:13px 10px!important;
  font-size:13px!important;
  line-height:1.25!important;
  text-transform:none!important;
}
body.px-admin #tab-reservas .reservas-final-table td{
  padding:15px 10px!important;
  font-size:14px!important;
  line-height:1.38!important;
}

/* Distribución real de 8 columnas */
body.px-admin #tab-reservas .reservas-final-table .check-col{width:36px!important;max-width:36px!important;}
body.px-admin #tab-reservas .reservas-final-table th:nth-child(2),
body.px-admin #tab-reservas .reservas-final-table td:nth-child(2){width:7%!important;}
body.px-admin #tab-reservas .reservas-final-table th:nth-child(3),
body.px-admin #tab-reservas .reservas-final-table td:nth-child(3){width:16%!important;}
body.px-admin #tab-reservas .reservas-final-table th:nth-child(4),
body.px-admin #tab-reservas .reservas-final-table td:nth-child(4){width:18%!important;min-width:0!important;}
body.px-admin #tab-reservas .reservas-final-table th:nth-child(5),
body.px-admin #tab-reservas .reservas-final-table td:nth-child(5){width:15%!important;}
body.px-admin #tab-reservas .reservas-final-table th:nth-child(6),
body.px-admin #tab-reservas .reservas-final-table td:nth-child(6){width:22%!important;}
body.px-admin #tab-reservas .reservas-final-table th:nth-child(7),
body.px-admin #tab-reservas .reservas-final-table td:nth-child(7){width:11%!important;}
body.px-admin #tab-reservas .reservas-final-table th:nth-child(8),
body.px-admin #tab-reservas .reservas-final-table td:nth-child(8){width:108px!important;min-width:108px!important;max-width:108px!important;}

body.px-admin #tab-reservas .res-date-cell strong,
body.px-admin #tab-reservas .res-person-cell strong,
body.px-admin #tab-reservas .res-course-cell,
body.px-admin #tab-reservas .res-schedule-cell strong{
  font-size:14px!important;
  line-height:1.35!important;
}
body.px-admin #tab-reservas .res-contact-cell{
  display:grid!important;
  gap:7px!important;
  min-width:0!important;
  max-width:100%!important;
  color:#102034!important;
}
body.px-admin #tab-reservas .res-contact-cell a{
  color:#102034!important;
  display:block!important;
  max-width:100%!important;
  min-width:0!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  text-decoration:none!important;
}
body.px-admin #tab-reservas .res-schedule-cell .admin-schedule-lines{
  display:grid!important;
  gap:7px!important;
  max-width:100%!important;
}
body.px-admin #tab-reservas .res-schedule-cell .admin-schedule-lines span{
  display:inline-flex!important;
  width:max-content!important;
  max-width:100%!important;
  white-space:normal!important;
}
body.px-admin #tab-reservas .res-status-cell{
  min-width:0!important;
}
body.px-admin #tab-reservas .res-confirmed-email{
  white-space:normal!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
}
body.px-admin #tab-reservas .res-action-cell{
  width:108px!important;
  min-width:108px!important;
  max-width:108px!important;
  display:grid!important;
  gap:7px!important;
  align-content:start!important;
}
body.px-admin #tab-reservas .res-action-cell .btn-admin,
body.px-admin #tab-reservas .res-action-cell .btn-light,
body.px-admin #tab-reservas .res-action-cell .btn-mini{
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  padding:8px 7px!important;
  font-size:12px!important;
  line-height:1.12!important;
  white-space:normal!important;
}
body.px-admin #tab-reservas .reservas-pagination-bar{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  flex-wrap:wrap!important;
  padding:14px 16px!important;
  border:1px solid #dfe7e2!important;
  border-top:0!important;
  border-radius:0 0 14px 14px!important;
  background:#fff!important;
  margin-bottom:16px!important;
}
body.px-admin #tab-reservas .reservas-pagination-summary{
  color:#475467!important;
  font-size:13px!important;
  font-weight:800!important;
}
body.px-admin #tab-reservas .reservas-pagination-summary strong{
  color:#102034!important;
  font-weight:950!important;
}
body.px-admin #tab-reservas .reservas-per-page-form select{
  min-height:38px!important;
  border:1px solid #cfd8d3!important;
  border-radius:10px!important;
  padding:8px 34px 8px 10px!important;
  background:#fff!important;
  color:#102034!important;
  font-weight:850!important;
}
body.px-admin #tab-reservas .reservas-pagination-pages{
  display:flex!important;
  align-items:center!important;
  gap:6px!important;
}
body.px-admin #tab-reservas .reservas-pagination-pages a,
body.px-admin #tab-reservas .reservas-pagination-pages span{
  min-width:34px!important;
  height:34px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  border:1px solid #dbe5f1!important;
  border-radius:9px!important;
  color:#102034!important;
  text-decoration:none!important;
  font-weight:900!important;
  background:#fff!important;
}
body.px-admin #tab-reservas .reservas-pagination-pages a.active{
  background:#0b63f6!important;
  border-color:#0b63f6!important;
  color:#fff!important;
}
body.px-admin #tab-reservas .reservas-pagination-pages a.disabled{
  opacity:.45!important;
  pointer-events:none!important;
}
@media(max-width:1180px){
  body.px-admin #tab-reservas .reservas-final-table th,
  body.px-admin #tab-reservas .reservas-final-table td{font-size:12.5px!important;padding:12px 8px!important;}
  body.px-admin #tab-reservas .res-action-cell .btn-admin,
  body.px-admin #tab-reservas .res-action-cell .btn-light,
  body.px-admin #tab-reservas .res-action-cell .btn-mini{font-size:11.5px!important;}
}


/* ===== FASE5A133: Reservas legibles sin truncamiento destructivo ===== */
/*
  Corrección directa:
  - fecha no se parte
  - contacto no queda con "..."
  - acciones no quedan cortadas
  - tabla mantiene una distribución estable en escritorio
*/
body.px-admin #tab-reservas .reservas-final-table-card{
  overflow-x:hidden!important;
}
body.px-admin #tab-reservas .reservas-final-table{
  width:100%!important;
  max-width:100%!important;
  table-layout:fixed!important;
}

/* Reinicio de columnas después del ajuste 5A132 */
body.px-admin #tab-reservas .reservas-final-table .check-col{
  width:40px!important;
  min-width:40px!important;
  max-width:40px!important;
}
body.px-admin #tab-reservas .reservas-final-table th:nth-child(2),
body.px-admin #tab-reservas .reservas-final-table td:nth-child(2){
  width:112px!important;
  min-width:112px!important;
  max-width:112px!important;
}
body.px-admin #tab-reservas .reservas-final-table th:nth-child(3),
body.px-admin #tab-reservas .reservas-final-table td:nth-child(3){
  width:16%!important;
}
body.px-admin #tab-reservas .reservas-final-table th:nth-child(4),
body.px-admin #tab-reservas .reservas-final-table td:nth-child(4){
  width:20%!important;
}
body.px-admin #tab-reservas .reservas-final-table th:nth-child(5),
body.px-admin #tab-reservas .reservas-final-table td:nth-child(5){
  width:15%!important;
}
body.px-admin #tab-reservas .reservas-final-table th:nth-child(6),
body.px-admin #tab-reservas .reservas-final-table td:nth-child(6){
  width:19%!important;
}
body.px-admin #tab-reservas .reservas-final-table th:nth-child(7),
body.px-admin #tab-reservas .reservas-final-table td:nth-child(7){
  width:14%!important;
}
body.px-admin #tab-reservas .reservas-final-table th:nth-child(8),
body.px-admin #tab-reservas .reservas-final-table td:nth-child(8){
  width:150px!important;
  min-width:150px!important;
  max-width:150px!important;
}

body.px-admin #tab-reservas .reservas-final-table th,
body.px-admin #tab-reservas .reservas-final-table td{
  padding:15px 12px!important;
  vertical-align:top!important;
  overflow:visible!important;
  text-overflow:clip!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
}
body.px-admin #tab-reservas .reservas-final-table th{
  font-size:14px!important;
  line-height:1.2!important;
  white-space:nowrap!important;
}
body.px-admin #tab-reservas .reservas-final-table td{
  font-size:14px!important;
  line-height:1.42!important;
}

/* Fecha siempre en una sola línea */
body.px-admin #tab-reservas .res-date-cell,
body.px-admin #tab-reservas .res-date-cell strong{
  white-space:nowrap!important;
  word-break:keep-all!important;
  overflow-wrap:normal!important;
  font-size:14px!important;
  letter-spacing:0!important;
}

/* Contacto completo, sin ellipsis destructivo */
body.px-admin #tab-reservas .res-contact-cell{
  display:grid!important;
  gap:8px!important;
  min-width:0!important;
  max-width:100%!important;
  color:#102034!important;
}
body.px-admin #tab-reservas .res-contact-cell a{
  color:#102034!important;
  display:block!important;
  max-width:100%!important;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  word-break:normal!important;
  overflow-wrap:anywhere!important;
  line-height:1.35!important;
  text-decoration:none!important;
}

/* Nombre y curso legibles */
body.px-admin #tab-reservas .res-person-cell strong,
body.px-admin #tab-reservas .res-course-cell{
  display:block!important;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  word-break:normal!important;
  overflow-wrap:anywhere!important;
}

/* Horarios compactos sin invadir columnas */
body.px-admin #tab-reservas .res-schedule-cell .admin-schedule-lines span{
  max-width:100%!important;
  white-space:normal!important;
  line-height:1.25!important;
  padding:5px 10px!important;
}

/* Estado legible */
body.px-admin #tab-reservas .res-status-cell{
  white-space:normal!important;
}
body.px-admin #tab-reservas .reservation-admin-badge{
  white-space:nowrap!important;
}
body.px-admin #tab-reservas .res-confirmed-email{
  display:block!important;
  margin-top:8px!important;
  font-size:12.5px!important;
  line-height:1.25!important;
  white-space:normal!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
}

/* Botones dentro de acciones, sin cortarse */
body.px-admin #tab-reservas .res-action-cell{
  width:150px!important;
  min-width:150px!important;
  max-width:150px!important;
  display:grid!important;
  gap:8px!important;
  align-content:start!important;
}
body.px-admin #tab-reservas .res-action-cell form{
  width:100%!important;
}
body.px-admin #tab-reservas .res-action-cell .btn-admin,
body.px-admin #tab-reservas .res-action-cell .btn-light,
body.px-admin #tab-reservas .res-action-cell .btn-mini{
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  min-height:42px!important;
  padding:9px 8px!important;
  font-size:12.5px!important;
  line-height:1.15!important;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
}

/* En pantallas medianas, compactar sin destruir datos */
@media(max-width:1320px){
  body.px-admin #tab-reservas .reservas-final-table th,
  body.px-admin #tab-reservas .reservas-final-table td{
    padding:12px 8px!important;
    font-size:12.5px!important;
  }
  body.px-admin #tab-reservas .reservas-final-table th:nth-child(2),
  body.px-admin #tab-reservas .reservas-final-table td:nth-child(2){
    width:96px!important;
    min-width:96px!important;
    max-width:96px!important;
  }
  body.px-admin #tab-reservas .reservas-final-table th:nth-child(8),
  body.px-admin #tab-reservas .reservas-final-table td:nth-child(8){
    width:128px!important;
    min-width:128px!important;
    max-width:128px!important;
  }
  body.px-admin #tab-reservas .res-action-cell{
    width:128px!important;
    min-width:128px!important;
    max-width:128px!important;
  }
}


/* ===== FASE5A134: Reservas con grid real, columnas legibles y sin truncamiento ===== */
/*
  Corrección de fondo: la tabla tradicional acumuló muchos parches de ancho.
  Aquí se fuerza la lista de Reservas a un grid estable por fila.
*/
body.px-admin #tab-reservas .reservas-final-table-card,
body.px-admin #tab-reservas .reservas-table-card{
  overflow-x:hidden!important;
  width:100%!important;
  max-width:100%!important;
}

body.px-admin #tab-reservas table.reservas-final-table.reservations-list-balanced,
body.px-admin #tab-reservas table.reservas-approved-table.reservations-list-balanced{
  display:block!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  table-layout:auto!important;
  border-collapse:separate!important;
  border-spacing:0!important;
}

body.px-admin #tab-reservas table.reservations-list-balanced thead,
body.px-admin #tab-reservas table.reservations-list-balanced tbody{
  display:block!important;
  width:100%!important;
}

body.px-admin #tab-reservas table.reservations-list-balanced thead tr,
body.px-admin #tab-reservas table.reservations-list-balanced tbody tr{
  display:grid!important;
  grid-template-columns:42px 120px minmax(150px,1.1fr) minmax(220px,1.45fr) minmax(160px,1fr) minmax(220px,1.35fr) minmax(185px,1.1fr) 165px!important;
  align-items:start!important;
  width:100%!important;
  min-width:0!important;
}

body.px-admin #tab-reservas table.reservations-list-balanced th,
body.px-admin #tab-reservas table.reservations-list-balanced td{
  display:block!important;
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
  box-sizing:border-box!important;
  overflow:visible!important;
  text-overflow:clip!important;
  white-space:normal!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
  padding:16px 12px!important;
  border-bottom:1px solid #edf1ef!important;
  vertical-align:top!important;
}

body.px-admin #tab-reservas table.reservations-list-balanced th{
  background:#f7faf8!important;
  color:#102034!important;
  font-size:14px!important;
  line-height:1.2!important;
  font-weight:950!important;
  text-align:left!important;
  white-space:nowrap!important;
}

body.px-admin #tab-reservas table.reservations-list-balanced .check-col{
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
  display:flex!important;
  align-items:flex-start!important;
  justify-content:center!important;
}

/* Fecha estable */
body.px-admin #tab-reservas table.reservations-list-balanced .res-date-cell,
body.px-admin #tab-reservas table.reservations-list-balanced .res-date-cell strong{
  white-space:nowrap!important;
  word-break:keep-all!important;
  overflow-wrap:normal!important;
  color:#102034!important;
  font-size:14px!important;
  line-height:1.25!important;
}

/* Participante */
body.px-admin #tab-reservas table.reservations-list-balanced .res-person-cell strong{
  display:block!important;
  color:#102034!important;
  font-size:14px!important;
  line-height:1.32!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
}

/* Contacto completo */
body.px-admin #tab-reservas table.reservations-list-balanced .res-contact-cell{
  display:grid!important;
  gap:8px!important;
  color:#102034!important;
}
body.px-admin #tab-reservas table.reservations-list-balanced .res-contact-cell a{
  color:#102034!important;
  display:block!important;
  max-width:100%!important;
  text-decoration:none!important;
  font-weight:850!important;
  line-height:1.32!important;
  overflow:visible!important;
  text-overflow:clip!important;
}
body.px-admin #tab-reservas table.reservations-list-balanced .res-contact-cell a[href^="tel:"]{
  white-space:nowrap!important;
  word-break:keep-all!important;
  overflow-wrap:normal!important;
}
body.px-admin #tab-reservas table.reservations-list-balanced .res-contact-cell a[href^="mailto:"]{
  white-space:normal!important;
  word-break:normal!important;
  overflow-wrap:anywhere!important;
}

/* Curso en su columna real */
body.px-admin #tab-reservas table.reservations-list-balanced .res-course-cell{
  color:#102034!important;
  font-size:14px!important;
  line-height:1.32!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
}

/* Horarios compactos pero legibles */
body.px-admin #tab-reservas table.reservations-list-balanced .res-schedule-cell{
  display:grid!important;
  gap:8px!important;
}
body.px-admin #tab-reservas table.reservations-list-balanced .res-schedule-cell strong{
  display:grid!important;
  gap:7px!important;
}
body.px-admin #tab-reservas table.reservations-list-balanced .res-schedule-cell .admin-schedule-lines,
body.px-admin #tab-reservas table.reservations-list-balanced .res-schedule-cell .admin-schedule-lines span{
  max-width:100%!important;
}
body.px-admin #tab-reservas table.reservations-list-balanced .res-schedule-cell .admin-schedule-lines span{
  display:inline-flex!important;
  width:max-content!important;
  max-width:100%!important;
  white-space:normal!important;
  line-height:1.2!important;
  padding:5px 10px!important;
}

/* Estado */
body.px-admin #tab-reservas table.reservations-list-balanced .res-status-cell{
  display:grid!important;
  gap:8px!important;
}
body.px-admin #tab-reservas table.reservations-list-balanced .reservation-admin-badge{
  width:max-content!important;
  max-width:100%!important;
  white-space:normal!important;
}
body.px-admin #tab-reservas table.reservations-list-balanced .res-confirmed-email{
  color:#087b35!important;
  font-size:12.5px!important;
  line-height:1.25!important;
  font-weight:950!important;
  white-space:normal!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
}

/* Acciones */
body.px-admin #tab-reservas table.reservations-list-balanced .res-action-cell{
  display:grid!important;
  gap:9px!important;
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
  align-content:start!important;
}
body.px-admin #tab-reservas table.reservations-list-balanced .res-action-cell form,
body.px-admin #tab-reservas table.reservations-list-balanced .res-action-cell .inline-form{
  width:100%!important;
  margin:0!important;
}
body.px-admin #tab-reservas table.reservations-list-balanced .res-action-cell .btn-admin,
body.px-admin #tab-reservas table.reservations-list-balanced .res-action-cell .btn-light,
body.px-admin #tab-reservas table.reservations-list-balanced .res-action-cell .btn-mini{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  min-height:42px!important;
  padding:9px 8px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  font-size:12.5px!important;
  line-height:1.15!important;
}

/* Modo compacto: convertir a tarjetas para no romper la información */
@media(max-width:1120px){
  body.px-admin #tab-reservas table.reservations-list-balanced thead{
    display:none!important;
  }
  body.px-admin #tab-reservas table.reservations-list-balanced tbody{
    display:grid!important;
    gap:12px!important;
  }
  body.px-admin #tab-reservas table.reservations-list-balanced tbody tr{
    display:grid!important;
    grid-template-columns:38px 1fr!important;
    gap:0!important;
    border:1px solid #dbe5f1!important;
    border-radius:14px!important;
    background:#fff!important;
    overflow:hidden!important;
  }
  body.px-admin #tab-reservas table.reservations-list-balanced tbody td{
    border-bottom:1px solid #eef2f6!important;
    padding:11px 12px!important;
  }
  body.px-admin #tab-reservas table.reservations-list-balanced tbody td.check-col{
    grid-row:1 / span 7!important;
    border-right:1px solid #eef2f6!important;
    background:#fbfcfd!important;
  }
  body.px-admin #tab-reservas table.reservations-list-balanced tbody td:not(.check-col)::before{
    display:block!important;
    margin-bottom:4px!important;
    color:#667085!important;
    font-size:11px!important;
    font-weight:950!important;
    text-transform:uppercase!important;
    letter-spacing:.04em!important;
  }
  body.px-admin #tab-reservas table.reservations-list-balanced tbody td:nth-child(2)::before{content:"Fecha";}
  body.px-admin #tab-reservas table.reservations-list-balanced tbody td:nth-child(3)::before{content:"Participante";}
  body.px-admin #tab-reservas table.reservations-list-balanced tbody td:nth-child(4)::before{content:"Contacto";}
  body.px-admin #tab-reservas table.reservations-list-balanced tbody td:nth-child(5)::before{content:"Curso";}
  body.px-admin #tab-reservas table.reservations-list-balanced tbody td:nth-child(6)::before{content:"Horario / modalidad";}
  body.px-admin #tab-reservas table.reservations-list-balanced tbody td:nth-child(7)::before{content:"Estado";}
  body.px-admin #tab-reservas table.reservations-list-balanced tbody td:nth-child(8)::before{content:"Acciones";}
  body.px-admin #tab-reservas table.reservations-list-balanced .res-action-cell{
    grid-template-columns:1fr 1fr!important;
  }
}


/* ===== FASE5A135: Reservas en tarjetas operativas, sin tabla destructiva ===== */
body.px-admin #tab-reservas .reservas-cards-card{
  background:#fff!important;
  border:1px solid #dbe5f1!important;
  border-radius:18px!important;
  overflow:hidden!important;
  box-shadow:0 10px 26px rgba(16,24,40,.04)!important;
}
body.px-admin #tab-reservas .reservas-cards-list{
  display:grid!important;
  gap:0!important;
}
body.px-admin #tab-reservas .reserva-card{
  display:grid!important;
  grid-template-columns:38px minmax(0,1fr) 168px!important;
  gap:16px!important;
  padding:18px 20px!important;
  border-bottom:1px solid #e6edf5!important;
  align-items:start!important;
  background:#fff!important;
}
body.px-admin #tab-reservas .reserva-card:last-child{
  border-bottom:0!important;
}
body.px-admin #tab-reservas .reserva-card-check{
  padding-top:8px!important;
}
body.px-admin #tab-reservas .reserva-card-check input{
  width:22px!important;
  height:22px!important;
}
body.px-admin #tab-reservas .reserva-card-body{
  min-width:0!important;
  display:grid!important;
  gap:14px!important;
}
body.px-admin #tab-reservas .reserva-card-head{
  display:grid!important;
  grid-template-columns:minmax(220px,1fr) minmax(190px,260px)!important;
  gap:18px!important;
  align-items:start!important;
}
body.px-admin #tab-reservas .reserva-card-grid{
  display:grid!important;
  grid-template-columns:minmax(230px,1fr) minmax(180px,.8fr) minmax(260px,1.2fr)!important;
  gap:18px!important;
  align-items:start!important;
}
body.px-admin #tab-reservas .reserva-label{
  display:block!important;
  margin:0 0 6px!important;
  color:#667085!important;
  font-size:11px!important;
  line-height:1.1!important;
  font-weight:950!important;
  text-transform:uppercase!important;
  letter-spacing:.06em!important;
}
body.px-admin #tab-reservas .reserva-participant-block strong,
body.px-admin #tab-reservas .reserva-course-block strong{
  display:block!important;
  color:#0b1734!important;
  font-size:16px!important;
  line-height:1.3!important;
  font-weight:950!important;
  white-space:normal!important;
  word-break:normal!important;
  overflow-wrap:anywhere!important;
}
body.px-admin #tab-reservas .reserva-participant-block small{
  display:block!important;
  color:#475467!important;
  margin-top:6px!important;
  font-size:13px!important;
  font-weight:850!important;
  white-space:nowrap!important;
}
body.px-admin #tab-reservas .reserva-info-block{
  min-width:0!important;
}
body.px-admin #tab-reservas .reserva-contact-block{
  display:grid!important;
  gap:7px!important;
}
body.px-admin #tab-reservas .reserva-contact-block a{
  display:block!important;
  color:#102034!important;
  text-decoration:none!important;
  font-size:15px!important;
  line-height:1.3!important;
  font-weight:850!important;
  white-space:normal!important;
  word-break:normal!important;
  overflow-wrap:anywhere!important;
}
body.px-admin #tab-reservas .reserva-schedule-lines{
  display:grid!important;
  gap:7px!important;
  align-items:start!important;
}
body.px-admin #tab-reservas .reserva-schedule-lines span,
body.px-admin #tab-reservas .reserva-group-pill{
  display:inline-flex!important;
  width:max-content!important;
  max-width:100%!important;
  padding:6px 10px!important;
  border-radius:999px!important;
  background:#f2f4f7!important;
  color:#102034!important;
  font-size:13px!important;
  line-height:1.2!important;
  font-weight:900!important;
  white-space:normal!important;
}
body.px-admin #tab-reservas .reserva-group-pill{
  margin-top:7px!important;
  color:#475467!important;
}
body.px-admin #tab-reservas .reserva-status-block{
  min-width:0!important;
}
body.px-admin #tab-reservas .reserva-status-block .reservation-admin-badge{
  display:inline-flex!important;
  width:max-content!important;
  max-width:100%!important;
  white-space:normal!important;
  line-height:1.2!important;
}
body.px-admin #tab-reservas .reserva-status-block .res-confirmed-email{
  display:block!important;
  margin-top:8px!important;
  color:#087b35!important;
  font-size:13px!important;
  line-height:1.3!important;
  font-weight:950!important;
  white-space:normal!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
}
body.px-admin #tab-reservas .reserva-card-actions{
  display:grid!important;
  gap:9px!important;
  align-content:start!important;
  width:168px!important;
}
body.px-admin #tab-reservas .reserva-card-actions form,
body.px-admin #tab-reservas .reserva-card-actions a,
body.px-admin #tab-reservas .reserva-card-actions button{
  width:100%!important;
  max-width:100%!important;
}
body.px-admin #tab-reservas .reserva-card-actions .btn-admin,
body.px-admin #tab-reservas .reserva-card-actions .btn-light,
body.px-admin #tab-reservas .reserva-card-actions .btn-mini{
  min-height:44px!important;
  padding:10px 12px!important;
  font-size:14px!important;
  line-height:1.15!important;
  border-radius:13px!important;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
}
body.px-admin #tab-reservas .reservas-pagination-bar{
  border-top:0!important;
}

/* Modo compacto: la tarjeta se reorganiza, nunca rompe palabras letra por letra */
@media(max-width:1180px){
  body.px-admin #tab-reservas .reserva-card{
    grid-template-columns:34px minmax(0,1fr)!important;
  }
  body.px-admin #tab-reservas .reserva-card-actions{
    grid-column:2!important;
    width:100%!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  body.px-admin #tab-reservas .reserva-card-actions .reserva-label{
    grid-column:1/-1!important;
  }
  body.px-admin #tab-reservas .reserva-card-head,
  body.px-admin #tab-reservas .reserva-card-grid{
    grid-template-columns:1fr 1fr!important;
  }
  body.px-admin #tab-reservas .reserva-schedule-block{
    grid-column:1/-1!important;
  }
}
@media(max-width:760px){
  body.px-admin #tab-reservas .reserva-card{
    grid-template-columns:1fr!important;
    padding:16px!important;
  }
  body.px-admin #tab-reservas .reserva-card-check,
  body.px-admin #tab-reservas .reserva-card-actions{
    grid-column:auto!important;
  }
  body.px-admin #tab-reservas .reserva-card-head,
  body.px-admin #tab-reservas .reserva-card-grid,
  body.px-admin #tab-reservas .reserva-card-actions{
    grid-template-columns:1fr!important;
    width:100%!important;
  }
}


/* ===== FASE5A136: Reservas en tabla compacta aprobada ===== */
body.px-admin #tab-reservas .reservas-cards-card,
body.px-admin #tab-reservas .reservas-cards-list,
body.px-admin #tab-reservas .reserva-card{
  display:none!important;
}

body.px-admin #tab-reservas .reservas-compact-card{
  width:100%!important;
  max-width:100%!important;
  overflow:hidden!important;
  background:#fff!important;
  border:1px solid #dbe5f1!important;
  border-radius:18px!important;
  box-shadow:0 10px 26px rgba(16,24,40,.04)!important;
}

body.px-admin #tab-reservas .reservas-compact-table{
  width:100%!important;
  max-width:100%!important;
  border-collapse:separate!important;
  border-spacing:0!important;
  table-layout:fixed!important;
  background:#fff!important;
}

body.px-admin #tab-reservas .reservas-compact-table thead th{
  background:#f8fafc!important;
  color:#0f172a!important;
  font-weight:950!important;
  font-size:14px!important;
  line-height:1.2!important;
  padding:16px 14px!important;
  text-align:left!important;
  border-bottom:1px solid #dbe5f1!important;
  white-space:nowrap!important;
}

body.px-admin #tab-reservas .reservas-compact-table tbody td{
  padding:18px 14px!important;
  vertical-align:top!important;
  border-bottom:1px solid #edf1f5!important;
  color:#0f172a!important;
  font-size:14px!important;
  line-height:1.38!important;
  overflow:visible!important;
  text-overflow:clip!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
  white-space:normal!important;
}

body.px-admin #tab-reservas .reservas-compact-table tbody tr:last-child td{
  border-bottom:0!important;
}

/* 6 columnas reales: selector + 5 columnas funcionales */
body.px-admin #tab-reservas .reservas-compact-table .res-compact-check{
  width:44px!important;
  min-width:44px!important;
  max-width:44px!important;
  text-align:center!important;
  padding-left:14px!important;
  padding-right:8px!important;
}

body.px-admin #tab-reservas .reservas-compact-table .res-compact-date-th,
body.px-admin #tab-reservas .reservas-compact-table .res-compact-date{
  width:118px!important;
  min-width:118px!important;
  max-width:118px!important;
}

body.px-admin #tab-reservas .reservas-compact-table th:nth-child(3),
body.px-admin #tab-reservas .reservas-compact-table td:nth-child(3){
  width:28%!important;
}

body.px-admin #tab-reservas .reservas-compact-table th:nth-child(4),
body.px-admin #tab-reservas .reservas-compact-table td:nth-child(4){
  width:31%!important;
}

body.px-admin #tab-reservas .reservas-compact-table th:nth-child(5),
body.px-admin #tab-reservas .reservas-compact-table td:nth-child(5){
  width:19%!important;
}

body.px-admin #tab-reservas .reservas-compact-table th:nth-child(6),
body.px-admin #tab-reservas .reservas-compact-table td:nth-child(6){
  width:160px!important;
  min-width:160px!important;
  max-width:160px!important;
}

body.px-admin #tab-reservas .res-compact-date strong{
  display:block!important;
  white-space:nowrap!important;
  color:#0b1734!important;
  font-size:15px!important;
  font-weight:950!important;
}

body.px-admin #tab-reservas .res-compact-person strong,
body.px-admin #tab-reservas .res-compact-course > strong{
  display:block!important;
  color:#0b1734!important;
  font-size:15px!important;
  line-height:1.3!important;
  font-weight:950!important;
  margin-bottom:8px!important;
  white-space:normal!important;
  word-break:normal!important;
  overflow-wrap:anywhere!important;
}

body.px-admin #tab-reservas .res-compact-contact{
  display:grid!important;
  gap:6px!important;
  min-width:0!important;
}

body.px-admin #tab-reservas .res-compact-contact a{
  display:block!important;
  color:#102034!important;
  text-decoration:none!important;
  font-size:13.5px!important;
  line-height:1.32!important;
  font-weight:800!important;
  white-space:normal!important;
  word-break:normal!important;
  overflow-wrap:anywhere!important;
}

body.px-admin #tab-reservas .res-compact-contact a span{
  color:#667085!important;
  font-weight:950!important;
}

body.px-admin #tab-reservas .res-compact-schedule{
  display:grid!important;
  gap:7px!important;
  align-items:start!important;
}

body.px-admin #tab-reservas .res-compact-schedule .admin-schedule-lines,
body.px-admin #tab-reservas .res-compact-schedule strong{
  display:grid!important;
  gap:7px!important;
}

body.px-admin #tab-reservas .res-compact-schedule span,
body.px-admin #tab-reservas .res-compact-group{
  display:inline-flex!important;
  width:max-content!important;
  max-width:100%!important;
  padding:6px 10px!important;
  border-radius:999px!important;
  background:#f2f4f7!important;
  color:#102034!important;
  font-size:13px!important;
  line-height:1.2!important;
  font-weight:900!important;
  white-space:normal!important;
  word-break:normal!important;
  overflow-wrap:anywhere!important;
}

body.px-admin #tab-reservas .res-compact-group{
  color:#475467!important;
  font-weight:850!important;
}

body.px-admin #tab-reservas .res-compact-status .reservation-admin-badge{
  display:inline-flex!important;
  width:max-content!important;
  max-width:100%!important;
  white-space:nowrap!important;
  line-height:1.2!important;
}

body.px-admin #tab-reservas .res-compact-status .res-confirmed-email{
  display:block!important;
  margin-top:8px!important;
  color:#087b35!important;
  font-size:12.5px!important;
  line-height:1.3!important;
  font-weight:950!important;
  white-space:normal!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
}

body.px-admin #tab-reservas .res-compact-actions{
  display:grid!important;
  gap:9px!important;
  align-content:start!important;
}

body.px-admin #tab-reservas .res-compact-actions form,
body.px-admin #tab-reservas .res-compact-actions a,
body.px-admin #tab-reservas .res-compact-actions button{
  width:100%!important;
  max-width:100%!important;
}

body.px-admin #tab-reservas .res-compact-actions .btn-admin,
body.px-admin #tab-reservas .res-compact-actions .btn-light,
body.px-admin #tab-reservas .res-compact-actions .btn-mini{
  min-height:42px!important;
  padding:9px 10px!important;
  border-radius:12px!important;
  font-size:13px!important;
  line-height:1.15!important;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
}

/* Pantalla mediana: la tabla se convierte en tarjetas limpias, no en texto vertical */
@media(max-width:980px){
  body.px-admin #tab-reservas .reservas-compact-table,
  body.px-admin #tab-reservas .reservas-compact-table thead,
  body.px-admin #tab-reservas .reservas-compact-table tbody,
  body.px-admin #tab-reservas .reservas-compact-table tr,
  body.px-admin #tab-reservas .reservas-compact-table th,
  body.px-admin #tab-reservas .reservas-compact-table td{
    display:block!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
  }

  body.px-admin #tab-reservas .reservas-compact-table thead{
    display:none!important;
  }

  body.px-admin #tab-reservas .reservas-compact-row{
    display:grid!important;
    grid-template-columns:42px 1fr!important;
    gap:10px!important;
    padding:16px!important;
    border-bottom:1px solid #e6edf5!important;
  }

  body.px-admin #tab-reservas .reservas-compact-table tbody td{
    border-bottom:0!important;
    padding:4px 0!important;
  }

  body.px-admin #tab-reservas .res-compact-check{
    grid-row:1 / span 5!important;
    padding-top:4px!important;
    text-align:left!important;
  }

  body.px-admin #tab-reservas .res-compact-date,
  body.px-admin #tab-reservas .res-compact-person,
  body.px-admin #tab-reservas .res-compact-course,
  body.px-admin #tab-reservas .res-compact-status,
  body.px-admin #tab-reservas .res-compact-actions{
    grid-column:2!important;
  }

  body.px-admin #tab-reservas .res-compact-actions{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    margin-top:8px!important;
  }
}


/* ===== FASE5A142: eliminar cursos sin dependencias solo borrador/cancelado ===== */
body.px-admin .course-actions-cell{
  display:grid!important;
  gap:8px!important;
  align-content:start!important;
  min-width:120px!important;
}
body.px-admin .course-actions-cell .inline-form{
  margin:0!important;
}
body.px-admin .course-actions-cell .btn-admin{
  width:100%!important;
  justify-content:center!important;
}
body.px-admin .btn-danger,
body.px-admin .course-actions-cell .btn-danger{
  background:#b42318!important;
  border-color:#b42318!important;
  color:#fff!important;
}
body.px-admin .course-delete-disabled,
body.px-admin .course-dependency-note{
  display:block!important;
  margin-top:6px!important;
  color:#667085!important;
  font-size:11.5px!important;
  line-height:1.25!important;
  font-weight:800!important;
}
body.px-admin .course-delete-disabled{
  color:#b54708!important;
}


/* ===== FASE5A145: versión visible del CMS ===== */
.cms-v103-brand .cms-phase-badge{
  display:inline-flex!important;
  align-items:center!important;
  height:20px!important;
  margin-left:7px!important;
  padding:0 7px!important;
  border:1px solid #d8e7df!important;
  border-radius:999px!important;
  background:#eef8f2!important;
  color:#087b35!important;
  font:800 10px/1 Inter,"Segoe UI",Arial,sans-serif!important;
  letter-spacing:.035em!important;
  white-space:nowrap!important;
}
@media(max-width:760px){.cms-v103-brand .cms-phase-badge{display:none!important;}}

/* ===== FASE5A146: bloque descriptivo verde a la izquierda y acceso a la derecha ===== */
@media (min-width:901px){
  .px-login-shell{
    grid-template-columns:minmax(420px,1fr) minmax(360px,520px)!important;
  }
  .px-login-side{
    grid-column:1!important;
    grid-row:1!important;
  }
  .px-login-card{
    grid-column:2!important;
    grid-row:1!important;
  }
}


/* ===== FASE5A147: consolidación menú, acciones y KPIs ===== */
.cms-v103-menu-toggle,.ins-v99-menu-toggle{display:inline-flex!important;align-items:center!important;justify-content:center!important;padding:0!important;line-height:1!important;text-align:center!important}
.cms-menu-bars{display:grid!important;gap:4px!important;width:20px!important;height:auto!important;margin:auto!important;place-items:center!important}
.cms-menu-bars i{display:block!important;width:20px!important;height:2px!important;border-radius:999px!important;background:currentColor!important;margin:0!important;padding:0!important}
.res-compact-actions{align-items:stretch!important}
.res-compact-actions .inline-form,.res-compact-actions .btn-admin{width:100%!important}
.res-compact-actions .btn-admin{white-space:normal!important;line-height:1.18!important}
.res-compact-actions .action-reason{display:block!important;font-size:11px!important;line-height:1.35!important;text-align:center!important;margin-top:4px!important}
.ins-v99-kpi .payment-kpi-value{display:flex!important;flex-direction:column!important;align-items:flex-end!important;line-height:1.05!important;gap:4px!important;font-size:20px!important}
.ins-v99-kpi .payment-kpi-value span:first-child{font-size:13px!important;color:#667085!important}
.ins-v99-pagination a.disabled{pointer-events:none!important;opacity:.4!important}
.ins-v99-pagination a.active{background:#146ef5!important;color:#fff!important}


/* ===== FASE5A147B: estados separados de Pre-Inscripción, Pagos e Inscripción ===== */
.ins-v99-badge.academic.en_validacion{background:#eaf2ff!important;color:#0b63f6!important;}
.ins-v99-badge.academic.pendiente_documentos{background:#fff4d9!important;color:#a15c00!important;}
.ins-v99-badge.academic.aprobado_pendiente_pago{background:#f3e8ff!important;color:#6b21a8!important;}
.ins-v99-badge.academic.rechazado,.ins-v99-badge.academic.finalizado{background:#fdecec!important;color:#b42318!important;}
.ins-v99-badge.payment.no_aplica{background:#eef2f6!important;color:#475467!important;}

/* ===== FASE5A147B: avance académico visible dentro de Reservaciones ===== */
body.px-admin #tab-reservas .reservation-admin-badge.status-preinscription,
body.px-admin #tab-reservas .reservation-admin-badge.status-preinscription_received{
  background:#eaf2ff!important;
  color:#0b63f6!important;
  border-color:#cbdcff!important;
}
body.px-admin #tab-reservas .reservation-admin-badge.status-awaiting_payment{
  background:#f3e8ff!important;
  color:#6b21a8!important;
  border-color:#e2c8ff!important;
}
body.px-admin #tab-reservas .reservation-admin-badge.status-enrolled,
body.px-admin #tab-reservas .reservation-admin-badge.status-inscrito{
  background:#e9f8ef!important;
  color:#087443!important;
  border-color:#b7e6c9!important;
}
.ins-v99-field-note{display:flex;flex-direction:column;justify-content:center;gap:5px;min-height:74px;padding:14px 16px;border:1px solid #cfe0f7;border-radius:12px;background:#f5f9ff;color:#334155;}
.ins-v99-field-note strong{font-size:13px;color:#0b63f6;}
.ins-v99-field-note span{font-size:12px;line-height:1.45;}

/* ===== FASE5A148A1: acciones refinadas y módulo Páginas ===== */
body.px-admin .courses-page-box .course-actions-cell{
  min-width:176px!important;width:176px!important;padding:14px!important;
  border-left:1px solid #e4ebe7!important;background:#fbfdfc!important;
  align-content:center!important;justify-items:stretch!important;
}
body.px-admin .courses-page-box .course-actions-cell .btn-admin,
body.px-admin .courses-page-box .course-actions-cell .btn-light,
body.px-admin .courses-page-box .course-actions-cell .btn-danger{
  width:100%!important;min-width:0!important;max-width:none!important;height:42px!important;
}
body.px-admin .course-action-lock{
  display:grid!important;gap:3px!important;padding:10px 11px!important;border:1px solid #f0cf9e!important;
  border-radius:11px!important;background:#fff8ec!important;color:#8f4b00!important;white-space:normal!important;
}
body.px-admin .course-action-lock strong{font-size:12px!important;line-height:1.1!important;}
body.px-admin .course-action-lock small{font-size:10.5px!important;line-height:1.25!important;color:#9b681f!important;}

/* Profesores: acciones dentro del ancho útil, sin scroll provocado por botones. */
body.px-admin .professor-table-wrap{overflow-x:visible!important;}
body.px-admin table.professor-admin-table{
  width:100%!important;min-width:0!important;table-layout:fixed!important;
}
body.px-admin .professors-page-box .professor-admin-table th:nth-child(1),body.px-admin .professors-page-box .professor-admin-table td:nth-child(1){width:25%!important;}
body.px-admin .professors-page-box .professor-admin-table th:nth-child(2),body.px-admin .professors-page-box .professor-admin-table td:nth-child(2){width:23%!important;}
body.px-admin .professors-page-box .professor-admin-table th:nth-child(3),body.px-admin .professors-page-box .professor-admin-table td:nth-child(3){width:22%!important;}
body.px-admin .professors-page-box .professor-admin-table th:nth-child(4),body.px-admin .professors-page-box .professor-admin-table td:nth-child(4){width:10%!important;min-width:90px!important;}
body.px-admin .professors-page-box .professor-admin-table th:nth-child(5),body.px-admin .professors-page-box .professor-admin-table td:nth-child(5){width:20%!important;min-width:210px!important;}
body.px-admin .teacher-actions{justify-content:flex-start!important;gap:8px!important;padding-right:16px!important;}
body.px-admin .teacher-actions .btn-light,body.px-admin .teacher-actions button{width:88px!important;min-width:88px!important;max-width:88px!important;height:40px!important;}
@media(max-width:1100px){
  body.px-admin table.professor-admin-table{min-width:920px!important;}
  body.px-admin .professor-table-wrap{overflow-x:auto!important;padding-right:14px!important;}
}

/* Grupos: columna de acciones como bloque coherente. */
body.px-admin .groups-page-box .cohort-table th:last-child,
body.px-admin .groups-page-box .cohort-table td:last-child{width:318px!important;min-width:318px!important;max-width:318px!important;}
body.px-admin .cohort-actions-cell{padding:12px 16px!important;background:#fbfdfc!important;border-left:1px solid #e4ebe7!important;}
body.px-admin .cohort-action-row-v110{
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;width:100%!important;
}
body.px-admin .cohort-action-row-v110 .compact-action{
  width:100%!important;min-width:0!important;max-width:none!important;height:40px!important;font-size:12.5px!important;
}
body.px-admin .cohort-action-row-v110 .compact-danger{border-color:#efb6ae!important;color:#a7281b!important;background:#fff!important;}
body.px-admin .cohort-action-row-v110 .compact-warning{border-color:#e7d29e!important;color:#895c00!important;background:#fffaf0!important;}

/* Módulo Páginas */
body.px-admin .pages-admin-shell{display:grid;gap:20px;min-width:0;}
body.px-admin .pages-module-head{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;}
body.px-admin .pages-head-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end;}
body.px-admin .pages-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;}
body.px-admin .pages-kpis article{padding:18px 20px;border:1px solid #dde7e1;border-radius:16px;background:#fff;box-shadow:0 10px 30px rgba(16,24,40,.04);}
body.px-admin .pages-kpis span{display:block;color:#667085;font-size:13px;font-weight:750;}body.px-admin .pages-kpis strong{display:block;margin-top:6px;color:#111d33;font-size:30px;}
body.px-admin .pages-list-card{padding:0!important;overflow:hidden;}
body.px-admin .pages-filter-bar{display:grid;grid-template-columns:minmax(240px,1.5fr) repeat(3,minmax(150px,.65fr)) auto;gap:12px;align-items:end;padding:20px;border-bottom:1px solid #e1e8e4;background:#fbfdfc;}
body.px-admin .pages-filter-bar label,body.px-admin .pages-editor-form label{display:grid;gap:7px;color:#243047;font-weight:800;font-size:13px;}
body.px-admin .pages-filter-bar input,body.px-admin .pages-filter-bar select,body.px-admin .pages-editor-form input,body.px-admin .pages-editor-form select,body.px-admin .pages-editor-form textarea{width:100%;box-sizing:border-box;border:1px solid #cfdad4;border-radius:11px;background:#fff;color:#172238;padding:11px 12px;font:inherit;}
body.px-admin .pages-filter-actions{display:flex;gap:8px;}
body.px-admin .pages-list-heading{display:flex;justify-content:space-between;padding:20px 22px 12px;}body.px-admin .pages-list-heading h2{margin:0;font-size:21px;}body.px-admin .pages-list-heading p{margin:4px 0 0;color:#667085;}
body.px-admin .pages-table-wrap{overflow-x:auto;padding:0 20px 20px;}
body.px-admin .pages-admin-table{width:100%;border-collapse:separate;border-spacing:0;border:1px solid #dfe7e2;border-radius:15px;overflow:hidden;background:#fff;}
body.px-admin .pages-admin-table th{padding:13px 14px;background:#f5f8f6;color:#263248;text-align:left;font-size:13px;white-space:nowrap;}
body.px-admin .pages-admin-table td{padding:14px;border-top:1px solid #e5ece8;vertical-align:middle;color:#2f3a4e;}
body.px-admin .pages-admin-table tbody tr:hover{background:#fbfdfc;}
body.px-admin .pages-title-cell{display:grid;gap:4px;min-width:230px;}body.px-admin .pages-title-cell strong{color:#101c31;font-size:15px;}body.px-admin .pages-title-cell small{color:#728095;}body.px-admin .pages-title-cell p{margin:3px 0 0;color:#5d687b;font-size:12px;line-height:1.35;}
body.px-admin .pages-protected-mini,body.px-admin .pages-protected-badge{display:inline-flex;width:max-content;padding:4px 8px;border-radius:999px;background:#eef3ff;color:#3158ae;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.05em;}
body.px-admin .pages-status-pill,body.px-admin .pages-type-pill{display:inline-flex;padding:6px 9px;border-radius:999px;font-size:11.5px;font-weight:850;background:#eef3f0;color:#46556a;white-space:nowrap;}
body.px-admin .pages-status-pill.status-published{background:#e8f8ee;color:#087f39;}body.px-admin .pages-status-pill.status-draft{background:#fff4df;color:#935900;}body.px-admin .pages-status-pill.status-scheduled{background:#eaf1ff;color:#1959b7;}body.px-admin .pages-status-pill.status-hidden{background:#f0f2f5;color:#4c5668;}body.px-admin .pages-status-pill.status-archived{background:#fdecea;color:#a02d22;}
body.px-admin .pages-menu-copy{font-size:12px;color:#536176;}
body.px-admin .pages-row-actions{display:flex;align-items:center;gap:7px;min-width:210px;}
body.px-admin .px-btn.compact{min-height:36px!important;height:36px!important;padding:0 12px!important;font-size:12px!important;}
body.px-admin .pages-row-actions details{position:relative;}body.px-admin .pages-row-actions summary{list-style:none;cursor:pointer;padding:9px 11px;border:1px solid #d3ddd7;border-radius:10px;background:#fff;font-size:12px;font-weight:800;}body.px-admin .pages-row-actions summary::-webkit-details-marker{display:none;}
body.px-admin .pages-actions-menu{position:absolute;right:0;top:44px;z-index:30;min-width:170px;padding:7px;border:1px solid #dbe5df;border-radius:12px;background:#fff;box-shadow:0 16px 40px rgba(16,24,40,.14);}
body.px-admin .pages-actions-menu form{margin:0;}body.px-admin .pages-actions-menu button{display:block;width:100%;padding:9px 10px;border:0;background:transparent;text-align:left;border-radius:8px;color:#253147;font-weight:700;cursor:pointer;}body.px-admin .pages-actions-menu button:hover{background:#f2f7f4;}body.px-admin .pages-actions-menu button.danger{color:#a72a1d;}
body.px-admin .pages-empty-state{display:grid;place-items:center;gap:7px;min-height:220px;margin:0 20px 20px;border:1px dashed #cad8d0;border-radius:14px;color:#657286;background:#fbfdfc;}
body.px-admin .pages-editor-nav{display:flex;justify-content:space-between;gap:14px;}body.px-admin .pages-editor-nav a{color:#087f39;font-weight:800;text-decoration:none;}
body.px-admin .pages-editor-form{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(280px,.65fr);gap:18px;align-items:start;}
body.px-admin .pages-editor-main{padding:22px!important;}body.px-admin .pages-editor-side{display:grid;gap:16px;}body.px-admin .pages-editor-side .px-card{padding:18px!important;display:grid;gap:13px;}body.px-admin .pages-editor-side h2{margin:0;font-size:17px;}
body.px-admin .pages-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:18px;}body.px-admin .pages-card-head h2{margin:3px 0 0;font-size:24px;}
body.px-admin .pages-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;}body.px-admin .pages-form-grid .span2{grid-column:1/-1;}body.px-admin .pages-editor-form small{color:#6a7689;font-weight:500;line-height:1.35;}
body.px-admin .pages-editor-field{display:grid;gap:8px;}body.px-admin .pages-label{font-size:13px;font-weight:800;color:#243047;}
body.px-admin .pages-editor-toolbar{display:flex;gap:6px;flex-wrap:wrap;padding:8px;border:1px solid #d7e1dc;border-bottom:0;border-radius:11px 11px 0 0;background:#f7faf8;}body.px-admin .pages-editor-toolbar button{min-height:32px!important;height:32px!important;padding:0 10px!important;border:1px solid #d4ded8!important;background:#fff!important;color:#28364c!important;border-radius:8px!important;font-size:11px!important;font-weight:800!important;}
body.px-admin #pageBodyEditor{border-radius:0 0 11px 11px!important;font-family:ui-monospace,SFMono-Regular,Consolas,monospace!important;font-size:13px!important;line-height:1.55!important;}
body.px-admin .pages-save-btn,body.px-admin .pages-editor-side .px-btn.full{width:100%!important;justify-content:center!important;}
body.px-admin .pages-check{display:flex!important;grid-template-columns:auto 1fr!important;align-items:center!important;gap:8px!important;}body.px-admin .pages-check input{width:auto!important;}
body.px-admin .pages-feature-preview{display:block;width:100%;max-height:190px;object-fit:cover;border:1px solid #dbe5df;border-radius:12px;}
body.px-admin .pages-history-card{padding:20px!important;}body.px-admin .pages-history-list{display:grid;gap:9px;}body.px-admin .pages-history-list article{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:12px 14px;border:1px solid #e0e8e3;border-radius:12px;}body.px-admin .pages-history-list article div{display:grid;gap:3px;}body.px-admin .pages-history-list small{color:#6a7688;}body.px-admin .pages-empty-inline{color:#667085;}
@media(max-width:1180px){body.px-admin .pages-filter-bar{grid-template-columns:repeat(2,minmax(0,1fr));}body.px-admin .pages-filter-actions{grid-column:1/-1;}body.px-admin .pages-editor-form{grid-template-columns:1fr;}body.px-admin .pages-editor-side{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:760px){body.px-admin .pages-module-head{display:grid;}body.px-admin .pages-head-actions{justify-content:flex-start;}body.px-admin .pages-kpis{grid-template-columns:repeat(2,1fr);}body.px-admin .pages-filter-bar{grid-template-columns:1fr;}body.px-admin .pages-filter-actions{grid-column:auto;}body.px-admin .pages-editor-side{grid-template-columns:1fr;}body.px-admin .pages-form-grid{grid-template-columns:1fr;}body.px-admin .pages-form-grid .span2{grid-column:auto;}body.px-admin .pages-admin-table thead{display:none;}body.px-admin .pages-admin-table,body.px-admin .pages-admin-table tbody,body.px-admin .pages-admin-table tr,body.px-admin .pages-admin-table td{display:block;width:100%;box-sizing:border-box;}body.px-admin .pages-admin-table tr{padding:12px;border-top:1px solid #e4ebe7;}body.px-admin .pages-admin-table tr:first-child{border-top:0;}body.px-admin .pages-admin-table td{display:grid;grid-template-columns:105px 1fr;gap:10px;border:0;padding:7px;}body.px-admin .pages-admin-table td:before{content:attr(data-label);font-size:11px;font-weight:900;text-transform:uppercase;color:#758196;}body.px-admin .pages-row-actions{min-width:0;flex-wrap:wrap;}}

/* =====================================================================
   FASE5A148C — UX, navegación, coherencia, móvil y accesibilidad
   ===================================================================== */
:root{
  --px-ux-focus:#0b63f6;
  --px-ux-green:#0f8f4d;
  --px-ux-green-soft:#eaf8f0;
  --px-ux-blue:#146ef5;
  --px-ux-blue-soft:#eef5ff;
  --px-ux-amber:#a15c00;
  --px-ux-amber-soft:#fff6df;
  --px-ux-red:#b42318;
  --px-ux-red-soft:#fff1f0;
  --px-ux-gray-soft:#f7f9fc;
  --px-ux-border:#d7deea;
}
.px-sr-only{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  padding:0!important;
  margin:-1px!important;
  overflow:hidden!important;
  clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;
  border:0!important;
}
.px-skip-link{
  position:fixed;
  top:10px;
  left:12px;
  z-index:99999;
  transform:translateY(-160%);
  background:#101828;
  color:#fff;
  border-radius:9px;
  padding:11px 16px;
  font-weight:800;
  box-shadow:0 12px 30px rgba(16,24,40,.28);
}
.px-skip-link:focus{transform:translateY(0)}
body.px-admin :where(a,button,input,select,textarea,[tabindex]):focus-visible{
  outline:3px solid var(--px-ux-focus)!important;
  outline-offset:3px!important;
  box-shadow:0 0 0 5px rgba(11,99,246,.14)!important;
}
body.px-admin main:focus{outline:none!important;box-shadow:none!important}
body.px-admin button,
body.px-admin .btn-admin,
body.px-admin .ins-v99-btn,
body.px-admin .pages-btn{min-height:42px}
body.px-admin button.is-submitting,
body.px-admin [aria-busy="true"]{opacity:.72;cursor:progress!important}

/* Mensajes del sistema */
body.px-admin .px-flash{
  display:flex!important;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  border:1px solid var(--px-ux-border)!important;
  border-left-width:6px!important;
  padding:15px 16px!important;
  box-shadow:0 10px 26px rgba(16,24,40,.07);
}
.px-flash-copy{display:grid;gap:3px;min-width:0}
.px-flash-copy strong{font-size:14px;color:#101828}
.px-flash-copy span{font-weight:600;color:#344054;overflow-wrap:anywhere}
.px-flash-close{
  flex:0 0 auto;
  width:36px;
  min-height:36px!important;
  border-radius:9px!important;
  padding:0!important;
  background:transparent!important;
  color:#475467!important;
  box-shadow:none!important;
  font-size:22px!important;
  line-height:1!important;
}
.px-flash-close:hover{background:rgba(16,24,40,.06)!important}

/* Cabecera y navegación */
body.px-admin .cms-v103-topbar{
  border-bottom:1px solid #dde3ec;
  box-shadow:0 8px 24px rgba(16,24,40,.07);
}
body.px-admin .cms-v103-search{max-width:540px}
body.px-admin .cms-v103-search input{font-size:14px!important}
body.px-admin .cms-v103-search button{min-height:38px!important;box-shadow:none!important}
body.px-admin .cms-nav-section{margin-bottom:17px}
body.px-admin .cms-nav-title{
  color:#667085!important;
  font-size:11px!important;
  font-weight:900!important;
  letter-spacing:.08em!important;
  text-transform:uppercase!important;
  padding:0 8px 7px!important;
}
body.px-admin .cms-nav-links{display:grid;gap:5px}
body.px-admin .cms-nav-links a{
  min-height:43px!important;
  padding:10px 12px!important;
  border-radius:10px!important;
  font-size:14px!important;
  font-weight:750!important;
  border:1px solid transparent!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
}
body.px-admin .cms-nav-links a:hover{
  background:#f5f8fb!important;
  border-color:#e3e8f0!important;
}
body.px-admin .cms-nav-links a.active,
body.px-admin .cms-nav-links a[aria-current="page"]{
  background:var(--px-ux-green-soft)!important;
  color:#08733b!important;
  border-color:#bfe7cf!important;
  box-shadow:inset 4px 0 0 var(--px-ux-green)!important;
}
body.px-admin .cms-nav-links a[aria-current="page"]::after{
  content:'Actual';
  color:#08733b;
  background:#fff;
  border:1px solid #bfe7cf;
  border-radius:999px;
  padding:2px 7px;
  font-size:10px;
  font-weight:900;
}
body.px-admin .side-user-card{border-bottom:1px solid #e6ebf2;padding-bottom:16px;margin-bottom:16px}

/* Cabeceras, ayudas y flujo */
.px-section-caption{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin:4px 0 10px;
  color:#475467;
  font-size:13px;
}
.px-section-caption strong{color:#101828;font-size:14px}
.px-section-caption span{text-align:right}
.px-process-flow{
  list-style:none;
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:8px;
  margin:0 0 18px;
  padding:0;
}
.px-process-flow li{
  position:relative;
  display:flex;
  align-items:center;
  gap:9px;
  min-height:46px;
  padding:9px 11px;
  border:1px solid #dce3ed;
  border-radius:11px;
  background:#fff;
  color:#475467;
  font-size:12px;
  font-weight:800;
}
.px-process-flow li::before{
  content:attr(data-step);
  flex:0 0 25px;
  width:25px;
  height:25px;
  display:grid;
  place-items:center;
  border-radius:999px;
  background:#eef2f6;
  color:#475467;
  font-size:11px;
}
.px-process-flow li.is-current{
  border-color:#9cc9ff;
  background:var(--px-ux-blue-soft);
  color:#0b4fb5;
}
.px-process-flow li.is-current::before{background:var(--px-ux-blue);color:#fff}
.px-process-flow li.is-complete{
  border-color:#bfe7cf;
  background:var(--px-ux-green-soft);
  color:#08733b;
}
.px-process-flow li.is-complete::before{content:'✓';background:var(--px-ux-green);color:#fff}
.px-filter-summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin:0 0 12px;
  padding:10px 12px;
  background:#f8fafc;
  border:1px solid #e2e8f0;
  border-radius:10px;
  color:#475467;
  font-size:13px;
}
.px-filter-summary strong{color:#101828}

/* Filtros, acciones y paginación coherentes */
body.px-admin :where(.reservas-final-filters,.ins-v99-search,.pages-toolbar,.maintenance-toolbar){
  border-color:#dce3ed!important;
}
body.px-admin .reservas-final-filters{
  background:#fbfcfe!important;
  border:1px solid #dce3ed!important;
  border-radius:14px!important;
  padding:15px!important;
}
body.px-admin .filter-actions{align-self:end!important}
body.px-admin .filter-actions .btn-admin{min-width:104px}
body.px-admin :where(.reservas-pagination-pages,.ins-v99-pagination){gap:5px;flex-wrap:wrap}
body.px-admin :where(.reservas-pagination-pages,.ins-v99-pagination) a{
  min-width:38px;
  min-height:38px;
  display:inline-grid;
  place-items:center;
  border-radius:9px;
}
body.px-admin :where(.reservas-pagination-pages,.ins-v99-pagination) a.active,
body.px-admin :where(.reservas-pagination-pages,.ins-v99-pagination) a[aria-current="page"]{
  background:var(--px-ux-blue)!important;
  color:#fff!important;
  border-color:var(--px-ux-blue)!important;
}

/* Estados visuales consistentes */
body.px-admin :where(.reservation-admin-badge,.ins-v99-badge,.status-badge,.pages-status){
  display:inline-flex!important;
  align-items:center!important;
  gap:6px!important;
  min-height:27px!important;
  padding:4px 9px!important;
  border-radius:999px!important;
  border:1px solid transparent!important;
  font-size:11px!important;
  font-weight:900!important;
  line-height:1.2!important;
  white-space:normal!important;
}
body.px-admin :where(.status-new,.status-pending,.pendiente,.solicitud,.preinscrito){background:var(--px-ux-amber-soft)!important;color:var(--px-ux-amber)!important;border-color:#f4d798!important}
body.px-admin :where(.status-contacted,.status-confirmed,.status-preinscription,.en_validacion,.parcial,.academic.aprobado_pendiente_pago){background:var(--px-ux-blue-soft)!important;color:#0b4fb5!important;border-color:#b7d7ff!important}
body.px-admin :where(.status-enrolled,.pagado,.exonerado,.academic.inscrito){background:var(--px-ux-green-soft)!important;color:#08733b!important;border-color:#bfe7cf!important}
body.px-admin :where(.status-cancelled,.status-unavailable,.cancelado,.rechazado,.anulado){background:var(--px-ux-red-soft)!important;color:var(--px-ux-red)!important;border-color:#f2b8b5!important}

/* Tablas: lectura, acciones y desplazamiento */
body.px-admin .px-responsive-data-table{
  width:100%!important;
  border-collapse:separate!important;
  border-spacing:0!important;
}
body.px-admin .px-responsive-data-table thead th{
  position:sticky;
  top:0;
  z-index:2;
  background:#f4f7fb!important;
  color:#344054!important;
  font-size:12px!important;
  font-weight:900!important;
  letter-spacing:.025em!important;
  text-transform:none!important;
  border-bottom:1px solid #dce3ed!important;
}
body.px-admin .px-responsive-data-table tbody tr{transition:background-color .16s ease,box-shadow .16s ease}
body.px-admin .px-responsive-data-table tbody tr:hover{background:#fafcff!important}
body.px-admin .px-responsive-data-table td{overflow-wrap:anywhere}
body.px-admin .px-responsive-data-table td small{display:block;color:#667085;margin-top:4px}
body.px-admin .px-responsive-data-table :where(a,button){max-width:100%}
body.px-admin :where(.res-compact-actions,.ins-v99-actions,.teacher-actions,.course-actions-cell,.cohort-actions){
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:flex-start!important;
  gap:7px!important;
}
body.px-admin .ins-v99-actions > a,
body.px-admin .ins-v99-actions > form button{
  width:auto!important;
  min-width:42px!important;
  min-height:36px!important;
  padding:7px 10px!important;
  border-radius:8px!important;
  font-size:12px!important;
  font-weight:850!important;
  box-shadow:none!important;
}
body.px-admin .ins-v99-actions > a{background:#fff!important;border:1px solid #d6deea!important;color:#344054!important}
body.px-admin .ins-v99-actions > form button{background:#eef5ff!important;border:1px solid #b7d7ff!important;color:#0b4fb5!important}

/* Estados vacíos */
.px-empty-state{
  display:grid;
  justify-items:center;
  gap:7px;
  padding:34px 18px;
  text-align:center;
  color:#667085;
}
.px-empty-state .px-empty-icon{
  width:48px;
  height:48px;
  display:grid;
  place-items:center;
  border-radius:999px;
  background:#eef3f8;
  color:#475467;
  font-size:23px;
}
.px-empty-state strong{font-size:16px;color:#101828}
.px-empty-state p{max-width:520px;margin:0;line-height:1.55}
.px-empty-state .btn-admin{margin-top:5px}

/* KPIs: identificación clara como resumen general */
body.px-admin :where(.reservas-final-dashboard .dash-card,.ins-v99-kpi){
  transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease;
}
body.px-admin :where(.reservas-final-dashboard .dash-card,.ins-v99-kpi):hover{
  transform:translateY(-2px);
  border-color:#c3cedd!important;
  box-shadow:0 14px 30px rgba(16,24,40,.08)!important;
}

/* Pantallas pequeñas */
@media(max-width:1100px){
  .px-process-flow{grid-template-columns:repeat(3,minmax(0,1fr))}
  body.px-admin .cms-v103-search{max-width:none}
  .px-section-caption{align-items:flex-start;flex-direction:column;gap:3px}
  .px-section-caption span{text-align:left}
}
@media(max-width:900px){
  body.px-admin{overflow-x:hidden}
  body.px-admin .cms-v103-topbar{padding-inline:12px!important}
  body.px-admin .admin-wrap{width:100%!important;margin:18px 0 42px!important;padding:0 12px!important;display:block!important}
  body.px-admin .admin-wrap > aside.side-card{
    position:fixed!important;
    inset:0 auto 0 0!important;
    z-index:1000!important;
    width:min(340px,88vw)!important;
    max-height:100vh!important;
    overflow-y:auto!important;
    border-radius:0 16px 16px 0!important;
    transform:translateX(-110%)!important;
    transition:transform .2s ease!important;
    top:0!important;
    padding-top:82px!important;
    box-shadow:20px 0 50px rgba(16,24,40,.22)!important;
  }
  body.px-admin.px-cms-global-menu-open .admin-wrap > aside.side-card,
  body.px-admin.px-cms-rail-open .admin-wrap > aside.side-card{transform:translateX(0)!important}
  body.px-admin.px-cms-global-menu-open::after,
  body.px-admin.px-cms-rail-open::after{
    content:'';
    position:fixed;
    inset:0;
    z-index:990;
    background:rgba(16,24,40,.48);
    backdrop-filter:blur(2px);
  }
  body.px-admin.px-cms-global-menu-open,
  body.px-admin.px-cms-rail-open{overflow:hidden}
  body.px-admin .cms-v103-user-copy{display:none!important}
  body.px-admin .cms-v103-public{display:none!important}
  .px-process-flow{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.px-admin .reservas-final-filters{grid-template-columns:1fr 1fr!important}
  body.px-admin .reservas-final-filters .filter-search{grid-column:1/-1!important}
  body.px-admin .reservas-final-filters .filter-actions{grid-column:1/-1!important;display:flex!important}
}
@media(max-width:760px){
  body.px-admin .cms-v103-topbar{
    min-height:64px!important;
    display:grid!important;
    grid-template-columns:auto minmax(0,1fr) auto!important;
    gap:8px!important;
  }
  body.px-admin .cms-v103-left{min-width:0!important}
  body.px-admin .cms-v103-brand img{max-width:132px!important}
  body.px-admin .cms-v103-search{
    grid-column:1/-1!important;
    grid-row:2!important;
    width:100%!important;
    margin:0 0 8px!important;
  }
  body.px-admin .cms-v103-user{gap:7px!important}
  body.px-admin .cms-v103-logout{font-size:12px!important;padding:8px!important}
  body.px-admin .page-title,
  body.px-admin .ins-v99-head h1{font-size:27px!important}
  .px-process-flow{grid-template-columns:1fr}
  .px-process-flow li{min-height:42px}
  body.px-admin .reservas-final-filters{grid-template-columns:1fr!important}
  body.px-admin .reservas-final-filters .filter-search,
  body.px-admin .reservas-final-filters .filter-actions{grid-column:auto!important}
  body.px-admin .filter-actions{display:grid!important;grid-template-columns:1fr!important}
  body.px-admin .filter-actions :where(button,a){width:100%!important}
  body.px-admin .reservas-final-dashboard,
  body.px-admin .ins-v99-kpis{grid-template-columns:1fr 1fr!important;gap:10px!important}
  body.px-admin .ins-v99-kpi{min-height:112px!important;padding:15px!important;grid-template-columns:46px 1fr auto!important}
  body.px-admin .ins-v99-kpi .ico{width:42px!important;height:42px!important;font-size:20px!important}
  body.px-admin .ins-v99-kpi strong{font-size:23px!important}
  body.px-admin .ins-v99-head{grid-template-columns:1fr!important}
  body.px-admin .ins-v99-head-actions{justify-content:flex-start!important;flex-wrap:wrap!important}
  body.px-admin .ins-v99-head-actions > *{flex:1 1 170px!important}
  body.px-admin .reservas-bulk-final{display:grid!important;grid-template-columns:1fr!important}
  body.px-admin .reservas-pagination-bar,
  body.px-admin .ins-v99-pagination{align-items:flex-start!important;flex-direction:column!important;gap:10px!important}

  /* Tablas como tarjetas accesibles en móvil */
  body.px-admin .px-responsive-data-table,
  body.px-admin .px-responsive-data-table tbody,
  body.px-admin .px-responsive-data-table tr,
  body.px-admin .px-responsive-data-table td{display:block!important;width:100%!important;max-width:none!important;min-width:0!important}
  body.px-admin .px-responsive-data-table thead{
    position:absolute!important;
    width:1px!important;
    height:1px!important;
    padding:0!important;
    margin:-1px!important;
    overflow:hidden!important;
    clip:rect(0,0,0,0)!important;
    white-space:nowrap!important;
    border:0!important;
  }
  body.px-admin .px-responsive-data-table tbody{display:grid!important;gap:12px!important;background:transparent!important}
  body.px-admin .px-responsive-data-table tbody tr{
    display:grid!important;
    gap:0!important;
    padding:10px 13px!important;
    border:1px solid #dce3ed!important;
    border-radius:14px!important;
    background:#fff!important;
    box-shadow:0 8px 22px rgba(16,24,40,.05)!important;
  }
  body.px-admin .px-responsive-data-table tbody tr:has(td[colspan]){padding:0!important}
  body.px-admin .px-responsive-data-table td{
    display:grid!important;
    grid-template-columns:minmax(105px,34%) minmax(0,1fr)!important;
    gap:12px!important;
    align-items:start!important;
    padding:10px 0!important;
    border:0!important;
    border-bottom:1px solid #edf1f6!important;
    text-align:left!important;
    background:transparent!important;
  }
  body.px-admin .px-responsive-data-table td:last-child{border-bottom:0!important}
  body.px-admin .px-responsive-data-table td::before{
    content:attr(data-label);
    color:#667085;
    font-size:11px;
    font-weight:900;
    letter-spacing:.025em;
    text-transform:uppercase;
  }
  body.px-admin .px-responsive-data-table td[colspan]{display:block!important;text-align:center!important;border:0!important}
  body.px-admin .px-responsive-data-table td[colspan]::before{display:none!important}
  body.px-admin .px-responsive-data-table :where(.res-compact-actions,.ins-v99-actions,.teacher-actions,.course-actions-cell,.cohort-actions){justify-content:flex-start!important}
  body.px-admin .reservas-final-table-card,
  body.px-admin .ins-v99-table-wrap,
  body.px-admin .diag-scroll{overflow:visible!important;max-width:100%!important}
}
@media(max-width:520px){
  body.px-admin .reservas-final-dashboard,
  body.px-admin .ins-v99-kpis{grid-template-columns:1fr!important}
  body.px-admin .px-responsive-data-table td{grid-template-columns:1fr!important;gap:5px!important}
  body.px-admin .px-responsive-data-table td::before{margin-bottom:1px}
  .px-filter-summary{align-items:flex-start;flex-direction:column}
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation-duration:.01ms!important;
    animation-iteration-count:1!important;
    scroll-behavior:auto!important;
    transition-duration:.01ms!important;
  }
}
body.px-admin .cms-v103-context{
  min-width:220px;
  display:grid;
  gap:1px;
  justify-items:start;
  padding:8px 12px;
  border:1px solid #dde4ed;
  border-radius:10px;
  background:#f8fafc;
}
body.px-admin .cms-v103-context span{font-size:10px;font-weight:900;letter-spacing:.06em;text-transform:uppercase;color:#667085}
body.px-admin .cms-v103-context strong{font-size:13px;color:#101828}
@media(max-width:760px){
  body.px-admin .cms-v103-context{grid-column:1/-1!important;grid-row:2!important;width:100%!important;min-width:0!important;margin-bottom:8px!important}
}

/* FASE5A148C2: estado intermedio del flujo de reservación */
body.px-admin #tab-reservas .reservation-admin-badge.status-email_verified{
  background:#eef4ff!important;
  color:#174ea6!important;
  border-color:#bfd3ff!important;
}
body.px-admin #tab-reservas .reservation-admin-badge.status-maintenance_pending{
  background:#fff7e8!important;
  color:#8a5200!important;
  border-color:#f4d49a!important;
}

/* FASE5A148C2: enlace seguro recuperable cuando el servidor de correo falla */
body.px-admin #tab-reservas .px-secure-link-notice{display:grid;gap:12px;margin:14px 0;padding:16px;border:1px solid #f5c26b;border-radius:15px;background:#fff8e8;color:#713f12}
body.px-admin #tab-reservas .px-secure-link-notice strong,body.px-admin #tab-reservas .px-secure-link-notice span{display:block}
body.px-admin #tab-reservas .px-secure-link-notice span{margin-top:4px;line-height:1.45}
body.px-admin #tab-reservas .px-secure-link-copy{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px}
body.px-admin #tab-reservas .px-secure-link-copy input{min-width:0;width:100%;padding:11px 12px;border:1px solid #dfb04f;border-radius:10px;background:#fff;font:600 12px/1.4 monospace}
@media(max-width:680px){body.px-admin #tab-reservas .px-secure-link-copy{grid-template-columns:1fr}body.px-admin #tab-reservas .px-secure-link-copy .btn-admin{width:100%}}

/* FASE5A148C2A — navegación académica y trazabilidad */
body.px-admin .ins-v99-table tr.px-row-highlight > td{
  background:#eef8f2!important;
  box-shadow:inset 0 1px 0 #bfe8cd,inset 0 -1px 0 #bfe8cd;
}
body.px-admin .ins-v99-table tr.px-row-highlight > td:first-child{
  box-shadow:inset 4px 0 0 #0b8a3b,inset 0 1px 0 #bfe8cd,inset 0 -1px 0 #bfe8cd;
}


/* FASE5A148C2D — filtros del reporte inferior de Pagos */
body.px-admin .payment-report-filters{
  margin:0 0 16px;
  padding:13px 14px;
  border:1px solid #d9e4ef;
  border-radius:18px;
  background:#fff;
  box-shadow:0 10px 28px rgba(16,32,52,.055);
}
body.px-admin .payment-report-filter-form{
  display:grid;
  grid-template-columns:minmax(260px,1.45fr) repeat(3,minmax(190px,1fr)) auto;
  gap:9px 10px;
  align-items:end;
}
body.px-admin .payment-report-filter-form label{
  display:grid;
  gap:4px;
  min-width:0;
  color:#102034;
  font-size:.84rem;
  font-weight:800;
}
body.px-admin .payment-report-filter-form :where(input,select){
  width:100%;
  min-width:0;
  min-height:42px;
  padding:7px 11px;
  border:1px solid #cfdae7;
  border-radius:13px;
  background:#fff;
  color:#172033;
  font:inherit;
}
body.px-admin .payment-report-filter-form :where(input,select):focus{
  border-color:#1769e8;
  outline:3px solid rgba(23,105,232,.13);
  outline-offset:1px;
}
body.px-admin .payment-filter-actions{
  display:flex;
  gap:7px;
  align-items:stretch;
}
body.px-admin .payment-filter-actions .ins-v99-btn{
  min-height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  white-space:nowrap;
}
@media(max-width:1280px){
  body.px-admin .payment-report-filter-form{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.px-admin .payment-filter-search{grid-column:1/-1}
  body.px-admin .payment-filter-actions{grid-column:1/-1;justify-content:flex-end}
}
@media(max-width:720px){
  body.px-admin .payment-report-filters{padding:14px;border-radius:15px}
  body.px-admin .payment-report-filter-form{grid-template-columns:1fr}
  body.px-admin .payment-filter-search,body.px-admin .payment-filter-actions{grid-column:auto}
  body.px-admin .payment-filter-actions{display:grid;grid-template-columns:1fr}
  body.px-admin .payment-filter-actions .ins-v99-btn{width:100%}
}

/* FASE5A155A — filtros completos y responsivos de Inscripciones */
body.px-admin .enrollment-report-filters .payment-report-filter-form{
  grid-template-columns:minmax(240px,1.5fr) repeat(4,minmax(145px,1fr));
}
body.px-admin .enrollment-report-filters .payment-filter-search{
  grid-column:span 2;
}
body.px-admin .enrollment-report-filters .payment-filter-actions{
  grid-column:auto;
  justify-content:flex-end;
}
@media(max-width:1180px){
  body.px-admin .enrollment-report-filters .payment-report-filter-form{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.px-admin .enrollment-report-filters .payment-filter-search,
  body.px-admin .enrollment-report-filters .payment-filter-actions{grid-column:1/-1}
}
@media(max-width:620px){
  body.px-admin .enrollment-report-filters .payment-report-filter-form{grid-template-columns:1fr}
  body.px-admin .enrollment-report-filters .payment-filter-search,
  body.px-admin .enrollment-report-filters .payment-filter-actions{grid-column:auto}
}

/* FASE5A155F — imagen única e históricos heredados */
.course-image-unified-grid{display:grid;grid-template-columns:minmax(280px,.8fr) minmax(320px,1.2fr);gap:24px;align-items:start}
.course-image-unified-card .preview-spec-row{margin:0}
.course-image-unified-card .v74-preview-card{min-height:250px;display:grid;place-items:center;background:#f8faf9;border:1px dashed #bfd2c8;border-radius:16px;padding:18px}
.course-image-unified-card .image-spec{margin-top:12px}
.cohort-simple-form input[readonly]{background:#f5f8f6;color:#304238;border-style:dashed}
@media(max-width:900px){.course-image-unified-grid{grid-template-columns:1fr}.course-image-unified-card .v74-preview-card{min-height:210px}}
/* FASE5A171B11 — constructor visual del programa. */
.program-builder{border:1px solid #d8e2ee;border-radius:14px;padding:16px;background:#f8fafc}
.program-builder-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}
.program-builder-head div{display:grid;gap:4px}.program-builder-head small{color:#667085}
.program-module-row{display:grid;grid-template-columns:minmax(220px,.8fr) minmax(300px,1.4fr);gap:12px;padding:14px;margin:10px 0;border:1px solid #dbe4ef;border-radius:12px;background:#fff}
.program-module-row .button-row{grid-column:1/-1;margin:0}
@media(max-width:760px){.program-builder-head,.program-module-row{display:grid;grid-template-columns:1fr}.program-module-row .button-row{grid-column:auto}}

/* 171B48: SSO administrable con la línea visual aprobada para selección de portal. */
.px-global-login-page{min-height:100vh;background:linear-gradient(145deg,var(--sso-bg-start,#041a3b),var(--sso-bg-end,#0b3c74));color:#172033}
.px-global-login-page:before{content:"";position:fixed;inset:0;pointer-events:none;background:radial-gradient(circle at 14% 18%,rgba(83,159,255,.22),transparent 32%),radial-gradient(circle at 85% 80%,rgba(15,219,132,.09),transparent 28%)}
.px-global-login-shell{position:relative;display:grid;grid-template-columns:minmax(420px,var(--sso-card-width,520px)) minmax(500px,720px);gap:28px;width:min(1280px,calc(100% - 48px));min-height:100vh;margin:0 auto;padding:42px 0;align-items:center;justify-content:center;box-sizing:border-box}
.px-global-login-shell.has-texture:after{content:"";position:fixed;inset:0;z-index:-1;opacity:.18;pointer-events:none;background-image:linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px);background-size:36px 36px}
.without-sso-banner .px-global-login-shell{grid-template-columns:minmax(420px,var(--sso-card-width,520px));width:min(calc(var(--sso-card-width,520px) + 48px),calc(100% - 32px))}
.px-global-login-card{display:flex;flex-direction:column;width:100%;min-height:660px;margin:0;padding:40px 42px 28px;border:1px solid rgba(255,255,255,.74);border-radius:var(--sso-card-radius,28px);background:rgba(255,255,255,.98);box-shadow:0 28px 80px rgba(0,12,36,.32);box-sizing:border-box}
.px-global-login-logo{align-self:flex-start;margin:0 0 42px}
.px-global-login-logo img{display:block;width:var(--sso-logo-width,150px);max-width:100%;height:auto;max-height:58px;object-fit:contain;object-position:left center}
.px-global-login-card .px-login-heading{text-align:left}
.px-global-login-card .px-login-heading h1{margin:0 0 10px;color:#10223d;font-size:34px;line-height:1.14;font-weight:850;letter-spacing:-.025em}
.px-global-login-card .px-login-heading p{margin:0 0 28px;color:#667085;font-size:15px;line-height:1.55}
.px-sso-preview-badge{display:inline-flex;margin-bottom:12px;padding:6px 10px;border-radius:999px;background:#eaf3ff;color:#175ea8;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.07em}
.px-login-maintenance{margin:-8px 0 18px;padding:12px 14px;border:1px solid #f3d28b;border-radius:10px;background:#fff8e7;color:#77520a;font-size:13px;line-height:1.45}
.px-global-login-card .px-login-form{display:grid;gap:17px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
.px-global-login-card .px-login-form label{display:grid;gap:8px;color:#172033;font-size:13px;font-weight:800}
.px-global-login-card .px-login-form input{height:54px;border:1px solid #cbd5e1;border-radius:11px;background:#f8fafc;font-size:15px;transition:border-color .2s,box-shadow .2s,background .2s}
.px-global-login-card .px-login-form input:focus{border-color:#2775c5;background:#fff;box-shadow:0 0 0 4px rgba(39,117,197,.12);outline:none}
.px-global-login-card .px-login-form button{min-height:54px;margin-top:3px;border-radius:11px;background:linear-gradient(135deg,#0aa348,#078a3b);box-shadow:0 10px 22px rgba(7,138,59,.2);font-size:15px;letter-spacing:.035em}
.px-global-login-card .px-login-recovery{margin-top:-2px;color:#1761a8;text-align:right;font-size:12px;font-weight:700}
.px-global-login-footer{display:grid;justify-items:center;gap:17px;margin-top:auto;padding-top:34px;color:#718096;font-size:11px}
.px-global-login-footer nav{display:flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap}
.px-global-login-footer nav a{color:#1761a8;text-decoration:none;font-weight:700}
.px-global-login-footer nav a:hover,.px-global-login-footer nav a:focus-visible{text-decoration:underline}
.px-global-login-footer nav span{color:#94a3b8}
.px-global-login-side{position:relative;display:flex;width:100%;overflow:hidden;border:1px solid rgba(255,255,255,.16);border-radius:var(--sso-card-radius,28px);background:#031632;box-shadow:0 28px 80px rgba(0,12,36,.32)}
.px-global-login-slides{position:relative;display:flex;width:100%;min-height:660px;flex-direction:column;overflow:hidden;border-radius:inherit;background:#031632}
.px-global-login-media{position:relative;width:100%;aspect-ratio:16/9;flex:0 0 auto;overflow:hidden;background:#020f24}
.px-global-login-slide{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:center;opacity:0;transition:opacity .8s ease;pointer-events:none}
.px-global-login-slide.is-active{opacity:1}
.px-global-side-copy{position:relative;display:flex;min-height:0;flex:1;align-items:flex-end;justify-content:space-between;gap:28px;padding:32px 36px 30px;color:#fff;background:radial-gradient(circle at 88% 90%,rgba(21,112,221,.28),transparent 38%),linear-gradient(145deg,#061a3b,#0a3568);box-sizing:border-box}
.px-global-side-copy:before{content:"";position:absolute;inset:0;pointer-events:none;opacity:.2;background-image:linear-gradient(rgba(107,173,255,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(107,173,255,.08) 1px,transparent 1px);background-size:34px 34px}
.px-global-side-copy>*{position:relative;z-index:1}
.px-global-side-kicker{display:inline-flex;margin:0 0 12px;padding:6px 10px;border:1px solid rgba(130,188,255,.28);border-radius:999px;background:rgba(4,28,64,.42);color:#9fcaff;font-size:10px;font-weight:900;letter-spacing:.15em;text-transform:uppercase}
.px-global-side-copy h2{max-width:520px;margin:0 0 8px;color:#fff;font-size:clamp(25px,2.15vw,34px);font-weight:800;line-height:1.12;letter-spacing:-.025em}
.px-global-side-copy p{max-width:510px;margin:0;color:#c6d7ec;font-size:14px;line-height:1.55}
.px-global-side-copy small{align-self:flex-end;max-width:230px;color:#9bb9dc;font-size:11px;line-height:1.45;text-align:right}
.px-global-login-empty{position:relative;display:flex;width:100%;min-height:660px;flex-direction:column;overflow:hidden;color:#fff;background:#031632}
.px-global-login-empty-media{position:relative;display:grid;width:100%;aspect-ratio:16/9;flex:0 0 auto;place-items:center;overflow:hidden;background:radial-gradient(circle at 70% 26%,rgba(47,132,255,.3),transparent 35%),linear-gradient(145deg,#031632,#0a3b75)}
.px-global-login-empty-media:before{content:"";position:absolute;inset:0;opacity:.35;background-image:linear-gradient(rgba(107,173,255,.09) 1px,transparent 1px),linear-gradient(90deg,rgba(107,173,255,.09) 1px,transparent 1px);background-size:38px 38px}
.px-global-login-empty-media span{position:relative;width:34%;aspect-ratio:16/9;border:1px solid rgba(142,195,255,.36);border-radius:16px;box-shadow:0 0 0 16px rgba(61,139,234,.035),0 18px 48px rgba(0,8,28,.28)}
.px-global-login-empty-media span:before{content:"";position:absolute;inset:23% 28%;border:2px solid rgba(160,207,255,.55);border-top-color:transparent;transform:rotate(45deg)}
.px-global-slide-controls{display:flex;flex:0 0 auto;align-items:center;gap:15px}
.px-global-slide-dots{display:flex;align-items:center;gap:9px}
.px-global-slide-dots button{width:9px;height:9px;padding:0;border:0;border-radius:50%;background:#637895;box-shadow:none;cursor:pointer}
.px-global-slide-dots button.is-active{background:#fff;box-shadow:0 0 10px rgba(63,133,255,.95)}
.px-global-slide-pause{display:grid;width:36px;height:36px;padding:0;place-items:center;border:1px solid rgba(255,255,255,.3);border-radius:50%;background:rgba(4,23,52,.75);color:#fff;box-shadow:none;font-size:15px;font-weight:850;line-height:1;cursor:pointer}
.px-global-slide-pause:hover,.px-global-slide-pause:focus-visible{background:#10284e;outline:2px solid rgba(255,255,255,.65);outline-offset:2px}
.px-portal-choice-page{display:grid;min-height:100vh;place-items:center;padding:28px;box-sizing:border-box;background:linear-gradient(145deg,#041a3b,#0b3c74)}
.px-portal-choice-page:before{content:"";position:fixed;inset:0;pointer-events:none;background:radial-gradient(circle at 18% 20%,rgba(83,159,255,.22),transparent 34%),radial-gradient(circle at 82% 80%,rgba(15,219,132,.1),transparent 28%)}
.px-portal-choice-shell{position:relative;width:min(820px,100%);padding:42px;border:1px solid rgba(255,255,255,.72);border-radius:28px;background:rgba(255,255,255,.98);box-shadow:0 28px 80px rgba(0,12,36,.32)}
.px-portal-choice-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.px-portal-choice-head .px-login-logo{margin:0}.px-portal-choice-status{display:inline-flex;align-items:center;gap:7px;padding:7px 11px;border-radius:999px;background:#eaf8ef;color:#08733a;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.065em}.px-portal-choice-status:before{content:"✓";display:grid;width:18px;height:18px;place-items:center;border-radius:50%;background:#0a9b46;color:#fff}
.px-portal-choice-shell h1{margin:34px 0 9px;color:#10223d;font-size:34px;letter-spacing:-.025em}.px-portal-choice-shell>p{margin:0 0 26px;color:#667085;line-height:1.55}.px-portal-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:22px}
.px-portal-choice-grid button{display:grid;grid-template-columns:52px 1fr;grid-template-rows:auto auto;column-gap:14px;align-items:center;min-height:128px;padding:20px;border:1px solid #dce5ef;border-radius:17px;background:#f8fbff;color:#172033;text-align:left;cursor:pointer;transition:transform .2s,border-color .2s,box-shadow .2s,background .2s}.px-portal-choice-grid button:hover,.px-portal-choice-grid button:focus-visible{transform:translateY(-2px);border-color:#2677c8;background:#fff;box-shadow:0 12px 28px rgba(28,89,151,.13);outline:none}.px-portal-choice-icon{grid-row:1/3;display:grid;width:52px;height:52px;place-items:center;border-radius:15px;background:linear-gradient(145deg,#0b3c74,#1768b2);color:#fff}.px-portal-choice-icon svg{width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.px-portal-choice-grid strong{color:#173a64;font-size:17px}.px-portal-choice-grid span{color:#667085;font-size:13px;line-height:1.42}.px-portal-choice-logout{display:block;color:#62748a;text-align:center;font-size:13px;text-decoration:none}.px-portal-choice-logout:hover{text-decoration:underline}
.reservation-schema-alert{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 16px}.reservation-schema-alert .btn-admin{margin-left:auto}
@media(max-width:1100px){.px-global-login-shell{grid-template-columns:minmax(390px,var(--sso-card-width,500px)) minmax(420px,1fr);gap:22px;width:min(1040px,calc(100% - 36px))}}
@media(max-width:900px){.px-global-login-shell{grid-template-columns:minmax(0,var(--sso-card-width,560px));width:min(calc(var(--sso-card-width,560px) + 36px),calc(100% - 28px));padding:28px 0}.px-global-login-card{min-height:auto}.px-global-login-side{min-height:0}.px-global-login-slides,.px-global-login-empty{min-height:0}.px-global-side-copy{min-height:190px;padding:28px 30px}.px-global-side-copy h2{font-size:clamp(25px,5vw,32px)}.has-sso-banner .px-global-login-side{display:flex}.px-global-login-footer{margin-top:18px}}
@media(max-width:680px){.px-global-login-card{padding:30px 22px 22px;border-radius:min(var(--sso-card-radius,24px),24px)}.px-global-login-card .px-login-heading h1{font-size:29px}.px-global-login-logo{margin-bottom:30px}.px-global-login-footer nav{flex-wrap:wrap;white-space:normal;row-gap:7px}.px-global-side-copy{min-height:210px;align-items:flex-start;flex-direction:column;gap:18px;padding:24px 22px}.px-global-side-copy p{font-size:13px}.px-global-side-copy small{align-self:flex-start;max-width:none;text-align:left}.px-global-slide-controls{width:100%;justify-content:space-between}.px-global-slide-dots{gap:9px}.px-global-slide-dots button{width:9px;height:9px}.px-global-slide-pause{width:36px;height:36px}.px-portal-choice-shell{padding:28px 20px}.px-portal-choice-head{align-items:flex-start;flex-direction:column}.px-portal-choice-shell h1{margin-top:28px;font-size:29px}.px-portal-choice-grid{grid-template-columns:1fr}.px-portal-choice-grid button{min-height:105px}.reservation-schema-alert .btn-admin{width:100%;margin-left:0}}

/* 171B49: composición final aprobada — panel visual izquierdo y tarjeta SSO derecha. */
@media(min-width:901px){
  .has-sso-banner .px-global-login-shell{
    grid-template-columns:minmax(560px,1.22fr) minmax(420px,var(--sso-card-width,520px));
    gap:54px;
    width:min(1420px,calc(100% - 72px));
    padding:52px 0;
  }
  .has-sso-banner .px-global-login-side{
    grid-column:1;
    grid-row:1;
    min-height:680px;
    border-color:rgba(74,146,255,.42);
    box-shadow:0 30px 86px rgba(0,10,36,.38),inset 0 0 0 1px rgba(255,255,255,.035);
  }
  .has-sso-banner .px-global-login-slides{min-height:680px}
  .has-sso-banner .px-global-login-card{
    grid-column:2;
    grid-row:1;
    min-height:680px;
    padding:42px 46px 30px;
    border-color:rgba(255,255,255,.92);
    box-shadow:0 30px 86px rgba(0,10,36,.38),inset 0 0 0 1px rgba(10,47,94,.04);
  }
  .has-sso-banner .px-global-login-logo{margin-bottom:48px}
}
@media(min-width:901px) and (max-width:1180px){
  .has-sso-banner .px-global-login-shell{
    grid-template-columns:minmax(460px,1fr) minmax(400px,var(--sso-card-width,500px));
    gap:28px;
    width:min(1100px,calc(100% - 36px));
  }
}
@media(max-width:900px){
  .has-sso-banner .px-global-login-card{order:1}
  .has-sso-banner .px-global-login-side{order:2}
}
@media(prefers-reduced-motion:reduce){.px-global-login-slide{transition:none}}

/* 171B56: SSO aprobado aplicado y versión móvil sobria con monumento de fondo. */
@media(max-width:900px){
  .has-sso-banner .px-global-login-shell{
    display:flex;
    width:min(calc(var(--sso-card-width,560px) + 36px),calc(100% - 28px));
    min-height:100vh;
    padding:32px 0;
    align-items:center;
  }
  .has-sso-banner .px-global-login-card{
    position:relative;
    z-index:2;
    order:1;
    border-color:rgba(255,255,255,.9);
    background:rgba(255,255,255,.975);
    box-shadow:0 28px 78px rgba(0,10,38,.42);
  }
  .has-sso-banner .px-global-login-side{
    position:fixed;
    z-index:0;
    inset:0;
    order:2;
    min-height:100vh;
    border:0;
    border-radius:0;
    background:#061f49;
    box-shadow:none;
    pointer-events:none;
  }
  .has-sso-banner .px-global-login-side:after{
    content:"";
    position:absolute;
    z-index:2;
    inset:0;
    background:linear-gradient(180deg,rgba(4,24,57,.28),rgba(3,19,46,.72)),radial-gradient(circle at 50% 30%,rgba(33,112,210,.22),transparent 46%);
  }
  .has-sso-banner .px-global-login-slides{
    position:absolute;
    inset:0;
    min-height:100vh;
    border-radius:0;
  }
  .has-sso-banner .px-global-login-media{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    aspect-ratio:auto;
  }
  .has-sso-banner .px-global-login-slide{
    width:100%;
    height:100%;
    object-fit:cover;
    filter:saturate(.78) contrast(1.04);
    opacity:0;
  }
  .has-sso-banner .px-global-login-slide.is-active{opacity:.42}
  .has-sso-banner .px-global-side-copy{display:none}
}
@media(max-width:680px){
  .has-sso-banner .px-global-login-shell{
    width:min(calc(100% - 24px),560px);
    padding:20px 0;
  }
  .has-sso-banner .px-global-login-card{
    min-height:min(760px,calc(100vh - 40px));
    padding:28px 22px 22px;
  }
  .has-sso-banner .px-global-login-logo{margin-bottom:26px}
  .has-sso-banner .px-global-login-logo img{width:min(var(--sso-logo-width,120px),120px)}
}

/*
 * 171B58 — capa de compatibilidad de despliegue.
 * Si PHP/opcache conserva temporalmente la plantilla 171B56, impide que el
 * formulario vuelva a la derecha y sustituye el visor por el panel azul limpio.
 * La plantilla 171B58 carga su hoja dedicada y queda excluida de estas reglas.
 */
@media(min-width:901px){
  body.px-global-login-page:not(.px-global-login-v171b58){
    overflow:hidden!important;
    background:#fff!important;
  }
  body.px-global-login-page:not(.px-global-login-v171b58):before{
    display:none!important;
  }
  body.px-global-login-page:not(.px-global-login-v171b58) .px-global-login-shell{
    display:grid!important;
    grid-template-columns:44.85% 55.15%!important;
    gap:0!important;
    width:100%!important;
    max-width:none!important;
    min-height:100vh!important;
    margin:0!important;
    padding:0!important;
    align-items:stretch!important;
  }
  body.px-global-login-page:not(.px-global-login-v171b58) .px-global-login-card{
    grid-column:1!important;
    grid-row:1!important;
    order:1!important;
  }
  body.px-global-login-page:not(.px-global-login-v171b58) .px-global-login-side{
    position:relative!important;
    inset:auto!important;
    display:block!important;
    grid-column:2!important;
    grid-row:1!important;
    order:2!important;
    min-height:100vh!important;
    border:0!important;
    border-radius:0!important;
    background-color:#082d73!important;
    background-image:url("../img/login-fces-panel.svg")!important;
    background-repeat:no-repeat!important;
    background-position:center!important;
    background-size:auto 100%!important;
    box-shadow:none!important;
  }
  body.px-global-login-page:not(.px-global-login-v171b58) .px-global-login-side > *{
    display:none!important;
  }
}
@media(max-width:900px){
  body.px-global-login-page:not(.px-global-login-v171b58){
    overflow-y:auto!important;
    background:#fff!important;
  }
  body.px-global-login-page:not(.px-global-login-v171b58):before,
  body.px-global-login-page:not(.px-global-login-v171b58) .px-global-login-side{
    display:none!important;
  }
}

/* ===== FCES-001A45R31: Reservaciones compactas aprobadas ===== */
body.px-admin #tab-reservas .reservas-final-page{
  overflow:hidden!important;
  border-radius:18px!important;
}
body.px-admin #tab-reservas .reservas-approved-head{
  min-height:86px!important;
  padding:16px 20px!important;
}
body.px-admin #tab-reservas .reservas-title-icon{
  width:38px!important;
  height:38px!important;
}
body.px-admin #tab-reservas .page-title{font-size:25px!important}
body.px-admin #tab-reservas .page-subtitle{margin-top:3px!important;font-size:12.5px!important}
body.px-admin #tab-reservas .reservas-head-actions{gap:8px!important}
body.px-admin #tab-reservas .reservas-head-actions :where(a,button){min-height:38px!important;padding:8px 13px!important}

body.px-admin #tab-reservas .px-process-flow{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:8px!important;
  margin:0!important;
  padding:0!important;
  background:#f8fbfa!important;
}
body.px-admin #tab-reservas .px-process-flow li{
  min-height:42px!important;
  border-radius:10px!important;
  padding:7px 10px!important;
}
body.px-admin #tab-reservas .px-process-flow li::before{width:23px!important;height:23px!important;flex-basis:23px!important}

body.px-admin #tab-reservas .reservas-final-dashboard{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:10px!important;
  padding:12px 20px 0!important;
  max-width:1120px!important;
}
body.px-admin #tab-reservas .reservas-final-dashboard .dash-card{
  min-height:62px!important;
  padding:10px 13px!important;
  border-radius:12px!important;
}
body.px-admin #tab-reservas .reservas-final-dashboard .dash-card span{font-size:10.5px!important}
body.px-admin #tab-reservas .reservas-final-dashboard .dash-card strong{margin-top:3px!important;font-size:23px!important}

body.px-admin #tab-reservas .reservas-final-main{padding:12px 20px 18px!important;gap:10px!important}
body.px-admin #tab-reservas .reservas-final-filters{
  grid-template-columns:minmax(230px,1.55fr) repeat(2,minmax(160px,.95fr)) minmax(145px,.78fr) auto!important;
  gap:9px!important;
  padding:11px 12px!important;
  border-radius:12px!important;
  box-shadow:none!important;
}
body.px-admin #tab-reservas .reservas-final-filters :where(input,select){min-height:37px!important;height:37px!important}
body.px-admin #tab-reservas .reservas-final-filters .filter-actions{display:flex!important;gap:7px!important}
body.px-admin #tab-reservas .reservas-final-filters .filter-actions :where(button,a){min-height:37px!important;padding:7px 13px!important}
body.px-admin #tab-reservas .px-filter-summary{margin:0!important;min-height:37px!important;padding:8px 11px!important}

body.px-admin #tab-reservas .reservas-bulk-final{
  grid-template-columns:minmax(180px,.8fr) minmax(105px,.5fr) minmax(220px,1fr) minmax(150px,.72fr) minmax(160px,.8fr)!important;
  gap:8px!important;
  padding:9px 11px!important;
  border-radius:12px!important;
  box-shadow:none!important;
}
body.px-admin #tab-reservas .reservas-bulk-final :where(select,.btn-admin,.btn-light){min-height:37px!important;height:37px!important}

body.px-admin #tab-reservas .reservas-compact-card{border-radius:13px!important;box-shadow:none!important}
body.px-admin #tab-reservas .reservas-compact-table thead th{padding:11px 12px!important;font-size:12px!important}
body.px-admin #tab-reservas .reservas-compact-table tbody td{padding:12px!important;font-size:13px!important;vertical-align:middle!important}
body.px-admin #tab-reservas .reservas-compact-table .res-compact-date-th,
body.px-admin #tab-reservas .reservas-compact-table .res-compact-date{width:108px!important;min-width:108px!important;max-width:108px!important}
body.px-admin #tab-reservas .reservas-compact-table th:nth-child(3),
body.px-admin #tab-reservas .reservas-compact-table td:nth-child(3){width:26%!important}
body.px-admin #tab-reservas .reservas-compact-table th:nth-child(4),
body.px-admin #tab-reservas .reservas-compact-table td:nth-child(4){width:27%!important}
body.px-admin #tab-reservas .reservas-compact-table th:nth-child(5),
body.px-admin #tab-reservas .reservas-compact-table td:nth-child(5){width:22%!important}
body.px-admin #tab-reservas .reservas-compact-table th:nth-child(6),
body.px-admin #tab-reservas .reservas-compact-table td:nth-child(6){width:210px!important;min-width:210px!important;max-width:210px!important}
body.px-admin #tab-reservas .res-compact-person strong,
body.px-admin #tab-reservas .res-compact-course>strong{margin-bottom:4px!important;font-size:13.5px!important}
body.px-admin #tab-reservas .res-compact-contact{gap:3px!important}
body.px-admin #tab-reservas .res-compact-contact a{font-size:12.5px!important;font-weight:600!important}
body.px-admin #tab-reservas .res-compact-schedule{gap:4px!important}
body.px-admin #tab-reservas .res-compact-schedule span,
body.px-admin #tab-reservas .res-compact-group{padding:4px 7px!important;font-size:11.5px!important}
body.px-admin #tab-reservas .res-compact-actions{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:6px!important;
  align-items:flex-start!important;
}
body.px-admin #tab-reservas .res-compact-actions form,
body.px-admin #tab-reservas .res-compact-actions a,
body.px-admin #tab-reservas .res-compact-actions button{width:auto!important;max-width:100%!important}
body.px-admin #tab-reservas .res-compact-actions .btn-admin,
body.px-admin #tab-reservas .res-compact-actions .btn-light,
body.px-admin #tab-reservas .res-compact-actions .btn-mini{min-height:34px!important;padding:7px 10px!important;border-radius:9px!important;font-size:11.5px!important}
body.px-admin #tab-reservas .res-compact-actions .action-reason{flex:1 0 100%!important;margin-top:0!important;font-size:10.5px!important;line-height:1.25!important}

/* R32: redistribución horizontal según el contenido real de cada columna. */
@media(min-width:981px){
  body.px-admin #tab-reservas .reservas-compact-table .res-compact-date-th,
  body.px-admin #tab-reservas .reservas-compact-table .res-compact-date{
    width:96px!important;
    min-width:96px!important;
    max-width:96px!important;
  }
  body.px-admin #tab-reservas .reservas-compact-table th:nth-child(3),
  body.px-admin #tab-reservas .reservas-compact-table td:nth-child(3){width:22%!important}
  body.px-admin #tab-reservas .reservas-compact-table th:nth-child(4),
  body.px-admin #tab-reservas .reservas-compact-table td:nth-child(4){width:30%!important}
  body.px-admin #tab-reservas .reservas-compact-table th:nth-child(5),
  body.px-admin #tab-reservas .reservas-compact-table td:nth-child(5){width:19%!important}
  body.px-admin #tab-reservas .reservas-compact-table th:nth-child(6),
  body.px-admin #tab-reservas .reservas-compact-table td:nth-child(6){
    width:286px!important;
    min-width:286px!important;
    max-width:286px!important;
  }
  body.px-admin #tab-reservas .res-compact-actions{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:6px!important;
    align-items:start!important;
  }
  body.px-admin #tab-reservas .res-compact-actions form,
  body.px-admin #tab-reservas .res-compact-actions>a,
  body.px-admin #tab-reservas .res-compact-actions>button{
    width:100%!important;
    min-width:0!important;
  }
  body.px-admin #tab-reservas .res-compact-actions form button{width:100%!important}
  body.px-admin #tab-reservas .res-compact-actions .action-reason{
    grid-column:1/-1!important;
    width:100%!important;
    text-align:left!important;
  }

  /* R33: Curso / horario comienza antes aprovechando el espacio sobrante de Participante. */
  body.px-admin #tab-reservas .reservas-compact-table th:nth-child(4),
  body.px-admin #tab-reservas .reservas-compact-table td:nth-child(4){
    padding-left:12px!important;
  }
}

/* ===== FCES-001A45R36: Preinscripciones estandarizadas ===== */
body.px-admin #tab-inscripciones.ins-module-preinscripciones{
  --pre-border:#dbe5ef;
  --pre-muted:#667085;
  --pre-text:#102034;
  --pre-surface:#fff;
  --pre-soft:#f8fafc;
}
body.px-admin #tab-inscripciones.ins-module-preinscripciones .ins-v99-head{
  align-items:center!important;
  gap:18px!important;
  margin:0 0 12px!important;
}
body.px-admin #tab-inscripciones.ins-module-preinscripciones .ins-v99-head h1{
  font-size:27px!important;
  line-height:1.1!important;
}
body.px-admin #tab-inscripciones.ins-module-preinscripciones .page-subtitle{
  margin:3px 0 0!important;
  font-size:13px!important;
  line-height:1.35!important;
}
body.px-admin #tab-inscripciones.ins-module-preinscripciones .ins-v99-breadcrumb{
  margin-top:7px!important;
  font-size:11.5px!important;
}
body.px-admin #tab-inscripciones.ins-module-preinscripciones .ins-v99-head-actions{
  flex-wrap:wrap!important;
  gap:7px!important;
}
body.px-admin #tab-inscripciones.ins-module-preinscripciones .ins-v99-head-actions .ins-v99-btn{
  min-height:38px!important;
  padding:0 13px!important;
  border-radius:9px!important;
  font-size:12px!important;
  box-shadow:none!important;
}
body.px-admin #tab-inscripciones.ins-module-preinscripciones .ins-v99-head-actions .primary{
  box-shadow:0 7px 16px rgba(11,99,246,.14)!important;
}

body.px-admin #tab-inscripciones.ins-module-preinscripciones .px-academic-flow-compact{
  grid-template-columns:repeat(7,minmax(0,1fr))!important;
  gap:6px!important;
  margin:0 0 12px!important;
}
body.px-admin #tab-inscripciones.ins-module-preinscripciones .px-academic-flow-compact li{
  min-height:38px!important;
  padding:6px 8px!important;
  border-radius:9px!important;
  font-size:10.5px!important;
}
body.px-admin #tab-inscripciones.ins-module-preinscripciones .px-academic-flow-compact li::before{
  width:22px!important;
  height:22px!important;
  flex-basis:22px!important;
  font-size:10px!important;
}
body.px-admin #tab-inscripciones.ins-module-preinscripciones .px-section-caption{
  margin:0 0 7px!important;
  font-size:11.5px!important;
}
body.px-admin #tab-inscripciones.ins-module-preinscripciones .px-section-caption strong{font-size:12.5px!important}

body.px-admin #tab-inscripciones.ins-module-preinscripciones .ins-v99-kpis{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:9px!important;
  margin-bottom:11px!important;
}
body.px-admin #tab-inscripciones.ins-module-preinscripciones .ins-v99-kpi{
  grid-template-columns:42px minmax(0,1fr) auto!important;
  grid-template-rows:auto auto!important;
  min-height:76px!important;
  padding:11px 13px!important;
  gap:2px 9px!important;
  border-radius:12px!important;
  box-shadow:none!important;
}
body.px-admin #tab-inscripciones.ins-module-preinscripciones .ins-v99-kpi .ico{
  grid-row:1/3!important;
  width:34px!important;
  height:34px!important;
  font-size:16px!important;
}
body.px-admin #tab-inscripciones.ins-module-preinscripciones .ins-v99-kpi small{font-size:11px!important}
body.px-admin #tab-inscripciones.ins-module-preinscripciones .ins-v99-kpi strong{font-size:21px!important}
body.px-admin #tab-inscripciones.ins-module-preinscripciones .ins-v99-kpi em{
  grid-column:2/4!important;
  align-self:start!important;
  padding:0!important;
  border:0!important;
  font-size:10.5px!important;
}
body.px-admin #tab-inscripciones.ins-module-preinscripciones .ins-v99-kpi em::after{font-size:15px!important}
body.px-admin #tab-inscripciones.ins-module-preinscripciones .ins-v99-kpi .payment-kpi-value{font-size:17px!important}
body.px-admin #tab-inscripciones.ins-module-preinscripciones .ins-v99-kpi .payment-kpi-value span:first-child{font-size:10px!important}

body.px-admin #tab-inscripciones.ins-module-preinscripciones .ins-v99-tabs{
  display:grid!important;
  grid-template-columns:repeat(6,minmax(0,1fr))!important;
  gap:6px!important;
  overflow:visible!important;
}
body.px-admin #tab-inscripciones.ins-module-preinscripciones .ins-v99-tabs a{
  justify-content:center!important;
  min-height:42px!important;
  padding:0 10px!important;
  border:1px solid var(--pre-border)!important;
  border-radius:9px!important;
  font-size:12px!important;
}
body.px-admin #tab-inscripciones.ins-module-preinscripciones .ins-v99-tabs a.active{
  background:#eef5ff!important;
  box-shadow:inset 0 -2px 0 #0b63f6!important;
}
body.px-admin #tab-inscripciones.ins-module-preinscripciones .ins-v99-tabs a b{font-size:10px!important;padding:2px 6px!important}
body.px-admin #tab-inscripciones.ins-module-preinscripciones #academic-results-summary{
  min-height:36px!important;
  margin:7px 0 11px!important;
  padding:7px 10px!important;
  font-size:11.5px!important;
}

body.px-admin #tab-inscripciones.ins-module-preinscripciones .ins-v99-form-card{
  margin:0 0 16px!important;
  padding:16px!important;
  border-radius:14px!important;
  box-shadow:none!important;
}
body.px-admin #tab-inscripciones.ins-module-preinscripciones .ins-v99-detail-head{
  align-items:center!important;
  margin-bottom:12px!important;
  padding-bottom:11px!important;
  border-bottom:1px solid #e7edf3!important;
}
body.px-admin #tab-inscripciones.ins-module-preinscripciones .ins-v99-detail-head h2{font-size:19px!important}
body.px-admin #tab-inscripciones.ins-module-preinscripciones .ins-v99-detail-head p{font-size:12.5px!important}
body.px-admin #tab-inscripciones.ins-module-preinscripciones .ins-v99-admin-form{gap:10px!important}
body.px-admin #tab-inscripciones.ins-module-preinscripciones .ins-v99-form-section{
  padding:13px 14px!important;
  border:1px solid #e2e9f0!important;
  border-radius:11px!important;
  background:#fbfcfe!important;
}
body.px-admin #tab-inscripciones.ins-module-preinscripciones .ins-v99-form-section h3{
  display:flex!important;
  align-items:center!important;
  min-height:25px!important;
  margin:0 0 10px!important;
  padding-bottom:8px!important;
  border-bottom:1px solid #e8edf3!important;
  font-size:13px!important;
}
body.px-admin #tab-inscripciones.ins-module-preinscripciones .ins-v99-form-grid{gap:10px!important}
body.px-admin #tab-inscripciones.ins-module-preinscripciones .ins-v99-form-card label{
  position:relative!important;
  gap:5px!important;
  font-size:11.5px!important;
}
body.px-admin #tab-inscripciones.ins-module-preinscripciones .ins-v99-form-card label>em{
  position:absolute!important;
  top:0!important;
  right:2px!important;
  line-height:1!important;
}
body.px-admin #tab-inscripciones.ins-module-preinscripciones .ins-v99-form-card :where(input,select,textarea){
  min-height:41px!important;
  border-radius:8px!important;
  font-size:12.5px!important;
}
body.px-admin #tab-inscripciones.ins-module-preinscripciones .ins-v99-field-note{
  min-height:61px!important;
  padding:10px 12px!important;
  border-radius:9px!important;
}
body.px-admin #tab-inscripciones.ins-module-preinscripciones .ins-v99-field-note strong{font-size:11.5px!important}
body.px-admin #tab-inscripciones.ins-module-preinscripciones .ins-v99-field-note span{font-size:10.5px!important}
body.px-admin #tab-inscripciones.ins-module-preinscripciones .ins-v99-form-actions{
  position:sticky!important;
  z-index:4!important;
  bottom:10px!important;
  align-items:center!important;
  margin-top:2px!important;
  padding:10px!important;
  border:1px solid #dfe7ef!important;
  border-radius:11px!important;
  background:rgba(255,255,255,.96)!important;
  box-shadow:0 8px 22px rgba(16,24,40,.08)!important;
  backdrop-filter:blur(8px)!important;
}
body.px-admin #tab-inscripciones.ins-module-preinscripciones .ins-v99-form-actions .ins-v99-btn{
  min-height:39px!important;
  font-size:12px!important;
}

@media(max-width:1180px){
  body.px-admin #tab-inscripciones.ins-module-preinscripciones .px-academic-flow-compact{grid-template-columns:repeat(4,minmax(0,1fr))!important}
  body.px-admin #tab-inscripciones.ins-module-preinscripciones .ins-v99-kpis{grid-template-columns:1fr 1fr!important}
  body.px-admin #tab-inscripciones.ins-module-preinscripciones .ins-v99-tabs{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:760px){
  body.px-admin #tab-inscripciones.ins-module-preinscripciones .ins-v99-head{grid-template-columns:1fr!important;align-items:start!important}
  body.px-admin #tab-inscripciones.ins-module-preinscripciones .ins-v99-head-actions{display:grid!important;grid-template-columns:1fr 1fr!important;width:100%!important}
  body.px-admin #tab-inscripciones.ins-module-preinscripciones .ins-v99-head-actions>*{width:100%!important;min-width:0!important}
  body.px-admin #tab-inscripciones.ins-module-preinscripciones .ins-v99-head-actions .ins-v99-btn{width:100%!important}
  body.px-admin #tab-inscripciones.ins-module-preinscripciones .px-academic-flow-compact{grid-template-columns:1fr 1fr!important}
  body.px-admin #tab-inscripciones.ins-module-preinscripciones .ins-v99-kpis{grid-template-columns:1fr 1fr!important}
  body.px-admin #tab-inscripciones.ins-module-preinscripciones .ins-v99-tabs{grid-template-columns:1fr 1fr!important}
  body.px-admin #tab-inscripciones.ins-module-preinscripciones .ins-v99-form-card{padding:12px!important}
  body.px-admin #tab-inscripciones.ins-module-preinscripciones .ins-v99-form-actions{position:static!important;display:grid!important;grid-template-columns:1fr!important}
  body.px-admin #tab-inscripciones.ins-module-preinscripciones .ins-v99-form-actions>*{width:100%!important}
}

/* R34: balance final de columnas de Reservaciones en escritorio. */
@media(min-width:981px){
  body.px-admin #tab-reservas .reservas-compact-table th:nth-child(3),
  body.px-admin #tab-reservas .reservas-compact-table td:nth-child(3){width:calc(20% - 40px)!important}
  body.px-admin #tab-reservas .reservas-compact-table th:nth-child(4),
  body.px-admin #tab-reservas .reservas-compact-table td:nth-child(4){width:calc(25% - 40px)!important}
  body.px-admin #tab-reservas .reservas-compact-table th:nth-child(5),
  body.px-admin #tab-reservas .reservas-compact-table td:nth-child(5){width:calc(18% + 40px)!important}
  body.px-admin #tab-reservas .reservas-compact-table th:nth-child(6),
  body.px-admin #tab-reservas .reservas-compact-table td:nth-child(6){
    width:370px!important;
    min-width:370px!important;
    max-width:370px!important;
  }
  body.px-admin #tab-reservas .res-compact-status .reservation-admin-badge{
    max-width:100%!important;
    white-space:normal!important;
  }
}

@media(max-width:980px){
  body.px-admin #tab-reservas .reservas-approved-head{align-items:flex-start!important;gap:12px!important}
  body.px-admin #tab-reservas .reservas-final-filters{grid-template-columns:1fr 1fr!important}
  body.px-admin #tab-reservas .reservas-final-filters .filter-search{grid-column:1/-1!important}
  body.px-admin #tab-reservas .reservas-final-filters .filter-actions{grid-column:1/-1!important}
  body.px-admin #tab-reservas .reservas-bulk-final{grid-template-columns:1fr 1fr!important}
  body.px-admin #tab-reservas .reservas-compact-table tbody{display:grid!important;gap:10px!important;padding:10px!important;background:#f8fafc!important}
  body.px-admin #tab-reservas .reservas-compact-row{border:1px solid #dce5ef!important;border-radius:12px!important;background:#fff!important}
  body.px-admin #tab-reservas .res-compact-actions{grid-template-columns:none!important;display:flex!important}
}
@media(max-width:680px){
  body.px-admin #tab-reservas .reservas-approved-head{display:grid!important;grid-template-columns:1fr!important;padding:14px!important}
  body.px-admin #tab-reservas .reservas-head-actions{width:100%!important;display:grid!important;grid-template-columns:1fr 1fr!important}
  body.px-admin #tab-reservas .reservas-head-actions a{width:100%!important;justify-content:center!important}
  body.px-admin #tab-reservas .px-process-flow{grid-template-columns:1fr 1fr!important;gap:6px!important}
  body.px-admin #tab-reservas .px-process-flow li{min-height:38px!important;padding:6px 8px!important;font-size:11px!important}
  body.px-admin #tab-reservas .reservas-final-dashboard{grid-template-columns:1fr 1fr!important;padding:10px 12px 0!important}
  body.px-admin #tab-reservas .reservas-final-main{padding:10px 12px 14px!important}
  body.px-admin #tab-reservas .reservas-final-filters,
  body.px-admin #tab-reservas .reservas-bulk-final{grid-template-columns:1fr!important}
  body.px-admin #tab-reservas .reservas-final-filters .filter-search,
  body.px-admin #tab-reservas .reservas-final-filters .filter-actions{grid-column:auto!important}
  body.px-admin #tab-reservas .reservas-final-filters .filter-actions{display:grid!important;grid-template-columns:1fr!important}
  body.px-admin #tab-reservas .reservas-bulk-final .bulk-selected-count{justify-self:start!important}
  body.px-admin #tab-reservas .reservas-compact-table tbody{padding:8px!important}
  body.px-admin #tab-reservas .reservas-compact-row{grid-template-columns:32px minmax(0,1fr)!important;padding:12px!important}
  body.px-admin #tab-reservas .res-compact-date,
  body.px-admin #tab-reservas .res-compact-person,
  body.px-admin #tab-reservas .res-compact-course,
  body.px-admin #tab-reservas .res-compact-status,
  body.px-admin #tab-reservas .res-compact-actions{position:relative!important;padding-top:20px!important}
  body.px-admin #tab-reservas td[data-label]::before{content:attr(data-label);position:absolute;top:2px;left:0;color:#667085;font-size:10px;font-weight:900;text-transform:uppercase}
  body.px-admin #tab-reservas .res-compact-actions{display:grid!important;grid-template-columns:1fr 1fr!important}
  body.px-admin #tab-reservas .res-compact-actions form,
  body.px-admin #tab-reservas .res-compact-actions a,
  body.px-admin #tab-reservas .res-compact-actions button{width:100%!important}
}

/* FCES-001A45R38: alineacion superior uniforme en Reservaciones. */
@media(min-width:981px){
  body.px-admin #tab-reservas .reservas-compact-table thead th,
  body.px-admin #tab-reservas .reservas-compact-table tbody td{
    vertical-align:top!important;
  }
  body.px-admin #tab-reservas .res-compact-check,
  body.px-admin #tab-reservas .res-compact-date,
  body.px-admin #tab-reservas .res-compact-person,
  body.px-admin #tab-reservas .res-compact-course,
  body.px-admin #tab-reservas .res-compact-status,
  body.px-admin #tab-reservas .res-compact-actions{
    align-self:start!important;
  }
}

/* FCES-001A45R46: Reservaciones convertidas en tarjetas legibles en movil. */
@media(max-width:680px){
  body.px-admin #tab-reservas,
  body.px-admin #tab-reservas .reservas-final-page,
  body.px-admin #tab-reservas .reservas-final-main,
  body.px-admin #tab-reservas .reservas-compact-card,
  body.px-admin #tab-reservas .reservas-compact-table{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    overflow:visible!important;
  }
  body.px-admin #tab-reservas .reservas-compact-table{
    display:block!important;
    table-layout:auto!important;
  }
  body.px-admin #tab-reservas .reservas-compact-table thead{display:none!important}
  body.px-admin #tab-reservas .reservas-compact-table tbody{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:12px!important;
    width:100%!important;
    min-width:0!important;
    padding:8px!important;
  }
  body.px-admin #tab-reservas .reservas-compact-table tr.res-compact-row{
    display:grid!important;
    grid-template-columns:34px minmax(0,1fr)!important;
    gap:12px!important;
    width:100%!important;
    min-width:0!important;
    padding:14px!important;
    margin:0!important;
    box-sizing:border-box!important;
    overflow:hidden!important;
  }
  body.px-admin #tab-reservas .reservas-compact-table tr.res-compact-row>td{
    display:block!important;
    grid-column:2!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    height:auto!important;
    margin:0!important;
    padding:20px 0 0!important;
    transform:none!important;
    box-sizing:border-box!important;
    text-align:left!important;
    white-space:normal!important;
    word-break:normal!important;
    overflow-wrap:normal!important;
    hyphens:none!important;
  }
  body.px-admin #tab-reservas .reservas-compact-table tr.res-compact-row>td.res-compact-check{
    grid-column:1!important;
    grid-row:1!important;
    width:34px!important;
    padding:2px 0 0!important;
  }
  body.px-admin #tab-reservas .reservas-compact-table tr.res-compact-row>td:not(.res-compact-check){grid-column:1/-1!important}
  body.px-admin #tab-reservas .reservas-compact-table td[data-label]::before{
    top:0!important;
    left:0!important;
    letter-spacing:.035em!important;
  }
  body.px-admin #tab-reservas :is(.res-compact-person,.res-compact-course)>strong{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    font-size:15px!important;
    line-height:1.35!important;
    white-space:normal!important;
    word-break:normal!important;
    overflow-wrap:break-word!important;
  }
  body.px-admin #tab-reservas .res-compact-contact,
  body.px-admin #tab-reservas .res-compact-schedule{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:5px!important;
    width:100%!important;
    min-width:0!important;
  }
  body.px-admin #tab-reservas .res-compact-contact a{
    display:block!important;
    width:100%!important;
    min-width:0!important;
    white-space:normal!important;
    word-break:normal!important;
    overflow-wrap:anywhere!important;
    line-height:1.4!important;
  }
  body.px-admin #tab-reservas .res-compact-schedule :is(span,.res-compact-group){
    display:inline-flex!important;
    width:fit-content!important;
    max-width:100%!important;
    white-space:normal!important;
    word-break:normal!important;
    overflow-wrap:break-word!important;
    line-height:1.35!important;
  }
  body.px-admin #tab-reservas .res-compact-status .reservation-admin-badge{
    display:inline-flex!important;
    width:auto!important;
    max-width:100%!important;
    white-space:normal!important;
    word-break:normal!important;
    overflow-wrap:break-word!important;
  }
  body.px-admin #tab-reservas .res-compact-actions{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
    align-items:start!important;
  }
  body.px-admin #tab-reservas .res-compact-actions :is(form,a,button){min-width:0!important;max-width:100%!important}
  body.px-admin #tab-reservas .res-compact-actions form,
  body.px-admin #tab-reservas .res-compact-actions form button,
  body.px-admin #tab-reservas .res-compact-actions>a,
  body.px-admin #tab-reservas .res-compact-actions>button{width:100%!important}
  body.px-admin #tab-reservas .res-compact-actions .action-reason{grid-column:1/-1!important}
}

/* FCES-001A45R45: Pre-Inscripciones movil sin compresion ni desborde (cascada final). */
@media(max-width:760px){
  body.px-admin #tab-inscripciones.ins-module-preinscripciones,
  body.px-admin #tab-inscripciones.ins-module-preinscripciones :where(.ins-v99-shell,.ins-v99-head,.ins-v99-kpis,.ins-v99-kpi){min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
  body.px-admin #tab-inscripciones.ins-module-preinscripciones .ins-v99-head-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.px-admin #tab-inscripciones.ins-module-preinscripciones .px-academic-flow-compact{display:flex!important;grid-template-columns:none!important;width:100%!important;max-width:100%!important;overflow-x:auto!important;overflow-y:hidden!important;gap:8px!important;padding:2px 0 9px!important;scroll-snap-type:x proximity!important;-webkit-overflow-scrolling:touch}
  body.px-admin #tab-inscripciones.ins-module-preinscripciones .px-academic-flow-compact li{flex:0 0 auto!important;width:auto!important;min-width:132px!important;max-width:none!important;white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important;scroll-snap-align:start!important}
  body.px-admin #tab-inscripciones.ins-module-preinscripciones .px-section-caption{display:grid!important;grid-template-columns:1fr!important;gap:4px!important}
  body.px-admin #tab-inscripciones.ins-module-preinscripciones .ins-v99-kpis{grid-template-columns:1fr!important;gap:9px!important}
  body.px-admin #tab-inscripciones.ins-module-preinscripciones .ins-v99-kpi{display:grid!important;grid-template-columns:42px minmax(0,1fr) auto!important;grid-template-rows:auto auto!important;width:100%!important;min-height:78px!important;padding:12px 14px!important;overflow:hidden!important}
  body.px-admin #tab-inscripciones.ins-module-preinscripciones .ins-v99-kpi :where(small,strong,em,span){min-width:0!important;max-width:100%!important;white-space:normal!important;overflow-wrap:normal!important;word-break:normal!important;hyphens:none!important}
  body.px-admin #tab-inscripciones.ins-module-preinscripciones .ins-v99-kpi em{grid-column:2/4!important}
  body.px-admin #tab-inscripciones.ins-module-preinscripciones .ins-v99-kpi .payment-kpi-value{display:grid!important;justify-items:end!important;gap:1px!important;text-align:right!important}
}
@media(max-width:430px){
  body.px-admin #tab-inscripciones.ins-module-preinscripciones .ins-v99-head-actions{grid-template-columns:1fr!important}
}
