@import url("https://fonts.googleapis.com/css?family=Roboto");

body {
  font-family: "Roboto", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

i {
  margin-right: 10px;
}

/* Navbar base */
.navbar-mainbg {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
  padding: 10px 30px;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Fondo cuando se hace scroll */
.navbar-mainbg.scrolled {
  background: rgba(0, 0, 0, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

/* Logo */
.navbar-logo {
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  padding: 0;
}

/* Navegación */
#navbarSupportedContent {
  overflow: hidden;
  position: relative;
}

#navbarSupportedContent ul {
  margin: 0;
  padding: 0;
}

#navbarSupportedContent li {
  list-style-type: none;
  float: left;
}

#navbarSupportedContent ul li a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 15px;
  display: block;
  padding: 14px 20px;
  transition: all 0.3s ease;
  position: relative;
}

#navbarSupportedContent > ul > li.active > a {
  color: #00ff9c;
}

/* Íconos */
#navbarSupportedContent ul li a i {
  margin-right: 8px;
}

/* Hori selector (efecto deslizante visual) */
.hori-selector {
  display: inline-block;
  position: absolute;
  height: 100%;
  top: 0px;
  left: 0px;
  transition: all 0.3s ease;
  background-color: #fff;
  border-radius: 20px;
}

.hori-selector .right,
.hori-selector .left {
  position: absolute;
  width: 25px;
  height: 25px;
  background-color: #fff;
  bottom: 10px;
}

.hori-selector .right {
  right: -25px;
}

.hori-selector .left {
  left: -25px;
}

.hori-selector .right:before,
.hori-selector .left:before {
  content: "";
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #5161ce;
}

.hori-selector .right:before {
  bottom: 0;
  right: -25px;
}

.hori-selector .left:before {
  bottom: 0;
  left: -25px;
}

/* Responsive */
@media (min-width: 992px) {
  .navbar-expand-custom {
    flex-flow: row nowrap;
    justify-content: space-between;
  }

  .navbar-expand-custom .navbar-nav {
    flex-direction: row;
  }

  .navbar-expand-custom .navbar-toggler {
    display: none;
  }

  .navbar-expand-custom .navbar-collapse {
    display: flex !important;
    flex-basis: auto;
  }
}

@media (max-width: 991px) {
  #navbarSupportedContent ul li a {
    padding: 12px 20px;
  }

  .hori-selector {
    margin-left: 10px;
    border-radius: 25px;
  }

  .hori-selector .left,
  .hori-selector .right {
    right: 10px;
  }

  .hori-selector .left {
    top: -25px;
    left: auto;
  }

  .hori-selector .right {
    bottom: -25px;
  }

  .hori-selector .left:before {
    left: -25px;
    top: -25px;
  }

  .hori-selector .right:before {
    bottom: -25px;
    left: -25px;
  }
}
/* ==========================
   Corregir fondo y separación global
========================== */

html,
body {
  margin: 0;
  padding: 0;
  background-color: #000; /* A juego con el banner */
}

/* ==========================
   Navbar
========================== */

.navbar-mainbg {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
  padding: 10px 30px;
  margin-bottom: 0;
  border-bottom: none;
  box-shadow: none;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar-mainbg.scrolled {
  background: rgba(0, 0, 0, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

/* ==========================
   Eliminar espacios no deseados
========================== */

.navbar-mainbg + #public-main {
  margin-top: 0;
}

#public-main {
  margin: 0;
  padding: 0;
  background: none;
  border: none;
}

#public-main > section:first-of-type {
  margin-top: 0 !important;
  padding-top: 0 !important;
  border: none;
  background: transparent;
}
