:root {
  --ink: #243538;
  --teal: #1f5a64;
  --teal-deep: #203f46;
  --cream: #fffdf7;
  --sand: #f3eddf;
  --gold: #c2a33f;
  --rose: #a9575e;
  --line: rgba(31, 90, 100, .22);
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Avenir Next", Avenir, "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.65;
}
a { color: inherit; }
.skip-link { position: fixed; top: -4rem; left: 1rem; z-index: 100; background: #fff; padding: .75rem 1rem; }
.skip-link:focus { top: 1rem; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 272px;
  padding: 34px 22px 24px;
  color: #f9f2e5;
  background: var(--teal-deep);
  display: flex;
  flex-direction: column;
  z-index: 20;
  overflow-y: auto;
}
.sidebar-brand { padding: 0 6px 22px; border-bottom: 1px solid rgba(255,255,255,.18); line-height: 1.05; }
.sidebar-brand span { display: block; color: #d9bd58; font-size: .73rem; letter-spacing: .18em; font-weight: 800; }
.sidebar-brand strong { display: block; margin-top: .28rem; font-family: var(--serif); font-size: 1.45rem; letter-spacing: .04em; }
.sidebar nav { display: grid; gap: .15rem; padding: 18px 0; }
.sidebar nav a { padding: .45rem .5rem; text-decoration: none; border-radius: 4px; font-size: .93rem; }
.sidebar nav a:hover, .sidebar nav a.active { background: rgba(255,255,255,.1); color: #fff; }
.sidebar nav small { color: #d9bd58; letter-spacing: .12em; display: inline-block; width: 30px; }
.nav-rule { height: 1px; background: rgba(255,255,255,.16); margin: .65rem 0; }
.sidebar-downloads { margin-top: auto; border-top: 1px solid rgba(255,255,255,.2); padding: 18px 6px 0; }
.sidebar-downloads p { margin: 0 0 .45rem; color: #d9bd58; font-size: .72rem; letter-spacing: .15em; font-weight: 800; text-transform: uppercase; }
.sidebar-downloads a { display: block; margin: .5rem 0; font-size: .84rem; text-decoration: none; }

main { margin-left: 272px; }
.hero {
  min-height: 100vh;
  padding: 30px 7vw 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 20%, rgba(194,163,63,.07), transparent 28%),
    linear-gradient(135deg, #fffdf7 0%, #f8f0e1 100%);
}
.corner { position: absolute; width: 180px; height: 180px; border: 1px solid rgba(31,90,100,.16); transform: rotate(45deg); }
.corner-top { right: -90px; top: -90px; }
.corner-bottom { left: -90px; bottom: -90px; }
.logo-lockup img { width: 168px; height: auto; opacity: .9; margin-bottom: 3.1rem; }
.eyebrow { color: var(--rose); font-weight: 800; letter-spacing: .2em; font-size: .78rem; text-transform: uppercase; }
.hero h1 { margin: .1rem auto .8rem; max-width: 960px; color: var(--teal); font: 700 clamp(4rem, 8.5vw, 7.7rem)/.84 var(--serif); letter-spacing: -.055em; }
.hero h1 span { display: block; }
.hero-lead { max-width: 760px; margin: 1.3rem auto .7rem; font: italic clamp(1.15rem, 2vw, 1.65rem)/1.45 var(--serif); }
.hero-quote { margin: 1.6rem 0 1.9rem; font: 700 1.04rem/1.4 var(--serif); color: var(--teal-deep); }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: .8rem 1.3rem; border-radius: 4px; text-decoration: none; font-weight: 800; transition: .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--teal); color: #fff; border: 1px solid var(--teal); }
.button-outline { border: 1px solid var(--teal); color: var(--teal); }
.button-light { margin-top: .6rem; border: 1px solid rgba(255,255,255,.65); color: #fff; }
.hero-values { margin-top: 2.2rem; padding-top: 0; display: flex; align-items: center; gap: 1.1rem; color: #5e6866; letter-spacing: .18em; font-size: .72rem; }
.hero-values i { width: 5px; height: 5px; border-radius: 50%; background: var(--rose); }
.hero-site-link { margin-top: .85rem; color: var(--teal); font-size: .86rem; font-weight: 800; text-underline-offset: 5px; }

.section { padding: 100px clamp(34px, 7vw, 112px); }
.section-heading { max-width: 860px; margin-bottom: 3rem; }
.section-heading.compact { margin-bottom: 2rem; }
.section-heading h2, .chapter h2, .closing blockquote { margin: .2rem 0 1rem; color: var(--teal); font: 700 clamp(2.7rem, 5vw, 5rem)/.98 var(--serif); letter-spacing: -.035em; }
.section-heading > p:last-child { font-size: 1.08rem; max-width: 740px; color: #5b6868; }
.intro { background: #fff; }
.resource-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.resource-card { padding: 2rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-height: 280px; }
.resource-card .number { float: right; color: rgba(31,90,100,.16); font: 700 5.5rem/1 var(--serif); }
.kicker, .download-type { color: var(--rose); font-size: .7rem; letter-spacing: .16em; font-weight: 800; }
.resource-card h3, .chapter h3, .download-grid h3 { margin: .5rem 0; color: var(--teal-deep); font: 700 1.65rem/1.15 var(--serif); }
.resource-card p:not(.kicker) { max-width: 28rem; }
.resource-card a, .callout a, .closing > a { color: var(--teal); font-weight: 800; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.resource-card-wide { grid-column: 1 / -1; min-height: 220px; }

.calendar-section { background: var(--sand); }
.calendar-wrap { overflow-x: auto; background: #fffdf8; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; min-width: 680px; }
th { color: #fff; background: var(--teal-deep); padding: 1rem 1.2rem; text-align: left; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; }
td { padding: .9rem 1.2rem; border-bottom: 1px solid var(--line); }
td:first-child { width: 24%; color: var(--teal); font-weight: 800; }
td:last-child { width: 24%; }
td span { display: inline-block; padding: .2rem .55rem; background: #efe6ce; color: var(--teal-deep); border-radius: 999px; font-size: .78rem; font-weight: 700; }
tr.highlight td { background: #f7eadf; }
.note { margin: 1rem 0 0; color: #66706e; font-size: .9rem; font-style: italic; }

.chapter { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 2rem; border-top: 1px solid var(--line); }
.chapter.alt { background: #f8f4ea; }
.chapter-number { color: var(--gold); font: 700 2.5rem/1 var(--serif); padding-top: .6rem; }
.chapter-main { max-width: 1040px; }
.chapter-lead { max-width: 840px; font: 400 clamp(1.2rem, 2vw, 1.55rem)/1.55 var(--serif); color: #465456; }
.split { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2.2rem; margin-top: 2.5rem; align-items: start; }
.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; padding: .75rem 0 .75rem 2rem; border-bottom: 1px solid var(--line); }
.check-list li::before { content: "✓"; position: absolute; left: .2rem; color: var(--rose); font-weight: 900; }
.callout { padding: 2rem; color: #fff; background: var(--teal-deep); }
.callout.light { color: var(--ink); background: #efe6ce; }
.callout.light a { color: var(--teal); }
.callout:not(.light) a { color: #fff; }
.feature-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); margin-top: 2.5rem; }
.feature-row > div { background: var(--cream); padding: 1.8rem; }
.feature-row span { color: var(--gold); font-weight: 800; letter-spacing: .13em; }
.resource-link { display: inline-flex; align-items: center; margin-top: 1.35rem; padding: .8rem 1.05rem; color: #fff; background: var(--teal); border: 1px solid var(--teal); border-radius: 4px; font-weight: 800; text-decoration: none; transition: .2s ease; }
.resource-link:hover { transform: translateY(-2px); background: var(--teal-deep); }
.resource-link-light { color: #fff !important; background: var(--teal); }
.steps { padding: 0; margin: 0; list-style: none; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 92px 1fr; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.steps b { color: var(--teal); }

.trivia-section { background: #f3ead6; }
.trivia-shell { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(2.2rem, 5vw, 5rem); align-items: start; }
.trivia-heading-label { display: flex; align-items: baseline; gap: 1rem; }
.trivia-heading-label span { color: var(--gold); font: 700 2.5rem/1 var(--serif); }
.trivia-heading-label .eyebrow { margin: 0; }
.trivia-copy h2 { margin: .2rem 0 1rem; color: var(--teal); font: 700 clamp(2.9rem, 5.6vw, 5.5rem)/.92 var(--serif); letter-spacing: -.045em; }
.practice-note { margin: 1.5rem 0 .3rem; padding: 1.1rem 1.25rem; background: rgba(255,253,247,.78); border-left: 4px solid var(--rose); }
.practice-note strong { display: block; margin-bottom: .25rem; color: var(--rose); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; }
.practice-note p { margin: 0; }
.trivia-rules { padding: 2rem; background: var(--cream); border-top: 5px solid var(--gold); }
.trivia-rules ol { margin: .5rem 0 0; padding: 0; list-style: none; }
.trivia-rules li { display: grid; grid-template-columns: 42px 1fr; gap: .5rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.trivia-rules li:last-child { border-bottom: 0; }
.trivia-rules li span { color: var(--rose); font: 700 1rem/1.5 var(--serif); }
.trivia-rules li p { margin: 0; }
.winner-card { display: grid; grid-template-columns: 1fr 1fr; margin-top: 2.5rem; color: #fff; background: var(--teal-deep); }
.winner-card > div { padding: 1.8rem 2rem; }
.winner-card > div + div { border-left: 1px solid rgba(255,255,255,.22); }
.winner-card .kicker { color: #d7bb58; }
.winner-card p:last-child { margin-bottom: 0; }
.trivia-purpose { max-width: 900px; margin: 1.5rem auto 0; text-align: center; font: italic 1.05rem/1.6 var(--serif); color: #526064; }

.download-section { color: #fff; background: var(--teal-deep); }
.download-section .eyebrow { color: #d7bb58; }
.download-section .section-heading h2 { color: #fff; }
.download-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid rgba(255,255,255,.25); border-left: 1px solid rgba(255,255,255,.25); }
.download-grid article { padding: 2.4rem; border-right: 1px solid rgba(255,255,255,.25); border-bottom: 1px solid rgba(255,255,255,.25); }
.download-grid h3 { color: #fff; font-size: 2rem; }
.download-type { color: #d7bb58; }
.closing { min-height: 70vh; padding: 100px max(7vw, 34px); display: grid; place-content: center; text-align: center; background: linear-gradient(rgba(255,253,247,.93), rgba(255,253,247,.93)), radial-gradient(circle at 50% 50%, var(--gold), transparent 55%); }
.closing blockquote { max-width: 920px; margin: 1rem auto 2rem; }

@media (max-width: 900px) {
  .sidebar { position: sticky; top: 0; width: 100%; height: auto; padding: 12px 18px; flex-direction: row; align-items: center; overflow: visible; }
  .sidebar-brand { border: 0; padding: 0; white-space: nowrap; }
  .sidebar-brand span { font-size: .58rem; }
  .sidebar-brand strong { font-size: 1rem; }
  .sidebar nav { margin-left: auto; display: flex; padding: 0; }
  .sidebar nav a { display: none; }
  .sidebar nav a[href="#trivia"], .sidebar nav a[href="#coordinador"], .sidebar nav a[href="#homilias"] { display: block; font-size: .76rem; }
  .sidebar nav small, .nav-rule, .sidebar-downloads { display: none; }
  main { margin-left: 0; }
  .hero { min-height: calc(100vh - 60px); }
  .resource-grid, .download-grid, .split, .trivia-shell, .winner-card { grid-template-columns: 1fr; }
  .resource-card-wide { grid-column: auto; }
  .winner-card > div + div { border-left: 0; border-top: 1px solid rgba(255,255,255,.22); }
  .feature-row { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .sidebar nav a[href="#coordinador"] { display: none; }
  .section { padding: 72px 22px; }
  .hero { padding: 45px 22px 30px; }
  .logo-lockup img { margin-bottom: 2rem; width: 145px; }
  .hero h1 { font-size: clamp(3.4rem, 16vw, 5rem); }
  .hero-values { gap: .6rem; font-size: .6rem; }
  .chapter { grid-template-columns: 1fr; gap: .5rem; }
  .chapter-number { font-size: 1.6rem; }
  .resource-card { min-height: 240px; }
}

@media print {
  .sidebar, .hero-actions { display: none; }
  main { margin: 0; }
  .hero { min-height: auto; padding: 2cm 1cm; }
  .section { padding: 1.2cm 1cm; }
}
