/* Fitset: hoja de estilos única del sitio. Sin dependencias ni scripts. */

:root {
  --bg: #ffffff;
  --surface: #f2f4f7;
  --text: #11181c;
  --muted: #5b6670;
  --primary: #0a7ea4;
  --on-primary: #ffffff;
  --border: #d5dbe1;
  --radius: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101315;
    --surface: #1b2024;
    --text: #ecedee;
    --muted: #a1abb3;
    --primary: #4fc3e8;
    --on-primary: #101315;
    --border: #2b3238;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--primary);
}

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

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--primary);
  color: var(--on-primary);
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 10;
}

.skip:focus {
  left: 8px;
}

.wrap {
  width: min(960px, 100% - 32px);
  margin-inline: auto;
}

/* Cabecera */
.site-header {
  border-bottom: 1px solid var(--border);
}

.site-header .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;
  color: var(--text);
  font-weight: 800;
  font-size: 1.25rem;
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
}

.nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 10px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav a:hover,
.nav a[aria-current='page'] {
  background: var(--surface);
}

/* Portada */
.hero {
  padding: 64px 0 40px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 3.25rem);
  line-height: 1.15;
  margin: 0 0 16px;
}

.hero p {
  max-width: 640px;
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 1.15rem;
}

.badge {
  display: inline-block;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  background: var(--primary);
  color: var(--on-primary);
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

section {
  padding: 40px 0;
}

section > .wrap > h2 {
  font-size: 1.75rem;
  margin: 0 0 24px;
}

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

/* Preguntas frecuentes */
details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 10px;
}

summary {
  cursor: pointer;
  font-weight: 700;
  min-height: 28px;
}

details p {
  margin: 10px 0 0;
  color: var(--muted);
}

/* Páginas de texto (privacidad, soporte) */
.page {
  padding: 40px 0 56px;
  max-width: 720px;
}

.page h1 {
  font-size: 2rem;
  margin: 0 0 8px;
}

.page h2 {
  font-size: 1.3rem;
  margin: 32px 0 8px;
}

.page .updated {
  color: var(--muted);
  margin: 0 0 24px;
}

.page ul {
  padding-left: 22px;
}

/* Pie */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--muted);
}
