/* Landing de Laddr. Mismos tokens que el panel; recursos propios (nada de CDNs). */

@font-face {
  font-family: "Instrument Sans";
  src: url("instrument-sans-var.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-2: #eceef2;
  --line: #e0e3e9;
  --line-strong: #c4cad5;
  --ink: #151b2e;
  --ink-dim: #566074;
  --accent: #f2b33d;
  --accent-hover: #e5a22a;
  --navy: #19213a;
  --joint: #34426e;
  --focus: #3556d6;
  --font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wall-h: clamp(5.5rem, 12vw, 8.5rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1220;
    --surface: #151b2e;
    --surface-2: #1a2138;
    --line: #262e48;
    --line-strong: #3a4466;
    --ink: #e8ebf3;
    --ink-dim: #9aa4bb;
    --focus: #9db2ff;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 17px; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.6 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--navy); }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
.wrap { width: min(70rem, 100% - 2.5rem); margin-inline: auto; }

/* ── Botones ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: .8rem 1.4rem;
  border-radius: 10px;
  border: 1px solid transparent;
  background: var(--accent);
  color: var(--navy);
  font-weight: 650;
  font-size: 1rem;
  text-decoration: none;
}
.btn:hover { background: var(--accent-hover); }
.hero .btn { background: var(--navy); color: #fff; }
.hero .btn:hover { background: #0f1630; }

/* ── Cabecera + hero: el logo desplegado a lo ancho ───────────────────── */
.hero { position: relative; background: var(--accent); color: var(--navy); overflow: hidden; }
.top { display: flex; align-items: center; gap: 1.5rem; padding-block: 1.1rem; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; font-weight: 700; font-size: 1.3rem; letter-spacing: -.03em; }
.brand img { width: 2.3rem; height: 2.3rem; display: block; }
.top nav { display: flex; align-items: center; gap: 1.5rem; margin-left: auto; font-weight: 550; font-size: .95rem; }
.top nav a { text-decoration: none; opacity: .85; }
.top nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.top .lang { font-weight: 650; font-size: .9rem; padding: .25rem .6rem; border: 1px solid rgb(25 33 58 / .4); border-radius: 6px; text-decoration: none; }
.top .btn { padding: .5rem 1rem; font-size: .92rem; }

.hero-inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 2rem; align-items: end; padding-top: clamp(2rem, 6vw, 4.5rem); }
.copy { padding-bottom: clamp(3rem, 7vw, 5.5rem); }
.copy h1 { font-size: clamp(2.6rem, 6.2vw, 4.7rem); line-height: 1.02; letter-spacing: -.04em; font-weight: 700; max-width: 14ch; text-wrap: balance; }
.copy p { margin-top: 1.4rem; font-size: 1.2rem; line-height: 1.5; max-width: 33rem; }
.cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.stage { position: relative; align-self: end; display: flex; justify-content: center; margin-bottom: calc(var(--wall-h) * -0.28); z-index: 2; }
.panda { width: min(23rem, 100%); height: auto; display: block; }
.ladder { position: absolute; right: 2%; bottom: calc(var(--wall-h) * -0.2); width: clamp(4.5rem, 10vw, 7rem); height: auto; }
.eyes { transform-box: fill-box; transform-origin: center; animation: blink 6s infinite; }
.pupils { animation: look 6s ease-in-out infinite; }
@keyframes look { 0%,15% { transform: translateX(0); } 22%,35% { transform: translateX(1.4px); } 42%,58% { transform: translateX(0); } 65%,80% { transform: translateX(-1.4px); } 88%,100% { transform: translateX(0); } }
@keyframes blink { 0%,91%,100% { transform: scaleY(1); } 94% { transform: scaleY(.08); } }

.wall {
  height: var(--wall-h);
  background-color: var(--navy);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='72'%3E%3Cg stroke='%2334426e' stroke-width='3' fill='none'%3E%3Cpath d='M0 24h120M0 48h120M0 72h120'/%3E%3Cpath d='M30 0v24M90 0v24M60 24v24M0 24v24M120 24v24M30 48v24M90 48v24'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 120px 72px;
  position: relative;
  z-index: 1;
}

/* ── Franja de pruebas, bajo el muro del hero ─────────────────────────── */
.proof { background: var(--navy); color: #fff; padding-block: .75rem 2.25rem; }
.proof .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.proof ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .75rem 2.25rem;
  font-size: clamp(1rem, 1.5vw, 1.15rem); font-weight: 650; }
.proof li { display: flex; align-items: center; gap: .65rem; }
.proof li::before { content: ""; flex: none; width: .6rem; height: .6rem; border-radius: 50%; background: var(--accent); }
.proof .live { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .9rem; border: 1px solid rgb(255 255 255 / .28);
  border-radius: 999px; color: #fff; font-size: .9rem; font-weight: 600; text-decoration: none; }
.proof .live::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: #4ade80; }
.proof .live:hover { border-color: #fff; }
.proof .live:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* ── Secciones ────────────────────────────────────────────────────────── */
section { padding-block: clamp(3.5rem, 8vw, 6rem); }
section.hero { padding: 0; }
.sec-head { margin-bottom: 2.5rem; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.1; letter-spacing: -.03em; font-weight: 700; max-width: 22ch; text-wrap: balance; }
.sec-head p { margin-top: .9rem; color: var(--ink-dim); max-width: 38rem; font-size: 1.1rem; }

.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; counter-reset: s; }
.steps li { counter-increment: s; padding-top: 3.2rem; position: relative; }
.steps li::before {
  content: counter(s);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--navy);
  font-weight: 700;
}
.steps h3 { font-size: 1.2rem; letter-spacing: -.02em; margin-bottom: .4rem; }
.steps p { color: var(--ink-dim); }

.alt { background: var(--surface); border-block: 1px solid var(--line); }
.points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2.5rem; }
.points div { padding-block: 1.4rem; border-top: 1px solid var(--line); }
.points dt { font-weight: 650; font-size: 1.12rem; letter-spacing: -.015em; }
.points dd { margin-top: .35rem; color: var(--ink-dim); max-width: 34rem; }

.plan { max-width: 24rem; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1.6rem; display: flex; flex-direction: column; gap: .3rem; }
.plan h3 { font-size: 1.05rem; font-weight: 650; }
.plan .price { font-size: 2.7rem; font-weight: 700; letter-spacing: -.04em; line-height: 1.1; margin-top: .6rem; }
.plan .price small { font-size: 1rem; font-weight: 500; letter-spacing: 0; color: var(--ink-dim); }
.plan .quota b { font-weight: 650; }
.plan .incl { list-style: none; margin: .9rem 0 1.4rem; padding: 0; display: grid; gap: .35rem; font-size: .95rem; }
.plan .incl li::before { content: "✓"; color: var(--ink); font-weight: 700; margin-right: .55rem; }
.plan .btn { margin-top: auto; text-align: center; }
.included { margin-top: 1.75rem; color: var(--ink-dim); }
.included b { color: var(--ink); font-weight: 650; }

.faq { max-width: 46rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 2rem 1.1rem 0; font-weight: 600; font-size: 1.08rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: .9rem; font-size: 1.4rem; font-weight: 400; color: var(--ink-dim); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 2rem 1.2rem 0; color: var(--ink-dim); }
.tip { margin-top: 1.75rem; color: var(--ink-dim); }

footer { background: var(--navy); color: #c9d0e4; padding-block: 2rem 2.5rem; font-size: .92rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; align-items: center; }
footer .brand { color: #fff; font-size: 1.1rem; }
footer .brand img { width: 1.9rem; height: 1.9rem; }
footer p { margin-left: auto; }
footer a { color: #fff; }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .copy { padding-bottom: 1rem; }
  .stage { order: 2; margin-bottom: calc(var(--wall-h) * -0.25); }
  .panda { width: min(17rem, 80%); }
  .steps, .points { grid-template-columns: minmax(0, 1fr); }
  .steps { gap: 1.75rem; }
  .top nav a:not(.lang):not(.login) { display: none; }
  .top nav { margin-left: auto; }
}
@media (max-width: 560px) {
  .proof ul { flex-direction: column; flex-wrap: nowrap; }
  .proof .wrap { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 480px) {
  html { font-size: 16px; }
  .top .btn { display: none; }
  footer p { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .eyes, .pupils { animation: none; }
}

/* ── Páginas legales ──────────────────────────────────────────────────── */
.legal-top { background: var(--accent); color: var(--navy); }
.legal-top .top { padding-block: 1rem; }
.legal { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.legal .wrap { max-width: 44rem; }
.legal h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); letter-spacing: -.035em; line-height: 1.1; }
.legal .upd { color: var(--ink-dim); margin: .5rem 0 2rem; }
.legal h2 { font-size: 1.2rem; letter-spacing: -.015em; margin: 2rem 0 .4rem; max-width: none; }
.legal p { color: var(--ink); max-width: 38rem; }
.legal .note { color: var(--ink-dim); font-size: .92rem; margin-bottom: 1rem; }
.legal ul { margin: .5rem 0; padding-left: 1.3rem; max-width: 38rem; }
.legal li { margin-bottom: .3rem; }
.legal blockquote { margin: 1rem 0; padding: .9rem 1.1rem; border-left: 3px solid var(--accent); background: var(--surface); max-width: 38rem; font-size: .95rem; }
.legal a { text-underline-offset: 3px; }
.legal.guide .wrap { max-width: 50rem; }
.legal ol { margin: .5rem 0; padding-left: 1.4rem; max-width: 38rem; }
.legal ol li { margin-bottom: .35rem; }
.legal code { font: .9em ui-monospace, "SF Mono", Menlo, Consolas, monospace; background: var(--surface-2); padding: .1rem .35rem; border-radius: 4px; }
.legal table { width: 100%; border-collapse: collapse; margin: .5rem 0 1rem; font-size: .95rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: .6rem .8rem .6rem 0; border-bottom: 1px solid var(--line); }
.legal th { font-weight: 650; color: var(--ink-dim); }
@media (max-width: 560px) { .legal table, .legal thead, .legal tbody, .legal tr, .legal td { display: block; } .legal thead { display: none; } .legal td:first-child { font-weight: 650; padding-bottom: 0; border: 0; } }
