body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 20px;
  background-color: #f7f7f7;
}

header {
  text-align: center;
  margin-bottom: 20px;
}

#search {
  width: 90%;
  max-width: 400px;
  padding: 10px;
  margin: 0 auto 20px;
  display: block;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}


.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.card {
  width: 220px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #fff;
  padding: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  background-color: #f9f9f9;
  border-radius: 4px;
}

.card h3 {
  margin: 10px 0 5px;
  font-size: 16px;
  color: #333;
}

.card p {
  margin: 5px 0;
  font-size: 14px;
  color: #555;
}

#scrollTopBtn {
  display: none;
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99;
  font-size: 18px;
  border: none;
  outline: none;
  background-color: #333;
  color: white;
  cursor: pointer;
  padding: 12px;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

#scrollTopBtn:hover {
  background-color: #555;
}
header a {
  text-decoration: none;
}
.modal {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 90%;
  max-width: 400px;
  border-radius: 8px;
  position: relative;
}

.modal-content h2 {
  margin-top: 0;
}

.modal-content label {
  display: block;
  margin-top: 10px;
}

.modal-content input {
  width: 100%;
  padding: 8px;
  margin-top: 4px;
  box-sizing: border-box;
}

.modal-content p {
  margin-top: 10px;
  font-size: 13px;
  color: #555;
}

.modal-content button {
  margin-top: 15px;
  background-color: #1e88e5;
  color: white;
  padding: 10px;
  border: none;
  width: 100%;
  cursor: pointer;
  border-radius: 4px;
}

.modal-content button:hover {
  background-color: #1565c0;
}

.close {
  color: #aaa;
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 20px;
  cursor: pointer;
}

#scrollTopBtn {
  display: none;
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99;
  font-size: 18px;
  border: none;
  outline: none;
  background-color: #333;
  color: white;
  cursor: pointer;
  padding: 12px;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

#scrollTopBtn:hover {
  background-color: #555;
}
.modal-content button {
  background-color: #444;
  color: white;
  padding: 8px 12px;
  margin: 10px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.modal-content button:hover {
  background-color: #222;
}
#galeriaImagen {
  width: 100%;
  max-width: 600px;
  height: 400px;
  object-fit: contain;
  background-color: #f3f3f3;
  border-radius: 8px;
  margin: 10px auto;
  display: block;
}
#iconoGaleria {
  display: none;
}


