/* Paleta basada en el logo */
:root {
  --verde: #2e7d32;
  --verde-claro: #66bb6a;
  --beige: #fef6e7;
  --cafe: #a97438;
  --cafe-oscuro: #8b5e2f;
  --azul-oscuro: #0f2b3c;
  --gris-oscuro: #222;

  --radius: 14px;
  --shadow: 0 8px 24px rgba(15, 43, 60, 0.08);
}

/* Reset mínimo */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--azul-oscuro);
  background: radial-gradient(1000px 600px at 10% -10%, rgba(102,187,106,.12), transparent 60%),
              radial-gradient(1100px 700px at 110% -10%, rgba(169,116,56,.12), transparent 60%),
              var(--beige);
}

html { scroll-behavior: smooth; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(1100px, calc(100% - 32px));
  margin-inline: auto;
}

.narrow { width: min(820px, calc(100% - 32px)); }

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .9rem 1.2rem;
  border-radius: 9999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: .2s ease;
}
.btn--solid { background: var(--verde); color: #fff; box-shadow: var(--shadow); transition: transform .18s ease, filter .18s ease, box-shadow .18s ease; }
.btn--solid:hover { filter: brightness(0.97); transform: translateY(-1px); box-shadow: 0 10px 28px rgba(46,125,50,.18); }
.btn--ghost { border-color: rgba(15,43,60,.18); color: var(--azul-oscuro); background: #fff8; backdrop-filter: blur(6px); transition: transform .18s ease, background-color .18s ease, border-color .18s ease; }
.btn--ghost:hover { background: #fff; border-color: rgba(15,43,60,.28); transform: translateY(-1px); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(254, 246, 231, .85);
  backdrop-filter: saturate(120%) blur(8px);
  border-bottom: 1px solid rgba(15,43,60,.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-logo { width: 40px; height: 40px; object-fit: contain; border-radius: 8px; }
.brand-name { font-weight: 700; letter-spacing: .2px; color: var(--verde); }

.top-nav { display: flex; align-items: center; gap: 10px; }

/* Hero */
.hero { padding: 72px 0 36px; }
.hero-inner { display: grid; align-items: center; gap: 28px; grid-template-columns: 1fr; }
.hero-copy h1 { font-size: clamp(28px, 4.2vw, 44px); margin: 0 0 10px; line-height: 1.1; }
.hero-copy p { font-size: clamp(16px, 2.2vw, 19px); margin: 0; color: #2c4050; }
.hero-cta { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }

/* Social */
.social { padding: 28px 0 0; }
.social h2 { text-align: center; font-size: 1.4rem; margin: 0 0 14px; color: #2c4050; }
.social-links { list-style: none; padding: 0; margin: 0 auto; display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 10px; max-width: 820px; }
.social-links li { min-width: 0; }
.chip { display: block; text-align: center; padding: .8rem 1rem; border-radius: 12px; background: #fff; border: 1px solid rgba(15,43,60,.06); box-shadow: var(--shadow); font-weight: 600; transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease; }
.chip:hover { background: #fffdf9; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(15,43,60,.08); }

@media (max-width: 900px) { .social-links { grid-template-columns: repeat(2, 1fr); max-width: 480px; } }
@media (max-width: 560px) { .social-links { grid-template-columns: 1fr; max-width: 360px; } }

/* Features */
.features { padding: 36px 0; }
.features-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.card { background: #fff; border: 1px solid rgba(15,43,60,.06); box-shadow: var(--shadow); border-radius: var(--radius); padding: 18px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(15,43,60,.12); border-color: rgba(15,43,60,.12); }
.card h3 { margin: 0 0 6px; font-size: 1.05rem; color: var(--azul-oscuro); }
.card p { margin: 0; color: #2c4050; }
@media (max-width: 900px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features-grid { grid-template-columns: 1fr; } }

/* About */
.about { padding: 28px 0; }
.about h2 { text-align: center; margin: 0 0 12px; }
.about p { margin: 0 0 10px; color: #2c4050; }
.about-cta { margin-top: 12px; text-align: center; }

/* How it works */
.how { padding: 28px 0 40px; }
.how h2 { text-align: center; margin: 0 0 16px; }
.steps { list-style: none; padding: 0; margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; max-width: 820px; }
.steps li { display: grid; grid-template-columns: 36px 1fr; gap: 10px; align-items: start; padding: 14px; background: #fff; border: 1px solid rgba(15,43,60,.06); border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease; }
.steps li:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(15,43,60,.10); }
.step { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 9999px; background: var(--verde); color: #fff; font-weight: 700; }
.steps p { margin: 0; color: #2c4050; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { padding: 26px 0 40px; background: #fff; border-top: 1px solid rgba(15,43,60,.06); margin-top: 24px; }
.footer-card { text-align: center; margin-inline: auto; max-width: 780px; padding: 16px; border-radius: var(--radius); border: 1px solid rgba(15,43,60,.06); box-shadow: var(--shadow); background: #fff; }
.footer-card__head { display: inline-grid; align-items: center; gap: 10px; grid-auto-flow: column; margin-bottom: 8px; }
.badge18 { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 999px; background: var(--verde); color: #fff; font-weight: 700; }
.footer-card h4 { margin: 0; color: var(--azul-oscuro); }
.legal-list { list-style: none; padding: 0; margin: 12px auto 10px; max-width: clamp(520px, 64ch, 700px); text-align: left; }
.legal-list li { display: grid; grid-template-columns: 10px 1fr; column-gap: 10px; align-items: start; margin: 8px 0; line-height: 1.55; font-size: .98rem; }
.legal-list li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--verde); box-shadow: 0 0 0 2px rgba(102,187,106,.25) inset; margin-top: .55em; }
.help { margin-top: 12px; font-size: .95rem; }
.help a { color: var(--verde); text-decoration: underline; }
.footer-bottom { margin-top: 18px; display: grid; gap: 6px; justify-items: center; font-size: .9rem; color: #555; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); will-change: opacity, transform; transition: opacity .5s ease, transform .5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
[data-reveal="grid"] > .reveal { transition-delay: var(--stagger, 0ms); }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* Header responsiveness: prevent logo/nav overlap */
@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; row-gap: 10px; }
  .brand { width: 100%; display: flex; justify-content: center; }
  /* Double previous mobile size (34 -> 68) */
  .brand-logo { width: 68px; height: 68px; }
  .brand-name { font-size: 1rem; }
  .top-nav { flex: 1 0 100%; margin-left: 0; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
  .top-nav .btn { width: 100%; padding: .7rem .9rem; }
}

@media (max-width: 420px) {
  .brand-name { display: none; }
  .brand { gap: 8px; }
}

/* Desktop: double logo size */
@media (min-width: 1024px) {
  .brand-logo { width: 80px; height: 80px; }
}
