/* ============================================================
   Reportia — landing (reportia.cl)
   Identidad compartida con la app: grafito + azul + verde señal,
   Space Grotesk (display) + Inter (texto).
   ============================================================ */

:root {
  --ink: #0e1a2b;        /* grafito */
  --ink-2: #14263c;      /* grafito un tono más claro */
  --ink-soft: #8da0bc;   /* texto tenue sobre grafito */
  --bg: #eef1f6;
  --surface: #ffffff;
  --surface-2: #f5f8fc;
  --text: #16202e;
  --muted: #5b6b81;
  --primary: #1f6feb;
  --primary-strong: #175ec7;
  --primary-tint: #e8f0fe;
  --signal: #17b26a;     /* verde: informe terminado / firmado */
  --border: #e4e8ee;
  --border-strong: #d3dae4;
  --radius: 16px;
  --radius-sm: 11px;
  --shadow-sm: 0 1px 2px rgba(14, 26, 43, 0.06);
  --shadow-md: 0 10px 30px rgba(14, 26, 43, 0.12);
  --shadow-lg: 0 30px 70px rgba(6, 14, 26, 0.45);
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 10px 0;
  z-index: 50;
}
.skip:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- Botones ---------- */
.btn {
  --_bg: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 11px 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 18px rgba(31, 111, 235, 0.28);
}
.btn-primary:hover { background: var(--primary-strong); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--surface); }
.btn-lg { padding: 14px 26px; font-size: 1.05rem; border-radius: 13px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px clamp(18px, 4vw, 40px);
  background: rgba(238, 241, 246, 0.82);
  backdrop-filter: saturate(1.4) blur(10px);
}
.wordmark { display: inline-flex; align-items: center; gap: 10px; }
.mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}
.wordmark-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.28rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.nav-links {
  display: flex;
  gap: 24px;
  margin-left: auto;
  font-weight: 500;
  color: var(--muted);
}
.nav-links a:hover { color: var(--ink); }
.nav-cta { margin-left: 4px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 120% at 80% -10%, var(--ink-2) 0%, var(--ink) 55%);
  color: #fff;
}
/* Firma: fondo tipo plano técnico (blueprint) */
.hero-grid {
  position: absolute;
  inset: -2px;
  background-image:
    linear-gradient(rgba(122, 162, 226, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 162, 226, 0.10) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(120% 90% at 70% 0%, #000 30%, transparent 78%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) clamp(18px, 4vw, 40px) clamp(64px, 9vw, 110px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 4px rgba(23, 178, 106, 0.22);
}
.hero-title {
  font-size: clamp(2.1rem, 5.2vw, 3.5rem);
  font-weight: 700;
  color: #fff;
  max-width: 15ch;
}
.hero-title em {
  font-style: normal;
  color: #7fd7ab;                 /* verde señal aclarado sobre grafito */
  text-decoration: underline;
  text-decoration-color: rgba(23, 178, 106, 0.45);
  text-underline-offset: 6px;
  text-decoration-thickness: 3px;
}
.hero-sub {
  margin: 22px 0 30px;
  font-size: 1.12rem;
  color: #cdd7e6;
  max-width: 46ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.28); }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.hero-note { margin: 22px 0 0; font-size: 0.9rem; color: var(--ink-soft); }

/* ---------- Maqueta de informe (signature) ---------- */
.report-card {
  background: var(--surface);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow-lg);
  transform: rotate(1.4deg);
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.6);
}
.report-head { display: flex; align-items: center; gap: 12px; }
.report-logo {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  background: var(--ink);
}
.report-head-text { display: flex; flex-direction: column; line-height: 1.3; }
.report-head-text strong { font-family: var(--font-display); font-size: 0.98rem; }
.report-head-text span { font-size: 0.78rem; color: var(--muted); }
.report-badge {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--signal);
  background: rgba(23, 178, 106, 0.12);
  padding: 5px 10px;
  border-radius: 999px;
}
.report-photos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.report-photos span {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  background: linear-gradient(135deg, #dbe6f7, #eef3fb);
}
.report-photos span:nth-child(2) { background: linear-gradient(135deg, #d7efe1, #e9f7f0); }
.report-photos span:nth-child(3) { background: linear-gradient(135deg, #e3e0f6, #f0eefb); }
.report-lines { display: flex; flex-direction: column; gap: 9px; }
.report-lines span { height: 9px; border-radius: 5px; background: #e7ecf3; }
.report-lines span.short { width: 55%; }
.report-signs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding-top: 6px;
}
.sign { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.sign .squiggle { width: 100%; height: 26px; color: var(--ink); opacity: 0.7; }
.sign span {
  font-size: 0.72rem;
  color: var(--muted);
  border-top: 1px solid var(--border-strong);
  padding-top: 5px;
  width: 100%;
  text-align: center;
}

/* ---------- Secciones genéricas ---------- */
.section-eyebrow {
  margin: 0 0 12px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
}
.section-title {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  max-width: 20ch;
}
.band, .features, .how {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) clamp(18px, 4vw, 40px);
}

/* ---------- Verticales ---------- */
.verticals {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.verticals li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: var(--shadow-sm);
}
.verticals strong { font-family: var(--font-display); font-size: 1.02rem; color: var(--ink); }
.v-sub { font-size: 0.86rem; color: var(--muted); }
.v-icon {
  width: 42px; height: 42px; border-radius: 11px;
  background: var(--primary-tint);
  color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 8px;
}
.v-icon svg { width: 22px; height: 22px; }

/* ---------- Características ---------- */
.features { background: linear-gradient(180deg, var(--surface-2), var(--bg)); max-width: none; }
.features > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.feature-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}
.feature h3 { font-size: 1.22rem; margin: 16px 0 8px; }
.feature p { margin: 0; color: var(--muted); }
.f-icon {
  width: 50px; height: 50px; border-radius: 13px;
  background: var(--ink);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.f-icon svg { width: 26px; height: 26px; }

/* ---------- Cómo funciona ---------- */
.steps {
  list-style: none;
  counter-reset: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.steps li {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 8px;
  border-bottom: 1px solid var(--border);
}
.steps li:last-child { border-bottom: none; }
.step-n {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--primary-tint);
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  display: inline-flex; align-items: center; justify-content: center;
}
.steps strong { font-family: var(--font-display); font-size: 1.12rem; color: var(--ink); }
.steps p { margin: 2px 0 0; color: var(--muted); }

/* ---------- CTA final ---------- */
.cta {
  padding: clamp(20px, 4vw, 40px) clamp(18px, 4vw, 40px) clamp(56px, 8vw, 90px);
  max-width: var(--maxw);
  margin: 0 auto;
}
.cta-inner {
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 160% at 100% 0%, var(--ink-2), var(--ink) 60%);
  border-radius: 26px;
  padding: clamp(40px, 6vw, 68px);
  text-align: center;
  box-shadow: var(--shadow-md);
}
.cta-inner h2 { color: #fff; font-size: clamp(1.6rem, 3.6vw, 2.5rem); max-width: 22ch; margin: 0 auto; }
.cta-inner p { color: #cdd7e6; margin: 16px auto 28px; max-width: 40ch; }

/* ---------- Footer ---------- */
.foot {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px clamp(18px, 4vw, 40px) 56px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 40px;
}
.foot-brand { display: flex; flex-direction: column; gap: 4px; }
.foot-tag { font-size: 0.88rem; color: var(--muted); }
.foot-links { display: flex; flex-wrap: wrap; gap: 22px; margin-left: auto; font-weight: 500; color: var(--muted); }
.foot-links a:hover { color: var(--ink); }
.foot-legal { width: 100%; margin: 8px 0 0; font-size: 0.82rem; color: var(--muted); }

/* ---------- Reveal al hacer scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .report-card { transform: none; max-width: 460px; }
  .verticals { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .nav-links { display: none; }
  .verticals { grid-template-columns: 1fr; }
  .report-photos { grid-template-columns: repeat(4, 1fr); }
  .hero-actions .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}
