/* =========================================================
   CONTACTO
   ========================================================= */

/* =========================================================
   MARCADORES DE SECCIÓN
   ========================================================= */

.contact-offices__header,
.contact-form-section__header {
  text-align: center;
}

.contact-offices__header .maetel-type-section-marker,
.contact-form-section__header .maetel-type-section-marker {
  display: inline-flex;
}

/* =========================================================
   OFICINAS - SECCIÓN
   ========================================================= */

.contact-offices {
  background: #eef3f5;
}

.contact-offices__regions {
  display: flex;
  flex-direction: column;
  gap: 52px;

  width: 100%;
  max-width: 980px;

  margin: 48px auto 0;
}

.contact-offices__region {
  width: 100%;
  padding-bottom: 52px;

  border-bottom: 1px solid rgba(38, 55, 70, 0.16);
}

.contact-offices__region:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

/* =========================================================
   TÍTULOS DE REGIÓN
   ========================================================= */

.contact-offices__region-title {
  margin: 0 0 34px;

  color: #002e5e;

  font-size: 26px;
  font-weight: 400;
  line-height: 1.25;

  text-align: left;
}

/* =========================================================
   OFICINAS - GRID
   ========================================================= */

.contact-offices__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 340px));

  justify-content: center;

  gap: 48px 96px;

  width: 100%;
}

/* =========================================================
   OFICINA
   ========================================================= */

.contact-office {
  display: flex;
  flex-direction: column;
  align-items: flex-start;

  width: 100%;
  min-width: 0;
}

.contact-office__content {
  width: 100%;
}

.contact-office__title {
  margin: 0 0 10px;

  color: #002e5e;

  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;

  text-transform: uppercase;
}

.contact-office__company {
  margin: 0 0 4px;

  color: #263746;

  font-size: 16px;
  font-weight: 600;
  line-height: 1.7;
}

.contact-office__address {
  display: flex;
  flex-direction: column;

  margin: 0;

  color: #506070;

  font-size: 16px;
  font-style: normal;
  line-height: 1.65;
}

.contact-office__details {
  margin-top: 4px;
}

.contact-office__details p {
  margin: 0;

  color: #506070;

  font-size: 16px;
  line-height: 1.65;
}

.contact-office__details a {
  color: #506070;

  text-decoration: none;

  transition: color 0.2s ease;
}

.contact-office__details a:hover {
  color: #0097a9;
}

.contact-office__detail-label {
  display: inline-block;

  margin-right: 4px;

  color: #002e5e;

  font-weight: 600;
}

/* =========================================================
   JAPÓN - ESCRITORIO
   ALINEADO CON LA PRIMERA COLUMNA
   ========================================================= */

.contact-offices__region:last-child .contact-offices__grid {
  grid-template-columns: repeat(2, minmax(0, 340px));

  justify-content: center;

  gap: 48px 96px;
}

.contact-offices__region:last-child .contact-office {
  grid-column: 1;

  align-items: flex-start;

  width: 100%;
  margin: 0;

  text-align: left;
}

.contact-offices__region:last-child .contact-office__content {
  width: 100%;

  text-align: left;
}

.contact-offices__region:last-child .contact-office__title,
.contact-offices__region:last-child .contact-office__company {
  text-align: left;
}

.contact-offices__region:last-child .contact-office__address {
  align-items: flex-start;

  text-align: left;
}

.contact-offices__region:last-child .contact-office__details {
  width: 100%;

  text-align: left;
}

.contact-offices__region:last-child .contact-office__location {
  align-self: flex-start;

  margin-right: 0;
  margin-left: 0;
}

/* =========================================================
   VER UBICACIÓN
   ========================================================= */

.contact-office__location {
  display: inline-flex;
  align-items: center;

  gap: 8px;

  margin-top: 20px;

  color: #0097a9;

  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;

  text-decoration: none;

  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.contact-office__location svg {
  flex: 0 0 auto;
}

.contact-office__location:hover {
  color: #002e5e;

  transform: translateY(-1px);
}

/* =========================================================
   FORMULARIO - SECCIÓN
   ========================================================= */

.contact-form-section {
  background: #ffffff;
}

.contact-form-section__header {
  max-width: 950px;

  margin-right: auto;
  margin-left: auto;

  text-align: center;
}

/* =========================================================
   TÍTULO DESCRIPTIVO DEL FORMULARIO
   ========================================================= */

.contact-form-section__title {
  max-width: 780px;

  margin-right: auto;
  margin-left: auto;

  color: #002e5e;

  font-size: 28px;
  font-weight: 500;
  line-height: 1.35;
}

/* =========================================================
   FORMULARIO - DISTRIBUCIÓN GENERAL
   ========================================================= */

.contact-form-section__grid {
  display: grid;

  grid-template-columns:
    minmax(300px, 0.75fr)
    minmax(0, 1.65fr);

  width: 100%;
  max-width: 1180px;

  margin: 48px auto 0;
}

/* =========================================================
   RESPUESTA RÁPIDA - IZQUIERDA
   ========================================================= */

.contact-form-response {
  grid-column: 1;
  grid-row: 1;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  min-width: 0;

  padding: 38px 42px;

  border-right: 1px solid rgba(38, 55, 70, 0.16);

  text-align: center;
}

.contact-form-response__icon {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 92px;
  height: 92px;

  margin-bottom: 28px;

  border: 1.5px solid #0097a9;
  border-radius: 50%;

  color: #0097a9;
}

.contact-form-response__icon svg {
  width: 52px;
  height: 52px;
}

.contact-form-response__title {
  max-width: 260px;

  margin: 0;

  color: #002e5e;

  font-size: 26px;
  font-weight: 600;
  line-height: 1.25;
}

.contact-form-response__text {
  max-width: 300px;

  margin: 18px 0 0;

  color: #506070;

  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
}

/* =========================================================
   FORMULARIO - DERECHA
   ========================================================= */

.contact-form-section__form {
  grid-column: 2;
  grid-row: 1;

  min-width: 0;

  padding: 38px 0 38px 54px;
}

/* =========================================================
   FORMULARIO - GRID
   ========================================================= */

.contact-form__grid {
  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  grid-template-areas:
    "name email"
    "company company"
    "message message";

  column-gap: 22px;
  row-gap: 14px;

  width: 100%;
}

.contact-form__field {
  display: block;

  min-width: 0;

  margin: 0;
  padding: 0;
}

.contact-form__field--name {
  grid-area: name;
}

.contact-form__field--email {
  grid-area: email;
}

.contact-form__field--company {
  grid-area: company;
}

.contact-form__field--message {
  grid-area: message;
}

/* =========================================================
   CONTACT FORM 7 - LIMPIEZA
   ========================================================= */

.contact-form p {
  margin: 0;
  padding: 0;
}

.contact-form p:empty {
  display: none;
}

.contact-form br {
  display: none;
}

.contact-form .wpcf7-form-control-wrap {
  display: block;

  width: 100%;
}

/* =========================================================
   CAMPOS
   ========================================================= */

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  display: block;

  width: 100%;

  box-sizing: border-box;

  margin: 0;

  border: 1px solid rgba(38, 55, 70, 0.25);
  border-radius: 0;

  outline: none;

  background: #ffffff;
  color: #071b2f;

  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.contact-form input[type="text"],
.contact-form input[type="email"] {
  height: 50px;

  padding: 0 15px;
}

.contact-form textarea {
  height: 135px;
  min-height: 135px;

  padding: 14px 15px;

  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #506070;

  opacity: 1;
}

.contact-form input[type="text"]:hover,
.contact-form input[type="email"]:hover,
.contact-form textarea:hover {
  border-color: rgba(0, 46, 94, 0.42);
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
  border-color: #0097a9;

  box-shadow: 0 0 0 1px #0097a9;
}

/* =========================================================
   PRIVACIDAD
   ========================================================= */

.contact-form__privacy {
  margin-top: 16px;
}

.contact-form__privacy .wpcf7-list-item {
  margin: 0;
}

.contact-form__privacy label {
  display: flex;
  align-items: flex-start;

  gap: 8px;

  margin: 0;

  cursor: pointer;
}

.contact-form__privacy input[type="checkbox"] {
  flex: 0 0 auto;

  width: 16px;
  height: 16px;

  margin: 2px 0 0;

  accent-color: #0097a9;
}

.contact-form__privacy .wpcf7-list-item-label {
  color: #506070;

  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
}

.contact-form__privacy a {
  color: #002e5e;

  font-weight: 600;

  text-decoration: underline;
  text-underline-offset: 2px;

  transition: color 0.2s ease;
}

.contact-form__privacy a:hover {
  color: #0097a9;
}

/* =========================================================
   BOTÓN
   ========================================================= */

.contact-form__submit {
  margin-top: 20px;
}

.contact-form__submit .wpcf7-spinner {
  vertical-align: middle;
}

/* =========================================================
   CONTACT FORM 7 - ERRORES / RESPUESTA
   ========================================================= */

.contact-form .wpcf7-not-valid-tip {
  margin-top: 5px;

  color: #506070;

  font-size: 11px;
  line-height: 1.4;
}

.contact-form-section .wpcf7-response-output {
  margin: 18px 0 0 !important;

  padding: 10px 14px !important;

  border-width: 1px !important;
  border-color: #0097a9 !important;

  color: #263746;

  font-size: 12px;
  line-height: 1.5;
}

/* =========================================================
   PROTECCIÓN DE DATOS
   ========================================================= */

.contact-data-protection {
  padding: 8px 0 48px;

  background: #ffffff;
}

.contact-data-protection__inner {
  width: 100%;
  max-width: 1180px;

  margin: 0 auto;
}

.contact-data-protection__title {
  margin: 0 0 5px;

  color: #263746;

  font-size: 10px;
  font-weight: 700;
  line-height: 1.5;
}

.contact-data-protection__text {
  margin: 0;

  color: #506070;

  font-size: 10px;
  font-weight: 400;
  line-height: 1.65;
}

.contact-data-protection__text a {
  color: #002e5e;

  font-weight: 600;

  text-decoration: underline;
  text-underline-offset: 2px;

  transition: color 0.2s ease;
}

.contact-data-protection__text a:hover {
  color: #0097a9;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1024px) {
  /* =====================================================
       OFICINAS
       ===================================================== */

  .contact-offices__regions {
    max-width: 860px;

    gap: 48px;
  }

  .contact-offices__region {
    padding-bottom: 48px;
  }

  .contact-offices__grid {
    grid-template-columns: repeat(2, minmax(0, 320px));

    gap: 42px 70px;
  }

  .contact-offices__region:last-child .contact-offices__grid {
    grid-template-columns: repeat(2, minmax(0, 320px));

    justify-content: center;

    gap: 42px 70px;
  }

  .contact-offices__region:last-child .contact-office {
    grid-column: 1;
  }

  /* =====================================================
       TÍTULO FORMULARIO
       ===================================================== */

  .contact-form-section__title {
    max-width: 720px;

    font-size: 25px;
  }

  /* =====================================================
       FORMULARIO
       ===================================================== */

  .contact-form-section__grid {
    grid-template-columns:
      minmax(270px, 0.75fr)
      minmax(0, 1.4fr);

    margin-top: 44px;
  }

  .contact-form-section__form {
    padding: 36px 0 36px 36px;
  }

  .contact-form__grid {
    column-gap: 18px;
    row-gap: 13px;
  }

  /* =====================================================
       RESPUESTA RÁPIDA
       ===================================================== */

  .contact-form-response {
    padding: 36px 28px;
  }

  .contact-form-response__icon {
    width: 82px;
    height: 82px;

    margin-bottom: 24px;
  }

  .contact-form-response__icon svg {
    width: 46px;
    height: 46px;
  }

  .contact-form-response__title {
    font-size: 23px;
  }

  .contact-form-response__text {
    font-size: 13px;
  }
}

/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width: 767px) {
  /* =====================================================
       OFICINAS
       TODO CENTRADO
       ===================================================== */

  .contact-offices__regions {
    gap: 42px;

    max-width: 100%;

    margin-top: 38px;
  }

  .contact-offices__region {
    padding-bottom: 42px;
  }

  .contact-offices__region-title {
    margin-bottom: 28px;

    font-size: 22px;
    font-weight: 400;

    text-align: center;
  }

  .contact-offices__grid,
  .contact-offices__region:last-child .contact-offices__grid {
    grid-template-columns: 1fr;

    gap: 36px;

    justify-content: center;
    justify-items: center;
  }

  .contact-office,
  .contact-offices__region:last-child .contact-office {
    grid-column: auto;

    align-items: center;

    width: 100%;
    max-width: 340px;

    margin-right: auto;
    margin-left: auto;

    text-align: center;
  }

  .contact-office__content,
  .contact-offices__region:last-child .contact-office__content {
    width: 100%;

    text-align: center;
  }

  .contact-office__title,
  .contact-office__company,
  .contact-offices__region:last-child .contact-office__title,
  .contact-offices__region:last-child .contact-office__company {
    text-align: center;
  }

  .contact-office__address,
  .contact-offices__region:last-child .contact-office__address {
    align-items: center;

    width: 100%;

    text-align: center;
  }

  .contact-office__details,
  .contact-offices__region:last-child .contact-office__details {
    width: 100%;

    text-align: center;
  }

  .contact-office__company,
  .contact-office__address,
  .contact-office__details p {
    font-size: 15px;
  }

  .contact-office__location,
  .contact-offices__region:last-child .contact-office__location {
    align-self: center;

    margin-right: auto;
    margin-left: auto;
  }

  /* =====================================================
       TÍTULO FORMULARIO
       ===================================================== */

  .contact-form-section__title {
    max-width: 100%;

    font-size: 21px;
    line-height: 1.4;
  }

  /* =====================================================
       FORMULARIO
       ===================================================== */

  .contact-form-section__grid {
    display: flex;
    flex-direction: column;

    margin-top: 34px;
  }

  .contact-form-section__form {
    order: 1;

    width: 100%;

    padding: 28px 0 34px;
  }

  .contact-form__grid {
    grid-template-columns: 1fr;

    grid-template-areas:
      "name"
      "email"
      "company"
      "message";

    column-gap: 0;
    row-gap: 12px;
  }

  .contact-form input[type="text"],
  .contact-form input[type="email"] {
    height: 48px;
  }

  .contact-form textarea {
    height: 130px;
    min-height: 130px;
  }

  .contact-form__privacy {
    margin-top: 16px;
  }

  .contact-form__submit {
    margin-top: 20px;
  }

  /* =====================================================
       RESPUESTA RÁPIDA
       ===================================================== */

  .contact-form-response {
    order: 2;

    width: 100%;
    box-sizing: border-box;

    padding: 38px 20px;

    border-top: 1px solid rgba(38, 55, 70, 0.16);
    border-right: 0;
  }

  .contact-form-response__icon {
    width: 76px;
    height: 76px;

    margin-bottom: 22px;
  }

  .contact-form-response__icon svg {
    width: 42px;
    height: 42px;
  }

  .contact-form-response__title {
    max-width: 280px;

    font-size: 22px;
  }

  .contact-form-response__text {
    max-width: 330px;

    margin-top: 17px;

    font-size: 13px;
  }

  /* =====================================================
       PROTECCIÓN DE DATOS
       ===================================================== */

  .contact-data-protection {
    padding: 6px 0 36px;
  }
}
