:root {
  --azul-topbar: #0251A2;
  --azul-menu: #ffffff;
  --texto-claro: #ffffff;
  --texto-menu: #000000;
  --verde-acento: #0A7C0A;
  --hover: #e8f0fb;
  --borde: rgba(255, 255, 255, 0.28);
  --sombra: 0 2px 10px rgba(0, 0, 0, 0.08);
  --font: Arial, Helvetica, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font);
  background: #f5f7fa;
}

/* CONTENEDOR GLOBAL*/
.header-global {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: var(--sombra);
}

/* TOPBAR */
.topbar {
  background: var(--azul-topbar);
  color: var(--texto-claro);
  height: 46px;
  display: flex;
  align-items: center;
}

.contenedor {
  width: 100%;
  padding: 0 20px;
  margin: 0;
}

.topbar .contenedor {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

.topbar-left {
  gap: 14px;
}

.topbar-link {
  color: var(--texto-claro);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 0 18px;
  line-height: 46px;
  border-right: 1px solid var(--borde);
  transition: background 0.25s ease;
  white-space: nowrap;
}

.topbar-left .topbar-link:first-child {
  padding-left: 0;
}

.topbar-right .topbar-link:last-child,
.topbar-left .topbar-link:last-child {
  border-right: none;
}

.topbar-link:hover {
  background: rgba(255, 255, 255, 0.08);
}

.social-link {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--texto-claro);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.25s ease, transform 0.25s ease;
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

/* NAVBAR PRINCIPAL */
.navbar {
  background: var(--azul-menu);
  height: 84px;
  display: flex;
  align-items: center;
}

.navbar .contenedor {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding-left: 10px;
  padding-right: 30px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-box {
  width: 62px;
  height: 62px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.logo-texto {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-texto strong {
  color: var(--texto-menu);
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
}

.logo-texto span {
  color: var(--verde-acento);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
  flex-wrap: wrap;
}

.menu a {
  text-decoration: none;
  color: var(--texto-menu);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  transition: color 0.25s ease;
  position: relative;
}

.menu a:hover {
  color: var(--azul-topbar);
}

.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  background: var(--verde-acento);
  transition: width 0.25s ease;
}

.menu a:hover::after {
  width: 100%;
}

.topbar-right i {
  color: #ffc400;
  margin-right: 8px;
  font-size: 14px;
}

@media (max-width: 980px) {
  .navbar {
    height: auto;
    padding: 18px 0;
  }

  .navbar .contenedor {
    flex-direction: column;
    align-items: flex-start;
  }

  .menu {
    margin-left: 0;
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .topbar {
    height: auto;
    padding: 8px 0;
  }

  .topbar .contenedor {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-left,
  .topbar-right {
    width: 100%;
  }

  .topbar-link {
    line-height: 1.4;
    padding: 8px 12px 8px 0;
    border-right: none;
  }

  .logo-texto strong {
    font-size: 17px;
  }

  .menu {
    flex-direction: column;
    align-items: flex-start;
  }
}