/* lead-popup.css — Pop-up de captura de leads (nombre, email, WhatsApp)
   Módulo reutilizable. Envía al mismo CRM que los formularios del sitio
   (usa submitLeadForm de lead-form.js). Namespace: .lp-  */

.lp-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(8, 6, 15, 0.66);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}
.lp-overlay.lp-open {
  opacity: 1;
  visibility: visible;
}

.lp-modal {
  position: relative;
  width: 100%;
  max-width: 430px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: #ffffff;
  color: #1a202c;
  border-radius: 18px;
  padding: 30px 26px 26px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  border-top: 5px solid #ff6b2b;
  transform: translateY(18px) scale(0.98);
  transition: transform 0.28s ease;
  font-family: 'Inter', system-ui, sans-serif;
}
.lp-overlay.lp-open .lp-modal {
  transform: translateY(0) scale(1);
}

.lp-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: #f1eee9;
  color: #6b7280;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.lp-close:hover { background: #e6e2da; color: #1a202c; }

/* Espacio para foto / captura (la pasa Rocío al final) */
.lp-media {
  display: none; /* se activa cuando haya imagen: quitar esta línea */
  width: 100%;
  border-radius: 12px;
  margin-bottom: 16px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #f1eee9;
}

.lp-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #d94f10;
  background: #fff1e9;
  padding: 5px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.lp-title {
  font-size: 22px;
  line-height: 1.25;
  font-weight: 800;
  margin: 0 0 8px;
  color: #14181f;
}
.lp-title span { color: #ff6b2b; }
.lp-text {
  font-size: 14.5px;
  line-height: 1.6;
  color: #4b5563;
  margin: 0 0 18px;
}

.lp-field { margin-bottom: 12px; }
.lp-input {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  color: #1a202c;
  background: #f7f5f1;
  border: 1.5px solid #e6e2da;
  border-radius: 10px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.lp-input::placeholder { color: #9ca3af; }
.lp-input:focus {
  outline: none;
  border-color: #ff6b2b;
  background: #ffffff;
}

.lp-submit {
  width: 100%;
  margin-top: 4px;
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 800;
  font-family: inherit;
  color: #ffffff;
  background: linear-gradient(135deg, #ff6b2b, #d94f10);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(255, 107, 43, 0.32);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.lp-submit:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(255, 107, 43, 0.42); }
.lp-submit:disabled { opacity: 0.7; cursor: default; transform: none; }

.lp-note {
  margin: 12px 0 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: #9ca3af;
  text-align: center;
}
.lp-note a { color: #d94f10; text-decoration: underline; }

.lp-status {
  margin: 12px 0 0;
  font-size: 13.5px;
  text-align: center;
  min-height: 18px;
}
.lp-status--ok { color: #15803d; font-weight: 700; }
.lp-status--error { color: #b91c1c; font-weight: 600; }
.lp-status--loading { color: #6b7280; }

/* Pantalla de éxito + descarga de la guía */
.lp-success { text-align: center; padding: 8px 0 2px; }
.lp-success-check {
  width: 56px; height: 56px; margin: 0 auto 14px;
  border-radius: 50%;
  background: #dcfce7; color: #15803d;
  font-size: 30px; line-height: 56px; font-weight: 700;
}
.lp-success-title { font-size: 20px; font-weight: 800; color: #14181f; margin: 0 0 8px; }
.lp-success-text { font-size: 14px; line-height: 1.55; color: #4b5563; margin: 0 0 18px; }
.lp-download { display: block; text-decoration: none; text-align: center; }

/* Honeypot anti-spam (oculto para humanos) */
.lp-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 480px) {
  .lp-modal { padding: 26px 20px 22px; border-radius: 16px; }
  .lp-title { font-size: 20px; }
}
