/* Typography + base */
body.maxor-theme{
  font-family:"Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif !important;
  background:#f6f9ff !important;
  color:#263654 !important;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  position:relative;
}

body.maxor-theme::before{
  content:"";
  position:fixed;
  inset:0;
  background-image:url("https://inversionesmaxor.com/wp-content/uploads/2026/04/Recurso-3.png");
  background-size:cover;
  background-attachment:fixed;
  background-position:center;
  opacity:.34;
  z-index:0;
  pointer-events:none;
}

body.maxor-theme::after{
  content:"";
  position:fixed;
  inset:0;
  background:radial-gradient(circle at 50% 45%, rgba(255,255,255,.15) 0%, rgba(255,255,255,.88) 74%, rgba(255,255,255,.96) 100%);
  z-index:0;
  pointer-events:none;
}

/* Sticky footer within the admin template shell */
body.maxor-theme #main-wrapper{
  flex:1 0 auto;
  display:flex;
  flex-direction:column;
  position:relative;
  /* Sin z-index: el backdrop del modal (z-index ~1040 en body) quedaría por encima
     de todo el #main-wrapper si este crea un contexto con z-index bajo, y el modal
     quedaría “congelado” (no cierra, no interactúa). */
  background:transparent !important;
  min-height:100vh;
}

body.maxor-theme .page-wrapper{
  flex:1 0 auto;
  background:transparent !important;
  /* Sobre body::after (velo blanco z-index:0); por debajo de sidebar (20) y topbar (50) */
  position:relative;
  z-index:1;
  /* Keep page titles below fixed topbar */
  padding-top:84px;
  padding-bottom:26px !important;
}

/* Topbar */
body.maxor-theme .topbar{
  background:rgba(255,255,255,.92) !important;
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  border-bottom:1px solid rgba(0,0,0,.05);
}

body.maxor-theme .topbar .navbar{
  min-height:72px;
}

body.maxor-theme .navbar-header{
  background:transparent !important;
}

body.maxor-theme .navbar-brand .dark-logo,
body.maxor-theme .navbar-brand .light-logo{
  height:46px;
  width:auto !important;
}

body.maxor-theme .title-panel{
  margin:0;
  font-weight:800;
  letter-spacing:.2px;
  color:#263654;
}

body.maxor-theme .text__logo{
  color:#667085;
  font-weight:700;
}

/* Sidebar */
body.maxor-theme .left-sidebar{
  background:rgba(255,255,255,.88) !important;
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  border-right:1px solid rgba(0,0,0,.05);
  box-shadow:0 10px 30px rgba(18, 88, 202, 0.08);
}

body.maxor-theme .sidebar-nav ul li a{
  color:#263654 !important;
  font-weight:800;
  border-radius:14px;
  margin:6px 12px;
  padding:10px 14px;
  transition:all .2s ease;
}

body.maxor-theme .sidebar-nav ul li a i{
  color:#1258ca;
}

body.maxor-theme .sidebar-nav ul li a:hover{
  background:#eef4ff;
}

body.maxor-theme .sidebar-nav ul li.selected > a,
body.maxor-theme .sidebar-nav ul li.active > a{
  background:linear-gradient(90deg, rgba(18,88,202,.14), rgba(18,88,202,.06));
  border:1px solid rgba(18,88,202,.12);
}

body.maxor-theme .container-fluid{
  padding-top:18px;
  background:transparent !important;
}

@media (max-width: 767.98px){
  body.maxor-theme .page-wrapper{
    padding-top:72px;
  }
}

/* Sidebar: contact row + quick actions */
body.maxor-theme .maxor-sidebar-contact{
  color:#128c7e !important;
}
body.maxor-theme .maxor-sidebar-contact i{
  color:#25d366 !important;
}

body.maxor-theme .maxor-sidebar-quick-wrap{
  list-style:none;
  margin:10px 12px 6px;
  padding:0;
}

body.maxor-theme .maxor-sidebar-quick{
  display:flex;
  justify-content:center;
  gap:10px;
  padding:6px 0 10px;
}

body.maxor-theme .maxor-quick-btn{
  width:44px;
  height:44px;
  border-radius:999px;
  border:1px solid rgba(18,88,202,.12);
  background:linear-gradient(180deg, #ffffff 0%, #f3f6ff 100%);
  color:#1258ca;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none !important;
  box-shadow:0 10px 22px rgba(18, 88, 202, 0.12);
  transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  cursor:pointer;
  padding:0;
}

body.maxor-theme .maxor-quick-btn:hover{
  transform:translateY(-1px);
  box-shadow:0 14px 28px rgba(18, 88, 202, 0.18);
  border-color:rgba(18,88,202,.22);
}

body.maxor-theme .maxor-quick-btn--wa{
  color:#fff;
  background:linear-gradient(180deg, #25d366 0%, #128c7e 100%);
  border-color:rgba(18, 140, 126, .35);
}

body.maxor-theme .maxor-quick-btn--wa:hover{
  color:#fff;
}

/* Make user avatar look modern */
body.maxor-theme .profile-pic img{
  border-radius: 999px !important;
  border: 2px solid rgba(18, 88, 202, .15);
}

/* Cards */
body.maxor-theme .card,
body.maxor-theme .card.card-body{
  background:rgba(255,255,255,.9) !important;
  border:1px solid rgba(18,88,202,.10) !important;
  border-radius:22px !important;
  box-shadow:0 20px 50px rgba(0,0,0,.06) !important;
}

body.maxor-theme .breadcrumb{
  background:transparent !important;
}

body.maxor-theme .text-themecolor{
  color:#1258ca !important;
  font-weight:900;
}

/* Buttons */
body.maxor-theme .btn.btn-success,
body.maxor-theme .btn.btn-primary{
  border-radius:999px !important;
  font-weight:800;
}

body.maxor-theme .btn.btn-primary{
  background:#1258ca !important;
  border-color:#1258ca !important;
  box-shadow:0 10px 25px rgba(18, 88, 202, 0.2);
}

body.maxor-theme .btn.btn-danger{
  border-radius:12px !important;
  font-weight:800;
  border:none !important;
  background:linear-gradient(90deg, #e2556b, #c73d52) !important;
  box-shadow:0 10px 22px rgba(199, 61, 82, 0.22);
}

body.maxor-theme .btn.btn-danger:hover{
  filter:brightness(1.03);
}

body.maxor-theme .btn.btn-secondary{
  border-radius:12px !important;
  font-weight:800;
  background:#fff !important;
  color:#263654 !important;
  border:1px solid rgba(18,88,202,.18) !important;
  box-shadow:0 8px 18px rgba(0,0,0,.05);
}

body.maxor-theme .btn.btn-secondary:hover{
  border-color:rgba(18,88,202,.35) !important;
}

/* Footer */
body.maxor-theme footer.footer{
  background:transparent !important;
  color:#667085 !important;
  border-top:1px solid rgba(0,0,0,.05);
  margin-top:auto;
  flex-shrink:0;
  text-align:center;
  padding:14px 16px 22px;
  position:static !important;
  left:auto !important;
  right:auto !important;
  bottom:auto !important;
  width:auto !important;
  clear:both;
  z-index:auto !important;
}

/* Global surface polish */
body.maxor-theme .page-titles{
  background:rgba(255,255,255,.82);
  border:1px solid rgba(18,88,202,.10);
  border-radius:18px;
  margin-bottom:18px;
  box-shadow:0 12px 28px rgba(18,88,202,.08);
}

body.maxor-theme .table{
  background:rgba(255,255,255,.88);
  border-radius:14px;
  overflow:hidden;
}

body.maxor-theme .table thead th{
  background:#f4f8ff !important;
  color:#2a4a80 !important;
  font-weight:700 !important;
  border-top:none !important;
  border-bottom:1px solid rgba(18,88,202,.14) !important;
}

body.maxor-theme .table td{
  color:#2c4068;
  border-color:#eef2f9 !important;
}

body.maxor-theme .badge,
body.maxor-theme .badge-pill{
  border-radius:999px !important;
  font-weight:700 !important;
  padding:.36em .72em !important;
}

/* Forms and selects */
body.maxor-theme .form-control,
body.maxor-theme .custom-select,
body.maxor-theme textarea.form-control{
  border-radius:12px !important;
  border:1px solid rgba(18,88,202,.22) !important;
  min-height:44px;
  box-shadow:none !important;
}

body.maxor-theme .form-control:focus,
body.maxor-theme .custom-select:focus,
body.maxor-theme textarea.form-control:focus{
  border-color:#2f7de1 !important;
  box-shadow:0 0 0 .2rem rgba(47,125,225,.15) !important;
}

body.maxor-theme .form-group label{
  color:#35507e;
  font-weight:700;
  font-size:13px;
}

body.maxor-theme .select2-container .select2-selection--single,
body.maxor-theme .select2-container .select2-selection--multiple{
  min-height:44px !important;
  border-radius:12px !important;
  border:1px solid rgba(18,88,202,.22) !important;
}

body.maxor-theme .select2-container--default .select2-selection--single .select2-selection__rendered{
  line-height:42px !important;
  padding-left:12px !important;
  color:#2a3d63 !important;
}

body.maxor-theme .select2-dropdown{
  border-radius:12px !important;
  border:1px solid rgba(18,88,202,.18) !important;
  box-shadow:0 10px 25px rgba(18,88,202,.12);
}

/* Modals and alerts */
body.maxor-theme .modal-backdrop.show{
  opacity:.38;
}
body.maxor-theme .modal-content{
  border-radius:18px !important;
  border:1px solid rgba(18,88,202,.12) !important;
  box-shadow:0 18px 40px rgba(18,88,202,.18);
}

body.maxor-theme .alert{
  border-radius:12px !important;
  border-width:1px !important;
}

/* Scrollbars */
body.maxor-theme *::-webkit-scrollbar{
  width:10px;
  height:10px;
}

body.maxor-theme *::-webkit-scrollbar-track{
  background:#ecf2fb;
  border-radius:99px;
}

body.maxor-theme *::-webkit-scrollbar-thumb{
  background:#bfd2ef;
  border-radius:99px;
  border:2px solid #ecf2fb;
}

body.maxor-theme *::-webkit-scrollbar-thumb:hover{
  background:#9ebbe6;
}

