/* ============================================================
   PROPH S.A.S — contacto.css  (sección 4, fondo oscuro + footer)
   ============================================================ */

.contacto {
  position: relative;
  color: var(--color-text-light);
  background: var(--color-dark-bg) url("../assets/img/desktop/contacto-bg.webp") center / cover no-repeat;
  padding: var(--section-pad) 0 0;
  isolation: isolate;
}
.contacto__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  /* Mismo azul del hero sobre la foto */
  background: linear-gradient(100deg, rgba(10, 42, 84, 0.90) 0%, rgba(18, 66, 120, 0.68) 55%, rgba(26, 84, 146, 0.50) 100%);
}

.contacto__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.contacto__intro .section-eyebrow { color: var(--color-accent-light); margin-bottom: 1.5rem; }

.contacto__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.08;
  margin-bottom: 1.5rem;
}
.contacto__title em { font-style: normal; color: var(--color-accent-light); }

.contacto__text {
  color: rgba(245, 246, 242, 0.82);
  max-width: 32rem;
  margin-bottom: 2rem;
}

.contacto__pills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  margin-bottom: 2.5rem;
}
.contacto__pills li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: rgba(245, 246, 242, 0.9);
}
.contacto__pills svg { width: 24px; height: 24px; stroke: var(--color-accent-light); flex-shrink: 0; }

.contacto__direct {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.contacto__direct-item { display: flex; align-items: flex-start; gap: 0.85rem; transition: color 0.2s var(--ease); }
.contacto__direct-item:hover { color: var(--color-accent-light); }
.contacto__direct-item svg { width: 22px; height: 22px; stroke: var(--color-accent-light); flex-shrink: 0; margin-top: 2px; }
.contacto__direct-item span { font-size: 0.9rem; color: rgba(245, 246, 242, 0.7); }
.contacto__direct-item strong { display: block; color: var(--color-text-light); font-weight: 500; }

/* ---------- Tarjeta formulario ---------- */
.contacto__card {
  /* Tarjeta de vidrio azul, igual a la del login */
  background: rgba(12, 44, 88, 0.44);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.6);
}
.contacto__card .section-eyebrow { color: var(--color-accent-light); margin-bottom: 1rem; }
.contacto__card-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 0.75rem;
}
.contacto__card-sub { font-size: 0.9rem; color: rgba(245, 246, 242, 0.7); margin-bottom: 1.75rem; }

.contacto__form { display: flex; flex-direction: column; gap: 0.9rem; }
.contacto__field {
  position: relative;
  display: flex;
  align-items: center;
}
.contacto__field svg {
  position: absolute;
  left: 0.9rem;
  width: 18px; height: 18px;
  stroke: rgba(245, 246, 242, 0.45);
  pointer-events: none;
}
.contacto__field input,
.contacto__field select {
  width: 100%;
  padding: 0.9rem 1rem 0.9rem 2.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 2px;
  color: var(--color-text-light);
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.contacto__field input::placeholder { color: rgba(245, 246, 242, 0.45); }
.contacto__field input:focus,
.contacto__field select:focus {
  outline: none;
  border-color: var(--color-accent-light);
  background: rgba(255, 255, 255, 0.07);
}
.contacto__field select { appearance: none; color: rgba(245, 246, 242, 0.9); }
.contacto__field--select svg { left: auto; right: 0.9rem; }
.contacto__field--select select { padding-left: 1rem; padding-right: 2.75rem; }
.contacto__field select option { color: #16283b; }
.contacto__field input.is-error,
.contacto__field select.is-error { border-color: #e2857f; }

.contacto__form-error { color: #f0a9a3; font-size: 0.82rem; }

.contacto__submit { width: 100%; justify-content: center; margin-top: 0.4rem; }

.contacto__form-note {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  color: rgba(245, 246, 242, 0.55);
}
.contacto__form-note svg { stroke: currentColor; }

.contacto__form--sent {
  text-align: center;
  padding: 2.5rem 1rem;
}
.contacto__form--sent svg { width: 48px; height: 48px; stroke: var(--color-accent-light); margin: 0 auto 1rem; }
.contacto__form--sent p { font-family: var(--font-serif); font-size: 1.4rem; }
.contacto__form--sent span { display: block; font-family: var(--font-sans); font-size: 0.9rem; color: rgba(245,246,242,0.65); margin-top: 0.5rem; }

/* ---------- Footer ---------- */
.site-footer {
  max-width: var(--max-width);
  margin: clamp(3rem, 6vw, 5rem) auto 0;
  padding: 2rem clamp(1.25rem, 5vw, 3rem) 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2rem;
}
.site-footer__copy { font-size: 0.8rem; color: rgba(245, 246, 242, 0.6); }
.site-footer__social { display: flex; gap: 0.75rem; margin-left: auto; }
.site-footer__social a {
  width: 38px; height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.site-footer__social a:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--color-accent-light); }
.site-footer__social svg { width: 17px; height: 17px; color: rgba(245, 246, 242, 0.8); }
.site-footer__credit {
  flex-basis: 100%;
  text-align: right;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}
.site-footer__credit a { color: inherit; transition: color 0.2s var(--ease); }
.site-footer__credit a:hover { color: var(--color-accent-light); }

@media (max-width: 767px) {
  .contacto { background-image: url("../assets/img/mobile/contacto-bg-mobile.webp"); }
  .contacto__inner { grid-template-columns: 1fr; }
  .contacto__intro { order: 2; }
  .contacto__card { order: 1; }
  .site-footer { flex-direction: column; align-items: flex-start; }
  .site-footer__social { margin-left: 0; }
  .site-footer__credit { text-align: left; }
}
.contacto__direct-item strong a { color: inherit; transition: color 0.2s var(--ease); }
.contacto__direct-item strong a:hover { color: var(--color-accent-light); }
