.custom-modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 30px;
  border-radius: 12px;
  max-width: 600px;
  text-align: center;
  position: relative;
}
#modal-normativa .modal-content img {
  width: 60%;
  max-height: 200px;
  margin: 0 auto 20px;
  display: block;
}

.modal-content img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.modal-content h2 {
  font-size: 28px;
  color: #00509d;
  margin-bottom: 10px;
}

.modal-content p {
  font-size: 16px;
  color: #333;
}

.close {
  position: absolute;
  top: 10px;
  right: 18px;
  font-size: 30px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
}
.close:hover {
  color: #f00;
}

.modal-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 15px;
  margin-top: 20px;
}

.modal-gallery img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* MODAL REMODELACION */

.modal-list {
  margin: 20px 0;
  text-align: left;
}

.modal-list ul {
  padding-left: 20px;
  list-style-type: disc;
  font-size: 16px;
  color: #333;
}

.modal-video {
  margin-top: 25px;
}

.modal-video iframe {
  width: 100%;
  height: 315px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Solo para el modal de comercialización */
.gallery-4cols {
  grid-template-columns: repeat(4, 1fr);
}

.gallery-2cols {
  grid-template-columns: repeat(2, 1fr);
}

.gallery-3cols {
  grid-template-columns: repeat(3, 1fr);
}

.gallery-1cols {
  grid-template-columns: 1fr !important;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 1rem;
}

.video-grid.gallery-1cols {
  grid-template-columns: 1fr !important;
  justify-items: center; /* Centra el contenido horizontalmente */
}
