/* Contenedor principal con ancho máximo */
.contact-container {
  max-width: 80%;
  margin: 0 auto;
  background: #ffffff;
  padding: 40px 20px;
  border-radius: 10px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Sección principal */
.contact-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

/* Contenedor de título, subtítulo e imagen */
.contact-info {
  flex: 1;
  max-width: 40%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Títulos */
.contact-title {
  font-size: 2rem;
  font-weight: bold;
  color: #003366;
  text-transform: uppercase;
  text-shadow: 1px 1px 3px rgba(0, 51, 102, 0.3);
  margin-bottom: 10px;
}

.contact-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background-color: #ff6600;
  margin: 10px auto 0;
  border-radius: 5px;
}

.contact-subtitle {
  color: #666;
  font-size: 1rem;
  margin-bottom: 15px;
}

/* Imagen */
.contact-image {
  width: 100%;
  max-width: 80%;
  padding: 10px;
}

.contact-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Formulario */
.contact-form {
  flex: 1;
  max-width: 50%;
  background: #ffffff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
  border-left: 4px solid #ff6600;
}

/* Inputs y etiquetas */
.contact-form .form-label {
  font-weight: bold;
  color: #003366;
  font-size: 0.9rem;
}

.contact-form .form-control {
  border-radius: 5px;
  border: 1px solid #ced4da;
  padding: 10px;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.contact-form .form-control:focus {
  border-color: #ff6600;
  box-shadow: 0 0 8px rgba(255, 102, 0, 0.3);
}

/* Botón */
.contact-form .btn-primary {
  background-color: #ff6600;
  border: none;
  padding: 10px;
  font-size: 14px;
  font-weight: bold;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.contact-form .btn-primary:hover {
  background-color: #d94e00;
}

/* Mensajes de alerta */
.alert {
  font-size: 0.9rem;
  border-radius: 5px;
  padding: 10px;
}

/* Responsividad */
@media (max-width: 1024px) {
  .contact-container {
    max-width: 90%;
  }

  .contact-wrapper {
    flex-direction: column;
    text-align: center;
  }

  .contact-info {
    max-width: 100%;
  }

  .contact-image {
    max-width: 60%;
  }

  .contact-form {
    max-width: 90%;
    border-left: none;
    border-top: 4px solid #ff6600;
  }
}