/* OgaData · formulario de contacto en formato postal. */

#contacto.contact-section {
  --postal-ink: #25283a;
  --postal-plum: #5a315b;
  --postal-paper: #fff9f0;
  --postal-cream: #fff4e1;
  --postal-orange: #f57a3e;
  --postal-coral: #e95b4b;
  --postal-yellow: #ffd77a;
  position: relative;
  width: auto;
  max-width: none;
  margin: 0 calc(50% - 50vw);
  padding: 64px max(3vw, calc((100vw - 1180px) / 2));
  border: 0;
  background: #f2e5ce;
  color: var(--postal-ink);
}

#contacto *,
#contacto *::before,
#contacto *::after {
  box-sizing: border-box;
}

#contacto .contact-postcard {
  position: relative;
  isolation: isolate;
  width: min(1080px, 100%);
  min-height: 430px;
  margin: 0 auto;
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(230px, 0.8fr) minmax(390px, 1.2fr);
  gap: clamp(34px, 5vw, 78px);
  overflow: hidden;
  border: 2px solid #382b3a;
  background:
    repeating-linear-gradient(
      135deg,
      var(--postal-coral) 0 9px,
      var(--postal-paper) 9px 18px,
      var(--postal-plum) 18px 27px,
      var(--postal-paper) 27px 36px
    );
  box-shadow: 5px 5px 0 var(--postal-plum), 8px 8px 0 rgb(56 43 58 / 13%);
}

#contacto .contact-postcard::before {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: -1;
  background: var(--postal-paper);
}

#contacto .contact-postcard::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: 42px;
  bottom: 42px;
  left: 36%;
  width: 3px;
  background: var(--postal-orange);
  pointer-events: none;
}

#contacto .contact-copy,
#contacto .contact-form {
  position: relative;
  z-index: 1;
}

#contacto .contact-copy {
  align-self: stretch;
  max-width: none;
  margin: 0;
  padding: 34px 0 138px 26px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

#contacto .intro-pixel-accent {
  display: flex;
  gap: 5px;
  margin: 0 0 16px;
}

#contacto .intro-pixel-accent span {
  width: 9px;
  height: 9px;
  background: var(--postal-orange);
}

#contacto .intro-pixel-accent span:nth-child(2) { background: #a94768; }
#contacto .intro-pixel-accent span:nth-child(3) { background: var(--postal-plum); }
#contacto .intro-pixel-accent span:nth-child(4) { background: var(--postal-yellow); }

#contacto #contact-title {
  max-width: 290px;
  margin: 0;
  color: var(--postal-ink);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.045em;
}

#contacto #contact-title span {
  color: var(--postal-orange);
}

#contacto .contact-copy-rule {
  width: 34px;
  height: 2px;
  margin: 16px 0;
  background: var(--postal-plum);
}

#contacto .contact-copy > p {
  max-width: 290px;
  margin: 0;
  color: #625662;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

#contacto .contact-form {
  align-self: center;
  min-width: 0;
  margin: 0;
  padding: 30px 126px 34px 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#contacto .contact-form-titlebar {
  display: none;
}

#contacto .contact-form-dots {
  display: none;
}

#contacto .contact-form-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  max-width: 390px;
  margin: 0;
  padding: 0;
  background: transparent;
}

#contacto .contact-field,
#contacto .contact-field--full {
  display: grid;
  grid-column: 1;
  gap: 5px;
  min-width: 0;
  margin: 0;
  padding: 0;
}

#contacto .contact-field:first-child {
  width: 62%;
}

#contacto .contact-field label {
  color: var(--postal-plum);
  font-family: "Press Start 2P", monospace;
  font-size: 6px;
  line-height: 1.5;
  text-transform: uppercase;
}

#contacto .field-required { color: #a6353e; }

#contacto .field-optional {
  color: #746874;
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: none;
}

#contacto .contact-field input,
#contacto .contact-field textarea {
  width: 100%;
  margin: 0;
  border: 2px solid rgb(90 49 91 / 58%);
  border-radius: 1px;
  background: #fffdf7;
  color: var(--postal-ink);
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  line-height: 1.45;
}

#contacto .contact-field input {
  min-height: 40px;
  padding: 8px 10px;
}

#contacto .contact-field textarea {
  min-height: 104px;
  padding: 10px;
  resize: vertical;
}

#contacto .contact-field input:focus,
#contacto .contact-field textarea:focus {
  outline: 0;
  border-color: var(--postal-orange);
  box-shadow: 3px 3px 0 rgb(245 122 62 / 34%);
}

#contacto .contact-submit {
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 0 14px;
  border: 2px solid var(--postal-ink);
  border-radius: 2px;
  background: var(--postal-orange);
  color: var(--postal-paper);
  box-shadow: 3px 3px 0 var(--postal-plum);
  font-family: "Press Start 2P", monospace;
  font-size: 7px;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
}

#contacto .contact-submit:hover:not(:disabled) {
  background: #ff8a4d;
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--postal-plum);
}

#contacto .contact-submit:active:not(:disabled) {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--postal-plum);
}

#contacto .contact-submit:disabled {
  cursor: wait;
  opacity: 0.72;
}

#contacto .contact-status {
  grid-column: 1;
  margin: 0;
  color: var(--postal-plum);
  font-family: "Space Grotesk", sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
}

#contacto .contact-status.is-error { color: #af392e; }
#contacto .contact-status[hidden] { display: none; }

#contacto .contact-honeypot,
#contacto .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#contacto .contact-postal-stamp {
  position: absolute;
  z-index: 1;
  top: 34px;
  right: 18px;
  width: 100px;
  height: 132px;
  padding: 0;
  border: 0;
  background:
    url("/assets/images/contacto-sello.png?v=6fdf5ac-20260919125538")
    center / contain no-repeat;
}

#contacto .contact-postal-stamp::before {
  content: none;
}

#contacto .contact-postal-stamp::after {
  content: none;
}

#contacto .contact-postal-stamp span {
  display: none;
}

#contacto .contact-postal-postmark {
  position: absolute;
  z-index: 1;
  top: 62px;
  right: 106px;
  width: 72px;
  height: 42px;
  color: var(--postal-plum);
  transform: none;
}

#contacto .contact-postal-postmark svg {
  display: block;
  width: 100%;
  height: 100%;
}

#contacto .contact-postal-postmark path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#contacto .contact-postal-landscape {
  position: absolute;
  z-index: 1;
  bottom: 22px;
  left: 28px;
  width: min(270px, 30%);
  height: 118px;
  pointer-events: none;
  background:
    url("/assets/images/contacto-ciudad-fondo.png?v=6fdf5ac-20260919125538")
    left bottom / contain no-repeat;
}

@media (max-width: 820px) {
  #contacto.contact-section {
    padding-top: 54px;
    padding-bottom: 54px;
  }

  #contacto .contact-postcard {
    grid-template-columns: 1fr;
    gap: 0;
  }

  #contacto .contact-postcard::after { display: none; }

  #contacto .contact-copy {
    max-width: 680px;
    padding: 28px 150px 30px 26px;
  }

  #contacto .contact-form {
    padding: 20px 150px 36px 26px;
  }

  #contacto .contact-field:first-child { width: 62%; }

  #contacto .contact-postal-landscape { display: none; }
}

@media (max-width: 600px) {
  #contacto.contact-section {
    padding: 34px 3vw 42px;
  }

  #contacto .contact-postcard {
    min-height: 0;
    padding: 14px;
    box-shadow: 4px 4px 0 var(--postal-plum);
  }

  #contacto .contact-postcard::before { inset: 9px; }

  #contacto .contact-copy {
    padding: 24px 116px 20px 18px;
  }

  #contacto #contact-title {
    font-size: clamp(31px, 10vw, 42px);
  }

  #contacto .contact-copy > p { font-size: 15px; }

  #contacto .contact-form {
    padding: 20px 18px 24px;
  }

  #contacto .contact-form-fields {
    max-width: none;
    padding: 0;
  }

  #contacto .contact-postal-stamp {
    top: 18px;
    right: 14px;
    width: 72px;
    height: 96px;
  }

  #contacto .contact-postal-stamp span { font-size: 4px; }

  #contacto .contact-postal-postmark {
    top: 43px;
    right: 79px;
    width: 52px;
    height: 31px;
  }
}
