/* CSS Document */
.contact-hero {
  position: relative;
  min-height: 860px;
  overflow: hidden;

  display: flex;
  align-items: center;

  background: #f8fafc;
}

.contact-hero-bg {
  position: absolute;
  inset: 0;

  background-image: url("../imagenes/hero-contacto.webp");
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;

  z-index: 0;
}

.contact-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;

  background:
    linear-gradient(
      90deg,
      rgba(255,255,255,.77) 0%,
      rgba(255,255,255,.57) 34%,
      rgba(255,255,255,.33) 58%,
      rgba(255,255,255,.08) 100%
    ),
    linear-gradient(
      0deg,
      rgba(255,255,255,.18),
      rgba(255,255,255,0)
    );
}

.contact-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-left: 57px;
  padding-right: 24px;
}

.contact-hero-content {
  width: min(620px, 100%);
  padding: 57px 0 80px;
}

.contact-hero-heading {
  margin-bottom: 34px;
}

.contact-hero-heading h1 {
  margin: 0;

  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 5.6rem);
  font-weight: 400;
  line-height: .96;
  letter-spacing: -.04em;

  color: #0f172a;
}

.contact-hero-heading > p:not(.kicker) {
  max-width: 520px;
  margin: 22px 0 0;

  font-size: 1.05rem;
  line-height: 1.75;
  color: #475569;
}

.contact-form {
  width: 100%;
}

.contact-form-card {
  width: min(560px, 100%);

  padding: 28px;
  border-radius: 28px;

  background: rgba(255,255,255,.74);
  border: 1px solid rgba(255,255,255,.76);

  box-shadow:
    0 28px 70px rgba(15, 23, 42, 0.14),
    inset 0 1px 0 rgba(255,255,255,.9);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.contact-field {
  position: relative;
}

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

.contact-field input,
.contact-field textarea {
  width: 100%;

  padding: 15px 16px;

  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 16px;

  background: rgba(255,255,255,.82);

  font-family: inherit;
  font-size: .95rem;
  line-height: 1.4;

  color: #0f172a;
  outline: none;

  transition:
    border-color .2s ease,
    box-shadow .2s ease,
    background .2s ease;
}

.contact-field textarea {
  min-height: 112px;
  resize: vertical;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: #64748b;
}

.contact-field input:focus,
.contact-field textarea:focus {
  border-color: rgba(34, 148, 181, 0.75);
  background: rgba(255,255,255,.96);
  box-shadow: 0 0 0 4px rgba(34, 148, 181, 0.12);
}

.contact-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 18px;
}

.contact-actions button {
  appearance: none;
  border: none;
  cursor: pointer;

  padding: 15px 24px;
  border-radius: 999px;

  background: #2294b5;
  color: #ffffff;

  font-size: .86rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;

  box-shadow: 0 16px 34px rgba(34, 148, 181, 0.28);

  transition:
    transform .2s ease,
    box-shadow .2s ease,
    background .2s ease;
}

.contact-actions button:hover {
  transform: translateY(-2px);
  background: #1d86a5;
  box-shadow: 0 20px 44px rgba(34, 148, 181, 0.35);
}

@media (max-width: 900px) {
  .contact-hero {
    min-height: auto;
    align-items: flex-start;
  }

  .contact-hero-bg {
    background-position: 68% center;
  }

  .contact-hero-overlay {
    background:
      linear-gradient(
        180deg,
        rgba(255,255,255,.33) 0%,
        rgba(255,255,255,.52) 42%,
        rgba(255,255,255,.94) 100%
      ),
      linear-gradient(
        90deg,
        rgba(255,255,255,.72) 0%,
        rgba(255,255,255,.18) 100%
      );
  }

  .contact-hero-content {
    width: 100%;
    padding: 130px 0 54px;
  }

  .contact-hero-heading {
    max-width: 520px;
  }

  .contact-form-card {
    width: 100%;
  }
}

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

  .contact-hero-bg {
    background-position: 72% top;
  }

  .contact-hero-content {
    padding: 72px 0 42px;
  }

  .contact-hero-inner {
    padding-left: 18px;
    padding-right: 18px;
  }
    
  .contact-hero-heading {
    margin-bottom: 26px;
  }

  .contact-hero-heading h1 {
    font-size: clamp(3rem, 14vw, 4.2rem);
  }

  .contact-hero-heading > p:not(.kicker) {
    font-size: .98rem;
    line-height: 1.65;
  }

  .contact-form-card {
    padding: 20px;
    border-radius: 22px;

    background: rgba(255,255,255,.82);
  }

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

  .contact-actions button {
    width: 100%;
    justify-content: center;
  }
}


.contact-message {
  width: min(560px, 100%);
  margin: 0 0 24px;

  display: flex;
  gap: 16px;
  align-items: flex-start;

  padding: 22px 24px;
  border-radius: 24px;

  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.76);

  box-shadow:
    0 20px 54px rgba(15, 23, 42, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);

  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.contact-message-success {
  border-color: rgba(34, 148, 181, 0.24);
}

.contact-message-icon {
  flex: 0 0 auto;

  width: 34px;
  height: 34px;
  border-radius: 999px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-top: 2px;

  background: rgba(34, 148, 181, 0.12);
  color: #2294b5;

  font-size: 1rem;
  font-weight: 800;
}

.contact-message-copy {
  min-width: 0;
}

.contact-message-kicker {
  margin: 0 0 8px;

  font-size: 0.68rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;

  color: #2294b5;
}

.contact-message h3 {
  margin: 0;

  font-size: 1.06rem;
  line-height: 1.35;
  font-weight: 700;

  color: #0f172a;
}

.contact-message p:not(.contact-message-kicker) {
  margin: 8px 0 0;

  font-size: 0.95rem;
  line-height: 1.65;

  color: #475569;
}

@media (max-width: 640px) {
  .contact-message {
    width: 100%;
    gap: 14px;

    padding: 20px;
    margin-bottom: 20px;
    border-radius: 22px;

    background: rgba(255, 255, 255, 0.84);
  }

  .contact-message-icon {
    width: 32px;
    height: 32px;
  }

  .contact-message h3 {
    font-size: 1rem;
  }

  .contact-message p:not(.contact-message-kicker) {
    font-size: 0.93rem;
    line-height: 1.6;
  }
}
