/* Subeventas: estilos compartidos por todo el sitio.
   Sin fuentes ni servicios externos: el sitio no hace pedidos a terceros. */

:root {
  --brand: #004ed2;        /* azul del logo */
  --brand-strong: #003ba3;
  --brand-soft: #eaf1ff;
  --ink: #0b1220;
  --muted: #4a5568;
  --bg: #ffffff;
  --surface: #f5f8ff;
  --border: #e3e8f2;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(11 18 32 / 0.04), 0 8px 24px rgb(11 18 32 / 0.06);
  --max: 1080px;
  --text-max: 720px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #6e9bff;
    --brand-strong: #9bbaff;
    --brand-soft: #16224a;
    --ink: #e8edf7;
    --muted: #a3aec4;
    --bg: #0b1020;
    --surface: #121a33;
    --border: #24304f;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px rgb(0 0 0 / 0.25);
    color-scheme: dark;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--brand);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--brand-strong);
}

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.75rem);
  font-weight: 750;
  margin-top: 2.2em;
}

h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 1.6em;
}

p,
ul,
ol {
  margin: 0 0 1em;
}

li + li {
  margin-top: 0.35em;
}

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

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  background: var(--bg);
  padding: 8px 12px;
  z-index: 10;
}

/* Encabezado */

.site-header {
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(8px);
  position: sticky;
  top: 0;
  z-index: 5;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand .mark {
  height: 30px;
  width: auto;
}

.brand .word {
  height: 20px;
  width: auto;
}

.logo-dark {
  display: none !important;
}

@media (prefers-color-scheme: dark) {
  .logo-light {
    display: none !important;
  }
  .logo-dark {
    display: block !important;
  }
}

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

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 550;
  padding: 6px 10px;
  border-radius: 8px;
}

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

@media (max-width: 560px) {
  .brand .word {
    display: none !important;
  }
  .nav a {
    padding: 6px 8px;
    font-size: 0.9rem;
  }
}

/* Portada */

.hero {
  padding: 72px 0 56px;
  background: radial-gradient(1200px 400px at 50% -120px, var(--brand-soft), transparent 70%);
}

.hero .eyebrow {
  display: inline-block;
  color: var(--brand);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero p.lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 640px;
}

.hero-logo {
  width: 200px;
  margin-bottom: 28px;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 650;
  text-decoration: none;
  border: 1px solid transparent;
}

.button.primary {
  background: var(--brand);
  color: #fff;
}

.button.primary:hover {
  background: var(--brand-strong);
  color: #fff;
}

@media (prefers-color-scheme: dark) {
  .button.primary,
  .button.primary:hover {
    color: #0b1020;
  }
}

.button.secondary {
  border-color: var(--border);
  color: var(--ink);
  background: var(--bg);
}

.button.secondary:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 10px;
}

/* Secciones y tarjetas */

.section {
  padding: 56px 0;
}

.section.alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section > .container > h2:first-child {
  margin-top: 0;
}

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

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.card h3 {
  margin-top: 0;
}

.card p:last-child {
  margin-bottom: 0;
}

.card .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

.card .icon svg {
  width: 22px;
  height: 22px;
}

.app-card {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr auto;
  align-items: center;
}

@media (max-width: 640px) {
  .app-card {
    grid-template-columns: 1fr;
  }
}

/* Páginas de texto (privacidad, soporte, guía) */

.page {
  padding: 48px 0 72px;
}

.prose {
  max-width: var(--text-max);
}

/* Dentro de .container, el texto se alinea a la izquierda con el logo
   en vez de centrarse, pero mantiene un ancho cómodo de lectura. */
.container.prose {
  max-width: var(--max);
}

.container.prose > * {
  max-width: var(--text-max);
}

.container.prose > .contact {
  max-width: 900px;
}

.prose .meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.prose strong {
  font-weight: 700;
}

.breadcrumb {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 20px;
}

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

.note {
  background: var(--brand-soft);
  border-left: 4px solid var(--brand);
  border-radius: 8px;
  padding: 14px 18px;
  margin: 1.5em 0;
}

.note p:last-child {
  margin-bottom: 0;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
}

.steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 52px;
  margin-top: 1.4em;
}

.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 750;
  display: grid;
  place-items: center;
}

@media (prefers-color-scheme: dark) {
  .steps > li::before {
    color: #0b1020;
  }
}

.steps > li > strong:first-child {
  display: block;
  font-size: 1.08rem;
  margin-bottom: 4px;
}

.contact {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: 1.5em 0 2em;
}

.contact .card {
  padding: 20px;
}

.contact .label {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.contact .value {
  font-weight: 700;
  font-size: 1.05rem;
  overflow-wrap: break-word;
}

details {
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

details summary {
  cursor: pointer;
  font-weight: 650;
}

details[open] summary {
  margin-bottom: 8px;
}

table {
  border-collapse: collapse;
  width: 100%;
  margin: 1em 0 1.5em;
  font-size: 0.97rem;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

th {
  color: var(--muted);
  font-weight: 650;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.table-wrap {
  overflow-x: auto;
}

/* Pie */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  color: var(--muted);
  font-size: 0.92rem;
}

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

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

.site-footer nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
