.contenedor {
  width: 90%;
  height: max-content;
  margin: 0 auto;
  padding: 20px;
  background-color: lightblue;
}

.opciones {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  justify-content: flex-start; 
}

.opcion {
  display: block;
  background-color: lightgrey;
  color: blue;
  padding: 15px 30px;
  text-decoration: none;
  font-size: 1.2em;
  text-align: center;
  border-radius: 8px;
}

.opcion:hover { background-color: blue; color: white; }
.opcion:visited { color: purple; }

.formulario {
  margin-bottom: 40px;
  max-width: 250px; 
}

.formulario label {
  display: block;
  font-weight: bold;
  margin: 10px 0 5px;
}

.formulario input {
  display: block;
  width: 100%;
  padding: 8px;
  margin-bottom: 15px;
  border: 1px solid black;
  border-radius: 4px;
}

.formulario input:focus { background-color: lightgray; }

h2 { margin-bottom: 20px; }

.imagenes {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  position: relative; 
}

.img-box {
  flex: 1;
  max-width: 150px; 
  height: 100px;
  border: 2px solid black;
  overflow: hidden;
}

.img-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

.img-box img:active {
  position: absolute;
  top: 0;
  left: 0;
  width: 30%; 
  height: auto;
  z-index: 10;
}
