/* Cuaderno de Santiago — un solo archivo a propósito.
   HTML = lo que dice. CSS = cómo se ve.
   Paleta v1.1: caja de óleo (coral, cobalto, limón, menta). */

:root {
  --paper: #f6fbff;
  --paper-deep: #e8f1ff;
  --ink: #17182b;
  --muted: #4d5470;
  --line: #d4def5;
  --mark: #ff3d7f;
  --mark-deep: #d81b60;
  --sky: #3b6cff;
  --lemon: #ffe14a;
  --mint: #2ee0b8;
  --white: #ffffff;
  --max: 42rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(1200px 420px at 10% -10%, rgba(59, 108, 255, 0.16), transparent 60%),
    radial-gradient(900px 380px at 100% 0%, rgba(255, 61, 127, 0.12), transparent 55%),
    radial-gradient(700px 300px at 80% 100%, rgba(46, 224, 184, 0.14), transparent 50%),
    var(--paper);
  color: var(--ink);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 1.05rem;
  line-height: 1.55;
}

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

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

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

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

/* ---------- nav ---------- */

.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: Fraunces, Georgia, serif;
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: -0.02em;
}

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

.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(--sky);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* ---------- hero / ficha ---------- */

.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(--mark);
}

h1,
h2 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  max-width: 16ch;
}

.lead {
  margin: 0;
  max-width: 36rem;
  font-size: 1.15rem;
  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(23, 24, 43, 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.8rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.chips li:nth-child(1) { border-color: var(--sky); color: var(--sky); }
.chips li:nth-child(2) { border-color: var(--mark); color: var(--mark-deep); }
.chips li:nth-child(3) { border-color: #e6c200; color: #8a6a00; background: var(--lemon); }
.chips li:nth-child(4) { border-color: var(--mint); color: #0f7a62; }
.chips li:nth-child(5) { border-color: var(--sky); background: var(--paper-deep); }

/* ---------- sections ---------- */

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

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

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

.facts article {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--sky);
  padding: 1.1rem 1.15rem 1.2rem;
  border-radius: 1rem;
  box-shadow: 4px 5px 0 rgba(59, 108, 255, 0.12);
}

.facts article:nth-child(2) {
  border-top-color: var(--mark);
  box-shadow: 4px 5px 0 rgba(255, 61, 127, 0.12);
}

.facts article:nth-child(3) {
  border-top-color: var(--mint);
  box-shadow: 4px 5px 0 rgba(46, 224, 184, 0.18);
}

.facts article:nth-child(4) {
  border-top-color: var(--lemon);
  box-shadow: 4px 5px 0 rgba(255, 225, 74, 0.35);
}

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

.facts article:nth-child(2) h3 { color: var(--mark); }
.facts article:nth-child(3) h3 { color: #0f7a62; }
.facts article:nth-child(4) h3 { color: #8a6a00; }

.facts p {
  margin: 0;
}

/* ---------- gallery ---------- */

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

figure {
  margin: 0;
  background: var(--white);
  padding: 0.7rem 0.7rem 1rem;
  border-radius: 0.35rem 0.35rem 1rem 1rem;
  box-shadow: 6px 8px 0 rgba(59, 108, 255, 0.14);
  transform: rotate(-0.4deg);
}

figure:nth-child(2) { box-shadow: 6px 8px 0 rgba(255, 61, 127, 0.16); }
figure:nth-child(3) { box-shadow: 6px 8px 0 rgba(46, 224, 184, 0.22); }
figure:nth-child(4) { box-shadow: 6px 8px 0 rgba(255, 225, 74, 0.4); }
figure:nth-child(5) { box-shadow: 6px 8px 0 rgba(59, 108, 255, 0.14); }
figure:nth-child(6) { box-shadow: 6px 8px 0 rgba(255, 61, 127, 0.16); }

figure:nth-child(even) {
  transform: rotate(0.6deg);
}

figure img {
  aspect-ratio: 4 / 5;
  width: 100%;
  object-fit: cover;
  background: var(--paper-deep);
  border-radius: 0.2rem;
}

figcaption {
  margin-top: 0.65rem;
  font-family: Fraunces, Georgia, serif;
  font-size: 0.98rem;
}

figcaption span {
  display: block;
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ---------- learn / offer ---------- */

.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(--sky);
  color: var(--white);
}

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

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

.btn-ghost:hover {
  border-color: var(--mark);
  color: var(--mark-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(--sky);
  border-radius: 0 0.8rem 0.8rem 0;
  padding: 0.75rem 0.9rem;
}

.includes li:nth-child(2) { border-left-color: var(--mark); }
.includes li:nth-child(3) { border-left-color: var(--mint); }
.includes li:nth-child(4) { border-left-color: var(--lemon); }
.includes li:nth-child(5) { border-left-color: var(--sky); }

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

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

.team div:nth-child(1) { border-color: var(--mark); }
.team div:nth-child(2) { border-color: var(--sky); }
.team div:nth-child(3) { border-color: var(--mint); }

.team strong {
  display: block;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.05rem;
}

/* ---------- footer ---------- */

footer {
  border-top: 3px solid var(--sky);
  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;
  }

  figure,
  figure:nth-child(even) {
    transform: none;
  }
}
