/* PitScan — colores de la app (lib/theme.dart) */
:root {
  --bg: #070d18;
  --bg-top: #0c1729;
  --surface: #0f1b2d;
  --surface-high: #1a2a42;
  --border: #22344f;
  --blue: #2f8cff;
  --cyan: #22d3ee;
  --orange: #ff8a3d;
  --green: #18e0a1;
  --amber: #ffc233;
  --text: #f4f7fb;
  --text-dim: #9db0c8;
  --radius: 20px;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: radial-gradient(1200px 600px at 50% -200px, #12305a 0%, transparent 70%), var(--bg);
  background-color: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.55;
}

a { color: var(--cyan); }
a:hover { color: var(--text); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Cabecera */
header.site {
  border-bottom: 1px solid var(--border);
  background: rgba(7, 13, 24, 0.85);
  backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 10;
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 64px; flex-wrap: wrap;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text);
  font-weight: 800; font-size: 22px; letter-spacing: -0.01em;
}
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand b span { color: var(--blue); }
.brand b { font-weight: 800; }
nav.site { display: flex; gap: 4px; flex-wrap: wrap; }
nav.site a {
  color: var(--text-dim); text-decoration: none; font-size: 16px; font-weight: 600;
  padding: 8px 12px; border-radius: 10px;
}
nav.site a:hover, nav.site a[aria-current="page"] { color: var(--text); background: var(--surface-high); }

/* Portada */
.hero { text-align: center; padding: 48px 0 40px; }
.hero .logo-title { margin: 0 0 14px; line-height: 0; }
.hero .logo {
  width: min(340px, 80vw); height: auto; border-radius: 28px;
  box-shadow: 0 0 80px rgba(47, 140, 255, 0.35), 0 16px 40px rgba(0, 0, 0, 0.55);
}
.hero h1 { font-size: clamp(40px, 7vw, 64px); line-height: 1.05; margin: 28px 0 6px; letter-spacing: -0.02em; }
.hero h1 span { color: var(--blue); }
.hero .tag {
  font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-dim); margin: 0 0 22px;
}
.hero .lead { font-size: clamp(20px, 2.6vw, 24px); color: var(--text); max-width: 680px; margin: 0 auto 32px; }
.hero .lead em { color: var(--cyan); font-style: normal; }

.play-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 26px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-dim); font-size: 18px; font-weight: 700;
  cursor: not-allowed; user-select: none;
}
.play-btn svg { width: 26px; height: 26px; flex: none; }
.play-btn small { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber); }
.play-btn .txt { text-align: left; line-height: 1.2; }

/* Capturas */
.shots {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  padding: 24px 0 56px;
}
.shot { margin: 0; text-align: center; }
.phone {
  aspect-ratio: 1080 / 1654;
  border-radius: 26px; overflow: hidden;
  border: 6px solid #1b2638;
  background: var(--surface);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.phone img.fit { object-fit: contain; background: #0c1626; }
.phone.pending {
  display: flex; align-items: center; justify-content: center; padding: 16px;
  color: var(--text-dim); font-size: 14px; border-style: dashed;
}
.shot figcaption { margin-top: 12px; font-weight: 700; font-size: 17px; }
.shot figcaption small { display: block; font-weight: 400; color: var(--text-dim); font-size: 15px; }

/* Funciones */
.features {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-bottom: 64px;
}
.card {
  background: linear-gradient(180deg, var(--surface-high), var(--surface));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 22px;
}
.card h3 { margin: 0 0 6px; font-size: 19px; }
.card p { margin: 0; color: var(--text-dim); font-size: 16px; }
.card .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }

/* Páginas de texto */
.page { max-width: 760px; margin: 0 auto; padding: 48px 20px 72px; }
.page h1 { font-size: clamp(32px, 5vw, 44px); line-height: 1.1; margin: 0 0 8px; }
.page h2 { font-size: 24px; margin: 40px 0 10px; }
.page h3 { font-size: 19px; margin: 24px 0 6px; }
.page p, .page li { color: #d6e0ec; }
.page .meta { color: var(--text-dim); font-size: 16px; margin-bottom: 28px; }
.page ul { padding-left: 22px; }
.page li { margin: 6px 0; }
.lang-switch { display: flex; gap: 8px; margin: 0 0 24px; }
.lang-switch a {
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border);
  text-decoration: none; color: var(--text-dim); font-size: 15px; font-weight: 600;
}
.lang-switch a:hover { color: var(--text); background: var(--surface-high); }
.note {
  background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--green);
  border-radius: 12px; padding: 14px 18px; margin: 20px 0;
}
hr.sep { border: 0; border-top: 1px solid var(--border); margin: 64px 0 40px; }

.mail {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: clamp(18px, 3.5vw, 24px); font-weight: 700;
  padding: 16px 22px; border-radius: 16px;
  background: var(--surface-high); border: 1px solid var(--blue);
  text-decoration: none; color: var(--text); word-break: break-all;
}
.mail:hover { background: #22385a; color: var(--text); }

/* Pie */
footer.site { border-top: 1px solid var(--border); color: var(--text-dim); font-size: 15px; }
footer.site .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 24px 20px; }
footer.site a { color: var(--text-dim); }
footer.site nav { display: flex; gap: 18px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .shots { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  body { font-size: 17px; }
  .wrap { padding: 0 16px; }
  .hero { padding-top: 40px; }
  .shots { gap: 14px; }
  .phone { border-width: 4px; border-radius: 18px; }
  nav.site a { padding: 6px 8px; font-size: 15px; }
}
