/**
 * Header XTravel - Estilos nativos completos
 * Sin dependencias de CDN (Tailwind, Flowbite, etc.)
 * Totalmente responsivo y autosuficiente
 */

/* ===== VARIABLES CSS ===== */
:root {
  /* Paleta de colores de marca */
  --xh-brand-50: #fff1ec;
  --xh-brand-100: #ffe2d1;
  --xh-brand-500: #c24a53;
  --xh-brand-600: #a43d45;
  --xh-brand-700: #7d2f36;
  
  /* Paleta de colores extendida */
  --xh-orange-50: #fff7ed; --xh-orange-100: #ffedd5; --xh-orange-600: #ea580c;
  --xh-green-50: #f0fdf4; --xh-green-100: #dcfce7; --xh-green-500: #22c55e; --xh-green-600: #16a34a; --xh-green-700: #15803d;
  --xh-blue-50: #eff6ff; --xh-blue-100: #dbeafe; --xh-blue-500: #3b82f6; --xh-blue-600: #2563eb; --xh-blue-700: #1e40af;
  --xh-cyan-50: #ecfeff; --xh-cyan-100: #cffafe; --xh-cyan-600: #D88365;
  --xh-pink-50: #fdf2f8; --xh-pink-100: #fce7f3; --xh-pink-600: #db2777;
  --xh-yellow-50: #fefce8; --xh-yellow-100: #fef9c3; --xh-yellow-600: #E8B35F;
  --xh-gray-50: #f9fafb; --xh-gray-100: #f3f4f6; --xh-gray-200: #e5e7eb; --xh-gray-300: #d1d5db;
  --xh-gray-400: #9ca3af; --xh-gray-500: #6b7280; --xh-gray-600: #4b5563; --xh-gray-700: #374151; --xh-gray-800: #1f2937;
  --xh-purple-50: #faf5ff; --xh-purple-100: #f3e8ff; --xh-purple-600: #9333ea;
  --xh-red-50: #fef2f2; --xh-red-100: #fee2e2; --xh-red-600: #dc2626;
  --xh-amber-50: #fffbeb; --xh-amber-600: #d97706;
  --xh-emerald-600: #059669;
  --xh-fuchsia-600: #c026d3;
  --xh-slate-500: #64748b; --xh-slate-600: #475569; --xh-slate-700: #334155;
  
  /* Alturas del header */
  --xh-header-bar1: 60px;
  --xh-header-bar1-mobile: 50px;
  --xh-header-height-mobile: 60px;
  --xh-header-height: 110px;
  
  /* Z-index */
  --xth-dropdown-z: 70;
}

/* ===== ESTILOS ADICIONALES ===== */

/* Cart Button - Contador */
#xt-cart-btn .xt-count {
  display: none;
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: var(--xh-brand-600);
  color: white;
  border-radius: 9px;
  font-size: 10px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
}

#xt-cart-btn .xt-count:not(:empty) {
  display: block;
}

/* Language Selector */
.xth-lang-select {
  position: relative;
}

.xth-lang-dropdown {
  position: fixed;
  min-width: 110px;
  z-index: 10000;
  display: none;
}

.xth-lang-select details[open] .xth-lang-dropdown {
  display: block;
}

/* Header Button Active Effect */
.xtravel-header .header-actions button.active,
.xtravel-header .header-actions a.active {
  background-color: var(--xh-brand-100) !important;
  transform: scale(0.95);
  transition: all 0.15s ease;
}

/* Search Modal - Botones */
.bg-brand-600 {
  background-color: var(--xh-brand-600);
}

.bg-brand-700 {
  background-color: var(--xh-brand-700);
}

.hover\:bg-brand-700:hover {
  background-color: var(--xh-brand-700);
}

/* ===== RESET Y BASE ===== */
* { box-sizing: border-box; }

.xtravel-header { 
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  margin: 0 !important;
}

.xtravel-header *, .xtravel-header *::before, .xtravel-header *::after { box-sizing: border-box; }

/* ===== DISPLAY UTILITIES ===== */
.hidden { display: none; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.inline-block { display: inline-block; }
.block { display: block; }

/* Responsive Display Utilities */
@media (min-width: 640px) {
  .sm:flex { display: flex !important; }
  .sm:inline { display: inline !important; }
  .sm:hidden { display: none !important; }
  .sm:text-lg { font-size: 1.125rem; line-height: 1.75rem; }
  .sm:px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
}

@media (min-width: 768px) {
  .md:flex { display: flex !important; }
  .md:hidden { display: none !important; }
  .md:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
}

@media (min-width: 1024px) {
  .lg:flex { display: flex !important; }
  .lg:hidden { display: none !important; }
  .lg:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .lg:max-h-none { max-height: none; }
  .lg:overflow-visible { overflow: visible; }
}

/* ===== FLEXBOX & GRID ===== */
.flex-1 { flex: 1 1 0%; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-start { justify-content: flex-start; }
.gap-0\.5 { gap: 0.125rem; }
.gap-1 { gap: 0.25rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ===== SIZING ===== */
.w-full { width: 100%; }
.w-auto { width: auto; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-10 { width: 2.5rem; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-9 { height: 2.25rem; }
.h-10 { height: 2.5rem; }
.h-full { height: 100%; }
.min-w-0 { min-width: 0; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-screen-xl { max-width: 1280px; }

/* ===== PADDING ===== */
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-2\.5 { padding-left: 0.625rem; padding-right: 0.625rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-4 { padding-top: 1rem; }
.pt-5 { padding-top: 1.25rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pb-4 { padding-bottom: 1rem; }
.pb-6 { padding-bottom: 1.5rem; }
.pl-3 { padding-left: 0.75rem; }
.pr-10 { padding-right: 2.5rem; }
.pr-24 { padding-right: 6rem; }

/* ===== MARGIN ===== */
.mx-auto { margin-left: auto; margin-right: auto; }
.mx-2 { margin-left: 0.5rem; margin-right: 0.5rem; }
.ml-1 { margin-left: 0.25rem; }
.ml-2 { margin-left: 0.5rem; }
.ml-auto { margin-left: auto; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-auto { margin-top: auto; }
.mt-0\.5 { margin-top: 0.125rem; }

/* ===== POSITION ===== */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.top-0 { top: 0; }
.top-1\/2 { top: 50%; }
.top-3 { top: 0.75rem; }
.left-0 { left: 0; }
.left-3 { left: 0.75rem; }
.right-0 { right: 0; }
.right-1 { right: 0.25rem; }
.right-2 { right: 0.5rem; }
.-translate-y-1\/2 { transform: translateY(-50%); }

/* ===== Z-INDEX ===== */
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

/* ===== COLORS - TEXT ===== */
.text-white { color: #fff; }
/* Colores de texto para iconos y contenido - PALETA BRAND */
.text-blue-600 { color: var(--xh-brand-600) !important; }
.text-blue-700 { color: var(--xh-brand-700) !important; }
.text-orange-600 { color: var(--xh-orange-600) !important; }
.text-green-600 { color: var(--xh-green-600) !important; }
.text-cyan-600 { color: var(--xh-cyan-600) !important; }
.text-pink-600 { color: var(--xh-pink-600) !important; }
.text-yellow-600 { color: var(--xh-yellow-600) !important; }
.text-purple-600 { color: var(--xh-purple-600) !important; }
.text-red-600 { color: var(--xh-red-600) !important; }
.text-gray-400 { color: var(--xh-gray-400) !important; }
.text-gray-500 { color: var(--xh-gray-500) !important; }
.text-gray-600 { color: var(--xh-gray-600) !important; }
.text-gray-700 { color: var(--xh-gray-700) !important; }
.text-gray-800 { color: var(--xh-gray-800) !important; }
.text-slate-500 { color: var(--xh-slate-500) !important; }
.text-slate-600 { color: var(--xh-slate-600) !important; }
.text-slate-700 { color: var(--xh-slate-700) !important; }
.text-green-600 { color: var(--xh-green-600); }
.text-red-600 { color: var(--xh-red-600); }
.text-amber-600 { color: var(--xh-amber-600); }
.text-pink-600 { color: var(--xh-pink-600); }
.text-fuchsia-600 { color: var(--xh-fuchsia-600); }
.text-emerald-600 { color: var(--xh-emerald-600); }
.text-orange-600 { color: var(--xh-orange-600); }
.text-cyan-600 { color: var(--xh-cyan-600); }
.text-purple-600 { color: var(--xh-purple-600); }

/* ===== COLORS - BACKGROUND ===== */
.bg-white { background-color: #fff; }
.bg-gray-50 { background-color: var(--xh-gray-50); }
.bg-gray-100 { background-color: var(--xh-gray-100); }
.bg-blue-50 { background-color: var(--xh-brand-50); }
.bg-blue-100 { background-color: var(--xh-brand-100); }
.bg-blue-600 { background-color: var(--xh-brand-600); }
.bg-green-50 { background-color: var(--xh-green-50); }
.bg-green-500 { background-color: var(--xh-green-500); }
.bg-green-600 { background-color: var(--xh-green-600); }
.bg-red-50 { background-color: var(--xh-red-50); }
.bg-amber-50 { background-color: var(--xh-amber-50); }

/* ===== BORDER ===== */
.border { border-width: 1px; border-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-gray-100 { border-color: var(--xh-gray-100); }
.border-gray-200 { border-color: var(--xh-gray-200); }
.border-gray-300 { border-color: var(--xh-gray-300); }
.divide-y > * + * { border-top: 1px solid var(--xh-gray-100); }
.divide-gray-100 > * + * { border-color: var(--xh-gray-100); }

/* ===== BORDER RADIUS ===== */
.rounded { border-radius: 0.25rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-full { border-radius: 9999px; }
.rounded-t-xl { border-top-left-radius: 0.75rem; border-top-right-radius: 0.75rem; }

/* ===== SHADOW ===== */
.shadow { box-shadow: 0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1); }

/* ===== TYPOGRAPHY ===== */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-\[10px\] { font-size: 10px; line-height: 1.2; }
.text-\[11px\] { font-size: 11px; line-height: 1.3; }
.text-\[12px\] { font-size: 12px; line-height: 1.3; }
.text-\[13px\] { font-size: 13px; line-height: 1.4; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.uppercase { text-transform: uppercase; }
.tracking-tight { letter-spacing: -0.025em; }
.leading-none { line-height: 1; }
.leading-tight { line-height: 1.25; }
.leading-snug { line-height: 1.375; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.whitespace-nowrap { white-space: nowrap; }
.break-all { word-break: break-all; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ===== OVERFLOW ===== */
.overflow-hidden { overflow: hidden; }
.overflow-visible { overflow: visible; }
.overflow-auto { overflow: auto; }
.overflow-y-auto { overflow-y: auto; }

/* ===== TRANSITIONS ===== */
.transition { transition: color 150ms, background-color 150ms, border-color 150ms; }
.transition-all { transition: all 150ms; }
.transition-colors { transition: color 150ms, background-color 150ms, border-color 150ms; }
.transition-shadow { transition: box-shadow 150ms; }
.duration-300 { transition-duration: 300ms; }

/* ===== HOVER STATES ===== */
.hover\:bg-white:hover { background-color: #fff; }
.hover\:bg-gray-50:hover { background-color: var(--xh-gray-50); }
.hover\:bg-blue-600:hover { background-color: var(--xh-brand-600); }
.hover\:bg-blue-700:hover { background-color: var(--xh-brand-700); }
.hover\:bg-green-600:hover { background-color: var(--xh-green-600); }
.hover\:bg-green-700:hover { background-color: var(--xh-green-700); }
.hover\:text-white:hover { color: #fff; }
.hover\:text-gray-700:hover { color: var(--xh-gray-700) !important; }
.hover\:text-blue-600:hover { color: var(--xh-brand-600) !important; }
.hover\:text-blue-700:hover { color: var(--xh-brand-700) !important; }
.hover\:text-white:hover { color: #fff !important; }
.hover\:shadow-md:hover { box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1); }
.hover\:shadow-lg:hover { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1); }
.hover\:underline:hover { text-decoration: underline; }

/* ===== FOCUS STATES ===== */
.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:ring-1:focus { box-shadow: 0 0 0 1px var(--xh-brand-500); }
.focus\:ring-2:focus { box-shadow: 0 0 0 2px var(--xh-brand-500); }
.focus\:ring-blue-500:focus { box-shadow: 0 0 0 2px var(--xh-brand-500); }
.focus\:border-blue-500:focus { border-color: var(--xh-brand-500); }

/* ===== MISC ===== */
.cursor-pointer { cursor: pointer; }
.select-none { user-select: none; }
.pointer-events-none { pointer-events: none; }
.pointer-events-auto { pointer-events: auto; }
.shrink-0 { flex-shrink: 0; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }

/* ===== ANIMACIONES ===== */
@keyframes spin { to { transform: rotate(360deg); } }
.animate-spin { animation: spin 1s linear infinite; }

/* ===== PADDING DEL BODY PARA HEADER FIJO ===== */
body.has-xtravel-fixed-header { padding-top: var(--xh-header-height-mobile); }

/* ===== COMPONENTES DEL HEADER ===== */

/* Iconos SVG - Base Corregido */
.xtravel-header svg {
  display: inline-block;
  vertical-align: middle;
  fill: currentColor;
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
}

/* Contenedores de iconos con clases específicas */
.xtravel-header .xth-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Tamaños de iconos - aplicar al contenedor */
.xtravel-header .w-4 { width: 1rem; height: 1rem; }
.xtravel-header .h-4 { width: 1rem; height: 1rem; }
.xtravel-header .w-5 { width: 1.25rem; height: 1.25rem; }
.xtravel-header .h-5 { width: 1.25rem; height: 1.25rem; }
.xtravel-header .w-10 { width: 2.5rem; height: 2.5rem; }
.xtravel-header .h-10 { width: 2.5rem; height: 2.5rem; }

/* SVG dentro de contenedores con tamaño */
.xtravel-header .w-4 svg,
.xtravel-header .h-4 svg { width: 1rem; height: 1rem; }
.xtravel-header .w-5 svg,
.xtravel-header .h-5 svg { width: 1.25rem; height: 1.25rem; }
.xtravel-header .w-10 svg,
.xtravel-header .h-10 svg { width: 2.5rem; height: 2.5rem; }

/* Iconos en botones - no aplastados */
.xtravel-header button svg,
.xtravel-header a.btn svg,
.xtravel-header .xth-btn svg {
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
}

/* Iconos de navegación */
.xtravel-header .nav-link svg {
  width: 1rem;
  height: 1rem;
  margin-right: 0.375rem;
}

/* Iconos dropdown/chevron */
.xtravel-header .dropdown-toggle svg,
.xtravel-header .submenu-toggle svg {
  width: 0.875rem;
  height: 0.875rem;
  transition: transform 200ms ease;
}

.xtravel-header .dropdown-toggle.active svg,
.xtravel-header .submenu-toggle.active svg {
  transform: rotate(180deg);
}

/* Iconos de cierre grandes */
.xtravel-header .close-modal svg,
.xtravel-header .close-search svg,
.xtravel-header .close-menu svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* Iconos en inputs/formularios */
.xtravel-header .input-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--xh-gray-400);
  pointer-events: none;
}

.xtravel-header .input-icon svg {
  width: 1.125rem;
  height: 1.125rem;
}

/* Prevenir deformación en flex/grid */
.xtravel-header .flex svg,
.xtravel-header .inline-flex svg,
.xtravel-header .grid svg {
  flex-shrink: 0;
}

/* Logo y título */
.xtravel-header .nav-logo {
  height: 2.5rem;
  width: auto;
  object-fit: contain;
}

/* Navigation Bars */
.xtravel-header .primary-nav {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  background-color: #fff;
  border-bottom: 1px solid var(--xh-gray-100);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  width: 100%;
}

.xtravel-header .xth-secondary-fixed {
  display: none;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  background-color: var(--xh-gray-50);
  border-bottom: 1px solid var(--xh-gray-200);
  top: var(--xh-header-bar1-mobile);
}

/* Search Input - Corregido */
.xtravel-header #search-input {
  height: 2.25rem;
  padding: 0.5rem 2.5rem 0.5rem 0.75rem;
  border: 1px solid var(--xh-gray-300);
  border-radius: 0.375rem;
  font-size: 0.875rem;
  width: 100%;
  background-color: #fff;
  transition: all 150ms;
}

.xtravel-header #search-input:focus {
  outline: none;
  border-color: var(--xh-brand-500);
  box-shadow: 0 0 0 1px var(--xh-brand-500);
}

/* Search Button - Corregido */
.xtravel-header #search-btn {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
  color: var(--xh-brand-600);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 150ms;
}

.xtravel-header #search-btn:hover {
  color: var(--xh-brand-700);
}

.xtravel-header #search-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Header Actions - Corregido */
.xtravel-header .header-actions {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  flex-shrink: 0;
}

.xtravel-header .header-actions button,
.xtravel-header .header-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 2.25rem;
  padding: 0 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 150ms ease;
  border: none;
  cursor: pointer;
  color: var(--xh-brand-600) !important;
  background-color: var(--xh-brand-50);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Iconos dentro de botones de acción mantienen color */
.xtravel-header .header-actions button svg,
.xtravel-header .header-actions a svg {
  color: currentColor;
  fill: currentColor;
}

.xtravel-header .header-actions button svg,
.xtravel-header .header-actions a svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

/* Botón de búsqueda móvil (oculto en lg con lg:hidden) */
#btn-busqueda {
  padding: 0 0.625rem;
}

#btn-busqueda svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Botón de contacto (visible siempre, texto desde sm:inline) */
#btn-contacto {
  min-width: 2.25rem;
}

#btn-contacto .xth-label {
  white-space: nowrap;
}

#btn-contacto:hover {
  background-color: var(--xh-brand-600);
  color: white;
}

#btn-contacto svg {
  width: 1rem;
  height: 1rem;
  color: currentColor !important;
  fill: currentColor !important;
}

#btn-contacto:hover {
  background-color: var(--xh-brand-600) !important;
  color: #fff !important;
}

#btn-contacto:hover svg {
  color: #fff !important;
  fill: #fff !important;
}

#btn-contacto .xth-label {
  color: inherit;
  font-weight: 600;
}

/* Hover state para botones de acción */
.xtravel-header .header-actions button:hover,
.xtravel-header .header-actions a:hover {
  background-color: var(--xh-brand-600);
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(164, 61, 69, 0.3);
}

.xtravel-header .header-actions button:hover svg,
.xtravel-header .header-actions a:hover svg {
  color: #fff;
  fill: #fff;
}

.xtravel-header .header-actions button:active,
.xtravel-header .header-actions button.active,
.xtravel-header .header-actions a:active,
.xtravel-header .header-actions a.active {
  background-color: var(--xh-brand-700) !important;
  color: #fff !important;
  transform: scale(0.98);
}

/* Cart Button - Corregido */
#xt-cart-btn {
  position: relative;
  padding: 0 0.625rem;
}

#xt-cart-btn svg {
  width: 1rem;
  height: 1rem;
}

#xt-cart-btn .xt-count {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  background-color: var(--xh-red-600);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  padding: 0.125rem 0.375rem;
  border-radius: 9999px;
  line-height: 1;
  min-width: 1.25rem;
  text-align: center;
  display: none;
}

#xt-cart-btn .xt-count:not(:empty) {
  display: block;
  animation: badgePulse 0.3s ease-in-out;
}

@keyframes badgePulse {
  0% { transform: scale(0.8); opacity: 0; }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

/* Mobile Menu Toggle - Corregido */
.xtravel-header .icon-open,
.xtravel-header .icon-close {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 150ms;
}

.xtravel-header .icon-close {
  display: none;
}

.xtravel-header .icon-open svg,
.xtravel-header .icon-close svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Cuando el menú móvil está activo */
.xtravel-header [aria-expanded="true"] .icon-open {
  display: none;
}

.xtravel-header [aria-expanded="true"] .icon-close {
  display: flex;
}

/* Main Navigation List - Corregido */
.xtravel-header .main-nav-list {
  display: flex;
  gap: 0.125rem;
  font-weight: 500;
  margin: 0;
  padding: 0;
  align-items: center;
}

.xtravel-header .nav-item {
  position: relative;
  flex-shrink: 0;
}

.xtravel-header .nav-item button,
.xtravel-header .nav-item > a {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  transition: all 150ms ease;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  color: var(--xh-gray-700);
  text-decoration: none;
  white-space: nowrap;
  font-family: inherit;
  line-height: 1.4;
  font-weight: 500;
}

.xtravel-header .nav-item button svg,
.xtravel-header .nav-item > a svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  /* Los iconos mantienen su color heredado de las clases text-{color}-600 */
}

/* Asegurar que los iconos con clases de color mantengan su color */
.xtravel-header .nav-item button svg[class*="text-"],
.xtravel-header .nav-item > a svg[class*="text-"] {
  color: inherit;
}

.xtravel-header .nav-item button:hover,
.xtravel-header .nav-item > a:hover {
  background-color: #fff;
  color: var(--xh-brand-700);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* El icono mantiene su color en hover */
.xtravel-header .nav-item button:hover svg,
.xtravel-header .nav-item > a:hover svg {
  transform: scale(1.05);
}

.xtravel-header .nav-item button:focus,
.xtravel-header .nav-item > a:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--xh-brand-500);
  background-color: var(--xh-brand-50);
}

/* Labels de categoría */
.xtravel-header .cat-label {
  font-weight: 500;
  color: var(--xh-gray-700);
}

.xtravel-header .nav-item:hover .cat-label {
  color: var(--xh-brand-700);
}

/* Chevron icon en botones de menú */
.xtravel-header .nav-item button svg:last-child {
  width: 0.75rem;
  height: 0.75rem;
  opacity: 0.6;
  transition: transform 150ms;
  color: var(--xh-gray-400);
}

.xtravel-header .nav-item button[aria-expanded="true"] svg:last-child {
  transform: rotate(180deg);
}

/* Dropdown - Corregido y Mejorado */
.xtravel-header .xth-dropdown {
  display: none;
  position: fixed;
  background-color: #fff;
  border-radius: 0.375rem;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  border: 1px solid var(--xh-gray-100);
  border-left-width: 4px;
  border-left-style: solid;
  border-left-color: var(--xh-brand-600);
  overflow: visible;
  z-index: var(--xth-dropdown-z);
  min-width: 560px;
  max-width: min(900px, 96vw);
}

.xtravel-header .xth-dropdown.is-open {
  display: block;
}

.xtravel-header .xth-dropdown ul {
  padding: 0.25rem;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  max-height: 60vh;
  overflow: auto;
}

.xtravel-header .xth-dropdown a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 0.875rem;
  border-radius: 0.375rem;
  transition: all 150ms ease;
  text-decoration: none !important;
  color: var(--xh-gray-700);
  font-size: 0.875rem;
  line-height: 1.4;
}

.xtravel-header .xth-dropdown a:hover {
  background-color: var(--xh-brand-50);
  color: var(--xh-brand-700);
  text-decoration: none !important;
  transform: translateX(2px);
}

.xtravel-header .xth-dropdown a:focus {
  outline: 2px solid var(--xh-brand-500);
  outline-offset: 1px;
  background-color: var(--xh-brand-50);
  color: var(--xh-brand-700);
  text-decoration: none !important;
}

.xtravel-header .xth-dropdown a:active {
  background-color: var(--xh-brand-100);
  color: var(--xh-brand-700);
  text-decoration: none !important;
}

.xtravel-header .xth-dropdown a svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  transition: transform 180ms ease;
  color: var(--xh-gray-500);
}

.xtravel-header .xth-dropdown a:hover svg {
  transform: translateX(2px);
  color: var(--xh-brand-600);
}

/* Text en dropdown */
.xtravel-header .xth-dropdown a span {
  flex: 1;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  word-wrap: break-word;
}

/* En desktop permitir más espacio */
@media (min-width: 1024px) {
  .xtravel-header .xth-dropdown a span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* Subgroup titles */
.xtravel-header .xth-dropdown .text-\[11px\] {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--xh-gray-500);
  padding: 0.5rem 0.75rem 0.25rem;
  display: block;
}

/* Separador entre items */
.xtravel-header .xth-dropdown li + li a {
  border-top: 1px solid rgba(229, 231, 235, 0.28);
}

/* Dropdown Color Borders */
.xtravel-header .xth-dropdown.border-orange-100 { border-left-color: var(--xh-orange-600); }
.xtravel-header .xth-dropdown.border-green-100 { border-left-color: var(--xh-green-600); }
.xtravel-header .xth-dropdown.border-blue-100 { border-left-color: var(--xh-blue-600); }
.xtravel-header .xth-dropdown.border-cyan-100 { border-left-color: var(--xh-cyan-600); }
.xtravel-header .xth-dropdown.border-pink-100 { border-left-color: var(--xh-pink-600); }
.xtravel-header .xth-dropdown.border-yellow-100 { border-left-color: var(--xh-yellow-600); }
.xtravel-header .xth-dropdown.border-gray-100 { border-left-color: var(--xh-gray-600); }
.xtravel-header .xth-dropdown.border-purple-100 { border-left-color: var(--xh-purple-600); }
.xtravel-header .xth-dropdown.border-red-100 { border-left-color: var(--xh-red-600); }

/* Mobile Menu - Corregido */
.xtravel-header #navbar-mobile-flat {
  margin-top: 0.5rem;
  width: 100%;
}

.xtravel-header #navbar-mobile-flat ul {
  margin: 0;
  padding: 0;
}

.xtravel-header #navbar-mobile-flat > ul {
  background-color: #fff;
  border-radius: 0.375rem;
  border: 1px solid var(--xh-gray-200);
  overflow: hidden;
}

.xtravel-header #navbar-mobile-flat > ul > li {
  border-bottom: 1px solid var(--xh-gray-100);
}

.xtravel-header #navbar-mobile-flat > ul > li:last-child {
  border-bottom: none;
}

.xtravel-header #navbar-mobile-flat button {
  width: 100%;
  text-align: left;
  padding: 0.75rem;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--xh-gray-800);
  font-family: inherit;
  transition: background-color 150ms;
}

.xtravel-header #navbar-mobile-flat button:hover {
  background-color: var(--xh-gray-50);
}

.xtravel-header #navbar-mobile-flat button svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.xtravel-header #navbar-mobile-flat button svg:last-child {
  margin-left: auto;
  width: 1rem;
  height: 1rem;
  opacity: 0.6;
  transition: transform 150ms;
}

.xtravel-header #navbar-mobile-flat button[aria-expanded="true"] svg:last-child {
  transform: rotate(180deg);
}

.xtravel-header #navbar-mobile-flat a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  text-decoration: none;
  color: var(--xh-gray-700);
  transition: background-color 150ms;
  font-size: 0.875rem;
}

.xtravel-header #navbar-mobile-flat a:hover {
  background-color: var(--xh-gray-50);
}

.xtravel-header #navbar-mobile-flat a svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

/* Submenú colapsable en móvil */
.xtravel-header #navbar-mobile-flat ul ul {
  background-color: var(--xh-gray-50);
  padding: 0.25rem 0;
}

.xtravel-header #navbar-mobile-flat ul ul.hidden {
  display: none;
}

/* Badges */
.xtravel-header .inline-flex.items-center.rounded {
  display: inline-flex;
  align-items: center;
  border-radius: 0.25rem;
}

/* Modales */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 40;
}

.xth-search-wrapper,
.xth-contact-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  padding: 1rem;
  overflow-y: auto;
}

.xth-search-modal,
.modal-card {
  max-height: 90vh;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(10px);
}

.modal-header {
  background: linear-gradient(to bottom, rgba(255,255,255,0.95), rgba(255,255,255,0.9));
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: 1rem 1.25rem;
}

.modal-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--xh-gray-900);
  letter-spacing: -0.01em;
}

.modal-close {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  transition: all 200ms;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--xh-gray-500);
  background: transparent;
  border: none;
  cursor: pointer;
}

.modal-close:hover {
  background-color: var(--xh-gray-100);
  color: var(--xh-gray-700);
  transform: rotate(90deg);
}

/* Search Grid */
.xth-search-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: 1rem;
  margin: 0;
}

.xth-card {
  border: 1px solid var(--xh-gray-100);
  border-radius: 0.875rem;
  overflow: hidden;
  background-color: #fff;
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

.xth-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
  transform: translateY(-2px);
  border-color: var(--xh-brand-200);
}

.xth-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.xth-card-media {
  position: relative;
  height: 120px;
  overflow: hidden;
}

.xth-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.xth-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  letter-spacing: 0.02em;
}

.xth-badge-tour {
  background-color: rgba(255, 241, 236, 0.95);
  color: var(--xh-brand-600);
}

.xth-badge-page {
  background-color: rgba(239, 246, 255, 0.95);
  color: var(--xh-blue-700);
}

.xth-card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.xth-card-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--xh-gray-800);
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.xth-card-excerpt {
  font-size: 0.75rem;
  color: var(--xh-gray-600);
  margin-bottom: 0.5rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.xth-view-more {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  color: #fff !important;
  padding: 0.5rem 1rem !important;
  border-radius: 9999px !important;
  background: #a43d45 !important;
  background-color: #a43d45 !important;
  border: 1px solid #a43d45 !important;
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1) !important;
  margin-top: auto !important;
  box-shadow: 0 2px 6px rgba(164, 61, 69, 0.2) !important;
}

.xth-view-more:hover {
  background: linear-gradient(135deg, #a43d45 0%, #7d2f36 100%) !important;
  background-color: #7d2f36 !important;
  color: #fff !important;
  border-color: #7d2f36 !important;
  transform: translateX(2px) scale(1.03) !important;
  box-shadow: 0 4px 10px rgba(164, 61, 69, 0.35) !important;
}

.xth-view-more svg {
  transition: transform 250ms !important;
}

.xth-view-more:hover svg {
  transform: translateX(3px) !important;
}

/* Form Inputs */
.xtravel-input-wrap,
.xtravel-textarea-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.xtravel-input-wrap svg,
.xtravel-textarea-wrap svg {
  position: absolute;
  left: 0.875rem;
  width: 1.125rem;
  height: 1.125rem;
  color: var(--xh-gray-400);
  pointer-events: none;
  transition: color 200ms;
}

.xtravel-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  border: 1px solid var(--xh-gray-200);
  border-radius: 0.625rem;
  font-size: 0.875rem;
  background-color: var(--xh-gray-50);
  transition: all 200ms;
}

.xtravel-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  padding-left: 2.75rem;
  border: 1px solid var(--xh-gray-200);
  border-radius: 0.625rem;
  font-size: 0.875rem;
  background-color: var(--xh-gray-50);
  resize: vertical;
  font-family: inherit;
  transition: all 200ms;
  min-height: 5rem;
}

.xtravel-input:focus,
.xtravel-textarea:focus {
  outline: none;
  border-color: var(--xh-brand-500);
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(164, 61, 69, 0.08);
}

.xtravel-input:focus + svg,
.xtravel-textarea:focus ~ svg {
  color: var(--xh-brand-500);
}

.xtravel-input-wrap:has(input:focus) svg,
.xtravel-textarea-wrap:has(textarea:focus) svg {
  color: var(--xh-brand-500);
}

/* Contact Options Button */
.contact-option-btn {
  padding: 1.25rem;
  border: 1px solid var(--xh-gray-100);
  border-radius: 0.75rem;
  background-color: #fff;
  cursor: pointer;
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
  width: 100%;
  font-family: inherit;
  font-size: 0.875rem;
  color: var(--xh-gray-800);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

.contact-option-btn:hover {
  border-color: var(--xh-brand-400);
  background-color: var(--xh-brand-50);
  transform: translateY(-3px);
  box-shadow: 0 10px 15px -3px rgba(164, 61, 69, 0.12), 0 4px 6px -2px rgba(164, 61, 69, 0.08);
}

.contact-option-btn:active {
  transform: translateY(-1px);
}

/* Sections de contacto */
.contact-section {
  padding: 1.25rem;
  display: block;
}

.contact-section.hidden {
  display: none !important;
}

/* Form de WhatsApp */
#xtravel-whatsapp-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Botón verde de WhatsApp */
.xtravel-btn-green {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.875rem 1.5rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, var(--xh-green-600) 0%, var(--xh-green-700) 100%);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
  letter-spacing: 0.01em;
}

.xtravel-btn-green:hover {
  background: linear-gradient(135deg, var(--xh-green-700) 0%, var(--xh-green-600) 100%);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 20px rgba(22, 163, 74, 0.4);
}

.xtravel-btn-green:active {
  transform: translateY(0) scale(0.98);
}

.xtravel-btn-green.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.xtravel-btn-green svg {
  width: 1.25rem;
  height: 1.25rem;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}

/* Modal de contacto específico */
#modal-contacto .modal-card {
  max-width: 32rem;
}

/* Botones de navegación en modal contacto */
#modal-contacto button[id^="btn-"] {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  color: var(--xh-gray-500);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 150ms;
  font-family: inherit;
}

#modal-contacto button[id^="btn-"]:hover {
  color: var(--xh-gray-700);
  text-decoration: underline;
}

#modal-contacto button[id^="btn-"] svg {
  width: 0.75rem;
  height: 0.75rem;
}

/* Título de sección en contacto */
#modal-contacto h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--xh-gray-800);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#modal-contacto h4 svg {
  width: 1.125rem;
  height: 1.125rem;
}

/* Grid de opciones sociales */
#contact-social-wrapper .grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (min-width: 640px) {
  #contact-social-wrapper .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Links de redes sociales */
#contact-social-wrapper .contact-option-btn {
  padding: 0.75rem;
  text-decoration: none;
  color: var(--xh-gray-800);
}

#contact-social-wrapper .contact-option-btn span:first-child {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}

#contact-social-wrapper .contact-option-btn span:last-child {
  font-size: 0.625rem;
  color: var(--xh-gray-500);
  line-height: 1.2;
  word-break: break-all;
  margin-top: 0.25rem;
  display: block;
}

/* Formulario de contacto */
#xtravel-contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

#xtravel-contact-form .grid {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  #xtravel-contact-form .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  #xtravel-contact-form .sm\:col-span-1 {
    grid-column: span 1 / span 1;
  }
}

/* Checkbox de términos */
#xtravel-contact-form label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.6875rem;
  color: var(--xh-gray-600);
  line-height: 1.4;
}

#xtravel-contact-form input[type="checkbox"] {
  margin-top: 0.125rem;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: var(--xh-brand-600);
}

/* Botón de envío del formulario */
#xtravel-contact-form button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  background-color: var(--xh-brand-600);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 150ms;
  font-family: inherit;
}

#xtravel-contact-form button[type="submit"]:hover {
  background-color: var(--xh-brand-700);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(164, 61, 69, 0.3);
}

#xtravel-contact-form button[type="submit"]:active {
  transform: translateY(0);
}

#xtravel-contact-form button[type="submit"] svg {
  width: 1rem;
  height: 1rem;
}

/* Status del formulario */
#contact-form-status {
  font-size: 0.6875rem;
  padding-top: 0.25rem;
  min-height: 1.25rem;
}

#contact-form-status .text-green-600 {
  color: var(--xh-green-600);
  font-weight: 500;
}

#contact-form-status .text-red-600 {
  color: var(--xh-red-600);
  font-weight: 500;
}

/* Language Selector - Corregido */
.xth-lang-select {
  position: relative;
}

.xth-lang-select details {
  position: relative;
}

.xth-lang-select summary {
  cursor: pointer;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 2.25rem;
  padding: 0 0.625rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--xh-gray-200);
  background-color: #fff;
  transition: background-color 150ms;
  color: var(--xh-slate-700);
}

.xth-lang-select summary::-webkit-details-marker {
  display: none;
}

.xth-lang-select summary svg {
  width: 1.25rem;
  height: auto;
  flex-shrink: 0;
}

.xth-lang-select summary span {
  line-height: 1;
  font-weight: 600;
}

.xth-lang-select summary:hover {
  background-color: var(--xh-gray-50);
}

.xth-lang-select details[open] summary {
  background-color: var(--xh-gray-50);
  border-color: var(--xh-brand-500);
}

.xth-lang-select ul {
  position: fixed;
  background-color: #fff;
  border: 1px solid var(--xh-gray-200);
  border-radius: 0.375rem;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  padding: 0.25rem;
  margin: 0;
  min-width: 110px;
  z-index: 10000;
  display: none;
}

.xth-lang-select details[open] ul {
  display: block;
}

.xth-lang-select a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  color: var(--xh-slate-700);
  text-decoration: none;
  border-radius: 0.25rem;
  transition: background-color 150ms;
  white-space: nowrap;
}

.xth-lang-select a svg {
  width: 1rem;
  height: auto;
  flex-shrink: 0;
}

.xth-lang-select a:hover {
  background-color: var(--xh-gray-50);
}

/* Spinner */
.xth-spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid var(--xh-gray-300);
  border-top-color: var(--xh-brand-600);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* ===== RESPONSIVE MEDIA QUERIES ===== */
/* ===== RESPONSIVE MEDIA QUERIES ===== */

/* Small screens (640px+) - TABLET */
@media (min-width: 640px) {
  .sm\:flex { display: flex; }
  .sm\:hidden { display: none; }
  .sm\:block { display: block; }
  .sm\:inline-flex { display: inline-flex; }
  .sm\:gap-2 { gap: 0.5rem; }
  .sm\:px-4 { padding-left: 1rem; padding-right: 1rem; }
  .sm\:text-lg { font-size: 1.125rem; }
  .sm\:col-span-1 { grid-column: span 1 / span 1; }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sm\:p-4 { padding: 1rem; }
  .sm\:flex-row { flex-direction: row; }
}

/* Medium screens (768px+) - DESKTOP START */
@media (min-width: 768px) {
  body.has-xtravel-fixed-header { padding-top: var(--xh-header-height); }
  
  .md\:flex { display: flex; }
  .md\:hidden { display: none; }
  .md\:block { display: block; }
  .md\:inline-flex { display: inline-flex; }
  .md\:gap-3 { gap: 0.75rem; }
  .md\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .md\:text-xl { font-size: 1.25rem; }
  .md\:max-w-md { max-width: 28rem; }
  
  .xtravel-header .xth-secondary-fixed {
    display: block;
    top: var(--xh-header-bar1);
  }
}

/* Large screens (1024px+) - FULL DESKTOP */
@media (min-width: 1024px) {
  .lg\:flex { display: flex !important; }
  .lg\:hidden { display: none !important; }
  .lg\:block { display: block; }
  .lg\:inline-flex { display: inline-flex; }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .lg\:max-w-5xl { max-width: 64rem; }
  .lg\:max-h-none { max-height: none; }
  .lg\:overflow-visible { overflow: visible; }
  
  .xth-search-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  
  .xtravel-header .xth-dropdown ul {
    max-height: none;
    overflow: visible;
  }
  
  body.has-xtravel-fixed-header main > *:first-child { margin-top: 0 !important; }
  body.has-xtravel-fixed-header main,
  body.has-xtravel-fixed-header #content,
  body.has-xtravel-fixed-header .site-content { margin-top: 0 !important; }
  
  /* Asegurar navegación desktop visible */
  .xtravel-header #navbar-main {
    display: flex !important;
  }
  
  .xtravel-header .main-nav-list {
    display: flex !important;
    flex-wrap: wrap;
  }
}

/* ===== UTILITY OVERRIDES ===== */
.xtravel-header .max-h-\[60vh\] { max-height: 60vh; }
.xtravel-header .max-h-\[70vh\] { max-height: 70vh; }

/* Portal Root */
#xth-portal-root {
  position: static;
  z-index: var(--xth-dropdown-z);
}

/* ===== AJUSTES FINALES ===== */
.xtravel-header .primary-nav,
.xtravel-header .xth-secondary-fixed { box-shadow: none; }

/* Eliminar subrayado de todos los enlaces */
.xtravel-header a { text-decoration: none; }
.xtravel-header a:hover { text-decoration: none; }

/* Asegurar que el header no colapse márgenes */
.xtravel-header { margin: 0 !important; }

/* State class cuando JS está cargado */
body.xth-js-loaded .xtravel-header {
  /* JS cargado - placeholder para animaciones futuras */
  --xth-js-ready: 1;
}

/* ===== COMPONENTES FALTANTES ===== */
/* Las definiciones principales de #search-input y #search-btn están en las líneas 514-560 */

/* Barra de búsqueda en modal */
.xth-search-input {
  width: 100%;
  padding: 0.875rem 7rem 0.875rem 1rem;
  border: 1px solid var(--xh-gray-200);
  border-radius: 0.75rem;
  background-color: var(--xh-gray-50);
  font-size: 0.875rem;
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}

.xth-search-input:focus {
  outline: none;
  border-color: var(--xh-brand-500);
  box-shadow: 0 0 0 4px rgba(164, 61, 69, 0.08), inset 0 1px 2px rgba(0,0,0,0.05);
  background-color: #fff;
}

.xth-search-submit {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  right: 0.375rem !important;
  background: #a43d45 !important;
  background-color: #a43d45 !important;
  color: #fff !important;
  border: none !important;
  padding: 0.625rem 1.25rem !important;
  border-radius: 0.625rem !important;
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 2px 8px rgba(164, 61, 69, 0.25) !important;
  letter-spacing: 0.01em !important;
  z-index: 10 !important;
  pointer-events: auto !important;
  visibility: visible !important;
  opacity: 1 !important;
  display: inline-block !important;
}

.xth-search-submit:hover {
  background: linear-gradient(135deg, #a43d45 0%, #7d2f36 100%) !important;
  background-color: #7d2f36 !important;
  transform: translateY(-50%) scale(1.05) !important;
  box-shadow: 0 4px 12px rgba(164, 61, 69, 0.4) !important;
}

.xth-search-submit:active {
  transform: translateY(-50%) scale(0.98) !important;
}

.xth-search-submit:focus {
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(164, 61, 69, 0.15), 0 2px 8px rgba(164, 61, 69, 0.25) !important;
}

/* Resultados de búsqueda */
.xth-search-results {
  padding: 0.5rem 1rem 1rem;
  max-height: 70vh;
  overflow-y: auto;
}

/* Estados de búsqueda */
#estado-busqueda {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  color: var(--xh-gray-500);
  display: none;
  align-items: center;
  gap: 0.5rem;
}

#estado-busqueda:not(.hidden) {
  display: flex;
}

/* Modal header */
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--xh-gray-200);
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
}

.modal-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--xh-gray-800);
  margin: 0;
}

.modal-close {
  padding: 0.5rem;
  background: transparent;
  border: none;
  color: var(--xh-gray-500);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: color 150ms;
}

.modal-close:hover {
  color: var(--xh-gray-700);
}

/* Contact sections */
.contact-section {
  padding: 1.25rem;
}

.contact-section.hidden {
  display: none;
}

/* Portal para dropdowns */
.xth-portal-root {
  position: static;
  z-index: var(--xth-dropdown-z);
}

.xth-portal-ph {
  display: none;
}

/* Categorías de menú con iconos de colores */
.text-orange-600 { color: var(--xh-orange-600); }
.text-cyan-600 { color: var(--xh-cyan-600); }
.text-yellow-600 { color: var(--xh-yellow-600); }
.text-purple-600 { color: var(--xh-purple-600); }

/* Labels de categoría */
.cat-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Ajustes para iconos chevron */
.xtravel-header .text-\[10px\] svg,
.xtravel-header .text-\[12px\] svg {
  width: 0.75rem;
  height: 0.75rem;
}

/* Grupo de items en menú móvil */
.xtravel-header #navbar-mobile-flat ul ul {
  padding-left: 1rem;
}

.xtravel-header #navbar-mobile-flat ul ul a {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}

/* Subgrupos en dropdown */
.xtravel-header .xth-dropdown .px-1 {
  padding: 0.25rem;
}

.xtravel-header .xth-dropdown .py-1 {
  padding: 0.25rem 0.75rem;
}

/* Títulos de subgrupos */
.xtravel-header .xth-dropdown .text-\[11px\] {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--xh-gray-500);
  padding: 0.25rem 0.75rem;
}

/* Items en dropdown con hover mejorado */
.xtravel-header .xth-dropdown li + li a {
  border-top: 1px solid rgba(229, 231, 235, 0.28);
}

/* Estados activos de botones */
.xtravel-header button.active,
.xtravel-header a.active {
  background-color: var(--xh-brand-600);
  color: #fff;
}

/* Hamburguesa y botón toggle - Corregido */
.hamburger-btn,
[data-collapse-toggle] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border: 1px solid var(--xh-gray-200);
  border-radius: 0.375rem;
  background: transparent;
  cursor: pointer;
  transition: all 150ms;
  height: 2.25rem;
  color: var(--xh-gray-700);
}

.hamburger-btn svg,
[data-collapse-toggle] svg {
  width: 1.25rem;
  height: 1.25rem;
}

.hamburger-btn:hover,
[data-collapse-toggle]:hover {
  background-color: var(--xh-gray-50);
  border-color: var(--xh-gray-300);
}

.hamburger-btn:focus,
[data-collapse-toggle]:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--xh-brand-50);
  border-color: var(--xh-brand-500);
}

.hamburger-btn.is-active,
[data-collapse-toggle].is-active {
  background-color: var(--xh-gray-100);
  border-color: var(--xh-gray-400);
}

/* Menú móvil abierto */
.xtravel-header .mobile-open {
  display: block !important;
}

/* Second bar visibility */
.xtravel-header .xth-secondary-nav {
  display: none;
}

/* Ajustes de altura de barras */
.xtravel-header .primary-nav {
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
}

.xtravel-header .xth-secondary-fixed {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

/* Cuando el menú móvil está abierto */
@media (max-width: 767.98px) {
  .xtravel-header .xth-secondary-fixed.mobile-open {
    display: block;
  }
}

/* Botón de búsqueda móvil se oculta en lg (1024px) con clase lg:hidden */

/* Mostrar segunda barra solo en desktop */
@media (min-width: 1024px) {
  .xtravel-header .xth-secondary-nav,
  .xtravel-header .xth-secondary-fixed {
    display: block;
  }
}

/* Ocultar hamburguesa en desktop */
@media (min-width: 1024px) {
  .hamburger-btn,
  [data-collapse-toggle="navbar-mobile-flat"] {
    display: none !important;
  }
}

/* Mostrar menú desktop solo en >= 1024px */
@media (max-width: 1023.98px) {
  .xtravel-header #navbar-main {
    display: none !important;
  }
}

@media (min-width: 1024px) {
  .xtravel-header #navbar-main {
    display: flex !important;
  }
}

/* Label en botones de acción - visible solo en ciertos tamaños */
.xtravel-header .header-actions .xth-label {
  display: none;
}

@media (min-width: 640px) {
  .xtravel-header .header-actions .xth-label {
    display: inline;
  }
}

/* Ajustes del logo */
.xtravel-header .nav-logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.xtravel-header .nav-logo-box {
  width: 40px;
  height: auto;
  display: flex;
  align-items: center;
}

.xtravel-header .logo-claim {
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Ajuste de tamaño de fuente para claim del logo */
@media (min-width: 1024px) {
  .xtravel-header .logo-claim {
    font-size: 1.25rem;
    line-height: 1;
  }
}

@media (min-width: 1280px) {
  .xtravel-header .logo-claim {
    font-size: 1.35rem;
  }
}

/* Fondo de categoría gris */
.item-cat-gray {
  background-color: var(--xh-gray-100);
  color: var(--xh-gray-700);
}

/* Forzar iconos SVG a heredar color */
.xtravel-header .xth-dropdown svg,
.xtravel-header .xth-dropdown svg * {
  fill: currentColor !important;
  stroke: none !important;
  color: inherit !important;
}

/* Tamaño consistente de iconos en dropdown */
.xtravel-header .xth-dropdown a svg,
.xtravel-header .xth-dropdown .xth-dd-line svg,
.xtravel-header .xth-dropdown li svg {
  height: 1.15em;
  width: 1.15em;
  vertical-align: middle;
}

/* Texto en dropdown debe heredar color al hacer hover */
.xtravel-header .xth-dropdown a span,
.xtravel-header .xth-dropdown a .text-slate-700,
.xtravel-header .xth-dropdown a .truncate {
  color: inherit;
  transition: color 150ms;
}

/* Padding específico para items de dropdown */
.xtravel-header .xth-dropdown a {
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}

/* Hover mejorado en dropdown */
.xtravel-header .xth-dropdown a:hover {
  background-color: #f1f5f9;
}

/* Focus mejorado en dropdown */
.xtravel-header .xth-dropdown a:focus {
  outline: 2px solid var(--xh-orange-600);
  outline-offset: 2px;
  border-radius: 6px;
  background-color: #f8fafc;
}

/* Efecto de desplazamiento en iconos al hacer hover */
.xtravel-header .xth-dropdown a svg {
  transition: transform 180ms ease;
}

.xtravel-header .xth-dropdown a:hover svg {
  transform: translateX(2px);
}

/* Badge nuevo */
.xtravel-header .badge-nuevo,
#modal-busqueda .badge-nuevo,
#modal-contacto .badge-nuevo {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  padding: 0.15em 0.6em;
  border-radius: 9999px;
  font-size: 0.65rem;
  font-weight: 600;
  background-color: #ffe4ef;
  color: #d946ef;
  margin-left: 0.4em;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Botones de categoría en menú principal */
.xtravel-header #navbar-main > ul > li > button,
.xtravel-header #navbar-main > ul > li > a {
  padding: 0.38rem 0.7rem;
  font-size: 0.95rem;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 1024px) {
  .xtravel-header #navbar-main > ul > li > button,
  .xtravel-header #navbar-main > ul > li > a {
    padding: 0.40rem 0.72rem;
  }
}

/* Etiquetas de categoría nowrap */
.xtravel-header #navbar-main .cat-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Row principal del header */
.xtravel-header .header-row {
  flex-wrap: nowrap;
  gap: 0.25rem;
}

@media (min-width: 1024px) {
  .xtravel-header .header-row {
    gap: 0.3rem;
  }
}

/* Menú principal debe recortar contenido */
.xtravel-header #navbar-main {
  flex: 1 1 auto;
  min-width: 0;
  overflow: visible;
}

.xtravel-header #navbar-main .main-nav-list {
  flex-wrap: nowrap;
  overflow: visible;
  min-width: 0;
  column-gap: 0.35rem;
}

.xtravel-header #navbar-main .main-nav-list > li {
  white-space: nowrap;
  min-width: 0;
  flex-shrink: 1;
}

/* Botones de categoría mantener en línea */
.xtravel-header .nav-cat-btn {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Tablet: compacto */
@media (min-width: 768px) and (max-width: 1023.98px) {
  .xtravel-header #navbar-main .main-nav-list {
    font-size: 0.8rem;
    column-gap: 0.2rem;
  }
  
  .xtravel-header #navbar-main > ul > li > button {
    padding: 0.35rem 0.5rem;
  }
}

/* No clippear dropdowns */
.xtravel-header nav {
  overflow: visible;
}

.xtravel-header .xth-secondary-fixed {
  overflow: visible !important;
}

.xtravel-header .nav-item {
  overflow: visible;
  position: relative;
}

/* Z-index para submenús */
.xtravel-header .nav-submenu {
  z-index: 80;
}

/* Zona de acciones no debe crecer */
.xtravel-header .header-actions {
  flex: 0 0 auto;
  min-width: max-content;
}

.xtravel-header .header-actions .btn-action {
  padding: 0.45rem 0.6rem;
}

.xtravel-header .header-actions .btn-action .label {
  display: none;
}

@media (min-width: 1280px) {
  .xtravel-header .header-actions .btn-action .label {
    display: inline;
  }
}

/* Grid de 2 columnas en dropdown */
@media (min-width: 1024px) {
  .xtravel-header .xth-dropdown ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .xtravel-header .xth-dropdown ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Iconos con colores según tipo de actividad */
.xtravel-header .xth-dropdown a .xth-icon,
#xth-portal-root .xth-dropdown a .xth-icon {
  color: inherit;
}

/* Iconos en botones principales */
.xtravel-header .nav-cat-btn .xth-icon {
  flex-shrink: 0;
}

/* Transición en hover de links con iconos */
.xtravel-header .xth-dropdown a:hover .xth-icon {
  transform: translateX(2px);
  transition: transform 180ms ease;
}

/* Iconos no se deformen */
.xtravel-header .xth-dropdown .xth-icon,
#xth-portal-root .xth-dropdown .xth-icon {
  flex-shrink: 0;
  display: inline-block;
}

/* Desktop: panel sin scroll interno */
@media (min-width: 1024px) {
  .xtravel-header .xth-dropdown {
    max-height: none;
    overflow: visible;
  }
  
  .xtravel-header .xth-dropdown ul {
    max-height: none;
    overflow: visible;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .xtravel-header .xth-dropdown.is-open {
    display: block;
  }
}

/* Mantener 2 columnas en pantallas anchas */
@media (min-width: 1280px) {
  .xtravel-header .xth-dropdown ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* En móvil mantener scroll */
@media (max-width: 1023.98px) {
  .xtravel-header .xth-dropdown ul {
    max-height: 60vh;
    overflow-y: auto;
  }
}

/* Remover subrayado de TODOS los enlaces en dropdowns */
.xtravel-header .xth-dropdown a,
.xtravel-header .xth-dropdown a:hover,
.xtravel-header .xth-dropdown a:focus,
.xtravel-header .xth-dropdown a:active,
.xtravel-header .xth-dropdown a:visited,
#xth-portal-root .xth-dropdown a,
#xth-portal-root .xth-dropdown a:hover,
#xth-portal-root .xth-dropdown a:focus,
#xth-portal-root .xth-dropdown a:active,
#xth-portal-root .xth-dropdown a:visited {
  text-decoration: none !important;
}

/* Dropdown en portal */
#xth-portal-root .xth-dropdown {
  position: fixed;
  display: none;
  background-color: #fff;
  border-radius: 0.375rem;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  border: 1px solid var(--xh-gray-100);
  border-left: 4px solid var(--xh-brand-600);
  overflow: visible;
  z-index: var(--xth-dropdown-z);
  min-width: 560px;
  max-width: min(900px, 96vw);
}

#xth-portal-root .xth-dropdown.is-open {
  display: block;
}

#xth-portal-root .xth-dropdown > ul {
  padding: 0.25rem;
  margin: 0;
}

@media (min-width: 1024px) {
  #xth-portal-root .xth-dropdown > ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    display: grid;
  }
}

/* Offsets del contenido */
body.has-xtravel-fixed-header {
  padding-top: 30px !important;
}

@media (min-width: 768px) {
  body.has-xtravel-fixed-header {
    padding-top: 30px !important;
  }
}

@media (min-width: 1024px) {
  body.has-xtravel-fixed-header {
    padding-top: 30px !important;
  }
  /* Eliminar cualquier margen superior del primer bloque de contenido */
  body.has-xtravel-fixed-header main > *:first-child { 
    margin-top: 0 !important; 
  }
  /* Mantener sin márgenes extra arriba del contenido */
  body.has-xtravel-fixed-header main,
  body.has-xtravel-fixed-header #content,
  body.has-xtravel-fixed-header .site-content { 
    margin-top: 0 !important; 
  }
}

/* ============================================
   HEADER OVERRIDES - Compactación y ajustes
   ============================================ */

/* Variables con valores por defecto (evita FOUC antes de JS) */
:root {
  --xh-header-bar1: 48px;
  --xh-header-height-mobile: 48px;
  --xh-header-height: 92px;
}

/* Franja 1: compacta */
.xtravel-header .primary-nav { 
  padding-top: 6px; 
  padding-bottom: 6px; 
  line-height: 1.1; 
}

/* Franja 2: aún más compacta */
.xtravel-header .xth-secondary-fixed { 
  padding-top: 4px; 
  padding-bottom: 4px; 
  line-height: 1.05; 
  top: var(--xh-header-bar1, 48px);
}

/* Quita márgenes verticales internos que agregan huecos */
.xtravel-header .primary-nav h1,
.xtravel-header .primary-nav h2,
.xtravel-header .primary-nav p,
.xtravel-header .primary-nav ul,
.xtravel-header .primary-nav li,
.xtravel-header .primary-nav a,
.xtravel-header .primary-nav button { 
  margin-top: 0; 
  margin-bottom: 0; 
}

.xtravel-header .xth-secondary-fixed h1,
.xtravel-header .xth-secondary-fixed h2,
.xtravel-header .xth-secondary-fixed p,
.xtravel-header .xth-secondary-fixed ul,
.xtravel-header .xth-secondary-fixed li,
.xtravel-header .xth-secondary-fixed a,
.xtravel-header .xth-secondary-fixed button { 
  margin-top: 0; 
  margin-bottom: 0; 
}

/* UL/LI sin padding/margen por defecto */
.xtravel-header nav ul { 
  padding-left: 0; 
  margin: 0; 
}/* Alturas de controles */
.xtravel-header .nav-logo { 
  height: 38px; 
  width: auto; 
}

.xtravel-header #search-input { 
  height: 34px; 
}

.xtravel-header #search-btn { 
  line-height: 1; 
}

.xtravel-header .header-actions > * { 
  height: 34px; 
}

/* Botones de categorías compactos */
.xtravel-header #navbar-main > ul > li > button { 
  padding: 6px 10px; 
  line-height: 1.05; 
}

/* Eliminar bordes/sombras para evitar hueco visual entre franja 1 y 2 */
.xtravel-header .primary-nav,
.xtravel-header .xth-secondary-fixed {
  box-shadow: none;
  border-bottom: none;
}

/* Tipografía franja 2 */
.xtravel-header .xth-secondary-fixed .main-nav-list { 
  font-size: 13px; 
}

/* Evita min-height inesperados */
.xtravel-header .primary-nav,
.xtravel-header .xth-secondary-fixed { 
  min-height: unset !important; 
}

/* Asegurar que el propio header no tenga márgenes colapsando */
.xtravel-header { 
  margin: 0 !important; 
}

/* ============================================
   UTILIDADES EXTRAS - Padding 50 y Margin -50
   ============================================ */

/* Padding 50 */
.xtravel-header .p-50 { padding: 50px !important; }
.xtravel-header .pt-50 { padding-top: 50px !important; }
.xtravel-header .pr-50 { padding-right: 50px !important; }
.xtravel-header .pb-50 { padding-bottom: 50px !important; }
.xtravel-header .pl-50 { padding-left: 50px !important; }
.xtravel-header .px-50 { padding-left: 50px !important; padding-right: 50px !important; }
.xtravel-header .py-50 { padding-top: 50px !important; padding-bottom: 50px !important; }

/* Margin -50 */
.xtravel-header .m--50 { margin: -50px !important; }
.xtravel-header .mt--50 { margin-top: -50px !important; }
.xtravel-header .mr--50 { margin-right: -50px !important; }
.xtravel-header .mb--50 { margin-bottom: -50px !important; }
.xtravel-header .ml--50 { margin-left: -50px !important; }
.xtravel-header .mx--50 { margin-left: -50px !important; margin-right: -50px !important; }
.xtravel-header .my--50 { margin-top: -50px !important; margin-bottom: -50px !important; }

/* ============================================
   CONTACT OVERLAY - Envío de formulario
   ============================================ */
.xtravel-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(139, 92, 246, 0.95);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
  padding: 1rem;
}

.xtravel-modal {
  background: white;
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  max-width: 28rem;
  width: 100%;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: modalSlideIn 0.25s ease-out;
}

@keyframes modalSlideIn {
  from { 
    opacity: 0; 
    transform: scale(0.96) translateY(-10px); 
  }
  to { 
    opacity: 1; 
    transform: scale(1) translateY(0); 
  }
}

.traveler-icon { 
  font-size: 3rem; 
  margin-bottom: 0.5rem; 
}

.spinner {
  border: 3px solid #e5e7eb;
  border-top: 3px solid #8b5cf6;
  border-radius: 50%;
  width: 2rem; 
  height: 2rem;
  animation: spin 1s linear infinite; 
  margin: 0 auto 1rem;
}

@keyframes spin { 
  0% { transform: rotate(0deg); } 
  100% { transform: rotate(360deg); } 
}

.xth-btn { 
  display: inline-flex; 
  align-items: center; 
  gap: 0.5rem; 
  padding: 0.6rem 1rem; 
  border-radius: 0.7rem; 
  font-weight: 600; 
  border: 1px solid #e2e8f0; 
  background: #f8fafc; 
  color: #334155; 
  cursor: pointer;
  transition: background 0.2s;
}

.xth-btn:hover { 
  background: #fff; 
}

.xth-btn-primary { 
  background: #8b5cf6; 
  color: white; 
  border-color: #7c3aed; 
}

.xth-btn-primary:hover { 
  background: #7c3aed; 
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-brand-primary {
  color: var(--xh-brand-600) !important;
}

.text-brand-600 {
  color: var(--xh-brand-600) !important;
}

.text-brand-700 {
  color: var(--xh-brand-700) !important;
}

.text-brand-500 {
  color: var(--xh-brand-500) !important;
}

.bg-brand-50 {
  background-color: var(--xh-brand-50) !important;
}

.bg-brand-600 {
  background-color: var(--xh-brand-600) !important;
}

.bg-brand-primary {
  background-color: var(--xh-brand-600) !important;
}

.bg-brand-hover,
.hover\:bg-brand-hover:hover {
  background-color: var(--xh-brand-700) !important;
}

.hover\:bg-brand-600:hover {
  background-color: var(--xh-brand-600) !important;
  color: white !important;
}

.hover\:text-brand-700:hover {
  color: var(--xh-brand-700) !important;
}

.focus\:ring-brand-500:focus {
  --tw-ring-color: var(--xh-brand-500);
  box-shadow: 0 0 0 1px var(--xh-brand-500) !important;
}

.focus\:border-brand-500:focus {
  border-color: var(--xh-brand-500) !important;
}

/* Search Results Card Image Wrapper */
.xth-card-img-wrapper {
  height: 120px;
}


/* Badge de reCAPTCHA */
.header-recaptcha-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #eff6ff;
    border-radius: 0.5rem;
    border: 1px solid #dbeafe;
}

.header-recaptcha-badge svg {
    width: 0.875rem;
    height: 0.875rem;
    color: #3b82f6;
    flex-shrink: 0;
}

.header-recaptcha-badge span {
    font-size: 0.5625rem;
    color: #1e40af;
    line-height: 1.4;
}

.header-recaptcha-badge a {
    text-decoration: underline;
    color: #1e40af;
}

.header-recaptcha-badge a:hover {
    color: #1e3a8a;
}
