/* Contenedor principal */
.container {
  width: 95%;
  padding: 20px;
  max-width: 300px;
  margin: 0 auto;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #f0f0f0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
  .container {
    width: 95%;
    max-width: 350px;
    margin: 20px auto;
    padding: 15px;
  }
}

/* Título y link de ayuda */
.container h3 {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  margin-bottom: 10px;
  text-align: center;
  position: relative;
}

.link-ayuda {
  font-size: 0.9rem;
  color: purple;
  text-decoration: none;
  position: absolute;
  right: 10px;
  top: 0;
}

.container input {
  width: 100%;
  padding: 8px;
  font-size: 0.9rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  outline: none;
}

@media (max-width: 768px) {
  .container input {
    width: 20%;
    display: block;
    margin: 0 auto 10px;
  }
}

button {
  padding: 10px;
  font-size: 1rem;
  background-color: #5fa9d6;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

button:hover {
  background-color: #4f95c3;
}

.ayuda-link {
  float: right;
  font-size: 0.9rem;
  cursor: pointer;
}

.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  position: relative;
  background-color: white;
  padding: 10px;
  border-radius: 8px;
  max-width: 90%;
  max-height: 90%;
}

.close-button {
  position: absolute;
  top: 5px; right: 5px;
  background: red;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  width: 20px; height: 20px;
  font-size: 0.8rem;
  line-height: 20px;
  text-align: center;
  padding: 0;
}

.modal-image {
  max-width: 100%;
  max-height: 80vh;
  display: block;
}

.mensaje {
  color: red;
  margin-bottom: 10px;
  text-align: center;
}


/* Contenedor del botón para alinearlo a la derecha */
.boton-container {
  display: flex;
  justify-content: flex-end; /* mueve el botón a la derecha */
  margin-top: 10px; /* separación de los inputs */
}

/* Ajuste del botón */
.boton-container button {
  padding: 8px 16px;
  font-size: 1rem;
  background-color: #5fa9d6;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.boton-container button:hover {
  background-color: #4f95c3;
}
