:root {
  --green: #173f35;
  --green-deep: #0f2d26;
  --gold: #c9a458;
  --paper: #f8f4ea;
  --ink: #21332d;
  --muted: #65736e;
  --line: #ddd5c4;
  --white: #fff;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.65 Inter, system-ui, sans-serif;
}

a { color: inherit; }

.site-header,
main,
footer {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--green);
}

.brand {
  font: 700 1.35rem/1 "Cormorant Garamond", serif;
  text-decoration: none;
}

.site-header span {
  color: var(--muted);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.hero {
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr);
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
}

.hero-image {
  min-height: 520px;
  background: linear-gradient(90deg, transparent 70%, rgba(255,255,255,.12)), url("homilias-juanito-optimized.jpg") center / cover no-repeat;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 5rem);
}

.eyebrow {
  margin: 0 0 .8rem;
  color: #84651f;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", serif;
  color: var(--green);
}

h1 {
  max-width: 600px;
  margin: 0;
  font-size: clamp(3.3rem, 7vw, 6.1rem);
  font-weight: 600;
  line-height: .88;
  letter-spacing: -.045em;
}

.lead {
  max-width: 590px;
  margin: 1.7rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 2rem;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .85rem 1.25rem;
  border: 1px solid transparent;
  font-size: .93rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform .16s ease, background-color .16s ease, border-color .16s ease;
}

.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--green); color: var(--white); }
.button-primary:hover { background: var(--green-deep); }
.button-secondary { border-color: var(--line); color: var(--green); }
.button-secondary:hover { border-color: var(--gold); }
.button-light { background: var(--white); color: var(--green); }

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 2.5rem 0 0;
  padding: 1.35rem 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.facts li { display: flex; flex-direction: column; }
.facts strong { color: var(--green); font: 600 1.65rem/1 "Cormorant Garamond", serif; }
.facts span { margin-top: .25rem; color: var(--muted); font-size: .76rem; }

.details {
  padding: clamp(4rem, 8vw, 7rem) clamp(0rem, 3vw, 3rem);
}

.details > div:first-child {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 2rem;
  align-items: start;
}

.details h2 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 600;
  line-height: .98;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}

.details article {
  min-height: 260px;
  padding: 1.7rem;
  background: rgba(255,255,255,.65);
  border-top: 3px solid var(--gold);
}

.details article > span {
  color: #84651f;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
}

.details h3 {
  margin: 2.2rem 0 .7rem;
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1.05;
}

.details article p { margin: 0; color: var(--muted); }

.download-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(4rem, 8vw, 7rem);
  padding: clamp(2rem, 5vw, 4rem);
  background: var(--green);
  color: #e9f0ed;
}

.download-card .eyebrow { color: #e5c77f; }
.download-card h2 { margin: 0; color: var(--white); font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1; }
.download-card p:last-child { margin: .8rem 0 0; }

footer {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .82rem;
}

footer a { color: var(--green); text-decoration: none; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-image { min-height: 430px; }
  .hero-copy { padding-block: 3rem; }
  .details > div:first-child { grid-template-columns: 1fr; gap: .8rem; }
  .details-grid { grid-template-columns: 1fr; }
  .details article { min-height: 0; }
}

@media (max-width: 620px) {
  .site-header { min-height: 64px; }
  .site-header span { display: none; }
  .hero-image { min-height: 300px; background-position: 42% center; }
  .hero-copy { padding: 2rem 1.25rem 2.5rem; }
  h1 { font-size: clamp(3.1rem, 16vw, 4.4rem); }
  .actions { flex-direction: column; }
  .button { width: 100%; }
  .facts span { font-size: .68rem; }
  .download-card { align-items: stretch; flex-direction: column; }
  footer { align-items: flex-start; flex-direction: column; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
