/* ── BlaBlaBار Panel de usuario ────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&display=swap');

.bbb-panel {
  font-family: 'Nunito', -apple-system, sans-serif;
  max-width: 560px;
  margin: 0 auto;
  padding: 0 0 40px;
  -webkit-font-smoothing: antialiased;
}

/* ── Cabecera ─────────────────────────────────────────────────────────────── */
.bbb-panel-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #fff;
  border: 1.5px solid #E2E8F0;
  border-radius: 20px;
  padding: 22px;
  margin-bottom: 14px;
  box-shadow: 0 4px 20px rgba(15,23,42,.07);
  position: relative;
  overflow: hidden;
}
.bbb-panel-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #FF6B35, #FF3E7F, #A855F7);
}

.bbb-panel-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}
.bbb-panel-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid #FF6B35;
  display: block;
}
.bbb-panel-rating-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background: #FBBF24;
  color: #78350F;
  font-size: .65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 99px;
  border: 2px solid #fff;
  white-space: nowrap;
}

.bbb-panel-user-info { flex: 1; min-width: 0; }

.bbb-panel-nombre {
  font-size: 1.2rem !important;
  font-weight: 900 !important;
  color: #0F172A !important;
  margin: 0 0 4px !important;
  padding: 0 !important;
  border: none !important;
  line-height: 1.2 !important;
}
.bbb-panel-ubic {
  font-size: .8rem;
  color: #94A3B8;
  margin: 0 0 3px;
}
.bbb-panel-bio {
  font-size: .82rem;
  color: #64748B;
  margin: 0 0 12px;
  line-height: 1.4;
}

.bbb-panel-stats {
  display: flex;
  gap: 16px;
}
.bbb-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}
.bbb-stat-num {
  font-size: 1.1rem;
  font-weight: 900;
  color: #FF6B35;
  line-height: 1;
}
.bbb-stat-label {
  font-size: .65rem;
  font-weight: 700;
  color: #CBD5E1;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.bbb-edit-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  text-decoration: none;
  transition: background .15s;
}
.bbb-edit-btn:hover { background: #F1F5F9; }

/* ── Próxima salida ───────────────────────────────────────────────────────── */
.bbb-proxima {
  background: linear-gradient(135deg, rgba(255,107,53,.08), rgba(255,62,127,.05));
  border: 1.5px solid rgba(255,107,53,.2);
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 14px;
}
.bbb-proxima-label {
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #FF6B35;
  margin-bottom: 8px;
}
.bbb-proxima-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.bbb-proxima-inner strong {
  display: block;
  font-size: .92rem;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 2px;
}
.bbb-proxima-inner span {
  font-size: .78rem;
  color: #64748B;
}
.bbb-proxima-btn {
  background: linear-gradient(135deg, #FF6B35, #FF3E7F);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: .8rem;
  padding: 8px 16px;
  border-radius: 99px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity .15s;
}
.bbb-proxima-btn:hover { opacity: .88; }

/* ── Clusters ─────────────────────────────────────────────────────────────── */
.bbb-clusters-titulo {
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #94A3B8;
  margin-bottom: 10px;
}

.bbb-clusters {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bbb-cluster {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1.5px solid #E2E8F0;
  border-radius: 16px;
  padding: 16px 18px;
  text-decoration: none;
  color: #0F172A;
  transition: all .15s;
  position: relative;
  overflow: hidden;
}
.bbb-cluster::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  border-radius: 4px 0 0 4px;
  opacity: 0;
  transition: opacity .15s;
}
.bbb-cluster:hover { transform: translateX(4px); border-color: transparent; }
.bbb-cluster:hover::before { opacity: 1; }

/* Colores por cluster */
.bbb-cluster-salidas::before  { background: linear-gradient(180deg, #FF6B35, #FF3E7F); }
.bbb-cluster-nueva::before    { background: linear-gradient(180deg, #A855F7, #6C3FC6); }
.bbb-cluster-mis::before      { background: linear-gradient(180deg, #0EA5E9, #0284C7); }
.bbb-cluster-perfil::before   { background: linear-gradient(180deg, #10B981, #059669); }
.bbb-cluster-ice::before      { background: linear-gradient(180deg, #00C9A7, #0EA5E9); }
.bbb-cluster-logout::before   { background: linear-gradient(180deg, #94A3B8, #64748B); }

.bbb-cluster-salidas:hover  { background: #FFF4EF; }
.bbb-cluster-nueva:hover    { background: #F5F3FF; }
.bbb-cluster-mis:hover      { background: #F0F9FF; }
.bbb-cluster-perfil:hover   { background: #ECFDF5; }
.bbb-cluster-ice:hover      { background: #F0FDFA; }
.bbb-cluster-logout:hover   { background: #F8FAFC; }

.bbb-cluster-icon {
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #F8FAFC;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .15s;
}
.bbb-cluster-salidas:hover .bbb-cluster-icon  { background: rgba(255,107,53,.1); }
.bbb-cluster-nueva:hover .bbb-cluster-icon    { background: rgba(168,85,247,.1); }
.bbb-cluster-mis:hover .bbb-cluster-icon      { background: rgba(14,165,233,.1); }
.bbb-cluster-perfil:hover .bbb-cluster-icon   { background: rgba(16,185,129,.1); }
.bbb-cluster-ice:hover .bbb-cluster-icon      { background: rgba(0,201,167,.1); }

.bbb-cluster-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.bbb-cluster-name {
  font-size: .95rem;
  font-weight: 800;
  color: #0F172A;
}
.bbb-cluster-desc {
  font-size: .78rem;
  color: #94A3B8;
}
.bbb-cluster-logout .bbb-cluster-desc {
  font-size: .72rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bbb-cluster-arrow {
  color: #CBD5E1;
  font-size: 1rem;
  transition: color .15s;
}
.bbb-cluster:hover .bbb-cluster-arrow { color: #94A3B8; }

/* ── Guest ────────────────────────────────────────────────────────────────── */
.bbb-panel-guest {
  text-align: center;
  padding: 40px 20px;
  font-family: 'Nunito', sans-serif;
  color: #64748B;
}
.bbb-panel-guest a { color: #FF6B35; font-weight: 700; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .bbb-panel-header { flex-wrap: wrap; }
  .bbb-panel-stats { gap: 12px; }
  .bbb-proxima-inner { flex-direction: column; align-items: flex-start; }
}
