.texto-cabecera-contacto {
  color: white;
  /*font-size: 3rem;*/
  position: absolute;
  top: 70%;
  left: 10%;
  transform: translateY(-50%);
  /*max-width: 800px;          */
  width: 80%;
}
.texto-cabecera-contacto p {
  font-size: 20px;
}

.cajas-contacto {
  opacity: 0.9;
  /*background-color: gray;*/
  background-color: #c8c8c8;
  min-height: 6rem;

  border-radius: 20px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px);
}

.shadow.active {
  border: 3px solid #2c3e50;
  box-shadow: 0 0 15px rgba(44, 62, 80, 0.4) !important;
}

#contactoForm .tipo {
  font-size: 1.2rem;
}

.motivo-grid input:invalid ~ .invalid-feedback {
  display: block;
}

@media (max-width: 768px) {
  .texto-cabecera-contacto {
    top: 60%;
  }
}

/* grid de tarjetas */
.motivo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 0.5rem;
}

/* tarjeta */
.motivo-card {
  background: #c7ebfd;
  border-radius: 16px;
  padding: 20px 22px;
}

/* título de tarjeta */
.motivo-title {
  margin: 0 0 10px 0;
  font-weight: 700;
}

.motivo-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  transition: background 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}

.motivo-option input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: #1e88e5;
}

.motivo-option:hover {
  background: rgba(255, 255, 255, 0.6);
}
.motivo-option:has(input[type="radio"]:focus-visible) {
  box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.3) inset;
}

.motivo-option:has(input[type="radio"]:checked) {
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(30, 136, 229, 0.45) inset;
  font-weight: 600;
}

/* responsive: 1 columna en pantallas pequeñas */
@media (max-width: 768px) {
  .motivo-grid {
    grid-template-columns: 1fr;
  }
  .cajas-contacto {
    min-height: 5rem;
  }
}

.motivo-option span {
  font-size: 17px;
}

@media (min-width: 1200px) {
  .h1,
  h1 {
    font-size: 37px;
  }
}
