/* Cabecera de portal: marca del club centrada + acción arriba a la derecha */
.club-portal-bar {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.85rem 1rem 1.5rem;
  min-height: 88px;
  border-bottom: 1px solid var(--line);
  box-sizing: border-box;
}
.club-portal-bar .club-portal-back {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}
.club-brand-root {
  margin: 0 auto;
  padding: 0 7.5rem;
  box-sizing: border-box;
  max-width: 100%;
}
@media (max-width: 640px) {
  .club-portal-bar {
    padding: 3.35rem max(1rem, env(safe-area-inset-right, 0)) 1.35rem max(1rem, env(safe-area-inset-left, 0));
    min-height: 0;
  }
  .club-portal-bar .club-portal-back {
    top: max(1rem, env(safe-area-inset-top, 0));
    right: max(1rem, env(safe-area-inset-right, 0));
    transform: none;
    font-size: 0.82rem;
    padding: 0.45rem 0.65rem;
  }
  .club-brand-root {
    padding: 0;
  }
  .club-brand-root .hub-club-nombre {
    font-size: clamp(1.05rem, 5vw, 1.35rem);
    word-break: break-word;
  }
}
.club-brand-root .hub-header-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  text-align: center;
}
.club-brand-root .hub-header-brand[hidden] {
  display: none !important;
}
.club-brand-root .hub-club-logo {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  overflow: hidden;
  background: #f1f5f9;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 800;
  font-size: 1rem;
  color: #475569;
  letter-spacing: 0.02em;
}
.club-brand-root .hub-club-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.club-brand-root .hub-club-nombre {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-align: center;
  max-width: 100%;
  padding-bottom: 0.15rem;
}
.club-brand-root .hub-header-placeholder {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
  width: 100%;
  padding: 0.5rem 0;
}
.club-brand-root .hub-header-placeholder[hidden] {
  display: none !important;
}
.club-brand-root .brand-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  justify-content: center;
  color: inherit;
  text-decoration: none;
}
.club-brand-root .brand-inline:hover .brand-name {
  color: var(--primary);
}
