/*
 * CONTACTO
 * Estilos exclusivos de contact.html.
 * Debe cargarse después de styles.css.
 */

.contact-page {
  background: #fff;
}

/* Hero */

.contact-hero {
  position: relative;
  isolation: isolate;
  min-height: 570px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 9% 20%, rgb(217 166 24 / 12%), transparent 27%),
    linear-gradient(106deg, #fff9eb 0%, #fffdf8 54%, #eff7eb 100%);
}

.contact-hero::before {
  position: absolute;
  z-index: -1;
  right: -180px;
  bottom: -265px;
  width: 630px;
  height: 630px;
  content: "";
  border: 118px solid rgb(47 141 53 / 7%);
  border-radius: 50%;
}

.contact-hero::after {
  position: absolute;
  z-index: -1;
  top: -230px;
  left: 36%;
  width: 540px;
  height: 540px;
  content: "";
  border: 1px solid rgb(91 37 141 / 7%);
  border-radius: 47% 53% 56% 44%;
  box-shadow:
    0 0 0 38px rgb(91 37 141 / 3%),
    0 0 0 82px rgb(91 37 141 / 2%);
  transform: rotate(16deg);
}

.contact-hero-pattern {
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.32;
  background:
    repeating-radial-gradient(
      ellipse at 25% 38%,
      transparent 0 19px,
      rgb(152 125 72 / 13%) 20px 21px
    );
  mask-image: linear-gradient(90deg, #000, transparent 62%);
  pointer-events: none;
}

.contact-hero-grid {
  display: grid;
  min-height: 570px;
  grid-template-columns: minmax(0, 0.95fr) minmax(390px, 1.05fr);
  align-items: center;
  gap: clamp(46px, 8vw, 105px);
  padding-top: 68px;
  padding-bottom: 68px;
}

.contact-hero-copy {
  max-width: 650px;
}

.contact-hero-copy h1 {
  margin-bottom: 22px;
  color: var(--purple-800);
  font-size: clamp(2.5rem, 4.7vw, 4.65rem);
  letter-spacing: -0.05em;
}

.contact-hero-copy > p {
  max-width: 620px;
  margin-bottom: 31px;
  color: #514a57;
  font-size: 1.06rem;
}

.contact-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.contact-hero-visual {
  position: relative;
  min-height: 400px;
}

.contact-visual-circle {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  border-radius: 50%;
}

.contact-visual-circle-main {
  top: 43px;
  right: 73px;
  width: 245px;
  height: 245px;
  background:
    radial-gradient(circle at 30% 25%, rgb(255 255 255 / 20%), transparent 30%),
    linear-gradient(145deg, var(--purple-700), var(--purple-900));
  box-shadow:
    0 30px 75px rgb(49 18 75 / 28%),
    0 0 0 28px rgb(91 37 141 / 5%),
    0 0 0 63px rgb(91 37 141 / 3%);
}

.contact-visual-circle-main svg {
  width: 96px;
  height: 96px;
  stroke-width: 1.25;
}

.contact-visual-card {
  position: absolute;
  z-index: 2;
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 1px 13px;
  min-width: 235px;
  padding: 17px 20px;
  color: var(--purple-900);
  background: rgb(255 255 255 / 92%);
  border: 1px solid rgb(91 37 141 / 12%);
  border-radius: 13px;
  box-shadow: 0 17px 40px rgb(39 25 48 / 14%);
  backdrop-filter: blur(10px);
}

.contact-visual-card svg {
  width: 32px;
  height: 32px;
  grid-row: span 2;
  color: var(--green-700);
}

.contact-visual-card span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-visual-card strong {
  font-size: 0.92rem;
}

.contact-visual-card-location {
  top: 16px;
  left: 0;
}

.contact-visual-card-community {
  right: 8px;
  bottom: 23px;
}

.contact-visual-line {
  position: absolute;
  z-index: -1;
  display: block;
  width: 295px;
  height: 22px;
  border-radius: 999px;
  transform-origin: center;
}

.contact-visual-line-yellow {
  left: 25px;
  bottom: 106px;
  background: #ddb01e;
  transform: rotate(-52deg);
}

.contact-visual-line-green {
  right: -24px;
  bottom: 109px;
  background: #6da936;
  transform: rotate(56deg);
}

/* Contact cards */

.contact-information {
  padding-top: 78px;
  padding-bottom: 68px;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
}

.contact-card {
  display: grid;
  min-height: 255px;
  grid-template-columns: 58px 1fr;
  align-content: start;
  gap: 20px;
  padding: 30px 27px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.contact-card:hover {
  border-color: rgb(91 37 141 / 19%);
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.contact-card-icon {
  display: flex;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  color: var(--green-700);
  background: var(--green-100);
  border-radius: 15px;
}

.contact-card-icon svg {
  width: 27px;
  height: 27px;
  stroke-width: 1.7;
}

.contact-card h3 {
  margin: 4px 0 16px;
  font-size: 1.07rem;
}

.contact-card address {
  margin-bottom: 21px;
  color: var(--text);
  font-size: 0.9rem;
  font-style: normal;
  line-height: 1.65;
}

.contact-card-value {
  display: block;
  margin-bottom: 23px;
  color: var(--purple-800);
  font-size: 1.03rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.contact-copy-button {
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

/* Main */

.contact-main {
  background:
    radial-gradient(circle at 92% 8%, rgb(47 141 53 / 6%), transparent 24%),
    linear-gradient(180deg, #fafafa, #fff);
}

.contact-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  align-items: stretch;
  gap: 34px;
}

.contact-form-panel,
.contact-map-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 17px;
  box-shadow: var(--shadow-sm);
}

.contact-form-panel {
  padding: clamp(30px, 5vw, 52px);
}

.contact-form-panel h2,
.contact-map-panel h2 {
  margin-bottom: 13px;
}

.contact-form-intro {
  max-width: 680px;
  margin-bottom: 31px;
  color: var(--muted);
}

.contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
}

.form-field-full {
  grid-column: 1 / -1;
}

.form-field label {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 900;
}

.form-field label > span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  color: var(--ink);
  background: #fdfcfd;
  border: 1px solid #ddd8e1;
  border-radius: 9px;
  outline: 0;
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    background var(--transition);
}

.form-field input,
.form-field select {
  min-height: 48px;
  padding: 10px 13px;
}

.form-field textarea {
  min-height: 160px;
  padding: 13px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  background: var(--white);
  border-color: var(--purple-600);
  box-shadow: 0 0 0 4px rgb(91 37 141 / 9%);
}

.form-field input[aria-invalid="true"],
.form-field select[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] {
  border-color: #bb3434;
  box-shadow: 0 0 0 4px rgb(187 52 52 / 8%);
}

.form-error {
  min-height: 18px;
  margin-top: 5px;
  color: #a92f2f;
  font-size: 0.72rem;
  font-weight: 700;
}

.form-consent {
  margin-top: -4px;
}

.form-consent > label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.form-consent input {
  width: 18px;
  height: 18px;
  min-height: auto;
  flex: 0 0 auto;
  margin-top: 2px;
  accent-color: var(--green-700);
}

.contact-form-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 17px;
  margin-top: 8px;
}

.form-status {
  margin: 0;
  color: var(--green-800);
  font-size: 0.8rem;
  font-weight: 800;
}

/* Map */

.contact-map-panel {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
}

.contact-map-header {
  padding: 33px 31px 25px;
}

.contact-map-header p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.91rem;
}

.contact-map {
  min-height: 420px;
  flex: 1;
  background: #e8e8e8;
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  filter: saturate(0.82) contrast(0.96);
}

.contact-map-footer {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 13px;
  padding: 21px 24px;
  color: var(--white);
  background: linear-gradient(120deg, var(--purple-900), var(--purple-700));
}

.contact-map-footer > svg {
  width: 29px;
  height: 29px;
}

.contact-map-footer div {
  display: flex;
  flex-direction: column;
}

.contact-map-footer strong {
  font-size: 0.89rem;
}

.contact-map-footer span {
  color: rgb(255 255 255 / 68%);
  font-size: 0.74rem;
}

.contact-map-footer a {
  display: inline-flex;
  width: 39px;
  height: 39px;
  align-items: center;
  justify-content: center;
  color: var(--white);
  border: 1px solid rgb(255 255 255 / 25%);
  border-radius: 50%;
  transition:
    color var(--transition),
    background var(--transition);
}

.contact-map-footer a:hover {
  color: var(--purple-900);
  background: var(--white);
}

.contact-map-footer a svg {
  width: 18px;
  height: 18px;
}

/* Direct contact */

.contact-direct {
  color: var(--white);
  background:
    radial-gradient(circle at 22% -100%, rgb(255 255 255 / 16%), transparent 55%),
    linear-gradient(90deg, var(--purple-800), var(--purple-700), var(--purple-900));
}

.contact-direct-inner {
  display: flex;
  min-height: 170px;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding-top: 31px;
  padding-bottom: 31px;
}

.contact-direct-inner > div:first-child > span {
  display: block;
  margin-bottom: 5px;
  color: rgb(255 255 255 / 62%);
  font-size: 0.71rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-direct h2 {
  margin-bottom: 7px;
  color: var(--white);
  font-size: clamp(1.55rem, 3vw, 2.25rem);
}

.contact-direct p {
  margin: 0;
  color: rgb(255 255 255 / 76%);
}

.contact-direct-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 13px;
}

/* Responsive */

@media (max-width: 1050px) {
  .contact-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 0.85fr);
    gap: 42px;
  }

  .contact-cards {
    grid-template-columns: 1fr;
  }

  .contact-card {
    min-height: auto;
  }

  .contact-main-grid {
    grid-template-columns: 1fr;
  }

  .contact-map-panel {
    min-height: 620px;
  }
}

@media (max-width: 860px) {
  .contact-hero,
  .contact-hero-grid {
    min-height: auto;
  }

  .contact-hero-grid {
    grid-template-columns: 1fr;
    padding-top: 58px;
    padding-bottom: 65px;
  }

  .contact-hero-copy {
    max-width: 720px;
  }

  .contact-hero-visual {
    min-height: 375px;
  }

  .contact-direct-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-direct-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .contact-hero-grid {
    padding-top: 45px;
    padding-bottom: 54px;
  }

  .contact-hero-copy h1 {
    font-size: clamp(2.35rem, 13vw, 3.35rem);
  }

  .contact-hero-copy > p {
    font-size: 0.98rem;
  }

  .contact-hero-actions,
  .contact-direct-actions {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .contact-hero-actions .button,
  .contact-direct-actions .button {
    width: 100%;
  }

  .contact-hero-visual {
    min-height: 320px;
  }

  .contact-visual-circle-main {
    top: 50px;
    right: 27px;
    width: 195px;
    height: 195px;
  }

  .contact-visual-circle-main svg {
    width: 72px;
    height: 72px;
  }

  .contact-visual-card {
    min-width: 200px;
    padding: 14px 16px;
  }

  .contact-visual-card-location {
    top: 5px;
  }

  .contact-visual-card-community {
    right: 0;
    bottom: 5px;
  }

  .contact-visual-line {
    width: 230px;
    height: 18px;
  }

  .contact-card {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 26px 22px;
  }

  .contact-form-panel {
    padding: 27px 21px;
  }

  .contact-form-grid {
    grid-template-columns: 1fr;
  }

  .form-field-full {
    grid-column: auto;
  }

  .contact-form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .contact-form-footer .button {
    width: 100%;
  }

  .contact-map-panel {
    min-height: 560px;
  }

  .contact-map-header {
    padding: 27px 22px 22px;
  }

  .contact-map,
  .contact-map iframe {
    min-height: 350px;
  }

  .contact-map-footer {
    padding: 18px 19px;
  }
}
