/* Contact layout is scoped so the shared feature cards keep their own rhythm. */
#contacto {
  --contact-green-gradient: linear-gradient(105deg, #00df78 0%, #29eaa4 52%, #17ccbf 80%, #5ba3ff 100%);
}
#contacto .demo-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 28px;
}
#contacto .demo-layout > * { min-width: 0; }
#contacto .demo-form-card {
  width: 100%;
  padding: 32px;
  border: 1px solid var(--opening-border);
  border-radius: 32px;
  background: #fff;
  box-shadow: 0 16px 42px #6278ab0d;
}
#contacto .demo-form-card > h3 {
  color: var(--ink);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.6px;
}
#contacto #demo-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}
#contacto .form-row { min-width: 0; }
#contacto label { font-size: 12px; line-height: 1.5; }
#contacto input, #contacto select, #contacto textarea {
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #d6e1f3;
  border-radius: 12px;
  background: #fcfdff;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.4;
}
#contacto textarea { min-height: 104px; }
#contacto input:focus, #contacto select:focus, #contacto textarea:focus { border-color: #8170ee; }
#contacto .select-field { position: relative; width: 100%; min-width: 0; }
#contacto .select-field select {
  display: block;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  padding-inline-end: 44px;
  cursor: pointer;
}
#contacto .select-chevron {
  position: absolute;
  top: 50%;
  inset-inline-end: 14px;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  fill: none;
  stroke: #61718f;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
#contacto .form-privacy { color: #5b6b8f; font-size: 12px; line-height: 1.65; }
#contacto .demo-commercial-note {
  margin-top: 16px;
  color: #5b6b8f;
  font-size: 12px;
  line-height: 1.65;
}
#contacto .demo-commercial-note a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}
#contacto #demo-form > button {
  width: 100%;
  min-height: 54px;
  margin-top: 2px;
  border-radius: 100px;
  font-size: 16px;
}
#contacto #demo-status { overflow-wrap: anywhere; }
#contacto .demo-offer {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 100%;
  padding: 32px;
  border: 1px solid var(--opening-border);
  border-radius: 32px;
  background: var(--opening-surface);
  overflow-wrap: anywhere;
}
#contacto .demo-offer > .eyebrow { color: #4968ee; margin-top: 0; }
#contacto .demo-offer h2 {
  font-size: clamp(34px, 3.4vw, 46px);
  line-height: 1.2;
  font-weight: 740;
  letter-spacing: -1.6px;
  text-wrap: balance;
}
#contacto .demo-offer-highlight {
  display: block;
  padding: 0;
  background: none;
  color: inherit;
}
#contacto .demo-offer-highlight::after {
  content: "";
  display: block;
  width: 100%;
  aspect-ratio: 160 / 17;
  margin-top: -.03em;
  background: url("/static/tiempify/ai-comet-swoosh-compact.svg?v=1") center / contain no-repeat;
  pointer-events: none;
}
#contacto .demo-offer-highlight > span {
  background: var(--gradient);
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
}
#contacto .demo-offer > p:not(.eyebrow) {
  margin-top: 16px;
  color: #5b6b8f;
  font-size: 18px;
  line-height: 1.7;
}
#contacto .contact-options {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 32px;
  margin-top: 32px;
  padding: 28px 32px;
  border: 1px solid var(--opening-border);
  border-radius: 28px;
  background: #fff;
}
#contacto .contact-options > header, #contacto .contact-options > h3 { grid-column: 1; min-width: 0; }
#contacto .contact-options h3 { font-size: 23px; line-height: 1.35; font-weight: 700; letter-spacing: -.5px; }
#contacto .contact-options .contact-direct {
  grid-column: 1;
  min-width: 0;
  /* The earlier landing paragraph uses !important; keep this override local. */
  margin-top: 0 !important;
  font-size: 15px !important;
  color: #5b6b8f;
  line-height: 1.65;
}
#contacto .contact-direct a { line-height: inherit; overflow-wrap: anywhere; }
#contacto .contact-actions {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
#contacto .contact-actions .contact-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 100%;
  min-height: 50px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.4;
  text-align: center;
  box-shadow: 0 8px 22px #6076ad12;
  transition: transform .2s, box-shadow .2s;
}
#contacto .contact-actions .contact-action > span { min-width: 0; font-size: inherit; font-weight: inherit; }
#contacto .contact-actions .contact-action:not(:disabled):hover { transform: translateY(-2px); box-shadow: 0 11px 25px #6076ad24; }
#contacto .contact-whatsapp { color: var(--ink); background: var(--contact-green-gradient); }
#contacto .contact-email { color: #fff; background: var(--gradient); }
#contacto .contact-icon { display: block; flex: 0 0 20px; width: 20px; height: 20px; }
#contacto .contact-service-info {
  grid-column: 1 / -1;
  min-width: 0;
  margin-top: 18px;
  padding-top: 20px;
  border-top: 1px solid #e1e8f5;
}
#contacto .contact-service-info h4 { margin: 0 0 8px; color: var(--ink); font-size: 16px; line-height: 1.5; font-weight: 700; }
#contacto .contact-service-info p { max-width: 900px; margin: 0 0 12px; color: #5b6b8f; font-size: 14px; line-height: 1.7; }
#contacto .contact-service-info nav { display: flex; flex-wrap: wrap; gap: 10px 24px; }
#contacto .contact-service-info nav a { color: #2862d9; font-size: 13px; line-height: 1.6; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1100px) {
  #contacto .demo-layout { gap: 24px; }
  #contacto .demo-form-card, #contacto .demo-offer { padding: 28px; }
  #contacto .demo-offer h2 { font-size: 38px; }
  #contacto .demo-offer > p:not(.eyebrow) { font-size: 17px; }
  #contacto .contact-options { padding: 26px 28px; gap: 8px 24px; }
  #contacto .contact-actions .contact-action { padding-inline: 18px; }
}
@media (max-width: 960px) {
  #contacto .demo-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  #contacto .demo-offer h2 { font-size: clamp(34px, 5vw, 44px); }
  #contacto .contact-options { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  #contacto .contact-actions { grid-column: 1; grid-row: auto; justify-content: flex-start; margin-top: 8px; }
}
@media (max-width: 600px) {
  #contacto .demo-form-card, #contacto .demo-offer { padding: 26px 20px; border-radius: 26px; }
  #contacto .demo-form-card > h3 { font-size: 23px; }
  #contacto #demo-form { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  #contacto input, #contacto select, #contacto textarea { font-size: 16px; }
  #contacto .demo-offer h2 { font-size: 34px; letter-spacing: -1.3px; }
  #contacto .demo-offer > p:not(.eyebrow) { font-size: 17px; line-height: 1.65; }
  #contacto .contact-options { margin-top: 28px; padding: 24px 20px; border-radius: 26px; }
  #contacto .contact-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
  #contacto .contact-actions .contact-action { width: 100%; padding-inline: 16px; font-size: 15px; }
}
