/* ── InfoBar — barra superior unificada ── */
.infobar {
  width: 100%;
  height: 48px;
  display: flex;
  align-items: center;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: .78rem;
  letter-spacing: .015em;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}

.infobar-inner {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 100%;
}

/* Columnas */
.infobar-left  { display: flex; align-items: center; flex: 1; min-width: 0; }
.infobar-center { display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.infobar-right { display: flex; align-items: center; gap: 6px; flex: 1; justify-content: flex-end; }

/* Sección genérica */
.infobar-section {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Icono SVG */
.infobar-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: .8;
}

/* Links globales */
.infobar a {
  color: inherit;
  text-decoration: none;
  transition: opacity .15s;
}
.infobar a:hover { opacity: 1; }

/* Horario */
.infobar-days { font-weight: 600; opacity: .95; }
.infobar-sep  { opacity: .35; margin: 0 2px; }
.infobar-time { opacity: .82; }

/* ── Redes sociales ── */
.infobar-social { gap: 8px; }

.infobar-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  opacity: .78;
  transition: opacity .15s, transform .12s;
  border-radius: 5px;
}
.infobar-social-link:hover { opacity: 1; transform: translateY(-1px); }
.infobar-social-link svg { width: 16px; height: 16px; }

/* ── Separador ── */
.infobar-divider {
  width: 1px;
  height: 20px;
  background: currentColor;
  opacity: .18;
  margin: 0 6px;
  flex-shrink: 0;
}

/* ── Auth ── */
.infobar-auth { gap: 6px; }

.infobar-username {
  font-size: .74rem;
  opacity: .7;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.infobar-auth-link {
  font-size: .74rem;
  font-weight: 500;
  opacity: .82;
  padding: 3px 8px;
  border-radius: 4px;
  transition: background .12s, opacity .12s;
  white-space: nowrap;
}
.infobar-auth-link:hover {
  background: rgba(255,255,255,.12);
  opacity: 1;
}
/* button que actúa como link para logout POST */
.infobar-auth-link--btn {
  background: none; border: none; cursor: pointer;
  font-family: inherit; color: inherit; text-decoration: none;
}

.infobar-auth-btn {
  font-size: .74rem;
  font-weight: 700;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  padding: 4px 12px;
  border-radius: 5px;
  white-space: nowrap;
  transition: background .15s;
}
.infobar-auth-btn:hover { background: rgba(255,255,255,.25); }

/* ── Hamburger ── */
.infobar-hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 6px;
  cursor: pointer;
  color: inherit;
  transition: background .15s;
  flex-shrink: 0;
  margin-left: 4px;
}
.infobar-hamburger:hover { background: rgba(255,255,255,.2); }
.infobar-hamburger svg { width: 18px; height: 18px; }

/* padding-top lo gestiona _navbar.css (infobar + navbar) */

/* ── Responsive ── */
@media (max-width: 900px) {
  .infobar-inner { padding: 0 16px; }
  .infobar-location { display: none; }
  .infobar-center { flex: 1; justify-content: flex-start; }
}

@media (max-width: 640px) {
  .infobar { height: 44px; font-size: .74rem; }

  .infobar-hours .infobar-days { display: none; }
  .infobar-hours .infobar-sep  { display: none; }
  .infobar-social { display: none; }
  .infobar-divider { display: none; }
  .infobar-inner { padding: 0 12px; }
}
