/* Nicolás Gallego — prototipo v0.1
   Paleta provisional (reunión mañana): césped, lima, tech azul.
   Un solo CSS a propósito para que aprenda. */

:root {
  --paper: #f4faf6;
  --paper-deep: #e3f0e8;
  --ink: #0f1f17;
  --muted: #3d5248;
  --line: #c5dccf;
  --pitch: #1a7a4c;
  --pitch-deep: #125a38;
  --lime: #b8ff3c;
  --tech: #2563eb;
  --tech-deep: #1d4ed8;
  --white: #ffffff;
  --max: 42rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(900px 360px at 0% 0%, rgba(37, 99, 235, 0.1), transparent 55%),
    radial-gradient(800px 320px at 100% 10%, rgba(184, 255, 60, 0.18), transparent 50%),
    radial-gradient(600px 280px at 50% 100%, rgba(26, 122, 76, 0.12), transparent 45%),
    var(--paper);
  color: var(--ink);
  font-family: "DM Sans", "Segoe UI", sans-serif;
  font-size: 1.05rem;
  line-height: 1.55;
}

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

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

a:hover {
  color: var(--pitch-deep);
}

.wrap {
  width: min(100% - 2rem, 58rem);
  margin-inline: auto;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: baseline;
  justify-content: space-between;
  padding: 1.1rem 0 0.4rem;
}

.brand {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.12rem;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.brand span {
  color: var(--pitch);
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.92rem;
  font-weight: 600;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--pitch);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero {
  padding: 2.5rem 0 1.5rem;
}

.kicker {
  margin: 0 0 0.6rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pitch);
}

h1,
h2 {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3.2rem);
  max-width: 18ch;
}

.lead {
  margin: 0;
  max-width: 38rem;
  font-size: 1.12rem;
  color: var(--muted);
}

.palette {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.3rem 0 0;
  padding: 0;
  list-style: none;
}

.palette li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}

.swatch {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 999px;
  border: 2px solid var(--white);
  box-shadow: 0 0 0 1px rgba(15, 31, 23, 0.12);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.chips li {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.chips li:nth-child(1) { border-color: var(--tech); color: var(--tech-deep); }
.chips li:nth-child(2) { border-color: var(--pitch); color: var(--pitch-deep); background: var(--paper-deep); }
.chips li:nth-child(3) { border-color: #8a9a00; color: #4a5500; background: var(--lime); }

section {
  padding: 2.4rem 0;
  border-top: 1px dashed var(--line);
}

h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
}

.facts article {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--pitch);
  padding: 1.1rem 1.15rem;
  border-radius: 0.85rem;
  box-shadow: 4px 5px 0 rgba(26, 122, 76, 0.1);
}

.facts article:nth-child(2) { border-top-color: var(--tech); box-shadow: 4px 5px 0 rgba(37, 99, 235, 0.1); }
.facts article:nth-child(3) { border-top-color: var(--lime); box-shadow: 4px 5px 0 rgba(184, 255, 60, 0.25); }
.facts article:nth-child(4) { border-top-color: var(--pitch-deep); }

.facts h3 {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pitch);
}

.facts article:nth-child(2) h3 { color: var(--tech); }
.facts article:nth-child(3) h3 { color: #4a5500; }

.facts p {
  margin: 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.1rem 1.15rem;
}

.card .tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tech);
  margin-bottom: 0.5rem;
}

.card h3 {
  margin: 0 0 0.4rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
}

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

.note {
  max-width: var(--max);
  color: var(--muted);
}

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

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.25rem;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--pitch);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--tech);
  color: var(--white);
}

.btn-ghost {
  background: var(--white);
  color: var(--ink);
  border: 1.5px solid var(--ink);
}

.btn-ghost:hover {
  border-color: var(--pitch);
  color: var(--pitch-deep);
}

.placeholder {
  margin-top: 0.85rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.steps {
  margin: 0;
  padding-left: 1.2rem;
  max-width: var(--max);
}

.steps li {
  margin-bottom: 0.55rem;
}

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

.includes li {
  background: var(--white);
  border-left: 4px solid var(--pitch);
  border-radius: 0 0.8rem 0.8rem 0;
  padding: 0.75rem 0.9rem;
}

.includes li:nth-child(2) { border-left-color: var(--tech); }
.includes li:nth-child(3) { border-left-color: var(--lime); }

.team {
  display: grid;
  gap: 0.75rem;
}

.team div {
  background: var(--white);
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid var(--line);
}

.team div:nth-child(1) { border-color: var(--pitch); }
.team div:nth-child(2) { border-color: var(--tech); }

.team strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
}

footer {
  border-top: 3px solid var(--pitch);
  padding: 1.4rem 0 2.4rem;
  font-size: 0.92rem;
  color: var(--muted);
}

footer p {
  margin: 0 0 0.4rem;
}

footer .legal {
  font-size: 0.8rem;
}

@media (max-width: 640px) {
  h1 {
    max-width: none;
  }
}
