/* Landing y política de datos. Usa los tokens de app.css. */
:root {
  --lp-display: 'Bricolage Grotesque', var(--font);
  --lp-deep: #083b37;
  --lp-paper: #fffdf8;
}

.lp-wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.lp-sec { padding: 72px 0; }
.lp-sec--paper { background: var(--lp-paper); border-block: 1px solid var(--line); }
.lp-display, .lp-h2 { font-family: var(--lp-display); letter-spacing: -.025em; }
.lp-h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; line-height: 1.1; max-width: 22ch; margin-bottom: .5em; }
.lp-intro { font-size: 1.08rem; color: var(--ink-2); max-width: 62ch; margin-bottom: 36px; }

/* Los avisos (flash) flotan abajo para que se vean aunque la página baje a #demo */
.main--wide > .alert { position: fixed; z-index: 20; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin: 0 auto; box-shadow: 0 8px 28px rgba(27,36,33,.18); }

/* Hero */
.lp-hero { padding: 56px 0 72px; background:
  radial-gradient(circle at 88% 30%, var(--brand-soft) 0 220px, transparent 221px), var(--bg); }
.lp-hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.lp-kicker { font-weight: 700; color: var(--brand); margin-bottom: 14px; }
.lp-display { font-size: clamp(2.3rem, 6vw, 4.2rem); font-weight: 800; line-height: 1.02; margin-bottom: .4em; max-width: 14ch; text-wrap: balance; }
.lp-lead { font-size: 1.15rem; color: var(--ink-2); max-width: 54ch; }
.lp-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 18px; }
.lp-inst { color: var(--ink-2); margin: 0; }
.lp-inst a { font-weight: 700; }

/* Cédula animal: el elemento memorable de la página */
.lp-cedula { margin: 0; justify-self: center; width: 100%; max-width: 420px; }
.lp-cedula__card { background: var(--lp-paper); border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  box-shadow: 0 2px 0 var(--line), 0 24px 48px -20px rgba(8,59,55,.35); transform: rotate(-2deg);
  background-image: repeating-linear-gradient(135deg, transparent 0 14px, rgba(14,92,85,.035) 14px 15px); }
.lp-cedula__top { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--brand); color: #fff; font-family: var(--lp-display); font-weight: 800; font-size: 1.05rem; }
.lp-cedula__uid { margin-left: auto; font-family: var(--font); font-weight: 700; font-size: .85rem; letter-spacing: .06em; background: rgba(255,255,255,.14); padding: 3px 10px; border-radius: 999px; }
.lp-cedula__body { display: grid; grid-template-columns: auto 1fr; gap: 14px 16px; padding: 18px 16px 14px; }
.lp-cedula__pet { border-radius: 10px; }
.lp-cedula__dl { margin: 0; display: grid; gap: 8px; align-content: start; }
.lp-cedula__dl dt { font-size: .75rem; color: var(--ink-2); font-weight: 600; }
.lp-cedula__dl dd { margin: 0; font-weight: 700; line-height: 1.25; }
.lp-cedula__qr { grid-column: 1 / -1; justify-self: end; width: 84px; height: 84px; color: var(--ink); background: #fff; padding: 4px; border-radius: 6px; margin-top: -54px; }
.lp-cedula__private { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-top: 2px dashed var(--line); background: var(--surface-2); font-size: .88rem; }
.lp-cedula__private strong { display: block; }
.lp-cedula__private span { color: var(--ink-2); }
.lp-lock { flex: none; width: 22px; height: 18px; background: var(--ink-2); border-radius: 4px; position: relative; margin-top: 6px; }
.lp-lock::before { content: ''; position: absolute; left: 4px; top: -9px; width: 10px; height: 10px; border: 3px solid var(--ink-2); border-bottom: 0; border-radius: 8px 8px 0 0; }
.lp-cedula figcaption { margin-top: 22px; font-size: .92rem; color: var(--ink-2); max-width: 40ch; }

/* Problema: islas */
.lp-islas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.lp-islas li { padding: 20px 18px 6px; border-top: 4px solid var(--accent); background: var(--surface); border-radius: 0 0 40px 8px; }
.lp-islas li:nth-child(even) { border-radius: 0 0 8px 40px; }
.lp-islas p { color: var(--ink-2); font-size: .95rem; }

/* Cómo funciona */
.lp-como { display: grid; grid-template-columns: 1fr 380px; gap: 56px; align-items: start; }
.lp-features { margin: 24px 0 0; display: grid; gap: 22px; }
.lp-features > div { padding-left: 18px; border-left: 3px solid var(--brand-soft); }
.lp-features dt { font-weight: 800; font-size: 1.08rem; margin-bottom: 4px; }
.lp-features dd { margin: 0; color: var(--ink-2); max-width: 58ch; }
.lp-flow { margin: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 16px 12px; }
.lp-flow svg { width: 100%; height: auto; }
.f-t { font: 800 15px var(--font); fill: #fff; }
.f-s { font: 500 12px var(--font); fill: #dcebe7; }
.f-t--dark { fill: var(--ink); }
.f-s--dark { fill: var(--ink-2); }
.f-q { font: 800 14px var(--font); fill: var(--brand); }
.f-yn { font: 700 13px var(--font); fill: var(--ink-2); }

/* Para quién */
.lp-who { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 20px; }
.lp-who__item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.lp-who__item--main { background: var(--brand); border-color: var(--brand); color: #fff; }
.lp-who__item h3 { font-family: var(--lp-display); font-size: 1.5rem; font-weight: 800; margin-bottom: .2em; }
.lp-who__price { font-weight: 700; color: var(--warn); }
.lp-who__item--main .lp-who__price { color: #f7cf8e; }
.lp-who__item ul { margin: 0; padding-left: 1.1em; display: grid; gap: 8px; }
.lp-who__item:not(.lp-who__item--main) li { color: var(--ink-2); }

/* Confianza legal */
.lp-legal { background: var(--lp-deep); color: #e8f1ef; padding: 72px 0; }
.lp-legal .lp-h2 { color: #fff; }
.lp-legal .lp-intro { color: #b9d0cc; }
.lp-laws { margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 48px; }
.lp-laws dt { font-family: var(--lp-display); font-weight: 800; font-size: 1.25rem; color: var(--accent); margin-bottom: 4px; }
.lp-laws dd { margin: 0; color: #d3e3e0; max-width: 52ch; }
.lp-legal :focus-visible { outline-color: #fff; }

/* Planes */
.lp-plans th[scope="row"] { font-weight: 600; text-transform: none; letter-spacing: 0; font-size: .93rem; color: var(--ink); background: transparent; }
.lp-plans thead th { font-size: .95rem; text-transform: none; letter-spacing: 0; color: var(--ink); }
.lp-plans thead th:nth-child(3) { background: var(--accent-soft); }
.lp-plans td:nth-child(3) { background: #fdf6ea; }
.lp-plans__price td, .lp-plans__price th[scope="row"] { font-weight: 800; }

/* Demo */
.lp-demo { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; align-items: start; }
.lp-demo__copy p { color: var(--ink-2); max-width: 40ch; }
.lp-demo__form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.lp-full { grid-column: 1 / -1; }
#demo:focus { outline: none; }

/* Política de datos */
.lp-doc { max-width: 760px; margin: 0 auto; padding: 40px 16px 72px; }
.lp-doc h1 { font-family: var(--lp-display); font-size: clamp(1.9rem, 4.5vw, 2.6rem); letter-spacing: -.025em; }
.lp-doc h2 { margin-top: 2em; }
.lp-doc li { margin-bottom: .4em; }
.lp-doc table { margin: 8px 0 16px; }
.lp-doc .dl { margin-bottom: 16px; }

@media (max-width: 960px) {
  .lp-hero__grid, .lp-como, .lp-demo { grid-template-columns: 1fr; gap: 40px; }
  .lp-islas { grid-template-columns: repeat(2, 1fr); }
  .lp-who { grid-template-columns: 1fr; }
  .lp-flow { max-width: 420px; }
}
@media (max-width: 600px) {
  .lp-sec, .lp-legal { padding: 52px 0; }
  .lp-hero { padding: 36px 0 52px; background: var(--bg); }
  .lp-islas, .lp-laws { grid-template-columns: 1fr; }
  .lp-ctas .btn { flex: 1 1 100%; }
  .lp-cedula__card { transform: none; }
  .lp-demo__form { padding: 18px; }
}
@media (prefers-reduced-motion: no-preference) {
  .lp-cedula__card { animation: lp-deal .7s cubic-bezier(.2,.8,.2,1) both; }
  @keyframes lp-deal { from { opacity: 0; transform: translateY(24px) rotate(4deg); } }
}
