:root {
  /* Paleta real legalquiz.cl */
  --bg: #07071a;
  --lilac-1: #7c3aed;
  --lilac-2: #a78bfa;
  --lilac-3: #4c1d95;
  --orange: #f4791f;
  --orange-soft: #ff9145;
  --ink: #f5f3ff;
  --ink-dim: #b8b3d4;
  --line-strong: rgba(167, 139, 250, 0.22);
  --radius-lg: 28px;
  /* Tokens de UI (mapped) */
  --card-bg: #1E1830;
  --input-bg: #13101f;
  --input-border: rgba(167, 139, 250, 0.18);
  --whatsapp: #25D366;
  --error-bg: rgba(255, 90, 90, 0.10);
  --error-text: #ff9494;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.lp-body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Bricolage Grotesque', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
}

.lp-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  position: relative;
  overflow: hidden;
  padding: 24px 16px;
}

.lp-page::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.4) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.lp-card {
  background: var(--card-bg);
  border-radius: 28px;
  border: 1px solid rgba(51, 43, 77, 0.45);
  padding: clamp(32px, 6vw, 52px) clamp(24px, 6vw, 48px);
  width: clamp(320px, 90vw, 500px);
  position: relative;
  z-index: 1;
}

.lp-logo {
  height: 44px;
  display: block;
  margin: 0 auto 28px;
}

.lp-title {
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  font-weight: 800;
  color: var(--ink);
  text-align: center;
  line-height: 1.2;
  margin-bottom: 8px;
}

.lp-subtitle {
  font-size: clamp(0.85rem, 2vw, 0.95rem);
  color: var(--ink-dim);
  text-align: center;
  margin-bottom: 28px;
}

.lp-error {
  background: var(--error-bg);
  border: 1px solid rgba(255, 90, 90, 0.25);
  border-radius: 10px;
  padding: 10px 16px;
  color: var(--error-text);
  font-size: 0.87rem;
  margin-bottom: 20px;
  text-align: center;
}

.lp-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.lp-field {
  display: flex;
  flex-direction: column;
}

.lp-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-dim);
  display: block;
  margin-bottom: 6px;
}

.lp-field input {
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 14px;
  padding: 11px 16px;
  color: var(--ink);
  font-size: 1rem;
  width: 100%;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

.lp-field input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.lp-field input:focus {
  border-color: rgba(167, 139, 250, 0.6);
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.12);
}

.lp-pass-wrap {
  position: relative;
}

.lp-pass-wrap input {
  padding-right: 44px;
}

.lp-eye-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.4);
  font-size: 18px;
  display: flex;
  align-items: center;
  padding: 0;
  line-height: 1;
  transition: color 0.2s;
}

.lp-eye-btn:hover {
  color: rgba(255, 255, 255, 0.7);
}

.lp-btn-submit {
  width: 100%;
  border-radius: 9999px;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 13px 0;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 28px rgba(244, 121, 31, 0.42);
  transition: filter 0.2s, transform 0.2s;
  font-family: inherit;
  margin-top: 4px;
}

.lp-btn-submit:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.lp-btn-submit:active {
  transform: translateY(0);
  filter: brightness(0.97);
}

.lp-forgot {
  display: block;
  text-align: center;
  color: var(--ink-dim);
  font-size: 0.83rem;
  margin-top: 14px;
  text-decoration: none;
  transition: color 0.2s;
}

.lp-forgot:hover {
  color: var(--ink);
}

.lp-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}

.lp-pill {
  display: block;
  text-align: center;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--ink-dim);
  padding: 11px 24px;
  font-size: 0.88rem;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
  font-family: inherit;
}

.lp-pill strong,
.lp-pill .lp-accent {
  color: var(--orange-soft);
  font-weight: 700;
}

.lp-pill:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.45);
}

.lp-pill--wa {
  background: var(--whatsapp);
  border-color: var(--whatsapp);
  color: #fff;
  font-weight: 600;
}

.lp-pill--wa:hover {
  background: #1ebe5d;
  border-color: #1ebe5d;
}

@media (min-width: 768px) {
  .lp-card {
    max-width: 460px;
  }
}

@media (min-width: 1200px) {
  .lp-card {
    max-width: 500px;
  }
}

/* Tipografía de acento */
.lp-serif {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
}

/* Hero headline (encima de la card) */
.lp-hero {
  text-align: center;
  max-width: clamp(320px, 90vw, 520px);
}

.lp-hero-title {
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.15;
}

.lp-hero-title .lp-serif {
  background: linear-gradient(90deg, var(--lilac-2) 0%, var(--orange-soft) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Cita de prensa (debajo de la card) */
.lp-quote {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08) 0%, rgba(244, 121, 31, 0.06) 100%);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 5vw, 36px) clamp(24px, 6vw, 44px);
  width: clamp(320px, 90vw, 500px);
  text-align: center;
}

.lp-quote-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange-soft);
  margin-bottom: 12px;
}

.lp-quote-text {
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 14px;
  font-style: italic;
}

.lp-quote-attr {
  font-size: 0.82rem;
  color: var(--ink-dim);
  line-height: 1.5;
}

.lp-quote-link {
  color: var(--orange-soft);
  text-decoration: none;
}

.lp-quote-link:hover {
  text-decoration: underline;
}
