/* Ver Autismo A.C. | Instituto Leo Kanner
   Paleta tomada del logo (corazón de rompecabezas):
   azul predominante, con acentos rojo, verde y amarillo. */

:root {
  --blue: #1d5fa8;
  --blue-dark: #144a86;
  --blue-light: #e8f1fa;
  --red: #d93a2b;
  --green: #3d9b4f;
  --yellow: #f2b705;
  --ink: #22292f;
  --muted: #4d5a66;
  --paper: #ffffff;
  --warm: #fdf8f0;
  --border: #dfe6ec;
  --radius: 12px;
  --max-width: 880px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

h1, h2, h3 { line-height: 1.25; color: var(--blue-dark); }
h1 { font-size: 2.1rem; margin: 0.5rem 0 0.75rem; }
h2 { font-size: 1.6rem; margin: 0 0 1rem; }
h3 { font-size: 1.2rem; margin: 1.5rem 0 0.5rem; }

p { margin: 0 0 1rem; }
.lead { font-size: 1.15rem; color: var(--muted); }

a { color: var(--blue); }
a:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--blue-dark);
  font-weight: 700;
  font-size: 1.05rem;
}
.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  font-size: 0.95rem;
}
.main-nav a { text-decoration: none; padding: 0.25rem 0; }
.main-nav a:hover { text-decoration: underline; }

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--blue-light) 0%, var(--paper) 100%);
  text-align: center;
  padding: 3rem 0 0;
}
.hero-inner { padding-bottom: 2.5rem; }
.hero-logo {
  width: 180px;
  height: 180px;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 6px 24px rgba(20, 74, 134, 0.18);
}
.hero-eyebrow {
  margin: 1.25rem 0 0;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green);
}
.hero h1 span { color: var(--blue); }
.hero-lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 1.5rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* Puzzle strip */
.puzzle-strip { display: flex; height: 10px; }
.puzzle-strip .piece { flex: 1; }
.piece-red { background: var(--red); }
.piece-green { background: var(--green); }
.piece-blue { background: var(--blue); }
.piece-yellow { background: var(--yellow); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1rem;
  line-height: 1.3;
}
.btn-whatsapp { background: var(--green); color: #fff; }
.btn-whatsapp:hover { background: #2f7d3e; }
.btn-secondary {
  background: var(--paper);
  color: var(--blue-dark);
  border: 2px solid var(--blue);
}
.btn-secondary:hover { background: var(--blue-light); }
.btn-video { background: var(--red); color: #fff; }
.btn-video:hover { background: #b22e21; }

/* Sections */
.section { padding: 3rem 0; }
.section-alt { background: var(--warm); }
.section-video {
  background: var(--blue-dark);
  color: #fff;
  text-align: center;
}
.section-video h2 { color: #fff; }
.section-video .lead { color: #dbe8f5; }
.section-video .note { color: #b9cee4; margin-top: 1rem; }

.facts {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.facts li {
  background: var(--blue-light);
  border-left: 5px solid var(--blue);
  border-radius: 8px;
  padding: 0.8rem 1rem;
}
.facts li:nth-child(2) { border-left-color: var(--green); }
.facts li:nth-child(3) { border-left-color: var(--yellow); }

/* Contact */
.contact-grid {
  display: grid;
  gap: 1rem;
  font-style: normal;
  margin: 1.5rem 0;
}
.contact-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  background: var(--paper);
}
.contact-card h3 { margin: 0 0 0.4rem; }
.contact-card p { margin: 0; overflow-wrap: break-word; }
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.note { font-size: 0.95rem; color: var(--muted); }

/* Footer */
.site-footer {
  background: var(--blue-dark);
  color: #dbe8f5;
  text-align: center;
  padding: 2.5rem 0 2rem;
}
.site-footer p { margin: 0 0 0.4rem; }
.site-footer strong { color: #fff; }
.footer-logo {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  object-fit: cover;
  margin-bottom: 1rem;
}

/* Wider screens */
@media (min-width: 640px) {
  h1 { font-size: 2.6rem; }
  h2 { font-size: 1.9rem; }
  .hero-logo { width: 220px; height: 220px; }
  .facts { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

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