/* ==========================================================================
   CSS PRINCIPAL - FLYTZI (FINTECH & TRAVELTECH PREMIUM STYLE)
   ========================================================================== */

/* 1. RESET Y VARIABLES GLOBALES */
:root {
  --primary: #0b192c;         /* Deep Navy Blue */
  --primary-rgb: 11, 25, 44;
  --primary-light: #1e2e44;
  --accent: #0f9d58;          /* Textured Emerald Green */
  --accent-hover: #0b8043;
  --accent-light: #ebf7ee;
  --bg-light: #f8fafc;        /* Soft slate white */
  --bg-white: #ffffff;
  --text-main: #334155;       /* Slate 700 */
  --text-dark: #0f172a;       /* Slate 900 */
  --text-muted: #64748b;      /* Slate 500 */
  --border-color: #e2e8f0;    /* Slate 200 */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 12px;
  --border-radius-lg: 20px;
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Inter', sans-serif;
  color: var(--text-main);
  background-color: var(--bg-light);
}

body {
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--text-dark);
  font-weight: 700;
}

/* 2. COMPONENTES ATÓMICOS Y UTILIDADES */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-highlight {
  color: #10b981; /* Neon green */
  font-weight: 800;
  background: linear-gradient(120deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.03) 100%);
  padding: 0 6px;
  border-radius: 4px;
}

/* BOTONES PREMIUM */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--border-radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--bg-white);
  box-shadow: 0 4px 12px rgba(15, 157, 88, 0.25);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 157, 88, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  background-color: transparent;
  border: 1.5px solid var(--border-color);
  color: var(--text-dark);
}

.btn-outline:hover {
  background-color: var(--bg-white);
  border-color: var(--primary);
  color: var(--primary);
}

/* BADGES */
.badge-premium {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  color: var(--bg-white);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.15);
  margin-bottom: 20px;
}

.section-badge {
  display: inline-block;
  background-color: var(--accent-light);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

/* INTROS DE SECCIÓN */
.section-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px auto;
}

.section-title {
  font-size: 36px;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-muted);
}

/* 3. HEADER Y NAVEGACIÓN */
.main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.logo a {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.logo-text {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 1.5px;
}

.logo-accent {
  color: var(--accent);
}

.logo-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: -4px;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 15px;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--primary);
}

/* 4. HERO SECTION & BUSCADOR */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, var(--primary) 0%, #152c4a 100%);
  color: var(--bg-white);
  padding: 100px 0 160px 0;
  overflow: hidden;
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.flight-routes-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.65;
  pointer-events: none;
}

/* Animación del avión siguiendo la ruta curva */
.animated-plane {
  offset-path: path("M100,300 Q300,100 500,250 T900,100");
  animation: flyAlongPath 22s linear infinite;
  position: absolute;
}

@keyframes flyAlongPath {
  0% {
    offset-distance: 0%;
    transform: rotate(0deg);
  }
  100% {
    offset-distance: 100%;
    transform: rotate(360deg); /* El propio navegador rota el vector alineándolo al ángulo del path */
  }
}

/* Silueta de Jet de Fondo Flotando */
.hero-jet-silhouette {
  position: absolute;
  right: 5%;
  top: 8%;
  width: 240px;
  height: 120px;
  opacity: 0.75;
  transform: rotate(-6deg);
  animation: floatJet 10s ease-in-out infinite;
  pointer-events: none;
}

@keyframes floatJet {
  0% {
    transform: translateY(0px) rotate(-6deg);
  }
  50% {
    transform: translateY(-10px) rotate(-4deg);
  }
  100% {
    transform: translateY(0px) rotate(-6deg);
  }
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  position: relative;
  z-index: 2;
}

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

.hero-title {
  font-size: 48px;
  line-height: 1.15;
  margin-bottom: 24px;
  color: var(--bg-white);
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: #94a3b8;
  max-width: 720px;
  margin: 0 auto;
}

/* CONTENEDOR BUSCADOR STYLE SKYSCANNER */
.search-panel-wrapper {
  margin-top: -60px;
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.search-panel {
  background-color: var(--bg-white);
  border-radius: var(--border-radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

/* Pestañas */
.trip-type-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

.tab-btn {
  background: none;
  border: none;
  padding: 8px 16px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 6px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.tab-btn:hover {
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.tab-btn.active {
  background-color: rgba(11, 25, 44, 0.08);
  color: var(--primary);
}

/* Grid de Formulario */
.inputs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: end;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.form-group label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.form-group input, .form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dark);
  background-color: var(--bg-light);
  outline: none;
  transition: var(--transition);
}

.form-group input:focus, .form-group select:focus {
  border-color: var(--primary);
  background-color: var(--bg-white);
  box-shadow: 0 0 0 4px rgba(11, 25, 44, 0.05);
}

/* Botón Intercambio */
.swap-button-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 48px;
}

.btn-swap {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-light);
  border: 1.5px solid var(--border-color);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-swap:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--bg-white);
  transform: rotate(180deg);
}

/* AUTOCOMPLETADO INTELIGENTE */
.autocomplete-group {
  position: relative;
}

.clear-btn {
  position: absolute;
  right: 14px;
  color: var(--text-muted);
  cursor: pointer;
  display: none;
  font-size: 16px;
  transition: var(--transition);
}

.clear-btn:hover {
  color: var(--text-dark);
}

.autocomplete-dropdown {
  position: absolute;
  top: 105%;
  left: 0;
  width: 100%;
  background-color: var(--bg-white);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  z-index: 10;
  max-height: 280px;
  overflow-y: auto;
  display: none;
}

.autocomplete-item {
  padding: 12px 16px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f1f5f9;
}

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

.autocomplete-item:hover {
  background-color: #f1f5f9;
}

.autocomplete-info {
  display: flex;
  flex-direction: column;
}

.autocomplete-city {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 14px;
}

.autocomplete-airport {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.autocomplete-code {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  background-color: #f1f5f9;
  color: var(--primary);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
}

/* Selectores Segunda Fila */
.selectors-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: end;
}

.compact-group select {
  cursor: pointer;
}

.search-btn-container {
  display: flex;
  justify-content: flex-end;
}

.btn-search {
  width: 100%;
  padding: 14px;
}

/* 5. SECCIÓN DE RESULTADOS DE VUELOS */
.results-section {
  padding: 60px 0;
  background-color: var(--bg-light);
}

.results-header {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 30px;
  gap: 12px;
}

.section-title-small {
  font-size: 24px;
}

.results-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
}

.badge-discount-info {
  background-color: var(--accent-light);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 12px;
}

.results-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.filter-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

.filter-btn {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.filter-btn:hover {
  background-color: var(--bg-light);
  border-color: var(--text-muted);
}

.filter-btn.active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--bg-white);
}

/* Loading & Empty States */
.results-loader {
  text-align: center;
  padding: 60px 24px;
  background-color: var(--bg-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
}

.logo-spinner-container {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 20px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spinner-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 4px solid rgba(15, 157, 88, 0.15);
  border-top: 4px solid var(--accent);
  border-radius: 50%;
  animation: spin 1.2s linear infinite;
}

.spinner-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulse {
  0% { transform: scale(0.92); opacity: 0.85; }
  50% { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(0.92); opacity: 0.85; }
}

.results-loader p {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
}

.loader-sub {
  font-size: 13px;
  color: var(--text-muted);
  display: block;
  margin-top: 4px;
}

.results-empty {
  text-align: center;
  padding: 60px 24px;
  background-color: var(--bg-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  color: var(--text-muted);
}

.results-empty i {
  font-size: 48px;
  color: var(--border-color);
  margin-bottom: 16px;
}

/* TARJETAS DE VUELO */
.flights-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.flight-card {
  background-color: var(--bg-white);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
  animation: slideUp 0.4s ease-out;
}

.flight-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
  transform: translateY(-2px);
}

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

.flight-main-info {
  padding: 24px;
}

/* Filas de Itinerario (Ida o Regreso) */
.itinerary-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px dashed var(--border-color);
}

.itinerary-row:first-child {
  padding-top: 0;
}

.itinerary-row:last-child, .itinerary-row.no-border {
  border-bottom: none;
  padding-bottom: 0;
}

/* Aerolínea */
.airline-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.airline-logo-badge {
  width: 42px;
  height: 42px;
  border-radius: var(--border-radius);
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 14px;
  color: var(--primary);
}

.airline-logo-badge:has(img) {
  width: 90px !important;
  height: 38px !important;
  background-color: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  border-radius: 8px !important;
}

.airline-logo-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 3px 6px;
  border-radius: inherit;
  display: block;
}

/* Logos temáticos por aerolínea */
.airline-logo-badge.IB { background-color: #E01A22; color: #ffffff; border-color: #E01A22; }
.airline-logo-badge.AM { background-color: #0F2042; color: #ffffff; border-color: #0F2042; }
.airline-logo-badge.LH { background-color: #00266B; color: #FFCC00; border-color: #00266B; }
.airline-logo-badge.DL { background-color: #E01933; color: #ffffff; border-color: #E01933; }
.airline-logo-badge.AF { background-color: #002395; color: #ffffff; border-color: #002395; }
.airline-logo-badge.BA { background-color: #0A1B3F; color: #ffffff; border-color: #0A1B3F; }
.airline-logo-badge.UA { background-color: #1A36B6; color: #ffffff; border-color: #1A36B6; }
.airline-logo-badge.AS { background-color: #01426a; color: #ffffff; border-color: #01426a; }
.airline-logo-badge.AA { background-color: #1e3a8a; color: #ffffff; border-color: #1e3a8a; }
.airline-logo-badge.AY { background-color: #0b1c3f; color: #ffffff; border-color: #0b1c3f; }


.airline-details {
  display: flex;
  flex-direction: column;
}

.airline-name {
  font-weight: 700;
  color: var(--text-dark);
  font-size: 14px;
}

.flight-code {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* Tiempos de Vuelo */
.flight-timeline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.time-block {
  display: flex;
  flex-direction: column;
}

.time-val {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
}

.iata-code {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 12px;
  color: var(--text-muted);
}

/* Duración y escalas */
.duration-block {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px;
  position: relative;
}

.duration-val {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.timeline-line-visual {
  width: 100%;
  height: 2px;
  background-color: var(--border-color);
  margin: 6px 0;
  position: relative;
}

.timeline-plane {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(90deg);
  background-color: var(--bg-white);
  padding: 0 4px;
  color: var(--text-muted);
  font-size: 11px;
}

.stops-val {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

.stops-val.direct {
  color: var(--accent);
}

.stops-val.stop {
  color: #f59e0b;
}

/* Columna de Precios y Reserva */
.flight-price-actions {
  background-color: #fafbfc;
  border-top: 1px solid var(--border-color);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}

.flight-badge-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  width: 100%;
}

.flight-badge-pill {
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-cabin {
  background-color: rgba(11, 25, 44, 0.08);
  color: var(--primary);
}

.badge-passengers {
  background-color: #f1f5f9;
  color: var(--text-muted);
}

.badge-saving-tag {
  background-color: var(--accent-light);
  color: var(--accent);
  margin-left: auto;
}

.prices-display {
  display: flex;
  flex-direction: column;
  align-self: flex-start;
}

.market-price-crossed {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-bottom: 2px;
}

.flytzi-price-highlight {
  font-family: 'Outfit', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--accent);
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.price-sub-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.btn-book {
  width: 100%;
  background-color: var(--primary);
  color: var(--bg-white);
  box-shadow: 0 4px 12px rgba(11, 25, 44, 0.15);
}

.btn-book:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
}

/* 6. SECCIÓN DE GARANTÍAS */
.guarantees-section {
  padding: 90px 0;
  background-color: var(--bg-white);
}

.guarantees-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.guarantee-card {
  background-color: var(--bg-light);
  border-radius: var(--border-radius);
  padding: 30px;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.guarantee-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.guarantee-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.guarantee-title {
  font-size: 20px;
  margin-bottom: 12px;
}

.guarantee-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* 7. CARRUSEL DE TESTIMONIOS */
.testimonials-section {
  padding: 90px 0;
  background: linear-gradient(to bottom, var(--bg-light), #f1f5f9);
}

.carousel-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.carousel-track-wrapper {
  overflow: hidden;
  width: 100%;
  border-radius: var(--border-radius);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
}

.testimonial-slide {
  min-width: 100%;
  box-sizing: border-box;
}

.testimonial-card {
  background-color: var(--bg-white);
  border-radius: var(--border-radius);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(11, 25, 44, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.user-name {
  font-size: 16px;
  font-weight: 700;
}

.user-role {
  font-size: 12px;
  color: var(--text-muted);
}

/* Mockup de pase de abordar */
.boarding-pass-preview {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
  color: var(--bg-white);
  border-radius: var(--border-radius);
  padding: 16px 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.boarding-pass-preview.secondary-pass {
  background: linear-gradient(135deg, #065f46 0%, #064e3b 100%);
}

.boarding-pass-preview.tertiary-pass {
  background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
}

.pass-header {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  opacity: 0.8;
  margin-bottom: 12px;
}

.pass-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.pass-code {
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  font-weight: 800;
  display: block;
}

.pass-city {
  font-size: 11px;
  opacity: 0.9;
}

.pass-plane {
  font-size: 18px;
  opacity: 0.8;
}

.pass-footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px dashed rgba(255, 255, 255, 0.3);
  padding-top: 8px;
  font-size: 10px;
  font-weight: 700;
}

.text-right {
  text-align: right;
}

.testimonial-text {
  font-size: 15px;
  line-height: 1.6;
  font-style: italic;
  color: var(--text-dark);
}

/* Controles del carrusel */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  color: var(--text-dark);
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.carousel-btn:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--bg-white);
}

.prev-btn { left: -22px; }
.next-btn { right: -22px; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #cbd5e1;
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background-color: var(--primary);
  width: 24px;
  border-radius: 4px;
}

/* 8. SECCIÓN METODOLOGÍA / CÓMO FUNCIONA */
.methodology-section {
  padding: 90px 0;
  background-color: var(--bg-white);
  border-top: 1px solid var(--border-color);
}

.methodology-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
  align-items: center;
}

.methodology-intro {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.step-item {
  display: flex;
  gap: 20px;
}

.step-num {
  font-family: 'Outfit', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: rgba(15, 157, 88, 0.2);
  line-height: 1;
}

.step-text h4 {
  font-size: 18px;
  margin-bottom: 6px;
}

.step-text p {
  font-size: 14px;
  color: var(--text-muted);
}

/* Lado visual */
.methodology-visual {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.trust-badge-large {
  background: linear-gradient(135deg, var(--primary) 0%, #1a3455 100%);
  color: var(--bg-white);
  border-radius: var(--border-radius);
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.trust-badge-large .badge-icon {
  font-size: 40px;
  color: var(--accent);
  margin-bottom: 12px;
}

.trust-badge-large h3 {
  font-size: 48px;
  color: var(--bg-white);
  margin-bottom: 6px;
}

.trust-badge-large p {
  font-size: 16px;
  font-weight: 600;
}

.badge-sub {
  font-size: 12px;
  color: #94a3b8;
  display: block;
  margin-top: 4px;
}

.card-security-preview {
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 24px;
}

.card-sec-header {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 12px;
  font-size: 15px;
}

.card-security-preview p {
  font-size: 13px;
  color: var(--text-muted);
}

/* 9. FOOTER */
.main-footer {
  background-color: var(--primary);
  color: #94a3b8;
  padding: 60px 0 40px 0;
  font-size: 14px;
}

.footer-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo {
  font-family: 'Outfit', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--bg-white);
  letter-spacing: 1.5px;
}

.footer-tagline {
  color: #94a3b8;
}

.footer-copy {
  font-size: 12px;
  color: #64748b;
  margin-top: 10px;
}

.footer-links-group h4, .footer-certifications h4 {
  color: var(--bg-white);
  font-size: 15px;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.footer-links-group ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links-group a {
  color: #94a3b8;
  text-decoration: none;
  transition: var(--transition);
}

.footer-links-group a:hover {
  color: var(--bg-white);
}

.cert-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.cert-logos span {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 12px;
  border-radius: 4px;
  color: var(--bg-white);
  font-size: 12px;
  font-weight: 600;
}

/* ==========================================================================
   10. MEDIA QUERIES (ADAPTABILIDAD RESPONSIVE - MOBILE FIRST COMPACTED)
   ========================================================================== */

/* DISPOSITIVOS DE PANTALLA MEDIANA (Mínimo 768px - TABLETS/ESCRITORIO MEDIANO) */
@media (min-width: 768px) {
  .hero-title {
    font-size: 56px;
  }
  
  .inputs-grid {
    grid-template-columns: 1fr auto 1fr 120px;
  }
  
  .selectors-grid {
    grid-template-columns: 180px 180px 1fr;
  }

  .btn-search {
    width: auto;
    padding: 14px 40px;
  }

  .guarantees-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-container {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

/* DISPOSITIVOS DE PANTALLA GRANDE (Mínimo 992px - DESKTOP) */
@media (min-width: 992px) {
  .inputs-grid {
    grid-template-columns: 1fr auto 1fr 160px 160px;
  }
  
  .selectors-grid {
    grid-template-columns: 200px 200px 1fr;
  }

  .flight-price-actions {
    flex-direction: row;
    padding: 24px;
  }

  .prices-display {
    align-self: center;
  }

  .btn-book {
    width: auto;
    padding: 12px 36px;
  }

  .methodology-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

/* ==========================================================================
   ADICIONES: ICONOS DE ORIGEN Y DESTINO (INPUTS Y TICKETS)
   ========================================================================== */

/* Posicionamiento de los iconos de avión dentro de los inputs */
.input-inner-icon {
  position: absolute;
  left: 16px;
  color: var(--text-muted);
  font-size: 16px;
  pointer-events: none;
  transition: var(--transition);
  z-index: 2;
}

.form-group input.with-icon {
  padding-left: 44px !important;
}

.form-group input.with-icon:focus ~ .input-inner-icon,
.input-wrapper:focus-within .input-inner-icon {
  color: var(--accent) !important;
}

/* Puntos de origen (círculo verde) y destino (anillo con borde) en el ticket */
.timeline-line-visual::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent); /* Punto Origen Verde Esmeralda */
  z-index: 2;
}

.timeline-line-visual::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--primary); /* Anillo Destino Navy */
  border: 2px solid var(--border-color);
  z-index: 2;
}

/* ==========================================================================
   FLOATING PRIVACY BADGE & MODAL STYLES (FINTECH STYLE)
   ========================================================================== */
.floating-privacy-badge {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(11, 25, 44, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #ffffff;
  padding: 12px 18px;
  border-radius: 30px;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 32px rgba(11, 25, 44, 0.25);
  cursor: pointer;
  z-index: 999;
  transition: all 0.3s ease;
}

.floating-privacy-badge:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 12px 40px rgba(16, 185, 129, 0.2);
  background: rgba(11, 25, 44, 0.95);
}

.floating-privacy-badge i {
  color: var(--accent);
  font-size: 14px;
}

/* Modal Backdrop */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(11, 25, 44, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 16px;
}

.modal-backdrop.active {
  display: flex;
  opacity: 1;
}

/* Modal Card */
.modal-card {
  background: #ffffff;
  border-radius: 16px;
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  box-shadow: 0 24px 64px rgba(11, 25, 44, 0.18);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.modal-backdrop.active .modal-card {
  transform: scale(1);
}

/* Modal Header */
.modal-header {
  padding: 20px 24px;
  border-bottom: 1.5px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-light);
}

.modal-header h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.modal-close {
  font-size: 28px;
  font-weight: 300;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  line-height: 1;
}

.modal-close:hover {
  color: var(--text-dark);
}

/* Modal Body */
.modal-body {
  padding: 24px;
  overflow-y: auto;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-dark);
}

.intro-text {
  font-size: 15px;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 20px;
}

.policy-section {
  margin-bottom: 20px;
}

.policy-section h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.policy-section h4 i {
  color: var(--accent);
}

.policy-section p {
  color: var(--text-muted);
  margin: 0;
}

/* Modal Footer */
.modal-footer {
  padding: 16px 24px;
  border-top: 1.5px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  background-color: var(--bg-light);
}

.modal-footer button {
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
}

/* Styles for stripe elements checkout inputs and boxes */
#stripe-payment-form input {
  font-family: 'Inter', sans-serif !important;
  font-weight: 500 !important;
  font-size: 14px !important;
  color: #32325d !important;
}

#stripe-payment-form input::placeholder {
  color: #aab7c4;
}

#stripe-payment-form input:focus {
  border-color: #6772e5 !important;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.08), 0 1px 0 0 rgba(110, 120, 240, 0.07) !important;
}

.booking-flight-summary, .stripe-billing-summary {
  font-family: 'Inter', sans-serif;
  line-height: 1.5;
}

.success-icon i {
  animation: scaleUpCheck 0.4s ease-out 0.4s both;
  opacity: 0;
}

@keyframes scaleUpCheck {
  0% {
    transform: scale(0.6);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes bounceIn {
  0% {
    transform: scale(0.3);
    opacity: 0;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
  70% {
    transform: scale(0.9);
    opacity: 0.9;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ==========================================================================
   NUEVA SECCIÓN: GUÍA DE RUTAS ACTIVAS Y DISPONIBLES (12 RUTAS ESTRELLA)
   ========================================================================== */
.routes-guide-section {
  padding: 80px 0;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.5) 0%, rgba(241, 245, 249, 0.8) 100%);
  border-bottom: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.routes-guide-section::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.routes-guide-section::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(11, 25, 44, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

.routes-table-wrapper {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--border-radius-lg);
  border: 1.5px solid rgba(226, 232, 240, 0.8);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  margin-top: 30px;
  transition: var(--transition);
}

.routes-table-wrapper:hover {
  box-shadow: 0 25px 50px -12px rgba(11, 25, 44, 0.08);
  border-color: rgba(16, 185, 129, 0.2);
}

.routes-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-family: 'Inter', sans-serif;
}

.routes-table th {
  background: var(--primary);
  color: var(--bg-white);
  padding: 18px 24px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.75px;
}

.routes-table th:first-child {
  border-top-left-radius: 18px;
}

.routes-table th:last-child {
  border-top-right-radius: 18px;
}

.routes-table td {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
  color: var(--text-main);
  font-size: 14.5px;
  transition: var(--transition);
}

.routes-table tr:last-child td {
  border-bottom: none;
}

.routes-table tr {
  transition: var(--transition);
}

.routes-table tr:hover {
  background-color: rgba(16, 185, 129, 0.03);
}

/* Celdas específicas */
.route-cell-airport {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--text-dark);
}

.route-cell-airport i {
  color: var(--accent);
  font-size: 16px;
  background: var(--accent-light);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.route-cell-direction {
  text-align: center;
  color: var(--accent);
  font-size: 18px;
  width: 60px;
}

.route-cell-direction i {
  animation: pulseArrow 2s infinite ease-in-out;
}

@keyframes pulseArrow {
  0%, 100% { transform: translateX(0) scale(1); opacity: 0.8; }
  50% { transform: translateX(3px) scale(1.1); opacity: 1; }
}

.badge-scan {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--primary-light);
  color: rgba(255, 255, 255, 0.9);
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 500;
}

.badge-scan i {
  color: #10b981;
  font-size: 10px;
  animation: pulseGreen 1.5s infinite alternate;
}

@keyframes pulseGreen {
  0% { transform: scale(0.8); opacity: 0.5; }
  100% { transform: scale(1.2); opacity: 1; }
}

.cabin-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.badge-cabin {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.badge-cabin.business {
  background-color: rgba(11, 25, 44, 0.08);
  color: var(--primary);
  border: 1px solid rgba(11, 25, 44, 0.15);
}

.badge-cabin.economy {
  background-color: var(--accent-light);
  color: var(--accent);
  border: 1px solid rgba(15, 157, 88, 0.15);
}

.saving-highlight {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  color: #10b981;
  font-size: 16px;
  background: linear-gradient(120deg, rgba(16, 185, 129, 0.12) 0%, rgba(16, 185, 129, 0.02) 100%);
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-block;
  border: 1px solid rgba(16, 185, 129, 0.15);
}

.btn-quick-select {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 8px;
  background-color: var(--accent);
  color: var(--bg-white);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-quick-select:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1.5px);
  box-shadow: 0 4px 8px rgba(15, 157, 88, 0.2);
}

/* DISEÑO ULTRA RESPONSIVO PARA MÓVILES */
@media (max-width: 992px) {
  .routes-table th {
    display: none;
  }
  
  .routes-table, .routes-table tbody, .routes-table tr, .routes-table td {
    display: block;
    width: 100%;
  }
  
  .routes-table tr {
    margin-bottom: 20px;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    border: 1.5px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 16px;
  }
  
  .routes-table tr:hover {
    background-color: var(--bg-white);
    border-color: rgba(16, 185, 129, 0.3);
  }
  
  .routes-table td {
    padding: 8px 0;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    text-align: right;
  }
  
  .routes-table td::before {
    content: attr(data-label);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
    margin-right: 15px;
  }
  
  .route-cell-airport {
    justify-content: flex-end;
    font-size: 13.5px;
  }
  
  .route-cell-direction {
    display: none !important;
  }
  
  .saving-highlight {
    font-size: 14px;
    padding: 2px 8px;
  }
  
  .btn-quick-select {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
    padding: 10px;
  }
}

/* ==========================================================================
   CORRECCIÓN GLOBAL DE OVERFLOW Y RESPONSIVIDAD MÓVIL
   ========================================================================== */

/* Evitar desborde horizontal en toda la plataforma */
html, body {
  max-width: 100% !important;
  overflow-x: hidden !important;
}

/* Responsividad para el Header y Navegación en Pantallas Pequeñas (Móviles) */
@media (max-width: 767px) {
  .header-container {
    height: 60px;
    padding: 0 16px;
  }

  .main-nav {
    display: none !important; /* Ocultar menú enlaces en móvil para evitar colisión de elementos */
  }

  .logo-text {
    font-size: 19px;
    letter-spacing: 1px;
  }

  .logo-tag {
    font-size: 7.5px;
    letter-spacing: 1px;
    margin-top: -2px;
  }

  .header-actions .btn {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 8px;
  }
}

/* Optimización extra del buscador en dispositivos muy pequeños */
@media (max-width: 576px) {
  .search-panel {
    padding: 20px 16px; /* Dar más espacio en pantalla reduciendo el padding interior */
  }
  
  .trip-type-tabs {
    margin-bottom: 15px;
    padding-bottom: 8px;
  }
  
  .tab-btn {
    padding: 6px 12px;
    font-size: 12.5px;
  }
}



