/* Web de presentación de Oclocky (oclocky.com).
   Estilo elegido por Joan el 2026-11-02: blanco y con mucho aire, un dibujo
   central de línea fina (hero.svg) y botones en píldora, inspirado en el
   enfoque de la web de Wacom ID (la idea, no su diseño). Los colores son los
   de la app: índigo de marca, el verde del anillo del logo y amarillo y rosa
   de acento en los dibujos. Sin librerías ni fuentes externas. */
:root {
  --bg: #ffffff;
  --soft: #f8fafc;      /* slate-50 */
  --line: #e2e8f0;      /* slate-200 */
  --text: #0f172a;      /* slate-900 */
  --muted: #475569;     /* slate-600 */
  --ink: #334155;       /* slate-700, el trazo de los dibujos */
  --brand: #4f46e5;     /* indigo-600, el cuadrado del icono */
  --brand-hover: #4338ca;
  --ok: #10b981;        /* emerald-500 */
  --t-indigo: #eef2ff;
  --t-green: #ecfdf5;
  --t-amber: #fffbeb;
  --t-rose: #fff1f2;
  --max: 1080px;
  --card: #ffffff;
  color-scheme: light;
}

/* Modo oscuro: sigue el del dispositivo, con los colores oscuros de la app
   (slate-950 de fondo, slate-900 en tarjetas). El índigo se aclara un punto
   para que se lea sobre oscuro. hero.svg lleva su propia versión oscura. */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #020617;
    --soft: #0b1120;
    --line: #1e293b;
    --text: #f1f5f9;
    --muted: #94a3b8;
    --ink: #cbd5e1;
    --brand: #6366f1;
    --brand-hover: #818cf8;
    --t-indigo: #1e1b4b;
    --t-green: #022c22;
    --t-amber: #2a1d05;
    --t-rose: #2a0a14;
    --card: #0f172a;
    color-scheme: dark;
  }
  /* Los dibujos de los cuadritos guardan sus colores de modo claro; solo
     se oscurece el fondo del cuadrito (Joan, 2026-11-02). */
  .pic { --ink: #334155; }
  .btn-ghost { background: transparent; }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--brand); }
a:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 999px;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--text); color: var(--bg); padding: 8px 12px; border-radius: 8px;
}
.skip:focus { left: 8px; }

/* ── Cabecera ─────────────────────────────────────────────────────────── */
header.top .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; min-height: 76px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none; font-weight: 700; font-size: 22px;
  letter-spacing: -0.01em;
}
.brand img { width: 34px; height: 34px; }
nav.links { display: flex; align-items: center; gap: 22px; font-size: 15px; font-weight: 600; }
nav.links a { color: var(--text); text-decoration: none; }
nav.links a:hover { color: var(--brand); }
nav.links a.signin { color: var(--brand); }

/* ── Botones ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-block; min-width: 170px; padding: 13px 30px; border-radius: 999px;
  font-weight: 700; font-size: 16px; text-decoration: none; text-align: center;
  border: 2px solid var(--brand);
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.btn-ghost { background: var(--card); color: var(--brand); }
.btn-ghost:hover { background: var(--t-indigo); }

/* ── Portada ──────────────────────────────────────────────────────────── */
.hero { padding-top: 24px; padding-bottom: 72px; text-align: center; }
.hero .art { display: block; width: 100%; max-width: 560px; height: auto; margin: 0 auto 28px; }
.hero h1 {
  margin: 0 auto 10px; max-width: 760px;
  font-size: clamp(32px, 5.5vw, 50px); line-height: 1.1; letter-spacing: -0.02em; font-weight: 800;
}
.hero p.lead { margin: 0 auto 30px; max-width: 600px; color: var(--muted); font-size: 19px; }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* ── Secciones ────────────────────────────────────────────────────────── */
section { padding: 72px 0; }
section.alt { background: var(--soft); }
section h2 {
  margin: 0 0 8px; text-align: center;
  font-size: clamp(26px, 4vw, 36px); line-height: 1.2; letter-spacing: -0.015em; font-weight: 800;
}
section p.sub { margin: 0 auto 44px; max-width: 600px; text-align: center; color: var(--muted); }

.grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 20px; padding: 26px 24px;
}
.card h3 { margin: 0 0 6px; font-size: 19px; font-weight: 700; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.card .pic {
  display: grid; place-items: center; width: 72px; height: 72px;
  margin-bottom: 16px; border-radius: 18px;
}
.card .pic svg { width: 46px; height: 46px; }
.pic.indigo { background: var(--t-indigo); }
.pic.green { background: var(--t-green); }
.pic.amber { background: var(--t-amber); }
.pic.rose { background: var(--t-rose); }
.pic svg .l { stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

ol.steps {
  list-style: none; margin: 0; padding: 0; counter-reset: step;
  display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
ol.steps li { counter-increment: step; text-align: center; padding: 0 12px; }
ol.steps li::before {
  content: counter(step);
  display: inline-grid; place-items: center; width: 48px; height: 48px;
  margin-bottom: 12px; border-radius: 50%;
  background: var(--card); border: 2px solid var(--brand); color: var(--brand);
  font-weight: 800; font-size: 20px;
}
ol.steps h3 { margin: 0 0 6px; font-size: 19px; }
ol.steps p { margin: 0; color: var(--muted); }

.contact { text-align: center; }
.contact .note { margin-top: 16px; color: var(--muted); font-size: 15px; }

/* ── Pie ──────────────────────────────────────────────────────────────── */
footer { padding: 36px 0 44px; font-size: 14px; }
footer .links {
  display: flex; flex-wrap: wrap; gap: 8px 22px; padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
footer .links a { color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: 0.02em; }
footer .links a:hover { color: var(--brand); }
footer .copy { margin: 20px 0 0; color: #64748b; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  header.top .wrap { min-height: 64px; }
  nav.links { gap: 16px; }
  nav.links .hide-sm { display: none; }
  .hero { padding-bottom: 52px; }
  .cta .btn { width: 100%; }
  section { padding: 56px 0; }
}
