@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;600&display=swap');

/* --- SECCIÓN MAPA Y FORMULARIO --- */
.mapa-contacto {
  display: flex;
  width: 100%;
  background-color: #fff;
  color: #000;
  font-family: 'Barlow', sans-serif;
  min-height: 450px;
}

/* --- Columna del mapa --- */
.mapa-col {
  flex: 7;
  overflow: hidden;
}

.mapa-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- Columna del formulario --- */
.form-col {
  flex: 3;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 30px;
  box-sizing: border-box;
}

/* --- Contenido del formulario --- */
.formulario-contacto {
  width: 100%;
  max-width: 360px;
}

.formulario-contacto h2 {
  font-size: 22px;
  font-weight: 700;
  color: #000;
  margin-bottom: 10px;
  border-left: 4px solid #ff007d;
  padding-left: 10px;
}

.formulario-contacto p {
  font-size: 15px;
  margin-bottom: 20px;
  color: #444;
}

/* --- Inputs y Textarea --- */
.formulario-contacto input,
.formulario-contacto textarea {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  background-color: #fafafa;
  transition: border 0.3s, box-shadow 0.3s;
}

.formulario-contacto input:focus,
.formulario-contacto textarea:focus {
  outline: none;
  border-color: #ff007d;
  box-shadow: 0 0 5px rgba(255, 0, 125, 0.3);
}

.formulario-contacto textarea {
  resize: vertical;
  height: 110px;
}

/* --- Botón --- */
.formulario-contacto button {
  width: 100%;
  padding: 13px;
  background-color: #ff007d;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.formulario-contacto button:hover {
  background-color: #e60070;
  transform: translateY(-2px);
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .mapa-contacto {
    flex-direction: column;
  }

  .mapa-col,
  .form-col {
    width: 100%;
    flex: none;
  }

  .mapa-col img {
    height: 250px;
  }

  .form-col {
    padding: 30px 20px;
  }

  .formulario-contacto {
    max-width: 95%;
  }
}

@media (max-width: 500px) {
  .formulario-contacto h2 {
    font-size: 20px;
  }

  .formulario-contacto p {
    font-size: 14px;
  }

  .formulario-contacto input,
  .formulario-contacto textarea {
    font-size: 13px;
  }
}
