/* NOTA: Se han eliminado los estilos para 'body' ya que Joomla debe controlarlos. */

.brc-contenedor-principal {
  display: flex;
  align-items: center;
  width: 100%;
  position: relative;
  user-select: none;
  contain: content;
}

.brc-boton-flecha {
  font-size: 19px;
  color: #fff;
  cursor: pointer;
  z-index: 2;
  padding: 0;
  transition: color 0.2s, background 0.2s;
  user-select: none;
  background: #050A15;
  border: none;
  border-radius: 0;
  box-shadow: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  font-weight: 800;
}

.brc-boton-flecha.brc-izquierda {
  left: 0;
  border-right: 1px solid rgba(255,255,255,.5);
}

.brc-boton-flecha.brc-derecha {
  right: 0;
  border-left: 1px solid rgba(255,255,255,.5);
}

.brc-boton-flecha:hover {
  background: var(--maincolor);
  color: #fff;
}

.brc-contenedor-slider {
  overflow: hidden;
  width: 100%;
  height: 45px;
  border-radius: 0;
  border: 1px solid rgba(255,255,255,0.3);
  position: relative;
  cursor: grab;
  min-height: unset;
  box-sizing: border-box;
  contain: layout;
}

.brc-contenedor-slider:active {
  cursor: grabbing;
}

.brc-pista-de-botones {
  display: flex;
  width: max-content;
  will-change: transform;
  transition: transform 0.5s cubic-bezier(.4,1.3,.5,1);
  height: 100%;
  list-style: none;
  padding: 0;
  margin: 0;
}

.brc-item-de-slider {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  flex-shrink: 0;
  position: relative;
  box-sizing: border-box;
  user-select: none;
  padding: 0;
  margin: 0;
}

.brc-item-de-slider:not(:last-child)::after {
  content: "";
  display: block;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 22px;
  background: rgba(255,255,255,0.3);
}

.brc-boton-de-menu {
  height: 100%;
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 15.5px;
  background: transparent;
  color: #fff;
  border: none;
  border-radius: 0;
  cursor: grab; /* Manito abierta por defecto */
  outline: none;
  transition: background 0.2s, color 0.2s, cursor 0.1s;
  margin: 0;
  z-index: 2;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0px;
  text-transform: uppercase;
  padding-right: 28px; /* Más espacio para la flecha SVG */
}

/* Manito cerrada al hacer click (drag) en el botón principal */
.brc-boton-de-menu:active {
  cursor: grabbing !important;
}

/* Flecha SVG elegante al lado derecho de cada botón principal */
.brc-boton-de-menu::after {
  content: '';
  display: block;
  width: 13px;
  height: 13px;
  margin-left: 0;
  position: absolute;
  right: 20px; /* Valor por defecto para desktop grande */
  top: 50%;
  transform: translateY(-50%);
  background: no-repeat center/contain;
  background-image: url('data:image/svg+xml;utf8,<svg width="13" height="13" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><polyline points="5,8 10,13 15,8" stroke="white" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
  transition: background-image 0.2s, filter 0.2s;
  pointer-events: none;
}

/* Flecha azul cuando el botón está activo o hover */
.brc-boton-de-menu:hover::after,
.brc-boton-de-menu.active::after {
  background-image: url('data:image/svg+xml;utf8,<svg width="13" height="13" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><polyline points="5,8 10,13 15,8" stroke="%231774FF" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
  filter: drop-shadow(0 1px 2px rgba(23,116,255,0.15));
}

/* Media queries para ajustar el right de la flecha según el ancho */
@media (min-width: 1200px) {
  .brc-boton-de-menu::after {
    right: 20px;
  }
}
@media (min-width: 992px) and (max-width: 1199px) {
  .brc-boton-de-menu::after {
    right: 17px;
  }
}
@media (min-width: 768px) and (max-width: 991px) {
  .brc-boton-de-menu::after {
    right: 18px;
  }
}
@media (max-width: 767px) {
  .brc-boton-de-menu::after {
    right: 15px;
  }
}

@media (max-width:768px) {
  .brc-boton-de-menu {
    padding-left: 20px;
    padding-right: 34px; /* más espacio por la flecha SVG */
  }
}
@media (min-width:769px) and (max-width:1199px) {
  .brc-boton-de-menu {
    padding-left: 22px;
    padding-right: 36px;
  }
}
@media (min-width:1200px) {
  .brc-boton-de-menu {
    padding-left: 25px;
    padding-right: 39px;
  }
}

.brc-boton-de-menu:hover, .brc-boton-de-menu.active {
  background: #050A15;
  color: #1774FF;
  cursor: grab; /* Manito abierta también en hover/active */
}

.brc-submenu-flotante-caja {
  position: fixed;
  background: #050A15;
  border-left: 1px solid rgba(255,255,255,0.2);
  border-right: 1px solid rgba(255,255,255,0.2);
  border-top: 1px solid rgba(255,255,255,0.2);
  border-radius: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  width: 350px;
  min-width: 350px;
  max-width: 350px;
  z-index: 9999;
  padding: 0;
  animation: fadeIn 0.2s;
  display: none;
}

.brc-submenu-flotante-caja.brc-mostrar {
  display: block;
}

.brc-submenu-flotante-caja ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* --- Altura variable y salto de línea en subbotones --- */
.brc-elemento-submenu-item {
  padding: 8px 10px 8px 23px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  line-height: 18px;
  color: #fff;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  min-height: 37px;
  height: auto;
  box-sizing: border-box;
  border-radius: 0;
  display: flex;
  align-items: flex-start;
  position: relative;
  text-decoration: none;
  text-transform: none;
  border-bottom:1px solid rgba(255,255,255,0.2);
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  word-break: break-word;
}

/* --- El puntico queda alineado con el primer renglón del texto, top: 10px --- */
.brc-elemento-submenu-item::before {
  content: "•";
  color: #fff;
  font-size: 1.4rem;
  position: absolute;
  left: 10px;
  top: 10px;
  line-height: 1;
  transition: color 0.2s;
}

.brc-elemento-submenu-item:hover {
  background: #1a2332;
  color: #1774FF;
}

.brc-elemento-submenu-item:hover::before {
  color: #1774FF;
}

/* --- CAMBIO AQUÍ: solo fade, sin desplazamiento vertical --- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* --- Ajuste de ancho para móviles --- */
@media (max-width: 400px) {
  .brc-submenu-flotante-caja {
    width: 300px;
    min-width: 300px;
    max-width: 300px;
  }
}

@media (min-width: 401px) and (max-width: 500px) {
  .brc-submenu-flotante-caja {
    width: 315px;
    min-width: 315px;
    max-width: 315px;
  }
}

@media (min-width: 501px) and (max-width: 768px) {
  .brc-submenu-flotante-caja {
    width: 330px;
    min-width: 330px;
    max-width: 330px;
  }
}

@media (min-width: 769px) {
  .brc-submenu-flotante-caja {
    width: 360px;
    min-width: 360px;
    max-width: 360px;
  }
}

/* --- Refuerzo para móviles/tablet: subbotón crece y texto hace salto de línea --- */
@media (max-width: 991px) {
  .brc-elemento-submenu-item {
    height: auto !important;
    min-height: 37px !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    word-break: break-word !important;
    align-items: flex-start !important;
  }
}