@font-face {
  font-family: 'Baloo 2';
  src: url('/fonts/baloo-2-latin-wght-normal.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --brand: #f97316;
  --brand-dark: #c2410c;
  --sun: #fbbf24;
  --turquoise: #14b8a6;
  --ink: #2a1a0e;
  --muted: #6b5848;
  --bg: #fffaf3;
  --card: #ffffff;
  --line: #f1e3d2;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    17px/1.6 'Inter',
    system-ui,
    sans-serif;
}
h1,
h2,
h3 {
  font-family: 'Baloo 2', 'Inter', sans-serif;
  line-height: 1.15;
  margin: 0 0 0.5em;
}
h1 {
  font-size: clamp(2.3rem, 6vw, 3.8rem);
  font-weight: 800;
}
h2 {
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  font-weight: 700;
}
h3 {
  font-size: 1.25rem;
  font-weight: 700;
}
p {
  margin: 0 0 1em;
}
a {
  color: var(--brand-dark);
}

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

header.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  max-width: 1040px;
  margin: 0 auto;
}
.logo {
  font:
    800 1.6rem 'Baloo 2',
    sans-serif;
  color: var(--ink);
  text-decoration: none;
}
.logo span {
  color: var(--brand);
}
.top nav a {
  font-weight: 600;
  text-decoration: none;
  margin-left: 18px;
}

.btn {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 999px;
  box-shadow: 0 4px 0 var(--brand-dark);
  transition: transform 0.1s;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn.ghost {
  background: transparent;
  color: var(--brand-dark);
  box-shadow: inset 0 0 0 2px var(--brand);
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}

.hero {
  display: grid;
  gap: 40px;
  align-items: center;
  padding: 40px 0 64px;
}
@media (min-width: 820px) {
  .hero {
    grid-template-columns: 1.15fr 1fr;
  }
}
.hero p.lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 34em;
}
.pill {
  display: inline-block;
  background: #fff1dc;
  color: var(--brand-dark);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

/* Maqueta del proyector: solo equipos y meta, sin alumnos */
.board {
  background: #1f2937;
  border-radius: 20px;
  padding: 22px;
  color: #fff;
  box-shadow: 0 18px 40px rgb(120 53 15 / 0.25);
  transform: rotate(1.5deg);
}
.board h3 {
  font-size: 1rem;
  color: #fcd9a8;
  margin-bottom: 14px;
}
.team {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-weight: 700;
}
.team .bar {
  flex: 1;
  height: 16px;
  background: #374151;
  border-radius: 999px;
  overflow: hidden;
}
.team .bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
}
.goal {
  margin-top: 18px;
  background: #111827;
  border-radius: 14px;
  padding: 14px;
  font-weight: 700;
}
.goal .bar {
  height: 14px;
  background: #374151;
  border-radius: 999px;
  margin-top: 8px;
  overflow: hidden;
}
.goal .bar i {
  display: block;
  height: 100%;
  width: 72%;
  background: var(--sun);
}

section {
  padding: 56px 0;
}
section.alt {
  background: #fff3e2;
}
.grid {
  display: grid;
  gap: 20px;
}
@media (min-width: 720px) {
  .grid.three {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid.two {
    grid-template-columns: repeat(2, 1fr);
  }
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
}
.card .emoji {
  font-size: 2rem;
  display: block;
  margin-bottom: 8px;
}
.card p:last-child {
  margin-bottom: 0;
}
.center {
  text-align: center;
}
.sub {
  color: var(--muted);
  max-width: 40em;
}
.center .sub {
  margin-left: auto;
  margin-right: auto;
}

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

/* Página de texto legal */
.doc {
  max-width: 720px;
  padding-bottom: 56px;
}
.doc h2 {
  font-size: 1.4rem;
  margin-top: 1.8em;
}
.doc li {
  margin-bottom: 0.4em;
}
