/* ==========================================================================
   SACCLAYASO 2027 — Carnaval de Sacclaya · Watukanakuy
   Aesthetic: Nocturnal Andean Editorial Luxury (Elegante y Festivo)
   Official Palette Accents:
     #0597F2 (Azul) | #03A63C (Verde) | #F2CB05 (Dorado)
     #F28705 (Ámbar) | #F22E2E (Carmesí)
   ========================================================================== */

:root {
  /* Palette — Official 5 Colors (Curated Jewel Accents) */
  --sac-blue: #0597F2;
  --sac-green: #03A63C;
  --sac-gold: #F2CB05;
  --sac-amber: #F28705;
  --sac-crimson: #F22E2E;

  /* Elegant Neutral Foundation */
  --bg-void: #0A0908;
  --bg-obsidian: #11100E;
  --bg-surface: #171512;
  --bg-elevated: #1F1C18;
  --bg-glass: rgba(17, 16, 14, 0.78);
  --bg-glass-strong: rgba(14, 13, 11, 0.92);

  /* Typography Colors */
  --text-primary: #F7F3EC;
  --text-secondary: #B9B0A4;
  --text-muted: #827A70;

  /* Borders & Hairlines */
  --border-subtle: rgba(247, 243, 236, 0.08);
  --border-medium: rgba(247, 243, 236, 0.14);
  --border-gold: rgba(242, 203, 5, 0.28);

  /* Gradients */
  --ribbon-andina: linear-gradient(90deg,
      var(--sac-blue) 0%,
      var(--sac-green) 26%,
      var(--sac-gold) 52%,
      var(--sac-amber) 76%,
      var(--sac-crimson) 100%);
  --gold-gradient: linear-gradient(135deg, #F2CB05 0%, #F28705 100%);
  --gold-sheen: linear-gradient(135deg, #FFF3B0 0%, #F2CB05 45%, #F28705 100%);

  /* Typography Families */
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  /* Radii & Shadows */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --shadow-card: 0 20px 50px rgba(0, 0, 0, 0.48);
  --shadow-glow-gold: 0 12px 40px rgba(242, 135, 5, 0.18);

  /* Layout */
  --container-max: 1220px;
  --nav-height: 78px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: dark;
  background-color: var(--bg-void);
  color: var(--text-primary);
  overflow-x: clip;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-void);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: clip;
  max-width: 100%;
  width: 100%;
  position: relative;
}

main,
.section,
.footer {
  overflow-x: clip;
}

.section {
  content-visibility: auto;
  contain-intrinsic-size: 1px 820px;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ---------- Decorative Signature Andean Ribbon ---------- */
.andina-ribbon {
  height: 2px;
  width: 72px;
  background: var(--ribbon-andina);
  border-radius: 999px;
  display: inline-block;
}

.andina-ribbon--full {
  width: 100%;
  height: 2px;
  opacity: 0.75;
}

.andina-dots {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.andina-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.andina-dots span:nth-child(1) {
  background: var(--sac-blue);
}

.andina-dots span:nth-child(2) {
  background: var(--sac-green);
}

.andina-dots span:nth-child(3) {
  background: var(--sac-gold);
}

.andina-dots span:nth-child(4) {
  background: var(--sac-amber);
}

.andina-dots span:nth-child(5) {
  background: var(--sac-crimson);
}

/* ---------- Section Typography ---------- */
.section {
  padding: 112px 0;
  position: relative;
}

.section--alt {
  background: linear-gradient(180deg, rgba(23, 21, 18, 0.55) 0%, rgba(17, 16, 14, 0.92) 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  max-width: 720px;
  margin-bottom: 56px;
}

.section-header--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-eyebrow {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sac-gold);
  margin-bottom: 16px;
  max-width: 100%;
}

.section-eyebrow__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent, var(--sac-gold));
  box-shadow: 0 0 12px var(--accent, var(--sac-gold));
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 4.4vw, 3.6rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 18px;
}

.section-title em {
  font-style: italic;
  background: var(--gold-sheen);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-subtitle {
  font-size: 1.04rem;
  color: var(--text-secondary);
  line-height: 1.72;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-align: center;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background 0.25s ease, border-color 0.25s ease;
  white-space: normal;
  max-width: 100%;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn--primary {
  background: var(--gold-gradient);
  color: #120F0A;
  box-shadow: 0 8px 28px rgba(242, 135, 5, 0.26);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(242, 203, 5, 0.34);
}

.btn--outline {
  background: rgba(247, 243, 236, 0.03);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
}

.btn--outline:hover {
  border-color: var(--sac-gold);
  background: rgba(242, 203, 5, 0.07);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 10px 16px;
}

.btn--ghost:hover {
  color: var(--text-primary);
}

.btn--sm {
  padding: 10px 18px;
  font-size: 0.84rem;
}

.btn--accent-crimson {
  background: linear-gradient(135deg, #F22E2E 0%, #C81E1E 100%);
  color: #FFF;
  box-shadow: 0 10px 28px rgba(242, 46, 46, 0.25);
}

.btn--accent-crimson:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(242, 46, 46, 0.36);
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100vw;
  height: var(--nav-height);
  z-index: 1000;
  background: linear-gradient(180deg, rgba(10, 9, 8, 0.78) 0%, rgba(10, 9, 8, 0) 100%);
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}

.navbar.is-scrolled {
  background: var(--bg-glass-strong);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border-subtle);
}

.navbar__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar__logo {
  height: 46px;
  width: auto;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.55));
  transition: transform 0.3s var(--ease-out);
}

.navbar__brand:hover .navbar__logo {
  transform: scale(1.03);
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
}

.navbar__link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.navbar__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--gold-gradient);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease-out);
  border-radius: 2px;
}

.navbar__link:hover,
.navbar__link.is-active {
  color: var(--text-primary);
}

.navbar__link:hover::after,
.navbar__link.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border-medium);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s var(--ease-out), color 0.25s ease;
}

.theme-toggle:hover {
  border-color: var(--sac-gold);
  background: rgba(242, 203, 5, 0.14);
  transform: translateY(-1px);
}

.theme-icon--moon {
  display: none;
}

[data-theme="light"] .theme-icon--sun {
  display: none;
}

[data-theme="light"] .theme-icon--moon {
  display: block;
}

.free-event-note {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(3, 166, 60, 0.08);
  border: 1px solid rgba(3, 166, 60, 0.28);
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.free-event-note__title {
  color: #4ADE80;
}

.navbar__toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border-medium);
  background: rgba(255, 255, 255, 0.04);
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
}

/* Mobile Drawer */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: rgba(10, 9, 8, 0.96);
  backdrop-filter: blur(20px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-nav.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav__link {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: color 0.2s ease;
}

.mobile-nav__link:hover {
  color: var(--sac-gold);
}

/* ---------- HERO SECTION ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + 42px) 0 72px;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.03);
  filter: saturate(0.86) contrast(1.06) brightness(0.46);
}

/* Sophisticated dark editorial gradient veil over photo */
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 28%, rgba(242, 135, 5, 0.14) 0%, transparent 48%),
    linear-gradient(90deg, rgba(10, 9, 8, 0.78) 0%, rgba(10, 9, 8, 0.42) 55%, rgba(10, 9, 8, 0.56) 100%),
    linear-gradient(180deg, rgba(10, 9, 8, 0.78) 0%, rgba(10, 9, 8, 0.34) 44%, rgba(10, 9, 8, 0.94) 92%, var(--bg-void) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 56px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(17, 16, 14, 0.72);
  border: 1px solid var(--border-gold);
  backdrop-filter: blur(12px);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sac-gold);
  margin-bottom: 24px;
}

.hero__logo-stage {
  margin-bottom: 22px;
  max-width: 440px;
}

.hero__logo-img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.75)) drop-shadow(0 0 28px rgba(242, 203, 5, 0.14));
}

.hero__headline {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 2.8vw, 2.45rem);
  font-weight: 500;
  line-height: 1.24;
  color: var(--text-primary);
  margin-bottom: 18px;
  max-width: 580px;
}

.hero__description {
  font-size: 1.03rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: 32px;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 42px;
}

.hero__meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.hero__meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero__meta-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

.hero__meta-value {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Hero Right Panel — Elegant Countdown & Quick Access */
.hero__card {
  background: rgba(17, 16, 14, 0.76);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.hero__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--ribbon-andina);
}

.hero__card-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sac-gold);
  margin-bottom: 6px;
}

.hero__card-title {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 600;
  margin-bottom: 22px;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 26px;
}

.countdown__unit {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 8px;
  text-align: center;
}

.countdown__num {
  font-family: var(--font-mono);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
  line-height: 1.1;
}

.countdown__label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-top: 4px;
  display: block;
}

.hero__quick-links {
  display: grid;
  gap: 10px;
}

.quick-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle);
  transition: all 0.25s var(--ease-out);
}

.quick-pill:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--pill-accent, var(--sac-gold));
  transform: translateX(4px);
}

.quick-pill__left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quick-pill__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--pill-accent, var(--sac-gold));
  box-shadow: 0 0 10px var(--pill-accent, var(--sac-gold));
}

.quick-pill__title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.quick-pill__sub {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.quick-pill__arrow {
  color: var(--text-muted);
  transition: transform 0.25s ease, color 0.25s ease;
}

.quick-pill:hover .quick-pill__arrow {
  transform: translateX(3px);
  color: var(--text-primary);
}

/* ---------- LEYENDA DEL CARNAVAL ---------- */
.legend-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 64px;
  align-items: center;
}

.legend-media {
  position: relative;
}

.legend-media__frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-card);
  aspect-ratio: 4 / 5;
}

.legend-media__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.8s var(--ease-out);
}

.legend-media__frame:hover .legend-media__img {
  transform: scale(1.04);
}

.legend-media__caption {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: rgba(12, 11, 10, 0.84);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
}

.legend-media__caption-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sac-gold);
  margin-bottom: 4px;
}

.legend-media__caption-text {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-style: italic;
  color: var(--text-primary);
}

.legend-quote {
  position: relative;
  padding: 24px 28px;
  margin: 28px 0 34px;
  border-left: 2px solid var(--sac-gold);
  background: rgba(242, 203, 5, 0.04);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.legend-quote p {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-style: italic;
  line-height: 1.42;
  color: var(--text-primary);
}

.legend-pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.pillar-card {
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  transition: border-color 0.25s ease, transform 0.25s var(--ease-out);
}

.pillar-card:hover {
  border-color: var(--pillar-accent, var(--border-gold));
  transform: translateY(-3px);
}

.pillar-card__num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--pillar-accent, var(--sac-gold));
  letter-spacing: 0.12em;
  margin-bottom: 8px;
  display: block;
}

.pillar-card__title {
  font-family: var(--font-serif);
  font-size: 1.28rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.pillar-card__text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ---------- CÓMO LLEGAR / RUTAS ---------- */
.routes-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}

.route-tab {
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  transition: all 0.25s var(--ease-out);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.route-tab:hover {
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.route-tab.is-active {
  background: rgba(5, 151, 242, 0.14);
  border-color: var(--sac-blue);
  color: var(--text-primary);
  box-shadow: 0 0 24px rgba(5, 151, 242, 0.16);
}

.routes-layout {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 32px;
  align-items: stretch;
}

.route-detail {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  overflow: hidden;
}

.route-detail::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--sac-blue), var(--sac-gold));
}

.route-detail__header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border-subtle);
}

.route-detail__origin {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--sac-blue);
  margin-bottom: 6px;
}

.route-detail__title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.15;
}

.route-detail__badge {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(5, 151, 242, 0.12);
  border: 1px solid rgba(5, 151, 242, 0.35);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: #79C9FF;
}

.route-steps {
  display: grid;
  gap: 18px;
  margin-bottom: 28px;
}

.route-step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
  align-items: start;
}

.route-step__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--sac-gold);
}

.route-step__title {
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.route-step__desc {
  font-size: 0.89rem;
  color: var(--text-secondary);
}

.route-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding-top: 22px;
  border-top: 1px solid var(--border-subtle);
}

.route-meta-box {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.route-meta-box span {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.route-meta-box strong {
  font-size: 0.92rem;
  color: var(--text-primary);
  margin-top: 3px;
  display: block;
}

/* Stylized SVG Andean Map Card */
.route-map-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.route-map-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.route-map-svg-wrap {
  background: radial-gradient(circle at 60% 55%, rgba(5, 151, 242, 0.1), rgba(10, 9, 8, 0.6) 72%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  position: relative;
}

.route-map-svg {
  width: 100%;
  height: auto;
  display: block;
}

.route-final-leg {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: rgba(242, 203, 5, 0.05);
  border: 1px solid var(--border-gold);
}

.route-final-leg__tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--sac-gold);
  margin-bottom: 4px;
}

.route-final-leg p {
  font-size: 0.87rem;
  color: var(--text-secondary);
}

/* ---------- RECOMENDACIONES + CHECKLIST ---------- */
.tips-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 32px;
  align-items: start;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.tip-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 26px;
  transition: transform 0.25s var(--ease-out), border-color 0.25s ease;
}

.tip-card:hover {
  transform: translateY(-3px);
  border-color: var(--tip-accent, var(--sac-green));
}

.tip-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(3, 166, 60, 0.1);
  border: 1px solid rgba(3, 166, 60, 0.28);
  color: var(--tip-accent, var(--sac-green));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.tip-card__title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.tip-card__text {
  font-size: 0.89rem;
  color: var(--text-secondary);
  line-height: 1.62;
}

/* Interactive Packing Checklist */
.checklist-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: sticky;
  top: calc(var(--nav-height) + 24px);
}

.checklist-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.checklist-card__title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
}

.checklist-progress-label {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--sac-green);
  font-weight: 700;
}

.checklist-bar {
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 20px;
}

.checklist-bar__fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--sac-green), var(--sac-gold));
  border-radius: 999px;
  transition: width 0.35s var(--ease-out);
}

.checklist-list {
  display: grid;
  gap: 10px;
  list-style: none;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.checklist-item:hover {
  background: rgba(255, 255, 255, 0.045);
}

.checklist-item.is-checked {
  border-color: rgba(3, 166, 60, 0.35);
  background: rgba(3, 166, 60, 0.07);
  color: var(--text-primary);
}

.checklist-item.is-checked span {
  text-decoration: line-through;
  opacity: 0.72;
}

.checklist-box {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid var(--border-medium);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.checklist-item.is-checked .checklist-box {
  background: var(--sac-green);
  border-color: var(--sac-green);
  color: #08120B;
}

/* ---------- PIZARRA DE AVENTONES (CARPOOL BOARD) ---------- */
.carpool-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
  padding: 18px 22px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.carpool-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.filter-select {
  background: var(--bg-elevated);
  border: 1px solid var(--border-medium);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 0.85rem;
  color: var(--text-primary);
  outline: none;
}

.filter-select:focus {
  border-color: var(--sac-amber);
}

.filter-pill-group {
  display: inline-flex;
  background: var(--bg-obsidian);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 3px;
}

.filter-pill {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.filter-pill.is-active {
  background: rgba(242, 135, 5, 0.18);
  color: var(--sac-gold);
}

.carpool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.ride-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  transition: transform 0.25s var(--ease-out), border-color 0.25s ease;
  position: relative;
}

.ride-card:hover {
  transform: translateY(-4px);
  border-color: rgba(242, 135, 5, 0.36);
}

.ride-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.ride-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  font-weight: 600;
}

.ride-badge--offer {
  background: rgba(242, 135, 5, 0.14);
  color: #FFB259;
  border: 1px solid rgba(242, 135, 5, 0.32);
}

.ride-badge--seek {
  background: rgba(5, 151, 242, 0.14);
  color: #7CCBFF;
  border: 1px solid rgba(5, 151, 242, 0.32);
}

.ride-spots {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--sac-gold);
}

.ride-route {
  font-family: var(--font-serif);
  font-size: 1.42rem;
  font-weight: 600;
  line-height: 1.2;
}

.ride-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.81rem;
  color: var(--text-muted);
}

.ride-notes {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.ride-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  gap: 10px;
}

.ride-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ride-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--sac-gold);
}

.ride-author__name {
  font-size: 0.86rem;
  font-weight: 600;
  display: block;
}

.ride-author__mode {
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* ---------- PASAPORTE COLECCIONABLE ---------- */
.passport-layout {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 54px;
  align-items: center;
}

.form-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 34px;
}

.form-grid {
  display: grid;
  gap: 18px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.field input[type="text"],
.field input[type="number"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="date"],
.field select,
.field textarea {
  width: 100%;
  background: var(--bg-obsidian);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.92rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--sac-gold);
  box-shadow: 0 0 0 3px rgba(242, 203, 5, 0.12);
}

.swatch-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.swatch-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--bg-obsidian);
  border: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.swatch-btn.is-active {
  border-color: var(--swatch-color);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.swatch-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--swatch-color);
}

.file-upload-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border-medium);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: border-color 0.2s ease;
}

.file-upload-label:hover {
  border-color: var(--sac-gold);
  color: var(--text-primary);
}

/* Collectible Credential Card (3D Tilt + Holographic Foil) */
.passport-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  perspective: 1200px;
}

.credential-card {
  width: 100%;
  max-width: 410px;
  aspect-ratio: 4 / 5.15;
  border-radius: 26px;
  background:
    radial-gradient(circle at 82% 14%, var(--pass-glow, rgba(242, 203, 5, 0.22)) 0%, transparent 45%),
    radial-gradient(circle at 15% 88%, rgba(242, 135, 5, 0.12) 0%, transparent 48%),
    linear-gradient(155deg, #1A1713 0%, #0E0D0B 58%, #15120E 100%);
  border: 1px solid var(--pass-border, rgba(242, 203, 5, 0.42));
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  padding: 26px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform-style: preserve-3d;
  transition: transform 0.18s ease-out;
}

/* Top woven ribbon */
.credential-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--ribbon-andina);
}

/* Subtle holographic sheen */
.credential-card::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: linear-gradient(115deg,
      transparent 35%,
      rgba(255, 255, 255, 0.07) 48%,
      rgba(242, 203, 5, 0.09) 52%,
      transparent 65%);
  transform: translateX(-30%) rotate(8deg);
  pointer-events: none;
  transition: transform 0.5s ease;
}

.credential-card:hover::after {
  transform: translateX(25%) rotate(8deg);
}

.cred-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 2;
}

.cred-franja-bg {
  position: absolute;
  top: 8px;
  bottom: 8px;
  right: 10px;
  width: 40px;
  z-index: 0;
  pointer-events: none;
  background-image: url('../assets/franja-andina-vertical.webp');
  background-repeat: repeat-y;
  background-size: 100% auto;
  background-position: center top;
  opacity: 0.24;
  filter: blur(0.45px) saturate(1.05);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.cred-logo {
  height: 48px;
  width: auto;
}

.cred-edition {
  text-align: right;
  font-family: var(--font-mono);
}

.cred-edition__tag {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pass-accent, var(--sac-gold));
  display: block;
}

.cred-edition__serial {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.cred-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  margin: 10px 0;
  position: relative;
  z-index: 2;
}

.cred-avatar-ring {
  width: 102px;
  height: 102px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--pass-accent, var(--sac-gold)), rgba(255, 255, 255, 0.15));
  position: relative;
}

.cred-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #13110E;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--pass-accent, var(--sac-gold));
}

.cred-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cred-role-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--pass-border, rgba(242, 203, 5, 0.35));
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pass-accent, var(--sac-gold));
}

.cred-name {
  font-family: var(--font-serif);
  font-size: 2.05rem;
  font-weight: 600;
  line-height: 1.08;
  color: var(--text-primary);
  word-break: break-word;
}

.cred-origin {
  font-size: 0.88rem;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cred-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  gap: 12px;
  position: relative;
  z-index: 2;
}

.cred-stamp {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1.6;
}

.cred-stamp strong {
  color: var(--text-primary);
  display: block;
  font-size: 0.72rem;
}

.cred-qr {
  width: 74px;
  height: 74px;
  padding: 4px;
  border-radius: 8px;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cred-qr:hover {
  transform: scale(1.06);
  box-shadow: 0 0 18px rgba(242, 203, 5, 0.35);
}

.cred-qr svg {
  width: 100%;
  height: 100%;
  display: block;
}

.passport-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 410px;
}

/* ---------- FILTROS DE TIKTOK ---------- */
.tiktok-layout {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 54px;
  align-items: center;
}

.phone-mockup-wrap {
  display: flex;
  justify-content: center;
}

.phone-mockup {
  width: 100%;
  max-width: 318px;
  aspect-ratio: 9 / 18.2;
  border-radius: 40px;
  padding: 11px;
  background: linear-gradient(145deg, #2A2621, #0E0D0B);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 32px 75px rgba(0, 0, 0, 0.7);
  position: relative;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 30px;
  overflow: hidden;
  position: relative;
  background: #0D0C0A;
}

.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 92px;
  height: 22px;
  border-radius: 999px;
  background: #080706;
  z-index: 15;
}

.phone-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.35s ease;
}

/* AR Filter Overlays inside Phone Preview */
.phone-ar-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 46px 16px 76px;
}

.ar-frame-border {
  position: absolute;
  inset: 12px;
  border-radius: 22px;
  border: 2px solid transparent;
  transition: all 0.35s ease;
}

.phone-screen[data-filter="corona"] .ar-frame-border {
  border-color: rgba(242, 203, 5, 0.55);
  box-shadow: inset 0 0 40px rgba(242, 135, 5, 0.25);
}

.phone-screen[data-filter="aura"] .phone-photo {
  filter: contrast(1.08) saturate(1.18) sepia(0.12);
}

.phone-screen[data-filter="aura"] .ar-frame-border {
  border-color: rgba(5, 151, 242, 0.5);
  box-shadow: inset 0 0 55px rgba(5, 151, 242, 0.22), inset 0 -60px 60px rgba(242, 46, 46, 0.22);
}

.phone-screen[data-filter="talco"] .phone-photo {
  filter: brightness(1.06) contrast(1.04);
}

.phone-screen[data-filter="talco"] .ar-frame-border {
  background: radial-gradient(circle at 20% 25%, rgba(255, 255, 255, 0.22) 0%, transparent 32%),
    radial-gradient(circle at 80% 35%, rgba(242, 203, 5, 0.2) 0%, transparent 30%),
    radial-gradient(circle at 50% 80%, rgba(255, 255, 255, 0.18) 0%, transparent 38%);
}

.phone-screen[data-filter="marco"] .ar-frame-border {
  border: 3px solid var(--sac-gold);
  box-shadow: inset 0 0 0 6px rgba(10, 9, 8, 0.35);
}

.ar-top-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.ar-logo-mini {
  width: 145px;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.75));
}

.ar-pill {
  background: rgba(12, 11, 10, 0.72);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-gold);
  border-radius: 999px;
  padding: 4px 12px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--sac-gold);
  text-transform: uppercase;
}

.ar-bottom-caption {
  text-align: center;
  background: linear-gradient(0deg, rgba(10, 9, 8, 0.82) 0%, transparent 100%);
  margin: 0 -16px -76px;
  padding: 24px 16px 20px;
}

.ar-bottom-caption strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: #FFF;
}

.ar-bottom-caption span {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.78);
}

.phone-tiktok-bar {
  position: absolute;
  right: 12px;
  bottom: 84px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

.tt-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(12, 11, 10, 0.62);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFF;
  font-size: 0.72rem;
}

/* TikTok Filter Selector Cards */
.filter-cards {
  display: grid;
  gap: 14px;
  margin-bottom: 24px;
}

.filter-option {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  text-align: left;
  transition: all 0.25s var(--ease-out);
  width: 100%;
}

.filter-option:hover {
  border-color: var(--border-medium);
  background: var(--bg-elevated);
}

.filter-option.is-active {
  border-color: var(--filter-color, var(--sac-gold));
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.filter-option__badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--filter-color, var(--sac-gold));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--filter-color, var(--sac-gold));
}

.filter-option__title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 3px;
}

.filter-option__desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.filter-option__tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.tiktok-actions-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-top: 10px;
}

.hashtag-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.hashtag-chip {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

/* ---------- REGISTRO DE GRUPOS CARNAVALEROS + INVITACIÓN ---------- */
.comparsas-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: start;
}

.dynamics-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.dynamic-chip {
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--bg-obsidian);
  border: 1px solid var(--border-medium);
  font-size: 0.82rem;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.dynamic-chip.is-selected {
  background: rgba(242, 46, 46, 0.15);
  border-color: var(--sac-crimson);
  color: var(--text-primary);
}

/* Official Group Invitation Preview Card */
.invitation-preview-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.invitation-card {
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 0%, rgba(242, 46, 46, 0.16) 0%, transparent 48%),
    radial-gradient(circle at 85% 95%, rgba(242, 203, 5, 0.14) 0%, transparent 48%),
    linear-gradient(160deg, #1A1613 0%, #0E0C0A 60%, #161310 100%);
  border: 1px solid rgba(242, 203, 5, 0.34);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.invitation-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--ribbon-andina);
}

.invitation-inner-border {
  border: 1px solid rgba(242, 203, 5, 0.18);
  border-radius: 16px;
  padding: 26px 22px;
  position: relative;
}

.inv-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sac-gold);
  margin-bottom: 12px;
}

.inv-logo {
  height: 54px;
  margin: 0 auto 14px;
}

.inv-sub {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.inv-group-name {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 700;
  line-height: 1.1;
  background: var(--gold-sheen);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
  word-break: break-word;
}

.inv-meta-line {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-primary);
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}

.inv-shoutout {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text-primary);
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  margin-bottom: 18px;
}

.inv-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

.inv-tag {
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(242, 46, 46, 0.14);
  border: 1px solid rgba(242, 46, 46, 0.34);
  color: #FF9C9C;
}

.inv-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* Confirmed Comparsas Wall */
.comparsas-wall {
  margin-top: 56px;
}

.comparsas-wall__title {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.comparsas-wall-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.comparsa-pill-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.comparsa-pill-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.comparsa-pill-card__name {
  font-family: var(--font-serif);
  font-size: 1.22rem;
  font-weight: 600;
}

.comparsa-pill-card__count {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--sac-gold);
}

.comparsa-pill-card__origin {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.comparsa-pill-card__dyn {
  font-size: 0.76rem;
  color: var(--text-secondary);
}

/* ---------- MODALS & TOASTS ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 4, 0.82);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 30px;
  position: relative;
  transform: translateY(14px);
  transition: transform 0.3s var(--ease-out);
  box-shadow: var(--shadow-card);
}

.modal-backdrop.is-open .modal-dialog {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 600;
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
}

.toast {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 3000;
  background: var(--bg-elevated);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--text-primary);
  transform: translateY(24px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s var(--ease-out);
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.toast__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sac-gold);
}

/* ---------- FOOTER ---------- */
.footer {
  border-top: 1px solid var(--border-subtle);
  background: #080706;
  padding: 68px 0 36px;
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--ribbon-andina);
  opacity: 0.65;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-logo {
  height: 62px;
  margin-bottom: 16px;
}

.footer-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  max-width: 320px;
  margin-bottom: 18px;
}

.footer-heading {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sac-gold);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: grid;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  padding-top: 26px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---------- SCROLL REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Prevent grid children from forcing horizontal overflow */
.hero__content > *,
.legend-grid > *,
.routes-layout > *,
.tips-layout > *,
.passport-layout > *,
.tiktok-layout > *,
.comparsas-layout > *,
.carpool-grid > *,
.comparsas-wall-grid > *,
.legend-pillars > *,
.tips-grid > *,
.form-row-2 > *,
.route-meta-grid > *,
.footer-grid > * {
  min-width: 0;
}

/* ---------- RESPONSIVE BREAKPOINTS ---------- */
@media (max-width: 1080px) {

  .hero__content,
  .legend-grid,
  .routes-layout,
  .tips-layout,
  .passport-layout,
  .tiktok-layout,
  .comparsas-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .carpool-grid,
  .comparsas-wall-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .checklist-card {
    position: static;
  }
}

@media (max-width: 860px) {

  .navbar nav,
  .navbar__links,
  .navbar__actions .btn {
    display: none;
  }

  .navbar__inner {
    gap: 12px;
  }

  .navbar__toggle {
    display: inline-flex;
    flex-shrink: 0;
  }

  .section {
    padding: 82px 0;
  }

  .legend-pillars,
  .tips-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  :root {
    --nav-height: 68px;
  }

  .container {
    padding: 0 16px;
  }

  .navbar__logo {
    height: 38px;
  }

  .hero {
    padding-top: calc(var(--nav-height) + 22px);
    padding-bottom: 56px;
  }

  .hero__left {
    text-align: center;
  }

  .hero__badge {
    font-size: 0.66rem;
    letter-spacing: 0.1em;
    padding: 7px 14px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
  }

  .hero__logo-stage {
    max-width: 300px;
    margin: 0 auto 22px;
  }

  .hero__headline,
  .hero__description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__meta-bar {
    justify-content: center;
  }

  .hero__card,
  .route-detail,
  .route-map-card,
  .form-panel,
  .invitation-card {
    padding: 22px 16px;
  }

  .countdown {
    gap: 6px;
  }

  .countdown__unit {
    padding: 10px 4px;
  }

  .countdown__num {
    font-size: 1.25rem;
  }

  .carpool-grid,
  .comparsas-wall-grid,
  .route-meta-grid,
  .form-row-2,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero__ctas .btn,
  .passport-actions .btn,
  .tiktok-actions-bar .btn {
    width: 100%;
  }

  .carpool-toolbar {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
  }

  .carpool-filters {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-pill-group {
    width: 100%;
    justify-content: space-between;
  }

  .filter-pill {
    flex: 1;
    padding: 7px 8px;
    font-size: 0.76rem;
    text-align: center;
  }

  .filter-option {
    grid-template-columns: auto 1fr;
    padding: 14px;
    gap: 12px;
  }

  .filter-option__tag {
    grid-column: 2;
  }

  .credential-card {
    padding: 20px 18px;
  }

  .cred-logo {
    height: 38px;
  }

  .cred-name {
    font-size: 1.7rem;
  }

  .inv-footer {
    flex-direction: column;
    gap: 4px;
  }

  .mobile-nav__link {
    font-size: 1.65rem;
  }

  .toast {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }
}

/* ==========================================================================
   MODO CLARO (LIGHT THEME · ALABASTRO ANDINO ELEGANTE)
   ========================================================================== */

[data-theme="light"] {
  color-scheme: light;

  --bg-void: #FAF7F1;
  --bg-obsidian: #F2ECE0;
  --bg-surface: #FFFFFF;
  --bg-elevated: #F6F1E7;
  --bg-glass: rgba(250, 247, 241, 0.88);
  --bg-glass-strong: rgba(250, 247, 241, 0.95);

  --text-primary: #1A1510;
  --text-secondary: #534A40;
  --text-muted: #7A6F63;

  --border-subtle: rgba(26, 21, 16, 0.09);
  --border-medium: rgba(26, 21, 16, 0.16);
  --border-gold: rgba(196, 128, 0, 0.34);

  --gold-sheen: linear-gradient(135deg, #B26A00 0%, #D98200 52%, #DF5F00 100%);
  --shadow-card: 0 18px 44px rgba(26, 21, 16, 0.08), 0 2px 10px rgba(26, 21, 16, 0.04);
}

[data-theme="light"] .section--alt {
  background: linear-gradient(180deg, #F3ECE0 0%, #F8F4EC 100%);
}

[data-theme="light"] .section-eyebrow {
  color: #A66300;
}

/* Navbar: crisp white over Hero photo, switches to warm alabaster on scroll */
[data-theme="light"] .navbar:not(.is-scrolled) {
  background: linear-gradient(180deg, rgba(16, 13, 10, 0.76) 0%, rgba(16, 13, 10, 0) 100%);
}

[data-theme="light"] .navbar:not(.is-scrolled) .navbar__link {
  color: rgba(255, 255, 255, 0.88);
}

[data-theme="light"] .navbar:not(.is-scrolled) .navbar__link:hover,
[data-theme="light"] .navbar:not(.is-scrolled) .navbar__link.is-active {
  color: #FFFFFF;
}

[data-theme="light"] .navbar:not(.is-scrolled) .theme-toggle,
[data-theme="light"] .navbar:not(.is-scrolled) .navbar__toggle {
  background: rgba(16, 13, 10, 0.44);
  border-color: rgba(255, 255, 255, 0.28);
  color: #FFFFFF;
}

[data-theme="light"] .navbar.is-scrolled .theme-toggle,
[data-theme="light"] .navbar.is-scrolled .navbar__toggle {
  background: #FFFFFF;
  border-color: var(--border-medium);
  color: var(--text-primary);
}

[data-theme="light"] .mobile-nav {
  background: rgba(250, 247, 241, 0.97);
}

[data-theme="light"] .mobile-nav__link:hover {
  color: #B86E00;
}

/* Hero keeps cinematic photo legibility with warm alabaster bottom fade & frosted ivory card */
[data-theme="light"] .hero__img {
  filter: saturate(0.95) contrast(1.04) brightness(0.56);
}

[data-theme="light"] .hero__overlay {
  background:
    radial-gradient(circle at 75% 28%, rgba(242, 135, 5, 0.14) 0%, transparent 48%),
    linear-gradient(90deg, rgba(16, 13, 10, 0.72) 0%, rgba(16, 13, 10, 0.36) 55%, rgba(16, 13, 10, 0.45) 100%),
    linear-gradient(180deg, rgba(16, 13, 10, 0.72) 0%, rgba(16, 13, 10, 0.28) 48%, rgba(250, 247, 241, 0.92) 93%, #FAF7F1 100%);
}

[data-theme="light"] .hero__badge {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(242, 135, 5, 0.35);
  color: #9A5800;
}

[data-theme="light"] .hero__headline {
  color: #FFFFFF;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.38);
}

[data-theme="light"] .hero__description {
  color: rgba(255, 250, 242, 0.92);
}

[data-theme="light"] .hero__left .btn--outline {
  background: rgba(16, 13, 10, 0.48);
  border-color: rgba(255, 255, 255, 0.38);
  color: #FFFFFF;
}

[data-theme="light"] .hero__left .btn--outline:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--sac-gold);
}

[data-theme="light"] .hero__meta-bar {
  border-top-color: rgba(255, 255, 255, 0.22);
}

[data-theme="light"] .hero__meta-label {
  color: rgba(255, 248, 236, 0.74);
}

[data-theme="light"] .hero__meta-value {
  color: #FFFFFF;
}

[data-theme="light"] .hero__card {
  background: rgba(255, 255, 255, 0.93);
  border-color: rgba(26, 21, 16, 0.12);
  box-shadow: 0 24px 60px rgba(16, 13, 10, 0.24);
}

[data-theme="light"] .hero__card-eyebrow {
  color: #B46800;
}

[data-theme="light"] .countdown__unit {
  background: #F6F1E7;
  border-color: rgba(26, 21, 16, 0.08);
}

[data-theme="light"] .quick-pill {
  background: #FAF7F1;
  border-color: rgba(26, 21, 16, 0.08);
}

[data-theme="light"] .quick-pill:hover {
  background: #FFFFFF;
  box-shadow: 0 8px 20px rgba(26, 21, 16, 0.06);
}

/* Legend & Storytelling */
[data-theme="light"] .legend-media__caption {
  background: rgba(255, 255, 255, 0.93);
  border-color: rgba(26, 21, 16, 0.12);
}

[data-theme="light"] .legend-media__caption-tag {
  color: #B46800;
}

[data-theme="light"] .legend-quote {
  background: rgba(242, 203, 5, 0.10);
  border-left-color: #D48A00;
}

[data-theme="light"] .pillar-card,
[data-theme="light"] .tip-card,
[data-theme="light"] .ride-card,
[data-theme="light"] .comparsa-pill-card,
[data-theme="light"] .route-detail,
[data-theme="light"] .route-map-card,
[data-theme="light"] .checklist-card,
[data-theme="light"] .form-panel,
[data-theme="light"] .carpool-toolbar,
[data-theme="light"] .filter-option {
  box-shadow: var(--shadow-card);
}

/* Routes & SVG Map in Light Mode */
[data-theme="light"] .route-tab.is-active {
  background: rgba(5, 151, 242, 0.12);
  color: #0369A1;
}

[data-theme="light"] .route-detail__badge {
  background: rgba(5, 151, 242, 0.10);
  color: #0369A1;
}

[data-theme="light"] .route-step__icon {
  background: #F6F1E7;
  color: #B46800;
}

[data-theme="light"] .route-meta-box {
  background: #FAF7F1;
}

[data-theme="light"] .route-map-card .hero__meta-label {
  color: var(--text-muted);
}

[data-theme="light"] .route-map-svg-wrap {
  background: radial-gradient(circle at 60% 55%, rgba(5, 151, 242, 0.08), #F4EEE2 74%);
  border-color: rgba(26, 21, 16, 0.10);
}

[data-theme="light"] .route-map-svg path[stroke*="247,243,236"] {
  stroke: rgba(26, 21, 16, 0.10);
}

[data-theme="light"] .route-map-svg text {
  fill: #3D352C;
}

[data-theme="light"] .route-map-svg text[fill="#F2CB05"] {
  fill: #B46800;
}

[data-theme="light"] .route-map-svg circle[fill="#171512"] {
  fill: #FFFFFF;
}

[data-theme="light"] .route-final-leg {
  background: rgba(242, 203, 5, 0.11);
  border-color: rgba(196, 128, 0, 0.34);
}

[data-theme="light"] .route-final-leg__tag {
  color: #A66300;
}

/* Checklist & Carpool */
[data-theme="light"] .checklist-bar {
  background: rgba(26, 21, 16, 0.09);
}

[data-theme="light"] .checklist-item {
  background: #FAF7F1;
}

[data-theme="light"] .checklist-item:hover {
  background: #F2ECE0;
}

[data-theme="light"] .checklist-item.is-checked .checklist-box {
  color: #FFFFFF;
}

[data-theme="light"] .filter-pill.is-active {
  background: rgba(242, 135, 5, 0.15);
  color: #B45309;
}

[data-theme="light"] .ride-badge--offer {
  background: rgba(242, 135, 5, 0.12);
  color: #B45309;
  border-color: rgba(242, 135, 5, 0.32);
}

[data-theme="light"] .ride-badge--seek {
  background: rgba(5, 151, 242, 0.10);
  color: #0369A1;
  border-color: rgba(5, 151, 242, 0.3);
}

[data-theme="light"] .ride-spots,
[data-theme="light"] .comparsa-pill-card__count {
  color: #B46800;
}

[data-theme="light"] .ride-avatar {
  background: #F6F1E7;
  color: #B46800;
}

[data-theme="light"] .btn--outline {
  background: #FFFFFF;
  border-color: var(--border-medium);
  color: var(--text-primary);
}

[data-theme="light"] .btn--outline:hover {
  background: rgba(242, 203, 5, 0.10);
  border-color: #D48A00;
}

[data-theme="light"] .swatch-btn {
  background: #FAF7F1;
}

[data-theme="light"] .swatch-btn.is-active {
  background: #FFFFFF;
  box-shadow: 0 4px 12px rgba(26, 21, 16, 0.08);
}

[data-theme="light"] .file-upload-label {
  background: #FAF7F1;
}

[data-theme="light"] .free-event-note__title {
  color: #15803D;
}

[data-theme="light"] .filter-option.is-active {
  background: #FFFFFF;
  box-shadow: 0 12px 30px rgba(26, 21, 16, 0.09);
}

[data-theme="light"] .filter-option__badge {
  background: #FAF7F1;
}

[data-theme="light"] .hashtag-chip {
  background: #FFFFFF;
  border-color: var(--border-medium);
}

[data-theme="light"] .dynamic-chip.is-selected {
  background: rgba(242, 46, 46, 0.10);
  color: #B91C1C;
}

/* Preserve Luxury Dark-Gold Keepsake Styling inside Collectible Cards */
[data-theme="light"] .credential-card,
[data-theme="light"] .invitation-card {
  color: #F7F3EC;
  box-shadow: 0 28px 65px rgba(26, 21, 16, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

[data-theme="light"] .credential-card .cred-edition__serial,
[data-theme="light"] .credential-card .cred-origin,
[data-theme="light"] .invitation-card .inv-sub {
  color: #B9B0A4;
}

[data-theme="light"] .credential-card .cred-name,
[data-theme="light"] .credential-card .cred-stamp strong,
[data-theme="light"] .invitation-card .inv-meta-line,
[data-theme="light"] .invitation-card .inv-shoutout {
  color: #F7F3EC;
}

[data-theme="light"] .credential-card .cred-stamp,
[data-theme="light"] .invitation-card .inv-footer {
  color: #9A9185;
}

[data-theme="light"] .credential-card .cred-footer,
[data-theme="light"] .invitation-card .inv-footer {
  border-top-color: rgba(247, 243, 236, 0.12);
}

[data-theme="light"] .invitation-card .inv-group-name {
  background: linear-gradient(135deg, #FFF3B0 0%, #F2CB05 45%, #F28705 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

[data-theme="light"] .invitation-card .inv-tag {
  color: #FF9C9C;
}

/* Footer, Modals & Toast in Light Mode */
[data-theme="light"] .footer {
  background: #EFE8DB;
}

[data-theme="light"] .footer-heading {
  color: #A66300;
}

[data-theme="light"] .modal-backdrop {
  background: rgba(20, 16, 12, 0.56);
}

[data-theme="light"] .modal-close {
  background: rgba(26, 21, 16, 0.06);
}

[data-theme="light"] .modal-close:hover {
  background: rgba(26, 21, 16, 0.12);
}

[data-theme="light"] .toast {
  background: #FFFFFF;
  box-shadow: 0 18px 42px rgba(26, 21, 16, 0.16);
}