/* ===== RD MOBILE MENU ===== */

.rd-mobilemenu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 999999;
  transition: 0.3s all ease;
}

.rd-mobilemenu.active {
  right: 0;
}

.rd-mobilemenu_ul {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  padding: 70px 0 0;
  color: #fff;
  background: #222324;
  font-size: 14px;
  line-height: 20px;
  padding-left: 0 !important;
  overflow-y: auto;
  box-shadow: 5px 0 15px rgba(0, 0, 0, 0.3);
  transform: translateX(-280px);
  transition: 0.3s cubic-bezier(0.55, 0, 0.1, 1);
}

.rd-mobilemenu.active .rd-mobilemenu_ul {
  transform: translateX(0);
}

.rd-mobilemenu_ul a {
  display: block;
  padding: 16px 18px;
  color: #fff !important;
  font-family: var(--font-Montserrat);
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.4;
  text-decoration: none;
  text-indent: 0 !important;
  letter-spacing: normal;
  white-space: normal;
  visibility: visible !important;
  opacity: 1 !important;
  transition: background 0.2s ease;
}

.rd-mobilemenu_ul li.active > a {
  border-left: 3px solid #00b5ef;
  font-weight: 600;
}

.rd-mobilemenu_ul li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.rd-mobilemenu_submenu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: block;
}

.rd-mobilemenu_submenu li {
  display: block;
}

.rd-mobilemenu_ul ul a {
  padding: 10px 25px 10px 40px;
  font-size: 13px;
}

/* Hide desktop-only nav elements in mobile menu */
.rd-mobilemenu_ul .nav-arrow {
  display: none;
}

/* Submenu toggle */
.rd-mobilemenu_ul .rd-with-ul {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rd-submenu-toggle {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  transition: background 0.2s ease;
}

.rd-submenu-toggle:hover {
  background: rgba(255, 255, 255, 0.18);
}

.rd-submenu-toggle::after {
  content: '';
  display: block;
  width: 7px;
  height: 7px;
  border-right: 2px solid rgba(255, 255, 255, 0.6);
  border-bottom: 2px solid rgba(255, 255, 255, 0.6);
  transform: rotate(45deg);
  transition: transform 0.25s ease, margin 0.25s ease;
  margin-top: -3px;
}

.rd-with-ul.rd-submenu-open .rd-submenu-toggle::after {
  transform: rotate(-135deg);
  margin-top: 4px;
}

/* Social icons inside menu */
.rd-mobilemenu_ul li.rd-mobilemenu_social {
  border-bottom: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 25px;
  display: flex;
  gap: 20px;
}

.rd-mobilemenu_ul li.rd-mobilemenu_social a {
  color: rgba(255, 255, 255, 0.8);
  padding: 0;
  font-size: 20px;
  width: auto;
  display: inline-flex;
}

/* Panel superior */
.rd-mobilepanel {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: #222324;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  z-index: 9999999;
}

.rd-mobilepanel_title {
  position: absolute;
  top: 50%;
  left: 56px;
  right: 90px;
  transform: translateY(-50%);
  text-align: center;
  z-index: 1;
}

#logoMovil {
  display: inline-block;
}

#logoMovil img {
  height: 42px;
  width: auto;
  display: block;
  margin: 0 auto;
}

/* Language switcher in panel */
.rd-mobilepanel_lang {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  z-index: 2;
}

.rd-mobilepanel_lang > img {
  width: 27px;
  height: 16px;
  display: block;
  border-radius: 2px;
}

.rd-mobilepanel_lang > i {
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  transition: transform 0.2s ease;
}

.rd-mobilepanel_lang.open > i {
  transform: rotate(180deg);
}

.rd-mobilelang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  min-width: 130px;
}

.rd-mobilepanel_lang.open .rd-mobilelang-dropdown {
  display: block;
}

.rd-mobilelang-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 14px;
  color: #333;
  text-decoration: none;
  font-family: var(--font-Montserrat);
  transition: background-color 0.2s ease;
}

.rd-mobilelang-dropdown a:hover {
  background-color: rgba(34, 35, 36, 0.08);
}

.rd-mobilelang-dropdown a img {
  width: 24px;
  height: auto;
  border-radius: 2px;
}

/* Hamburguesa */
.rd-mobilepanel_toggle {
  position: absolute;
  border: none;
  background: none;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rd-mobilepanel_toggle span {
  position: relative;
  display: block;
  margin: auto;
  transition: all 0.3s ease;
}

.rd-mobilepanel_toggle span,
.rd-mobilepanel_toggle span::before,
.rd-mobilepanel_toggle span::after {
  width: 24px;
  height: 3px;
  background-color: #fff;
  border-radius: 2px;
  backface-visibility: hidden;
}

.rd-mobilepanel_toggle span::before,
.rd-mobilepanel_toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  transition-duration: 0.3s, 0.3s;
  transition-delay: 0.3s, 0s;
  transition-property: top, transform;
}

.rd-mobilepanel_toggle span::before { top: -8px; }
.rd-mobilepanel_toggle span::after  { top:  8px; }

.rd-mobilepanel_toggle.active span {
  background: transparent;
}

.rd-mobilepanel_toggle.active span::before,
.rd-mobilepanel_toggle.active span::after {
  top: 0;
  transition-delay: 0s, 0.3s;
}

.rd-mobilepanel_toggle.active span::before {
  transform: rotate(45deg);
}

.rd-mobilepanel_toggle.active span::after {
  transform: rotate(-45deg);
}
