/* ========================================
   CONTACT HERO
======================================== */

.contact-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 590px;
  padding: 150px 0 100px;
  color: var(--white);
  background:
    linear-gradient(
      90deg,
      rgba(30, 38, 56, 0.97) 0%,
      rgba(30, 38, 56, 0.85) 55%,
      rgba(46, 49, 146, 0.55) 100%
    ),
    url("../img/Geofisica/E.Gefisica10.jpeg") center 45% / cover no-repeat;
  overflow: hidden;
}

.contact-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(30, 38, 56, 0.35), transparent 65%);
  pointer-events: none;
}

.contact-hero .container {
  position: relative;
  z-index: 1;
}

.contact-hero-content {
  max-width: 800px;
}

.contact-eyebrow,
.contact-section-label {
  display: inline-block;
  color: var(--blue-light);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

.contact-section-label-custom {
  display: inline-block;
  color: var(--blue);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

.contact-hero h1 {
  max-width: 780px;
  margin: 22px 0;
  color: var(--white);
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.04;
  font-weight: 800;
}

.contact-hero p {
  max-width: 620px;
  margin: 0;
  color: #E0E3E6;
  font-size: 17px;
  line-height: 1.9;
}

.contact-hero-button {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  padding: 16px 24px;
  color: var(--white);
  background: var(--blue);
  border: 1px solid var(--blue);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease;
}

.contact-hero-button:hover {
  color: var(--primary-dark);
  background: var(--blue-light);
  border-color: var(--blue-light);
  transform: translateY(-3px);
}

/* ========================================
   INTRO
======================================== */

.contact-intro {
  padding: 85px 0 65px;
  background: var(--gray-light);
}

.contact-intro h2 {
  max-width: 690px;
  margin: 15px 0 0;
  color: var(--black);
  font-size: clamp(32px, 4vw, 47px);
  line-height: 1.15;
  font-weight: 800;
}

.contact-intro p {
  margin: 0;
  color: var(--gray-dark);
  font-size: 16px;
  line-height: 1.9;
}

/* ========================================
   CONTACT MAIN
======================================== */

.contact-main {
  padding: 20px 0 100px;
  background: var(--gray-light);
}

.contact-main .row {
  align-items: stretch;
}

.contact-information {
  height: 100%;
  padding: 42px 32px;
  color: var(--white);
  background: var(--black);
}

.contact-information h2 {
  margin: 18px 0 12px;
  color: var(--white);
  font-size: clamp(29px, 3vw, 38px);
  line-height: 1.15;
  font-weight: 800;
}

.contact-information-description {
  margin: 0 0 30px;
  color: #C1C7D0;
  font-size: 15px;
  line-height: 1.8;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px 0;
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  transition: color 0.25s ease;
}

.contact-detail:hover {
  color: var(--blue-light);
}

.contact-detail-icon {
  display: flex;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  color: var(--blue-light);
  background: rgba(183, 227, 247, 0.12);
  font-size: 18px;
}

.contact-whatsapp-icon {
  color: #46D58B;
  background: rgba(37, 211, 102, 0.12);
}

.contact-detail-text {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 4px;
}

.contact-detail-label {
  color: #B7C0CC;
  font-size: 12px;
  letter-spacing: 0.6px;
}

.contact-detail-text strong {
  overflow-wrap: anywhere;
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
}

.contact-detail-action {
  color: #A7A7A7;
  font-size: 12px;
  line-height: 1.5;
}

.contact-detail-arrow {
  color: #A7A7A7;
  font-size: 12px;
}

.contact-company-link {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  margin-top: 28px;
  padding: 20px;
  color: var(--blue-light);
  background: rgba(255, 255, 255, 0.045);
}

.contact-company-link > i {
  margin-top: 3px;
}

.contact-company-link div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-company-link span {
  color: #C1C7D0;
  font-size: 12px;
}

.contact-company-link a {
  color: var(--blue-light);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-company-link a:hover {
  color: var(--white);
}

.contact-company-link a i {
  margin-left: 5px;
  font-size: 11px;
}

.contact-social {
  margin-top: 30px;
}

.contact-social > span {
  display: block;
  margin-bottom: 16px;
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
}

.contact-social-links {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
}

.contact-social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 43px;
  height: 43px;
  color: #fff;
  background: var(--black);
  font-size: 31px;
  line-height: 1;
  text-decoration: none;
  transition:
    color 0.3s ease,
    background 0.3s ease,
    transform 0.3s ease;
}

.contact-social-links a:hover {
  color: var(--blue-light);
  background: var(--black);
  transform: translateY(-3px);
}

.contact-social small {
  display: block;
  margin-top: 12px;
  color: #A7A7A7;
  font-size: 11px;
  line-height: 1.6;
}

/* ========================================
   FORM
======================================== */

.contact-form-card {
  height: 100%;
  padding: 45px;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: 0 15px 55px rgba(30, 38, 56, 0.06);
}

.contact-form-heading {
  margin-bottom: 30px;
}

.contact-form-heading h2 {
  margin: 13px 0 10px;
  color: var(--black);
  font-size: clamp(30px, 3.5vw, 42px);
  line-height: 1.15;
  font-weight: 800;
}

.contact-form-heading p {
  margin: 0;
  color: var(--gray-dark);
  font-size: 14px;
  line-height: 1.8;
}

.contact-form label:not(.contact-privacy) {
  display: block;
  margin-bottom: 9px;
  color: var(--black);
  font-size: 13px;
  font-weight: 700;
}

.contact-form input:not([type="checkbox"]),
.contact-form select,
.contact-form textarea {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 14px 15px;
  color: var(--black);
  background: #F8FAFC;
  border: 1px solid var(--border);
  border-radius: 0;
  outline: none;
  font-family: inherit;
  font-size: 14px;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.contact-form textarea {
  min-height: 145px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  background: var(--white);
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(46, 49, 146, 0.12);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--gray);
}

.contact-form .contact-invalid {
  border-color: #D64545 !important;
}

.contact-field-error {
  display: block;
  margin-top: 6px;
  color: #D64545;
  font-size: 12px;
}

.contact-privacy {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--gray-dark);
  font-size: 12px;
  line-height: 1.7;
  cursor: pointer;
}

.contact-privacy input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  accent-color: var(--blue);
}

.contact-submit {
  display: flex;
  width: 100%;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 20px;
  color: var(--white);
  background: var(--blue);
  border: 1px solid var(--blue);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition:
    color 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease;
}

.contact-submit:hover {
  color: var(--primary-dark);
  background: var(--blue-light);
  border-color: var(--blue-light);
}

.contact-submit i:first-child {
  font-size: 19px;
}

.contact-submit i:last-child {
  transition: transform 0.3s ease;
}

.contact-submit:hover i:last-child {
  transform: translateX(4px);
}

.contact-form-note {
  margin: 13px 0 0;
  color: var(--gray-dark);
  font-size: 11px;
  line-height: 1.7;
  text-align: center;
}

.contact-form-feedback {
  display: none;
  margin-top: 15px;
  padding: 12px 15px;
  font-size: 13px;
  line-height: 1.6;
}

.contact-form-feedback.error {
  display: block;
  color: #9D2828;
  background: #FFF0F0;
}

.contact-form-feedback.success {
  display: block;
  color: #176B43;
  background: #EAF8F0;
}

/* ========================================
   BOTTOM CTA: TEXTO + MAPA
======================================== */

.contact-bottom-cta {
  position: relative;
  padding: 85px 0;
  color: var(--white);
  background:
    linear-gradient(
      100deg,
      rgba(30, 38, 56, 0.97),
      rgba(46, 49, 146, 0.88)
    ),
    url("../img/Geofisica/E.Gefisica10.jpeg") center / cover no-repeat;
  overflow: hidden;
}

.contact-bottom-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 50px;
  width: 100%;
}

.contact-bottom-content {
  width: 100%;
  max-width: 560px;
  margin: 0;
  text-align: left;
}

.contact-bottom-content h2 {
  margin: 17px 0;
  color: var(--white);
  font-size: clamp(32px, 4.5vw, 49px);
  line-height: 1.12;
  font-weight: 800;
}

.contact-bottom-content p {
  max-width: 540px;
  margin: 0;
  color: #E0E3E6;
  font-size: 15px;
  line-height: 1.9;
}

.contact-bottom-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  margin-top: 28px;
  padding: 15px 24px;
  color: var(--white);
  background: var(--blue);
  border: 1px solid var(--blue);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition:
    color 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease;
}

.contact-bottom-button:hover {
  color: var(--primary-dark);
  background: var(--blue-light);
  border-color: var(--blue-light);
}

.contact-bottom-button i {
  transition: transform 0.3s ease;
}

.contact-bottom-button:hover i {
  transform: translateX(4px);
}

.contact-bottom-map {
  width: 100%;
  min-width: 0;
  height: 380px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.25);
}

.contact-bottom-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ========================================
   RESPONSIVE: TABLETS
======================================== */

@media (max-width: 991px) {
  .contact-hero {
    min-height: 520px;
  }

  .contact-intro {
    padding: 65px 0 45px;
  }

  .contact-main {
    padding-bottom: 70px;
  }

  .contact-information,
  .contact-form-card {
    padding: 35px 28px;
  }

  .contact-bottom-cta {
    padding: 70px 0;
  }

  .contact-bottom-layout {
    gap: 30px;
  }

  .contact-bottom-content h2 {
    font-size: clamp(30px, 3.8vw, 40px);
  }

  .contact-bottom-map {
    height: 340px;
  }
}

/* ========================================
   RESPONSIVE: CELULARES
======================================== */

@media (max-width: 767px) {
  .contact-hero {
    min-height: 540px;
    padding: 130px 0 75px;
    background-position: 58% center;
  }

  .contact-hero h1 {
    font-size: clamp(38px, 10vw, 52px);
  }

  .contact-hero p {
    font-size: 15px;
    line-height: 1.8;
  }

  .contact-intro {
    padding: 55px 0 35px;
  }

  .contact-intro h2 {
    font-size: 34px;
  }

  .contact-main {
    padding: 15px 0 55px;
  }

  .contact-information,
  .contact-form-card {
    padding: 30px 22px;
  }

  .contact-form-heading h2 {
    font-size: 32px;
  }

  .contact-bottom-cta {
    padding: 60px 0;
  }

  .contact-bottom-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 35px;
  }

  .contact-bottom-content {
    max-width: 100%;
    text-align: left;
  }

  .contact-bottom-content h2 {
    font-size: clamp(32px, 8vw, 40px);
  }

  .contact-bottom-content p {
    font-size: 14px;
  }

  .contact-bottom-map {
    height: 300px;
  }

  .contact-submit {
    padding: 15px 12px;
    font-size: 12px;
  }
}

/* ========================================
   RESPONSIVE: CELULARES PEQUEÑOS
======================================== */

@media (max-width: 380px) {
  .contact-detail {
    gap: 10px;
  }

  .contact-detail-icon {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
  }

  .contact-detail-text strong {
    font-size: 12px;
  }

  .contact-form-card,
  .contact-information {
    padding: 25px 17px;
  }

  .contact-bottom-map {
    height: 260px;
  }

  .contact-bottom-button {
    gap: 10px;
    padding: 14px 18px;
    font-size: 13px;
  }
}