/* ============================================================
   Paisajismo Barrios Cerrados — WhatsApp Lead Gate (estilos)
   Reutiliza las variables de :root definidas en styles.css.
   ============================================================ */

.lg-overlay {
  position: fixed; inset: 0; z-index: 400; /* por encima de menú (200) y lightbox (120) */
  background: rgba(15, 43, 29, .62);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  display: none; align-items: center; justify-content: center;
  padding: 16px;
}
.lg-overlay.is-open { display: flex; }

.lg-modal {
  background: #fff; border-radius: 16px;
  width: 100%; max-width: 460px; max-height: 92vh; overflow-y: auto;
  padding: clamp(22px, 4vw, 30px);
  box-shadow: 0 30px 70px rgba(15, 43, 29, .35);
  font-family: 'Manrope', system-ui, sans-serif;
}
.lg-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.lg-head h3 {
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: clamp(18px, 2.4vw, 21px); font-weight: 800; letter-spacing: -.01em;
  color: var(--verde, #173D2A); margin: 0; line-height: 1.2;
}
.lg-close {
  flex-shrink: 0; background: none; border: none; cursor: pointer;
  font-size: 26px; line-height: 1; color: var(--texto-2, #5B6158); padding: 0 4px;
}
.lg-close:hover { color: var(--verde, #173D2A); }
.lg-sub { font-size: 13.5px; line-height: 1.5; color: var(--texto-2, #5B6158); margin: 0 0 18px; }

#lead-gate-form { display: flex; flex-direction: column; gap: 12px; }
.lg-field { display: flex; }
.lg-field input,
.lg-field select,
.lg-field textarea {
  width: 100%; padding: 13px 15px;
  border: 1px solid var(--borde-input, #D8CFBF); border-radius: 9px;
  font-family: 'Manrope', system-ui, sans-serif; font-size: 15.5px;
  color: var(--texto, #1F2A24); background: #FAF9F5;
  outline-color: var(--verde, #173D2A);
}
.lg-field textarea { resize: vertical; min-height: 46px; line-height: 1.5; }
.lg-field input::placeholder,
.lg-field textarea::placeholder { color: #8C877C; }

/* Honeypot: fuera de pantalla, invisible para humanos */
.lg-hp {
  position: absolute !important;
  left: -9999px !important; top: auto; width: 1px; height: 1px;
  overflow: hidden; opacity: 0; pointer-events: none;
}

.lg-consent { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 2px; cursor: pointer; }
.lg-consent input[type="checkbox"] {
  width: 20px; height: 20px; margin-top: 1px; flex-shrink: 0;
  accent-color: var(--verde, #173D2A); cursor: pointer;
}
.lg-consent span { font-size: 12px; line-height: 1.5; color: var(--texto-2, #5B6158); }
.lg-consent a { color: var(--verde, #173D2A); font-weight: 700; }

.lg-error { font-size: 13px; font-weight: 600; color: #B23B2E; margin: 0; min-height: 0; }
.lg-error:empty { display: none; }

.lg-submit {
  background: var(--verde, #173D2A); color: #fff; border: none; cursor: pointer;
  font-family: 'Manrope', system-ui, sans-serif; font-size: 15.5px; font-weight: 800;
  padding: 15px 20px; border-radius: 9px; margin-top: 4px;
}
.lg-submit:hover { background: var(--verde-oscuro, #0F2B1D); }

@media (prefers-reduced-motion: reduce) {
  .lg-overlay { backdrop-filter: none; -webkit-backdrop-filter: none; }
}
