/* Landing page (/): "Taller moderno". Mobile first; only loaded on the landing. Tokens: tokens.css.
   Motion (all off under prefers-reduced-motion): hero bubbles pop in, the device straightens on hover, bento tiles
   lift 4 px, sections reveal on scroll (html.js-reveal [data-reveal]). */
.landing { overflow-x: clip; }
.lp-wrap { width: var(--container); margin-inline: auto; }
/* The shared top bar lines up with .lp-wrap on this page only; other pages keep app.css. */
.page-landing .topbar { padding-inline: max(var(--gutter), (100% - var(--max)) / 2); }
.page-landing .brand-mark { margin-left: -7px; }   /* the glyph sits 7 px inside its 32 px box: optical alignment */
@media (max-width: 860px) {
  .page-landing .nav-toggle { margin-right: -12px; }   /* the bars sit 12 px inside the 44 px tap target */
  .page-landing .topnav { left: var(--gutter); right: var(--gutter); }
}
.lp-section { padding: 72px 0; }
.lp-sec-head { max-width: 720px; margin-bottom: 40px; }
.lp-kicker { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 12px; }
.lp-section h2 { font-size: clamp(30px, 4vw, 48px); font-weight: 800; letter-spacing: -.03em; margin: 0; }
.lp-lead { color: var(--ink-2); font-size: clamp(16px, 1.3vw, 18px); margin: 14px 0 0; max-width: 60ch; }
.btn .arr { transition: transform .2s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- hero ---------- */
.lp-hero { position: relative; padding: 56px 0 48px; overflow: hidden; }
.lp-hero .lp-wrap { display: grid; gap: 40px; align-items: center; }
.lp-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px; padding: 6px 14px 6px 6px; border-radius: var(--r-pill); background: var(--card); border: 1px solid var(--line); color: var(--ink-2); font-size: 13.5px; font-weight: 700; box-shadow: var(--shadow); }
.lp-eyebrow img { width: 24px; height: 24px; border-radius: 7px; }
.lp-eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.lp-hero h1 { font-size: var(--fs-hero); font-weight: 800; line-height: 1.04; letter-spacing: -.03em; margin: 0 0 20px; max-width: 14ch; }
.lp-hero h1 span { color: var(--accent-ink); position: relative; white-space: nowrap; }
/* hand-drawn underline under «lo que quieras» */
.lp-hero h1 span::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.08em; height: .22em; z-index: -1;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'><path d='M3 14 C 60 4, 120 4, 197 12' fill='none' stroke='%23FF5A1F' stroke-width='6' stroke-linecap='round'/></svg>") no-repeat center / 100% 100%; }
.lp-sub { color: var(--ink-2); font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; margin: 0 0 26px; max-width: 54ch; }
.lp-ctas { display: flex; flex-direction: column; gap: 12px; }
.lp-ctas .btn { width: 100%; }
.lp-ctas .btn svg { width: 18px; height: 18px; }
.lp-examples { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; list-style: none; padding: 0; margin: 22px 0 0; }
.lp-examples-lbl { font-size: 12.5px; color: var(--dim); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; margin-right: 4px; }
.lp-examples a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 6px 14px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: rgba(255, 255, 255, .7); color: var(--ink-2); font-size: 14px; font-weight: 600; text-decoration: none; transition: background var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast); }
.lp-examples a:hover { background: var(--card); border-color: var(--ink); color: var(--ink); }
.lp-points { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 22px 0 0; color: var(--dim); font-size: 14px; font-weight: 600; }
.lp-points li { display: inline-flex; align-items: center; gap: 8px; }
.lp-points li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6 12.5l4 4 8-9' fill='none' stroke='%23C2410C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / 11px no-repeat; }

/* product: browser frame with the real lesson inside */
.lp-hero-visual { position: relative; margin: 34px 0 0; padding: 0 0 40px; perspective: 1200px; }
.lp-device { position: relative; border-radius: 22px; overflow: hidden; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-lg); transition: transform .5s var(--ease); }
.lp-hero-visual:hover .lp-device { transform: none; }
.lp-device-bar { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--paper-2); }
.lp-device-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.lp-device-bar span { margin-left: 10px; padding: 3px 10px; border-radius: 7px; background: var(--card); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-device img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 744; background: var(--paper-2); }
.lp-bubble { position: absolute; z-index: 2; max-width: min(78%, 340px); padding: 12px 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-lg); font-size: 14px; line-height: 1.45; }
.lp-bubble-q { right: 0; top: -14px; border-bottom-right-radius: 6px; font-weight: 700; color: var(--ink-2); display: none; }
.lp-bubble-a { left: 0; bottom: -2px; display: flex; gap: 10px; align-items: flex-start; border-bottom-left-radius: 6px; }
.lp-bubble-a img { flex: none; width: 30px; height: 30px; border-radius: 9px; }
.lp-bubble-a p { margin: 0; color: var(--ink-2); }
.lp-bubble-a b { display: block; color: var(--accent-ink); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 2px; }

/* ---------- facts strip ---------- */
.lp-strip { border-block: 1px solid var(--line); background: var(--card); }
.lp-strip .lp-wrap { display: grid; grid-template-columns: repeat(2, 1fr); }
.lp-strip div { padding: 18px 8px; display: flex; flex-direction: column; gap: 2px; border-right: 1px solid var(--line); }
.lp-strip div:nth-child(2n) { border-right: 0; }
.lp-strip div:nth-child(odd) { padding-left: 0; }   /* first column text starts on the content edge */
.lp-strip b { font-family: var(--font-display); font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -.03em; font-weight: 800; }
.lp-strip small { color: var(--dim); font-weight: 600; font-size: 13.5px; }

/* ---------- steps: three cards with big numerals ---------- */
.lp-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.lp-steps li { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 24px 26px; box-shadow: var(--shadow); overflow: hidden; }
.lp-step-n { position: absolute; right: 16px; top: 8px; font-family: var(--font-display); font-weight: 800; font-size: 72px; line-height: 1; letter-spacing: -.06em; color: var(--paper-2); }
.lp-step-ico { width: 44px; height: 44px; border-radius: var(--r-sm); background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; margin-bottom: 18px; position: relative; }
.lp-step-ico svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lp-steps h3 { font-size: 20px; margin: 0 0 8px; position: relative; }
.lp-steps p { margin: 0; color: var(--ink-2); font-size: 15px; position: relative; }

/* ---------- bento ---------- */
.lp-bento { display: grid; gap: 16px; }
.lp-tile { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; gap: 10px; min-height: 240px; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.lp-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.lp-tile h3 { font-size: 20px; margin: 0; }
.lp-tile p { color: var(--ink-2); font-size: 15px; max-width: 44ch; margin: 0; }
.lp-art { margin-top: auto; }
.lp-tile.dark { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.lp-tile.dark p { color: var(--on-ink-2); }
.lp-tile.accent { background: linear-gradient(160deg, #FFE9DC, #FFF6F0); border-color: var(--accent-soft-2); }
/* art: Edi chat */
.lp-chat { display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.lp-chat .m { padding: 9px 12px; border-radius: 14px; max-width: 88%; line-height: 1.4; }
.lp-chat .u { align-self: flex-end; background: var(--paper-2); border-bottom-right-radius: 4px; font-weight: 600; }
.lp-chat .e { align-self: flex-start; background: var(--accent-soft); color: var(--accent-deep); border-bottom-left-radius: 4px; }
.lp-chat .e b { color: var(--accent-ink); }
/* art: progress bars */
.lp-bars { display: flex; align-items: flex-end; gap: 8px; height: 84px; }
.lp-bars i { flex: 1; border-radius: 6px 6px 3px 3px; background: var(--paper-2); }
.lp-bars i.on { background: var(--accent); }
/* art: multimeter */
.lp-meter { display: inline-flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 14px; background: #2A2722; color: #fff; font-family: var(--font-display); font-variant-numeric: tabular-nums; }
.lp-meter b { font-size: 30px; letter-spacing: -.03em; color: var(--amber); }
.lp-meter small { font-size: 11px; color: var(--on-ink-dim); letter-spacing: .08em; text-transform: uppercase; line-height: 1.3; }
/* art: voice wave + caption */
.lp-wave { display: flex; align-items: center; gap: 3px; height: 40px; }
.lp-wave i { width: 4px; border-radius: 2px; background: #fff; opacity: .9; }
.lp-capsub { display: inline-block; margin-top: 10px; padding: 6px 12px; border-radius: var(--r-xs); background: rgba(255, 255, 255, .12); font-size: 13px; font-weight: 600; }
/* art: phone */
.lp-phone { position: absolute; right: 20px; bottom: -40px; width: 150px; height: 260px; border-radius: 26px; background: var(--ink); padding: 8px; box-shadow: var(--shadow-lg); transform: rotate(-6deg); }
.lp-phone img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 20px; background: var(--paper-2); }
.lp-tile.t6 { min-height: 260px; }
.lp-tile.t6 p { max-width: 30ch; }

/* ---------- topics ---------- */
.lp-trades { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.lp-trades a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 56px; height: 100%; padding: 12px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); color: var(--ink); font-weight: 700; font-size: 15px; line-height: 1.3; text-decoration: none; transition: border-color var(--dur-fast), transform var(--dur-fast), box-shadow var(--dur-fast); }
.lp-trades a:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-sm); text-decoration: none; }
.lp-trades svg { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--dim); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.lp-trades .lp-trade-other { background: var(--paper-2); border-style: dashed; border-color: var(--line-2); }

/* ---------- CTA band ---------- */
.lp-band { position: relative; overflow: hidden; display: grid; gap: 22px; background: var(--ink); color: var(--on-ink); border-radius: 28px; padding: 36px 26px; }
.lp-band::before { content: ""; position: absolute; right: -10%; top: -60%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 90, 31, .55), transparent 65%); pointer-events: none; }
.lp-band > * { position: relative; }
.lp-band img { width: 56px; height: 56px; border-radius: 16px; background: var(--accent); }
.lp-band h2 { font-size: clamp(26px, 3vw, 38px); letter-spacing: -.03em; margin: 0; color: var(--on-ink); }
.lp-band p { color: var(--on-ink-2); margin: 8px 0 0; max-width: 56ch; }
.lp-band .btn { width: 100%; }

/* ---------- FAQ ---------- */
.lp-faq-list { max-width: 760px; }
.lp-faq-list details { border-top: 1px solid var(--line); }
.lp-faq-list details:last-child { border-bottom: 1px solid var(--line); }
.lp-faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 60px; font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -.01em; padding: 14px 0; border-radius: var(--r-xs); }
.lp-faq-list summary::-webkit-details-marker { display: none; }
.lp-faq-list summary::after { content: "+"; flex: none; font-family: var(--font-display); font-size: 26px; line-height: 1; color: var(--accent-ink); transition: transform .2s var(--ease); }
.lp-faq-list details[open] summary::after { transform: rotate(45deg); }
.lp-faq-list details p { color: var(--ink-2); margin: 0; padding: 0 0 18px; max-width: 64ch; }

/* ---------- footer ---------- */
.lp-footer { border-top: 1px solid var(--line); padding: 40px 0 max(48px, var(--safe-b)); color: var(--dim); font-size: 14px; }
.lp-footer-in { display: grid; gap: 18px; }
.lp-footer p { margin: 0; color: var(--ink-2); }
.lp-footer nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.lp-footer nav a { min-height: var(--tap); display: inline-flex; align-items: center; font-weight: 600; color: var(--ink-2); }
.lp-footer nav a:hover { color: var(--ink); }
.lp-footer small { color: var(--dim); }

/* ---------- scroll reveal (JS adds html.js-reveal; without JS everything is visible) ---------- */
html.js-reveal [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
html.js-reveal [data-reveal].in { opacity: 1; transform: none; }

/* ---------- larger screens ---------- */
@media (min-width: 560px) {
  .lp-ctas { flex-direction: row; flex-wrap: wrap; }
  .lp-ctas .btn { width: auto; }
  .lp-band .btn { width: auto; }
  .lp-bubble-q { display: block; }
}
@media (min-width: 800px) {
  .lp-strip .lp-wrap { grid-template-columns: repeat(4, 1fr); }
  .lp-strip div, .lp-strip div:nth-child(odd) { padding: 22px 24px; border-right: 1px solid var(--line); }
  .lp-strip div:nth-child(2n) { border-right: 1px solid var(--line); }
  .lp-strip div:first-child { padding-left: 0; }
  .lp-strip div:last-child { border-right: 0; padding-right: 0; }
  .lp-steps { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .lp-footer-in { grid-template-columns: 1fr auto auto; align-items: center; }
}
@media (min-width: 900px) {
  .lp-bento { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(230px, auto); }
  .lp-tile.t1 { grid-column: 1 / 3; grid-row: 1 / 3; }
  .lp-tile.t2 { grid-column: 3 / 5; }
  .lp-tile.t3 { grid-column: 3 / 4; }
  .lp-tile.t4 { grid-column: 4 / 5; }
  .lp-tile.t5 { grid-column: 1 / 3; }
  .lp-tile.t6 { grid-column: 3 / 5; }
  .lp-band { grid-template-columns: auto 1fr auto; align-items: center; padding: 44px 48px; gap: 32px; }
}
@media (max-width: 899px) { .lp-phone { display: none; } .lp-tile.t6 { min-height: 0; } }
@media (min-width: 1000px) {
  .lp-hero { padding: 88px 0 80px; }
  .lp-hero .lp-wrap { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; }
  .lp-hero-visual { margin-top: 0; }
  /* tilt pivots on the right edge so the frame stays inside the column; stacked layouts are not tilted */
  .lp-device { transform: rotateY(-4deg) rotateX(2deg); transform-origin: right center; }
  .lp-bubble-q { right: 0; top: -18px; }
  .lp-bubble-a { left: -10px; bottom: -14px; }
  .lp-section { padding: 104px 0; }
  .lp-section.tight { padding-top: 0; }
}
@media (min-width: 800px) { .lp-section.tight { padding-top: 0; } }

/* narrow two-column hero: keep both CTAs on one row */
@media (min-width: 1000px) and (max-width: 1079px) {
  .lp-ctas { gap: 8px; flex-wrap: nowrap; }
  .lp-ctas .btn { padding-inline: 16px; white-space: nowrap; }
}

@media (prefers-reduced-motion: no-preference) {
  .lp-bubble-q { animation: lpPop .6s var(--ease) both; }
  .lp-bubble-a { animation: lpPop .6s .25s var(--ease) both; }
}
@keyframes lpPop { from { opacity: 0; transform: translateY(10px) scale(.98) } to { opacity: 1; transform: none } }
@media (prefers-reduced-motion: reduce) {
  .lp-device { transform: none; }
  html.js-reveal [data-reveal] { opacity: 1; transform: none; transition: none; }
}
