/* ─────────────────────────────────────────────────────────────
   La campana de avisos de la barra de arriba.
   ───────────────────────────────────────────────────────────── */

.fh-bell { position: relative; }

.fh-bell__btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 10px;
  background: rgba(255, 255, 255, .04);
  color: #e9e9ec;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease;
}
.fh-bell__btn:hover  { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .24); }
.fh-bell__btn:focus-visible { outline: 2px solid var(--fh-crimson, #c90130); outline-offset: 2px; }

/* El numero rojo. Va pegado a la esquina y NO empuja nada: si moviera el resto
   de la barra, la barra bailaria cada vez que llega un aviso. */
.fh-bell__dot {
  position: absolute; top: -5px; right: -5px;
  min-width: 17px; height: 17px; padding: 0 4px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9px;
  background: var(--fh-crimson, #c90130);
  color: #fff;
  font-size: 10.5px; font-weight: 700; line-height: 1;
  box-shadow: 0 0 0 2px #0b0b0d;
}

.fh-bell__panel {
  position: absolute; top: calc(100% + 10px); right: 0;
  width: min(340px, calc(100vw - 28px));
  max-height: min(430px, 70vh); overflow-y: auto;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  background: #131316;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .55);
  z-index: 1600;   /* por encima de las pantallas del dock, que van en 1500 */
}
.fh-bell__panel[hidden] { display: none; }

.fh-bell__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 10px 12px 8px;
  font-size: 12px; letter-spacing: .04em; text-transform: uppercase;
  color: #8b8b93;
}
.fh-bell__all { color: #b9b9c2; font-size: 11.5px; text-transform: none; letter-spacing: 0; }
.fh-bell__all:hover { color: #fff; }

.fh-bell__empty { margin: 0; padding: 22px 14px 26px; text-align: center; color: #7e7e87; font-size: .88rem; }

.fh-bell__list { list-style: none; margin: 0; padding: 0; }

.fh-bell__item > a {
  display: flex; gap: 11px; align-items: flex-start;
  padding: 10px 11px;
  border-radius: 10px;
  color: inherit; text-decoration: none;
}
.fh-bell__item > a:hover { background: rgba(255, 255, 255, .06); }

/* Lo que no ha visto todavia lleva una barra roja a la izquierda. Un punto
   suelto se pierde en una lista; una barra se ve de un vistazo. */
.fh-bell__item.is-new > a { box-shadow: inset 2px 0 0 var(--fh-crimson, #c90130); }

.fh-bell__ico {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 9px;
  background: rgba(255, 255, 255, .07);
  color: #cfcfd6;
}
.fh-bell__ico--factura { background: rgba(201, 1, 48, .16); color: #ff8095; }
.fh-bell__ico--cotizacion { background: rgba(88, 140, 255, .15); color: #9ab6ff; }
.fh-bell__ico--curso { background: rgba(111, 220, 140, .14); color: #7fdc9c; }

.fh-bell__txt  { min-width: 0; }
.fh-bell__line { display: block; font-size: .875rem; line-height: 1.35; color: #ececf0; }
.fh-bell__sub  { display: block; margin-top: 2px; font-size: .78rem; color: #8b8b93; }

@media (max-width: 480px) {
  /* En el telefono el desplegable se ancla a la pantalla, no al boton: pegado
     al boton se saldria por el borde derecho. */
  .fh-bell__panel { position: fixed; top: 62px; right: 10px; left: 10px; width: auto; }
}

/* ─────────────────────────────────────────────────────────────
   Las pestañas del perfil y la lista de cursos que lleva dentro.
   Viven aqui y no en documentos.css porque documentos.css solo se
   carga cuando hay cotizaciones o facturas, y las pestañas salen
   aunque solo haya cursos.
   ───────────────────────────────────────────────────────────── */

.fh-tabs {
  display: flex; gap: 4px; flex-wrap: wrap;
  margin: 0 0 26px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 12px;
  background: rgba(255, 255, 255, .03);
}
.fh-tabs__btn {
  flex: 1 1 auto;
  padding: 9px 14px;
  border: 0; border-radius: 9px;
  background: transparent;
  color: #9a9aa3;
  font-family: inherit; font-size: .86rem; font-weight: 600;
  white-space: nowrap; cursor: pointer;
  transition: background .16s ease, color .16s ease;
}
.fh-tabs__btn:hover { color: #dcdce2; }
.fh-tabs__btn.is-active { background: rgba(255, 255, 255, .1); color: #fff; }
.fh-tabs__btn:focus-visible { outline: 2px solid var(--fh-crimson, #c90130); outline-offset: 1px; }

.fh-pane[hidden] { display: none; }

/* ---- Mis cursos ---- */
.fh-mycourses { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }

.fh-mycourse > a {
  display: flex; align-items: center; gap: 14px;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 13px;
  background: rgba(255, 255, 255, .025);
  color: inherit; text-decoration: none;
  transition: border-color .16s ease, background .16s ease;
}
.fh-mycourse > a:hover { border-color: rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .05); }

.fh-mycourse__cover {
  flex: 0 0 auto;
  width: 64px; height: 46px; border-radius: 9px;
  background: rgba(255, 255, 255, .06) center/cover no-repeat;
  display: inline-flex; align-items: center; justify-content: center;
  color: #6f6f79;
}

.fh-mycourse__body  { flex: 1 1 auto; min-width: 0; }
.fh-mycourse__title {
  display: block; font-size: .95rem; font-weight: 600; color: #ececf0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fh-mycourse__meta {
  display: flex; align-items: center; gap: 5px; flex-wrap: wrap;
  margin-top: 3px; font-size: .78rem; color: #8b8b93;
}

.fh-mycourse__bar {
  display: block; height: 3px; margin-top: 8px;
  border-radius: 2px; background: rgba(255, 255, 255, .1);
  overflow: hidden;
}
.fh-mycourse__bar > span { display: block; height: 100%; background: var(--fh-crimson, #c90130); }

.fh-mycourse__go { flex: 0 0 auto; color: #6f6f79; }
.fh-mycourse > a:hover .fh-mycourse__go { color: #cfcfd6; }

@media (max-width: 520px) {
  .fh-tabs__btn { flex: 1 1 40%; font-size: .8rem; padding: 8px 10px; }
}
