/*
  TOKENS DE DISEÑO — Home comercial de AI Landscape Designer
  -------------------------------------------------------------
  Identidad DISTINTA del workspace (que sigue oscuro/técnico, en /app).
  Acá: editorial, cálido, "architecture + interior design magazine", no
  "AI startup" — sin negro-neón, sin gradientes excesivos, sin stock photos
  genéricas. Misma marca (el ícono de mira/compás), mismo verde salvia como
  hilo conductor entre las dos identidades, pero sobre paleta clara.
*/

:root {
  --bg: #f7f5ee;
  --bg-alt: #efece0;
  --surface: #ffffff;
  --ink: #1c231b;
  --ink-dim: #5b6357;
  --line: rgba(28, 35, 27, 0.1);
  --line-strong: rgba(28, 35, 27, 0.18);

  --green-deep: #22392b;
  --green-deep-hover: #1a2c21;
  --sage: #7c9473;
  --stone: #a9a28f;
  --sand: #d9cfb8;

  --font-display: 'Fraunces', serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --radius: 4px;
  --radius-lg: 6px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

.eyebrow {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--sage); margin: 0 0 10px;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  padding: 14px 26px; border-radius: var(--radius); cursor: pointer; border: 1px solid transparent;
  text-decoration: none; transition: transform .12s, background .15s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--green-deep); color: var(--bg); }
.btn-primary:hover { background: var(--green-deep-hover); }
.btn-outline { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-outline:hover { border-color: var(--green-deep); }
.btn-lg { padding: 16px 34px; font-size: 16px; }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; background: rgba(247, 245, 238, 0.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 24px; padding: 16px 20px; max-width: 1160px; margin: 0 auto; }
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand-mark {
  width: 26px; height: 26px; border: 1.5px solid var(--green-deep); border-radius: 50%; position: relative; flex-shrink: 0;
}
.brand-mark::before, .brand-mark::after { content: ''; position: absolute; background: var(--green-deep); opacity: .6; }
.brand-mark::before { width: 1px; height: 26px; left: 50%; top: -1px; transform: translateX(-50%); }
.brand-mark::after { height: 1px; width: 26px; top: 50%; left: -1px; transform: translateY(-50%); }
.nav-brand-name { font-family: var(--font-display); font-size: 17px; font-weight: 500; color: var(--ink); }
.nav-links { display: none; gap: 28px; font-size: 14px; color: var(--ink-dim); }
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-signin { font-size: 14px; color: var(--ink-dim); text-decoration: none; display: none; }

/* ---------- HERO ---------- */
.hero { padding: 64px 0 40px; }
.hero-inner { max-width: 720px; }
.hero h1 {
  font-family: var(--font-display); font-weight: 500; font-size: 40px; line-height: 1.12;
  letter-spacing: -.01em; margin: 0 0 20px;
}
.hero p.lead { font-size: 18px; color: var(--ink-dim); line-height: 1.6; margin: 0 0 32px; max-width: 540px; }
.hero-ctas { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.hero-trust { font-family: var(--font-mono); font-size: 12px; color: var(--stone); letter-spacing: .02em; }

.hero-visual {
  margin-top: 40px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-strong);
  background-color: var(--bg-alt); background-size: cover; background-position: center;
  aspect-ratio: 16 / 10; position: relative;
}
/* La foto se pasa inline (style="background-image:...") desde el HTML — una por
   sección, ver /images/. Todas de Unsplash, licencia comercial libre. Reemplazar
   por renders reales generados con la propia app en cuanto haya buenos ejemplos. */
.hero-visual-label {
  position: absolute; bottom: 16px; left: 16px; background: rgba(255,255,255,.85); backdrop-filter: blur(4px);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 20px; color: var(--green-deep);
}
.hero-visual-flow {
  position: absolute; top: 16px; left: 16px; right: 16px; display: flex; gap: 8px; flex-wrap: wrap;
}
.hero-flow-chip {
  background: rgba(255,255,255,.9); font-family: var(--font-mono); font-size: 10px; text-transform: uppercase;
  letter-spacing: .05em; padding: 5px 10px; border-radius: 20px; color: var(--ink-dim);
}

/* ---------- SECTION SHARED ---------- */
section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 620px; margin-bottom: 40px; }
.section-head h2 { font-family: var(--font-display); font-weight: 500; font-size: 30px; line-height: 1.2; margin: 0 0 12px; }
.section-head p { color: var(--ink-dim); font-size: 16px; line-height: 1.6; margin: 0; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- TRUST STRIP ---------- */
.trust-strip { padding: 36px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-line { text-align: center; font-family: var(--font-display); font-size: 19px; margin: 0 0 28px; }
.trust-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.trust-item { text-align: center; }
.trust-item .mark { font-size: 22px; margin-bottom: 8px; }
.trust-item h3 { font-size: 15px; margin: 0 0 6px; font-weight: 600; }
.trust-item p { font-size: 14px; color: var(--ink-dim); margin: 0; line-height: 1.5; }

/* ---------- HOW IT WORKS ---------- */
.steps { display: grid; grid-template-columns: 1fr; gap: 28px; }
.step { border-top: 1px solid var(--line-strong); padding-top: 18px; }
.step-num { font-family: var(--font-mono); font-size: 12px; color: var(--sage); margin: 0 0 8px; }
.step h3 { font-family: var(--font-display); font-size: 20px; font-weight: 500; margin: 0 0 8px; }
.step p { color: var(--ink-dim); font-size: 14px; line-height: 1.55; margin: 0; }

/* ---------- BEFORE/AFTER ---------- */
.ba-card { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-strong); background: var(--surface); margin-bottom: 20px; }
.ba-slider { position: relative; aspect-ratio: 4/3; overflow: hidden; touch-action: pan-y; cursor: ew-resize; background-color: var(--bg-alt); }
.ba-before, .ba-after {
  position: absolute; inset: 0; background-size: cover; background-position: center;
}
.ba-after { clip-path: inset(0 50% 0 0); }
.ba-tag {
  position: absolute; top: 12px; z-index: 2; pointer-events: none;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(255, 255, 255, .88); backdrop-filter: blur(3px);
  padding: 5px 10px; border-radius: 20px; color: var(--green-deep);
}
.ba-tag-before { left: 12px; }
.ba-tag-after { right: 12px; }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: var(--surface);
  transform: translateX(-1px); pointer-events: none; z-index: 1;
}
.ba-handle::after {
  content: '↔'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 36px; height: 36px; background: var(--surface); border-radius: 50%; display: flex;
  align-items: center; justify-content: center; font-size: 14px; box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.ba-range {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; z-index: 3;
}
.ba-label { display: flex; justify-content: space-between; padding: 12px 16px; font-size: 13px; color: var(--ink-dim); gap: 12px; }

/* ---------- FOR WHOM ---------- */
.profiles-primary { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 16px; }
.profile-card {
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg); padding: 28px; background: var(--surface);
}
.profile-card .mark { font-size: 26px; margin-bottom: 12px; }
.profile-card h3 { font-family: var(--font-display); font-size: 22px; font-weight: 500; margin: 0 0 8px; }
.profile-card p { color: var(--ink-dim); font-size: 14px; line-height: 1.55; margin: 0 0 16px; }
.profiles-secondary { display: flex; flex-wrap: wrap; gap: 10px; }
.profile-chip {
  font-size: 13px; padding: 9px 16px; border-radius: 20px; border: 1px solid var(--line-strong); color: var(--ink-dim);
}

/* ---------- STYLES GALLERY ---------- */
.styles-scroller {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px;
  margin: 0 -20px; padding-left: 20px; padding-right: 20px;
}
.style-card {
  scroll-snap-align: start; flex: 0 0 220px; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line-strong); background: var(--surface);
}
.style-card-media { aspect-ratio: 3/4; background-color: var(--bg-alt); background-size: cover; background-position: center; }
.style-card-body { padding: 14px; }
.style-card h3 { font-family: var(--font-display); font-size: 16px; margin: 0 0 4px; }
.style-card p { font-size: 12px; color: var(--ink-dim); margin: 0; line-height: 1.4; }

/* ---------- VALUE / PROFESSIONAL ---------- */
.value-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 12px; }
.value-list li { display: flex; gap: 10px; font-size: 15px; color: var(--ink-dim); align-items: flex-start; }
.value-list li::before { content: '—'; color: var(--sage); flex-shrink: 0; }
.value-note {
  margin-top: 28px; padding: 18px 20px; border-left: 2px solid var(--sage); background: var(--bg-alt);
  font-family: var(--font-display); font-size: 16px; font-style: italic; color: var(--ink);
}

/* ---------- FAQ ---------- */
.faq-item { border-top: 1px solid var(--line-strong); padding: 18px 0; }
.faq-item summary { cursor: pointer; font-weight: 600; font-size: 15px; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; float: right; color: var(--sage); }
.faq-item[open] summary::after { content: '–'; }
.faq-item p { color: var(--ink-dim); font-size: 14px; margin: 12px 0 0; line-height: 1.6; }

/* ---------- FINAL CTA ---------- */
.final-cta {
  background: var(--green-deep); color: var(--bg); text-align: center; padding: 80px 0;
}
.final-cta h2 { font-family: var(--font-display); font-weight: 500; font-size: 32px; margin: 0 0 12px; }
.final-cta p { color: rgba(247,245,238,.75); font-size: 16px; margin: 0 0 28px; }
.final-cta .btn-primary { background: var(--bg); color: var(--green-deep); }
.final-cta .btn-primary:hover { background: var(--sand); }
.final-cta .powered { margin-top: 20px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: rgba(247,245,238,.5); }

/* ---------- FOOTER ---------- */
.footer { padding: 32px 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-dim); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Desktop (900px+) ---------- */
@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-signin { display: inline; }

  .hero { padding: 100px 0 60px; }
  .hero h1 { font-size: 56px; }
  .hero p.lead { font-size: 20px; }
  .hero-ctas { flex-direction: row; }
  .hero-visual { aspect-ratio: 21/9; }

  .trust-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .profiles-primary { grid-template-columns: 1fr 1fr; }
  .section-head h2 { font-size: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}
