:root {
  --bg-dark: #0b0e1f;
  --bg-dark2: #141a33;
  --accent-gold: #e8b74f;
  --accent-purple: #6d4fc9;
  --text-light: #f4f2ff;
  --text-muted: #b8b6cc;
  --card-bg: #1a2040;
  --max-width: 1040px;
  --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
}

a { color: var(--accent-gold); }

h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -.01em;
}

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

/* Nav */
header.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 14, 31, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-light);
  text-decoration: none;
  letter-spacing: .2px;
}

.brand span { color: var(--accent-gold); }

.brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex: 0 0 auto;
  background:
    radial-gradient(circle at 50% 50%, #05060c 0 38%, transparent 39%),
    radial-gradient(circle at 50% 50%, var(--accent-gold) 0 40%, rgba(232,183,79,0.35) 55%, rgba(232,183,79,0) 72%);
  box-shadow: 0 0 8px 1px rgba(232,183,79,0.35);
}

nav.links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

nav.links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: .95rem;
}

nav.links a:hover, nav.links a.active { color: var(--accent-gold); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  padding: 76px 0 64px;
  background:
    linear-gradient(180deg, rgba(6,7,16,0.35) 0%, rgba(6,7,16,0.55) 45%, rgba(6,7,16,0.96) 92%),
    url('https://commons.wikimedia.org/wiki/Special:FilePath/2024_Total_Solar_Eclipse_Corona.jpg') center 30% / cover no-repeat;
  background-color: var(--bg-dark);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 15%, rgba(109,79,201,0.35), transparent 55%);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

@media (max-width: 780px) {
  .hero { min-height: 92vh; align-items: flex-end; }
  .hero .wrap { max-width: 100%; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(11,14,31,0.55);
  border: 1px solid rgba(232,183,79,0.35);
  color: var(--accent-gold);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
  backdrop-filter: blur(4px);
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-gold);
  box-shadow: 0 0 6px 1px rgba(232,183,79,0.7);
  flex: 0 0 auto;
}

.hero h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.08;
  margin: 0 0 14px;
  letter-spacing: -.01em;
}

.hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent-gold);
}

.hero .kicker {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 26px;
}

.hero p.lead {
  color: var(--text-muted);
  font-size: 1.08rem;
  margin: 0 0 28px;
  max-width: 46ch;
}

.hero .cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(11,14,31,0.55);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  padding: 8px 16px 8px 10px;
  backdrop-filter: blur(4px);
}

.stat-badge .num {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--accent-gold);
}

.stat-badge small {
  display: block;
  font-size: .72rem;
  color: var(--text-muted);
  line-height: 1.2;
}

.btn {
  display: inline-block;
  background: var(--accent-gold);
  color: #1a1400;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-size: .98rem;
  box-shadow: 0 8px 22px -8px rgba(232,183,79,0.55);
  transition: transform .15s ease, box-shadow .15s ease;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -8px rgba(232,183,79,0.65); }

.btn.secondary {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--text-light);
  box-shadow: none;
}

/* Trust row */
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .84rem;
  color: var(--text-muted);
}

.trust-item .ico {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(232,183,79,0.12);
  border: 1px solid rgba(232,183,79,0.3);
  color: var(--accent-gold);
  font-size: .95rem;
  flex: 0 0 auto;
}

.trust-item strong { color: var(--text-light); }

/* Quote box */
.quote-box {
  background: var(--card-bg);
  border-left: 4px solid var(--accent-gold);
  border-radius: 10px;
  padding: 22px 26px;
  margin: 40px 0 0;
  position: relative;
}

.quote-box p { margin: 0 0 10px; font-style: italic; }
.quote-box footer { color: var(--accent-gold); font-weight: 600; font-size: .9rem; }

/* Content sections */
main { padding: 56px 0; }

section.block { margin-bottom: 48px; }

h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.65rem;
  margin: 0 0 14px;
  color: var(--text-light);
}

h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.25rem;
  margin: 28px 0 10px;
  color: var(--accent-gold);
}

p { color: var(--text-muted); }

/* Guide layout with sticky TOC */
.guide-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 860px) {
  .guide-layout { grid-template-columns: 1fr; }
}

.toc {
  position: sticky;
  top: 84px;
  border-left: 2px solid rgba(255,255,255,0.1);
  padding-left: 16px;
}

.toc a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: .92rem;
  padding: 6px 0;
}

.toc a:hover { color: var(--accent-gold); }
.toc a.sub { padding-left: 14px; font-size: .87rem; }

.cta-card {
  background: linear-gradient(135deg, rgba(109,79,201,0.25), rgba(232,183,79,0.12));
  border: 1px solid rgba(232,183,79,0.35);
  border-radius: 14px;
  padding: 26px;
  margin-top: 18px;
}

.cta-card p { color: var(--text-light); }

/* Footer */
footer.site-footer {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 40px 0;
  color: var(--text-muted);
  font-size: .9rem;
}

footer.site-footer .cols {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

footer.site-footer h4 {
  color: var(--text-light);
  font-size: .95rem;
  margin: 0 0 10px;
}

footer.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
  display: block;
  padding: 3px 0;
}

footer.site-footer a:hover { color: var(--accent-gold); }

.legal-page section { margin-bottom: 32px; }

/* Route timeline */
.route {
  display: flex;
  gap: 0;
  overflow-x: auto;
  padding: 22px 0 10px;
  margin: 24px 0 8px;
  border-top: 2px solid rgba(232,183,79,0.35);
  border-bottom: 2px solid rgba(232,183,79,0.35);
}

.route-stop {
  flex: 0 0 170px;
  padding: 0 18px;
  border-right: 1px dashed rgba(255,255,255,0.12);
}

.route-stop:last-child { border-right: none; }

.route-stop .city {
  font-weight: 700;
  color: var(--accent-gold);
  font-size: .95rem;
  margin-bottom: 4px;
}

.route-stop .time {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-light);
}

.route-stop .meta {
  font-size: .8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Times table */
table.times {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 8px;
  font-size: .92rem;
}

table.times th, table.times td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

table.times th {
  color: var(--accent-gold);
  font-weight: 600;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

table.times td { color: var(--text-muted); }
table.times td.city-name { color: var(--text-light); font-weight: 600; }
table.times tr.partial td { opacity: .75; }

.table-wrap { overflow-x: auto; }

.tag {
  display: inline-block;
  font-size: .72rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(232,183,79,0.18);
  color: var(--accent-gold);
  margin-left: 6px;
}

.tag.partial {
  background: rgba(184,182,204,0.15);
  color: var(--text-muted);
}

.source-note {
  font-size: .8rem;
  color: var(--text-muted);
  margin-top: 10px;
}

.source-note a { color: var(--text-muted); text-decoration: underline; }

/* Region section (lugares.html) */
.region {
  margin-bottom: 56px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.08);
}

.region-cover {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.region-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(.72);
}

.region-cover .region-title {
  position: absolute;
  left: 24px;
  bottom: 16px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.region-title h2 {
  margin: 0;
  font-size: 1.5rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

.region-cover .credit {
  position: absolute;
  right: 10px;
  bottom: 6px;
  font-size: .68rem;
  color: rgba(255,255,255,0.6);
  background: rgba(0,0,0,0.35);
  padding: 2px 6px;
  border-radius: 4px;
}

.places-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  padding: 22px 24px 26px;
}

.place-card {
  display: block;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 14px 16px;
  text-decoration: none;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}

.place-card:hover {
  transform: translateY(-2px);
  border-color: rgba(232,183,79,0.4);
  background: rgba(255,255,255,0.05);
}

.place-card .rank {
  color: var(--accent-gold);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .05em;
}

.place-card h4,
.place-card .name {
  margin: 4px 0 6px;
  font-size: 1.02rem;
  color: var(--text-light);
  font-weight: 600;
}

.place-card p,
.place-card .note {
  font-size: .87rem;
  margin: 0 0 10px;
  color: var(--text-muted);
}

.maps-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--accent-gold);
  text-decoration: none;
}

.maps-link:hover { text-decoration: underline; }

.region-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 36px;
}

.region-filter button {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: .82rem;
  cursor: pointer;
}

.region-filter button.active,
.region-filter button:hover {
  background: var(--accent-gold);
  color: #1a1400;
  border-color: var(--accent-gold);
}

.pic-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 24px 0;
  border-radius: 14px;
  overflow: hidden;
}

.pic-row img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

@media (max-width: 700px) {
  .pic-row { grid-template-columns: 1fr 1fr; }
}

.full-photo {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  margin: 28px 0;
  position: relative;
}

.full-photo img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  display: block;
}

.full-photo .credit {
  position: absolute;
  right: 10px;
  bottom: 8px;
  font-size: .68rem;
  color: rgba(255,255,255,0.75);
  background: rgba(0,0,0,0.4);
  padding: 2px 7px;
  border-radius: 4px;
  text-decoration: none;
}

/* Ad slot placeholders (for Monetag) */
.ad-slot {
  border: 1px dashed rgba(255,255,255,0.2);
  border-radius: 10px;
  padding: 14px;
  text-align: center;
  color: var(--text-muted);
  font-size: .8rem;
  margin: 34px 0;
}
