* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
  scroll-padding-top: 76px;
}

body {
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: linear-gradient(180deg, #F7EBCB 0%, #C9DFF2 100%);
  color: #222;
  min-height: 100vh;
  position: relative;
}

.bg-decor {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-decor-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.55;
  will-change: transform;
  transform: scale(1.1);
}

header, main.hero {
  position: relative;
  z-index: 1;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  background: #fff;
  border-bottom: 1px solid #E2E5E9;
}

header .logo {
  font-size: 18px;
  font-weight: 700;
  color: #222;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 6px;
}

.hero-logo {
  width: 260px;
  height: auto;
  margin-top: 32px;
  border-radius: 12px;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: #2563EB;
  color: #fff;
}
.btn-primary:hover {
  background: #1D4ED8;
}

.btn-secondary {
  background: transparent;
  color: #2563EB;
  border: 1px solid #2563EB;
}
.btn-secondary:hover {
  background: #EFF4FF;
}

main.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 20px;
}

main.hero h1 {
  font-size: 32px;
  margin-bottom: 12px;
}

main.hero p {
  color: #666;
  font-size: 15px;
  max-width: 420px;
}

/* Formularios (login / registro) */
.form-wrap {
  max-width: 380px;
  margin: 60px auto;
  background: #fff;
  border: 1px solid #E2E5E9;
  border-radius: 8px;
  padding: 32px;
  position: relative;
  z-index: 1;
}

.form-wrap h1 {
  font-size: 22px;
  margin-bottom: 6px;
}

.form-wrap p.sub {
  color: #666;
  font-size: 13px;
  margin-bottom: 20px;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.field input,
.field select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #D1D5DB;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: #222;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: #2563EB;
}

.form-wrap .btn {
  width: 100%;
  padding: 12px;
  margin-top: 4px;
}

.switch-link {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: #666;
}
.switch-link a {
  color: #2563EB;
  text-decoration: none;
}
.switch-link a:hover {
  text-decoration: underline;
}

.msg {
  display: none;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 16px;
}
.msg.error {
  background: #FEF2F2;
  color: #B91C1C;
  border: 1px solid #FCA5A5;
}
.msg.success {
  background: #F0FDF4;
  color: #15803D;
  border: 1px solid #86EFAC;
}

/* ===== Dashboard / navbar ===== */

.navbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 16px 40px;
  background: #fff;
  border-bottom: 1px solid #E2E5E9;
  position: sticky;
  top: 0;
  z-index: 50;
  gap: 24px;
  min-height: 76px;
}

.nav-brand {
  font-size: 18px;
  font-weight: 700;
  color: #22303D;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  justify-self: start;
}

.nav-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  justify-self: center;
}

.nav-link {
  font-size: 14px;
  font-weight: 600;
  color: #5B6B78;
  text-decoration: none;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}

.nav-link:hover {
  color: #2E6DA4;
}

.nav-link.active {
  color: #2E6DA4;
  border-bottom-color: #6FA8DC;
}

.nav-user-wrap {
  justify-self: end;
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.nav-greeting {
  font-size: 14px;
  font-weight: 600;
  color: #22303D;
}

@media (max-width: 860px) {
  .navbar {
    grid-template-columns: 1fr auto;
    row-gap: 12px;
  }
  .nav-links {
    grid-column: 1 / -1;
    justify-self: center;
    order: 3;
  }
}

.snap-section {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  min-height: calc(100vh - 76px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.scroll-down {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 46px;
  border: 2px solid #6FA8DC;
  border-radius: 16px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-down span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #2E6DA4;
  animation: scroll-down-dot 1.6s ease-in-out infinite;
}

@keyframes scroll-down-dot {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  70% { opacity: 1; }
  100% { opacity: 0; transform: translateY(16px); }
}

/* ===== Observer deck (Hero / Ofertas / Destinos / Experiencia) ===== */

.observer-stage {
  position: relative;
  height: calc(100vh - var(--deck-offset, 76px));
  min-height: 480px;
  overflow: hidden;
  z-index: 1;
}

.obs-section {
  position: absolute;
  inset: 0;
  visibility: visible;
}

.obs-outer,
.obs-inner {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.obs-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 20px;
}

.obs-bg > * {
  width: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: auto 0;
}

.clip-text {
  overflow: hidden;
}

/* Dentro del deck el contenido debe caber en una sola pantalla,
   así que recortamos paddings/tamaños respecto a la versión "scrolleable" */
.obs-section .hero-full {
  padding: 20px 20px 10px;
}

.obs-section .hero-title {
  font-size: clamp(28px, 4.2vw, 46px);
}

.obs-section .stats-row {
  gap: clamp(24px, 5vw, 64px);
  margin-top: 12px;
}

.obs-section .scroll-down {
  position: static;
  transform: none;
  margin: 26px auto 0;
}

.obs-section .offers-section,
.obs-section .destinos-section {
  padding-top: 0;
  padding-bottom: 0;
  width: 100%;
}

.obs-bg > .experience-section {
  width: 100%;
  max-width: 1100px;
  min-height: 0;
  align-self: center;
  margin: 0 auto;
  padding: 40px 40px;
  border-radius: 20px;
}

.obs-section .offers-header,
.obs-section .section-heading {
  margin-bottom: 16px;
}

.obs-section .offers-title,
.obs-section .section-title {
  font-size: clamp(22px, 2.6vw, 28px);
}

.obs-section .offers-grid {
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.obs-section .destinos-grid {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: 270px;
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 4px 22px;
  margin-top: 6px;
  scrollbar-width: thin;
}

.obs-section .experience-grid {
  gap: 14px;
}

.obs-section .dest-image {
  height: 140px;
}

.obs-section .offer-image {
  height: 100px;
}

.obs-section .dest-desc {
  min-height: 0;
}

.obs-section .experience-card {
  padding: 18px 18px;
}

.obs-section .experience-icon {
  font-size: 20px;
  margin-bottom: 8px;
}

.obs-section .experience-desc {
  font-size: 12px;
  line-height: 1.5;
}

.deck-tight .obs-section .offers-grid .offer-card:nth-child(n+4) {
  display: none;
}
.deck-tight .obs-section .experience-grid {
  grid-template-columns: repeat(3, 1fr);
}

/* ===== Hero (dashboard) ===== */

main {
  position: relative;
  z-index: 1;
}

.hero-full {
  text-align: center;
  padding: 90px 20px 60px;
  position: relative;
  z-index: 1;
}

.eyebrow-pill {
  display: inline-block;
  background: #EAF3FC;
  color: #2E6DA4;
  border: 1px solid #BFDBF3;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  color: #22303D;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-title em {
  font-style: italic;
  color: #4A90D9;
  font-weight: 600;
}

.hero-sub {
  max-width: 620px;
  margin: 0 auto 44px;
  color: #5B6B78;
  font-size: 16px;
  line-height: 1.6;
}

.stats-row {
  display: flex;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
}

.stat-num {
  font-size: 30px;
  font-weight: 700;
  color: #2E6DA4;
}

.stat-label {
  font-size: 13px;
  color: #5B6B78;
  margin-top: 4px;
}

/* ===== Search card ===== */

.search-card{
  position: sticky;
  top: 76px;
  z-index: 45;

  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 10px 20px;

  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);

  border-bottom: 1px solid #E2E5E9;
  box-shadow: 0 8px 22px rgba(0,0,0,.08);
  border-radius: 0;

  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.search-toggle {
  display: inline-flex;
  background: #F0F4F8;
  border-radius: 8px;
  padding: 3px;
  margin-bottom: 0;
  flex: 0 0 auto;
}

.toggle-btn {
  border: none;
  background: transparent;
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #5B6B78;
  cursor: pointer;
  white-space: nowrap;
}

.toggle-btn.active {
  background: #6FA8DC;
  color: #fff;
}

#search-form {
  display: flex;
  align-items: end;
  gap: 10px;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  min-width: 0;
}

.search-grid {
  display: flex;
  align-items: end;
  gap: 10px;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  min-width: 0;
}

.search-grid .field {
  margin-bottom: 0;
  flex: 1 1 110px;
  min-width: 92px;
}

.search-grid .field label {
  font-size: 10px;
  margin-bottom: 3px;
  white-space: nowrap;
}

.search-grid .field input,
.search-grid .field select {
  padding: 7px 9px;
  font-size: 13px;
}

.search-btn {
  height: 34px;
  padding: 0 20px;
  flex: 0 0 auto;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .hero-title {
    font-size: 36px;
  }
}

@media (max-width: 560px) {
  .search-card {
    padding: 10px 16px;
    gap: 10px;
  }
  .search-grid {
    gap: 8px;
  }
  .search-grid .field {
    min-width: 84px;
  }
  .stats-row {
    gap: 32px;
  }
}

/* ===== Ofertas y descuentos ===== */

.offers-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

.offers-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.offers-eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #2E6DA4;
  margin-bottom: 6px;
}

.offers-title {
  font-size: 28px;
  font-weight: 700;
  color: #22303D;
}

.offers-nav {
  display: flex;
  gap: 10px;
}

.offers-nav-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #BFDBF3;
  background: #fff;
  color: #2E6DA4;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.offers-nav-btn:hover {
  background: #EAF3FC;
}

.offers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.offer-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 14px 30px -18px rgba(46, 109, 164, 0.35);
  border: 1px solid #E2E5E9;
}

.offer-image {
  height: 130px;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 12px;
}

.offer-image-1 { background: linear-gradient(135deg, #4A90D9, #22303D); }
.offer-image-2 { background: linear-gradient(135deg, #6FA8DC, #2E6DA4); }
.offer-image-3 { background: linear-gradient(135deg, #A9CBEC, #2E6DA4); }
.offer-image-4 { background: linear-gradient(135deg, #2E6DA4, #22303D); }

.offer-badge {
  background: #fff;
  color: #1D8A6C;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.offer-body {
  padding: 16px 18px 18px;
}

.offer-name {
  font-size: 15px;
  font-weight: 700;
  color: #22303D;
  margin-bottom: 4px;
}

.offer-route {
  font-size: 12px;
  color: #5B6B78;
  margin-bottom: 14px;
}

.offer-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.offer-desde {
  display: block;
  font-size: 11px;
  color: #5B6B78;
}

.offer-price {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #22303D;
}

.offer-arrow {
  color: #2E6DA4;
  font-size: 18px;
}

@media (max-width: 900px) {
  .offers-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .offers-grid {
    grid-template-columns: 1fr;
  }
}

.welcome-note {
  text-align: center;
  color: #5B6B78;
  font-size: 13px;
  padding-bottom: 40px;
}

/* ===== Encabezados de sección compartidos ===== */

.section-heading {
  max-width: 640px;
  margin: 0 auto 30px;
  text-align: center;
  padding: 0 24px;
}

.section-eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #2E6DA4;
  margin-bottom: 8px;
}

.section-title {
  font-size: 30px;
  font-weight: 700;
  color: #22303D;
  margin-bottom: 10px;
}

.section-sub {
  color: #5B6B78;
  font-size: 14px;
  line-height: 1.6;
}

.section-eyebrow-light {
  color: #A9CBEC;
}

.section-title-light {
  color: #fff;
}

/* ===== Destinos populares ===== */

.destinos-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

.destinos-filter {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.filter-btn {
  border: 1px solid #BFDBF3;
  background: #EAF3FC;
  color: #2E6DA4;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 999px;
  cursor: pointer;
}

.filter-btn.active {
  background: #2E6DA4;
  border-color: #2E6DA4;
  color: #fff;
}

.destinos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.dest-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 14px 30px -18px rgba(46, 109, 164, 0.35);
  border: 1px solid #E2E5E9;
}

.dest-image {
  height: 150px;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 12px;
}

.dest-image-1 { background: linear-gradient(135deg, #4A90D9, #22303D); }
.dest-image-2 { background: linear-gradient(135deg, #6FA8DC, #2E6DA4); }
.dest-image-3 { background: linear-gradient(135deg, #A9CBEC, #2E6DA4); }
.dest-image-4 { background: linear-gradient(135deg, #2E6DA4, #22303D); }
.dest-image-5 { background: linear-gradient(135deg, #8FBC6F, #35603F); }
.dest-image-6 { background: linear-gradient(135deg, #2E9E6B, #163B2C); }
.dest-image-7 { background: linear-gradient(135deg, #38BDF8, #0C4A6E); }
.dest-image-8 { background: linear-gradient(135deg, #D4A24E, #7C5A1E); }
.dest-image-9 { background: linear-gradient(135deg, #9B6DE0, #3F2166); }
.dest-image-10 { background: linear-gradient(135deg, #E0A458, #8A4B2E); }

.dest-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  color: #fff;
}

.dest-badge-popular { background: #2563EB; }
.dest-badge-discount { background: #1D8A6C; }
.dest-badge-neutral { background: #5B6B78; }
.dest-badge-nature { background: #2E9E6B; }

.dest-body {
  padding: 16px 18px 18px;
}

.dest-name {
  font-size: 16px;
  font-weight: 700;
  color: #22303D;
}

.dest-country {
  font-size: 12px;
  color: #5B6B78;
  margin-bottom: 8px;
}

.dest-desc {
  font-size: 12px;
  color: #5B6B78;
  line-height: 1.5;
  margin-bottom: 14px;
  min-height: 36px;
}

@media (max-width: 900px) {
  .destinos-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .destinos-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== La experiencia SkyPulse ===== */

.experience-section {
  background: linear-gradient(160deg, #2E6DA4, #172B3E);
  padding: 70px 32px;
  position: relative;
  z-index: 1;
}

.experience-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.experience-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 26px 24px;
}

.experience-icon {
  font-size: 26px;
  margin-bottom: 14px;
}

.experience-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.experience-desc {
  font-size: 13px;
  color: #C9DFF2;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .experience-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .experience-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Mi cuenta ===== */

.account-wrap {
  max-width: 720px;
  margin: 60px auto;
  padding: 0 20px 60px;
}

.account-header {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #fff;
  border: 1px solid #E2E5E9;
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 24px;
}

.account-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #2563EB;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.account-header h1 {
  font-size: 20px;
  margin-bottom: 2px;
}

.account-header .sub {
  margin-bottom: 0;
}

.account-logout {
  margin-left: auto;
}

.account-section {
  background: #fff;
  border: 1px solid #E2E5E9;
  border-radius: 12px;
  padding: 24px 28px;
}

.account-section h2 {
  font-size: 16px;
  margin-bottom: 16px;
}

.flights-empty {
  text-align: center;
  padding: 32px 16px;
  color: #5B6B78;
}

.flights-empty p {
  margin-bottom: 16px;
  font-size: 14px;
}

.flights-empty .btn {
  display: inline-block;
}

@media (max-width: 560px) {
  .account-header {
    flex-wrap: wrap;
  }
  .account-logout {
    margin-left: 0;
    width: 100%;
  }
}

/* ===== Fondo naturaleza (login / registro) ===== */

.auth-page {
  background:
    linear-gradient(160deg, rgba(6,26,20,.72) 0%, rgba(6,26,20,.45) 45%, rgba(6,26,20,.72) 100%),
    url('imagenes/auth-bg.jpg') center center / cover no-repeat fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

.auth-page header {
  background: rgba(11, 59, 46, 0.35);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.auth-page header .logo {
  color: #fff;
}

.auth-page .form-wrap {
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  border: none;
}

/* ===== Vuelos destacados ===== */

.vuelos-page-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}

.vuelos-page-wrap .section-heading {
  text-align: center;
}

.vuelos-filter-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.vuelos-filter-btn {
  border: 1px solid #E2E5E9;
  background: #fff;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #5B6B78;
  cursor: pointer;
}

.vuelos-filter-btn.active {
  background: #2563EB;
  border-color: #2563EB;
  color: #fff;
}

.vuelos-section {
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.vuelos-more {
  text-align: center;
  margin-top: 18px;
}

.vuelos-more-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: #2563EB;
  text-decoration: none;
  padding: 8px 4px;
}

.vuelos-more-link:hover {
  text-decoration: underline;
}

.flight-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.flight-card {
  position: relative;
  background: #fff;
  border: 1px solid #E2E5E9;
  border-radius: 12px;
  padding: 16px 20px;
}

.flight-badge {
  position: absolute;
  top: -11px;
  left: 20px;
  background: #F59E0B;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}

.flight-card-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.flight-airline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #222;
  flex: 0 0 auto;
  min-width: 90px;
}

.flight-airline-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #2563EB;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.flight-route {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1 1 260px;
}

.flight-time {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 12px;
  color: #5B6B78;
}

.flight-time strong {
  font-size: 18px;
  color: #222;
}

.flight-path {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #5B6B78;
}

.flight-line {
  width: 100%;
  height: 1px;
  background: #D6DCE2;
  position: relative;
}

.flight-line::before,
.flight-line::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #6FA8DC;
  transform: translateY(-50%);
}

.flight-line::before { left: 0; }
.flight-line::after { right: 0; }

.flight-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex: 0 0 auto;
  min-width: 130px;
  text-align: right;
}

.flight-price-label {
  font-size: 10px;
  color: #5B6B78;
}

.flight-price strong {
  font-size: 17px;
  color: #2563EB;
}

.flight-seats {
  font-size: 11px;
  color: #5B6B78;
}

.flight-select {
  flex: 0 0 auto;
  padding: 9px 20px;
  font-size: 13px;
}

.obs-section .vuelos-section {
  width: 100%;
}

.obs-section .flight-list {
  gap: 10px;
}

.obs-section .flight-card {
  padding: 12px 18px;
}

.deck-tight .obs-section .flight-list .flight-card:nth-child(n+3) {
  display: none;
}

@media (max-width: 700px) {
  .flight-card-row {
    justify-content: center;
    text-align: center;
  }
  .flight-price {
    align-items: center;
    text-align: center;
  }
  .flight-select {
    width: 100%;
  }
}

/* ===== Panel de administrador ===== */

.admin-page {
  background: #F4F6F8;
}

.admin-layout {
  display: flex;
  min-height: 100vh;
}

/* --- Sidebar --- */

.admin-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: linear-gradient(180deg, #14345C 0%, #0B2038 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 20px 16px;
}

.admin-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 16px;
}

.admin-brand-icon {
  font-size: 22px;
}

.admin-sidebar-brand strong {
  display: block;
  font-size: 15px;
}

.admin-sidebar-brand span {
  font-size: 11px;
  color: #9FB4CC;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.admin-nav-link {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: #C7D6E8;
  text-decoration: none;
  font-size: 14px;
}

.admin-nav-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.admin-nav-link.active {
  background: #2563EB;
  color: #fff;
  font-weight: 600;
}

.admin-sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 8px;
  margin-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.admin-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #2563EB;
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.admin-sidebar-user strong {
  display: block;
  font-size: 13px;
}

.admin-sidebar-user span {
  font-size: 11px;
  color: #9FB4CC;
  word-break: break-all;
}

.admin-logout-btn {
  width: 100%;
  margin-top: 10px;
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.admin-logout-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* --- Main --- */

.admin-main {
  flex: 1;
  min-width: 0;
  padding: 28px 32px 60px;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.admin-topbar h1 {
  font-size: 22px;
}

.admin-topbar p {
  font-size: 13px;
  color: #5B6B78;
  text-transform: capitalize;
}

.admin-search {
  border: 1px solid #E2E5E9;
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 13px;
  min-width: 220px;
}

/* --- Welcome banner --- */

.admin-welcome {
  background: linear-gradient(135deg, #14345C, #0B2038);
  color: #fff;
  border-radius: 14px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.admin-welcome-eyebrow {
  font-size: 12px;
  color: #9FB4CC;
  margin-bottom: 4px;
}

.admin-welcome h2 {
  font-size: 18px;
  font-weight: 600;
}

.admin-welcome-stats {
  display: flex;
  gap: 32px;
}

.admin-welcome-stats strong {
  display: block;
  font-size: 22px;
}

.admin-welcome-stats span {
  font-size: 11px;
  color: #9FB4CC;
}

/* --- Stat cards --- */

.admin-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.admin-card {
  background: #fff;
  border: 1px solid #E2E5E9;
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.admin-card-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 15px;
}

.admin-card-icon-money    { background: #2563EB; }
.admin-card-icon-flights  { background: #1D8A6C; }
.admin-card-icon-bookings { background: #E67E22; }
.admin-card-icon-users    { background: #6D5BD0; }

.admin-card-delta {
  font-size: 12px;
  font-weight: 700;
  color: #1D8A6C;
}

.admin-card strong {
  font-size: 22px;
  color: #222;
}

.admin-card span:last-child {
  font-size: 12px;
  color: #5B6B78;
}

/* --- Panels (chart + status) --- */

.admin-panels {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 18px;
}

.admin-panel {
  background: #fff;
  border: 1px solid #E2E5E9;
  border-radius: 14px;
  padding: 20px 22px;
}

.admin-panel-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
}

.admin-panel-header h3 {
  font-size: 15px;
}

.admin-panel-header span {
  font-size: 12px;
  color: #5B6B78;
}

.admin-chart {
  width: 100%;
  height: 160px;
}

.admin-chart rect {
  fill: #BFD6F2;
}

.admin-chart rect.admin-chart-bar-current {
  fill: #2563EB;
}

.admin-chart-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 10px;
  color: #5B6B78;
}

.admin-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #F0F2F4;
  font-size: 13px;
  color: #5B6B78;
}

.admin-status-row:last-child {
  border-bottom: none;
}

.admin-status-ok {
  color: #1D8A6C;
}

/* --- Reservas recientes (tabla) --- */

.admin-bookings {
  margin-top: 18px;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  white-space: nowrap;
}

.admin-table thead th {
  text-align: left;
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #5B6B78;
  border-bottom: 1px solid #E2E5E9;
}

.admin-table tbody td {
  padding: 13px 14px;
  border-bottom: 1px solid #F0F2F4;
  color: #222;
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

.admin-table tbody tr:hover td {
  background: #F8FAFC;
}

.admin-table td:first-child {
  color: #5B6B78;
  font-variant-numeric: tabular-nums;
  font-size: 12px;
}

.admin-table td:nth-child(2) {
  font-weight: 600;
  color: #14345C;
}

.admin-table td:nth-child(4) {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.admin-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.admin-badge-confirmada {
  background: rgba(29, 138, 108, 0.12);
  color: #1D8A6C;
}

.admin-badge-pendiente {
  background: rgba(230, 126, 34, 0.12);
  color: #E67E22;
}

.admin-badge-vuelo {
  background: rgba(37, 99, 235, 0.12);
  color: #2563EB;
}

@media (max-width: 640px) {
  .admin-table {
    font-size: 12px;
  }
  .admin-table thead th,
  .admin-table tbody td {
    padding: 10px;
  }
}

@media (max-width: 900px) {
  .admin-layout {
    flex-direction: column;
  }
  .admin-sidebar {
    width: 100%;
    flex-direction: row;
    align-items: center;
    overflow-x: auto;
  }
  .admin-sidebar-brand {
    border-bottom: none;
    margin-bottom: 0;
  }
  .admin-nav {
    flex-direction: row;
  }
  .admin-sidebar-user {
    display: none;
  }
  .admin-logout-btn {
    width: auto;
    margin-top: 0;
    margin-left: auto;
    flex-shrink: 0;
    padding: 8px 14px;
    font-size: 12px;
  }
  .admin-main {
    padding: 20px 16px 40px;
  }
  .admin-cards {
    grid-template-columns: 1fr 1fr;
  }
  .admin-panels {
    grid-template-columns: 1fr;
  }
}

/* ===== Footer ===== */

.site-footer {
  background: #172B3E;
  color: #C9DFF2;
  padding: 56px 40px 24px;
  position: relative;
  z-index: 1;
}

.footer-top {
  max-width: 1100px;
  margin: 0 auto 36px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-brand .nav-brand {
  margin-bottom: 12px;
}

.footer-about {
  font-size: 13px;
  color: #A9C4D8;
  line-height: 1.6;
  margin-bottom: 16px;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.social-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.footer-col h4 {
  color: #fff;
  font-size: 14px;
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  color: #A9C4D8;
  text-decoration: none;
  font-size: 13px;
  margin-bottom: 10px;
}

.footer-col a:hover {
  color: #fff;
}

.footer-contact {
  max-width: 1100px;
  margin: 0 auto 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 13px;
  color: #C9DFF2;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
}

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: #7E9AB0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 18px;
}

@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
}