/* ===============================================
   SHARED HEADER STYLES - Used across all pages
   =============================================== */

@font-face {
  font-family: Golgols;
  src: url("../fonts/Golgols-Minimal-Logo-Font/Fonts/Golgols.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

/* Header container */
header {
  background-color: #171717;
  padding: 0.15rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0.125rem;
  position: relative;
  border-bottom: 1px solid #F0F0F0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  font-family: 'Open Sans', sans-serif;
}

/* Logo */
.logo-container {
  flex: 1;
  display: flex;
  align-items: center;
}

.logo-container .logo-image {
  max-height: 80px;
  max-width: 100%;
  object-fit: contain;
}

/* Hamburger menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 1rem;
  z-index: 11;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: #ffffff;
  margin: 3px 0;
  transition: 0.3s;
}

/* Navigation */
.header-container {
  position: relative;
  top: 35%;
  right: 1%;
  font-size: 1.2rem;
}

header nav ul,
.header-container ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0 1.5rem;
  padding: 0;
  align-items: center;
}

header nav ul li,
.header-container ul li {
  position: relative;
  display: flex;
  align-items: center;
}

header nav ul li a,
.header-container ul li a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 400;
  transition: color 0.3s ease;
  display: inline-block;
}

header nav ul li a:hover,
.header-container ul li a:hover {
  color: #007BFF;
}

/* Contáctenos highlighted button */
header nav ul li a.nav-contacto,
.header-container ul li a.nav-contacto {
  background-color: #FFD700 !important;
  color: #000 !important;
  padding: 8px 16px !important;
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(255, 215, 0, 0.25);
}

header nav ul li a.nav-contacto:hover,
.header-container ul li a.nav-contacto:hover {
  background-color: #FFC700 !important;
  color: #000 !important;
  box-shadow: 0 3px 10px rgba(255, 215, 0, 0.4);
  transform: translateY(-1px);
}

/* Dropdown menus */
header nav ul li:hover > ul.dropdown {
  display: block;
}

header nav ul .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 25%;
  transform: translateX(-50%);
  background-color: rgb(85, 84, 84);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0;
  list-style: none;
  border-radius: 0.5rem;
  overflow: hidden;
  z-index: 10;
  min-width: 160px;
}

header nav ul .dropdown li {
  padding: 0.5rem 1.5rem;
  transition: background-color 0.3s ease;
}

header nav ul .dropdown li:hover {
  background-color: #505050;
}

/* 2-Column Dropdown */
header nav ul li:hover > ul.dropdown.dropdown-2col {
  display: flex !important;
}

header nav ul .dropdown.dropdown-2col {
  display: none;
  position: absolute;
  top: 100%;
  left: 50% !important;
  transform: translateX(-50%) !important;
  margin: 0 !important;
  right: auto !important;
  width: auto;
  min-width: 380px;
  padding: 0;
  gap: 0;
  background-color: rgb(85, 84, 84);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 0.5rem;
  overflow: hidden;
  z-index: 10;
}

header nav ul .dropdown-col {
  display: flex;
  flex-direction: column;
  padding: 0.5rem 1.5rem;
  flex: 1;
}

header nav ul .dropdown-col a {
  display: block;
  padding: 0.5rem 0;
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 400;
}

header nav ul .dropdown-col a:hover {
  color: #FFD700;
}

header nav ul .dropdown-col.dropdown-divider {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

/* WhatsApp bubble */
.whatsapp-bubble {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  z-index: 999;
}

.whatsapp-bubble:hover {
  background-color: #1ebe57;
  transform: scale(1.1);
  transition: all 0.3s ease;
}

/* RESPONSIVE - Mobile styles */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  .menu-toggle {
    display: flex;
    position: absolute;
    right: 1rem;
    top: 1.25rem;
  }

  .header-container {
    width: 100%;
    top: 0;
    right: 0;
  }

  header nav ul,
  .header-container ul {
    flex-direction: column;
    width: 100%;
    display: none;
    background-color: #171717;
    padding: 1rem 0;
    margin: 0;
    gap: 0;
  }

  header nav ul.show,
  .header-container ul.show {
    display: flex;
  }

  header nav ul li,
  .header-container ul li {
    width: 100%;
    text-align: center;
    padding: 0.75rem 0;
  }

  header nav ul li a,
  .header-container ul li a {
    display: block;
    width: 100%;
  }

  header nav ul li a.nav-contacto,
  .header-container ul li a.nav-contacto {
    margin: 0 auto;
    display: inline-block;
    width: auto;
  }

  header nav ul .dropdown {
    position: static;
    transform: none;
    background-color: #2a2a2a;
    width: 100%;
    left: 0;
  }
}
