.contact-hero {
  position: relative;
  isolation: isolate;
  min-height: 455px;
  padding: 95px 0 88px;
  overflow: hidden;
  background: #ececef url("images/contacto-portada-v2.webp") center/cover no-repeat;
  border-bottom: 1px solid #e3e3e5;
}
.contact-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.12),
    rgba(255, 255, 255, 0.02)
  );
}
.contact-hero-content {
  position: relative;
  z-index: 1;
  max-width: 1500px;
}
.contact-hero h1 {
  max-width: 920px;
  margin: 8px 0 18px;
  font-size: clamp(48px, 7vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}
.contact-hero p {
  max-width: 720px;
  margin: 0;
  padding-top: 3.25em;
  color: #1d1d1d;
  font-size: 18px;
  line-height: 1.7;
}
.contact-section {
  background: #fff;
}
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.65fr);
  gap: 32px;
  align-items: start;
}
.contact-form-card,
.contact-information {
  padding: 34px;
  background: #e9e9ec;
  border: 1px solid #d7d7dc;
  border-top: 5px solid #303030;
}
.contact-form-card {
  border-top-color: var(--rp-red);
}
.contact-form-card h2,
.contact-information h2 {
  margin: 4px 0 24px;
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -0.04em;
}
.contact-information > p {
  margin: 0 0 26px;
  color: #626269;
  line-height: 1.65;
}
.contact-form {
  display: grid;
  gap: 18px;
}
.contact-fields-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.contact-field {
  display: grid;
  gap: 8px;
}
.contact-field label {
  color: #303036;
  font-size: 13px;
  font-weight: 750;
}
.contact-field input,
.contact-field textarea,
.captcha-row input {
  width: 100%;
  border: 1px solid #d3d3d7;
  border-radius: 10px;
  background: #fff;
  color: #202024;
  font: inherit;
  outline: none;
  transition: 0.18s;
}
.contact-field input {
  height: 50px;
  padding: 0 14px;
}
.contact-field textarea {
  padding: 14px;
  resize: vertical;
  min-height: 145px;
}
.contact-field input:focus,
.contact-field textarea:focus,
.captcha-row input:focus {
  border-color: var(--rp-red);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.09);
}
.captcha-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  background: #e5e5e7;
  border-left: 4px solid #303030;
}
.captcha-row div {
  display: grid;
  gap: 4px;
}
.captcha-row span {
  color: #55555b;
  font-size: 14px;
}
.captcha-row input {
  width: 90px;
  height: 46px;
  padding: 0 12px;
  text-align: center;
  font-weight: 800;
}
.contact-submit {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 10px;
  background: var(--rp-red);
  color: #fff;
  font:
    700 15px "Inter",
    sans-serif;
  cursor: pointer;
  transition: 0.2s;
}
.contact-submit:hover {
  background: var(--rp-red-dark);
  transform: translateY(-2px);
}
.contact-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 20px;
  padding: 15px 17px;
  border-radius: 9px;
  line-height: 1.5;
}
.contact-alert.success {
  background: #e9f8ee;
  color: #176a35;
  border: 1px solid #bfe5cc;
}
.contact-alert.error {
  display: block;
  background: #fff0f2;
  color: #8e1025;
  border: 1px solid #efc1c9;
}
.contact-alert.error ul {
  margin: 8px 0 0;
  padding-left: 20px;
}
.contact-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
.contact-list {
  display: grid;
  gap: 10px;
}
.contact-list a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px;
  background: #fff;
  border: 1px solid #dedee1;
  color: #303036;
  text-decoration: none;
  transition: 0.18s;
}
.contact-list a:hover {
  border-color: rgba(200, 16, 46, 0.35);
  transform: translateX(3px);
}
.contact-list i {
  width: 28px;
  color: var(--rp-red);
  font-size: 21px;
  text-align: center;
}
.contact-list span {
  display: grid;
  gap: 3px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.contact-list strong {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.contact-map-section {
  height: 430px;
  border-top: 1px solid #dedee1;
}
.contact-map-section iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.12);
}
@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .contact-information {
    order: -1;
  }
  .contact-hero {
    min-height: 420px;
    padding: 70px 0;
  }
  .contact-hero::after {
    background: rgba(255, 255, 255, 0.7);
  }
  .contact-map-section {
    height: 360px;
  }
}
@media (max-width: 600px) {
  .contact-hero h1 {
    font-size: 48px;
  }
  .contact-fields-two {
    grid-template-columns: 1fr;
  }
  .contact-form-card,
  .contact-information {
    padding: 24px 20px;
  }
  .captcha-row {
    align-items: flex-start;
  }
  .captcha-row input {
    width: 78px;
  }
  .contact-map-section {
    height: 320px;
  }
}

@media (min-width: 901px) {
  .contact-hero {
    min-height: 410px;
    padding: 82px 0 76px;
  }
  .contact-hero h1 {
    max-width: 830px;
    font-size: clamp(43px, 6.2vw, 79px);
  }
  .contact-hero p {
    font-size: 16px;
    line-height: 1.62;
  }
  .contact-section {
    padding: 58px 0;
  }
}
