/* W-Assistant — sitio estático mínimo. Sin fuentes ni recursos de terceros. */
:root {
  --navy: #10285c;
  --lime: #a3e635;
  --lime-dark: #4d7c0f;
  --ink: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

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

a {
  color: var(--navy);
  text-underline-offset: 3px;
}

a:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--navy);
  color: #fff;
  border-radius: 8px;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.brand img {
  display: block;
  width: 168px;
  height: auto;
}

/* Botones */
.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--navy);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.btn:hover {
  background: #0a1a40;
}

.btn--lg {
  padding: 0.9rem 2rem;
  font-size: 1.05rem;
}

.btn--lime {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--navy);
}

.btn--lime:hover {
  background: #bef264;
  border-color: #bef264;
}

/* Hero */
.hero {
  padding: 4.5rem 0 3.5rem;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
}

.hero h1 {
  margin: 0 auto;
  max-width: 22ch;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.hero .lead {
  margin: 1.25rem auto 2rem;
  max-width: 40rem;
  font-size: 1.15rem;
  color: var(--muted);
}

.hero .note {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Secciones */
.section {
  padding: 3.5rem 0;
}

.section h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.01em;
  color: var(--navy);
  text-align: center;
}

.section .sub {
  margin: 0 auto 2.25rem;
  max-width: 38rem;
  text-align: center;
  color: var(--muted);
}

.cards {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: var(--navy);
}

.card h3::before {
  content: "";
  display: block;
  width: 2rem;
  height: 0.3rem;
  margin-bottom: 0.75rem;
  border-radius: 999px;
  background: var(--lime);
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
}

.about {
  background: var(--bg-soft);
}

.about p {
  max-width: 44rem;
  margin: 0 auto 1rem;
  color: var(--muted);
}

.cta {
  text-align: center;
  background: var(--navy);
  color: #fff;
}

.cta h2 {
  color: #fff;
}

.cta .sub {
  color: #cbd5e1;
}

/* Documentos legales y 404 */
.doc {
  width: 100%;
  max-width: 48rem;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 4rem;
}

.doc h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: -0.02em;
  color: var(--navy);
}

.doc .updated {
  margin: 0.5rem 0 2.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.doc h2 {
  margin: 2rem 0 0.5rem;
  font-size: 1.15rem;
  color: var(--ink);
}

.doc p,
.doc li {
  color: var(--muted);
  font-size: 0.97rem;
}

.doc ul {
  padding-left: 1.25rem;
}

.doc strong {
  color: var(--ink);
}

.center {
  text-align: center;
}

/* Footer */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  font-size: 0.92rem;
  color: var(--muted);
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-top: 1.75rem;
  padding-bottom: 1.75rem;
}

.site-footer p {
  margin: 0;
}

.site-footer address {
  font-style: normal;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 480px) {
  .brand img {
    width: 140px;
  }

  .btn {
    padding: 0.6rem 1.1rem;
    font-size: 0.95rem;
  }

  .hero {
    padding-top: 3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }
}
