/* GPX Group Tracker: the app's dark look (same colours as the app and the family page) */
:root {
  --bg: #121519; --panel: #1c2230; --line: #2b3345; --text: #f2f4f8; --muted: #9aa3b5;
  --red: #d9323e; --red-dark: #b72632; --gold: #e0b23a; --green: #43a047; --link: #8fb8ff;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); line-height: 1.55;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--link); }
img { max-width: 100%; height: auto; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }

/* Top bar */
.top { border-bottom: 1px solid var(--line); background: #151a24; }
.top .wrap { display: flex; align-items: center; gap: 12px; min-height: 60px; flex-wrap: wrap; }
.top a.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; }
.top a.brand img { width: 36px; height: 36px; }
.top nav { margin-left: auto; display: flex; gap: 16px; flex-wrap: wrap; font-size: .95rem; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--text); }

/* Hero */
.hero { padding: 48px 0 32px; }
.hero .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; margin: 0 0 14px; }
.hero p.lead { font-size: 1.15rem; color: #d5dae4; margin: 0 0 20px; }
.hero .shot { justify-self: center; max-width: 300px; border-radius: 22px; border: 6px solid #0b0d11;
  box-shadow: 0 18px 50px rgba(0,0,0,.5); }
.offer { display: inline-block; background: var(--gold); color: #121519; font-weight: 800; border-radius: 10px;
  padding: 8px 14px; margin-bottom: 18px; }
.buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 12px 20px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.btn.primary { background: var(--red); color: #fff; }
.btn.primary:hover { background: var(--red-dark); }
.btn.ghost { border: 1px solid var(--line); color: var(--text); }
.small { color: var(--muted); font-size: .9rem; }

/* Sections */
section { padding: 36px 0; border-top: 1px solid var(--line); }
section h2 { font-size: 1.6rem; margin: 0 0 8px; }
section > .wrap > p.intro { color: var(--muted); margin: 0 0 22px; max-width: 720px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.card p { margin: 0; color: #c9cfdb; font-size: .97rem; }
.tag { display: inline-block; font-size: .7rem; font-weight: 800; letter-spacing: .04em; color: #121519;
  background: var(--gold); border-radius: 6px; padding: 1px 6px; vertical-align: middle; margin-left: 6px; }

/* Plans table */
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; min-width: 520px; background: var(--panel); border-radius: 14px; overflow: hidden; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #222a3a; }
td.yes { color: #7ed37f; font-weight: 700; }
td.no { color: var(--muted); }

.notice { background: #2a1d20; border: 1px solid #5a2a30; border-radius: 14px; padding: 16px 18px; }
.notice strong { color: #ff8a93; }

/* Legal pages */
.legal { padding: 32px 0 48px; }
.legal h1 { font-size: 2rem; margin: 0 0 4px; }
.legal h2 { font-size: 1.25rem; margin: 28px 0 8px; }
.legal p, .legal li { color: #d5dae4; }
.legal .updated { color: var(--muted); margin: 0 0 20px; }

footer { border-top: 1px solid var(--line); padding: 24px 0 40px; color: var(--muted); font-size: .9rem; }
footer .wrap { display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; }
footer a { color: var(--muted); }

@media (max-width: 760px) {
  .hero { padding-top: 28px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .shot { max-width: 240px; }
  .top nav { margin-left: 0; width: 100%; padding-bottom: 10px; }
}

/* Instagram icon in the menu and buttons */
.ig{width:20px;height:20px;vertical-align:-4px}
.btn .ig{margin-right:6px}

/* Guía «Cómo se usa» */
.legal h3 { font-size: 1.05rem; margin: 18px 0 6px; }
.legal .toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 8px; }
.legal .toc a { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; text-decoration: none; color: var(--text); font-size: .92rem; }
.legal .toc a:hover { background: var(--panel); }
.legal h2[id] { scroll-margin-top: 16px; }
.legal details { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; margin: 10px 0; }
.legal summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style-position: outside; }
.legal details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.legal details > :last-child { margin-bottom: 14px; }
.legal .notice { margin: 16px 0; }
