#contact {
  margin: 24px auto;
}

#contact__section {
  --contact-green: #24a84a;
  --contact-blue: #1677e8;
  --contact-ink: #172033;
  --contact-muted: #5b6879;
  --contact-line: #dfe5ec;

  border: 1px solid var(--contact-line);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(18, 32, 51, 0.08);
  color: var(--contact-ink);
  overflow: hidden;
}

.technology-contact-intro {
  padding: clamp(30px, 5vw, 60px);
  background:
    radial-gradient(circle at 90% 10%, rgba(22, 119, 232, 0.12), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #f3f8ff 100%);
}

.technology-contact-intro h2 {
  max-width: 820px;
  margin: 0 0 15px;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.08;
}

.technology-contact-intro > p:last-child {
  max-width: 850px;
  margin: 0;
  color: var(--contact-muted);
  font-size: 1.06rem;
  line-height: 1.7;
}

.contact-channel-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 0 clamp(24px, 5vw, 60px) clamp(30px, 5vw, 52px);
  background: #f3f8ff;
}

.contact-channel-grid article {
  border: 1px solid var(--contact-line);
  border-radius: 17px;
  background: #ffffff;
  padding: 21px;
  box-shadow: 0 8px 20px rgba(18, 32, 51, 0.05);
}

.contact-channel-grid article > span {
  font-size: 1.7rem;
}

.contact-channel-grid h3 {
  margin: 13px 0 7px;
  font-size: 1.05rem;
}

.contact-channel-grid p {
  margin: 0;
  color: var(--contact-muted);
  line-height: 1.55;
}

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

.technology-contact-panel__heading {
  max-width: 760px;
  margin-bottom: 25px;
}

.technology-contact-panel__heading h3 {
  margin: 0 0 8px;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
}

.technology-contact-panel__heading p {
  margin: 0;
  color: var(--contact-muted);
  line-height: 1.6;
}

#form-agenda {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 19px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-field label {
  font-weight: 750;
}

#contact__section #nombre,
#contact__section #contactPhone,
#contact__section #contactEmail,
#contact__section #hora,
#contact__section #fecha,
#contact__section #motivo {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  max-width: none;
  border: 1px solid #b9c5d4;
  border-radius: 11px;
  background: #ffffff;
  padding: 10px 12px;
  font: inherit;
}

#contact__section #nombre:focus,
#contact__section #contactPhone:focus,
#contact__section #contactEmail:focus,
#contact__section #hora:focus,
#contact__section #fecha:focus,
#contact__section #motivo:focus {
  border-color: var(--contact-blue);
  outline: 3px solid rgba(22, 119, 232, 0.14);
}

.technology-contact-actions {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 5px;
}

#contact__section #agendar,
#contact__section #llamar {
  width: auto;
  min-width: 210px;
  min-height: 50px;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  padding: 12px 18px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

#contact__section #agendar {
  background: var(--contact-green);
}

#contact__section #llamar {
  background: var(--contact-blue);
}

#contact__section #agendar:hover,
#contact__section #llamar:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  font-size: inherit;
}

@media (max-width: 950px) {
  .contact-channel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  #contact {
    margin: 10px auto;
  }

  #contact__section {
    border-radius: 18px;
  }

  .technology-contact-intro,
  .technology-contact-panel {
    padding: 25px 20px;
  }

  .contact-channel-grid {
    grid-template-columns: 1fr;
    padding: 0 20px 28px;
  }

  #form-agenda {
    grid-template-columns: 1fr;
  }

  .technology-contact-actions {
    grid-column: auto;
    flex-direction: column;
  }

  #contact__section #agendar,
  #contact__section #llamar {
    width: 100%;
    min-width: 0;
    min-height: 54px;
  }
}

.contact-channel-grid article a {
  display: inline-flex;
  margin-top: 14px;
  color: var(--contact-blue);
  font-weight: 800;
  text-decoration: none;
}

.contact-channel-grid article a:hover,
.contact-channel-grid article a:focus-visible {
  color: #e60073;
  text-decoration: underline;
}
