/* ==========================================================================
   ALEGRÍAS TOURS - HEADER & NAVIGATION (LIQUID GLASS FLOTANTE EDITORIAL)
   Diseño flotante translúcido y cristalino, sin tocar bordes de pantalla.
   ========================================================================== */

.site-header {
  position: fixed;
  top: 10px;
  left: 14px;
  right: 14px;
  max-width: var(--container-max-width, 1240px);
  margin: 0 auto;
  z-index: 1020;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border: 1.2px solid rgba(255, 255, 255, 0.85);
  border-radius: 20px;
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(0, 0, 0, 0.03), inset 0 1px 1.5px rgba(255, 255, 255, 0.95);
  transition: background var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth), transform var(--transition-smooth);
}

.site-header.scrolled,
.site-header.header-solid {
  background: rgba(255, 255, 255, 0.96);
  border: 1.2px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 12px 38px rgba(15, 23, 42, 0.12), 0 3px 8px rgba(0, 0, 0, 0.04);
}

/* Header Topbar Oficial */
.header-topbar {
  background: rgba(248, 250, 252, 0.95);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  border-top-left-radius: 19px;
  border-top-right-radius: 19px;
  font-size: 0.75rem;
  color: #475569;
  padding: 5px 0;
  line-height: 1.2;
}

.header-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.topbar-meta .meta-item strong {
  color: #0F172A;
  font-weight: 700;
}

.topbar-meta .meta-sep {
  opacity: 0.35;
  color: #94A3B8;
}

.meta-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #475569;
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.meta-link:hover {
  color: #0F172A;
}

.meta-icon {
  width: 13px;
  height: 13px;
}

.topbar-right {
  font-size: 0.72rem;
  color: #64748B;
  font-weight: 500;
  display: none;
}

@media (min-width: 768px) {
  .topbar-right {
    display: block;
  }
}

.header-main {
  height: 72px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Brand Logo */
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  z-index: 1010;
  padding: 4px 0;
}

.brand-logo {
  height: 56px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand-link:hover .brand-logo {
  transform: scale(1.04);
}

/* Desktop Navigation */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  position: relative;
  padding: 8px 0;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2.5px;
  background-color: #FFC700;
  border-radius: 2px;
  transition: width var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: #0F172A;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Botón Reservar en Navegación */
.nav-btn-reserve {
  background-color: #FFC700 !important;
  color: #0F172A !important;
  font-family: var(--font-heading) !important;
  font-weight: 800 !important;
  font-size: 0.875rem !important;
  padding: 8px 18px !important;
  border-radius: 9999px !important;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(255, 199, 0, 0.35);
  transition: transform 200ms ease, box-shadow 200ms ease, background-color 200ms ease !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-btn-reserve::after {
  display: none !important;
}

.nav-btn-reserve:hover {
  transform: translateY(-2px);
  background-color: #F5BC00 !important;
  box-shadow: 0 6px 18px rgba(255, 199, 0, 0.5);
  color: #0F172A !important;
}

/* Submenu / Dropdown en Desktop Nav */
.nav-item-dropdown {
  position: relative;
}

.nav-link-dropdown {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.dropdown-chevron {
  width: 13px;
  height: 13px;
  transition: transform 200ms ease;
}

.nav-item-dropdown:hover .dropdown-chevron,
.nav-item-dropdown:focus-within .dropdown-chevron {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 230px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
  padding: 8px 6px;
  list-style: none;
  margin: 6px 0 0 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms;
  pointer-events: none;
  z-index: 1050;
}

.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

.nav-item-dropdown:hover .nav-dropdown-menu,
.nav-item-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.dropdown-item {
  display: block;
  padding: 10px 16px;
  color: #334155;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 8px;
  transition: background var(--transition-fast), color var(--transition-fast);
  white-space: nowrap;
}

.dropdown-item:hover,
.dropdown-item.active {
  background: rgba(255, 199, 0, 0.18);
  color: #0F172A;
}

/* Header CTAs */

/* ==========================================================================
   HEADER ACTIONS & DUAL WHATSAPP BUTTONS (LÍNEA 1 & LÍNEA 2) - CERO SOLAPAMIENTOS
   ========================================================================== */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.header-btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #25D366;
  color: #FFFFFF !important;
  font-family: var(--font-heading, sans-serif);
  font-weight: 700;
  font-size: 0.8125rem;
  padding: 8px 13px;
  border-radius: 9999px;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
  box-shadow: 0 3px 10px rgba(37, 211, 102, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.header-btn-whatsapp:hover {
  transform: translateY(-1px);
  background-color: #1EBE5D;
  box-shadow: 0 5px 14px rgba(37, 211, 102, 0.4);
}

.header-btn-whatsapp.line2 {
  background-color: #059669 !important;
  box-shadow: 0 3px 10px rgba(5, 150, 105, 0.28);
}

.header-btn-whatsapp.line2:hover {
  background-color: #047857 !important;
  box-shadow: 0 5px 14px rgba(5, 150, 105, 0.4);
}

.header-btn-whatsapp .icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}


/* Mobile Menu Toggle Button */
.mobile-menu-btn {
  display: none;
  background: transparent;
  border: 1px solid rgba(15, 23, 42, 0.15);
  color: #0F172A;
  padding: 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  z-index: 1010;
  align-items: center;
  justify-content: center;
}

.mobile-menu-btn svg {
  width: 22px;
  height: 22px;
}

/* Fullscreen/Slide Mobile Overlay Navigation */
.mobile-nav-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1005;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--header-height) + 24px) 24px 36px;
  transform: translateY(-100%);
  transition: transform var(--transition-smooth);
  visibility: hidden;
}

.mobile-nav-panel.is-open {
  transform: translateY(0);
  visibility: visible;
}

.mobile-nav-panel .mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-nav-panel .nav-link {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: #0F172A;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  padding-bottom: 14px;
}

.mobile-nav-panel .nav-link:hover {
  color: #FFC700;
}

.mobile-nav-footer {
  display: flex;
  flex-direction: column;
  gap: 14px;
}


/* Laptop comfort spacing: evita colisión con PQR y mantiene 2 líneas */
@media (min-width: 992px) and (max-width: 1260px) {
  .desktop-nav {
    gap: 12px;
  }
  .nav-list {
    gap: 10px;
  }
  .nav-link {
    font-size: 0.82rem;
    padding: 6px 0;
  }
  .nav-btn-reserve {
    padding: 6px 12px !important;
    font-size: 0.78rem !important;
  }
  .header-actions {
    gap: 6px;
  }
  .header-btn-whatsapp {
    padding: 6px 9px;
    font-size: 0.73rem;
    gap: 4px;
  }
  .header-btn-whatsapp .icon {
    width: 13px;
    height: 13px;
  }
  .brand-logo {
    height: 46px;
    max-width: 140px;
  }
}

/* Breakpoint adjustments: Tablet y pantallas intermedias */
@media (max-width: 991px) {
  .desktop-nav {
    display: none;
  }
  .mobile-menu-btn {
    display: none;
  }
  .header-actions {
    display: flex;
    gap: 6px;
  }
  .header-btn-whatsapp {
    display: inline-flex;
    padding: 6px 10px;
    font-size: 0.75rem;
    gap: 4px;
  }
}

@media (max-width: 768px) {
  .site-header {
    top: 6px;
    left: 8px;
    right: 8px;
    border-radius: 16px;
  }
  .header-topbar {
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    padding: 3px 0;
    font-size: 0.68rem;
  }
  .header-topbar-inner {
    justify-content: center;
  }
  .topbar-meta {
    gap: 8px;
    flex-wrap: nowrap;
    justify-content: center;
  }
  .topbar-meta .meta-link {
    display: none;
  }
  .topbar-right {
    display: none;
  }
  .header-main {
    height: 56px;
  }
  .brand-logo {
    height: 36px;
    max-width: 120px;
  }
  .header-actions {
    gap: 5px;
  }
  .header-btn-whatsapp {
    padding: 5px 8px;
    font-size: 0.68rem;
    gap: 4px;
  }
  .header-btn-whatsapp .icon {
    width: 12px;
    height: 12px;
  }
}

@media (max-width: 420px) {
  .header-main {
    height: 52px;
  }
  .brand-logo {
    height: 32px;
    max-width: 105px;
  }
  .header-actions {
    gap: 4px;
  }
  .header-btn-whatsapp {
    padding: 4px 6px;
    font-size: 0.62rem;
    gap: 3px;
  }
  .header-btn-whatsapp .icon {
    width: 11px;
    height: 11px;
  }
}
/* Service Switcher Tabs (Asiento vs Bus Completo) */
.service-switcher {
  display: inline-flex;
  background: #FFFFFF;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 20px rgba(11, 27, 61, 0.05);
  margin-bottom: 28px;
  gap: 6px;
}
.service-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: #64748B;
  text-decoration: none;
  transition: all 0.2s ease;
}
.service-tab:hover {
  color: #0B1B3D;
  background: rgba(11, 27, 61, 0.04);
}
.service-tab.active {
  background: #0B1B3D;
  color: #FFC700;
  box-shadow: 0 4px 14px rgba(11, 27, 61, 0.15);
}



