/* =========================================================
   NORTE VERDE — CONTACTO
   Este archivo se carga DESPUÉS de style.css.
========================================================= */


/* =========================================================
   HERO CON MAPA
========================================================= */

.contact-map-hero {
  position: relative;
  min-height: 430px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #dce5df;
  isolation: isolate;
}

.contact-hero-map {
  position: absolute;
  top: -70px;
  bottom: -70px;

  /* El iframe es más ancho que el hero para poder
     mover el mapa sin descubrir los bordes. */
  left: -20%;
  width: 140%;
  height: calc(100% + 140px);

  /* Desplaza visualmente el mapa hacia la derecha
     manteniendo cobertura en ambos laterales. */
  transform: translateX(7%);

  border: 0;
  pointer-events: none;
  filter:
    saturate(.65)
    contrast(.92)
    brightness(.88);
  z-index: -3;
}

.contact-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(4, 30, 23, .78) 0%,
      rgba(4, 30, 23, .58) 38%,
      rgba(4, 30, 23, .25) 67%,
      rgba(4, 30, 23, .12) 100%
    );
  z-index: -2;
}

.contact-map-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 7px;
  background:
    linear-gradient(
      90deg,
      #8fbd16 0 54%,
      #2e97d4 54% 100%
    );
}

.contact-hero-content {
  position: relative;
  padding-top: 58px;
  padding-bottom: 58px;
}

.contact-hero-content .eyebrow {
  margin: 0 0 8px;
  color: #b7df35;
  text-align: left;
}

.contact-hero-content h1 {
  max-width: 760px;
  margin: 0 0 15px;
  color: #fff;
  font-size: clamp(3.2rem, 7vw, 5.4rem);
  line-height: .98;
  letter-spacing: -.045em;
}

.contact-hero-content > p:last-child {
  max-width: 590px;
  margin: 0;
  color: rgba(255,255,255,.94);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.65;
}


/* =========================================================
   CONTENIDO DE CONTACTO
========================================================= */

.contact-section {
  padding: 86px 0 96px;
  background:
    linear-gradient(
      180deg,
      #fff 0%,
      #fbfcfb 100%
    );
}

.contact-layout {
  display: grid;
  grid-template-columns:
    minmax(0, .86fr)
    minmax(0, 1.14fr);
  gap: 70px;
  align-items: start;
}


/* =========================================================
   COLUMNA INFORMACIÓN
========================================================= */

.contact-info {
  padding-top: 12px;
}

.contact-info .eyebrow {
  text-align: left;
}

.contact-info h2 {
  max-width: 480px;
  margin: 6px 0 16px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.contact-intro {
  max-width: 520px;
  margin: 0;
  color: var(--nv-muted);
  font-size: 1.04rem;
  line-height: 1.7;
}

.contact-data {
  display: grid;
  gap: 13px;
  margin: 35px 0 30px;
}

.contact-data-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 17px 18px;
  border: 1px solid var(--nv-line);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 8px 27px rgba(31,55,70,.045);
}

.contact-data-icon {
  width: 45px;
  height: 45px;
  flex: 0 0 45px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f2f8e4;
  color: var(--nv-green);
  font-size: .92rem;
  font-weight: 900;
}

.contact-data-item small {
  display: block;
  margin-bottom: 3px;
  color: #8a9298;
  font-size: .73rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.contact-data-item a,
.contact-data-item p {
  margin: 0;
  color: var(--nv-dark);
  font-weight: 750;
  line-height: 1.35;
}

.contact-data-item a:hover {
  color: var(--nv-green);
}

.direct-whatsapp {
  display: inline-flex;
}


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

.contact-whatsapp-form {
  padding: 40px;
  border: 1px solid var(--nv-line);
  border-radius: 23px;
  background: #fff;
  box-shadow:
    0 18px 55px rgba(26,53,69,.09);
}

.form-heading {
  margin-bottom: 27px;
}

.form-heading .eyebrow {
  text-align: left;
}

.form-heading h2 {
  margin: 5px 0 0;
  font-size: clamp(1.65rem, 3vw, 2.3rem);
  letter-spacing: -.025em;
}

.contact-whatsapp-form .form-row {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.form-two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.contact-whatsapp-form label {
  color: #2b343c;
  font-size: .89rem;
  font-weight: 750;
}

.contact-whatsapp-form input,
.contact-whatsapp-form select,
.contact-whatsapp-form textarea {
  width: 100%;
  min-height: 51px;
  padding: 13px 14px;
  border: 1px solid #dbe2df;
  border-radius: 11px;
  outline: none;
  background: #fff;
  color: var(--nv-dark);
  font: inherit;
  transition:
    border-color .2s ease,
    box-shadow .2s ease,
    background .2s ease;
}

.contact-whatsapp-form select {
  cursor: pointer;
}

.contact-whatsapp-form textarea {
  min-height: 145px;
  resize: vertical;
  line-height: 1.55;
}

.contact-whatsapp-form input:focus,
.contact-whatsapp-form select:focus,
.contact-whatsapp-form textarea:focus {
  border-color: var(--nv-blue);
  box-shadow:
    0 0 0 4px rgba(46,151,212,.10);
}

.contact-submit {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  margin-top: 3px;
  border: 0;
  border-radius: 13px;
  background: #22b957;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow:
    0 12px 27px rgba(23,155,73,.20);
}

.contact-submit:hover {
  background: #179d47;
  transform: translateY(-2px);
}

.contact-submit-whatsapp {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 50%;
  font-size: .76rem;
  font-weight: 900;
}

.contact-form-note {
  margin: 15px 0 0;
  color: #858e94;
  font-size: .8rem;
  line-height: 1.55;
  text-align: center;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {

  .contact-map-hero {
    min-height: 390px;
  }

  .contact-hero-map {
    left: -15%;
    width: 130%;
    transform: translateX(5%);
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .contact-info {
    padding-top: 0;
  }

}

@media (max-width: 620px) {

  .contact-map-hero {
    min-height: 350px;
  }

  .contact-hero-map {
    left: -12%;
    width: 124%;
    transform: none;
  }

  .contact-hero-overlay {
    background:
      rgba(3, 29, 22, .67);
  }

  .contact-section {
    padding: 62px 0 74px;
  }

  .contact-whatsapp-form {
    padding: 27px 21px;
    border-radius: 18px;
  }

  .form-two-columns {
    grid-template-columns: 1fr;
    gap: 0;
  }

}

/* =========================================================
   FORMULARIO SEGURO + WHATSAPP AUTOMÁTICO
========================================================= */

.field-help {
  display: block;
  max-width: 520px;
  margin-top: 8px;
  color: #7d878e;
  font-size: .82rem;
  line-height: 1.5;
}

.nv-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  left: -9999px !important;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 3px 0 20px;
  color: #4f5a62;
  font-size: .88rem;
  font-weight: 500 !important;
  line-height: 1.5;
  cursor: pointer;
}

.consent-row input {
  width: 18px !important;
  height: 18px !important;
  min-height: 0 !important;
  flex: 0 0 18px;
  margin: 2px 0 0;
  accent-color: var(--nv-green);
  cursor: pointer;
}

.turnstile-wrap {
  min-height: 66px;
  margin: 0 0 18px;
  display: flex;
  align-items: center;
}

.form-status {
  display: none;
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: .88rem;
  line-height: 1.45;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-error {
  border: 1px solid #f0c6c6;
  background: #fff3f3;
  color: #9c2e2e;
}

.form-status.is-info {
  border: 1px solid #cfe2ef;
  background: #f3f9fd;
  color: #27667f;
}

.contact-submit:disabled {
  opacity: .62;
  cursor: wait;
  transform: none !important;
}

.contact-success {
  padding: 48px 40px;
  border: 1px solid var(--nv-line);
  border-radius: 23px;
  background: #fff;
  box-shadow: 0 18px 55px rgba(26,53,69,.09);
  text-align: center;
}

.contact-success[hidden] {
  display: none;
}

.contact-success-mark {
  width: 64px;
  height: 64px;
  margin: 0 auto 19px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eef8d9;
  color: var(--nv-green);
  font-size: 1.9rem;
  font-weight: 900;
}

.contact-success .eyebrow {
  text-align: center;
}

.contact-success h2 {
  margin: 6px 0 12px;
  font-size: clamp(1.8rem,3vw,2.4rem);
}

.contact-success p:last-child {
  max-width: 530px;
  margin: 0 auto;
  color: var(--nv-muted);
  line-height: 1.65;
}

@media (max-width: 620px) {
  .turnstile-wrap {
    overflow-x: auto;
  }

  .contact-success {
    padding: 36px 22px;
  }
}
