.contact-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(45px, 6vw, 88px) clamp(48px, 7vw, 98px);
  background:
    radial-gradient(ellipse at 13% 100%, #a3e7e77a, transparent 40%),
    radial-gradient(ellipse at 94% 0%, #bceceda8, transparent 46%),
    linear-gradient(170deg, #f1fafb, #fff 64%);
}

.contact-section::before,
.contact-section::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 122%;
  height: 180px;
  border-radius: 50%;
  background: #13b5b522;
  pointer-events: none;
}

.contact-section::before {
  top: -145px;
  left: -10%;
  transform: rotate(-4deg);
}

.contact-section::after {
  right: -20%;
  bottom: -138px;
  transform: rotate(-5deg);
}

.contact-section .contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  overflow: hidden;
  border-radius: clamp(24px, 3vw, 42px);
  background: linear-gradient(124deg, #075b75, var(--navy));
  box-shadow: 0 18px 56px #073b631c;
}

.contact-section .contact-intro {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, .83fr) minmax(0, 1.17fr);
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(ellipse at 5% 0%, #169da6, transparent 53%),
    linear-gradient(124deg, #075a74, var(--navy) 79%);
}

.contact-section .contact-intro::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto auto -4% -11%;
  width: 56%;
  height: 89%;
  border-radius: 51% 49% 60% 40% / 31% 56% 44% 69%;
  background: #073b636e;
  transform: rotate(-16deg);
}

.contact-section .contact-intro::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto -14% -15% 36%;
  height: 30%;
  border-radius: 50%;
  background: #13b5b527;
  transform: rotate(-14deg);
}

.contact-section .contact-portrait {
  position: absolute;
  z-index: 0;
  inset: auto auto 0 -2%;
  display: block;
  width: 44%;
}

.contact-section .contact-portrait img {
  width: 100%;
  height: auto;
}

.contact-section .contact-bio {
  position: absolute;
  z-index: 1;
  left: clamp(12px, 2vw, 29px);
  bottom: clamp(27px, 4vw, 55px);
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 40%;
  padding: 10px clamp(10px, 1.2vw, 18px);
  border: 1px solid #fff9;
  border-radius: 18px;
  background: #fffffff5;
  color: var(--navy);
  box-shadow: 0 10px 26px #073b633d;
  transform: rotate(-3deg);
}

.contact-section .contact-bio .icon {
  width: 29px;
  height: 29px;
  padding: 5px;
  border-radius: 50%;
  background: #007c7e;
  color: #fff;
}

.contact-section .contact-bio strong,
.contact-section .contact-bio small {
  display: block;
}

.contact-section .contact-bio strong {
  font-family: Caveat, cursive;
  font-size: clamp(23px, 2.25vw, 31px);
  line-height: .98;
}

.contact-section .contact-bio small {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.22;
}

.contact-section .contact-intro-copy {
  position: relative;
  z-index: 1;
  grid-column: 2;
  min-width: 0;
  padding: clamp(28px, 4.1vw, 62px) clamp(24px, 3vw, 44px) clamp(34px, 4.5vw, 68px) 8px;
}

.contact-section .contact-kicker,
.contact-privacy-page .contact-kicker {
  margin: 0 0 12px;
  color: #a8f0e9;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.contact-section .contact-intro-copy h2 {
  margin: 0;
  color: var(--white);
  font-size: clamp(31px, 3vw, 46px);
  font-weight: 800;
  letter-spacing: -.048em;
  line-height: 1.04;
  text-wrap: balance;
}

.contact-section .contact-heading-underline {
  width: min(52%, 190px);
  height: 14px;
  margin: 7px 9% 16px auto;
  color: #63e4dc;
}

.contact-section .contact-intro-copy h2 + p,
.contact-section .contact-heading-underline + p {
  margin: 0;
  color: #f0fcfd;
  font-size: clamp(16px, 1.56vw, 21px);
  line-height: 1.46;
  text-wrap: pretty;
}

.contact-section .contact-intro-copy h2 + p {
  margin-top: 18px;
}

.contact-section .contact-benefits {
  display: grid;
  gap: 10px;
  margin: clamp(22px, 3.4vw, 42px) 0 0;
  padding: 0;
  list-style: none;
}

.contact-section .contact-benefits li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: clamp(15px, 1.48vw, 19px);
  font-weight: 700;
  line-height: 1.3;
}

.contact-section .contact-benefits .icon {
  width: 37px;
  height: 37px;
  padding: 7px;
  border: 1px solid #c6f4f1;
  border-radius: 50%;
  color: #e4fffc;
}

.contact-section .contact-form-side {
  display: grid;
  align-items: center;
  min-width: 0;
  padding: clamp(19px, 2.7vw, 39px);
  border-radius: clamp(24px, 3vw, 42px) 0 0 clamp(24px, 3vw, 42px);
  background: linear-gradient(146deg, #e8f8f9, #b7e7ea);
}

.contact-section .contact-form {
  display: grid;
  gap: 13px;
  min-width: 0;
  padding: clamp(20px, 2.25vw, 33px);
  border: 1px solid #fff;
  border-radius: clamp(20px, 2.7vw, 34px);
  background: linear-gradient(145deg, #fff, #f4fcfd);
  box-shadow: 0 11px 30px #073b6311;
}

.contact-section .contact-demo {
  margin: 0;
  padding: 9px 12px;
  border: 1px solid #cae8eb;
  border-radius: 12px;
  background: #eaf8f8;
  color: #235c68;
  font-size: 13px;
  line-height: 1.45;
}

.contact-section .contact-form-fields {
  display: grid;
  gap: 13px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.contact-section .contact-field-pair {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  gap: 13px;
}

.contact-section .contact-field {
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
}

.contact-section .contact-field label {
  color: var(--navy);
  font-size: clamp(15px, 1.28vw, 17px);
  font-weight: 800;
  line-height: 1.25;
}

@media (min-width: 561px) {
  .contact-section .contact-field-pair label {
    min-height: 2.5em;
  }
}

.contact-section .contact-required,
.contact-section .contact-field-error {
  color: #9b2838;
}

.contact-section .contact-optional {
  color: var(--ink-soft);
  font-size: .76em;
  font-weight: 500;
}

.contact-section .contact-control {
  display: flex;
  align-items: flex-start;
  min-width: 0;
  border: 1px solid #98b6c3;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 8px #073b6307;
  color: #286778;
  transition: border-color .18s, box-shadow .18s;
}

.contact-section .contact-control:focus-within {
  border-color: #007b85;
  box-shadow: 0 0 0 3px #0b8b922b;
}

.contact-section .contact-control:has([aria-invalid="true"]) {
  border-color: #a13c49;
}

.contact-section .contact-control > .icon,
.contact-section .contact-control > .contact-prefix,
.contact-section .contact-control > .contact-currency {
  flex: 0 0 auto;
  margin: 12px 0 0 12px;
}

.contact-section .contact-control > .icon {
  width: 19px;
  height: 19px;
}

.contact-section .contact-prefix,
.contact-section .contact-currency {
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
}

.contact-section .contact-control > .icon + .contact-prefix {
  margin-left: 7px;
}

.contact-section .contact-control :is(input, select, textarea) {
  display: block;
  flex: 1;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 10px 12px;
  border: 0;
  border-radius: inherit;
  outline: none;
  background: transparent;
  color: var(--navy);
  font: inherit;
  font-size: 16px;
  line-height: 1.45;
}

.contact-section .contact-control select {
  padding-right: 6px;
  text-overflow: ellipsis;
}

.contact-section .contact-control textarea {
  min-height: 74px;
  resize: vertical;
}

.contact-section .contact-control ::placeholder {
  color: #526b80;
  opacity: 1;
}

.contact-section .contact-field-hint,
.contact-section .contact-field-error {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
}

.contact-section .contact-field-hint {
  color: var(--ink-soft);
}

.contact-section .contact-field-error:empty,
.contact-section [hidden] {
  display: none;
}

.contact-section .contact-consent {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 8px 10px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.48;
}

.contact-section .contact-consent label {
  color: inherit;
  font-size: inherit;
  font-weight: 600;
  line-height: inherit;
  cursor: pointer;
}

.contact-section .contact-consent input,
.contact-section .contact-demo-options input[type="checkbox"] {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  margin: 1px 0 0;
  accent-color: #007c80;
  cursor: pointer;
}

.contact-section .contact-consent input:focus-visible,
.contact-section .contact-demo-options input:focus-visible,
.contact-section .contact-demo-options summary:focus-visible {
  outline: 2px solid #007b85;
  outline-offset: 3px;
}

.contact-section .contact-consent .contact-field-error {
  grid-column: 2;
}

.contact-section .contact-consent a,
.contact-privacy-page .contact-privacy-content a:not(.button) {
  color: #006f78;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-section .contact-submit {
  width: 100%;
  min-height: 53px;
  padding: 10px 17px;
  font-size: clamp(16px, 1.55vw, 20px);
  text-wrap: balance;
}

.contact-section .contact-submit:disabled {
  cursor: default;
  filter: none;
  transform: none;
}

.contact-section .contact-submit[aria-busy="true"] {
  cursor: progress;
}

.contact-section .contact-submit[aria-busy="true"] > .icon {
  display: none;
}

.contact-section .contact-submit[aria-busy="true"]::before {
  content: "";
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  border: 2px solid #ffffff67;
  border-top-color: #fff;
  border-radius: 50%;
  animation: contact-spin .75s linear infinite;
}

.contact-section .contact-form-status {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #e8f6f7;
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.contact-section .contact-form-status:empty {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.contact-section .contact-form-status[data-state="success"] {
  background: #e0f4ec;
  color: #165344;
}

.contact-section .contact-form-status[data-state="error"] {
  background: #fcecf0;
  color: #8d2436;
}

.contact-section .contact-demo-options {
  padding-top: 2px;
  color: #2d6370;
  font-size: 13px;
  line-height: 1.45;
}

.contact-section .contact-demo-options summary {
  width: fit-content;
  min-height: 28px;
  font-weight: 700;
  cursor: pointer;
}

.contact-section .contact-demo-options label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: fit-content;
  margin-block: 3px 7px;
  cursor: pointer;
}

.contact-section .contact-demo-options button {
  min-height: 36px;
  padding: 5px 10px;
  border: 1px solid #91c0c4;
  border-radius: 8px;
  background: #fff;
  color: #006f78;
  font-weight: 700;
  cursor: pointer;
}

.contact-section .contact-direct {
  display: grid;
  justify-items: center;
  gap: 15px;
  margin-top: clamp(26px, 3.8vw, 48px);
  text-align: center;
}

.contact-section .contact-direct-caption {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(9px, 2vw, 26px);
  width: min(100%, 850px);
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(16px, 2vw, 24px);
  line-height: 1.32;
  letter-spacing: -.025em;
}

.contact-section .contact-direct-caption::before,
.contact-section .contact-direct-caption::after {
  content: "";
  height: 1px;
  background: #a7bfcb;
}

.contact-section .contact-direct .button {
  max-width: 100%;
  min-height: 57px;
  padding: 13px clamp(20px, 3.5vw, 42px);
  font-size: clamp(17px, 2.1vw, 23px);
}

.contact-section .contact-direct-status {
  margin: -5px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.4;
}

.contact-privacy-page {
  min-height: 100vh;
  padding-block: clamp(25px, 7vw, 90px);
  background: linear-gradient(140deg, #e8f8f8, #fff 55%);
}

.contact-privacy-page .contact-privacy-content {
  max-width: 740px;
  padding: clamp(22px, 5vw, 56px);
  border: 1px solid #cce9ed;
  border-radius: 25px;
  background: #fff;
  box-shadow: 0 12px 32px #073b6310;
}

.contact-privacy-page .contact-privacy-content h1 {
  margin-top: 17px;
  font-size: clamp(32px, 5vw, 51px);
}

.contact-privacy-page .contact-privacy-content p {
  color: var(--ink-soft);
  line-height: 1.6;
}

.contact-privacy-page .contact-privacy-content h2 {
  margin-top: 26px;
  font-size: clamp(19px, 3vw, 24px);
  line-height: 1.22;
}

.contact-privacy-page .contact-privacy-content .button {
  min-height: 46px;
  margin-top: 8px;
  padding: 10px 18px;
}

@keyframes contact-spin {
  to { transform: rotate(360deg); }
}

@media (min-width: 961px) {
  .contact-section .contact-portrait {
    inset: 0 auto 0 -9%;
    width: auto;
  }

  .contact-section .contact-portrait img {
    width: auto;
    max-width: none;
    height: 100%;
    mask-image: linear-gradient(90deg, #000 72%, transparent 98%);
  }

  .contact-section .contact-intro-copy {
    align-self: start;
  }
}

@media (min-width: 961px) and (max-width: 1160px) {
  .contact-section .contact-control select {
    font-size: 14px;
  }
}

@media (max-width: 960px) {
  .contact-section .contact-panel {
    grid-template-columns: minmax(0, 1fr);
    max-width: 700px;
    margin-inline: auto;
  }

  .contact-section .contact-intro {
    min-height: 405px;
  }

  .contact-section .contact-portrait {
    width: min(42%, 257px);
  }

  .contact-section .contact-form-side {
    border-radius: 0;
  }
}

@media (max-width: 560px) {
  .contact-section .contact-intro {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "copy" "bio";
    min-height: 0;
    align-items: start;
    padding: clamp(23px, 5.8vw, 34px) clamp(17px, 5vw, 28px) clamp(18px, 5.4vw, 30px);
  }

  .contact-section .contact-intro-copy {
    grid-area: copy;
    padding: 0;
  }

  .contact-section .contact-intro-copy h2 {
    font-size: clamp(29px, 8vw, 40px);
    text-wrap: wrap;
  }

  .contact-section .contact-heading-underline {
    margin: 4px 6% 11px auto;
  }

  .contact-section .contact-heading-underline + p {
    max-inline-size: min(74%, 32ch);
    font-size: clamp(15px, 3.9vw, 18px);
    line-height: 1.38;
  }

  .contact-section .contact-benefits {
    width: 51%;
    gap: 9px;
    margin-top: 15px;
  }

  .contact-section .contact-benefits li {
    align-items: flex-start;
    gap: clamp(7px, 2.15vw, 11px);
    font-size: clamp(13px, 3.7vw, 16px);
    line-height: 1.24;
  }

  .contact-section .contact-benefits li > span {
    flex: none;
  }

  .contact-section .contact-benefits .icon {
    width: clamp(27px, 7.8vw, 37px);
    height: clamp(27px, 7.8vw, 37px);
    padding: 6px;
  }

  .contact-section .contact-portrait {
    inset: auto -13% 0 auto;
    width: min(66%, 280px);
    max-height: calc(100% - clamp(130px, 36vw, 174px));
    aspect-ratio: 5 / 7;
    overflow: hidden;
    pointer-events: none;
  }

  .contact-section .contact-portrait img {
    position: absolute;
    inset: 0 auto auto 0;
    display: block;
    mask-image: linear-gradient(90deg, transparent, #000 11%);
  }

  /* La curva de la tarjeta pasa por delante solo de la base del retrato. */
  .contact-section .contact-intro::after {
    z-index: 0;
    inset: auto -22% -22% 30%;
    height: 34%;
    background: linear-gradient(145deg, #0a8b97, #087588 64%, #073b63 96%);
  }

  .contact-section .contact-bio {
    position: relative;
    inset: auto;
    grid-area: bio;
    justify-self: start;
    gap: clamp(5px, 1.65vw, 8px);
    max-width: 54%;
    margin-top: clamp(15px, 4.3vw, 23px);
    padding: 8px clamp(7px, 2.4vw, 12px);
    transform: none;
  }

  .contact-section .contact-bio .icon {
    width: clamp(20px, 6vw, 26px);
    height: clamp(20px, 6vw, 26px);
    padding: 4px;
  }

  .contact-section .contact-bio strong {
    font-size: clamp(21px, 5.9vw, 27px);
  }

  .contact-section .contact-bio small {
    font-size: clamp(10px, 2.83vw, 12px);
  }

  .contact-section .contact-form-side {
    padding: 12px;
  }

  .contact-section .contact-form {
    padding: 15px;
  }

  .contact-section .contact-field-pair {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-section .contact-direct-caption {
    grid-template-columns: minmax(0, 1fr) minmax(0, auto) minmax(0, 1fr);
    text-wrap: balance;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-section .contact-submit[aria-busy="true"]::before {
    animation: none;
  }

  .contact-section :is(.contact-control, .button) {
    transition: none;
  }
}
