/* --- RESET --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: Arial, sans-serif; background: #f7f8fa; color: #222; }
a { text-decoration: none; color: #2a4d8f; }

/* --- NAVBAR --- */
.navbar {
  background: #ffffff;
  border-bottom: 1px solid #e7e7e7;
  padding: 14px 0;
}
.nav-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo { font-size: 22px; font-weight: bold; color: #2a4d8f; }
.nav-links a {
  margin-left: 20px;
  font-size: 15px;
  color: #444;
}
.nav-links a.active { font-weight: bold; color: #2a4d8f; }

/* --- HERO --- */
.events-hero {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
}
.events-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 40px;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  color: white;
}
.hero-overlay h1 { font-size: 38px; }
.hero-overlay p { font-size: 18px; margin-top: 6px; }

/* --- SECCIÓN DE EVENTOS --- */
.container { width: 100%; max-width: 1200px; margin: auto; }

.section-title {
  margin: 20px 0 20px;
  font-size: 26px;
  color: #2a4d8f;
  text-align: left;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 400px));
  gap: 24px;
}
.event-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  transition: transform 0.15s ease;
}
.event-card:hover { transform: scale(1.02); }

.event-card img { width: 100%; object-fit: cover; }

.event-info {
  padding: 18px;
  display: block !important;
}
.event-info h3 { font-size: 20px; margin-bottom: 6px; }
.meta { color: #666; font-size: 14px; margin-bottom: 14px; }
.zone-svg-wrapper {
    width: 100%;
    max-width: 480px; /* Mobile / tablet */
    margin: 0 auto;
}
@media (min-width: 1024px) {
    .zone-svg-wrapper {
        max-width: 900px;   /* Desktop normal */
    }
}
@media (min-width: 1440px) {
    .zone-svg-wrapper {
        max-width: 1100px;  /* Pantallas grandes */
    }
}
.zone-svg {
    width: 100%;
    height: auto;
}

.zona-svg {
    cursor: pointer;
}

.zona-svg:hover {
    opacity: .80;
    transition: transform .2s ease, opacity .2s ease;
}

.zona-text {
    fill: #fff;
    font-size: 9px;
    font-weight:bold;
    pointer-events: none;
    user-select: none;
}
.btn-group { display: flex; gap: 10px; }
.btn-primary {
  background: #2a4d8f;
  color: white;
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
.btn-outline {
  background: transparent;
  border: 1px solid #2a4d8f;
  padding: 10px 16px;
  border-radius: 6px;
  color: #2a4d8f;
  cursor: pointer;
}

/* --- FOOTER --- */
.footer {
  padding: 40px 0;
  margin-top: 50px;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
}
.footer h3 { margin-bottom: 10px; color: #2a4d8f; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 6px; color: #555; }
.footer-bottom {
  text-align: center;
  font-size: 14px;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #d6dde8;
  color: #777;
}
@media (max-width: 575px) {
  .events-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 2fr));
    gap: 5px;
  }
}
@media (max-width: 899px) {
    .events-hero {
      height: 300px;
    }
}