.contacto-flex-layout {
  display: flex;
  max-width: 1000px;
  margin: 40px auto;
  gap: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.informacion-contacto {
  flex: 1;
  background-color: #e60b25; /* Rojo vibrante solicitado */
  color: white;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 4px solid #c40517; /* Ajuste para el nuevo rojo */
}

.social-links {
  margin-top: 40px;
  padding: 15px;
  background: rgba(255, 255, 255, 1); /* Blanco sólido para máximo contraste */
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.instagram-link {
  display: flex;
  align-items: center;
  gap: 18px;
  color: white;
  text-decoration: none;
  font-size: 1.3em;
  font-weight: 600;
  transition: all 0.3s ease;
}

.instagram-icon-wrapper {
  width: 50px;
  height: 50px;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285AEB 90%);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.instagram-link:hover .instagram-icon-wrapper {
  transform: scale(1.1) rotate(5deg);
}

.instagram-link span {
  color: #333; /* Texto oscuro sobre el fondo blanco del contenedor */
  font-weight: 700;
}

.instagram-link:hover {
  transform: translateX(10px);
}

.contacto-background h2 {
  display: flex;
  align-items: center;
  gap: 15px;
  font-weight: 700;
  font-size: 2.8em; /* Tamaño de título más imponente */
  margin-bottom: 25px;
  color: white;
}

.contacto-background h2 svg {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
}

.informacion-formulario {
  font-weight: 400;
  font-size: 1.1em;
  line-height: 1.6;
  opacity: 0.9;
}

.contacto-form-wrapper {
  flex: 1.2;
  background-color: #e2e2e2; /* Gris más oscuro para que resalten los campos blancos */
  padding: 40px;
  text-align: left;
}

@media (max-width: 768px) {
  .contacto-flex-layout {
    flex-direction: column;
    margin: 20px 10px; /* Reducir margenes laterales */
  }

  .contacto-background h2 {
    font-size: 2em; /* Reducir tamaño de título */
    justify-content: center; /* Centrar título */
  }
  
  .informacion-contacto {
    padding: 30px 20px;
    border-right: none;
    border-bottom: 4px solid #8b0000;
  }
  
  .contacto-form-wrapper {
    padding: 30px 20px;
  }
}

.contacto-form {
  width: 100%; /* El formulario ocupa el ancho de su contenedor */
  box-sizing: border-box;
}

.mb-3 {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-weight: 400;
  margin-bottom: 6px;
  color: #333333; /* Oscuro para contraste sobre gris claro */
  font-size: 1.1em;
  line-height: 1.6;
}

.form-control {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd; /* Borde sutil */
  border-radius: 4px;
  background-color: white;
  color: #333;
  font-size: 0.95em;
  box-sizing: border-box;
}

.form-control:focus {
  outline: none;
  box-shadow: 0 0 5px #ffffff;
}

textarea.form-control {
  resize: vertical;
  min-height: 80px;
}

.btn-primary, .btn-light {
  background-color: #e60b25;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  font-weight: 700;
  font-size: 1em;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 20px auto 0;
}

.btn-primary:hover, .btn-light:hover {
  background-color: #c4051b;
}

.form-message {
  margin-top: 15px;
  padding: 10px;
  border-radius: 5px;
  font-size: 0.9em;
  color: #fff; /* Texto blanco por defecto */
  background-color: #28a745; /* Verde para éxito */
  text-align: center;
}

/* Puedes añadir estilos para éxito/error */
.form-message.success {
  background-color: #28a745; /* Verde para éxito */
}

.form-message.error {
  background-color: #dc3545; /* Rojo para error */
}


