:root {
  --dark: #07080c;
  --dark-soft: #111520;
  --gold: #f5c85b;
  --gold-strong: #ffb81c;
  --pink: #ff4db8;
  --white: #ffffff;
  --text: #222222;
  --muted: #666666;
  --panel: rgba(10, 12, 18, 0.82);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: #fff;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  color: white;
  background: linear-gradient(180deg, rgba(0,0,0,.78), rgba(0,0,0,.15));
}
.brand {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 800;
  letter-spacing: .02em;
}
.brand span { color: var(--gold); }
.nav {
  display: flex;
  gap: clamp(12px, 2vw, 28px);
  font-size: .92rem;
  font-weight: 700;
}
.nav a { opacity: .9; }
.nav a:hover { color: var(--gold); opacity: 1; }

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: white;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 66% 38%, rgba(255, 200, 91, .05), transparent 38%),
    linear-gradient(90deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.34) 42%, rgba(0,0,0,.22) 100%),
    linear-gradient(0deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,0) 44%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: min(1100px, 92vw);
  padding-top: 72px;
  text-align: left;
}
.eyebrow, .section-kicker {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 900;
  font-size: .78rem;
}
.hero h1 {
  margin: 12px 0;
  font-family: 'Playfair Display', serif;
  font-size: clamp(4rem, 10vw, 9rem);
  line-height: .86;
  text-shadow: 0 12px 30px rgba(0,0,0,.65);
}
.hero-subtitle {
  max-width: 900px;
  margin: 0 0 12px;
  font-size: clamp(1.3rem, 3vw, 2.45rem);
  font-weight: 900;
  text-shadow: 0 8px 24px rgba(0,0,0,.65);
}
.hero-highlight {
  display: inline-block;
  max-width: 900px;
  padding: 14px 18px;
  border: 1px solid rgba(245, 200, 91, .6);
  border-radius: 999px;
  background: rgba(0,0,0,.45);
  color: #fff4cf;
  font-weight: 800;
  box-shadow: 0 14px 40px rgba(0,0,0,.35);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 900;
  box-shadow: var(--shadow);
}
.btn-primary { background: linear-gradient(135deg, var(--gold), var(--gold-strong)); color: #2b1800; }
.btn-secondary { border: 1px solid rgba(255,255,255,.5); background: rgba(255,255,255,.1); color: white; backdrop-filter: blur(10px); }

.container { width: min(1180px, 92vw); margin: 0 auto; }
.narrow { width: min(860px, 92vw); }
section { padding: clamp(64px, 8vw, 110px) 0; }
.section-light { background: #fff; }
.section-dark {
  color: white;
  background:
    radial-gradient(circle at 10% 10%, rgba(245,200,91,.18), transparent 24%),
    radial-gradient(circle at 95% 20%, rgba(255,77,184,.1), transparent 30%),
    linear-gradient(180deg, #080a0f, #111520);
}
.intro { text-align: center; }
.intro h2, .section-heading h2, .next-challenge h2 {
  margin: 12px 0 18px;
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.05;
}
.intro p:not(.section-kicker), .section-heading p, .next-challenge p {
  font-size: 1.08rem;
  line-height: 1.8;
}
.section-heading { text-align: center; margin-bottom: 42px; }
.section-heading p { color: inherit; opacity: .78; }

.achievement {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: clamp(22px, 4vw, 42px);
  align-items: center;
  margin: 34px 0;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid rgba(245, 200, 91, .35);
  border-radius: 32px;
  background: rgba(255,255,255,.045);
  box-shadow: var(--shadow);
}
.achievement:nth-of-type(even) { grid-template-columns: 1fr 1fr; }
.badge {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(245, 200, 91, .16);
  color: var(--gold);
  font-weight: 900;
  border: 1px solid rgba(245, 200, 91, .35);
}
.badge-red { background: rgba(255, 77, 184, .16); color: #ffc4ea; border-color: rgba(255, 77, 184, .35); }
.achievement h3 {
  margin: 18px 0 10px;
  font-size: clamp(1.7rem, 3vw, 3rem);
  line-height: 1.06;
}
.achievement-subtitle { color: #ffe0a3; font-weight: 800; }
.stats-list { padding: 0; margin: 24px 0 0; list-style: none; display: grid; gap: 14px; }
.stats-list li {
  padding: 14px 16px;
  border-left: 4px solid var(--gold);
  border-radius: 14px;
  background: rgba(0,0,0,.25);
  line-height: 1.5;
}
.achievement-images { display: grid; gap: 14px; }
.achievement-images img {
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid rgba(245, 200, 91, .38);
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
}
.three-grid { grid-template-columns: 1.25fr .75fr; }
.three-grid img:first-child { grid-row: span 2; }
.two-grid { grid-template-columns: 1fr 1fr; }

/* Logro principal: mostrar la tabla completa sin recortarla */
.featured-achievement {
  grid-template-columns: 0.72fr 1.28fr;
}
.proof-grid {
  grid-template-columns: 1fr;
}
.proof-grid img {
  height: auto;
  min-height: 0;
  object-fit: contain;
  background: #05070b;
}
.proof-grid .main-proof {
  border-radius: 26px;
}
.proof-grid .secondary-proof {
  max-height: 360px;
  object-fit: contain;
  object-position: center;
}

/* Título absoluto municipal: las pruebas tienen texto importante, por eso se muestran grandes y completas */
.municipal-achievement {
  grid-template-columns: 0.58fr 1.42fr;
}
.municipal-proof-grid {
  grid-template-columns: 1fr;
  align-items: start;
}
.municipal-proof-grid img {
  height: auto;
  min-height: 0;
  max-height: none;
  object-fit: contain;
  object-position: center;
  background: #05070b;
  padding: 0;
}
.municipal-proof-grid .main-proof {
  border-radius: 26px;
}
.municipal-proof-grid .secondary-proof {
  border-radius: 24px;
}



.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.participation-card {
  border-radius: 28px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 16px 50px rgba(0,0,0,.12);
  border: 1px solid #eee;
}
.participation-card img {
  width: 100%;
  height: 280px;
  object-fit: contain;
  object-position: center;
  background: linear-gradient(135deg, #fff8e8, #f2f4f8);
  padding: 8px;
}
.participation-card div { padding: 22px; }
.participation-card h3 { margin: 0 0 10px; font-size: 1.25rem; }
.participation-card p { margin: 0; line-height: 1.55; color: var(--muted); }

.gallery-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
}
.gallery-grid img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 28px;
  border: 1px solid rgba(245, 200, 91, .3);
  box-shadow: var(--shadow);
}
.gallery-grid img:first-child { grid-row: span 2; height: 738px; }

.next-challenge {
  text-align: center;
  color: white;
  background:
    linear-gradient(rgba(0,0,0,.72), rgba(0,0,0,.72)),
    url('assets/Nicole_Dragon.png') center/cover fixed;
}
.next-challenge .narrow {
  padding: clamp(28px, 4vw, 52px);
  border-radius: 36px;
  background: rgba(0,0,0,.48);
  border: 1px solid rgba(245, 200, 91, .38);
  box-shadow: var(--shadow);
}
.site-footer {
  padding: 28px 20px;
  text-align: center;
  color: white;
  background: #050608;
}

@media (max-width: 900px) {
  .site-header { position: absolute; flex-direction: column; align-items: flex-start; }
  .nav { flex-wrap: wrap; }
  .hero { min-height: 820px; align-items: end; padding-bottom: 54px; }
  .hero-highlight { border-radius: 22px; }
  .achievement, .achievement:nth-of-type(even), .municipal-achievement, .three-grid, .two-grid, .municipal-proof-grid, .cards-grid, .gallery-grid {
    grid-template-columns: 1fr;
  }
  .three-grid img:first-child { grid-row: auto; }
  .gallery-grid img, .gallery-grid img:first-child { height: auto; }
}

@media (max-width: 560px) {
  .nav { display: none; }
  .hero h1 { font-size: 4.3rem; }
  .hero-subtitle { font-size: 1.35rem; }
  .achievement { border-radius: 22px; }
  .participation-card img { height: 260px; }
}
