/* =========================
   MÓDULO 7: CONTACTO
========================= */

.contact-section {
  position: relative;
  width: 100%;
  padding: 110px 0 120px;
  background:
    radial-gradient(circle at top right, rgba(28, 118, 210, 0.10), transparent 34%),
    linear-gradient(180deg, #f7faff 0%, #ffffff 100%);
  overflow: hidden;
}

.contact-section::before {
  content: "";
  position: absolute;
  left: -140px;
  top: 120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(28, 118, 210, 0.10), transparent 66%);
  pointer-events: none;
}

.contact-section::after {
  content: "";
  position: absolute;
  right: -160px;
  bottom: 80px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 174, 239, 0.09), transparent 66%);
  pointer-events: none;
}

.contact-container {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 44px;
  align-items: center;
}

.contact-content h2 {
  margin: 0;
  color: #12233f;
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.1; 
  font-weight: 800;
  letter-spacing: -0.04em;
}

.contact-content > p {
  max-width: 560px;
  margin: 20px 0 0;
  color: #617089;
  font-size: 1.02rem;
  line-height: 1.75;
  overflow-wrap: break-word;
}

.contact-highlights {
  display: grid;
  gap: 16px;
  margin-top: 34px;
}

.contact-highlight {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(22, 57, 101, 0.10);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 16px 42px rgba(28, 58, 102, 0.08);
  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.contact-highlight > div:last-child {
  min-width: 0;
}

@media (hover: hover) and (pointer: fine) {
  .contact-highlight:hover {
    transform: translateY(-5px);
    border-color: rgba(28, 118, 210, 0.26);
    box-shadow: 0 22px 54px rgba(28, 58, 102, 0.13);
  }
}

.contact-icon {
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  background:
    radial-gradient(circle at top, rgba(28, 118, 210, 0.18), transparent 62%),
    #edf5ff;
  font-size: 1.25rem;
  box-shadow: inset 0 0 0 1px rgba(28, 92, 168, 0.10);
}

.contact-highlight h3 {
  margin: 0 0 6px;
  color: #10213b;
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 800;
}

.contact-highlight p {
  margin: 0;
  color: #60708a;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Card formulario */
.contact-card {
  position: relative;
  padding: 34px;
  border-radius: 34px;
  border: 1px solid rgba(22, 57, 101, 0.10);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 70px rgba(28, 58, 102, 0.12);
  overflow: hidden;
}

.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(28, 118, 210, 0.10), transparent 42%),
    linear-gradient(315deg, rgba(0, 174, 239, 0.07), transparent 42%);
  pointer-events: none;
}

.contact-card-header,
.contact-form,
.contact-note {
  position: relative;
  z-index: 2;
}

.contact-card-header {
  margin-bottom: 26px;
}

.contact-card-header span {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #1b65b2;
  background: rgba(28, 118, 210, 0.08);
  font-size: 0.78rem;
  font-weight: 800;
}

.contact-card-header h3 {
  margin: 0;
  color: #10213b;
  font-size: 1.65rem;
  line-height: 1.14;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.contact-form {
  display: grid;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.form-group {
  display: grid;
  gap: 8px;
}

.form-group label {
  color: #263b5c;
  font-size: 0.86rem;
  font-weight: 800;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1px solid rgba(28, 92, 168, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  color: #10213b;
  font-family: inherit;
  font-size: 0.94rem;
  outline: none;
  padding: 14px 15px;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #91a0b6;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(28, 118, 210, 0.45);
  box-shadow: 0 0 0 4px rgba(28, 118, 210, 0.10);
  background: #ffffff;
}

.contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: fit-content;
  border: none;
  border-radius: 999px;
  padding: 15px 24px;
  color: #ffffff;
  background: linear-gradient(135deg, #1c76d2 0%, #1b5fb7 100%);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(28, 118, 210, 0.24);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.contact-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(28, 118, 210, 0.30);
}

.contact-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 22px;
  padding: 16px;
  border-radius: 18px;
  color: #60708a;
  background: rgba(237, 245, 255, 0.74);
  border: 1px solid rgba(28, 92, 168, 0.10);
  font-size: 0.88rem;
  line-height: 1.45;
  font-weight: 700;
}

.contact-note span {
  color: #1c76d2;
}

.contact-content,
.contact-card {
  min-width: 0;
}

.contact-highlight h3,
.contact-highlight p {
  overflow-wrap: break-word;
}

/* =========================
   RESPONSIVE: CONTACTO
========================= */

@media (max-width: 980px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 46px;
    align-items: stretch;
  }

  .contact-content {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
  }

  .contact-content > p {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
  }

  .contact-highlights {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .contact-highlight {
    flex-direction: column;
    text-align: left;
  }
}

@media (max-width: 768px) {
  .contact-section {
    padding: 82px 0 88px;
  }

  .contact-container {
    width: min(100% - 30px, 1180px);
  }

  .contact-content h2 {
    font-size: clamp(1.85rem, 7vw, 2.4rem);
    line-height: 1.12;
  }

  .contact-content > p {
    margin-top: 16px;
    font-size: 0.96rem;
    line-height: 1.65;
  }

  .contact-highlights {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 28px;
  }

  .contact-highlight {
    flex-direction: row;
    padding: 18px;
    border-radius: 20px;
  }
}

@media (max-width: 480px) {
  .contact-section {
    padding: 68px 0 74px;
  }

  .contact-container {
    width: min(100% - 24px, 1180px);
  }

  .contact-content h2 {
    font-size: clamp(1.7rem, 8.5vw, 2rem);
    line-height: 1.14;
  }

  .contact-content > p {
    font-size: 0.92rem;
    line-height: 1.6;
  }

  .contact-highlight {
    gap: 13px;
    padding: 17px 15px;
  }

  .contact-icon {
    flex-basis: 46px;
    width: 46px;
    height: 46px;
    border-radius: 15px;
  }

  .contact-highlight h3 {
    font-size: 0.96rem;
  }

  .contact-highlight p {
    font-size: 0.86rem;
  }
}

/* =========================
   ESTADO DEL FORMULARIO
========================= */

.contact-honeypot {
  position: absolute !important;
  left: -9999px !important;

  width: 1px !important;
  height: 1px !important;

  overflow: hidden !important;

  opacity: 0 !important;
  pointer-events: none !important;
}

.contact-form-status {
  display: none;

  width: 100%;

  padding: 14px 16px;

  border: 1px solid transparent;
  border-radius: 16px;

  font-size: 0.9rem;
  line-height: 1.5;
  font-weight: 700;
}

.contact-form-status.is-success,
.contact-form-status.is-error {
  display: block;
}

.contact-form-status.is-success {
  color: #17633a;
  background: #edf9f2;
  border-color: rgba(30, 145, 84, 0.22);
}

.contact-form-status.is-error {
  color: #9d2929;
  background: #fff1f1;
  border-color: rgba(205, 53, 53, 0.22);
}

.contact-submit:disabled {
  cursor: not-allowed;

  opacity: 0.72;
  transform: none;
}

.contact-submit.is-loading {
  pointer-events: none;
}

.contact-submit.is-loading .contact-submit-arrow {
  animation: contact-loading-pulse 0.8s ease-in-out infinite alternate;
}

.form-group input:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown),
.form-group select:invalid {
  border-color: rgba(205, 53, 53, 0.38);
}

@keyframes contact-loading-pulse {
  from {
    opacity: 0.35;
  }

  to {
    opacity: 1;
  }
}

@media (max-width: 480px) {
  .contact-submit {
    width: 100%;
  }

  .contact-form-status {
    font-size: 0.86rem;
  }
}