/* ==========================================================================
   EXPEDICIÓN ADRIÁTICO - MASTER PORTAL STYLESHEET (AUDITED EXCELLENCE V2)
   Design System: Glassmorphism, Animated Map Simulator v2, Itinerary Timeline
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  /* Default Theme: Adriatic Night 🌌 */
  --bg-dark: #030712;
  --bg-surface: #0b1329;
  --bg-card: rgba(15, 23, 42, 0.75);
  --bg-card-hover: rgba(30, 41, 59, 0.95);
  --border-glass: rgba(255, 255, 255, 0.12);
  --border-glass-glow: rgba(6, 182, 212, 0.45);

  /* Accents */
  --accent-cyan: #06b6d4;
  --accent-cyan-glow: rgba(6, 182, 212, 0.4);
  --accent-blue: #3b82f6;
  --accent-emerald: #10b981;
  --accent-gold: #f59e0b;
  --accent-purple: #8b5cf6;

  /* Text Colors */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Fonts */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Geometry & Shadows */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --shadow-glow: 0 0 40px rgba(6, 182, 212, 0.25);
  --transition-fast: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Themes */
body.theme-sunset {
  --bg-dark: #11091c;
  --bg-surface: #1e102d;
  --bg-card: rgba(35, 18, 50, 0.75);
  --accent-cyan: #f59e0b;
  --accent-cyan-glow: rgba(245, 158, 11, 0.4);
  --accent-blue: #ec4899;
  --text-main: #fff7ed;
  --text-muted: #cbd5e1;
}

body.theme-day {
  --bg-dark: #0f172a;
  --bg-surface: #1e293b;
  --bg-card: rgba(30, 41, 59, 0.8);
  --accent-cyan: #38bdf8;
  --accent-cyan-glow: rgba(56, 189, 248, 0.4);
  --accent-blue: #0284c7;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
}

/* Reset & Global */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  font-size: 16px;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.5s ease, color 0.5s ease;
}

/* Foco Accesible con :focus-visible (teclado) */
:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Skip-link Accesible (§6.3) */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 2000;
  padding: 0.75rem 1.25rem;
  background: var(--accent-cyan);
  color: #030712;
  font-weight: 700;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 0;
}

/* Cursor Spotlight Glow Effect */
.cursor-spotlight {
  position: fixed;
  top: 0;
  left: 0;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-cyan-glow) 0%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 0;
  opacity: 0.35;
  transition: transform 0.08s ease-out;
}

/* Background Canvas */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue), var(--accent-gold));
  z-index: 1000;
  width: 0%;
  transition: width 0.1s ease-out;
  box-shadow: 0 0 12px var(--accent-cyan);
}

/* Typography & Layout */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-main);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: var(--accent-cyan);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
  backdrop-filter: blur(8px);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 680px;
  margin-bottom: 40px;
}

.container {
  width: 90%;
  max-width: 1320px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1240px;
  background: rgba(11, 19, 41, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  padding: 10px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 999;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s ease, background 0.3s ease;
}

/* Ocultado inteligente de cabecera al desplazarse hacia abajo */
.navbar.navbar--hidden {
  transform: translate(-50%, -170%) scale(0.96);
  opacity: 0;
  pointer-events: none;
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
}

.navbar__brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 0 15px var(--accent-cyan-glow);
}

.navbar__controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar__menu {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
}

.navbar__link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition-fast);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
}

.navbar__link:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.06);
}

.nav-icon-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition-fast);
  backdrop-filter: blur(8px);
}

.nav-icon-btn:hover {
  background: var(--accent-cyan);
  color: #000;
  box-shadow: 0 0 15px var(--accent-cyan);
}

.navbar__btn {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: #fff;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 20px var(--accent-cyan-glow);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 140px 0 80px;
  overflow: hidden;
}

.hero__bg-media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  filter: brightness(0.45) saturate(1.2);
  transform: scale(1.05);
  animation: heroPulse 12s infinite alternate ease-in-out;
}

@keyframes heroPulse {
  0% {
    transform: scale(1.02);
  }

  100% {
    transform: scale(1.08);
  }
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(3, 7, 18, 0.3) 0%, var(--bg-dark) 90%);
  z-index: -1;
}

.hero__content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 24px;
}

.hero__title {
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  line-height: 1.1;
}

.hero__description {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 auto 40px;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 40px 0 48px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
  transition: var(--transition-smooth);
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-glow);
}

.stat-card__number {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--accent-cyan);
  font-family: var(--font-heading);
  display: block;
}

.stat-card__label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.hero__cta {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: none;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: #fff;
  box-shadow: 0 8px 30px var(--accent-cyan-glow);
}

.btn--primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 40px rgba(6, 182, 212, 0.5);
}

.btn--glass {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  backdrop-filter: blur(10px);
}

.btn--glass:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
}

/* LEAFLET MAP SECTION WITH SIMULATOR v2 */
.map-section {
  padding: 100px 0;
  position: relative;
}

.leaflet-map-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  position: relative;
}

.leaflet-map-wrapper:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 4px;
}

.map-controls-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 16px;
}

.map-simulator-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(3, 7, 18, 0.7);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-glass-glow);
  backdrop-filter: blur(12px);
  flex-wrap: wrap;
}

.sim-btn {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
  box-shadow: 0 4px 15px var(--accent-cyan-glow);
}

.sim-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.6);
}

.sim-btn--secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  box-shadow: none;
}

.sim-speed {
  display: inline-flex;
  gap: 4px;
  margin-left: 4px;
}

.speed-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  border-radius: var(--radius-full);
  padding: 5px 11px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}

.speed-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.14);
}

.speed-btn.active {
  background: var(--accent-gold);
  color: #000;
  border-color: transparent;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}

.sim-status {
  color: var(--accent-cyan);
  font-size: 0.85rem;
  font-weight: 600;
  padding-left: 8px;
}

.sim-progress {
  position: relative;
  height: 22px;
  margin-top: 14px;
  background: rgba(3, 7, 18, 0.7);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.sim-progress__fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #10b981, var(--accent-cyan), #f59e0b);
  border-radius: var(--radius-full);
  transition: width 0.25s linear;
  box-shadow: 0 0 14px var(--accent-cyan-glow);
}

.sim-progress__label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-main);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
}

.map-layer-toggles {
  display: flex;
  gap: 8px;
}

.map-layer-btn {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.map-layer-btn.active {
  background: var(--accent-cyan);
  color: #000;
  border-color: transparent;
  box-shadow: 0 0 15px var(--accent-cyan-glow);
}

#leaflet-map {
  width: 100%;
  height: 560px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-glass);
  z-index: 1;
}

/* Custom Leaflet Pin Styling — Chinchetas Adaptativas con Anclaje en Punta */
.custom-leaflet-pin {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  pointer-events: auto;
}

.map-pin {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.7));
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.map-pin:hover {
  transform: translateY(-4px) scale(1.12);
  z-index: 1000 !important;
}

.map-pin__bubble {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #030712;
  border: 2px solid var(--accent-cyan, #06b6d4);
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.7);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.25s, height 0.25s, box-shadow 0.25s;
}

.map-pin__bubble img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.map-pin__pointer {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 7px solid var(--accent-cyan, #06b6d4);
  margin-top: -1px;
}

.map-pin--start .map-pin__bubble {
  border-color: #10b981;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.85);
}
.map-pin--start .map-pin__pointer {
  border-top-color: #10b981;
}

.map-pin--end .map-pin__bubble {
  border-color: #f59e0b;
  box-shadow: 0 0 24px rgba(245, 158, 11, 0.9);
}
.map-pin--end .map-pin__pointer {
  border-top-color: #f59e0b;
}

/* Modo Compacto para Vistas Alejadas (Zoom <= 7) */
.map-pin--compact .map-pin__bubble {
  width: 22px;
  height: 22px;
  border-width: 1.5px;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.6);
}
.map-pin--compact .map-pin__pointer {
  border-left-width: 4px;
  border-right-width: 4px;
  border-top-width: 5px;
}

/* Marcador Viajero con Animación Suave de Pulso (§3.1) */
.traveler-pin {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
  border: 3px solid #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 0 35px #06b6d4;
  animation: travelerPulse 1.6s infinite ease-in-out;
}

.traveler-emoji {
  display: inline-block;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  line-height: 1;
}

@keyframes travelerPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 25px #06b6d4;
  }

  50% {
    transform: scale(1.12);
    box-shadow: 0 0 45px #06b6d4;
  }
}

/* Tooltips de distancia interactivos en hitos */
.map-distance-tooltip {
  background: rgba(3, 7, 18, 0.9) !important;
  border: 1px solid var(--accent-cyan) !important;
  color: #a5f3fc !important;
  font-family: var(--font-body, system-ui, sans-serif) !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
  border-radius: 9999px !important;
  padding: 4px 10px !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6) !important;
  backdrop-filter: blur(8px) !important;
}

.map-distance-tooltip::before {
  border-top-color: var(--accent-cyan) !important;
}

/* Modo Pantalla Completa Inmersivo para el Mapa */
.leaflet-map-wrapper:fullscreen,
.leaflet-map-wrapper:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  border-radius: 0;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  background: #030712;
  box-sizing: border-box;
}

.leaflet-map-wrapper:fullscreen #leaflet-map,
.leaflet-map-wrapper:-webkit-full-screen #leaflet-map {
  flex: 1;
  height: 100% !important;
  min-height: 0;
  border-radius: var(--radius-md);
}

.leaflet-popup-content-wrapper {
  background: rgba(11, 19, 41, 0.92) !important;
  backdrop-filter: blur(20px) !important;
  border: 1px solid var(--border-glass-glow) !important;
  border-radius: var(--radius-md) !important;
  color: #fff !important;
  padding: 10px !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6) !important;
}

.leaflet-popup-tip {
  background: rgba(11, 19, 41, 0.92) !important;
}

.map-popup-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 230px;
}

.map-popup-card__img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.map-popup-card__title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text-main);
}

.map-popup-card__desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.map-popup-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  padding: 8px 14px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: #fff;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-align: center;
  justify-content: center;
}

/* ITINERARY TIMELINE (CUADERNO DE RUTA) */
.itinerary-section {
  padding: 100px 0 60px;
}

.itinerary {
  list-style: none;
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding-left: 56px;
}

.itinerary::before {
  content: '';
  position: absolute;
  left: 21px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, #10b981, var(--accent-cyan), var(--accent-purple), var(--accent-gold));
  opacity: 0.5;
}

.itinerary__day {
  position: relative;
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.itinerary__day.in {
  opacity: 1;
  transform: translateY(0);
}

.itinerary__node {
  position: absolute;
  left: -56px;
  top: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  border: 2px solid var(--accent-cyan);
  box-shadow: 0 0 16px var(--accent-cyan-glow);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  color: var(--text-main);
  transition: transform 0.3s ease;
}

.itinerary__day:hover .itinerary__node {
  transform: scale(1.15);
}

.itinerary__day[data-country="bosnia"] .itinerary__node {
  border-color: var(--accent-emerald);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.4);
}

.itinerary__day[data-country="montenegro"] .itinerary__node {
  border-color: var(--accent-purple);
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.4);
}

.itinerary__card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  backdrop-filter: blur(14px);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.itinerary__day:hover .itinerary__card {
  border-color: var(--border-glass-glow);
  box-shadow: 0 14px 34px rgba(6, 182, 212, 0.18);
  transform: translateX(6px);
}

.itinerary__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.itinerary__meta time {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-cyan);
}

.itinerary__country {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  padding: 3px 12px;
  border-radius: var(--radius-full);
}

.itinerary__title {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.itinerary__text {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.itinerary__stops {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.itinerary__stops a {
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-main);
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
}

.itinerary__stops a:hover {
  background: var(--accent-cyan);
  color: #000;
  box-shadow: 0 0 14px var(--accent-cyan-glow);
  transform: translateY(-2px);
}

/* Filter Tabs */
.filter-bar {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.filter-btn {
  padding: 10px 24px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-fast);
  backdrop-filter: blur(8px);
}

.filter-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.1);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 20px var(--accent-cyan-glow);
}

/* Destinations Section */
.destinations-section {
  padding: 60px 0 100px;
}

.destinations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 32px;
  perspective: 1000px;
}

.destination-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(16px);
  transition: transform 0.15s ease-out, border-color 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transform-style: preserve-3d;
}

.destination-card:hover {
  border-color: var(--border-glass-glow);
  box-shadow: 0 20px 45px rgba(6, 182, 212, 0.3);
}

.destination-card__thumb-container {
  height: 240px;
  position: relative;
  overflow: hidden;
}

.destination-card__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.destination-card:hover .destination-card__thumb {
  transform: scale(1.08);
}

.destination-card__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
}

.destination-card__count {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(3, 7, 18, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
}

.destination-card__body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.destination-card__title {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.destination-card__subtitle {
  color: var(--accent-cyan);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.destination-card__desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.destination-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  pt: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.destination-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.destination-card__link:hover {
  gap: 12px;
  color: #a5f3fc;
}

/* Road Trip Transit Section (En Ruta) */
.transit-section {
  padding: 80px 0;
  background: radial-gradient(ellipse at bottom, rgba(11, 19, 41, 0.6) 0%, transparent 80%);
}

.transit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.transit-card {
  position: relative;
  height: 220px;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border-glass);
}

.transit-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.transit-card:hover .transit-card__img {
  transform: scale(1.1);
}

.transit-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(3, 7, 18, 0.9) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.transit-card__tag {
  font-size: 0.75rem;
  color: var(--accent-cyan);
  font-weight: 700;
  text-transform: uppercase;
}

.transit-card__caption {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

/* VIDEO THEATER SECTION & FACHADA LIGERA YOUTUBE (§1 & §2) */
.video-section {
  padding: 100px 0;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(16px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  transition: var(--transition-smooth);
}

.video-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glass-glow);
  box-shadow: 0 20px 40px rgba(6, 182, 212, 0.2);
}

.video-card__player {
  width: 100%;
  height: 230px;
  background: #000;
  border: none;
  display: block;
}

/* ── Fachada ligera de YouTube (lite-embed §1) ── */
.yt-facade {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  cursor: pointer;
  overflow: hidden;
  display: block;
}

.yt-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.yt-facade:hover img,
.yt-facade:focus-visible img {
  transform: scale(1.06);
}

.yt-facade:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
}

.yt-facade__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 62px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 5px;
  background: rgba(6, 182, 212, 0.92);
  color: #fff;
  border-radius: 50%;
  font-size: 1.35rem;
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.55);
  transition: transform 0.25s ease, background 0.25s ease;
}

.yt-facade:hover .yt-facade__play,
.yt-facade:focus-visible .yt-facade__play {
  transform: translate(-50%, -50%) scale(1.12);
  background: var(--accent-cyan);
}

/* Formato vertical (Shorts 9:16 sin barras negras §2) */
.yt-facade.yt-facade--short,
.video-card__player.video-card__player--short {
  aspect-ratio: 9 / 16;
  width: auto;
  height: 420px;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.video-card__info {
  padding: 18px 20px;
}

.video-card__title {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.video-card__meta {
  color: var(--accent-cyan);
  font-size: 0.85rem;
  font-weight: 600;
}

.video-card__desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 8px;
  margin-bottom: 6px;
}

.video-card__date {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  padding: 3px 12px;
  border-radius: var(--radius-full);
}

/* SECTION PERFORMANCE OPTIMIZATION */
.transit-section,
.video-section,
.itinerary-section {
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.95);
  backdrop-filter: blur(25px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 40px;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  border: 1px solid var(--border-glass);
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-glass);
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition-fast);
  backdrop-filter: blur(10px);
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
  background: var(--accent-cyan);
  color: #000;
}

.lightbox__close {
  top: 24px;
  right: 24px;
}

.lightbox__prev {
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__next {
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__caption {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-main);
  background: rgba(11, 19, 41, 0.8);
  padding: 10px 24px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-glass);
  font-size: 0.95rem;
}

/* Footer */
.footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--border-glass);
  background: var(--bg-surface);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}

.footer__about {
  max-width: 380px;
}

.footer__logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 16px;
  display: inline-block;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer__logo:hover {
  color: var(--accent-cyan);
}

.footer__desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer__heading {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--accent-cyan);
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.footer__link:hover {
  color: var(--text-main);
  padding-left: 4px;
}

.footer__bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* Responsive Media Queries & Motion Preferences */
@media (max-width: 992px) {
  .hero__stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hero__title {
    font-size: 2.8rem;
  }

  .destinations-grid {
    grid-template-columns: 1fr;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .map-controls-header {
    flex-direction: column;
    align-items: stretch;
  }

  .map-simulator-bar {
    justify-content: center;
  }

  /* Menú deslizable horizontal para móvil con espacio optimizado y ocultado al scroll */
  .navbar {
    top: 10px;
    width: 94%;
    padding: 8px 14px;
    gap: 6px;
    border-radius: 20px;
  }

  .navbar__brand {
    font-size: 1rem;
    gap: 8px;
  }

  .navbar__brand-icon {
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
  }

  .navbar__btn {
    padding: 5px 12px;
    font-size: 0.8rem;
  }

  .nav-icon-btn {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }

  .navbar__menu {
    order: 3;
    width: 100%;
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
    margin-top: 2px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 5px;
    gap: 6px;
  }

  .navbar__menu::-webkit-scrollbar {
    display: none;
  }

  .navbar__link {
    white-space: nowrap;
    font-size: 0.78rem;
    padding: 3px 7px;
  }
}

@media (max-width: 640px) {
  .itinerary {
    padding-left: 44px;
  }

  .itinerary__node {
    left: -44px;
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .traveler-pin {
    animation: none !important;
  }

  .itinerary__day {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .gradient-text,
  .hero__title .gradient-text {
    animation: none;
    background-position: 0% center;
  }

  .section-spotlight {
    display: none;
  }

  .scroll-reveal {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

  .yt-facade__play::before {
    animation: none;
    display: none;
  }

  .word-reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* ═══════════════════════════════════════════════════════════
   MEJORAS DE EXCELENCIA (versión corregida 2026-08-03)
   ═══════════════════════════════════════════════════════════ */

/* ── 1. GRADIENT TEXT CORREGIDO (sin conflicto) ── */
.gradient-text {
  display: inline-block;
  background-image: linear-gradient(135deg,
      #ffffff 0%,
      #a5f3fc 25%,
      #06b6d4 50%,
      #3b82f6 75%,
      #ffffff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: gradientShift 8s ease-in-out infinite;
}

.hero__title .gradient-text {
  background-image: linear-gradient(135deg,
      #ffffff 0%,
      #e0f7ff 20%,
      #67e8f9 40%,
      #06b6d4 60%,
      #0891b2 80%,
      #ffffff 100%);
  background-size: 300% auto;
  animation: gradientShift 6s ease-in-out infinite;
  filter: drop-shadow(0 2px 8px rgba(6, 182, 212, 0.3));
}

@keyframes gradientShift {

  0%,
  100% {
    background-position: 0% center;
  }

  50% {
    background-position: 100% center;
  }
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {

  .gradient-text,
  .hero__title .gradient-text {
    background-image: none;
    -webkit-text-fill-color: currentColor;
    color: var(--accent-cyan);
    animation: none;
  }
}

/* ── 2. BOTONES MAGNÉTICOS ── */
.btn--magnetic {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s ease,
    background 0.3s ease;
  will-change: transform;
}

.btn--magnetic:hover {
  box-shadow: 0 12px 40px rgba(6, 182, 212, 0.5);
}

/* ── 3. SPOTLIGHT ORBITAL EN SECCIONES ── */
.section-spotlight {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  background: radial-gradient(circle 400px at var(--x, 50%) var(--y, 50%),
      rgba(6, 182, 212, 0.12) 0%,
      rgba(59, 130, 246, 0.06) 40%,
      transparent 70%);
  mix-blend-mode: screen;
}

.destinations-section>.container,
.video-section>.container,
.itinerary-section>.container,
.transit-section>.container {
  position: relative;
  z-index: 1;
}

/* ── 4. SCROLL REVEAL CINEMATOGRÁFICO ── */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  filter: blur(8px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0s);
}

.scroll-reveal--visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.destination-card--clickable.scroll-reveal {
  transform: translateY(40px);
}

.destination-card--clickable.scroll-reveal--visible {
  transform: translateY(0);
}

.hero .scroll-reveal {
  opacity: 1;
  transform: none;
  filter: none;
}

/* ── 5. ITINERARY TIMELINE MEJORADO ── */
.itinerary__day {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.itinerary__day.in {
  opacity: 1;
  transform: translateX(0);
}

.itinerary__node {
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.itinerary__node::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(6, 182, 212, 0.6) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.6s ease;
  border-radius: 50%;
}

.itinerary__day.in .itinerary__node::before {
  opacity: 1;
  animation: nodeGlow 2s ease-in-out infinite;
}

@keyframes nodeGlow {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.6;
  }

  50% {
    transform: scale(1.2);
    opacity: 0.3;
  }
}

.itinerary__card {
  position: relative;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.itinerary__card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-md);
  padding: 1px;
  background: linear-gradient(135deg, transparent 30%, rgba(6, 182, 212, 0.5) 50%, transparent 70%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.itinerary__day:hover .itinerary__card::before {
  opacity: 1;
}

.itinerary__day:hover .itinerary__card {
  transform: translateX(8px);
  box-shadow: 0 20px 40px rgba(6, 182, 212, 0.15);
}

.itinerary__stops a {
  position: relative;
  overflow: hidden;
}

.itinerary__stops a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.itinerary__stops a:hover::before {
  left: 100%;
}

/* ── 6. VIDEO CARDS MEJORADAS ── */
.yt-facade {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.yt-facade::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, transparent 50%);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.yt-facade:hover::before,
.yt-facade:focus-visible::before {
  opacity: 1;
}

.yt-facade__play::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(6, 182, 212, 0.4);
  animation: playPulse 2s ease-in-out infinite;
}

@keyframes playPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.15);
    opacity: 0.4;
  }
}

.yt-facade:hover .yt-facade__play::before,
.yt-facade:focus-visible .yt-facade__play::before {
  animation: none;
  transform: scale(1.3);
  opacity: 0;
}

/* ── 7. REVELADO DE TÍTULOS PALABRA A PALABRA ── */
.word-reveal {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: wordReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(var(--word-index, 0) * 0.08s + 0.3s);
}

@keyframes wordReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── 8. REDUCED MOTION GLOBAL ── */
@media (prefers-reduced-motion: reduce) {

  .gradient-text,
  .hero__title .gradient-text {
    animation: none;
    background-position: 0% center;
  }

  .section-spotlight {
    display: none;
  }

  .scroll-reveal {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

  .yt-facade__play::before {
    animation: none;
    display: none;
  }

  .word-reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .itinerary__day {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .itinerary__node::before {
    animation: none;
  }
}

/* ── 9. CARTAS CLICABLES (estructura nueva) ── */
.destination-card--clickable {
  cursor: pointer;
  transition: transform 0.15s ease-out,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.destination-card__link-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  outline: none;
}

.destination-card__link-wrapper:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 4px;
  border-radius: var(--radius-lg);
}

/* Overlay de hover: difuminado sutil */
.destination-card__hover-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(180deg,
      rgba(3, 7, 18, 0.10) 0%,
      rgba(3, 7, 18, 0.35) 100%);
  backdrop-filter: blur(3px) brightness(1.05);
  -webkit-backdrop-filter: blur(3px) brightness(1.05);
  opacity: 0;
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 3;
  pointer-events: none;
}

.destination-card--clickable:hover .destination-card__hover-overlay,
.destination-card--clickable:focus-within .destination-card__hover-overlay {
  opacity: 1;
}

.destination-card__hover-text {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.03em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  transform: translateY(10px);
  opacity: 0;
  transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.05s;
}

.destination-card--clickable:hover .destination-card__hover-text,
.destination-card--clickable:focus-within .destination-card__hover-text {
  transform: translateY(0);
  opacity: 1;
}

.destination-card__hover-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  color: #fff;
  transform: translateY(10px) scale(0.8);
  opacity: 0;
  transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
  backdrop-filter: blur(4px);
}

.destination-card--clickable:hover .destination-card__hover-arrow,
.destination-card--clickable:focus-within .destination-card__hover-arrow {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.destination-card--clickable:hover .destination-card__thumb,
.destination-card--clickable:focus-within .destination-card__thumb {
  transform: scale(1.06);
  filter: brightness(1.05) saturate(1.1);
}

.destination-card--clickable:hover,
.destination-card--clickable:focus-within {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(6, 182, 212, 0.2),
    0 0 0 1px rgba(6, 182, 212, 0.3);
}

.destination-card--clickable:hover .destination-card__title {
  color: var(--accent-cyan);
}

.destination-card__title {
  transition: color 0.3s ease;
}

.destination-card__badge,
.destination-card__count {
  z-index: 4;
}

.destination-card__body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.destination-card__footer {
  display: none;
}

/* Brillo dinámico que sigue al cursor */
.destination-card__glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--glare-x, 50%) var(--glare-y, 50%),
      rgba(255, 255, 255, 0.12) 0%,
      transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 2;
}

.destination-card--clickable:hover .destination-card__glare {
  opacity: 1;
}

/* ==========================================================================
   VIEW TRANSITIONS API (CROSS-DOCUMENT MPA TRANSITIONS)
   Transiciones cinematográficas nativas entre el portal principal y las subwebs
   ========================================================================== */
@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: 300ms cubic-bezier(0.4, 0, 0.2, 1) both fade-out;
}

::view-transition-new(root) {
  animation: 400ms cubic-bezier(0, 0, 0.2, 1) both fade-in;
}

@keyframes fade-out {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(0.98); }
}

@keyframes fade-in {
  from { opacity: 0; transform: scale(1.02); filter: blur(2px); }
  to { opacity: 1; transform: scale(1); filter: blur(0); }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}