/* =====================================================
   CHINA 2026 — SISTEMA DE DISEÑO PREMIUM
   Expedición China · Ros & Miguel · Ago 2026
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400&family=Inter:wght@300;400;500;600;700&family=Noto+Serif+SC:wght@400;700&display=swap');

/* ─── VARIABLES ─────────────────────────────────────── */
:root {
  --navy-dark:   #060E1C;
  --navy:        #0A1628;
  --navy-mid:    #112240;
  --navy-card:   #1A2F4E;
  --navy-light:  #243B55;
  --gold:        #D4AF37;
  --gold-light:  #F0D060;
  --gold-dim:    #A8892A;
  --gold-pale:   rgba(212, 175, 55, 0.12);
  --gold-border: rgba(212, 175, 55, 0.25);
  --white:       #F8F9FA;
  --white-dim:   rgba(248, 249, 250, 0.65);
  --white-faint: rgba(248, 249, 250, 0.08);
  --red:         #E63946;
  --red-dark:    #C1121F;
  --red-pale:    rgba(230, 57, 70, 0.12);
  --red-border:  rgba(230, 57, 70, 0.4);
  --green:       #2DC653;
  --green-pale:  rgba(45, 198, 83, 0.12);
  --blue-accent: #4895EF;

  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans:  'Inter', system-ui, -apple-system, sans-serif;
  --font-zh:    'Noto Serif SC', serif;

  --nav-h: 68px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm:   0 2px 8px rgba(0,0,0,0.3);
  --shadow-card: 0 8px 32px rgba(0,0,0,0.45);
  --shadow-gold: 0 0 24px rgba(212,175,55,0.25);
  --shadow-hover:0 20px 60px rgba(0,0,0,0.55);

  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out:    cubic-bezier(0, 0, 0.2, 1);
}

/* ─── RESET & BASE ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--navy);
  color: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--gold); color: var(--navy-dark); }

a { color: var(--gold); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--gold-light); }

img { max-width: 100%; display: block; }

/* ─── SCROLLBAR ─────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--navy-dark); }
::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ─── TYPOGRAPHY HELPERS ────────────────────────────── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.section-label::before,
.section-label::after {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
}
.section-title span { color: var(--gold); }

.section-subtitle {
  font-size: 1rem;
  color: var(--white-dim);
  margin-top: 10px;
  max-width: 600px;
}

/* ─── LAYOUT ────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 768px) { .container { padding: 0 36px; } }
@media (min-width: 1200px) { .container { padding: 0 24px; } }

section { padding: clamp(70px, 9vw, 110px) 0; }

/* ─── NAVIGATION ────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

#nav.scrolled {
  background: rgba(6, 14, 28, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--gold-border), 0 4px 24px rgba(0,0,0,0.4);
}

.nav-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 768px) { .nav-inner { padding: 0 36px; } }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-gold);
}
.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.nav-logo-text .main { font-family: var(--font-serif); font-size: 1rem; font-weight: 700; color: var(--white); }
.nav-logo-text .sub  { font-size: 0.65rem; letter-spacing: 0.12em; color: var(--gold); text-transform: uppercase; }

.nav-links {
  display: none;
  align-items: center;
  gap: 4px;
  list-style: none;
}
@media (min-width: 900px) { .nav-links { display: flex; } }

.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  color: var(--white-dim);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
  background: var(--gold-pale);
}

.nav-alert-btn {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 50px;
  background: var(--red-pale);
  border: 1px solid var(--red-border);
  color: var(--red);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  text-decoration: none;
}
.nav-alert-btn:hover { background: rgba(230,57,70,0.22); transform: scale(1.04); color: var(--red); }
@media (min-width: 900px) { .nav-alert-btn { display: flex; } }

/* Language switcher */
.nav-lang-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 6px 13px;
  border-radius: 50px;
  background: rgba(212,175,55,0.1);
  border: 1px solid var(--gold-border);
  color: var(--gold);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.nav-lang-btn:hover { background: rgba(212,175,55,0.2); transform: scale(1.04); color: var(--gold-light); }


.nav-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
  background: transparent;
  border: none;
}
.nav-hamburger:hover { background: var(--white-faint); }
@media (min-width: 900px) { .nav-hamburger { display: none; } }

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s, width 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(6, 14, 28, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  padding: 20px;
  transform: translateY(-8px);
  opacity: 0;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  pointer-events: none;
  overflow-y: auto;
}
.nav-mobile.open {
  display: flex;
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.nav-mobile a {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white-dim);
  padding: 10px 20px;
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 320px;
  text-align: center;
  transition: color 0.2s, background 0.2s;
  flex-shrink: 0;
}
.nav-mobile a:hover { color: var(--gold); background: var(--gold-pale); }
.nav-mobile .mobile-alert {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 50px;
  background: var(--red-pale);
  border: 1px solid var(--red-border);
  color: var(--red);
  width: 100%;
  max-width: 320px;
  justify-content: center;
}

/* ─── HERO ──────────────────────────────────────────── */
#inicio {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6,14,28,0.25) 0%, rgba(6,14,28,0.65) 60%, var(--navy) 100%),
    url('./hero-bg.png') center/cover no-repeat;
  z-index: 0;
}

/* Lattice overlay */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg,   transparent, transparent 79px, rgba(212,175,55,0.04) 79px, rgba(212,175,55,0.04) 80px),
    repeating-linear-gradient(90deg,  transparent, transparent 79px, rgba(212,175,55,0.04) 79px, rgba(212,175,55,0.04) 80px);
  pointer-events: none;
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}
.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0;
  animation: floatParticle var(--dur, 8s) var(--delay, 0s) infinite ease-in-out;
}

@keyframes floatParticle {
  0%   { opacity: 0; transform: translateY(0) scale(1); }
  20%  { opacity: var(--op, 0.4); }
  80%  { opacity: var(--op, 0.4); }
  100% { opacity: 0; transform: translateY(-120px) scale(0.6); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 100px 20px 60px;
  max-width: 900px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  padding: 6px 16px;
  border: 1px solid var(--gold-border);
  border-radius: 50px;
  backdrop-filter: blur(8px);
  background: rgba(212,175,55,0.08);
  animation: fadeInDown 0.8s var(--ease) both;
}

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

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 7vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 20px;
  animation: fadeInUp 0.9s 0.15s var(--ease) both;
}

.hero-title .gold-text {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-dim) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

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

.hero-subtitle {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: var(--white-dim);
  max-width: 580px;
  margin: 0 auto 40px;
  animation: fadeInUp 0.9s 0.3s var(--ease) both;
}

/* Countdown */
.countdown-wrapper {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 44px;
  animation: fadeInUp 0.9s 0.45s var(--ease) both;
  flex-wrap: wrap;
}

.countdown-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(10, 22, 40, 0.7);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  min-width: 80px;
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}
.countdown-block::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.countdown-num {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 20px rgba(212,175,55,0.4);
  transition: transform 0.15s var(--ease-spring);
}
.countdown-num.flip { transform: scale(1.1); }

.countdown-label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white-dim);
  margin-top: 6px;
}
.countdown-sep {
  font-size: 2rem;
  color: var(--gold-border);
  align-self: center;
  padding-bottom: 12px;
}

/* Route pills */
.hero-route {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  animation: fadeInUp 0.9s 0.6s var(--ease) both;
}

.route-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 50px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--white-dim);
  transition: border-color 0.2s, background 0.2s;
  cursor: default;
}
.route-pill.origin   { border-color: var(--gold-border); color: var(--gold-light); background: var(--gold-pale); }
.route-pill.dest     { border-color: rgba(72,149,239,0.3); color: #90CAF9; background: rgba(72,149,239,0.08); }
.route-pill.return   { border-color: var(--gold-border); color: var(--gold-light); background: var(--gold-pale); }

.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--white-dim);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: fadeInUp 1s 1s var(--ease) both;
}
.scroll-mouse {
  width: 22px;
  height: 34px;
  border: 2px solid var(--gold-border);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 5px;
}
.scroll-mouse::after {
  content: '';
  width: 3px;
  height: 7px;
  background: var(--gold);
  border-radius: 2px;
  animation: scrollDot 1.6s infinite;
}
@keyframes scrollDot {
  0%, 100% { opacity: 1; transform: translateY(0); }
  50% { opacity: 0.3; transform: translateY(8px); }
}

/* ─── SECTION: DIGITAL ──────────────────────────────── */
#digital { background: var(--navy); }

.digital-progress-bar {
  background: var(--navy-card);
  border-radius: 50px;
  height: 8px;
  margin-bottom: 40px;
  overflow: hidden;
  position: relative;
}
.digital-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold-light));
  border-radius: 50px;
  transition: width 0.5s var(--ease);
  box-shadow: 0 0 12px rgba(212,175,55,0.5);
}
.progress-label {
  position: absolute;
  right: 0;
  top: -24px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold);
}

.digital-categories {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.digital-category-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 16px;
}
.digital-category-title .cat-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--gold-pale);
  border: 1px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.checklist-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 640px) { .checklist-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .checklist-grid.three { grid-template-columns: 1fr 1fr 1fr; } }

.check-card {
  background: var(--navy-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 20px;
  cursor: pointer;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s var(--ease), border-color 0.25s, background 0.25s;
  position: relative;
  overflow: hidden;
  user-select: none;
}
.check-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.check-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card), var(--shadow-gold); }

.check-card.done {
  background: rgba(212,175,55,0.07);
  border-color: rgba(212,175,55,0.5);
}
.check-card.done::before { transform: scaleX(1); }

.check-card-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.check-box {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 2px solid var(--gold-border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s, border-color 0.25s, transform 0.25s var(--ease-spring);
  margin-top: 2px;
}
.check-card.done .check-box {
  background: var(--gold);
  border-color: var(--gold);
  transform: scale(1.1);
}
.check-icon {
  font-size: 0.85rem;
  opacity: 0;
  transition: opacity 0.2s;
}
.check-card.done .check-icon { opacity: 1; }

.check-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--white);
  transition: color 0.2s;
}
.check-card.done .check-title { color: var(--gold-light); }

.check-body {
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--white-dim);
  line-height: 1.6;
  padding-left: 38px;
}
.check-body strong { color: var(--gold-light); font-weight: 600; }
.check-body .tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 50px;
  margin: 2px 2px 0 0;
  background: var(--navy-light);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--white-dim);
}
.check-body .tag.gold { background: var(--gold-pale); border-color: var(--gold-border); color: var(--gold-light); }
.check-body .tag.red  { background: var(--red-pale); border-color: var(--red-border); color: #FF8A95; }
.check-body .tag.blue { background: rgba(72,149,239,0.1); border-color: rgba(72,149,239,0.3); color: #90CAF9; }

/* ─── SECTION: ALERTAS ──────────────────────────────── */
#alertas { background: var(--navy-mid); }

.alert-banner {
  border: 1px solid var(--red-border);
  border-radius: var(--radius-xl);
  padding: 36px;
  background: linear-gradient(135deg, rgba(230,57,70,0.08) 0%, rgba(10,22,40,0.9) 100%);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--red-border), 0 20px 60px rgba(230,57,70,0.15);
}
.alert-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  padding: 1px;
  background: linear-gradient(135deg, var(--red) 0%, transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  animation: borderGlow 3s ease-in-out infinite;
}
@keyframes borderGlow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.alert-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.alert-header-icon {
  font-size: 2.2rem;
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}
.alert-header-text h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 700;
  color: var(--red);
  line-height: 1.2;
}
.alert-header-text p {
  font-size: 0.85rem;
  color: var(--white-dim);
  margin-top: 4px;
}

.alert-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 28px;
}
@media (min-width: 640px) { .alert-cards { grid-template-columns: 1fr 1fr; } }

.alert-card {
  background: rgba(6,14,28,0.7);
  border: 1px solid var(--red-border);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  gap: 14px;
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s;
}
.alert-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(230,57,70,0.2);
}

.alert-card-num {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 900;
  color: var(--red);
  opacity: 0.35;
  line-height: 1;
  flex-shrink: 0;
}
.alert-card-content h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}
.alert-card-content .ac-date {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--red);
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.alert-card-content p { font-size: 0.8rem; color: var(--white-dim); line-height: 1.55; }
.alert-card-content strong { color: var(--white); }
.alert-card-content .hotel-own {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #FF8A95;
  background: var(--red-pale);
  padding: 2px 8px;
  border-radius: 50px;
  border: 1px solid var(--red-border);
}

.golden-rule {
  background: linear-gradient(135deg, rgba(212,175,55,0.12), rgba(212,175,55,0.05));
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.golden-rule .gr-icon { font-size: 1.5rem; flex-shrink: 0; }
.golden-rule .gr-text h4 { font-weight: 700; font-size: 0.9rem; color: var(--gold); margin-bottom: 4px; }
.golden-rule .gr-text p { font-size: 0.82rem; color: var(--white-dim); line-height: 1.55; }

/* ─── SECTION: ITINERARIO ───────────────────────────── */
#itinerario { background: var(--navy); }

.timeline {
  position: relative;
  padding-left: 0;
}
@media (min-width: 768px) { .timeline { padding-left: 30px; } }

.timeline::before {
  content: '';
  display: none;
  position: absolute;
  left: 18px;
  top: 20px;
  bottom: 20px;
  width: 2px;
  background: linear-gradient(180deg, var(--gold) 0%, rgba(212,175,55,0.15) 100%);
}
@media (min-width: 768px) { .timeline::before { display: block; } }

.timeline-item {
  position: relative;
  margin-bottom: 14px;
}

.timeline-dot {
  display: none;
  position: absolute;
  left: -42px;
  top: 22px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--navy);
  border: 2px solid var(--gold);
  box-shadow: 0 0 12px rgba(212,175,55,0.4);
  z-index: 1;
  transition: background 0.2s, box-shadow 0.2s;
}
@media (min-width: 768px) { .timeline-dot { display: block; } }
.timeline-item.active .timeline-dot {
  background: var(--gold);
  box-shadow: 0 0 20px rgba(212,175,55,0.7);
}

.timeline-card {
  background: var(--navy-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.3s;
}
.timeline-card:hover { box-shadow: var(--shadow-card); }

.timeline-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  cursor: pointer;
  gap: 12px;
  transition: background 0.2s;
}
.timeline-card-header:hover { background: rgba(255,255,255,0.03); }

.tc-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.tc-date-badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-pale);
  border: 1px solid var(--gold-border);
  padding: 4px 10px;
  border-radius: 50px;
  white-space: nowrap;
  flex-shrink: 0;
}
.tc-date-badge.flight-badge { color: #90CAF9; background: rgba(72,149,239,0.1); border-color: rgba(72,149,239,0.3); }
.tc-date-badge.train-badge  { color: #A8E6CF; background: rgba(45,198,83,0.1); border-color: rgba(45,198,83,0.3); }
.tc-date-badge.alert-badge  { color: #FF8A95; background: var(--red-pale); border-color: var(--red-border); }

.tc-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tc-icon { font-size: 1.1rem; }

.tc-chevron {
  font-size: 0.85rem;
  color: var(--white-dim);
  transition: transform 0.3s var(--ease);
  flex-shrink: 0;
}
.timeline-item.open .tc-chevron { transform: rotate(180deg); }

.timeline-card-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}
.timeline-item.open .timeline-card-body { max-height: 900px; }

.timeline-card-body-inner {
  padding: 0 22px 22px;
  border-top: 1px solid var(--gold-border);
}

.day-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 16px;
}
@media (min-width: 640px) { .day-info-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .day-info-grid { grid-template-columns: repeat(3, 1fr); } }

.day-info-block {
  background: var(--navy-mid);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-sm);
  padding: 14px;
}
.day-info-block.highlight {
  border-color: var(--gold-border);
  background: var(--gold-pale);
}
.day-info-block.alert {
  border-color: var(--red-border);
  background: var(--red-pale);
}

.dib-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white-dim);
  margin-bottom: 6px;
}
.day-info-block.highlight .dib-label { color: var(--gold); }
.day-info-block.alert .dib-label { color: var(--red); }

.dib-value { font-size: 0.88rem; color: var(--white); line-height: 1.5; }
.dib-value strong { color: var(--gold-light); font-weight: 600; }
.dib-value a.trip-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  padding: 5px 12px;
  border-radius: 50px;
  border: 1px solid var(--gold-border);
  background: var(--gold-pale);
  transition: background 0.2s, transform 0.2s;
}
.dib-value a.trip-link:hover { background: rgba(212,175,55,0.2); transform: scale(1.04); }
.dib-value a.doc-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  font-size: 0.78rem;
  font-weight: 500;
  color: #90CAF9;
  padding: 4px 10px;
  border-radius: 50px;
  border: 1px solid rgba(72,149,239,0.3);
  background: rgba(72,149,239,0.08);
  transition: background 0.2s;
}
.dib-value a.doc-link:hover { background: rgba(72,149,239,0.18); }

.day-schedule {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sched-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.85rem;
}
.sched-time {
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
  min-width: 55px;
  font-variant-numeric: tabular-nums;
}
.sched-desc { color: var(--white-dim); line-height: 1.55; }
.sched-desc strong { color: var(--white); }
.sched-desc em { color: var(--gold-light); font-style: normal; }

/* ─── SECTION: SEGURO ───────────────────────────────── */
#seguro { background: var(--navy-mid); }

.insurance-card {
  background: linear-gradient(135deg, var(--navy-card) 0%, rgba(26,47,78,0.8) 100%);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-xl);
  padding: clamp(16px, 4.5vw, 48px);
  box-shadow: var(--shadow-card), var(--shadow-gold);
  position: relative;
  overflow: hidden;
}
.insurance-card::after {
  content: '⚔';
  position: absolute;
  right: -20px;
  top: -20px;
  font-size: 10rem;
  opacity: 0.03;
  pointer-events: none;
}

.ins-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--gold-border);
}
.ins-title { font-family: var(--font-serif); font-size: 1.6rem; font-weight: 700; color: var(--white); }
.ins-title span { color: var(--gold); }
.ins-badge {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 50px;
  background: var(--gold-pale);
  border: 1px solid var(--gold-border);
  color: var(--gold-light);
}

.ins-phone {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--gold-pale);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 16px 22px;
  margin-bottom: 28px;
}
.ins-phone-icon { font-size: 1.6rem; }
.ins-phone-text .label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.ins-phone-text .number { font-family: var(--font-serif); font-size: 1.35rem; font-weight: 700; color: var(--white); }
.ins-phone-text .sub { font-size: 0.75rem; color: var(--white-dim); }

.coverage-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 28px;
}
@media (min-width: 480px) { .coverage-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .coverage-grid { grid-template-columns: 1fr 1fr 1fr; } }

.coverage-item {
  background: var(--navy-mid);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  padding: 18px;
  transition: border-color 0.2s, transform 0.2s var(--ease-spring);
}
.coverage-item:hover { border-color: var(--gold-border); transform: translateY(-3px); }
.cov-icon { font-size: 1.5rem; margin-bottom: 10px; }
.cov-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--white-dim); margin-bottom: 4px; }
.cov-amount { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 700; color: var(--gold-light); }
.cov-note { font-size: 0.72rem; color: var(--white-dim); margin-top: 4px; line-height: 1.4; }

.ins-doc-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 12px 24px;
  border-radius: 50px;
  background: var(--gold);
  color: var(--navy-dark);
  transition: background 0.2s, transform 0.2s var(--ease-spring), box-shadow 0.2s;
  box-shadow: var(--shadow-gold);
}
.ins-doc-btn:hover { background: var(--gold-light); transform: scale(1.04); color: var(--navy-dark); }

/* ─── SECTION: FOTOS ────────────────────────────────── */
#fotos { background: var(--navy); }

.photo-city-group { margin-bottom: 48px; }
.photo-city-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.photo-city-name {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
}
.photo-city-divider {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-border), transparent);
}

.photo-spots-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) { .photo-spots-grid { grid-template-columns: 1fr 1fr; } }

.photo-spot-card {
  background: var(--navy-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
}
.photo-spot-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }

.photo-spot-header {
  background: linear-gradient(135deg, var(--navy-mid), var(--navy-card));
  padding: 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border-bottom: 1px solid var(--gold-border);
}
.photo-spot-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold-pale);
  border: 1px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.photo-spot-title h4 { font-weight: 700; font-size: 0.95rem; color: var(--white); margin-bottom: 4px; }
.photo-spot-title .loc { font-size: 0.75rem; color: var(--gold); font-weight: 500; }

.photo-spot-body {
  padding: 18px 20px;
}
.photo-tip-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 8px;
}
.photo-tip-text { font-size: 0.83rem; color: var(--white-dim); line-height: 1.65; }
.photo-tip-text strong { color: var(--gold-light); font-weight: 600; }

.photo-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.photo-tag {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 50px;
  background: var(--navy-light);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--white-dim);
}
.photo-tag.gold { background: var(--gold-pale); border-color: var(--gold-border); color: var(--gold-light); }
.photo-tag.blue { background: rgba(72,149,239,0.1); border-color: rgba(72,149,239,0.3); color: #90CAF9; }

/* ─── SECTION: RECURSOS POR CIUDAD ─────────────────── */
#recursos { background: var(--navy-mid); }

.recursos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 640px)  { .recursos-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .recursos-grid { grid-template-columns: repeat(3, 1fr); } }

.ciudad-card {
  background: var(--navy-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s;
  scroll-margin-top: 90px;
}
.ciudad-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

.ciudad-card-header {
  padding: 18px 20px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--gold-border);
  background: linear-gradient(135deg, var(--navy-mid), var(--navy-card));
}
.ciudad-emoji { font-size: 1.6rem; flex-shrink: 0; }
.ciudad-info h3 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}
.ciudad-info .zh-name {
  font-family: var(--font-zh), serif;
  font-size: 0.8rem;
  color: var(--gold);
  margin-top: 2px;
}

.ciudad-card-body { padding: 16px 20px 20px; }

.recurso-group { margin-bottom: 14px; }
.recurso-group:last-child { margin-bottom: 0; }

.recurso-group-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white-dim);
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.recurso-group-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.07);
}

.recurso-links { display: flex; flex-wrap: wrap; gap: 6px; }

.recurso-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 50px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s var(--ease-spring);
  white-space: nowrap;
}
.recurso-btn:hover { transform: scale(1.05); }
.recurso-btn.es     { background:rgba(198,40,40,0.12);  border:1px solid rgba(198,40,40,0.35);  color:#EF9A9A; }
.recurso-btn.es:hover  { background:rgba(198,40,40,0.22);  color:#FFCDD2; }
.recurso-btn.en     { background:rgba(25,118,210,0.12); border:1px solid rgba(25,118,210,0.35); color:#90CAF9; }
.recurso-btn.en:hover  { background:rgba(25,118,210,0.22); color:#BBDEFB; }
.recurso-btn.metro  { background:rgba(56,142,60,0.12);  border:1px solid rgba(56,142,60,0.35);  color:#A5D6A7; }
.recurso-btn.metro:hover{ background:rgba(56,142,60,0.22); color:#C8E6C9; }
.recurso-btn.web    { background:var(--gold-pale);      border:1px solid var(--gold-border);    color:var(--gold-light); }
.recurso-btn.web:hover { background:rgba(212,175,55,0.22); color:var(--gold-light); }
.recurso-btn.folleto{ background:rgba(123,31,162,0.12); border:1px solid rgba(123,31,162,0.35);color:#CE93D8; }
.recurso-btn.folleto:hover{ background:rgba(123,31,162,0.22); color:#E1BEE7; }

/* ─── FOOTER ────────────────────────────────────────── */
footer {
  background: var(--navy-dark);
  border-top: 1px solid var(--gold-border);
  padding: 40px 0;
  text-align: center;
}
.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 10px;
}
.footer-sub { font-size: 0.8rem; color: var(--white-dim); margin-bottom: 20px; }
.footer-bottom { font-size: 0.72rem; color: rgba(255,255,255,0.25); }
.footer-zh { font-family: var(--font-zh); font-size: 1.1rem; color: rgba(212,175,55,0.3); margin-top: 14px; letter-spacing: 0.3em; }

/* ─── ANIMATE ON SCROLL ─────────────────────────────── */
.anim-fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.anim-fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.anim-delay-1 { transition-delay: 0.1s; }
.anim-delay-2 { transition-delay: 0.2s; }
.anim-delay-3 { transition-delay: 0.3s; }
.anim-delay-4 { transition-delay: 0.4s; }
.anim-delay-5 { transition-delay: 0.5s; }

/* ─── UTILITY ───────────────────────────────────────── */
.mt-4  { margin-top:  4px; }
.mt-8  { margin-top:  8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-16 { margin-bottom: 16px; }
.mb-32 { margin-bottom: 32px; }
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.flex-center { display: flex; align-items: center; justify-content: center; }

/* ─── PENDING TRAIN BLOCK ───────────────────────────── */
.day-info-block.pending-train {
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.06);
  animation: pendingPulse 3s ease-in-out infinite;
}

@keyframes pendingPulse {
  0%, 100% { border-color: rgba(251, 191, 36, 0.35); }
  50%       { border-color: rgba(251, 191, 36, 0.65); box-shadow: 0 0 12px rgba(251,191,36,0.15); }
}

.pending-tag {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 50px;
  background: rgba(251,191,36,0.15);
  border: 1px solid rgba(251,191,36,0.4);
  color: #FCD34D;
  vertical-align: middle;
  margin-left: 4px;
}

.pending-field {
  font-style: normal;
  color: #FCD34D;
  font-weight: 500;
  background: rgba(251,191,36,0.1);
  padding: 0 5px;
  border-radius: 4px;
  border: 1px dashed rgba(251,191,36,0.3);
  font-size: 0.82rem;
}

.day-info-block.pending-train .dib-label {
  color: #FCD34D;
}
.day-info-block.pending-train .dib-value {
  line-height: 1.8;
}

/* ─── TOOLTIP ───────────────────────────────────────── */
[data-tooltip] { position: relative; }
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy-dark);
  color: var(--white);
  font-size: 0.72rem;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gold-border);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 100;
}
[data-tooltip]:hover::after { opacity: 1; }

/* ─── INTERACTIVE ROUTE PILLS & SHOPPING INFO ───────── */
a.route-pill {
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s var(--ease-spring), border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
a.route-pill:hover {
  transform: translateY(-2px) scale(1.04);
}
a.route-pill.dest:hover {
  border-color: #90CAF9;
  background: rgba(72,149,239,0.16);
  box-shadow: 0 4px 12px rgba(72,149,239,0.2);
}

.shopping-info {
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 10px 14px;
}
.shopping-info-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.76rem;
  color: var(--white-dim);
  line-height: 1.4;
  margin-bottom: 6px;
}
.shopping-info-item:last-child {
  margin-bottom: 0;
}
.shopping-info-item .icon {
  flex-shrink: 0;
  font-size: 0.85rem;
}
.shopping-info-item .details {
  flex: 1;
}
.shopping-info-item strong {
  color: var(--gold-light);
  font-weight: 600;
}

.day-weather-bar {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 50px;
  padding: 5px 16px;
  margin-top: 18px;
  font-size: 0.76rem;
  color: var(--white-dim);
}
.day-weather-bar span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.day-weather-bar span:first-child {
  color: var(--gold-light);
  font-weight: 700;
  border-right: 1px solid rgba(255,255,255,0.1);
  padding-right: 12px;
}
/* ─── SECTION: MAPA DE RUTA ─────────────────────────── */
#mapa {
  background: var(--navy-mid);
}

.map-container {
  background: var(--navy-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-card), var(--shadow-gold);
  overflow: hidden;
  position: relative;
}

.map-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 62.5%; /* 8:5 aspect ratio */
  height: 0;
}

.china-map-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.china-outline {
  fill: rgba(10, 22, 40, 0.6); /* Semi-transparent navy so it has a clear solid shape */
  stroke: rgba(212, 175, 55, 0.25); /* Clearly visible golden dotted border */
  stroke-width: 1.5;
  stroke-dasharray: 6 4;
}

.route-line {
  fill: none;
  stroke: rgba(212, 175, 55, 0.12); /* faint path before travel */
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.8;
  transition: stroke-dashoffset 1.4s var(--ease), stroke 0.4s, opacity 0.4s, filter 0.4s;
}

/* Sequential path drawing when container has .animated */
.map-container.animated .route-line {
  stroke-dashoffset: 0 !important;
  stroke: var(--gold);
  opacity: 0.95;
  filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.75));
}

.map-container.animated .arc-1 { transition-delay: 0s; }
.map-container.animated .arc-2 { transition-delay: 1.4s; }
.map-container.animated .arc-3 { transition-delay: 2.5s; }
.map-container.animated .arc-4 { transition-delay: 3.2s; }
.map-container.animated .arc-5 { transition-delay: 4.3s; }

.city-node {
  cursor: pointer;
}

.city-node .dot {
  fill: var(--navy-dark);
  stroke: var(--gold);
  stroke-width: 3;
  transition: r 0.35s var(--ease-spring), fill 0.35s, filter 0.35s;
}

.city-node .ping {
  fill: var(--gold);
  opacity: 0;
  transform-origin: center;
}

.map-container.animated .city-node .ping {
  animation: pingPulse 2s infinite ease-out;
}

.map-container.animated .city-node[data-city="shanghai"] .ping { animation-delay: 0s; }
.map-container.animated .city-node[data-city="zhangjiajie"] .ping { animation-delay: 1.4s; }
.map-container.animated .city-node[data-city="chongqing"] .ping { animation-delay: 2.5s; }
.map-container.animated .city-node[data-city="chengdu"] .ping { animation-delay: 3.2s; }
.map-container.animated .city-node[data-city="xian"] .ping { animation-delay: 4.3s; }
.map-container.animated .city-node[data-city="beijing"] .ping { animation-delay: 5.7s; }

@keyframes pingPulse {
  0% { transform: scale(0.3); opacity: 0.8; }
  80% { transform: scale(1.8); opacity: 0; }
  100% { transform: scale(1.8); opacity: 0; }
}

.city-node:hover .dot,
.city-node.active .dot {
  fill: var(--gold-light);
  stroke: var(--white);
  r: 9;
  filter: drop-shadow(0 0 6px var(--gold));
}

.map-label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  fill: var(--white-dim);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s, fill 0.3s;
}

.map-container.animated .map-label { opacity: 0.75; }
.map-container.animated text:hover { fill: var(--gold); }

.map-tooltip {
  position: absolute;
  background: rgba(6, 14, 28, 0.95);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 16px;
  width: 250px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 15px rgba(212,175,55,0.15);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s var(--ease-spring);
  z-index: 10;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: translate(-50%, -100%) scale(0.9);
}

.map-tooltip.open {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%, -100%) scale(1);
}

.tooltip-city {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 2px;
}

.tooltip-date {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.tooltip-desc {
  font-size: 0.8rem;
  color: var(--white-dim);
  line-height: 1.45;
  margin-bottom: 12px;
}

.tooltip-btn {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-light);
  transition: transform 0.2s;
  text-decoration: none;
}
.tooltip-btn:hover {
  color: var(--gold);
  transform: translateX(4px);
}

/* ─── ADDITIONAL RESPONSIVE & MOBILE POLISH ─────────── */
@media (max-width: 480px) {
  /* Global typography adjustments */
  body {
    font-size: 15px;
  }
  
  /* Timeline Header spacing & size reduction to prevent wrapping */
  .timeline-card-header {
    padding: 12px 14px;
    gap: 8px;
  }
  .tc-left {
    gap: 8px;
  }
  .tc-title {
    font-size: 0.82rem;
  }
  .tc-date-badge {
    padding: 3px 8px;
    font-size: 0.65rem;
  }
  .timeline-card-body-inner {
    padding: 0 14px 14px;
  }
  .day-schedule {
    margin-top: 12px;
    gap: 8px;
  }
  .sched-item {
    font-size: 0.8rem;
    gap: 8px;
  }
  .sched-time {
    min-width: 45px;
  }
  
  /* Button text wrapping / full-width doc links on mobile */
  .dib-value a.doc-link,
  .dib-value a.trip-link {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }
}

@media (max-width: 400px) {
  /* Countdown grid sizing on extremely narrow screens */
  .countdown-wrapper {
    gap: 6px;
    margin-bottom: 24px;
  }
  .countdown-block {
    padding: 8px 10px;
    min-width: 60px;
  }
  .countdown-num {
    font-size: 1.4rem;
  }
  .countdown-label {
    font-size: 0.55rem;
    margin-top: 4px;
  }
  .countdown-sep {
    font-size: 1.2rem;
    padding-bottom: 6px;
  }
  
  /* Route pills in hero */
  .hero-route {
    gap: 4px;
  }
  .route-pill {
    font-size: 0.72rem;
    padding: 4px 10px;
  }
}

@media (max-height: 600px) and (orientation: landscape) {
  /* Mobile menu fixes for landscape mode on short devices */
  .nav-mobile {
    padding: 10px;
    gap: 2px;
  }
  .nav-mobile a {
    font-size: 0.95rem;
    padding: 6px 12px;
  }
  .nav-mobile .mobile-alert {
    margin-top: 6px;
    padding: 6px 12px;
    font-size: 0.75rem;
  }
}

