/* ============================================================
   Proconstructores - Modal de captación de leads por WhatsApp
   Sin dependencias externas. Color de marca: #022993
   ============================================================ */

#pro-lead-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 12, 40, 0.55);
  backdrop-filter: blur(2px);
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity .2s ease;
}
#pro-lead-overlay.pro-open {
  display: flex;
  opacity: 1;
}

#pro-lead-modal {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
  font-family: inherit;
  overflow: hidden;
  transform: translateY(12px) scale(.98);
  transition: transform .2s ease;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
}
#pro-lead-overlay.pro-open #pro-lead-modal {
  transform: translateY(0) scale(1);
}

.pro-lead-header {
  background: #022993;
  color: #fff;
  padding: 18px 22px;
  position: relative;
}
.pro-lead-header h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.25;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 9px;
}
.pro-lead-header .pro-wa-ico {
  display: inline-flex;
  width: 26px;
  height: 26px;
  background: #25D366;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 15px;
  flex: 0 0 auto;
}
.pro-lead-header p {
  margin: 6px 0 0;
  font-size: 13px;
  opacity: .9;
  color: #dfe6ff;
}
#pro-lead-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  opacity: .85;
  padding: 2px 6px;
}
#pro-lead-close:hover { opacity: 1; }

.pro-lead-body {
  padding: 20px 22px 8px;
  overflow-y: auto;
}

.pro-field { margin-bottom: 14px; }
.pro-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #23304d;
  margin-bottom: 6px;
}
.pro-field label .pro-req { color: #c0392b; }

.pro-field input,
.pro-field select,
.pro-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d5dced;
  border-radius: 8px;
  font-size: 15px;
  color: #23304d;
  background: #fff;
  box-sizing: border-box;
  font-family: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.pro-field input:focus,
.pro-field select:focus,
.pro-field textarea:focus {
  outline: none;
  border-color: #022993;
  box-shadow: 0 0 0 3px rgba(2, 41, 147, .12);
}
.pro-field textarea { resize: vertical; min-height: 68px; }

/* honeypot - oculto para humanos */
.pro-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.pro-lead-error {
  color: #c0392b;
  font-size: 13px;
  margin: 0 0 12px;
  display: none;
}

.pro-lead-footer {
  padding: 4px 22px 20px;
}
#pro-lead-submit {
  width: 100%;
  background: #25D366;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background .15s ease;
}
#pro-lead-submit:hover { background: #1ebe5d; }
#pro-lead-submit:disabled { opacity: .7; cursor: default; }
#pro-lead-submit .pro-spin {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.5);
  border-top-color: #fff;
  border-radius: 50%;
  animation: pro-spin .6s linear infinite;
  display: none;
}
#pro-lead-submit.pro-loading .pro-spin { display: inline-block; }
@keyframes pro-spin { to { transform: rotate(360deg); } }

.pro-lead-note {
  font-size: 12px;
  color: #7a869a;
  text-align: center;
  margin: 12px 0 0;
  line-height: 1.4;
}

@media (max-width: 480px) {
  #pro-lead-modal { max-width: 100%; }
  .pro-lead-header h3 { font-size: 17px; }
}
