.iw-contact-page {
  --iw-blue: #0088cc;
  --iw-blue-dark: #08719f;
  --iw-ink: #163348;
  --iw-muted: #60798a;
  --iw-line: #d5e6ef;
  --iw-soft: #f3f9fc;
  color: var(--iw-ink);
  font-family: "Open Sans", Arial, sans-serif;
}

.iw-contact-header {
  position: relative;
  min-height: 205px;
  overflow: hidden;
  background: linear-gradient(120deg, #086d9b 0%, #0088cc 58%, #39a9d8 100%);
  color: #fff;
}

.iw-contact-header::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .13;
  background-image: radial-gradient(circle at 1px 1px, #fff 1px, transparent 1.2px);
  background-size: 26px 26px;
}

.iw-contact-header__bubble {
  position: absolute;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 30px;
  transform: rotate(-12deg);
}

.iw-contact-header__bubble::after {
  content: "";
  position: absolute;
  right: 22px;
  bottom: -13px;
  width: 25px;
  height: 25px;
  border-right: 1px solid rgba(255,255,255,.2);
  transform: skewY(40deg);
}

.iw-contact-header__bubble--one { width: 240px; height: 120px; right: 9%; top: -28px; }
.iw-contact-header__bubble--two { width: 170px; height: 85px; right: 29%; bottom: -35px; transform: rotate(9deg); }

.iw-contact-header__inner {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 205px;
  flex-direction: column;
  justify-content: center;
  padding-top: 24px;
  padding-bottom: 24px;
}

.iw-contact-breadcrumb {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

.iw-contact-breadcrumb a, .iw-contact-breadcrumb li { color: rgba(255,255,255,.88); }
.iw-contact-breadcrumb a:hover { color: #fff; }

.iw-contact-header__kicker,
.iw-contact-eyebrow,
.iw-contact-card-heading p,
.iw-contact-service-card p {
  margin: 0 0 9px;
  color: var(--iw-blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .085em;
  text-transform: uppercase;
}

.iw-contact-header__kicker {
  display: flex;
  align-items: center;
  color: #fff;
}

.iw-contact-header__kicker::before,
.iw-contact-eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  margin-right: 11px;
  background: #74d2f5;
}

.iw-contact-header h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(38px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.05;
}

.iw-contact-content {
  padding: 72px 0 82px;
  background: linear-gradient(180deg, #fff 0%, #f7fbfd 100%);
}

.iw-contact-intro {
  max-width: 760px;
  margin-bottom: 38px;
}

.iw-contact-eyebrow { display: flex; align-items: center; }
.iw-contact-intro h2, .iw-contact-map-heading h2 {
  margin: 0 0 13px;
  color: var(--iw-ink);
  font-size: clamp(30px, 3.2vw, 42px);
  font-weight: 700;
  line-height: 1.15;
}
.iw-contact-intro > p:last-child {
  margin: 0;
  color: var(--iw-muted);
  font-size: 17px;
  line-height: 1.75;
}

.iw-contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(330px, .82fr);
  gap: 32px;
  align-items: stretch;
}

.iw-contact-form-card,
.iw-contact-info-card,
.iw-contact-service-card {
  overflow: hidden;
  border: 1px solid var(--iw-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(9, 54, 76, .08);
}

.iw-contact-form-card { height: 100%; padding: 34px; }
.iw-contact-card-heading { display: flex; align-items: center; gap: 16px; }
.iw-contact-card-heading > div {
  display: flex;
  min-height: 54px;
  flex-direction: column;
  justify-content: center;
}
.iw-contact-card-icon,
.iw-contact-service-icon {
  display: inline-flex;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  background: #e6f5fc;
  color: var(--iw-blue);
  font-size: 20px;
}
.iw-contact-card-icon {
  width: 54px;
  height: 54px;
  flex-basis: 54px;
  border-radius: 14px;
  font-size: 21px;
}
.iw-contact-card-heading p {
  margin: 0 0 1px;
  line-height: 1.2;
}
.iw-contact-card-heading h2 {
  margin: 0;
  color: var(--iw-ink);
  font-size: 27px;
  font-weight: 700;
  line-height: 1.2;
}
.iw-contact-required { margin: 17px 0 24px; color: #78909e; font-size: 13px; }

.iw-contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 19px;
}
.iw-contact-field--full { grid-column: 1 / -1; }
.iw-contact-field label {
  display: block;
  margin-bottom: 7px;
  color: #29495c;
  font-size: 13px;
  font-weight: 700;
}
.iw-contact-field label span { color: #dd4b4b; }
.iw-contact-field .form-control {
  width: 100%;
  height: 48px;
  padding: 10px 13px;
  border: 1px solid #cbdfe9;
  border-radius: 10px;
  background: #fbfdfe;
  box-shadow: none;
  color: var(--iw-ink);
  font-size: 14px;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.iw-contact-field textarea.form-control { min-height: 150px; height: auto; resize: vertical; }
.iw-contact-field .form-control:focus {
  border-color: var(--iw-blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0,136,204,.11);
}
.iw-contact-captcha { margin-top: 22px; }
.iw-contact-submit {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  margin-top: 22px;
  padding: 11px 21px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(120deg, #078acb, #20aee4);
  box-shadow: 0 10px 24px rgba(0,136,204,.22);
  font-size: 14px;
  font-weight: 700;
}
.iw-contact-submit:hover, .iw-contact-submit:focus { background: linear-gradient(120deg, #0876ad, #119bd1); }

.iw-contact-sidebar { display: block; height: 100%; }
.iw-contact-info-card { display: flex; height: 100%; flex-direction: column; }
.iw-contact-office-image { aspect-ratio: 16 / 8.5; overflow: hidden; background: #edf6fa; }
.iw-contact-office-image img { width: 100%; height: 100%; object-fit: cover; }
.iw-contact-info-card__body { padding: 28px; }
.iw-contact-info-card h2 {
  margin: 0 0 22px;
  color: var(--iw-ink);
  font-size: 25px;
  font-weight: 700;
  line-height: 1.28;
}
.iw-contact-details { margin: 0; padding: 0; list-style: none; }
.iw-contact-details li {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 13px 0;
  border-top: 1px solid #e6eff4;
  color: #536e7e;
  line-height: 1.55;
}
.iw-contact-details li > i { width: 20px; margin-top: 3px; color: var(--iw-blue); font-size: 17px; text-align: center; }
.iw-contact-details a { color: var(--iw-ink); font-weight: 700; }
.iw-contact-details small { display: block; margin-top: 2px; color: #78909e; font-size: 12px; }
.iw-contact-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 45px;
  margin-top: 18px;
  border-radius: 10px;
  background: #43b047;
  color: #fff;
  font-weight: 700;
}
.iw-contact-whatsapp:hover, .iw-contact-whatsapp:focus { background: #38a63d; color: #fff; text-decoration: none; }

.iw-contact-info-card > .iw-contact-service-card {
  margin: 0 28px;
  padding: 8px 0;
  overflow: visible;
  border: 0;
  border-top: 1px solid #e1edf3;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.iw-contact-service-card__section { display: flex; gap: 15px; padding: 22px 0; }
.iw-contact-service-card__section + .iw-contact-service-card__section { border-top: 1px solid #e1edf3; }
.iw-contact-service-card p { margin-bottom: 5px; }
.iw-contact-service-card h3 { margin: 0 0 8px; color: var(--iw-ink); font-size: 15px; font-weight: 700; line-height: 1.45; }
.iw-contact-service-card h3 strong { color: var(--iw-blue); }
.iw-contact-service-card__section > div > span { display: block; color: var(--iw-muted); font-size: 13px; line-height: 1.6; }
.iw-contact-service-card a { color: var(--iw-blue); font-size: 13px; font-weight: 700; }

.iw-contact-map-section { padding: 68px 0 78px; background: #eef6fa; }
.iw-contact-map-heading { margin-bottom: 25px; }
.iw-contact-map-heading h2 { font-size: 32px; }
.iw-contact-map {
  height: 390px;
  overflow: hidden;
  border: 8px solid #fff;
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(9,54,76,.11);
}
.iw-contact-map iframe { width: 100%; height: 100%; border: 0; }

@media (max-width: 991px) {
  .iw-contact-layout { grid-template-columns: 1fr; }
  .iw-contact-sidebar { height: auto; }
  .iw-contact-info-card { height: auto; }
}

@media (max-width: 767px) {
  .iw-contact-header, .iw-contact-header__inner { min-height: 185px; }
  .iw-contact-header__inner { padding: 22px 18px 26px; }
  .iw-contact-breadcrumb { margin-bottom: 24px; }
  .iw-contact-header h1 { font-size: 36px; }
  .iw-contact-content { padding: 52px 0 58px; }
  .iw-contact-intro { margin-bottom: 28px; }
  .iw-contact-intro h2 { font-size: 31px; }
  .iw-contact-intro > p:last-child { font-size: 15px; }
  .iw-contact-form-card { padding: 24px 20px; border-radius: 15px; }
  .iw-contact-form-grid { grid-template-columns: 1fr; gap: 16px; }
  .iw-contact-field--full { grid-column: auto; }
  .iw-contact-card-heading h2 { font-size: 23px; }
  .iw-contact-captcha { overflow-x: auto; }
  .iw-contact-submit { width: 100%; justify-content: center; }
  .iw-contact-sidebar { grid-template-columns: 1fr; }
  .iw-contact-info-card { grid-row: auto; }
  .iw-contact-map-section { padding: 50px 0 58px; }
  .iw-contact-map { height: 320px; border-width: 5px; }
}

/* Cabecera institucional compacta, alineada con /desarrollos. */
.iw-contact-header,
.iw-contact-header__inner {
  min-height: 190px;
}

.iw-contact-header__inner {
  padding-top: 30px;
  padding-bottom: 30px;
}

.iw-contact-header__kicker {
  color: #d8f3ff;
}

.iw-contact-header__kicker::before {
  background: #83d5f4;
}

.iw-contact-header h1 {
  color: #fff;
  font-size: 44px;
  line-height: 1.08;
}

@media (max-width: 767px) {
  .iw-contact-header,
  .iw-contact-header__inner {
    min-height: 170px;
  }

  .iw-contact-header__inner {
    padding: 28px 18px;
  }

  .iw-contact-header h1 {
    font-size: 35px;
  }
}

@media (max-width: 360px) {
  .iw-contact-form-card { padding: 22px 15px; }
  .iw-contact-card-icon { width: 48px; height: 48px; flex-basis: 48px; }
  .iw-contact-card-heading > div { min-height: 48px; }
  .iw-contact-info-card__body, .iw-contact-service-card { padding-left: 20px; padding-right: 20px; }
}
