/* ============================================================
   ZAPVIZ — Landing de plataforma
   Dirección visual "Cinema": grafito + hueso + brass
   ============================================================ */

:root {
  /* Paleta Cinema */
  --graphite:      #14161A;
  --graphite-2:    #1B1E24;
  --graphite-3:    #22262E;
  --bone:          #ECE7DD;
  --bone-dim:      #B7B2A8;
  --bone-faint:    #8A8579;
  --brass:         #D4A24C;
  --brass-hi:      #E3B968;
  --line:          rgba(236,231,221,.12);
  --line-soft:     rgba(236,231,221,.07);

  /* Estados CRM (coherencia con el builder) */
  --ok:   #6FBF73;
  --bad:  #D9534F;

  --maxw: 1180px;

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--graphite);
  color: var(--bone);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; letter-spacing: -.01em; }

a { color: inherit; text-decoration: none; }

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

/* ---------- Eyebrow (numerada, estilo blueprint) ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--bone-faint);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.eyebrow.center { justify-content: center; }
.eyebrow-num { color: var(--brass); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 13px 24px;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.btn-brass { background: var(--brass); color: var(--graphite); font-weight: 500; }
.btn-brass:hover { background: var(--brass-hi); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--bone); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--bone-dim); transform: translateY(-2px); }
.btn-lg { padding: 16px 34px; font-size: 14px; }

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(20,22,26,.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
  transition: background .3s ease;
}
.nav.scrolled { background: rgba(20,22,26,.94); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 3px;
  background: var(--brass); color: var(--graphite);
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
  display: grid; place-items: center;
}
.brand-word { font-family: var(--font-display); font-weight: 600; letter-spacing: .14em; font-size: 15px; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { font-size: 14px; color: var(--bone-dim); transition: color .18s ease; }
.nav-links a:hover { color: var(--bone); }
.nav-cta { padding: 9px 18px; }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 120px 0 80px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: grayscale(.35) brightness(.42) contrast(1.05);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,22,26,.55) 0%, rgba(20,22,26,.82) 60%, var(--graphite) 100%);
}
/* Grilla blueprint sutil */
.hero-grain {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 78%);
}
.hero-inner { position: relative; z-index: 2; max-width: 860px; }
.hero-title { font-size: clamp(38px, 6.2vw, 74px); font-weight: 700; margin-bottom: 22px; }
.hero-title .accent { color: var(--brass); }
.hero-sub { font-size: clamp(16px, 2vw, 20px); color: var(--bone-dim); max-width: 640px; margin-bottom: 34px; }
.hero-sub strong { color: var(--bone); font-weight: 600; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 56px; }

.hero-stats { list-style: none; display: flex; gap: 48px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 26px; }
.hero-stats li { display: flex; flex-direction: column; gap: 4px; }
.stat-num { font-family: var(--font-display); font-size: 34px; font-weight: 700; color: var(--bone); }
.stat-lbl { font-family: var(--font-mono); font-size: 12px; letter-spacing: .05em; color: var(--bone-faint); text-transform: uppercase; }

/* ---------- LOGOS ---------- */
.logos { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); padding: 34px 0; background: var(--graphite-2); }
.logos-label { text-align: center; font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--bone-faint); margin-bottom: 20px; }
.logos-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 20px 54px; }
.logos-row span { font-family: var(--font-display); font-weight: 500; font-size: clamp(16px, 2.4vw, 24px); color: var(--bone-dim); opacity: .72; letter-spacing: .02em; transition: opacity .2s ease, color .2s ease; }
.logos-row span:hover { opacity: 1; color: var(--bone); }

/* ---------- SECCIONES base ---------- */
.section { padding: 100px 0; }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 16px; }
.lead { font-size: 18px; color: var(--bone-dim); }
.lead.center { text-align: center; }

.ticks { list-style: none; margin-top: 26px; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 28px; color: var(--bone-dim); }
.ticks li::before { content: "→"; position: absolute; left: 0; color: var(--brass); font-family: var(--font-mono); }

/* ---------- PRODUCTO · DEMO EN VIVO ---------- */
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: var(--graphite-3); border-bottom: 1px solid var(--line-soft); }
.browser-bar span { width: 11px; height: 11px; border-radius: 50%; background: var(--bone-faint); opacity: .5; }
.browser-bar i { margin-left: 12px; font-family: var(--font-mono); font-size: 12px; font-style: normal; color: var(--bone-faint); }

.demo-frame {
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  background: var(--graphite-2); box-shadow: 0 40px 100px rgba(0,0,0,.55);
  max-width: 1040px; margin: 0 auto;
}
.demo-open {
  margin-left: auto; font-family: var(--font-mono); font-size: 12px;
  letter-spacing: .04em; color: var(--brass); padding: 4px 10px;
  border: 1px solid rgba(212,162,76,.4); border-radius: 3px; transition: background .18s ease, color .18s ease;
}
.demo-open:hover { background: var(--brass); color: var(--graphite); }

.demo-stage { position: relative; width: 100%; aspect-ratio: 16/10; background: var(--graphite); }
.demo-iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }

/* Overlay: evita robar el scroll y aclara que es interactivo. Se oculta al activar. */
.demo-overlay {
  position: absolute; inset: 0; z-index: 2; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: rgba(20,22,26,.28); backdrop-filter: blur(1px);
  border: 0; color: var(--bone); transition: opacity .3s ease;
}
.demo-overlay.hidden { opacity: 0; pointer-events: none; }
.demo-play {
  width: 66px; height: 66px; border-radius: 50%;
  background: var(--brass); color: var(--graphite);
  display: grid; place-items: center; font-size: 28px; padding-left: 4px;
  box-shadow: 0 10px 40px rgba(212,162,76,.4);
}
.demo-hint { font-family: var(--font-mono); font-size: 13px; letter-spacing: .05em; text-transform: uppercase; color: var(--bone); text-shadow: 0 2px 12px rgba(0,0,0,.6); }

.demo-ticks {
  list-style: none; max-width: 1040px; margin: 26px auto 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.demo-ticks li { position: relative; padding-left: 26px; font-size: 14.5px; color: var(--bone-dim); }
.demo-ticks li::before { content: "→"; position: absolute; left: 0; color: var(--brass); font-family: var(--font-mono); }

/* ---------- FEATURES ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: 8px; overflow: hidden; }
.feat { background: var(--graphite-2); padding: 30px 26px; transition: background .2s ease; }
.feat:hover { background: var(--graphite-3); }
.feat-ico { font-size: 24px; color: var(--brass); margin-bottom: 16px; line-height: 1; }
.feat h3 { font-size: 17px; margin-bottom: 8px; }
.feat p { font-size: 14.5px; color: var(--bone-dim); }

/* ---------- DIFERENCIA ---------- */
.diff { background: var(--graphite-2); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.diff-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.diff-media { position: relative; }
.diff-render { border-radius: 8px; border: 1px solid var(--line); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.diff-plan { position: absolute; width: 42%; right: -14px; bottom: -20px; border-radius: 6px; border: 1px solid var(--brass); background: var(--graphite); box-shadow: 0 20px 50px rgba(0,0,0,.55); }
.diff-copy h2 { font-size: clamp(28px, 3.6vw, 42px); margin-bottom: 18px; }
.diff-copy .accent { color: var(--brass); }

.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 30px; }
.vs-col { border: 1px solid var(--line); border-radius: 6px; padding: 20px; background: var(--graphite); }
.vs-tag { font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; display: block; margin-bottom: 14px; }
.vs-bad .vs-tag { color: var(--bad); }
.vs-good { border-color: rgba(212,162,76,.4); }
.vs-good .vs-tag { color: var(--brass); }
.vs-col ul { list-style: none; display: grid; gap: 9px; }
.vs-col li { font-size: 14px; color: var(--bone-dim); padding-left: 22px; position: relative; }
.vs-bad li::before { content: "✕"; position: absolute; left: 0; color: var(--bad); }
.vs-good li::before { content: "✓"; position: absolute; left: 0; color: var(--brass); }

/* ---------- PANEL ---------- */
.panel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.pcard { border: 1px solid var(--line); border-radius: 8px; padding: 28px 24px; background: var(--graphite-2); transition: border-color .2s ease, transform .2s ease; }
.pcard:hover { border-color: rgba(212,162,76,.35); transform: translateY(-3px); }
.pcard h3 { font-size: 18px; margin-bottom: 10px; }
.pcard p { font-size: 14.5px; color: var(--bone-dim); }

/* ---------- BENEFICIOS ---------- */
.benefits { background: var(--graphite-2); border-top: 1px solid var(--line-soft); }
.ben-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.ben { border-top: 2px solid var(--brass); padding-top: 22px; }
.ben-num { font-family: var(--font-mono); font-size: 13px; color: var(--brass); letter-spacing: .1em; }
.ben h3 { font-size: 21px; margin: 10px 0 12px; }
.ben p { color: var(--bone-dim); }

/* ---------- TESTIMONIOS ---------- */
.quote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; }
.quote { border: 1px solid var(--line); border-radius: 8px; padding: 30px 28px; background: var(--graphite-2); }
.quote p { font-family: var(--font-display); font-size: 18px; font-weight: 400; line-height: 1.45; margin-bottom: 22px; color: var(--bone); }
.quote footer { display: flex; flex-direction: column; gap: 2px; }
.quote footer strong { font-size: 14px; }
.quote footer span { font-family: var(--font-mono); font-size: 12px; color: var(--bone-faint); }

/* ---------- CTA ---------- */
.cta { background: linear-gradient(180deg, var(--graphite) 0%, var(--graphite-2) 100%); border-top: 1px solid var(--line-soft); }
.cta-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.cta-inner h2 { font-size: clamp(30px, 4.4vw, 48px); margin-bottom: 16px; }
.cta-form { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; text-align: left; }
.field-full { grid-column: 1 / -1; }
.cta-form input, .cta-form textarea {
  width: 100%; padding: 15px 16px; background: var(--graphite); border: 1px solid var(--line);
  border-radius: 4px; color: var(--bone); font-family: var(--font-body); font-size: 15px;
  transition: border-color .18s ease;
}
.cta-form input:focus, .cta-form textarea:focus { outline: none; border-color: var(--brass); }
.cta-form textarea { min-height: 110px; resize: vertical; }
.cta-form .btn { grid-column: 1 / -1; justify-self: center; }
.form-msg { grid-column: 1 / -1; text-align: center; font-size: 14px; color: var(--brass); min-height: 20px; }

/* ---------- FOOTER ---------- */
.footer { border-top: 1px solid var(--line); padding: 44px 0; background: var(--graphite); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand strong { font-family: var(--font-display); letter-spacing: .14em; }
.footer-brand p { font-size: 13px; color: var(--bone-faint); }
.footer-meta { text-align: right; }
.footer-meta p { font-size: 13px; color: var(--bone-faint); font-family: var(--font-mono); }
.footer-credit { color: var(--brass) !important; margin-top: 4px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .diff-inner { grid-template-columns: 1fr; gap: 40px; }
  .diff-plan { position: static; width: 55%; margin-top: 16px; }
  .hero-stats { gap: 30px; }
  .demo-stage { aspect-ratio: 3/4; }
  .demo-ticks { grid-template-columns: 1fr; gap: 10px; max-width: 460px; }
  .cta-form { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-meta { text-align: center; }
}
