/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}

/* Topbar general */
.topbar {
  width: 100%;
  display: flex;
  justify-content: center; /* centrado en escritorio */
  align-items: center;
  padding: 15px 80px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(4px);
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1000;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 10px; /* separa texto de redes */
}

.social-icons {
  display: flex;
  gap: 8px; /* separa los iconos entre sí */
}

.social-icons img {
  width: 30px;
  height: 30px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.social-icons img:hover {
  transform: scale(1.2);
}

.topbar-right {
  display: flex;
  align-items: center;
}

/* Botón hamburguesa oculto por defecto */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #000;
  border-radius: 2px;
}

.topbar span {
  margin-right: 10px;
}

/* Navbar fijo debajo del topbar */
.navbar {
  width: 100%;
  background-color: rgb(12 151 146 / 70%);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  padding: 0 80px;
  position: absolute;
  top: 60px;  /* debajo del topbar */
  left: 0;
  z-index: 999;
}

.navbar .logo img {
  width: 220px;
}

.navbar .menu {
  display: flex;
  align-items: center;
  gap: 25px;
}

.navbar .menu a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 500;
  transition: color 0.3s;
}

.navbar .menu a:hover {
  color: #ffd700;
}

.navbar .menu .brand {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: bold;
  color: #ffffff;
}

.navbar .menu .brand img {
  width: 20px;
  height: 20px;
}


.brand.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #25D366; /* color WhatsApp */
  font-weight: bold;
  text-decoration: none;
}

.brand.whatsapp-btn img {
  width: 20px;
  height: 20px;
}

.brand.whatsapp-btn:hover {
  color: #128C7E; /* verde más oscuro */
  transform: scale(1.05);
}

@media (max-width: 768px) {
  /* Navbar desaparece */
  .navbar {
    display: none;
  }

  /* Topbar centrado todo */
  .topbar {
    justify-content: center; /* centrado horizontal */
    flex-wrap: wrap;
    padding: 15px 20px;
    gap: 10px;
  }

  .topbar-left,
  .topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  /* Texto y redes en una fila */
  .topbar-left {
    justify-content: center;
    width: 100%;
    order: 1;
  }

  .social-icons {
    justify-content: center;
  }

  .social-icons img {
    width: 20px;
    height: 20px;
  }

  /* Botón WhatsApp centrado debajo o al lado según espacio */
  .topbar-right {
    justify-content: center;
    width: 100%;
    order: 2;
  }

  .topbar-right .brand.whatsapp-btn {
    font-size: 14px;
    padding: 4px 8px;
    gap: 5px;
  }

  .topbar-right .brand.whatsapp-btn img {
    width: 18px;
    height: 18px;
  }
}
