/* ====== FRANJA DE SECCIÓN ====== */
.section-banner {
  position: relative;
  background: url("../imagenes/frontis.jpg") no-repeat center center/cover;
  padding: 3rem 1rem;
  border-radius: 12px;
  margin: 2rem auto;
  text-align: center;
  overflow: hidden;
}

.section-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(128, 0, 0, 0.75); /* guinda con opacidad */
  border-radius: 12px;
}

.section-banner h1 {
  position: relative;
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  z-index: 1;
}

.section-banner h1 i {
  font-size: 1.8rem;
}


/* CONTENIDO */
/* ===== Galería Tópico ===== */
.topico .galeria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.topico .card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  overflow: hidden;
  text-align: center;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.topico .card:hover {
  transform: translateY(-5px);
}

.topico .card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.topico .card h3 {
  margin: 0.8rem 0 0.4rem;
  font-size: 1.2rem;
  color: #800000;
}

.topico .card p {
  padding: 0 1rem 1rem;
  font-size: 0.95rem;
  color: #444;
}

/* ===== Modal reutilizable ===== */
.modal {
  display: none; 
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
}

.modal-contenido {
  position: relative;
  background: #fff;
  padding: 20px;
  max-width: 800px;
  width: 90%;
  border-radius: 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal img {
  max-width: 100%;
  max-height: 450px;
  margin-bottom: 15px;
  border-radius: 8px;
  display: block;
}

.cerrar {
  position: absolute;
  top: 10px; 
  right: 15px;
  font-size: 2rem;
  font-weight: bold;
  color: #333;
  cursor: pointer;
  transition: color 0.2s ease;
}

.cerrar:hover {
  color: #800000;
}

.miniaturas {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.miniaturas img {
  width: 80px; height: 60px;
  object-fit: cover;
  cursor: pointer;
  border-radius: 6px;
  border: 2px solid transparent;
  transition: border 0.2s ease;
}

.miniaturas img:hover {
  border: 2px solid #800000;
}
