@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500..800&family=Figtree:wght@400;500;600;700;800&display=swap");

:root {
  --ink: #15090c;
  --burgundy: #6b1220;
  --burgundy-deep: #33070e;
  --gold: #e6b65a;
  --gold-soft: #f6e3b8;
  --paper: #f2f2f4;
  --white: #ffffff;
  --muted: #5b5560;
  --line: #d8d6dc;
  --radius: 18px;
  --max: 1200px;
  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --sans: "Figtree", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--burgundy); text-underline-offset: 0.2em; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
  margin: 0 0 0.5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.9rem, 8.4vw, 6.6rem); }
h2 { font-size: clamp(2.1rem, 4.8vw, 3.6rem); }
h3 { font-size: 1.5rem; letter-spacing: -0.02em; }
p { margin: 0 0 1em; text-wrap: pretty; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: 20px;
}
.block { padding-block: clamp(72px, 10vw, 128px); }
.lede { font-size: clamp(1.125rem, 2vw, 1.3rem); max-width: 44ch; }

/* Buttons */
.buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 700 1rem/1 var(--sans);
  text-decoration: none;
  padding: 16px 26px;
  border-radius: 999px;
  border: 2px solid var(--gold);
  background: var(--gold);
  color: var(--ink);
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1), background 200ms ease;
}
.btn::after { content: "→"; transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1); }
.btn:hover { transform: translateY(-2px); background: #efc76f; }
.btn:hover::after { transform: translateX(4px); }
.btn.ghost { background: transparent; color: #fbeef0; border-color: rgba(251, 238, 240, 0.45); }
.btn.ghost::after { content: none; }
.btn.ghost:hover { background: rgba(251, 238, 240, 0.08); }

/* Header */
.site-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}
.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 12px;
}
.brand img { height: 52px; width: auto; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
}
.nav a:hover { background: rgba(107, 18, 32, 0.08); }
.nav a[aria-current="page"] { color: var(--burgundy); background: rgba(107, 18, 32, 0.08); }
.nav a.nav-cta { background: var(--burgundy); color: var(--white); margin-left: 6px; }
.nav a.nav-cta:hover { background: var(--burgundy-deep); }

/* Hero (home) and page heroes */
.hero {
  background: var(--burgundy-deep);
  color: #fbeef0;
  position: relative;
  overflow: hidden;
  padding-block: clamp(56px, 9vw, 120px) clamp(64px, 9vw, 110px);
}
.hero::before {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: min(90vw, 760px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(230, 182, 90, 0.28), rgba(230, 182, 90, 0) 60%);
  pointer-events: none;
}
.hero h1, .hero h2, .hero h3 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lede { color: #ecd9dd; }
.hero-grid { display: grid; gap: 48px; align-items: end; }
.hero-copy { position: relative; z-index: 1; }

/* Modalidad bar */
.mode {
  margin-top: 40px;
  max-width: 560px;
}
.mode-bar {
  display: flex;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
}
.mode-bar span { display: block; height: 100%; transform-origin: left; animation: grow 1100ms cubic-bezier(0.16, 1, 0.3, 1) both; }
.mode-bar .online { flex: 3; background: var(--gold); }
.mode-bar .onsite { flex: 1; background: #d8788a; animation-delay: 120ms; }
.mode-labels {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  font-size: 0.92rem;
  color: #ecd9dd;
}
.mode-labels strong { display: block; color: #fff; font-size: 1rem; }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Collage */
.collage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}
.collage figure { margin: 0; }
.collage img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
}
.collage figure:nth-child(2) { margin-top: 56px; }
.collage figcaption {
  font-size: 0.85rem;
  color: #d9bfc5;
  margin-top: 10px;
}

/* Pull quote and manifesto */
.quote {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.6vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  max-width: 22ch;
  color: var(--ink);
  margin: 0;
}
.quote cite {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: 18px;
  letter-spacing: 0;
}
.split { display: grid; gap: 40px; align-items: start; }

.stack-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.stack-steps li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding-block: 22px;
  border-top: 1px solid var(--line);
}
.stack-steps li:last-child { border-bottom: 1px solid var(--line); }
.step { display: block; font-family: var(--display); font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.stack-steps p { margin: 0; color: var(--muted); }

/* Programs */
.programs { display: grid; gap: 22px; }
.program {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 380ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 380ms ease;
  box-shadow: 0 1px 0 rgba(21, 9, 12, 0.04), 0 18px 40px -28px rgba(51, 7, 14, 0.45);
}
.program:hover { transform: translateY(-4px); box-shadow: 0 1px 0 rgba(21, 9, 12, 0.04), 0 30px 60px -30px rgba(51, 7, 14, 0.55); }
.program img { width: 100%; aspect-ratio: 4 / 5; object-fit: contain; background: var(--burgundy-deep); transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1); }
.program:hover img { transform: scale(1.03); }
.program-body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.program-body p { color: var(--muted); margin: 0; }
.program-body a { margin-top: auto; font-weight: 700; text-decoration: none; color: var(--burgundy); padding-top: 8px; }
.program-body a::after { content: " →"; }
.program.wide { grid-column: 1 / -1; flex-direction: row; }
.program.wide img { width: 46%; aspect-ratio: auto; min-height: 280px; }

/* Values */
.values { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.values li {
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
}

/* Mission / vision / quality cards */
.pillars { display: grid; gap: 18px; }
.pillar {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 28px;
}
.pillar h3 { color: var(--burgundy); }
.pillar p { color: var(--ink); margin: 0; }

/* CTA band */
.band {
  background: var(--gold);
  border-radius: 28px;
  padding: clamp(36px, 6vw, 72px);
  display: grid;
  gap: 24px;
  align-items: center;
}
.band h2 { margin-bottom: 0; }
.band p { margin: 0; max-width: 46ch; }
.band .btn { background: var(--ink); color: #fff; border-color: var(--ink); }
.band .btn:hover { background: var(--burgundy-deep); }

/* Forms */
.form { display: grid; gap: 18px; }
.form label { display: grid; gap: 8px; font-weight: 700; font-size: 0.95rem; }
.form input, .form select, .form textarea {
  font: 500 1.0625rem/1.4 var(--sans);
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid #c9c5cf;
  border-radius: 14px;
  padding: 15px 16px;
  width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: 3px solid var(--gold);
  outline-offset: 0;
  border-color: var(--burgundy);
}
.form textarea { min-height: 140px; resize: vertical; }
.note { font-size: 0.92rem; color: var(--muted); }
.form-card {
  background: var(--white);
  border-radius: 28px;
  padding: clamp(24px, 4vw, 44px);
}

/* Legal */
.legal { max-width: 74ch; }
.legal h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 1.6em; }
.legal ul, .legal ol { padding-left: 22px; }
.legal li { margin-bottom: 4px; }

/* Footer */
.site-footer {
  background: var(--burgundy-deep);
  color: #ecd9dd;
  padding-top: clamp(56px, 8vw, 96px);
  overflow: hidden;
}
.foot-top { display: grid; gap: 28px; }
.foot-top strong { color: #fff; font-family: var(--display); font-size: 1.25rem; letter-spacing: -0.02em; }
.site-footer a { color: var(--gold-soft); }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.foot-links a { text-decoration: none; font-weight: 600; }
.foot-links a:hover { text-decoration: underline; }
.wordmark {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3.4rem, 15.5vw, 13rem);
  letter-spacing: -0.06em;
  line-height: 0.8;
  color: rgba(230, 182, 90, 0.16);
  white-space: nowrap;
  margin: 40px 0 -0.12em;
  text-align: center;
  user-select: none;
}

/* Reveal: visible by default; the hero bar animates */
@media (min-width: 720px) {
  .collage figure:nth-child(2) { margin-top: 96px; }
  .pillars { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1fr 1fr; }
  .programs { grid-template-columns: repeat(2, 1fr); }
  .foot-top { grid-template-columns: 1fr auto; align-items: end; }
  .band { grid-template-columns: 1fr auto; }
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; }
  .programs .program:first-child { grid-column: 1 / 2; }
  .programs .program:nth-child(2) { grid-column: 2 / 3; }
}
@media (max-width: 719px) {
  .program.wide { flex-direction: column; }
  .program.wide img { width: 100%; min-height: 0; aspect-ratio: 4 / 3; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
