#main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
  font-family: "Open Sans", Arial, sans-serif;
  color: #333;
  text-align: center;
}

/* === Layout general: dos columnas === */
.content-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 3rem;
  margin-bottom: 3rem;
}

.info-container,
.form-container {
  flex: 1 1 45%;
  min-width: 320px;
}

/* === Info (columna izquierda) === */
.info-container img {
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  display: block;
}

.info-container h1 {
  font-size: 2rem;
  color: #555;
  margin-bottom: 1rem;
}

.info-container h2 {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 2rem;
}

/* === Images container === */
.images-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.images-container > img,
.images-container > .image-wrapper {
  flex: 1 1 48%;
  max-width: 48%;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.image-wrapper {
  position: relative;
  display: flex;
}

.image-wrapper img:first-child {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  display: block;
}

/* Sello "nueva colección" */
.image-wrapper .stamp {
  position: absolute;
  bottom: -10px;
  right: -30px;
  width: 150px;
  height: auto;
  pointer-events: none;
}

/* === Proyectos === */
.project-images {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.project-images img {
  width: 18%;
  min-width: 90px;
  border-radius: 0.5rem;
  transition: transform 0.2s ease-in-out;
}

.project-images img:hover {
  transform: scale(1.05);
}

/* === Formulario (columna derecha) === */
.form-container {
  background-color: #fafafa;
  padding: 2rem 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
  text-align: left;
}

.form-container p {
  text-align: center;
  margin-bottom: 3rem;
}

.form-container p span {
  color: #d55c5c;
  font-weight: 600;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.form-control {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid #ccc;
  border-radius: 0.4rem;
  font-size: 1rem;
}

/* === Checkbox personalizado === */
.custom-checkbox {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  gap: 0.5rem;
  position: relative;
  cursor: pointer; /* cursor sobre todo el contenedor */
}

/* Hacemos que el input siga recibiendo clics */
.custom-checkbox input[type="checkbox"] {
  opacity: 0;
  width: 20px;
  height: 20px;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  cursor: pointer;
  z-index: 2;
}

/* El recuadro visual que muestra el check */
.custom-checkbox span {
  width: 20px;
  height: 20px;
  border: 2px solid #d55c5c;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none; /* no interfiere con el clic */
  z-index: 1;
  position: relative;
}

/* Icono check dentro del recuadro */
.custom-checkbox i {
  color: #d55c5c;
  font-size: 0.8rem;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}

/* Cuando el checkbox está marcado, mostramos el check */
.custom-checkbox input[type="checkbox"]:checked + span i {
  opacity: 1;
}

/* Label a la derecha del checkbox */
.custom-checkbox label {
  cursor: pointer;
  user-select: none;
}

/* === Botón Enviar === */
.btn.btn-primary {
  background-color: #ccc;
  border-color: #ccc;
  color: #fff;
  font-weight: 600;
  border-radius: 2rem;
  padding: 0.6rem 2rem;
  display: block;
  margin: 1rem auto 0;
  transition: background-color 0.25s ease-in-out, border-color 0.25s ease-in-out;
  cursor: not-allowed;
}

/* Estado deshabilitado */
.form-container .btn.btn-primary[disabled] {
  cursor: not-allowed !important;
}

/* Estado activo (si el checkbox está marcado) */
form:has(#accept-terms-conditions:checked) .btn.btn-primary {
  background-color: #d55c5c;
  border-color: #d55c5c;
  cursor: pointer;
}

form:has(#accept-terms-conditions:checked) .btn.btn-primary:hover {
  background-color: #b94c4c;
}

/* === Redes sociales === */
.social-icons {
  margin-top: 1.5rem;
  text-align: center;
}

.social-icons a {
  color: #d55c5c;
  font-size: 1.5rem;
  margin: 0 0.5rem;
  transition: color 0.2s ease-in-out;
}

.social-icons a:hover {
  color: #b94c4c;
}

.social-icons span {
  display: block;
  font-weight: 600;
  margin-top: 0.5rem;
}

/* === Bases legales === */
.legal-bases {
  margin-top: 2rem;
}

.legal-bases a {
  color: #d55c5c;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

.legal-bases a:hover {
  color: #b94c4c;
}

/* === Responsive === */
@media (max-width: 992px) {
  .content-container {
    flex-direction: column;
    align-items: center;
  }

  .info-container,
  .form-container {
    flex: 1 1 100%;
    max-width: 600px;
  }

  .project-images img {
    width: 30%;
  }

  .image-wrapper .stamp {
    width: 160px;
  }
}

@media (max-width: 576px) {
  #main-content {
    padding: 1.5rem 1rem;
  }

  .images-container {
    flex-direction: column;
  }

  .images-container img {
    width: 100%;
  }

  .project-images img {
    width: 45%;
  }

  .btn.btn-primary {
    width: 100%;
  }

  .images-container > img,
  .images-container > .image-wrapper {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .image-wrapper .stamp {
    width: 160px;
    bottom: 0px;
    right: 0px;
  }
}
