.text_logo {
  color: rgba(88, 103, 126, 0.5);
  letter-spacing: 0.08em;
  margin: 0;
  margin-top: 0.125rem;
  text-transform: uppercase;
  font-weight: 500;
  font-size: 9px;
}
/*nav bar*/
/* ==========================================================
   Contenedor que agrupa los iconos + el avatar del usuario
   para que queden pegados al lado derecho de la barra
========================================================== */
.nav-user-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
  align-self: stretch;
}

/* Espaciado entre los iconos (Inicio, Mi red, Mensajes, Notificaciones) */
.nav-red-social-style#nav_user {
  display: flex;
  align-items: stretch; /* CAMBIA de center a stretch */
  gap: 20px;
  align-self: stretch; /* NUEVO */
}

/* ==========================================================
   Icono individual + círculo
========================================================== */
.nav-item-link {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%; /* NUEVO */
  text-decoration: none;
  color: rgba(31, 55, 92, 0.6) !important;
  font-size: 12px;
  font-weight: 500;
  font-family: 'Inter', system-ui, sans-serif;
  cursor: pointer;
  transition: color 0.2s ease;
  position: relative;
}

.nav-item-link .icon-circle {
  position: relative;
  width: 38px;
  height: 38px;
  flex-shrink: 0; /*evita que se comprima y se vea ovalado */
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 16px;
  background-color: var(--background);
  color: var(--primary);
  transition: background-color .2s ease, color .2s ease;
}

.nav-item-link .label {
  flex-shrink: 0; /*  evita que el texto se comprima */
}

.nav-item-link:hover .icon-circle {
  background-color: #e2e8f0;
}

/* Estado activo (ya resuelto por tu JS, solo falta el estilo visual) */
.nav-item-link.active .icon-circle {
  background-color: #e8f0fe;
  color: #2563eb;
}

.nav-item-link.active .label {
  color: #2563eb;
  font-weight: 600;
}
.nav-item-link.active::after {
  content: '';
  position: absolute;
  bottom: 4px; /* CAMBIA de -6px a un valor positivo */
  left: -6px;
  right: -6px;
  height: 2px;
  background-color: #1f375c;
}

/* Badge de notificaciones sobre el círculo */
.notification-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background-color: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}
.header {
  background: var(--fondoNav);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  z-index: 995;
  display: flex;
  justify-content: center;
}

.header-inner {
  width: 100%;
  padding: 10px 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-container {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: space-between;
  align-self: stretch; /* NUEVO */
}

.nav-button {
  color: var(--parrafo);
  border: none;
  background: none;
  cursor: pointer;
  padding: 0.5rem 1rem;
  font-size: 14px;
  border-bottom: 2px solid transparent;
  transition: border-bottom 0.3s ease;
  font-weight: 600;
  color: rgba(31, 55, 92, 0.7);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.nav-button:hover {
  background-color: #f0f0f0;
  padding: 0.5rem 1rem;
  border-radius: 4px;
}

.nav-button.pulse {
  color: var(--naranja-color);
  border-bottom: 2px solid var(--naranja-color);
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.nav-button-inicio {
  background-color: var(--orange);
  color: var(--light-text);
  border: none;
  padding: 0rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  height: 40px;
  border-radius: 20px;
}

.nav {
  margin-right: auto;
  margin-left: 1.5rem;
}

.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown .nav-button {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  color: rgba(31, 55, 92, 0.7);
  font-size: 14px;
}

.nav-dropdown .nav-button i {
  transition: transform 0.3s ease;
  font-size: 12px;
}

.dropdown-menu {
  padding: 20px;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15);
  min-width: 420px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  margin-top: 12px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: 0.5s;
}

.nav-dropdown:hover .nav-button i {
  transform: rotate(180deg);
}

.dropdown-menu a {
  display: block;
  padding: 6px 8px;
  text-decoration: none;
  font-size: 12px;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
  color: #1f375ccc;
  border-radius: 10px;
}

.menu-item-icon {
  display: flex;
  gap: 6px;
  align-items: center;
}

.dropdown-menu a:hover {
  background-color: #f8f9fa;
  padding-left: 24px;
}

.dropdown-menu a:first-child {
  border-radius: 12px 12px 0 0;
}

.dropdown-menu a:last-child {
  border-radius: 0 0 12px 12px;
}

.dropdown-title {
  display: block;
  font-weight: 600;
  font-size: 13px;
  color: #1f375c;
}

.dropdown-title:hover {
  color: #f29a32;
}

.dropdown-subtitle {
  display: block;
  font-size: 11px;
  color: var(--parrafo, #6b7280);
  font-weight: 400;
  margin-top: 0.125rem;
  line-height: 1.65;
}

.dropdown-marcador {
  transition: transform 0.3s ease;
  color: rgba(31, 55, 92, 0.7);
  font-size: 10px;
  padding: 0px 8px;
  margin-bottom: 8px;
  line-height: 1.65;
  font-weight: bold;
  display: inline-block;
}

.hamburger-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: #1f375c;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.dropdown-user-flex {
  display: flex;
  gap: 20px;
}

/* ESTILOS RESPONSIVE (MÓVIL Y TABLET) */
@media (max-width: 992px) {

  .hamburger-btn {
    display: block !important;
  }

  .header-inner {
    justify-content: space-between;
    padding: 10px 1.5rem;
  }

  .nav-container {
    position: fixed;
    top: 60px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 60px);
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 1.5rem;
    overflow-y: auto;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
  }

  .nav-container.active {
    left: 0;
  }

  .nav {
    flex-direction: column;
    width: 100%;
    margin: 0 0 1rem 0;
    margin-left: 0;
  }

  .nav-dropdown {
    display: block;
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .nav-dropdown .nav-button {
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 1rem 0.5rem;
    font-size: 15px;
  }

  .nav-dropdown:hover .dropdown-menu {
    opacity: 0;
    visibility: hidden;
    transform: none;
  }

  .nav-dropdown.open .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    max-height: none;
  }

  .nav-dropdown.open .nav-button i {
    transform: rotate(180deg);
  }

  .dropdown-menu {
    position: relative;
    top: 0;
    left: 0;
    box-shadow: none;
    border: none;
    min-width: 100%;
    padding: 0 0 1rem 1rem;
    margin-top: 0;
    display: none;
    background: #f9fafb;
    border-radius: 8px;
  }

  .dropdown-user-flex {
    flex-direction: column;
    gap: 15px;
  }

  .dropdown-menu a {
    padding: 8px 4px;
  }

  .dropdown-menu a:hover {
    padding-left: 12px;
  }

  .dropdown-marcador {
    margin-bottom: 8px !important;
    display: inline-block;
    margin-top: 10px;
  }

  #loginNav {
    width: 100%;
    border: none;
    margin-top: 1rem;
    padding: 0 0.5rem;
  }

  .nav-button-inicio {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
}




/* BOTÓN DEL USUARIO EN LA NAVEGACIÓN (TIPO CÁPSULA) */
.user-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border-radius: 40px;
  padding: 4px 14px 4px 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.user-pill-btn:hover {
  background: #f8fafc;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.user-pill-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgb(249, 135, 21);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgb(249, 135, 21);
  font-weight: 700;
  font-size: 12px;
  background-color: transparent;
}

.user-pill-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.user-pill-name {
  font-size: 14px;
  font-weight: 600;
  color: #1f375c;
}

.user-pill-role {
  font-size: 10px;
  font-weight: 700;
  color: #f97316;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.user-pill-btn .chevron {
  color: #64748b;
  margin-left: 2px;
  transition: transform 0.3s ease;
}

.nav-dropdown.open .user-pill-btn .chevron,
.nav-dropdown:hover .user-pill-btn .chevron {
  transform: rotate(180deg);
}

/* INTERIOR DEL DROPDOWN DE USUARIO */
.profile-dropdown-menu {
  min-width: 260px !important;
  padding: 0 !important;
  overflow: hidden;
  border-radius: 16px !important;
}

.profile-header {
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
}

.profile-name {
  margin: 0;
  font-weight: 600;
  color: #1f375c;
  font-size: 13px;
}

.profile-email {
  margin: 4px 0 0 0;
  color: #64748b;
  font-size: 11px;
}

.profile-switcher {
  padding: 8px 8px 4px;
}

.profile-switcher-title {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.profile-card {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 6px 8px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  text-align: left;
  gap: 0.625rem;
}

.profile-card.active {
  display: flex;
  background-color: #fffaf5;
  border: 1px solid #ffedd5;
}

.profile-card.create {
  border: 1px dashed #cbd5e1;
  background-color: #ffffff;
  display: flex;
}

.profile-card.create:hover {
  background-color: #f8fafc;
  border-color: #94a3b8;
}

.orange-avatar {
  background: #ffffff;
  border: 1px solid #fdba74;
  color: #ea580c;
}

.gray-avatar {
  background: #f1f5f9;
  color: #64748b;
}

.profile-card-text {
  flex: 1 1 0%;
  display: flex;
  flex-direction: column;
}

.profile-card-title {
  font-weight: 600;
  color: #1f375c;
  font-size: 12.5px;
  margin: 0;
}

.profile-card-subtitle {
  font-size: 10px;
  color: #64748b;
  margin: 0;
  line-height: 1.65;
}

.menu-divider {
  border: 0;
  border-top: 1px dashed #e2e8f0;
  margin: 8px 24px;
}

.profile-links {
  display: flex;
  flex-direction: column;
}

.profile-links a,
.profile-links button.logout-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 12px;
  color: rgba(31, 55, 92, 0.8);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  background: none;
  border: none;
  border-radius: 10px;
  transition: all 0.2s;
  cursor: pointer;
  text-align: left;
}

.profile-dropdown-menu a {
  border-left: none !important;
}

.profile-links a:hover,
.profile-links button.logout-btn:hover {
  background-color: #f8fafc;
  color: #1f375c;
  padding-left: 20px;
}

.profile-links svg {
  color: #94a3b8;
  flex-shrink: 0;
}



.nav-actions{
    display:flex;
    align-items:center;
    gap:12px;
    margin-right:16px;
}

.notification-btn{
    position:relative;
    width:40px;
    height:40px;
    border:none;
    background:transparent;
    border-radius:50%;
    display:flex;
    justify-content:center;
    align-items:center;
    cursor:pointer;
    transition:.25s;
}

.notification-btn i{
    font-size:20px;
    color:#64748b;
}

.notification-btn:hover{
    background:#f8fafc;
}

.notification-btn:hover i{
    color:#1f375c;
}

.notification-badge{
    position:absolute;
    top:6px;
    right:6px;
    min-width:16px;
    height:16px;
    border-radius:50%;
    background:#ef4444;
    color:#fff;
    font-size:10px;
    font-weight:700;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:0 4px;
}

.notifications-dropdown{
    position:absolute;
    top:52px;
    right:0;
    width:360px;
    background:#fff;
    border:1px solid rgba(15,23,42,.08);
    border-radius:16px;
    box-shadow:0 8px 24px rgba(15,23,42,.15);
    overflow:hidden;
    z-index:1000;

    opacity:0;
    visibility:hidden;
    transform:translateY(-10px);
    transition:all .25s ease;
}

.notifications-dropdown.open{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
}

.notifications-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:14px 18px;
    border-bottom:1px solid #f1f5f9;
}

.notifications-title{
    margin:0;
    font-size:15px;
    font-weight:600;
    color:#1f375c;
}

.notifications-body{
    min-height:130px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    padding:32px 20px;
}

.notifications-body i{
    font-size:26px;
    color:#cbd5e1;
    margin-bottom:10px;
}

.notifications-empty{
    color:#64748b;
    font-size:14px;
}


/* ==========================================================================
   ESTILOS NAVEGACIÓN ESTILO LINKEDIN (ICONO SOBRE TEXTO)
   ========================================================================== */

.nav-red-social-style {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  margin-left: auto;
  margin-right: auto;
}

.nav-item-link {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: rgba(31, 55, 92, 0.6) !important;
  font-size: 12px;
  font-weight: 500;
  font-family: 'Inter', system-ui, sans-serif;
  cursor: pointer;
  transition: color 0.2s ease;
  position: relative;
}

.nav-item-link i {
  font-size: 22px;
}

.nav-item-link:hover, 
.nav-item-link.active {
  color: #1f375c !important;
  text-decoration: none;
}

.nav-item-link.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: -6px;
  right: -6px;
  height: 2px;
  background-color: #1f375c;
}

.nav-item-dropdown-wrapper {
  position: relative;
}

.icon-badge-container {
  position: relative;
  display: inline-block;
}

.nav-red-social-style .notification-badge {
  position: absolute;
  top: -2px;
  right: -6px;
  min-width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ef4444;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--fondoNav, #ffffff);
}


/* ==========================================================================
   ESTILOS GENERALES Y BUSCADOR ESTILO LINKEDIN
   ========================================================================== */

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  max-width: 400px;
}

.search-container {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 14px;
  color: #5c6c7f;
  font-size: 14px;
  pointer-events: none;
}

.search-input {
  width: 100%;
  height: 36px;
  background-color: #edf2f7; /* Gris claro de fondo similar a LinkedIn */
  border: 1px solid transparent;
  border-radius: 20px; /* Forma de píldora/cápsula de la imagen */
  padding: 0 16px 0 40px;
  font-size: 14px;
  color: #1f375c;
  font-family: 'Inter', system-ui, sans-serif;
  transition: all 0.25s ease;
}

/* Efecto al hacer focus en la barra de búsqueda */
.search-input:focus {
  outline: none;
  background-color: #ffffff;
  border-color: #1f375c;
  box-shadow: 0 0 0 1px #1f375c;
}

/* ==========================================================================
   ADAPTACIÓN RESPONSIVA
   ========================================================================== */
@media (max-width: 992px) {
  .header-left {
    max-width: 70%;
  }

  .search-input {
    height: 32px;
    font-size: 13px;
  }

  .nav-red-social-style {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 0;
    margin: 0;
  }

  .nav-item-link {
    flex-direction: row;
    justify-content: flex-start;
    gap: 16px;
    width: 100%;
    padding: 14px 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: #1f375c !important;
  }

  .nav-item-link i {
    font-size: 20px;
    margin-bottom: 0;
  }

  .nav-item-link.active::after {
    display: none;
  }

  .nav-item-dropdown-wrapper {
    width: 100%;
  }

  .notifications-dropdown {
    position: static;
    width: 100%;
    box-shadow: none;
    border: none;
    display: none;
    background: #f9fafb;
    margin-top: 5px;
  }
  
  .notifications-dropdown.open {
    display: block;
  }
}

@media (max-width: 768px) {
  .search-container {
    display: none !important;
  }
  .text_logo {
    font-size: 0.55rem;
  }
}

@media (max-width: 992px) {
  .nav-red-social-style {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 0;
    margin: 0;
  }

  .nav-item-link {
    flex-direction: row;
    justify-content: flex-start;
    gap: 16px;
    width: 100%;
    padding: 14px 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: #1f375c !important;
  }

  .nav-item-link i {
    font-size: 20px;
    margin-bottom: 0;
  }

  .nav-item-link.active::after {
    display: none;
  }

  .nav-item-dropdown-wrapper {
    width: 100%;
  }

  .notifications-dropdown {
    position: static;
    width: 100%;
    box-shadow: none;
    border: none;
    display: none;
    background: #f9fafb;
    margin-top: 5px;
  }
  
  .notifications-dropdown.open {
    display: block;
  }
}