
.revista-section {
  display: flex;
  flex-wrap: wrap;
  margin: 40px auto;
  max-width: 1000px;
  gap: 20px;
  align-items: flex-start;
}

.revista-img {
  flex: 1 1 40%;
}

.revista-img img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.revista-texto {
  flex: 1 1 55%;
  font-family: 'Georgia', serif;
  text-align: justify;
  line-height: 1.8em;
}

.revista-texto h2 {
  font-family: 'Segoe UI', sans-serif;
  color: #0078d7;
  margin-bottom: 15px;
}

/* Responsivo para móviles */
@media (max-width: 768px) {
  .revista-section {
    flex-direction: column;
  }
}
.section-block img {
  width: 100%;
  max-height: 500px;   /* ajusta según tu diseño */
  object-fit: contain; /* muestra la imagen completa */
  border-radius: 8px;
  margin-bottom: 15px;
  background-color: #fff; /* opcional, para rellenar espacios vacíos */
}

.galeria {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 30px;
}

.galeria img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.3s;
}

.galeria img:hover {
  transform: scale(1.1);
}

/* Modal */
.visor {
  display: none; /* oculto por defecto */
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.8);
  text-align: center;
}

.visor-contenido {
  margin-top: 5%;
  max-width: 90%;
  max-height: 80%;
  border-radius: 8px;
}

.cerrar {
  position: absolute;
  top: 20px; right: 40px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
}
