/* /assets/css/widget-side-panel.css */

:root {
  --primary-color: #0093d1;
  --secondary-color: #005a8e;
  --accent-color: #ff9800;
  --text-color: #333333;
  --light-text: #ffffff;
  --bg-color: #f8f9fa;
  --border-color: #e0e0e0;
  --hover-bg: #f0f7ff;
  --active-bg: #e3f2fd;
  --shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.mm-menu_offcanvas {
  position: fixed;
 z-index: 10;
}
.mm-panels {
    height: 90%;
}

.mm-wrapper_opening [class*=mm-menu_pagedim].mm-menu_opened~.mm-wrapper__blocker {
    opacity: .73;
}
body.has-side-panel .mm-menu.mm-menu_opened {
   max-width: 380px;
   height: 100vh;
  -webkit-transition: 0.2s;
  -o-transition: opacity 0.3s;
  transition: 0.2s !important;
  -webkit-transform-origin: left center;
  -ms-transform-origin: left center;
  transform-origin: left center;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  -webkit-box-shadow: 2px 0 14px -4px rgb(0 0 0 / 75%);
  -moz-box-shadow: 2px 0 14px -4px rgba(0, 0, 0, 0.75);
  box-shadow: 2px 0 14px -4px rgb(0 0 0 / 75%);
}
body.has-side-panel .mm-menu.mm-menu_closed {

  -webkit-transition: 0.4s;
  -o-transition: 0.4s;
  transition: 0.4s !important;
  -webkit-transform-origin: center left;
  -ms-transform-origin: center left;
  transform-origin: center left;
  -webkit-transform: scale(1, 1) translate3d(-440px, 0, 0);
  transform: scale(1, 1) translate3d(-440px, 0, 0);
  transform: translate3d(-440px, 0, 0);
  display: none;
}

body.has-side-panel:not(.mm-wrapper_opening) #menu-side-panel{
  z-index: -100!important;
  left: -100%;
}
.mm-panels {
    z-index: 0;
}
.mm-navbars_bottom .mm-navbar {
    background-color: transparent;
}
.mm-navbar {
  background-color: var(--primary-color);
  color: var(--light-text);
  height: 60px;
  padding: 0 16px;
  border-bottom: none;
  align-items: center;
}
.mm-navbar__title {
  color: var(--light-text);
  font-weight: 500;
  font-size: 18px;
}
.mm-btn_prev {
  color: var(--light-text);
  transform: scale(1.2);
}
.mm-navbar_sticky {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.addShadow {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.menu-principal {
  padding: 0;
}
.menu-principal > li {
  border-bottom: 1px solid var(--border-color);
}
.menu-principal > li.not-border {
  border-bottom: none;
}
.menu-link {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  color: var(--text-color);
  font-weight: 400;
  font-size: 16px;
  transition: all 0.2s ease;
  text-decoration: none;
}
.menu-link:hover,
.menu-link:focus {
  background-color: var(--hover-bg);
  color: var(--primary-color);
}
.mm-listitem_opened > .menu-link,
.mm-listitem_selected > .menu-link {
  background-color: var(--active-bg);
  color: var(--primary-color);
  border-left: 3px solid var(--primary-color);
}
.menu-icon {
  width: 24px;
  margin-right: 15px;
  color: var(--primary-color);
  text-align: center;
  font-size: 18px;
}

.arrow {
  margin-left: auto;
  transition: transform 0.3s ease;
}

.mm-listitem_opened > .menu-link .arrow {
  transform: rotate(180deg);
}

/* Estilos para submenús */
.submenu {
  background-color: rgb(255 255 255 / 2%);
  padding-left: 0;
}

.submenu li {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.submenu li:last-child {
  border-bottom: none;
}

.submenu a {
  padding: 8px 20px 12px 8px;
  display: flex;
  align-items: center;
  color: var(--text-color);
  font-size: 15px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.submenu a:hover {
  background-color: var(--hover-bg);
  color: var(--primary-color);
}

/* Estilos específicos para actividades */
.activity-link {
  position: relative;
  padding-right: 40px !important;
}

.activity-icon {
  width: 20px;
  height: 20px;
  margin-right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.activity-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #212529!important;
}
.mm-navbar__breadcrumbs span,
.mm-navbar__breadcrumbs a {
    font-size: 17px !important;
}
.mm-navbar__breadcrumbs span {
    color: #ccc!important;
}
.mm-navbar__breadcrumbs {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px 0;
    overflow: visible;
}

.navbar-logo {
    max-height: 40px;
    max-width: 150px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.navbar-logo:hover {
    transform: scale(1.05);
}
.quota {
  position: absolute;
    right: 15px;
    background-color: rgb(0 0 0 / 20%);
    color: white;
    padding: 8px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 600;
    width: 30px;
    height: 30px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Estilos para idiomas */
.language-menu .language {
  padding: 10px 20px 10px 50px;
}

.flag-icon {
   width: 16px;
   height: 16px;
   margin-right: 12px;
   vertical-align: middle;
   border-radius: 50%;
   box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.lang-text {
  font-size: 14px;
}

/* Estilo para el botón de login */
.login-item {
  margin: 0px 0px;
}

.login-link {
  margin: 0;
  text-align: center;
  transition: all 0.3s ease;
}

.login-link .menu-icon {
  color: var(--light-text);
}

.login-link:hover {
  background-color: var(--secondary-color);
  transform: translateY(-0px);
  box-shadow: unset;/*0 4px 8px rgba(0, 0, 0, 0.15);*/
}
.mm-menu_selected-hover .mm-listitem__text:hover {
    background: rgb(250 250 250);
}
.mm-navbars_bottom .mm-navbar span a {
  font-size: 24px !important;
}
.footer-links-container {
  margin-top: 0px;
  background-color: transparent; /*rgba(0, 0, 0, 0.02);*/
  padding: 15px 0;
}

.footer-section {
  padding: 5px 20px;
  margin-bottom: 5px;
}

.footer-title {
  width: 100%;
  color: var(--primary-color);
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 0px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-menu {
  list-style: none;
  padding-left: 0;
}

.footer-item {
  margin-bottom: 10px;
}

.footer-link {
  display: block;
  padding: 5px 0;
  color: var(--text-color);
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.footer-link:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.footer-link i {
  margin-right: 8px;
  color: var(--primary-color);
  font-size: 12px;
}

.footer-text {
  font-size: 13px;
  line-height: 1.5;
  color: #666;
  margin-bottom: 15px;
}

/* Contenedores de logos */
.logo-container {
  margin: 10px 0;
  text-align: center;
}

.img-responsive {
  max-width: 100%;
  height: auto;
}

/* Barra inferior con redes sociales */
.mm-navbars_bottom {
  border-top: 1px solid var(--border-color);
  background-color: #333;
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
  position: absolute;
    bottom: 0;
    width: 100%;
}
.mm-navbars_bottom .mm-navbar:first-child {
    border-top: 2px solid #484848;
}
.mm-navbars_bottom .mm-navbar {
  display: flex;
  justify-content: space-around;
  padding: 0;
  height: 55px;
  width: 100%;
}

.left-icon-menu {
  color: var(--light-text);
  font-size: 22px !important;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.left-icon-menu:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
  color: var(--light-text);
}

/* Estilos responsivos */
@media (max-width: 767px) {
  .menu-link {
    padding: 12px 15px;
    font-size: 15px;
  }
  
  .menu-icon {
    margin-right: 12px;
    font-size: 16px;
  }
  
  .submenu a {
    padding: 10px 15px 10px 45px;
    font-size: 14px;
  }
  
  .footer-title {
    font-size: 15px;
  }
  
  .footer-link {
    font-size: 13px;
  }
  
  .login-item {
    margin: 8px 12px;
  }
}

/* Animaciones */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.mm-menu_opened .menu-principal > li {
  animation: fadeIn 0.3s forwards;
  animation-delay: calc(0.05s * var(--i, 0));
  opacity: 0;
}

/* Soporte para pantallas de alto contraste */
@media (prefers-contrast: more) {
  :root {
    --primary-color: #0056b3;
    --border-color: #000000;
    --text-color: #000000;
    --light-text: #ffffff;
  }
  
  .menu-link, .submenu a, .footer-link {
    text-decoration: underline;
  }
}

/* Mejoras de accesibilidad */
.menu-link:focus,
.submenu a:focus,
.footer-link:focus,
.left-icon-menu:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: -2px;
}

/* Estilos para el botón de cierre del menú */

/* Mejorar el aspecto del botón de cierre */
.mm-btn_close.mm-navbar__btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease;
  position: relative;
  margin-right: 5px;
  border: none;
}

.mm-btn_close.mm-navbar__btn:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

/* Crear líneas para la X */
.mm-btn_close.mm-navbar__btn::before,
.mm-btn_close.mm-navbar__btn::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 2px;
  background-color: white;
  top: 50%;
  left: 50%;
  transition: all 0.3s ease;
}

.mm-btn_close.mm-navbar__btn::before {
  transform: translate(-50%, -50%) rotate(45deg);
  top:4px;
}

.mm-btn_close.mm-navbar__btn::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* Animación al pasar el cursor */
.mm-btn_close.mm-navbar__btn:hover::before {
  transform: translate(-50%, -50%) rotate(135deg);
}

.mm-btn_close.mm-navbar__btn:hover::after {
  transform: translate(-50%, -50%) rotate(45deg);
}

/* Cambiar la apariencia al presionar */
.mm-btn_close.mm-navbar__btn:active {
  transform: scale(0.9) rotate(90deg);
  background-color: rgba(255, 255, 255, 0.4);
}

/* Añadir un efecto de pulso cuando el menú se abre */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

.mm-menu_opened .mm-btn_close.mm-navbar__btn {
  animation: pulse 1.5s ease-out;
}

/* Añadir accesibilidad para el botón */
.mm-btn_close.mm-navbar__btn:focus {
  outline: 2px solid white;
  outline-offset: 2px;
}


.mm-navbar__btn.mm-btn_close::after {
  content: "";/*attr(data-text);*/
  position: absolute;
 bottom: 18px;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    background-color: #f3f3f3;
  color: white;
  padding: 1px 1px;
  border-radius: 0px;
  font-size: 10px;
  opacity: 1;
  transition: opacity 0.3s;
  pointer-events: none;
  white-space: nowrap;
  border: unset;
}

.mm-navbar__btn.mm-btn_close:hover::after {
  opacity: 1;
}
/* Estilos adicionales para que el menú se asemeje más al ejemplo de mmenu.js */

/* Mejoras para paneles y navegación */
.mm-panel {
  padding: 0px 0 0 0;
  background-color: #fff;
  transition: transform 0.4s ease;
}

/* Estilos para los contadores */
.mm-counter {
  position: absolute;
  right: 45px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  background-color: #f3f3f3;
  border-radius: 10px;
  padding: 0 6px;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  font-size: 11px;
  font-weight: 500;
}

/* Estilos para el botón anterior */
.mm-btn_prev {
  position: relative;
  width: 40px;
  height: 40px;
}

.mm-btn_prev.mm-navbar__btn:before {
  border: 0;
  content: '';
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  width: 10px;
  height: 10px;
  transform: rotate(135deg);
  position: absolute;
  left: 20px;
  top: 0px;
}
.mm-btn:after, .mm-btn:before {
     border: 1px solid rgb(255 255 255 / 30%); 
}
/* Estilos para los botones de próximo panel */
.mm-btn_next {
  position: relative;
}

.mm-btn_next:after {
  content: '';
    border-right: 2px solid #888;
    border-bottom: 2px solid #888;
    width: 7px;
    height: 7px;
    transform: rotate(316deg);
    position: absolute;
    right: 22px;
    top: 0px;
}

/* Estilos para los divisores */
.mm-divider {
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 15px 20px 5px 20px;
  color: #888;
  background-color: transparent;
  border-bottom: none !important;
  margin-top: 10px;
}

/* Estilos para iconos */
.mm-listitem i.fa {
  color: #6c757d;
  width: 25px;
  margin-right: 10px;
  text-align: center;
  font-size: 16px!important;
}

/* Estilos mejorados para elementos de lista */
.mm-listitem {
  position: relative;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.mm-listitem:after {
  display: none;
}

.mm-listitem__text {
  padding: 12px 20px;
  color: #333;
  font-size: 14px;
}

.mm-listitem_selected > .mm-listitem__text {
  background-color: rgba(0, 115, 183, 0.08);
  color: var(--primary-color);
  font-weight: 500;
}

/* Estilos para el panel de búsqueda */
.mm-panel--search {
  padding-top: 0;
}

.mm-panel__splash {
  padding: 20px;
  text-align: center;
}

.mm-panel__splash h4 {
  color: var(--primary-color);
  margin-bottom: 10px;
  font-size: 18px;
}

.mm-panel__splash p {
  color: #666;
  margin-bottom: 20px;
  font-size: 14px;
}

.mm-panel__noresults {
  padding: 40px 20px;
  text-align: center;
  color: #888;
  font-size: 14px;
  font-style: italic;
  display: none;
}

.mm-panel__noresults.mm-hidden {
  display: none;
}

/* Efecto de pagedim más suave */
.mm-wrapper_opening .mm-menu_offcanvas ~ .mm-slideout {
  -webkit-transform: translate3d(380px, 0, 0);
  transform: translate3d(380px, 0, 0);
}

.mm-wrapper_opened .mm-menu_offcanvas.mm-menu_opened ~ .mm-slideout:after {
  opacity: 0.5;
  transition: opacity 0.4s ease;
}

/* Animaciones de entrada/salida para los paneles */
.mm-panel_opening {
  animation: panelFadeIn 0.3s ease forwards;
}

.mm-panel_closing {
  animation: panelFadeOut 0.3s ease forwards;
}

@keyframes panelFadeIn {
  from {
    opacity: 0;
    transform: translate3d(30%, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes panelFadeOut {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
  to {
    opacity: 0;
    transform: translate3d(-30%, 0, 0);
  }
}

/* Mejora para el bloqueador del panel */
.mm-blocker {
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s ease;
}

.mm-panel_opened .mm-blocker {
  background: rgba(0, 0, 0, 0.05);
}