/* ------------------- TOP HEADER ------------------- */
#top-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 50px;
  color:#fff;
  background: #007bff;
  display: flex;
  align-items: center;
  justify-content: center; /* Desktop centrado */
  font-weight: 600;
  z-index: 1100;
  gap: 20px;
}
#top-header a{
  font-weight:600;
  color:#80c1ff;
}
#top-header a:hover{
  color:#fff;
  text-decoration: underline;
}
#top-header p{
margin:0px;
}
body.theme-alt #top-header {
  color: #E84444;
  background: rgb(21, 33, 59, 1);
}

body.theme-alt #top-header a{
color: rgba(255, 255, 255, .55);
}

body.theme-alt #top-header a:hover{
color: #ccc;
}

/* ------------------- BRAND ------------------- */
#brand-container {
  background-color: rgb(212, 212, 212);
  padding: 0 10px;
  box-shadow: 0 0 10px rgba(0,0,0,.1);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
  display: flex;
  align-items: center;
  justify-content: center;
}
#brand-container:hover {
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.6));
}

/* ------------------- BRAND FLOAT ------------------- */
#brand-float {
  height: 160px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-top: 110px;
  z-index: 1100;
}
#brand-float img {
  max-height: 100%;
  display: block;
}

/* ------------------- NAVBAR ------------------- */
.navbar {
  position: fixed;
  top: 50px;
  padding-left: 200px;
  width: 100%;
  z-index: 1040;
  display: flex;
  justify-content: flex-end; /* Desktop alineado a la derecha */
}

/* Botón de menú siempre visible */
.navbar-toggler {
  position: relative;
  z-index: 1110;
}

/* Ajustar items del menú a la derecha */
/*.navbar-nav {*/
.container-fluid {
  width: fit-content !important;
}



/* ------------------- BODY ------------------- */
body {
  padding-top: 150px; /* Aumentado para compensar el brand-float y la navbar */
}

/* ------------------- RESPONSIVE MOBILE ------------------- */
@media (max-width: 767px) {
  #brand-container{
    transform: scale(0.65);
  }

  /* Mobile vertical: ubicar logotipo a la izquierda */
  @media (orientation: portrait) {
    #top-header {
      justify-content: flex-start; /* logo a la izquierda */
    }
    #top-header p {
      display: none;
    }
  }

  /* MÓVIL HORIZONTAL (landscape): mostrar solo el <span> */
  @media (max-width: 767px) and (orientation: landscape) {
    #top-header p {
      display: block;
    }

    #top-header p a {
      display: none;
    }

    #top-header p span {
      display: inline;
    }
  }

  /* Botón de menú Bootstrap visible */
  .navbar-toggler {
    display: block;
    margin-left: auto; /* hamburger a la derecha */
  }

  /* Menú desplegable: items alineados a la izquierda */
  .navbar-collapse {
    top: 106px;
    background: var(--theme-oscuro-glass) !important;
  }

  .navbar-collapse .navbar-nav {
    margin-left: 0 !important;       /* elimina margin-left:auto */
    flex-direction: column;           /* items uno debajo de otro */
    align-items: flex-start;          /* fuerza alineación a la izquierda */
  }
  /*
  .navbar-collapse .nav-item {
    width: 100%;
  }
  */
}

/*--theme-oscuro-glass, --theme-azul, --theme-rojo: vienen de style.css*/
.bg-dark{
background: var(--theme-oscuro-glass) !important;
box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7), 0 0 10px rgba(0, 60, 255, .9);
}

body.theme-alt .bg-dark{
box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7), 0 0 10px rgba(232, 68, 68, .9);
}

/* 1. EL CONTENEDOR: Ahora más integrado al theme oscuro */
.navbar-nav .dropdown-menu {
    background: var(--theme-oscuro-glass) !important;
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    
    border-top: 3px solid var(--theme-azul) !important; 
    border-left: 1px solid rgba(0, 123, 255, 0.2) !important;
    border-right: 1px solid rgba(0, 123, 255, 0.2) !important;
    border-bottom: 1px solid rgba(0, 123, 255, 0.2) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7), 0 0 15px rgba(0, 123, 255, 0.1);

    border-radius: 0 0 15px 15px !important;
    padding: 12px 8px !important;
    min-width: 240px;
    margin-top: 5px !important; /* Pequeño aire con el nav-link */
}
body.theme-alt .navbar-nav .dropdown-menu {
    border-top: 3px solid var(--theme-rojo) !important; 
    border-left: 1px solid rgba(232, 68, 68, 0.2) !important;
    border-right: 1px solid rgba(232, 68, 68, 0.2) !important;
    border-bottom: 1px solid rgba(232, 68, 68, 0.2) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7), 0 0 15px rgba(0, 123, 255, 0.1);
}


/* 2. LOS ÍTEMS: Tipografía y color base */
.navbar-nav .dropdown-item {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    padding: 12px 20px !important;
    margin-bottom: 5px;
    border-radius: 10px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    display: flex;
    align-items: center;
}

/* 3. EFECTO HOVER */
.navbar-nav .dropdown-item:hover {
    background: rgba(0, 123, 255, 0.2) !important;
    color: var(--theme-azul) !important;
    padding-left: 32px !important;
}


body.theme-alt .navbar-nav .dropdown-item:hover {
    background: rgba(232, 68, 68, 0.2) !important;
    color: var(--theme-rojo) !important;
}

.navbar-nav .nav-item .nav-link::before,
.navbar-nav .dropdown-item::before {
    content: '';
    position: absolute;
    left: 8px; /* Empieza un poco adentro del borde */
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 0;
    background: var(--theme-azul);
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.6); /* Brillo neón azul */
    transition: all 0.3s ease;
    border-radius: 10px;
}
body.theme-alt .navbar-nav .nav-item .nav-link::before,
body.theme-alt .navbar-nav .dropdown-item::before {
  background: var(--theme-rojo);
  box-shadow: 0 0 10px rgba(232, 68, 68, 0.6);
}
.navbar-nav .nav-item .nav-link:hover::before,
.navbar-nav .dropdown-item:hover::before {
    height: 60%; /* La barrita crece verticalmente */
}

/* 5. ICONOS DENTRO DEL MENÚ (Si usás ti-angle-right o similares) */
.navbar-nav .dropdown-item i {
    color: var(--theme-azul);
    margin-right: 12px;
    transition: all 0.3s ease;
}
body.theme-alt .navbar-nav .dropdown-item i {
    color: var(--theme-rojo);
}

.navbar-nav .dropdown-item:hover i {
    color: var(--theme-azul);
    transform: scale(1.1);
}
body.theme-alt .navbar-nav .dropdown-item:hover i {
    color: var(--theme-rojo);
}

/*test*/

/*menu sin desplegable*/
.navbar-nav .nav-item .nav-link {
    position: relative;
    padding: 10px 15px !important;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

/* El Icono (ti-minus) */
.navbar-nav .nav-item .nav-link i {
    transition: transform 0.3s ease, color 0.3s ease;
    color: var(--theme-azul);
}
body.theme-alt .navbar-nav .nav-item .nav-link i {
    color: var(--theme-rojo);
}

/* La línea azul animada (subrayado) */
.navbar-nav .nav-item .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    /*background: var(--theme-azul);*/
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

/* --- EFECTO HOVER --- */
.navbar-nav .nav-item .nav-link:hover {
    color: var(--theme-azul) !important;
}
body.theme-alt .navbar-nav .nav-item .nav-link:hover {
    color: var(--theme-rojo) !important;
}

.navbar-nav .nav-item .nav-link:hover::after {
    width: 70%; /* La línea se expande */
}

.navbar-nav .nav-item .nav-link:hover i {
    color: var(--theme-azul); /* El icono cambia de color */
}
body.theme-alt .navbar-nav .nav-item .nav-link:hover i {
    color: var(--theme-rojo);
}
