/* ==========================================================================
   COMPONENTE: TOPBAR (BARRA SUPERIOR)
   Construcciones JGP2410 C.A.
   ========================================================================== */

.topbar {
  background-color: var(--color-deep-blue);
  color: var(--color-white);
  font-size: var(--font-size-xs);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: calc(var(--z-header) + 1);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding-block: var(--space-1);
}

.topbar__group {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

/* Indicador de Cobertura Nacional */
.topbar__location {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: #D1D5DB;
  font-weight: var(--font-weight-medium);
}

.topbar__location svg {
  width: 14px;
  height: 14px;
  color: var(--color-yellow);
  flex-shrink: 0;
}

/* Enlaces de contacto telefónico y WhatsApp */
.topbar__contact-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-white);
  font-weight: var(--font-weight-bold);
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.topbar__contact-link svg {
  width: 14px;
  height: 14px;
  color: var(--color-yellow);
  flex-shrink: 0;
}

.topbar__contact-link:hover {
  color: var(--color-yellow);
  background-color: rgba(255, 255, 255, 0.05);
}

/* Redes Sociales Oficiales */
.topbar__social {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.topbar__social-label {
  color: #9CA3AF;
  font-size: var(--font-size-xs);
  display: none;
}

@media (min-width: 768px) {
  .topbar__social-label {
    display: inline;
  }
}

.topbar__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  color: #D1D5DB;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.topbar__social-link svg {
  width: 15px;
  height: 15px;
}

.topbar__social-link:hover {
  color: var(--color-yellow);
  transform: translateY(-1px);
}

/* Adaptación responsive: en móviles se prioriza teléfono y redes */
@media (max-width: 640px) {
  .topbar__location span {
    font-size: 11px;
  }

  .topbar__social {
    gap: var(--space-1);
  }

  .topbar__social-link {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 520px) {
  .topbar__location {
    display: none;
  }

  .topbar__inner {
    justify-content: space-between;
    width: 100%;
  }

  .topbar__group {
    width: 100%;
    justify-content: space-between;
  }
}

