/* ============================================================
   POPUP DE BIENVENIDA — Logicnet (landing)
   ============================================================ */

.lnp-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 35, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.lnp-overlay.lnp-visible {
  opacity: 1;
  visibility: visible;
}

.lnp-modal {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  transform: translateY(28px) scale(0.96);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.lnp-overlay.lnp-visible .lnp-modal {
  transform: translateY(0) scale(1);
}

/* Franja superior con degradado corporativo */
.lnp-header {
  background: linear-gradient(135deg, #0d6efd 0%, #073984 100%);
  padding: 30px 28px 44px;
  text-align: center;
  position: relative;
}

.lnp-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 32px;
  background: #ffffff;
  border-radius: 100% 100% 0 0;
}

.lnp-logo {
  max-width: 190px;
  height: auto;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
}

.lnp-body {
  padding: 8px 30px 28px;
  text-align: center;
}

.lnp-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: #12263f;
  margin: 4px 0 8px;
}

.lnp-title span {
  color: #0d6efd;
}

.lnp-text {
  font-size: 0.92rem;
  color: #5a6b7f;
  line-height: 1.55;
  margin-bottom: 18px;
}

/* Botón de Google centrado */
.lnp-google {
  display: flex;
  justify-content: center;
  min-height: 44px;
  margin-bottom: 4px;
}

/* Separador "o con tu correo" */
.lnp-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0 14px;
  color: #9aa8b8;
  font-size: 0.78rem;
}

.lnp-divider::before,
.lnp-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e3e9f0;
}

.lnp-form .lnp-field {
  margin-bottom: 12px;
}

.lnp-form input[type="text"],
.lnp-form input[type="email"] {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #dbe3ec;
  border-radius: 10px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lnp-form input:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.12);
}

/* Honeypot invisible */
.lnp-hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.lnp-submit {
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #0d6efd, #0a58ca);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 6px 18px rgba(13, 110, 253, 0.35);
}

.lnp-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(13, 110, 253, 0.45);
}

.lnp-submit:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.lnp-privacy {
  font-size: 0.72rem;
  color: #9aa8b8;
  margin-top: 12px;
  line-height: 1.4;
}

.lnp-msg {
  display: none;
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
}

.lnp-msg.lnp-ok {
  display: block;
  background: #d1fae5;
  color: #065f46;
}

.lnp-msg.lnp-error {
  display: block;
  background: #fee2e2;
  color: #991b1b;
}

.lnp-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 2;
}

.lnp-close:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: rotate(90deg);
}

.lnp-later {
  display: inline-block;
  margin-top: 10px;
  background: none;
  border: none;
  color: #8795a7;
  font-size: 0.8rem;
  text-decoration: underline;
  cursor: pointer;
}

.lnp-later:hover {
  color: #5a6b7f;
}

@media (max-width: 480px) {
  .lnp-modal {
    max-width: 100%;
  }
  .lnp-header {
    padding: 24px 20px 38px;
  }
  .lnp-logo {
    max-width: 150px;
  }
  .lnp-body {
    padding: 4px 20px 22px;
  }
  .lnp-title {
    font-size: 1.25rem;
  }
}
