:root {
  --bg: #07101e;
  --bg-2: #0c1830;
  --surface: #101b2d;
  --surface-2: #172337;
  --text: #f8fafc;
  --muted: rgba(248, 250, 252, 0.72);
  --subtle: rgba(248, 250, 252, 0.52);
  --line: rgba(248, 250, 252, 0.14);
  --gold: #e0af43;
  --gold-2: #f2d27a;
  --green: #128c55;
  --green-2: #0f7a49;
  --navy: #082044;
  --white: #ffffff;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
  --radius: 10px;
  --radius-sm: 6px;
  --shell: 1320px;
}

html[data-theme="light"] {
  --bg: #f7f9fc;
  --bg-2: #ffffff;
  --surface: #ffffff;
  --surface-2: #edf2f7;
  --text: #061a36;
  --muted: rgba(6, 26, 54, 0.84);
  --subtle: rgba(6, 26, 54, 0.68);
  --line: rgba(6, 26, 54, 0.16);
  --gold: #b97a0f;
  --gold-2: #d8a12c;
  --shadow: 0 24px 64px rgba(20, 39, 68, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  background:
    linear-gradient(180deg, rgba(224, 175, 67, 0.08), transparent 240px),
    var(--bg);
  color: var(--text);
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-shell {
  width: min(calc(100% - 28px), var(--shell));
  margin: 18px auto 36px;
}

.topbar {
  position: sticky;
  top: 12px;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  min-height: 88px;
  padding: 14px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(7, 16, 30, 0.84);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

html[data-theme="light"] .topbar {
  border-color: rgba(6, 26, 54, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 253, 0.96));
  box-shadow: 0 16px 44px rgba(14, 35, 63, 0.1);
}

.brand {
  display: block;
  width: 226px;
  min-width: 190px;
  height: 74px;
  overflow: hidden;
}

.brand img {
  width: 260px;
  max-width: none;
  height: auto;
  margin: -26px 0 0 -30px;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 30px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.nav a {
  position: relative;
  padding: 12px 0;
}

.nav a::after {
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 2px;
  background: var(--gold);
  content: "";
  opacity: 0;
  transform: scaleX(0.6);
  transition: 180ms ease;
}

.nav a:hover,
.nav a.is-active {
  color: var(--text);
}

.nav a:hover::after,
.nav a.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

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

.lang-switch,
.theme-toggle {
  display: flex;
  align-items: center;
  min-height: 42px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.055);
}

html[data-theme="light"] .lang-switch,
html[data-theme="light"] .theme-toggle {
  border-color: rgba(6, 26, 54, 0.12);
  background: #f4f7fb;
}

.lang-switch button,
.theme-toggle {
  color: var(--muted);
  border: 0;
}

.lang-switch button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 10px;
  background: transparent;
  font-size: 0.78rem;
  font-weight: 900;
}

.lang-switch button.is-active {
  color: var(--text);
  background: rgba(224, 175, 67, 0.14);
}

.flag {
  width: 18px;
  height: 18px;
  object-fit: cover;
  border-radius: 50%;
}

.theme-toggle {
  gap: 8px;
  padding: 0 12px;
  font-size: 0.78rem;
  font-weight: 900;
}

.theme-toggle-icon {
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #061a36;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  box-shadow: 0 18px 40px rgba(224, 175, 67, 0.26);
}

.btn-secondary {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.06);
}

.btn-whatsapp,
a[data-whatsapp-label] {
  color: #fff;
  border-color: rgba(18, 140, 85, 0.9);
  background: linear-gradient(135deg, var(--green), var(--green-2));
  box-shadow: 0 18px 36px rgba(18, 140, 85, 0.2);
}

.btn-text {
  color: var(--gold-2);
  border-color: rgba(224, 175, 67, 0.34);
  background: transparent;
}

.icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero {
  position: relative;
  min-height: 760px;
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
}

.hero::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 16, 30, 0.95) 0%, rgba(7, 16, 30, 0.72) 36%, rgba(7, 16, 30, 0.1) 66%),
    linear-gradient(0deg, rgba(7, 16, 30, 0.85) 0%, transparent 34%);
  content: "";
}

html[data-theme="light"] .hero::after {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.985) 0%, rgba(255, 255, 255, 0.93) 28%, rgba(255, 255, 255, 0.62) 49%, rgba(255, 255, 255, 0.12) 68%),
    linear-gradient(180deg, rgba(248, 250, 253, 0.16) 0%, transparent 20%, transparent 76%, rgba(248, 250, 253, 0.42) 100%),
    linear-gradient(0deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.04) 24%);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 3;
  display: grid;
  align-content: center;
  max-width: 620px;
  min-height: 620px;
  padding: 78px 58px 238px;
}

.display {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(4.3rem, 8vw, 7.8rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: 0;
}

.display em,
.section-title em {
  color: var(--gold-2);
  font-style: normal;
}

.lead {
  max-width: 660px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  font-weight: 650;
  line-height: 1.72;
}

.hero-search {
  display: grid;
  grid-template-columns: 1fr auto;
  width: min(100%, 540px);
  margin-top: 34px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
}

html[data-theme="light"] .hero-search {
  background: #fff;
  border-color: rgba(6, 26, 54, 0.14);
  box-shadow: 0 18px 48px rgba(20, 39, 68, 0.1);
}

.hero-search input {
  min-height: 56px;
  width: 100%;
  padding: 0 18px;
  color: var(--text);
  border: 0;
  background: transparent;
  outline: none;
}

.hero-search input::placeholder {
  color: var(--subtle);
}

.hero-search button {
  min-width: 64px;
  color: #07101e;
  border: 0;
  background: var(--gold-2);
}

.hero-actions {
  position: relative;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-rail {
  position: absolute;
  z-index: 1;
  right: 34px;
  bottom: 34px;
  left: 34px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.category-tile {
  position: relative;
  min-height: 134px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #0a1424;
}

.category-tile img {
  width: 100%;
  height: 100%;
  min-height: 134px;
  object-fit: cover;
  opacity: 0.58;
  transition: 220ms ease;
}

.category-tile:hover img {
  opacity: 0.74;
  transform: scale(1.04);
}

.category-tile span {
  position: absolute;
  right: 16px;
  bottom: 14px;
  left: 16px;
  color: #fff;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 900;
}

.marquee {
  margin: 20px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

html[data-theme="light"] .marquee {
  border-color: rgba(6, 26, 54, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 249, 252, 0.96));
}

.marquee-track {
  width: max-content;
  padding: 12px 0;
  color: var(--gold-2);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: marquee 28s linear infinite;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.section {
  padding: 74px 0;
}

.section.alt {
  margin-inline: calc((100vw - min(calc(100vw - 28px), var(--shell))) / -2);
  padding-inline: calc((100vw - min(calc(100vw - 28px), var(--shell))) / 2);
  background: var(--surface);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.65fr);
  gap: 42px;
  align-items: end;
  margin-bottom: 34px;
}

.section-title {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.section-kicker {
  margin: 0 0 12px;
  color: var(--gold-2);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.finder {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 24px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: var(--surface);
}

html[data-theme="light"] .search-box,
html[data-theme="light"] .event-card,
html[data-theme="light"] .wide-event,
html[data-theme="light"] .detail-hero,
html[data-theme="light"] .option-card,
html[data-theme="light"] .info-card,
html[data-theme="light"] .empty-state {
  border-color: rgba(6, 26, 54, 0.1);
  box-shadow: 0 18px 40px rgba(14, 35, 63, 0.05);
}

.search-box input {
  width: 100%;
  color: var(--text);
  border: 0;
  background: transparent;
  outline: none;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-button {
  min-height: 42px;
  padding: 0 14px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: transparent;
  font-size: 0.82rem;
  font-weight: 900;
}

.filter-button.is-active {
  color: #07101e;
  border-color: var(--gold);
  background: var(--gold-2);
}

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

.event-card {
  display: grid;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.event-card-image {
  position: relative;
  aspect-ratio: 1.22 / 0.82;
  overflow: hidden;
}

.event-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 220ms ease;
}

.event-card:hover .event-card-image img {
  transform: scale(1.035);
}

.event-card-body {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.event-label {
  color: var(--gold-2);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.event-card h3,
.event-detail-copy h1,
.info-card h3 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.02;
}

.event-card h3 {
  font-size: 1.45rem;
}

.event-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 650;
  line-height: 1.58;
}

html[data-theme="light"] .lead,
html[data-theme="light"] .event-card p,
html[data-theme="light"] .option-card p,
html[data-theme="light"] .info-card p,
html[data-theme="light"] .step p,
html[data-theme="light"] .footer p,
html[data-theme="light"] .footer li,
html[data-theme="light"] .footer small,
html[data-theme="light"] .empty-state,
html[data-theme="light"] .event-meta,
html[data-theme="light"] .fact-list li,
html[data-theme="light"] .experience-list li {
  color: rgba(6, 26, 54, 0.82);
}

.event-meta {
  display: grid;
  gap: 7px;
  color: var(--subtle);
  font-size: 0.82rem;
  font-weight: 800;
}

.event-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}

.event-actions .btn {
  min-height: 40px;
  padding: 0 10px;
  font-size: 0.76rem;
}

.wide-list {
  display: grid;
  gap: 14px;
}

.wide-event {
  display: grid;
  grid-template-columns: 320px 1fr auto;
  gap: 24px;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.wide-event img {
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
}

.wide-event-copy {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 24px 0;
}

.wide-event-copy h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

.wide-event-side {
  display: grid;
  align-content: center;
  gap: 10px;
  min-width: 220px;
  padding: 24px;
  border-left: 1px solid var(--line);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.step {
  padding: 28px;
  background: var(--bg);
}

html[data-theme="light"] .step {
  background: rgba(255, 255, 255, 0.9);
}

.step strong {
  display: block;
  color: var(--gold-2);
  margin-bottom: 38px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 3rem;
}

.step h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 0.75fr);
  gap: 38px;
  align-items: center;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.detail-media {
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.detail-media img {
  width: 100%;
  min-height: 460px;
  object-fit: cover;
}

.event-detail-copy h1 {
  font-size: clamp(3rem, 6vw, 5.8rem);
}

.fact-list,
.experience-list {
  display: grid;
  gap: 10px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.fact-list li,
.experience-list li {
  padding: 12px 0;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-weight: 750;
}

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

.option-card,
.info-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.option-card {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.option-card h3 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.55rem;
}

.option-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

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

.info-card {
  padding: 28px;
}

.info-card h3 {
  font-size: 1.5rem;
}

.info-card p {
  color: var(--muted);
  line-height: 1.65;
}

.share-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  max-width: 320px;
  padding: 14px 16px;
  color: #07101e;
  border-radius: var(--radius-sm);
  background: var(--gold-2);
  box-shadow: var(--shadow);
  font-weight: 900;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: 180ms ease;
}

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

.footer {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 44px;
  margin-top: 42px;
  padding: 46px 0 20px;
  border-top: 1px solid var(--line);
}

html[data-theme="light"] .footer {
  border-top-color: rgba(6, 26, 54, 0.1);
}

.footer img {
  width: 250px;
  max-width: none;
  margin: -30px 0 0 -30px;
  clip-path: inset(22% 6% 22% 8%);
}

.footer p,
.footer li,
.footer small {
  color: var(--muted);
  line-height: 1.65;
}

.footer h4 {
  margin: 0 0 14px;
  color: var(--gold-2);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.empty-state {
  padding: 36px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-weight: 800;
}

@media (max-width: 1120px) {
  .topbar {
    grid-template-columns: 1fr;
  }

  .nav {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .topbar-actions {
    flex-wrap: wrap;
  }

  .hero-rail,
  .event-grid,
  .option-grid,
  .info-grid,
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .wide-event {
    grid-template-columns: 260px 1fr;
  }

  .wide-event-side {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .detail-hero,
  .section-head {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(calc(100% - 18px), var(--shell));
    margin-top: 9px;
  }

  .topbar {
    position: relative;
    top: 0;
    gap: 18px;
    padding: 18px 14px;
  }

  .brand {
    width: 100%;
    height: 86px;
  }

  .brand img {
    width: 250px;
    margin: -18px 0 0 -20px;
  }

  .nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 18px;
    width: 100%;
    overflow: visible;
  }

  .nav a {
    padding: 6px 0;
    font-size: 0.9rem;
  }

  .topbar-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    gap: 12px;
  }

  .theme-toggle,
  .lang-switch,
  .topbar-actions .btn-whatsapp,
  .topbar-actions a[data-whatsapp-label] {
    width: 100%;
  }

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

  .lang-switch button {
    justify-content: center;
    padding: 0 8px;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    align-content: start;
    max-width: 100%;
    min-height: auto;
    padding: 40px 22px 24px;
  }

  .display {
    font-size: clamp(3rem, 14vw, 4.15rem);
    line-height: 0.96;
  }

  .lead {
    margin-top: 18px;
    font-size: 0.98rem;
    line-height: 1.55;
  }

  .hero-search,
  .finder {
    grid-template-columns: 1fr;
  }

  .hero-search {
    width: 100%;
    margin-top: 24px;
  }

  .hero-search input {
    min-height: 54px;
    padding: 0 14px;
    font-size: 0.9rem;
  }

  .hero-search input::placeholder {
    font-size: 0.9rem;
  }

  .hero-search button {
    min-height: 56px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 18px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-rail {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    margin: 12px 22px 22px;
    gap: 12px;
  }

  .category-tile {
    min-height: 150px;
  }

  .category-tile img {
    min-height: 150px;
  }

  .category-tile span {
    font-size: 1.2rem;
    right: 14px;
    bottom: 12px;
    left: 14px;
  }

  .marquee {
    margin-top: 14px;
  }

  .hero-rail,
  .event-grid,
  .option-grid,
  .info-grid,
  .steps,
  .footer {
    grid-template-columns: 1fr;
  }

  .wide-event {
    grid-template-columns: 1fr;
  }

  .wide-event-copy,
  .wide-event-side {
    padding: 22px;
  }

  .detail-hero {
    padding: 18px;
  }

  .detail-media img {
    min-height: 300px;
  }

  .event-actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
