@import url('https://fonts.googleapis.com/css2?display=swap&family=Noto+Sans:wght@400;500;700;900&family=Public+Sans:wght@400;500;700;900');

body, .relative {
  font-family: "Public Sans", "Noto Sans", sans-serif;
}

.custom-bg {
  position: relative;
  z-index: 0;
  /* Nueva imagen de fondo */
  background: #121516;
}

.custom-bg::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  /*background-image: url("https://images.unsplash.com/photo-1584451049700-ec9b394f3805?q=80&w=1974&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D");*/
  background-image: url("https://images3.alphacoders.com/101/1010294.jpg");
  /*background-image: url("https://images.unsplash.com/photo-1506744038136-46273834b3fb?auto=format&fit=crop&w=1500&q=80");*/
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.45; /* Semitransparente */
  pointer-events: none;
}

.spacer {
  height: 20px;
}

.efecto-seleccion {
  animation: seleccion-glow 1.8s infinite alternate;
  box-shadow: 0 0 0 0 #b2d1e5;
}

@keyframes seleccion-glow {
  0% {
    box-shadow: 0 0 0 0 #b2d1e5;
  }
  60% {
    box-shadow: 0 0 16px 6px #b2d1e5cc;
  }
  100% {
    box-shadow: 0 0 0 0 #b2d1e5;
  }
}

.layout-container {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.layout-content-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
}

#bienvenido-btn {
  min-width: 180px;
  height: 64px;
  font-size: 1.5rem;
  padding-left: 2.5rem;
  padding-right: 2.5rem;
}

.btn-animacion {
  animation: btnClickAnim 0.6s;
}

@keyframes btnClickAnim {
  0% {
    transform: scale(1);
    filter: brightness(1);
  }
  30% {
    transform: scale(1.12);
    filter: brightness(1.2);
  }
  100% {
    transform: scale(1);
    filter: brightness(1);
  }
}

/* Header fijo */
.fixed-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  z-index: 50;
  background: #111518;
}

/* Menú desplegable usuario */
.dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 48px;
  min-width: 220px;
  background: #23272a;
  border-radius: 0.5rem;
  box-shadow: 0 4px 24px 0 #0004;
  padding: 1rem;
  color: #fff;
}
.dropdown-menu.active {
  display: block;
}

/* Fondo principal */
.font-public-sans {
  font-family: "Public Sans", "Noto Sans", sans-serif;
}

/* Avatar usuario en header */
.user-avatar {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Notificación popup */
.notification-popup {
  position: fixed;
  top: 30px;
  right: 30px;
  color: #fff;
  padding: 16px 32px;
  border-radius: 12px;
  z-index: 9999;
  font-size: 1.1rem;
  box-shadow: 0 2px 8px #0005;
}

/* Menú móvil */
.mobile-nav {
  position: absolute;
  top: 56px; /* Ajusta según la altura de tu header */
  right: 0;
  background: #23272a;
  border-radius: 0.5rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
  padding: 1rem 0.5rem;
  min-width: 200px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.mobile-nav a {
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0.375rem;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s;
}
.mobile-nav a:hover,
.mobile-nav .nav-vertical-active {
  background: #1993e5;
  color: #fff;
}
@media (min-width: 768px) {
  .mobile-nav {
    display: none !important;
  }
}

/* Personalización del menú de autocompletado jQuery UI para modo oscuro y claro */
.ui-autocomplete {
  max-height: 220px;
  overflow-y: auto;
  overflow-x: hidden;
  background: #23272a !important;
  color: #fff !important;
  border-radius: 0.75rem !important;
  border: 1px solid #b2d1e5 !important;
  font-size: 1rem !important;
  z-index: 9999 !important;
  box-shadow: 0 4px 24px 0 rgba(0,0,0,0.25) !important;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.ui-menu-item-wrapper {
  padding: 0.75rem 1.25rem !important;
  cursor: pointer;
  transition: background 0.2s;
  background: transparent !important;
  color: inherit !important;
}
.ui-menu-item-wrapper.ui-state-active,
.ui-menu-item-wrapper:hover {
  background: #b2d1e5 !important;
  color: #121516 !important;
  border-radius: 0.5rem !important;
}
/* Modo claro para el menú de autocompletado */
body.light-mode .ui-autocomplete {
  background: #fff !important;
  color: #23272a !important;
  border-color: #1993e5 !important;
}
body.light-mode .ui-menu-item-wrapper.ui-state-active,
body.light-mode .ui-menu-item-wrapper:hover {
  background: #1993e5 !important;
  color: #fff !important;
}