/* ========================================
   DESIGN TOKENS - Modern Minimalism Premium
   ======================================== */

/* CSS Custom Properties - Azul Púrpura Premium */
:root {
  /* Colors - Azul Púrpura Gradient Palette */
  --color-primary-50: #E6F3FF;
  --color-primary-100: #CCE7FF;
  --color-primary-200: #99CFFF;
  --color-primary-300: #66B7FF;
  --color-primary-400: #4A9DF2;
  --color-primary-500: #2D60B0;
  --color-primary-600: #1F408D;
  --color-primary-700: #17306A;
  --color-primary-800: #0F2047;
  --color-primary-900: #071024;
  
  --color-neutral-50: #FAFAFA;
  --color-neutral-100: #F5F5F5;
  --color-neutral-200: #E5E5E5;
  --color-neutral-500: #A3A3A3;
  --color-neutral-700: #404040;
  --color-neutral-900: #171717;
  
  --color-success-500: #3CB371;
  --color-error-500: #EF4444;
  --color-warning-500: #F59E0B;
  
  /* Modern Background Gradient */
  --color-background-page: linear-gradient(135deg, #B83B8B 0%, #2D60B0 50%, #1F408D 100%);
  --color-background-surface: linear-gradient(135deg, #4A9DF2 0%, #2D60B0 100%);
  --color-background-elevated: linear-gradient(135deg, rgba(184, 59, 139, 0.1) 0%, rgba(45, 96, 176, 0.05) 50%, rgba(184, 59, 139, 0.1) 100%);
  --color-search-banner: linear-gradient(135deg, #B83B8B 0%, #2D60B0 30%, #4A9DF2 70%, #66B7FF 100%);
  
  /* Glass Morphism Effects */
  --glass-background: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-shadow: rgba(0, 0, 0, 0.25);
  
  /* Typography */
  --font-family-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  --font-size-hero-xl: 40px;
  --font-size-title-lg: 48px;
  --font-size-subtitle: 32px;
  --font-size-body-lg: 20px;
  --font-size-body: 16px;
  --font-size-small: 14px;
  --font-size-caption: 12px;
  
  --line-height-tight: 1.1;
  --line-height-snug: 1.2;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.6;
  
  --letter-spacing-tight: -0.02em;
  --letter-spacing-snug: -0.01em;
  --letter-spacing-normal: 0;
  --letter-spacing-wide: 0.01em;
  
  /* Spacing */
  --spacing-2: 8px;
  --spacing-4: 16px;
  --spacing-2: 8px;
  --spacing-6: 24px;
  --spacing-8: 28px;
  --spacing-12: 40px;
  --spacing-16: 56px;
  --spacing-16: 64px;
  --spacing-24: 96px;
  --spacing-32: 128px;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  /* Box Shadows */
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-card-hover: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-modal: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);
  --shadow-dropdown: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.05);
  
  /* Animation */
  --duration-fast: 200ms;
  --duration-base: 250ms;
  --duration-smooth: 300ms;
  --easing-out: cubic-bezier(0, 0, 0.2, 1);
  --easing-inOut: cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Component Dimensions */
  --button-height: 56px;
  --button-height-desktop: 64px;
  --input-height: 56px;
  
  /* Container Max Widths */
  --container-max-width-sm: 100%;
  --container-max-width-md: 100%;
  --container-max-width-lg: 1024px;
  --container-max-width-xl: 1200px;
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-body);
  line-height: var(--line-height-normal);
  color: #ffffff;
  background: var(--color-background-page);
  background-attachment: fixed;
  font-weight: var(--font-weight-regular);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
}

/* Animated Background Pattern */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(64, 224, 208, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0, 206, 209, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(32, 178, 170, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
  animation: backgroundFloat 20s ease-in-out infinite alternate;
}

@keyframes backgroundFloat {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-10px) rotate(2deg); }
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max-width-xl);
  margin: 0 auto;
  padding: 0 var(--spacing-6);
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--spacing-8);
  }
}

/* ========================================
   HEADER
   ======================================== */

.header {
  height: 75px;
  position: sticky;
  top: 0;
  background: #1e3a8a;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: all var(--duration-smooth) var(--easing-inOut);
}

/* Flexbox for header content alignment */
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

@media (max-width: 767px) {
  .header {
    height: 60px;
  }
  
  .nav-brand .tagline {
    font-size: 11px;
    line-height: 1.2;
  }
  
  .nav-brand .logo {
    font-size: 22px;
  }
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.3) 0%, rgba(59, 130, 246, 0.2) 100%);
  z-index: -1;
}

.nav-brand {
  display: flex;
  align-items: center;
  height: 100%;
}

/* Header Layout */
.container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-max-width-xl);
  margin: 0 auto;
  padding: 0 var(--spacing-6);
}

.logo {
  font-size: 27px;
  font-weight: var(--font-weight-bold);
  color: #FFFFFF;
  letter-spacing: var(--letter-spacing-normal);
  display: flex;
  align-items: center;
  gap: var(--spacing-2);
  position: relative;
  transition: all var(--duration-base) cubic-bezier(0.4, 0, 0.2, 1);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.logo:hover {
  transform: scale(1.05);
  text-shadow: 0 0 8px rgba(138, 155, 226, 0.6);
}

.logo::before {
  content: '✈️';
  font-size: 18px;
  transition: all var(--duration-base) cubic-bezier(0.4, 0, 0.2, 1);
}

.logo:hover::before {
  filter: drop-shadow(0 2px 8px rgba(138, 155, 226, 0.6));
}

/* Tagline */
.tagline {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  margin-left: var(--spacing-4);
  margin-top: 2px;
  font-weight: var(--font-weight-regular);
  letter-spacing: 0.5px;
  line-height: 1.2;
}

/* Navigation Menu */
/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 35px;
  height: 35px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
  margin-left: auto;
}

.mobile-menu-toggle span {
  width: 28px;
  height: 3px;
  background: #ffffff;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--spacing-6);
  height: 100%;
}

.nav-link {
  font-size: 17px;
  color: #DBDBE9;
  text-decoration: none;
  font-weight: var(--font-weight-regular);
  padding: var(--spacing-2) 0;
  transition: all var(--duration-base) cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.nav-link:hover {
  color: #8A9BE2;
  transform: translateY(-1px);
}

.nav-link.active {
  color: #8A9BE2;
  font-weight: var(--font-weight-medium);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 2px;
  background: #8A9BE2;
  border-radius: 1px;
}



/* ========================================
   HERO SECTION
   ======================================== */

.hero {
  min-height: 400px;
  display: flex;
  align-items: center;
  padding: var(--spacing-16) 0;
  background-color: var(--color-background-page);
  position: relative;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
  animation: slideInFromCenter 1s ease-out;
}

@keyframes slideInFromCenter {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  font-size: var(--font-size-hero-xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-tight);
  background: linear-gradient(135deg, #ffffff 0%, #FFD700 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  margin-bottom: var(--spacing-4);
  position: relative;
  margin-bottom: var(--spacing-4);
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    #bfdbfe 25%,
    #60a5fa 50%,
    #ffffff 75%,
    #bfdbfe 100%
  );
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s ease-in-out infinite;
  position: relative;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #4A9DF2, transparent);
  border-radius: 2px;
}

.colombia-highlight {
  color: #FFD700 !important;
  text-shadow: 0 2px 8px rgba(255, 215, 0, 0.8), 0 0 4px rgba(255, 215, 0, 0.5);
  font-weight: var(--font-weight-bold);
  background: linear-gradient(45deg, #FFD700, #FFC107);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes shimmer {
  0% {
    background-position: -200% -200%;
  }
  100% {
    background-position: 200% 200%;
  }
}

.hero-subtitle {
  font-size: var(--font-size-body-lg);
  color: rgba(255, 255, 255, 0.95);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--spacing-6);
  position: relative;
  padding: 0 var(--spacing-4);
  animation: fadeInUp 1s ease-out 0.5s both;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  font-weight: 500;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   SEARCH FORM
   ======================================== */

.search-form {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: var(--spacing-8);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.15), 
    0 4px 16px rgba(0, 206, 209, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  margin-top: var(--spacing-12);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  position: relative;
  overflow: hidden;
}

.search-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(0, 206, 209, 0.03) 50%, transparent 100%);
  z-index: -1;
  animation: shimmer 4s ease-in-out infinite;
}

@keyframes formGlow {
  0% { 
    box-shadow: 
      0 20px 40px rgba(0, 0, 0, 0.15), 
      0 8px 16px rgba(0, 206, 209, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }
  100% { 
    box-shadow: 
      0 25px 50px rgba(0, 0, 0, 0.2), 
      0 12px 24px rgba(0, 206, 209, 0.15),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }
}

@keyframes shimmer {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.form-grid {
  display: grid;
  gap: var(--spacing-4);
}

@media (min-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "origin destination"
      "departure return"
      "passengers passengers";
  }
  
  .form-group:nth-child(1) { grid-area: origin; }
  .form-group:nth-child(2) { grid-area: destination; }
  .form-group:nth-child(3) { grid-area: departure; }
  .form-group:nth-child(4) { grid-area: return; }
  .form-group:nth-child(5) { grid-area: passengers; }
}

/* Mobile Menu - Hidden by default */
.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--spacing-6);
  height: 100%;
}

@media (min-width: 768px) {
  .nav-menu {
    display: flex !important;
  }
  
  .mobile-menu-toggle {
    display: none !important;
  }
}

@media (max-width: 767px) {
  /* Hide regular nav menu on mobile */
  .nav-menu {
    display: none;
  }
  
  /* Show hamburger button on mobile */
  .mobile-menu-toggle {
    display: flex !important;
  }
  
  /* Mobile menu dropdown */
  .nav-menu.mobile-open {
    display: flex !important;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: #1e3a8a;
    flex-direction: column;
    padding: var(--spacing-6);
    gap: var(--spacing-4);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 999;
    animation: slideDown 0.3s ease-out;
  }
  
  .nav-link {
    font-size: 18px;
    padding: var(--spacing-3) var(--spacing-4);
    border-radius: 8px;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: var(--spacing-2);
  }
  
  .nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
  }
  
  /* Hero Section Mobile */
  .hero-title {
    font-size: 22px;
    margin-bottom: var(--spacing-2);
    line-height: 1.2;
  }
  
  .hero-subtitle {
    font-size: 14px;
    margin-bottom: var(--spacing-4);
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  }
  
  .hero {
    min-height: 220px;
    padding: var(--spacing-3) 0;
  }
  
  .hero-content {
    margin-top: var(--spacing-1);
  }
  
  .search-form {
    margin-top: var(--spacing-3);
    padding: var(--spacing-4);
  }
  
  /* Form Controls Mobile */
  .trip-option {
    padding: var(--spacing-4);
    margin: var(--spacing-2);
    font-size: 16px;
    border: 2px solid rgba(0, 0, 0, 0.2);
  }
  
  .counter-btn {
    width: 50px !important;
    height: 50px !important;
    font-size: 24px !important;
    font-weight: bold;
    background: #4F46E5;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  
  .counter-btn:hover {
    background: #3730A3;
    transform: scale(1.05);
  }
  
  .counter-text {
    font-size: 16px;
    padding: 0 var(--spacing-4);
    font-weight: 500;
  }
}

.form-group {
  position: relative;
}

.form-label {
  display: block;
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-medium);
  color: #333333; /* Color oscuro para visibilidad sobre fondo blanco */
  margin-bottom: var(--spacing-2);
}

.form-label .optional {
  font-weight: var(--font-weight-normal);
  color: var(--color-neutral-500);
  font-size: 0.85em;
}

.optional-input {
  border: 2px dashed var(--color-neutral-300) !important;
  background-color: var(--color-neutral-50);
}

.optional-input:focus {
  border: 2px solid var(--color-primary-400) !important;
  background-color: var(--color-background);
}

.optional-input:has(::-webkit-datetime-edit-fields-wrapper) {
  background-image: linear-gradient(45deg, transparent 50%, var(--color-neutral-400) 50%);
  background-size: 8px 8px;
  background-position: right 12px center;
  background-repeat: no-repeat;
}

.optional-input:not(:placeholder-shown) {
  border: 2px solid var(--color-success-300) !important;
  background-color: var(--color-success-50);
}

/* Trip Type Selector */
.trip-type-selector {
  display: flex;
  gap: var(--spacing-2);
  margin-top: var(--spacing-2);
}

.trip-option {
  display: flex;
  align-items: center;
  padding: var(--spacing-2) var(--spacing-3);
  border: 2px solid rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  cursor: pointer;
  transition: all var(--duration-base) cubic-bezier(0.4, 0, 0.2, 1);
  background-color: rgba(255, 255, 255, 0.9);
  flex: 1;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  color: #333333;
}

.trip-option:hover {
  border-color: var(--color-primary-400);
  background-color: rgba(74, 157, 242, 0.1);
  box-shadow: 0 4px 12px rgba(74, 157, 242, 0.15);
  transform: translateY(-1px);
  color: var(--color-primary-600);
}

.trip-option input[type="radio"] {
  display: none;
}

.trip-option input[type="radio"]:checked + .trip-label {
  color: var(--color-primary-600);
  font-weight: var(--font-weight-medium);
}

.trip-option:has(input[type="radio"]:checked) {
  border-color: var(--color-primary-500);
  background: linear-gradient(135deg, rgba(45, 96, 176, 0.15) 0%, rgba(74, 157, 242, 0.15) 100%);
  color: var(--color-primary-700);
  box-shadow: 0 0 0 2px rgba(0, 206, 209, 0.5), 0 4px 16px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.trip-label {
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-regular);
  color: #ffffff;
  transition: all var(--duration-fast) var(--easing-out);
}

/* Hide trip type hint - no longer needed */
.trip-type-hint {
  display: none;
}

.trip-type-hint small {
  color: var(--color-neutral-600);
  font-size: 0.875em;
  line-height: 1.4;
  background-color: var(--color-neutral-100);
  padding: var(--spacing-1) var(--spacing-2);
  border-radius: var(--radius-sm);
  display: inline-block;
}

.trip-type-hint small {
  color: var(--color-neutral-600);
  font-size: 0.875em;
  line-height: 1.4;
  background-color: var(--color-neutral-100);
  padding: var(--spacing-1) var(--spacing-2);
  border-radius: var(--radius-sm);
  display: inline-block;
}

.input-container {
  position: relative;
}

.form-input {
  width: 100%;
  height: var(--input-height);
  padding: 18px var(--spacing-4);
  border: 2px solid rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-regular);
  color: #333333;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all var(--duration-base) cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  position: relative;
}

.form-input::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(64, 224, 208, 0.05) 100%);
  border-radius: 10px;
  z-index: -1;
}

.form-input::placeholder {
  color: #666666;
  opacity: 0.8;
}

.form-input:hover {
  border-color: var(--color-primary-400);
  box-shadow: 0 4px 12px rgba(45, 96, 176, 0.15);
  transform: translateY(-1px);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primary-500);
  box-shadow: 0 0 0 3px rgba(45, 96, 176, 0.2), 0 4px 12px rgba(45, 96, 176, 0.1);
  transform: translateY(-1px);
  background-color: rgba(255, 255, 255, 1);
}

.form-input.error {
  border-color: var(--color-error-500);
  box-shadow: 0 0 0 2px var(--color-error-500);
}

.form-input.success {
  border-color: var(--color-success-500);
  box-shadow: 0 0 0 2px var(--color-success-500);
}

.input-icon {
  position: absolute;
  right: var(--spacing-4);
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-neutral-500);
  pointer-events: none;
}

/* Autocomplete Dropdown */
.autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 2px solid #000000;
  border-radius: 12px;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.4), 
    0 8px 20px rgba(0, 206, 209, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  max-height: 320px;
  overflow-y: auto;
  z-index: 1000;
  opacity: 0;
  transform: translateY(-8px) scale(0.95);
  visibility: hidden;
  transition: all var(--duration-base) cubic-bezier(0.4, 0, 0.2, 1);
}

.autocomplete-dropdown.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
}

.autocomplete-item {
  padding: 12px var(--spacing-4);
  cursor: pointer;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  font-size: var(--font-size-body);
  color: #333333;
  transition: background-color var(--duration-fast) var(--easing-out);
}

.autocomplete-item:last-child {
  border-bottom: none;
}

.autocomplete-item:hover {
  background-color: rgba(74, 157, 242, 0.1);
  color: var(--color-primary-700);
}

.autocomplete-item.selected {
  background-color: rgba(45, 96, 176, 0.15);
  color: var(--color-primary-700);
}

.autocomplete-item .city {
  font-weight: var(--font-weight-semibold);
}

.autocomplete-item .airport {
  color: #666666;
  font-size: var(--font-size-small);
}

.autocomplete-item .iata {
  color: var(--color-primary-500);
  font-family: monospace;
  font-weight: var(--font-weight-medium);
}

/* Passenger Counter */
.passenger-counter {
  border: 2px solid #000000;
  border-radius: var(--radius-md);
  padding: var(--spacing-4);
  background: rgba(30, 58, 138, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all var(--duration-fast) var(--easing-out);
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
}

.passenger-counter:focus-within {
  border-color: var(--color-primary-500);
  box-shadow: 0 0 0 2px var(--color-primary-500);
}

.counter-display {
  margin-bottom: var(--spacing-2);
}

.counter-text {
  font-size: var(--font-size-body);
  color: #ffffff;
}

.counter-controls {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-2);
}

.counter-btn {
  width: 40px;
  height: 40px;
  border: 2px solid #000000;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #4A9DF2 0%, #2D60B0 50%, #B83B8B 100%);
  color: white;
  font-size: 18px;
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-base) cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 4px 12px rgba(0, 206, 209, 0.3), 
    0 2px 6px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.counter-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #2D60B0 0%, #1F408D 100%);
  transform: scale(1.1);
  box-shadow: 0 4px 16px rgba(45, 96, 176, 0.3);
}

.counter-btn:disabled {
  background: var(--color-neutral-500);
  cursor: not-allowed;
  transform: none;
}

/* Error Messages */
.error-message {
  color: var(--color-error-500);
  font-size: var(--font-size-small);
  margin-top: var(--spacing-2);
  min-height: 1.5em;
  opacity: 0;
  transition: opacity var(--duration-base) var(--easing-out);
}

.error-message.show {
  opacity: 1;
}

/* Search Button */
.form-actions {
  margin-top: var(--spacing-6);
}

.search-btn {
  width: 100%;
  max-width: 400px;
  height: var(--button-height);
  background: linear-gradient(135deg, #B83B8B 0%, #2D60B0 50%, #4A9DF2 100%);
  background-size: 200% 200%;
  color: white;
  border: 2px solid #000000;
  border-radius: 12px;
  font-size: 18px;
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-2);
  transition: all var(--duration-base) cubic-bezier(0.4, 0, 0.2, 1);
  margin: 0 auto;
  position: relative;
  box-shadow: 
    0 8px 20px rgba(0, 206, 209, 0.3), 
    0 4px 12px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  overflow: hidden;
  animation: buttonPulse 3s ease-in-out infinite;
}

.search-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.search-btn:hover::before {
  left: 100%;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes buttonPulse {
  0%, 100% { 
    background-position: 0% 50%;
    transform: translateY(0) scale(1);
  }
  50% { 
    background-position: 100% 50%;
    transform: translateY(-1px) scale(1.01);
  }
}

@media (min-width: 768px) {
  .search-btn {
    height: var(--button-height-desktop);
  }
}

.search-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #2D60B0 0%, #1F408D 100%);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 24px rgba(45, 96, 176, 0.4), 0 4px 12px rgba(0, 0, 0, 0.15);
  border-color: #000000;
}

.search-btn:active {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 4px 16px rgba(45, 96, 176, 0.3), 0 2px 8px rgba(0, 0, 0, 0.1);
}

.search-btn:disabled {
  background: var(--color-neutral-500);
  cursor: not-allowed;
  transform: none;
}

.btn-text {
  transition: opacity var(--duration-fast) var(--easing-out);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 280px;
}

.loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  opacity: 0;
  transition: opacity var(--duration-fast) var(--easing-out);
}

.loading-spinner.show {
  opacity: 1;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ========================================
   BENEFITS SECTION
   ======================================== */

.benefits {
  padding: var(--spacing-20) 0;
  background: var(--color-background-page);
}

/* Override container flexbox for benefits section */
.benefits .container {
  display: block !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  height: auto !important;
}

.benefits-header {
  width: 100%;
  text-align: center;
  margin-bottom: var(--spacing-10);
  display: block;
}

.section-title {
  font-size: var(--font-size-title-lg);
  font-weight: var(--font-weight-bold);
  color: #ffffff;
  text-align: center;
  display: block;
  margin: 0 auto var(--spacing-8) auto;
  line-height: var(--line-height-snug);
  max-width: 800px;
  padding: 0 var(--spacing-4);
  position: relative;
  z-index: 10;
}

@media (max-width: 767px) {
  .benefits {
    padding: var(--spacing-16) 0;
  }
  
  .benefits-header {
    margin-bottom: var(--spacing-8);
  }
  
  .section-title {
    font-size: 28px;
    margin-bottom: var(--spacing-6);
  }
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-6);
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  justify-items: center;
}

@media (min-width: 1024px) {
  .benefits-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-8);
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-6);
    max-width: 700px;
  }
}

@media (max-width: 767px) {
  .benefits-grid {
    grid-template-columns: repeat(1, 1fr);
    gap: var(--spacing-6);
    max-width: 350px;
    padding: 0 var(--spacing-4);
  }
}

.benefit-card {
  background: var(--color-background-elevated);
  border: 2px solid #000000;
  border-radius: var(--radius-lg);
  padding: var(--spacing-6);
  text-align: center;
  transition: all var(--duration-base) var(--easing-out);
  box-shadow: 
    0 8px 20px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(10px);
  flex: 0 0 auto;
}

/* Control del ancho de las tarjetas */
@media (min-width: 1024px) {
  .benefit-card {
    width: calc(25% - var(--spacing-6));
    min-width: 280px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .benefit-card {
    width: calc(50% - var(--spacing-4));
    min-width: 280px;
  }
}

@media (max-width: 767px) {
  .benefit-card {
    width: 100%;
    min-width: 280px;
    max-width: 350px;
  }
}
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.benefit-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(64, 224, 208, 0.05) 0%, rgba(0, 206, 209, 0.02) 100%);
  opacity: 0;
  transition: opacity var(--duration-smooth) var(--easing-out);
}

.benefit-card:hover::before {
  opacity: 1;
}

@media (max-width: 767px) {
  .benefit-card {
    padding: var(--spacing-6);
    min-height: 200px;
    background: rgba(255, 255, 255, 0.12) !important; /* Fondo más opaco para mejor contraste */
    border: 1px solid rgba(255, 255, 255, 0.25) !important; /* Borde sutil */
  }
  
  .benefit-title {
    color: #FFFFFF !important;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    margin-bottom: var(--spacing-5);
  }
  
  .benefit-description {
    color: #E5F3FF !important; /* Color más claro para mejor contraste */
    font-size: 0.95rem;
    line-height: 1.4;
  }
}

.benefit-card:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.2),
    0 10px 20px rgba(0, 206, 209, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border-color: rgba(64, 224, 208, 0.5);
  background: linear-gradient(135deg, 
    rgba(64, 224, 208, 0.15) 0%, 
    rgba(0, 206, 209, 0.1) 50%, 
    rgba(32, 178, 170, 0.15) 100%);
  z-index: 10;
}

.benefit-icon {
  color: var(--color-primary-500);
  margin-bottom: var(--spacing-4);
}

.benefit-title {
  font-size: 20px;
  font-weight: var(--font-weight-semibold);
  color: #FFFFFF !important; /* Cambiado a blanco para mejor contraste en todos los dispositivos */
  margin-bottom: var(--spacing-4);
  position: relative;
  padding-left: var(--spacing-2);
  text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
}
  margin-bottom: var(--spacing-4);
  line-height: var(--line-height-snug);
}

.benefit-description {
  color: #bfdbfe;
  line-height: var(--line-height-normal);
  font-size: var(--font-size-body);
}

/* ========================================
   SERVICE INFO SECTION
   ======================================== */

.service-info {
  padding: var(--spacing-16) 0;
  background: var(--color-background-page);
}

.info-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.info-title {
  font-size: var(--font-size-subtitle);
  font-weight: var(--font-weight-semibold);
  color: #ffffff;
  margin-bottom: var(--spacing-6);
  line-height: var(--line-height-snug);
}

@media (max-width: 767px) {
  .info-title {
    font-size: 24px;
  }
  
  .service-info {
    padding: var(--spacing-12) 0;
  }
}

.info-text {
  color: #bfdbfe;
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--spacing-4);
  font-size: var(--font-size-body);
}

.info-text:last-child {
  margin-bottom: 0;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
  padding: var(--spacing-12) var(--spacing-6);
  background: #1e3a8a;
  color: #bfdbfe;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-4);
}

.footer-copyright {
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-regular);
}

.footer-links {
  display: flex;
  gap: var(--spacing-6);
}

.footer-link {
  color: #bfdbfe;
  text-decoration: none;
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-regular);
  transition: color var(--duration-fast) var(--easing-out);
}

.footer-link:hover {
  color: #ffffff;
}

/* ========================================
   UTILITIES
   ======================================== */

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles for better accessibility */
button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 2px solid var(--color-primary-500);
  outline-offset: 2px;
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========================================
   MODERN ENHANCEMENTS
   ======================================== */

/* Smooth Scroll Enhancement */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(59, 130, 246, 0.1);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #00CED1 0%, #20B2AA 100%);
  border-radius: 4px;
  border: 1px solid #000000;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #20B2AA 0%, #40E0D0 100%);
}

/* Loading Animation */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(30, 58, 138, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-smooth) var(--easing-inOut);
}

.loading-overlay.show {
  opacity: 1;
  visibility: visible;
}

.loading-spinner-container {
  text-align: center;
  color: #ffffff;
}

.loading-spinner-large {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top: 4px solid #00CED1;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
  box-shadow: 0 0 20px rgba(0, 206, 209, 0.3);
}

/* Floating Elements Animation */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.float-animation {
  animation: float 6s ease-in-out infinite;
}

/* Glow Effects */
.glow-soft {
  box-shadow: 0 0 20px rgba(0, 206, 209, 0.3);
}

.glow-intense {
  box-shadow: 
    0 0 20px rgba(0, 206, 209, 0.5),
    0 0 40px rgba(0, 206, 209, 0.2),
    0 0 60px rgba(0, 206, 209, 0.1);
}

/* Intersection Observer Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Modern Button Effects */
.modern-button {
  position: relative;
  overflow: hidden;
  transform: perspective(1px) translateZ(0);
  transition: all 0.3s ease;
}

.modern-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modern-button:hover::before {
  opacity: 1;
}

/* ========================================
   MEDIA QUERY ESPECÍFICO PARA iPhone 
   Mejora contraste extremo para dispositivos móviles con problemas de legibilidad
   ======================================== */
@media screen and (max-width: 390px), screen and (max-height: 690px) {
  /* Para iPhone SE, iPhone 13 mini y dispositivos similares */
  .benefit-title {
    color: #FFFFFF !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.8) !important;
    line-height: 1.2;
    letter-spacing: 0.5px; /* Mejor legibilidad con espaciado */
  }
  
  .benefit-description {
    color: #F8F9FA !important; /* Texto casi blanco para máximo contraste */
    font-weight: 500;
    font-size: 0.9rem;
    line-height: 1.5;
  }
  
  .benefit-card {
    background: rgba(255, 255, 255, 0.18) !important; /* Fondo más opaco */
    backdrop-filter: blur(6px);
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important; /* Sombra más fuerte para definir límites */
    padding: var(--spacing-7) !important; /* Más padding para mejor legibilidad */
  }
  
  .benefit-icon {
    color: #FFD700 !important; /* Iconos en dorado para mejor visibilidad */
    font-size: 1.2rem;
    margin-bottom: var(--spacing-5);
  }
}

/* Print styles */
@media print {
  .header,
  .footer {
    display: none;
  }
  
  .hero {
    min-height: auto;
    padding: var(--spacing-8) 0;
  }
  
  .search-form {
    box-shadow: none;
    border: 1px solid var(--color-neutral-200);
  }
}
