/* Kipo — landing. Paleta cálida (papel crema + verde bosque + dorado),
   deliberadamente distinta del modo oscuro de la app: una landing tiene que
   leerse a la primera, sin depender de que el visitante ya conozca la marca.
   Nada de iconografía de "IA" (sin robots, sin chips, sin badges "AI") —
   todo el vocabulario visual es el mismo de la app: hoja/brote/jardín. */
:root {
  --bg: #fbf8f1;
  --surface: #ffffff;
  --surface-alt: #f3ede0;
  --ink: #17301f;
  --ink-soft: #4b6358;
  --muted: #7c8f83;
  --border: #e5ddc9;
  --primary: #1f8f5b;
  --primary-deep: #123f37;
  --primary-soft: #e4f3ea;
  --gold: #b9832a;
  --gold-soft: #f7ecd6;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow: 0 12px 32px rgba(23, 48, 31, 0.08);
  --max-width: 1120px;
  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif; color: var(--ink); margin: 0 0 0.5em; line-height: 1.15; }
p { margin: 0 0 1em; color: var(--ink-soft); }
a { color: var(--primary); text-decoration: none; }
img, svg { display: block; max-width: 100%; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(251, 248, 241, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 20px; color: var(--ink); }
.brand svg { width: 30px; height: 30px; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { color: var(--ink-soft); font-weight: 600; font-size: 14.5px; }
.main-nav a:hover { color: var(--primary); }
/* Bajo 860px los links de texto se amontonaban contra el logo (sin espacio
   para "Cómo funciona / Precios / Preguntas frecuentes" en una sola fila) —
   el header móvil se queda solo con la marca; los mismos destinos ya están
   cubiertos por los CTA y el scroll natural de la propia página. */
.nav-link { display: none; }
@media (min-width: 860px) { .nav-link { display: inline; } }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 14.5px;
  border: 1px solid transparent; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(31, 143, 91, 0.28); }
.btn-primary:hover { color: #fff; }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--ink); }
.btn-ghost:hover { color: var(--ink); border-color: var(--primary); }
/* El CTA sí se ve siempre (incluido en móvil, sin los links de texto de al
   lado) — es la única forma de llegar a "Descargar" desde el header ahora
   que .nav-link se esconde bajo 860px. */

/* Hero */
.hero { padding: 72px 0 56px; }
.hero .container { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero .container { grid-template-columns: 1.1fr 0.9fr; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary-deep); font-weight: 700; font-size: 13px; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(32px, 5vw, 48px); max-width: 15ch; }
.hero .lead { font-size: 18px; max-width: 46ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.trust-line { margin-top: 16px; font-size: 13px; color: var(--muted); }

.hero-art {
  background: linear-gradient(160deg, var(--primary-deep), #1c5443);
  border-radius: var(--radius-lg);
  padding: 32px;
  color: #fff;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.hero-art .balance-card { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16); border-radius: var(--radius-md); padding: 20px; backdrop-filter: blur(6px); }
.hero-art .balance-row { display: flex; justify-content: space-between; margin-bottom: 14px; }
.hero-art .balance-row span { display: block; font-size: 12px; opacity: 0.75; }
.hero-art .balance-row strong { font-family: 'Outfit', sans-serif; font-size: 20px; }
.hero-art .track { height: 8px; border-radius: 99px; background: rgba(255,255,255,0.22); overflow: hidden; margin: 14px 0 8px; }
.hero-art .track > span { display: block; height: 100%; width: 68%; background: var(--gold); }
.hero-art .caption { font-size: 12px; opacity: 0.85; }
.hero-art .leaf-deco { position: absolute; opacity: 0.18; }

/* Generic section */
.section { padding: 72px 0; }
.section-alt { background: var(--surface-alt); }
.section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section-head h2 { font-size: clamp(26px, 3.6vw, 34px); }

/* Steps */
.steps { display: grid; gap: 24px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 28px; }
.step .step-num { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; background: var(--gold-soft); color: var(--gold); font-family: 'Outfit', sans-serif; font-weight: 700; margin-bottom: 16px; }
.step h3 { font-size: 18px; }
.step p { font-size: 14.5px; margin-bottom: 0; }

/* Features */
.features-grid { display: grid; gap: 20px; }
@media (min-width: 700px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: repeat(4, 1fr); } }
.feature-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 24px; }
.feature-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--primary-soft); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 { font-size: 16px; }
.feature-card p { font-size: 13.5px; margin-bottom: 0; }

/* Pricing */
.pricing-grid { display: grid; gap: 24px; max-width: 820px; margin: 0 auto; }
@media (min-width: 700px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
.price-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; }
.price-card.featured { border-color: var(--gold); box-shadow: var(--shadow); position: relative; }
.price-card .badge { position: absolute; top: -13px; left: 28px; background: var(--gold); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.price-card h3 { font-size: 18px; margin-bottom: 4px; }
.price-card .price { font-family: 'Outfit', sans-serif; font-size: 36px; color: var(--ink); margin: 12px 0 4px; }
.price-card .price span { font-size: 14px; color: var(--muted); font-family: 'Plus Jakarta Sans', sans-serif; }
.price-card ul { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 10px; }
.price-card li { display: flex; gap: 10px; font-size: 14px; color: var(--ink-soft); }
.price-card li svg { flex-shrink: 0; width: 18px; height: 18px; color: var(--primary); margin-top: 1px; }
.price-note { text-align: center; font-size: 13px; color: var(--muted); margin-top: 24px; }

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.faq-item summary { cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 700; font-size: 15.5px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 20px; color: var(--primary); transition: transform 0.2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-answer { padding: 0 22px 20px; font-size: 14.5px; color: var(--ink-soft); }

/* Final CTA */
.final-cta { background: var(--primary-deep); color: #fff; text-align: center; border-radius: var(--radius-lg); padding: 56px 32px; }
.final-cta h2 { color: #fff; }
.final-cta p { color: rgba(255,255,255,0.82); max-width: 46ch; margin-left: auto; margin-right: auto; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--ink-soft); font-size: 13.5px; }
.footer-note { font-size: 13px; color: var(--muted); }

/* Kipobot widget */
#kipobot-launcher {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: flex; align-items: center; gap: 10px;
  background: var(--primary); color: #fff; border: none; border-radius: 999px;
  padding: 14px 20px; font-weight: 700; font-size: 14px; cursor: pointer;
  box-shadow: 0 14px 30px rgba(31, 143, 91, 0.35);
}
#kipobot-launcher svg { width: 20px; height: 20px; }
#kipobot-panel {
  position: fixed; right: 20px; bottom: 90px; z-index: 60;
  width: min(360px, calc(100vw - 40px)); max-height: min(520px, calc(100vh - 140px));
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); display: none; flex-direction: column; overflow: hidden;
}
#kipobot-panel.open { display: flex; }
.kipobot-head { background: var(--primary-deep); color: #fff; padding: 16px 18px; display: flex; align-items: center; gap: 10px; }
.kipobot-head strong { display: block; font-size: 14.5px; }
.kipobot-head span { display: block; font-size: 12px; opacity: 0.75; }
.kipobot-close { margin-left: auto; background: none; border: none; color: #fff; font-size: 18px; cursor: pointer; opacity: 0.8; }
.kipobot-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--surface-alt); }
.kipobot-msg { max-width: 85%; padding: 10px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.45; }
.kipobot-msg.bot { align-self: flex-start; background: var(--surface); border: 1px solid var(--border); color: var(--ink); }
.kipobot-msg.user { align-self: flex-end; background: var(--primary); color: #fff; }
.kipobot-suggestions { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 12px; background: var(--surface-alt); }
.kipobot-suggestion { border: 1px solid var(--border); background: var(--surface); color: var(--ink-soft); font-size: 12px; padding: 6px 10px; border-radius: 999px; cursor: pointer; }
.kipobot-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); background: var(--surface); }
.kipobot-form input { flex: 1; min-width: 0; border: 1px solid var(--border); border-radius: 999px; padding: 10px 14px; font-size: 13.5px; font-family: inherit; }
.kipobot-form input:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.kipobot-form button { border: none; background: var(--primary); color: #fff; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; flex-shrink: 0; }
.kipobot-disclaimer { font-size: 10.5px; color: var(--muted); text-align: center; padding: 0 12px 10px; }

/* Legal pages */
.legal { max-width: 760px; margin: 0 auto; padding: 56px 24px 96px; }
.legal h1 { font-size: 30px; }
.legal h2 { font-size: 20px; margin-top: 32px; }
.legal p, .legal li { color: var(--ink-soft); font-size: 15px; }
