body.format-uniminuto_courses .recursos {
  position: fixed;
  top: 0;
  right: 0;
  margin-top: 0;
  width: 140px;
  height: 100vh;
  -webkit-transform: translateX(0);
  transform: translateX(0);
  background-color: #fcfcfd;
  -webkit-box-shadow: -3px 0px 8px rgba(48, 46, 56, 0.08);
  box-shadow: -3px 0px 8px rgba(48, 46, 56, 0.08);
  -webkit-transition: all 0.3s, margin-top 50ms, height 50ms;
  transition: all 0.3s, margin-top 50ms, height 50ms;
  z-index: 1038;
  font-family: "Poppins", sans-serif;
}

body.format-uniminuto_courses .recursos__sidebar-collapser {
  position: absolute;
  background-size: cover;
  width: 22px;
  height: 55px;
  left: -22px;
  top: 50%;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  cursor: pointer;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

body.format-uniminuto_courses .recursos__sidebar-collapser i {
  color: #FFFFFF;
  font-size: 24px;
  margin-top: -4px;
  margin-left: 3px;
}

body.format-uniminuto_courses .recursos__grid {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  padding: 24px 12px 24px 0px;
  height: calc(100% - 86px);
  gap: 16px;
  overflow-y: auto;
  direction: rtl;
  scrollbar-width: thin;
  scrollbar-gutter: stable;
  scrollbar-color: #c4cad7 transparent;
}

body.format-uniminuto_courses .recursos__grid.recursos__grid--sm {
  height: calc(100% - 162px);
}

body.format-uniminuto_courses .recursos__grid .grid__link {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  text-align: center;
  gap: 8px;
}

body.format-uniminuto_courses .recursos__grid .grid__link .icons-links {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  width: 38px;
  height: 38px;
  color: #002C57;
  background-color: #E6EAEE;
  border-radius: 0.5rem;
}

body.format-uniminuto_courses .recursos__grid .grid__link .icons-links img {
  max-height: 20px;
  width: auto;
  -webkit-filter: invert(12%) sepia(46%) saturate(3722%) hue-rotate(196deg) brightness(91%) contrast(101%);
  filter: invert(12%) sepia(46%) saturate(3722%) hue-rotate(196deg) brightness(91%) contrast(101%);
}

body.format-uniminuto_courses .recursos__grid .grid__link .title-links {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.2;
  color: #475569;
}

body.format-uniminuto_courses .recursos__grid .grid__link:hover .title-links {
  color: #002C57;
}

body.format-uniminuto_courses .recursos a,
body.format-uniminuto_courses .recursos a:hover {
  text-decoration: none;
}

body.format-uniminuto_courses .recursos.collapsed {
  -webkit-transform: translateX(100%);
  transform: translateX(100%);
}

body.format-uniminuto_courses .recursos.collapsed .recursos__sidebar-collapser i {
  -webkit-transform: rotateY(180deg) translateX(0);
  transform: rotateY(180deg) translateX(0);
}

@media screen and (min-width: 768px) {
  body.format-uniminuto_courses .recursos.resizeY {
    margin-top: var(--value);
    height: calc(100vh - (var(--value)));
  }
}

@media screen and (max-width: 767px) {
  body.format-uniminuto_courses .recursos {
    -webkit-transform: translateX(100%);
    transform: translateX(100%);
  }

  body.format-uniminuto_courses .recursos__sidebar-collapser i {
    -webkit-transform: rotateY(180deg) translateX(0);
    transform: rotateY(180deg) translateX(0);
  }

  body.format-uniminuto_courses .recursos.collapsed {
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }

  body.format-uniminuto_courses .recursos.collapsed .recursos__sidebar-collapser i {
    -webkit-transform: rotateY(0deg) translateX(0);
    transform: rotateY(0deg) translateX(0);
  }
}

/* ESTILOS BLOQUE MENU DERECHO - FORMAT - MENU */
body.format-uniminuto_courses #theme_boost-drawers-blocks {
  z-index: 1044;
}

/* ESTILOS BOTON AYUDAS - THEME */
body.format-uniminuto_courses .help-button {
  bottom: 24px;
  right: 45px;
  z-index: 1040;
}

/* ESTILOS BOTON CHATBOT - FORMAT */
body.format-uniminuto_courses .btn-chatbot {
  position: fixed;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: center;
  width: 64px;
  height: 64px;
  bottom: 86px;
  right: 38px;
  border-radius: 100%;
  background-color: transparent;
  -webkit-transition: 0.25s ease-out;
  transition: 0.25s ease-out;
  text-decoration: none;
  cursor: pointer;
  z-index: 1040;
}

body.format-uniminuto_courses .btn-chatbot img {
  height: 64px;
}

body.format-uniminuto_courses .tooltip-inner {
  padding: 7px 14px;
  background-color: rgb(0 0 0 / 75%);
  font-size: 14px;
  line-height: 1.3;
  font-family: 'Poppins', sans-serif;
}

body.format-uniminuto_courses .tooltip .arrow {
  display: none;
}

/* ===== SAPIENS LEO WIDGET - CSS ===== */

#sapiens-leo-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  max-width: calc(100vw - 40px);
  border-radius: 12px;
  z-index: 9999;
  overflow: hidden;
  transition: height 0.3s ease, box-shadow 0.3s ease, width 0.3s ease, min-width 0.3s ease, max-width 0.3s ease, border-radius 0.3s ease;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

@media (max-width: 768px) {
  #sapiens-leo-widget {
    left: auto;
    right: 10px;
    bottom: 10px;
    width: 240px;
    max-width: calc(100vw - 20px);
  }

  #sapiens-leo-widget.sapiens-leo-compact {
    height: 220px;
    border-radius: 12px;
  }

  #sapiens-leo-widget .sapiens-leo-header {
    height: 28px;
    min-height: 28px;
    justify-content: center;
  }

  #sapiens-leo-widget .sapiens-leo-arrow {
    font-size: 0.7rem;
  }

  #sapiens-leo-widget.sapiens-leo-compact .sapiens-leo-body {
    height: calc(220px - 28px);
    min-height: calc(220px - 28px);
  }

  #sapiens-leo-widget.sapiens-leo-expanded .sapiens-leo-body {
    height: calc(72vh - 28px);
  }

  #sapiens-leo-widget.sapiens-leo-minimized {
    width: 72px;
    height: 72px;
    min-width: 72px;
    max-width: 72px;
    border-radius: 50%;
  }

  #sapiens-leo-widget.sapiens-leo-minimized .sapiens-leo-fab .sapiens-leo-avatar-icon {
    width: 36px;
    height: 36px;
  }
}

.sapiens-leo-fab {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  user-select: s none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sapiens-leo-fab:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

.sapiens-leo-fab:focus {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 2px;
}

.sapiens-leo-fab-avatar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
}

.sapiens-leo-avatar-img {
  width: 90%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.sapiens-leo-avatar-icon {
  width: 44px;
  height: 44px;
  color: #fff;
}

#sapiens-leo-widget.sapiens-leo-minimized {
  width: 60px;
  height: 60px;
  min-width: 60px;
  max-width: 60px;
  border-radius: 50%;
  right: 38px !important;
}

#sapiens-leo-widget.sapiens-leo-minimized .sapiens-leo-header {
  display: none;
}

#sapiens-leo-widget.sapiens-leo-minimized .sapiens-leo-body {
  height: 0;
  min-height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

#sapiens-leo-widget.sapiens-leo-minimized .sapiens-leo-fab {
  display: flex;
}

#sapiens-leo-widget.sapiens-leo-minimized .sapiens-leo-arrow {
  transform: rotate(0deg);
}

#sapiens-leo-widget.sapiens-leo-compact {
  height: 260px;
}

#sapiens-leo-widget.sapiens-leo-compact .sapiens-leo-body {
  height: 208px;
  min-height: 208px;
  opacity: 1;
  pointer-events: auto;
}

#sapiens-leo-widget.sapiens-leo-compact .sapiens-leo-arrow {
  transform: rotate(0deg);
}

#sapiens-leo-widget.sapiens-leo-expanded {
  height: 72vh;
  max-height: calc(100vh - 60px);
  box-shadow: 0 -2px 24px rgba(0, 0, 0, 0.2);
}

#sapiens-leo-widget.sapiens-leo-expanded .sapiens-leo-body {
  height: calc(72vh - 52px);
  max-height: calc(100vh - 112px);
  min-height: 0;
  opacity: 1;
  pointer-events: auto;
}

#sapiens-leo-widget.sapiens-leo-expanded .sapiens-leo-arrow {
  transform: rotate(180deg);
}

@media (max-width: 768px) {
  #sapiens-leo-widget.sapiens-leo-expanded {
    height: 72vh;
    max-height: calc(100vh - 32px);
  }
}

.sapiens-leo-header {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff;
  cursor: move;
  user-select: none;
  font-weight: 600;
  font-size: 1rem;
}

.sapiens-leo-header:active {
  cursor: grabbing;
}

.sapiens-leo-header:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
}

.sapiens-leo-header:focus {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
}

.sapiens-leo-arrow {
  margin-right: 10px;
  font-size: 0.9rem;
  transition: transform 0.25s ease;
  display: inline-block;
  cursor: pointer;
}

.sapiens-leo-arrow.sapiens-leo-arrow-hidden {
  visibility: hidden;
  pointer-events: none;
  width: 0;
  margin: 0;
}

.sapiens-leo-minimize-btn {
  margin-left: 8px;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.sapiens-leo-minimize-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

#sapiens-leo-widget.sapiens-leo-compact .sapiens-leo-minimize-btn {
  display: flex;
}

.sapiens-leo-body {
  background: #fff;
  display: block;
}

.sapiens-leo-iframe {
  border: none;
  border-radius: 0;
  display: block;
}

/* Aplica bottom: 150px solo cuando ambos botones están presentes */
.leo-widget-btn:has(~ .btn-chatbot),
.btn-chatbot:has(~ .leo-widget-btn) {
  bottom: 150px !important;
}

/* ===== FULLSCREEN / RESTORE BUTTONS ===== */

.sapiens-leo-fullscreen-btn,
.sapiens-leo-restore-btn {
  display: none;
  margin-left: 8px;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.15s ease;
}

.sapiens-leo-fullscreen-btn:hover,
.sapiens-leo-restore-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.sapiens-leo-fullscreen-btn:active,
.sapiens-leo-restore-btn:active {
  transform: scale(0.95);
}

.sapiens-leo-fullscreen-icon,
.sapiens-leo-restore-icon {
  width: 16px;
  height: 16px;
  pointer-events: none;
}

/* ===== FULLSCREEN STATE ===== */

#sapiens-leo-widget.sapiens-leo-fullscreen {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  max-width: 100vw !important;
  height: 100vh !important;
  max-height: 100vh !important;
  border-radius: 0 !important;
  z-index: 99999 !important;
  transition: all 0.3s ease;
}

#sapiens-leo-widget.sapiens-leo-fullscreen .sapiens-leo-header {
  border-radius: 0;
}

#sapiens-leo-widget.sapiens-leo-fullscreen .sapiens-leo-body {
  height: calc(100vh - 52px) !important;
  max-height: calc(100vh - 52px) !important;
  min-height: calc(100vh - 52px) !important;
}

#sapiens-leo-widget.sapiens-leo-fullscreen .sapiens-leo-fab {
  display: none;
}