/* css/navbar.css - Diucon Viajes Modern Header & Navbar */

/* Reglas generales de tipografía */
body {
  font-family: var(--font-sans);
}

h1, h2, h3 {
  font-family: var(--font-heading);
}

/* Header Navbar Wrapper */
.diucon-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  height: 64px;
  width: 100%;
  box-sizing: border-box;
}

/* Layout interno */
.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
}

/* LADO IZQUIERDO — Logo y Hamburguesa móvil */
.navbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

.navbar-logo-img {
  height: 32px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(20%) sepia(90%) saturate(4000%) hue-rotate(315deg) brightness(95%) contrast(105%); /* Color de marca Diucon #C8006A */
  transition: transform var(--transition-speed-fast, 0.15s) var(--transition-ease, cubic-bezier(0.25, 1, 0.5, 1));
}

.navbar-brand:hover .navbar-logo-img {
  transform: scale(1.02);
}

.navbar-hamburger {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  align-items: center;
  justify-content: center;
  color: #0A0A0A;
  border-radius: var(--radius-sm, 8px);
  transition: background var(--transition-speed-fast, 0.15s);
  line-height: 0;
}

.navbar-hamburger:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* CENTRO — Links de navegación */
.navbar-center {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar-center .nav-link {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}

.navbar-center .nav-link:hover {
  color: #0A0A0A;
}

.navbar-center .nav-link.active {
  color: #0A0A0A;
  font-weight: 600;
}

/* LADO DERECHO — Acciones */
.navbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Ícono carrito */
.navbar-cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: #374151;
  background: transparent;
  border: none;
  cursor: pointer;
  text-decoration: none;
  border-radius: var(--radius-pill, 9999px);
  transition: color 0.2s, background 0.2s;
  padding: 0;
  line-height: 0;
}

.navbar-cart-btn:hover {
  color: #0A0A0A;
  background: rgba(0, 0, 0, 0.04);
}

.navbar-cart-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

/* Badge de cantidad */
.navbar-cart-btn .cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #C8006A;
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  display: none; /* Controlado por cart.js */
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 0;
}

/* Botón "Mis Reservas" */
.navbar-reservas-btn {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: #0A0A0A;
  border: 1.5px solid #0A0A0A;
  border-radius: 999px;
  padding: 7px 18px;
  background: transparent;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition: all 0.2s;
  cursor: pointer;
  line-height: 1.2;
}

.navbar-reservas-btn:hover {
  background: #0A0A0A;
  color: #FFFFFF;
}

/* Mobile Drawer Overlay */
.navbar-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.navbar-drawer-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Mobile Drawer */
.navbar-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100vh;
  background: #FFFFFF;
  padding: 24px;
  box-sizing: border-box;
  z-index: 1050;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow-y: auto;
}

.navbar-drawer.open {
  transform: translateX(0);
}

.navbar-drawer-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.navbar-drawer-close {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0A0A0A;
  border-radius: var(--radius-sm, 8px);
  transition: background 0.15s;
  line-height: 0;
}

.navbar-drawer-close:hover {
  background: rgba(0, 0, 0, 0.05);
}

.navbar-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.navbar-drawer-nav .nav-link {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  transition: color 0.2s;
}

.navbar-drawer-nav .nav-link:hover,
.navbar-drawer-nav .nav-link.active {
  color: #0A0A0A;
  font-weight: 600;
}

body.navbar-drawer-open {
  overflow: hidden;
}

/* Mobile Responsive Styles (< 768px) */
@media (max-width: 767px) {
  .navbar-center {
    display: none !important;
  }

  .navbar-hamburger {
    display: inline-flex;
  }

  .navbar-container {
    padding: 0 16px;
  }
}
