body {
  margin: 0;
  font-family: 'Metal Mania', cursive;
  background-color: #0a0a0a;
  color: white;
}
.socials {
  margin-right: 30px;
}
.top-bar {
  background-color: #111;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
}
.top-bar img {
  height: 40px;
  transition: 0.3s;
}
.top-bar .socials a {
  color: crimson;
  margin-left: 1rem;
  text-decoration: none;
  font-size: 1.2rem;
}
header {
  text-align: center;
  padding: 6rem 2rem 2rem;
  background-color: #111;
}
header img.logo {
  max-width: 200px;
  height: auto;
}
h1 {
  margin-top: 1rem;
  font-size: 2.5rem;
  letter-spacing: 2px;
}
nav {
  background-color: #111;
  text-align: center;
  padding: 1rem;
  position: sticky;
  top: 40px;
  z-index: 999;
}
nav a {
  color: crimson;
  text-decoration: none;
  margin: 0 1rem;
  font-size: 1.2rem;
}
section {
  display: none;
  padding: 2rem;
}
section.active {
  display: block;
  animation: fadeIn 0.5s ease-in;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}
.chapter {
  background: #222;
  padding: 1rem;
  text-align: center;
  transition: transform 0.3s;
}
.chapter:hover {
  transform: scale(1.02);
}
.chapter img.foto {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  transition: 0.5s ease-in-out;
}
.chapter img.foto:hover {
  opacity: 0.7;
}
.chapter img.logo {
  width: 300px;
  height: 180px;
  object-fit: cover;
  margin-top: 0.5rem;
}
.miembro {
  background: #222;
  padding: 1rem;
  text-align: center;
  transition: transform 0.3s;
}
.miembro:hover {
  transform: scale(1.02);
}
.miembro img.foto {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  transition: 0.5s ease-in-out;
}
.miembro img.foto:hover {
  opacity: 0.7;
}
.miembro img.bike {
  width: 300px;
  height: 180px;
  object-fit: cover;
  margin-top: 0.5rem;
}
.evento {
  background: #222;
  margin-bottom: 1rem;
  padding: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}
.evento:hover {
  background: #333;
}
.evento .contenido {
  display: none;
  margin-top: 1rem;
  animation: fadeIn 0.5s ease-in;
}
.evento.active .contenido {
  display: block;
}
.evento img {
  max-width: 100%;
  margin-bottom: 1rem;
}
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.galeria-item {
  background: #222;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
}
.galeria-item img, .galeria-item iframe {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.galeria-item p {
  margin-top: 0.5rem;
  font-size: 1rem;
}
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
}
.modal-content {
  margin: 5% auto;
  display: block;
  max-width: 80%;
}
.modal-caption {
  text-align: center;
  padding: 1rem;
  color: white;
}
.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}
.close:hover {
  color: crimson;
}
.hero-banner {
  height: 400px;
  {% if chapter.portrait %}
    background-image: url('{{chapter.portrait.url}}');
  {% endif %}
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.producto {
  background: #222;
  padding: 1rem;
  margin-bottom: 1rem;
}
.producto h3 {
  margin-top: 0;
  color: crimson;
}
.producto img {
  height: 300px;
  margin-bottom: 0.5rem;
}
.catalogo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}
.carousel {
  display: flex;
  overflow-x: auto;
}
.carousel img {
  height: 200px;
  margin-right: 10px;
  flex-shrink: 0;
}
.btn-chapter {
  text-decoration: none;
    color: white;
}
.btn-comprar {
  background-color: crimson;
  color: white;
  padding: 0.5rem 1rem;
  text-decoration: none;
  display: inline-block;
  margin-top: 0.5rem;
}
.producto-detalle {
  background-color: #1a1a1a;
  padding: 2rem;
  margin-top: 2rem;
}
.producto-detalle h2 {
  color: crimson;
}
.producto-detalle .carousel img {
  height: 300px;
}
.producto-detalle .btn-comprar {
  font-size: 1.2rem;
}