/* =========================
   RESET
========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #f4f4f4;
  color: #222;
}

/* =========================
   HEADER
========================= */

.contact-header {
  min-height: 380px;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("../media/contacto-ejemplo.jpg");

  background-size: cover;
  background-position: center;

  display: flex;
  justify-content: center;
  align-items: center;

  text-align: center;

  padding: 50px 20px;

  color: white;
}

.contact-header .overlay {
  width: 100%;
  max-width: 850px;
}

.contact-header h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.1;
  margin-bottom: 15px;
}

.contact-header p {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.5;
}

/* =========================
   SECCION CONTACTO
========================= */

.contact-section {
  width: 100%;
  padding: 60px 20px;
}

/* IMPORTANTE:
   TODO VA UNO DEBAJO DEL OTRO
========================= */

.contact-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  display: block;
}

/* =========================
   TITULO
========================= */

.contact-title {
  width: 100%;

  text-align: center;

  margin-bottom: 30px;
}

.contact-title span {
  display: block;

  color: #0056b3;

  font-size: 14px;
  font-weight: bold;

  letter-spacing: 2px;

  margin-bottom: 10px;
}

.contact-title h2 {
  font-size: 36px;

  margin-bottom: 12px;

  color: #111;
}

.contact-title p {
  font-size: 17px;

  color: #555;

  line-height: 1.5;
}

/* =========================
   FORMULARIO
========================= */

.contact-form {
  display: block;

  width: 100% !important;
  max-width: 100% !important;

  margin: 0 !important;

  padding: 35px;

  background: white;

  border-radius: 12px;

  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

/* NOMBRE + APELLIDO */

.name-row {
  width: 100%;

  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    minmax(0, 1fr);

  gap: 20px;
}

/* =========================
   CAMPOS
========================= */

.form-group {
  width: 100%;

  margin-bottom: 20px;
}

.form-group label {
  display: block;

  font-size: 16px;
  font-weight: bold;

  margin-bottom: 8px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  display: block;

  width: 100% !important;
  max-width: 100% !important;

  padding: 14px;

  margin: 0;

  border: 1px solid #ccc;
  border-radius: 7px;

  background: white;

  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;

  color: #222;
}

.contact-form textarea {
  min-height: 160px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;

  border-color: #0056b3;

  box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

/* =========================
   BOTON ENVIAR
========================= */

#boton-contacto {
  display: block;

  width: 100% !important;

  padding: 15px;

  margin: 5px 0 0;

  border: none;
  border-radius: 7px;

  background: #0056b3;
  color: white;

  font-size: 17px;
  font-weight: bold;

  cursor: pointer;
}

#boton-contacto:hover {
  background: #003f86;
}

/* =========================
   INFORMACION DE CONTACTO
   SIEMPRE DEBAJO
========================= */

.contact-info {
  display: block !important;

  width: 100% !important;
  max-width: 100% !important;

  margin: 30px 0 0 !important;

  padding: 30px;

  background: white;

  border-radius: 12px;

  text-align: center;

  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}

.contact-question {
  font-size: 18px;
  font-weight: bold;

  margin-bottom: 20px;
}

/* =========================
   WHATSAPP
========================= */

.whatsapp-button {
  display: inline-flex;

  justify-content: center;
  align-items: center;

  gap: 8px;

  padding: 14px 24px;

  background: #25d366;
  color: white;

  border-radius: 7px;

  text-decoration: none;

  font-size: 17px;
  font-weight: bold;
}

.whatsapp-button i {
  font-size: 22px;
}

/* =========================
   EMAIL + TELEFONO
========================= */

.contact-details {
  width: 100%;

  margin-top: 25px;

  display: flex;

  justify-content: center;
  align-items: center;

  flex-wrap: wrap;

  gap: 20px;
}

.contact-details a {
  display: inline-flex;

  align-items: center;

  gap: 7px;

  color: #333;

  text-decoration: none;

  font-size: 15px;

  overflow-wrap: anywhere;
}

.contact-details a:hover {
  color: #0056b3;
}

/* =========================
   VOLVER AL INICIO
========================= */

.button-container {
  width: 100%;

  text-align: center;

  margin-top: 30px;
}

.back-button {
  display: inline-block;

  padding: 12px 25px;

  background: #111;
  color: white;

  text-decoration: none;

  border-radius: 6px;

  font-weight: bold;
}

.back-button:hover {
  background: #0056b3;
}

/* =========================
   CELULAR
========================= */

@media (max-width: 600px) {
  .contact-header {
    min-height: 300px;

    padding: 40px 18px;
  }

  .contact-header h1 {
    font-size: 34px;
  }

  .contact-header p {
    font-size: 18px;
  }

  .contact-section {
    padding: 40px 15px;
  }

  .contact-title {
    text-align: center;
  }

  .contact-title h2 {
    font-size: 29px;
  }

  /* Nombre y apellido
       uno debajo del otro */

  .name-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-form {
    width: 100% !important;

    padding: 24px 18px;
  }

  .contact-info {
    width: 100% !important;

    margin-top: 25px !important;

    padding: 25px 18px;
  }

  .whatsapp-button {
    width: 100%;
  }

  .contact-details {
    flex-direction: column;

    gap: 12px;
  }
}
