* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Georgia', serif;
  background: linear-gradient(to bottom, #120000, #000 60%);
  color: #eaeaea;
  overflow-x: hidden;
}

/* NAV */

nav {
  position: fixed;
  width: 100%;
  top: 0;
  padding: 20px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0,0,0,0.95);
  border-bottom: 1px solid rgba(212,175,55,0.2);
  z-index: 1000;
}
nav a {
    color: #d4af37;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

nav {
  position: fixed;
  width: 100%;
  top: 0;
  padding: 20px 60px;
  display: flex;
  justify-content: space-between;
  background: rgba(0,0,0,0.9);
  border-bottom: 1px solid rgba(212,175,55,0.3);
  z-index: 1000;
}

.logo {
  color: #d4af37;
  font-size: 24px;
  letter-spacing: 2px;
}

.nav-links a {
  color: #d4af37;
  text-decoration: none;
  margin-left: 30px;
  transition: 0.3s;
}

.nav-links a:hover {
  color: #fff;
}

/* HERO */

.hero {
  margin-top: 120px;
  text-align: center;
  padding: 60px 20px;
}

.hero h1 {
  font-size: 42px;
  color: #d4af37;
  margin-bottom: 10px;
}

.hero p {
  color: #aaa;
}

/* MAPA */

.mapa-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: 40px;
}

.mapa-container {
  position: relative;
  max-width: 800px;
  width: 100%;
}

.mapa-container img {
  width: 100%;
  border-radius: 20px;
  display: block;
}

/* PONTOS */

.territorio {
  position: absolute;
  width: 16px;
  height: 16px;
  background: radial-gradient(circle, #ffcc00 40%, #d4af37 70%);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 12px #d4af37;
  transition: 0.3s ease;
  animation: pulsar 2s infinite;
}

@keyframes pulsar {
  0% { box-shadow: 0 0 10px #d4af37; }
  50% { box-shadow: 0 0 20px #ff003c; }
  100% { box-shadow: 0 0 10px #d4af37; }
}

.territorio:hover {
  transform: scale(1.4);
  background: #ff003c;
}

/* INFO BOX */

.info-territorio {
  background: rgba(20,20,25,0.8);
  padding: 25px;
  border-radius: 15px;
  max-width: 600px;
  text-align: center;
  border: 1px solid rgba(212,175,55,0.2);
  backdrop-filter: blur(6px);
}

/* ESTATÍSTICAS */

.estatisticas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 60px auto;
  padding: 0 40px;
}

.card-estat {
  background: rgba(20,20,25,0.6);
  border: 1px solid rgba(212,175,55,0.2);
  padding: 30px;
  text-align: center;
  border-radius: 15px;
  transition: 0.3s;
}

.card-estat:hover {
  transform: translateY(-5px);
  border-color: #d4af37;
}

.card-estat h3 {
  font-size: 32px;
  color: #d4af37;
}

/* HISTÓRIA */

.historia {
  max-width: 900px;
  margin: 80px auto;
  padding: 0 40px;
  line-height: 1.9;
}

.historia h2 {
  color: #d4af37;
  margin-bottom: 25px;
  text-align: center;
}

/* TIMELINE */

.timeline {
  max-width: 800px;
  margin: 80px auto;
  padding: 0 40px;
}

.timeline h2 {
  text-align: center;
  margin-bottom: 40px;
  color: #d4af37;
}

.evento {
  background: rgba(20,20,25,0.6);
  border-left: 3px solid #d4af37;
  padding: 20px 25px;
  margin-bottom: 20px;
  border-radius: 8px;
}

.evento span {
  color: #d4af37;
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
}

/* ÁREAS */

.areas {
  max-width: 1000px;
  margin: 80px auto;
  padding: 0 40px;
}

.areas h2 {
  text-align: center;
  margin-bottom: 40px;
  color: #d4af37;
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
}

.area-card {
  background: rgba(20,20,25,0.6);
  padding: 25px;
  text-align: center;
  border-radius: 15px;
  border: 1px solid rgba(212,175,55,0.2);
  transition: 0.3s;
}

.area-card:hover {
  transform: scale(1.05);
  border-color: #d4af37;
}

/* CÓDIGO */

.codigo {
  max-width: 700px;
  margin: 80px auto;
  padding: 0 40px;
  text-align: center;
}

.codigo h2 {
  margin-bottom: 30px;
  color: #d4af37;
}

.codigo ul {
  list-style: none;
}

.codigo li {
  margin-bottom: 15px;
  padding: 10px;
  border-bottom: 1px solid rgba(212,175,55,0.2);
}

/* FOOTER */

footer {
  text-align: center;
  padding: 40px;
  color: #d4af37;
  font-size: 13px;
  margin-top: 60px;
}

/* RESPONSIVO */

@media (max-width: 768px) {

  nav {
    padding: 15px 20px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero {
    padding: 40px 15px;
  }

  .mapa-section {
    padding: 20px;
  }

  .historia,
  .timeline,
  .areas,
  .codigo {
    padding: 0 20px;
  }

  .card-estat h3 {
    font-size: 24px;
  }
}