/* Portada pública de harveo.es (landing.html). Diseño: Figma "Harveo — logo", página "Landing", marco "Landing v2 · grano".
   Fotos: Unsplash (licencia libre, uso comercial) en app/static/img/. Colores y fuentes de tokens.css. */
* { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
:focus-visible { outline: 2px solid var(--harvest); outline-offset: 2px; }
:root { --lp-gutter: max(64px, calc((100vw - 1312px) / 2 + 64px)); --lp-night: 20 38 29; }

/* Hero con foto */
.lp-hero { position: relative; color: #fff; padding-bottom: 96px;
  background:
    linear-gradient(90deg, rgb(var(--lp-night) / .92) 0%, rgb(var(--lp-night) / .72) 45%, rgb(var(--lp-night) / .15) 100%),
    linear-gradient(180deg, rgb(var(--lp-night) / 0) 70%, rgb(var(--lp-night) / .45) 100%),
    url("/static/img/hero-cosecha.webp") center 60% / cover no-repeat, #6f6448; }
.lp-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 28px var(--lp-gutter); }
.lp-brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 500; font-size: 21px; letter-spacing: -0.02em; color: #fff; text-decoration: none; }
.lp-brand .logo { width: 34px; height: 34px; }
.lp-hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 48px; align-items: end; padding: 64px var(--lp-gutter) 0; }
.lp-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; padding-bottom: 24px; }
.lp-status { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: #F6DFA0; background: rgb(255 255 255 / .12); border: 1px solid rgb(242 212 138 / .6); padding: 6px 14px 6px 12px; border-radius: 999px; backdrop-filter: blur(6px); }
.lp-dot { width: 8px; height: 8px; border-radius: 50%; background: #F2C45A; animation: lp-pulso 2.2s var(--ease-out) infinite; }
@keyframes lp-pulso { 0% { box-shadow: 0 0 0 0 rgb(242 196 90 / .6); } 70%, 100% { box-shadow: 0 0 0 8px rgb(242 196 90 / 0); } }
.lp-copy h1 { font-family: var(--font-head); font-weight: 500; font-size: clamp(38px, 4.6vw, 60px); line-height: 1.06; letter-spacing: -0.03em; margin: 0; max-width: 15ch; text-wrap: balance; text-shadow: 0 2px 24px rgb(0 0 0 / .25); }
.lp-lead { font-size: 20px; line-height: 1.5; color: rgb(255 255 255 / .86); max-width: 52ch; margin: 0; text-wrap: pretty; }
.lp-ctas { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }
.lp-note { margin: 0; font-size: 15px; color: rgb(255 255 255 / .75); }
.lp-note a { color: #fff; font-weight: 600; text-underline-offset: 3px; }

/* Botones */
.lp-btn { display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 17px; text-decoration: none; padding: 14px 22px; border-radius: 12px; transition: transform .15s var(--ease-out), box-shadow .15s var(--ease-out), background-color .15s; }
.lp-btn-gold { color: var(--text); background: linear-gradient(180deg, #F2CD6B, #D9A437); box-shadow: inset 0 1px 0 rgb(255 255 255 / .35), 0 6px 16px rgb(0 0 0 / .25); }
.lp-btn-glass { color: #fff; background: rgb(255 255 255 / .12); border: 1px solid rgb(255 255 255 / .5); backdrop-filter: blur(6px); }
.lp-btn-sm { font-size: 15px; padding: 10px 18px; border-radius: 10px; }
@media (hover: hover) {
  .lp-btn-gold:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgb(255 255 255 / .35), 0 10px 22px rgb(0 0 0 / .3); }
  .lp-btn-glass:hover { background-color: rgb(255 255 255 / .2); }
}

/* Tarjeta de mercado: asoma por debajo de la foto */
.lp-market { position: relative; margin-bottom: -150px; display: flex; flex-direction: column; gap: 14px; padding: 20px 22px 22px; background: var(--surface); color: var(--text); border-radius: 18px; box-shadow: 0 24px 48px rgb(13 31 23 / .28), 0 4px 10px rgb(13 31 23 / .12); }
.lp-market-head { display: flex; justify-content: space-between; align-items: baseline; }
.lp-market-head h2 { margin: 0; font-family: var(--font-head); font-weight: 500; font-size: 18px; }
.lp-market-head span { font-size: 14px; color: var(--text-muted); }
.lp-quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.lp-quotes a { display: flex; flex-direction: column; gap: 1px; padding: 8px 10px; border-radius: 10px; background: var(--accent-tint); color: inherit; text-decoration: none; }
.lp-quotes a:hover { background: #D5E4DB; }
.lp-quotes span { font-size: 12px; color: var(--text-muted); }
.lp-quotes b { font-family: var(--font-head); font-weight: 500; font-size: 17px; font-variant-numeric: tabular-nums; }
.lp-quotes em { font-style: normal; font-size: 12px; font-weight: 600; }
.lp-up { color: var(--ok-fg); }
.lp-down { color: var(--crit-fg); }

/* Del campo a la venta */
main { flex: 1; }
.lp-steps { padding: 96px var(--lp-gutter) 80px; }
.lp-steps h2 { font-family: var(--font-head); font-weight: 500; font-size: clamp(26px, 3vw, 32px); letter-spacing: -0.02em; margin: 0 0 8px; text-wrap: balance; }
.lp-steps-sub { margin: 0 0 32px; font-size: 18px; color: var(--text-muted); }
.lp-steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.lp-steps figure { margin: 0; display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.lp-steps img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.lp-steps figcaption { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 6px 10px; padding: 18px 22px 22px; }
.lp-num { font-weight: 600; font-size: 13px; color: var(--accent); background: var(--accent-tint); border-radius: 999px; padding: 2px 9px; }
.lp-steps strong { font-family: var(--font-head); font-weight: 500; font-size: 19px; }
.lp-steps figcaption p { grid-column: 1 / -1; margin: 0; color: var(--text-muted); line-height: 1.45; }

/* Pie */
.lp-foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 24px var(--lp-gutter); border-top: 1px solid var(--line); font-size: 14px; color: var(--text-muted); }
.lp-foot a { color: var(--accent); font-weight: 600; text-decoration: none; }

/* Páginas públicas de precios (precio_cereal.html): barra sólida en vez de foto */
.lp-top-solid { background: rgb(var(--lp-night)); }
.pc { width: 100%; max-width: 1080px; margin: 0 auto; padding: 40px 16px 64px; display: flex; flex-direction: column; gap: 32px; }
.pc h1 { font-family: var(--font-head); font-weight: 500; font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 -16px; }
.pc h2 { font-family: var(--font-head); font-weight: 500; font-size: 22px; letter-spacing: -0.02em; margin: 0 0 12px; }
.pc h2 a { color: inherit; text-decoration: none; }
.pc a { color: var(--accent); text-underline-offset: 3px; }
.pc-lead { font-size: 18px; color: var(--text-muted); margin: 0; max-width: 62ch; }
.pc-migas { font-size: 14px; color: var(--text-muted); margin-bottom: -20px; }
.pc-mas { margin: 10px 0 0; font-weight: 600; }
.pc-tabla { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.pc-tabla table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.pc-tabla th, .pc-tabla td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.pc-tabla th[scope="row"], .pc-tabla thead th:first-child { text-align: left; font-weight: 500; }
.pc-tabla thead th { font-weight: 600; font-size: 14px; vertical-align: bottom; }
.pc-tabla thead th span { display: block; font-weight: 400; color: var(--text-muted); }
.pc-tabla tbody tr:last-child > * { border-bottom: 0; }
.pc-nota { font-size: 14px; color: var(--text-muted); margin: 8px 0 0; }
.pc-otros { display: flex; flex-wrap: wrap; gap: 8px 20px; font-weight: 600; }
.pc-fuente p { margin: 0; color: var(--text-muted); }
.pc-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; padding: 22px 24px; border-radius: 16px; background: var(--accent-tint); }
.pc-cta strong { font-family: var(--font-head); font-weight: 500; font-size: 20px; }
.pc-cta p { margin: 4px 0 0; max-width: 60ch; }

/* Tablet y móvil */
@media (max-width: 1080px) {
  .lp-hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .lp-market { max-width: 480px; }
}
@media (max-width: 720px) {
  :root { --lp-gutter: 16px; }
  .lp-top { padding: 16px; }
  .lp-top .lp-btn-sm { display: none; }
  .lp-hero { padding-bottom: 72px; background:
    linear-gradient(180deg, rgb(var(--lp-night) / .88) 0%, rgb(var(--lp-night) / .78) 60%, rgb(var(--lp-night) / .6) 100%),
    url("/static/img/hero-cosecha.webp") 70% center / cover no-repeat, #6f6448; }
  .lp-hero-inner { padding-top: 24px; }
  .lp-lead { font-size: 18px; }
  .lp-ctas, .lp-ctas .lp-btn { width: 100%; }
  .lp-market { margin-bottom: -120px; }
  .lp-quotes { grid-template-columns: 1fr; }
  .lp-quotes a { flex-direction: row; align-items: baseline; gap: 8px; }
  .lp-quotes span { flex: 1; }
  .lp-steps { padding-top: 160px; padding-bottom: 56px; }
  .lp-steps-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .lp-dot { animation: none; } .lp-btn { transition: none; } }

/* Enlaces de la cabecera (portada y páginas de precios). */
.lp-nav { display: flex; align-items: center; gap: 20px; }
.lp-nav > a:not(.lp-btn) { color: #fff; font-weight: 600; font-size: 15px; text-decoration: none; }
.lp-nav > a:not(.lp-btn):hover, .lp-nav > a[aria-current] { text-decoration: underline; text-underline-offset: 4px; }
.lp-market-mas { align-self: flex-start; font-weight: 600; font-size: 15px; color: var(--accent-strong); text-decoration: underline; text-underline-offset: 3px; }
