/* Estilos de contacto. */

.contact-card {
  min-width: 0;
  overflow-wrap: anywhere;
}

.contact-hero {
  position: relative;
  padding: clamp(52px, 6vw, 88px) 0 clamp(40px, 5vw, 64px);
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 28%, rgba(31, 95, 208, 0.14), transparent 34%),
    linear-gradient(180deg, #ffffff, #f7f9fc);
  border-bottom: 1px solid #e9ecf1;
}

.contact-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(#eef1f6 1px, transparent 1px),
    linear-gradient(90deg, #eef1f6 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(circle at 76% 38%, #000, transparent 62%);
  mask-image: radial-gradient(circle at 76% 38%, #000, transparent 62%);
  pointer-events: none;
}

.contact-hero-inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 44px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.72fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.contact-title {
  margin: 0;
  max-width: 17ch;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 700;
}

.contact-hero-art {
  display: flex;
  justify-content: center;
}

.contact-orbit {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 1.28;
}

.orbit-ring {
  position: absolute;
  inset: 9%;
  border: 1px dashed rgba(31, 95, 208, 0.24);
  border-radius: 50%;
  animation: contactOrbit 18s linear infinite;
}

.orbit-ring-two {
  inset: 22%;
  border-color: rgba(14, 165, 168, 0.24);
  animation-duration: 13s;
  animation-direction: reverse;
}

.orbit-node {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border: 1px solid #dfe6f5;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: #1f5fd0;
  box-shadow: 0 20px 42px -30px rgba(18, 22, 27, 0.55);
  animation: contactFloat 5.5s ease-in-out infinite;
}

.orbit-node svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.orbit-node-whatsapp {
  left: 4%;
  top: 38%;
}

.orbit-node-mail {
  right: 8%;
  top: 16%;
  color: #0ea5a8;
  animation-delay: -1.4s;
}

.orbit-node-demo {
  right: 16%;
  bottom: 9%;
  color: #12161b;
  animation-delay: -2.8s;
}

.contact-message-card {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: min(76%, 270px);
  transform: translate(-50%, -50%);
  border: 1px solid #dfe6f5;
  border-radius: 12px;
  background: #fff;
  padding: 20px;
  box-shadow: 0 28px 60px -44px rgba(18, 22, 27, 0.62);
  animation: contactPulse 4.6s ease-in-out infinite;
}

.contact-message-card span,
.contact-message-card small {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9aa3b0;
}

.contact-message-card strong {
  display: block;
  margin: 8px 0;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.contact-section {
  padding: clamp(48px, 6vw, 88px) 0;
  background: #fff;
}

.contact-layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 44px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(330px, 100%), 1fr));
  gap: clamp(28px, 4vw, 60px);
  align-items: start;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid #e4e8ee;
  border-radius: 12px;
  padding: 22px;
  color: #12161b;
  transition:
    border-color 0.25s ease,
    transform 0.25s ease;
}

.contact-label {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9aa3b0;
  margin-bottom: 7px;
}

.contact-value {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.contact-arrow {
  font-family: "JetBrains Mono", monospace;
  color: #1f5fd0;
}

.contact-form-card {
  border: 1px solid #e4e8ee;
  border-radius: 14px;
  padding: clamp(24px, 3vw, 36px);
  background: #fff;
  box-shadow: 0 30px 60px -50px rgba(18, 22, 27, 0.5);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field-label {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a94a2;
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #dfe4ec;
  border-radius: 6px;
  background: #fff;
  color: #12161b;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: 14px;
}

.form-select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #dfe4ec;
  border-radius: 6px;
  background: #fff;
  color: #12161b;
  outline: none;
}

.form-textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #dfe4ec;
  border-radius: 6px;
  background: #fff;
  color: #12161b;
  outline: none;
  resize: vertical;
  transition: border-color 0.2s ease;
}

.form-submit {
  margin-top: 4px;
  background: #1f5fd0;
  color: #fff;
  border: none;
  padding: 15px 22px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s ease;
}

.form-note {
  margin: 0;
  font-size: 12.5px;
  color: #a3abb7;
}

.contact-feedback {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
}

.feedback-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #1f5fd0;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.feedback-title {
  margin: 0;
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.feedback-description {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: #525c69;
  max-width: 40ch;
}

.whatsapp-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #12161b;
  color: #fff;
  padding: 13px 22px;
  border-radius: 4px;
  font-size: 14.5px;
  font-weight: 600;
}

.author-section {
  padding: clamp(52px, 6vw, 92px) 0;
  background: #f7f9fc;
  border-top: 1px solid #e9ecf1;
}

.author-eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9aa3b0;
  margin-bottom: 30px;
}

.author-layout {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.author-logo-frame {
  flex: 0 0 200px;
  aspect-ratio: 1;
  border: 1px solid #e4e8ee;
  border-radius: 14px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px;
}

.image-contain {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.author-content {
  flex: 1 1 420px;
  min-width: 0;
}

.author-title {
  margin: 0;
  font-size: clamp(24px, 2.9vw, 36px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
  max-width: 20ch;
}

.author-description {
  margin: 20px 0 0;
  font-size: 16.5px;
  line-height: 1.62;
  color: #525c69;
  max-width: 60ch;
}

.author-followup {
  margin: 16px 0 0;
  font-size: 16.5px;
  line-height: 1.62;
  color: #525c69;
  max-width: 60ch;
}

.author-links {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 10px;
}

.author-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  border: 1px solid #dfe4ec;
  border-radius: 8px;
  padding: 13px 14px;
  background: #fff;
  color: #12161b;
  transition:
    border-color 0.25s ease,
    transform 0.25s ease,
    color 0.25s ease;
}

.author-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #edf4ff;
  color: #1f5fd0;
  flex: none;
}

.author-link-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.author-link-label,
.author-link-value {
  display: block;
}

.author-link-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9aa3b0;
  margin-bottom: 4px;
}

.author-link-value {
  font-size: 14.5px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.contact-card:hover {
  border-color: #1f5fd0;
  transform: translateX(4px);
  color: #12161b;
}

.author-link:hover {
  border-color: #1f5fd0;
  color: #12161b;
  transform: translateY(-2px);
}

.form-input:focus {
  border-color: #1f5fd0;
}

.form-textarea:focus {
  border-color: #1f5fd0;
}

.form-submit:hover {
  background: #12161b;
}

.whatsapp-button:hover {
  background: #1f5fd0;
  color: #fff;
}

@keyframes contactOrbit {
  to {
    transform: rotate(360deg);
  }
}

@keyframes contactFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes contactPulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.025);
  }
}

@media (max-width: 760px) {
  .contact-hero-inner {
    grid-template-columns: 1fr;
  }

  .contact-hero-art {
    min-height: 260px;
  }

  .contact-orbit {
    width: min(100%, 340px);
  }
}
