/**
 * Contacto — ProSoluciones Core
 * Glass cards + iconos. Usa --ps-* del tema cuando existen.
 */

.psc-contact {
  width: 100%;
  font-family: var(--ps-font, inherit);
  color: var(--ps-text, #f4f4f4);
}

.psc-contact__header {
  margin-bottom: 36px;
  max-width: 640px;
}

.psc-contact__eyebrow {
  margin: 0 0 12px;
  color: var(--ps-primary, #7bb7ff);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.psc-contact__title {
  margin: 0 0 12px;
  color: var(--ps-heading, #fff);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.psc-contact__intro {
  margin: 0;
  color: var(--ps-muted, #a3a3a3);
  font-size: 16px;
  line-height: 1.65;
}

.psc-contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 24px 28px;
  align-items: stretch;
}

.psc-contact__info-card,
.psc-contact__form-wrap {
  height: 100%;
  padding: 26px 26px 28px;
  border: 1px solid color-mix(in srgb, var(--ps-heading, #fff) 12%, transparent);
  border-radius: 20px;
  background: color-mix(in srgb, var(--ps-bg-soft, #101114) 55%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  backdrop-filter: blur(18px) saturate(1.25);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--ps-heading, #fff) 8%, transparent),
    0 18px 40px color-mix(in srgb, #000 18%, transparent);
}

.pst-scheme-light .psc-contact__info-card,
.pst-scheme-light .psc-contact__form-wrap {
  background: color-mix(in srgb, #fff 72%, transparent);
  border-color: color-mix(in srgb, #0d0e10 10%, transparent);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 16px 36px rgba(13, 14, 16, 0.06);
}

.psc-contact__info-title {
  margin: 0 0 18px;
  color: var(--ps-heading, #fff);
  font-size: 15px;
  font-weight: 600;
}

.psc-contact__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--ps-border, rgba(255, 255, 255, 0.08));
  color: inherit;
  text-decoration: none !important;
}

.psc-contact__item:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.psc-contact__item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  border: 1px solid color-mix(in srgb, var(--ps-primary, #7bb7ff) 40%, transparent);
  background: color-mix(in srgb, var(--ps-primary, #7bb7ff) 10%, transparent);
  color: var(--ps-primary, #7bb7ff);
}

.psc-contact__item-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.psc-contact__item-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.psc-contact__item-label {
  color: var(--ps-primary, #7bb7ff);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.psc-contact__item-value {
  color: var(--ps-heading, #fff);
  font-size: 14px;
  font-weight: 500;
  word-break: break-word;
}

a.psc-contact__item:hover .psc-contact__item-value {
  color: var(--ps-primary, #7bb7ff);
}

.psc-contact__social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--ps-border, rgba(255, 255, 255, 0.08));
}

.psc-contact__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--ps-border, rgba(255, 255, 255, 0.1));
  background: color-mix(in srgb, var(--ps-heading, #fff) 4%, transparent);
  color: var(--ps-heading, #fff) !important;
  text-decoration: none !important;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.psc-contact__social-link svg {
  width: 17px;
  height: 17px;
  display: block;
}

.psc-contact__social-link:hover {
  border-color: color-mix(in srgb, var(--ps-primary, #7bb7ff) 50%, transparent);
  background: color-mix(in srgb, var(--ps-primary, #7bb7ff) 12%, transparent);
  color: var(--ps-primary, #7bb7ff) !important;
  transform: translateY(-2px);
}

.psc-contact__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.psc-contact__hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.psc-contact__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.psc-contact__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.psc-contact__field span {
  color: var(--ps-muted, #a3a3a3);
  font-size: 13px;
  font-weight: 500;
}

.psc-contact__field input,
.psc-contact__field select,
.psc-contact__field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--ps-border, rgba(255, 255, 255, 0.12));
  border-radius: 12px;
  background: color-mix(in srgb, var(--ps-bg, #090a0b) 55%, transparent);
  color: var(--ps-heading, #fff);
  font: inherit;
  font-size: 14px;
}

.pst-scheme-light .psc-contact__field input,
.pst-scheme-light .psc-contact__field select,
.pst-scheme-light .psc-contact__field textarea {
  background: color-mix(in srgb, #fff 88%, transparent);
}

.psc-contact__field textarea {
  min-height: 120px;
  resize: vertical;
}

.psc-contact__field input:focus,
.psc-contact__field select:focus,
.psc-contact__field textarea:focus {
  outline: none;
  border-color: var(--ps-primary, #7bb7ff);
}

.psc-contact__captcha {
  min-height: 52px;
}

.psc-contact__captcha altcha-widget {
  --altcha-color-base: var(--ps-bg-soft, #101114);
  --altcha-color-border: var(--ps-border, rgba(255, 255, 255, 0.12));
  --altcha-color-text: var(--ps-text, #f4f4f4);
  --altcha-color-border-focus: var(--ps-primary, #7bb7ff);
  --altcha-border-radius: 12px;
  --altcha-max-width: 100%;
  width: 100%;
  max-width: 420px;
}

.psc-contact__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid color-mix(in srgb, var(--ps-primary, #7bb7ff) 70%, transparent);
  border-radius: 13px;
  background: color-mix(in srgb, var(--ps-primary, #7bb7ff) 10%, transparent);
  color: var(--ps-heading, #fff);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.psc-contact__submit:hover,
.psc-contact__submit.is-loading {
  background: color-mix(in srgb, var(--ps-primary, #7bb7ff) 18%, transparent);
  transform: translateY(-1px);
}

.psc-contact__submit:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

.psc-contact__feedback {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.5;
}

.psc-contact__feedback.is-success {
  color: #6dcea0;
}

.psc-contact__feedback.is-error {
  color: #f0a0a0;
}

@media (max-width: 900px) {
  .psc-contact__grid,
  .psc-contact__row {
    grid-template-columns: 1fr;
  }

  .psc-contact__info-card,
  .psc-contact__form-wrap {
    padding: 22px 20px 24px;
    border-radius: 16px;
  }

  .psc-contact__submit {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .psc-contact__social-link,
  .psc-contact__submit {
    transition: none;
  }

  .psc-contact__social-link:hover,
  .psc-contact__submit:hover {
    transform: none;
  }
}
