/* kennedygonzalez.com
   Paleta A, blanco y carbón: carbón (tinta), blanco hueso (fondo), vino (acento), piedra (texto secundario) */
:root {
  --pine: #1D1F21;
  --pine-deep: #141617;
  --leaf: #F7F7F5;
  --leaf-2: #E4E2DE;
  --lamp: #7A2E3A;
  --lamp-soft: #D9A9B0;
  --stone: #6B7075;
  --white: #FFFFFF;

  --serif: "Literata", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, sans-serif;

  --measure: 38rem;
  --wrap: 68rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--leaf);
  color: var(--pine);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.65;
  font-optical-sizing: auto;
}
h1, h2, h3, p, ol, ul, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration-color: var(--lamp); text-underline-offset: .2em; }
a:hover { color: var(--pine-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--lamp); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; }
.small { font-family: var(--sans); font-size: .875rem; color: var(--stone); }

.skip {
  position: absolute; left: -999px; top: .5rem;
  background: var(--pine); color: var(--white); padding: .5rem 1rem;
  font-family: var(--sans); z-index: 10;
}
.skip:focus { left: .5rem; }

/* Encabezado */
.site-header { border-bottom: 1px solid var(--leaf-2); background: var(--leaf); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 4.25rem; flex-wrap: wrap;
}
/* Logo: firma pastoral */
.logo { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; line-height: 1; padding: .5rem 0; }
.logo-role { font-family: var(--sans); font-weight: 500; font-size: .625rem; letter-spacing: .32em; text-transform: uppercase; color: var(--stone); margin-right: -.32em; }
.logo-name { font-family: var(--serif); font-weight: 500; font-size: 1.25rem; letter-spacing: -.01em; margin-top: .3rem; }
.logo-bar { width: 1.25rem; height: 2px; background: var(--lamp); margin-top: .6rem; }
.site-header nav ul { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.site-header nav a {
  font-family: var(--sans); font-size: .9375rem; font-weight: 500;
  text-decoration: none; color: var(--stone);
}
.site-header nav a:hover { color: var(--pine); }

/* Portada */
.hero { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(4rem, 8vw, 6rem); }
.hero-top {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero-intro { margin-top: 1.5rem; max-width: 34rem; font-size: 1.1875rem; color: var(--stone); }
.hero-photo img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%;
  border-radius: 4px;
}
.hero h1 {
  font-weight: 500;
  font-size: clamp(2.25rem, 5.4vw, 4rem);
  line-height: 1.1;
  letter-spacing: -.02em;
  max-width: 17ch;
  text-wrap: balance;
}

/* La cadena: la Palabra entregada de persona a persona */
.chain {
  --dot: .75rem;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: clamp(2.5rem, 6vw, 4rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  position: relative;
  font-family: var(--sans);
  font-size: .9375rem;
  color: var(--stone);
}
.chain::before {
  content: "";
  position: absolute;
  left: calc(var(--dot) / 2); right: calc(100% / 6 - var(--dot) / 2);
  top: calc(var(--dot) / 2 - 1px);
  height: 2px;
  background: var(--lamp);
  transform-origin: left center;
  animation: thread 1.6s cubic-bezier(.65, 0, .35, 1) .3s both;
}
.chain li { position: relative; padding-top: calc(var(--dot) + .9rem); padding-right: .5rem; }
.chain li::before {
  content: "";
  position: absolute; left: 0; top: 0;
  width: var(--dot); height: var(--dot); border-radius: 50%;
  background: var(--leaf); border: 2px solid var(--lamp);
}
.chain li:first-child::before { background: var(--lamp); }
.chain li.you { color: var(--pine); font-weight: 600; }
.chain li.you::before {
  background: var(--leaf); border-style: dashed;
  animation: arrive .5s ease-out 1.8s both;
}
@keyframes thread { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes arrive { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.hero-verse { max-width: var(--measure); border-left: 2px solid var(--lamp); padding-left: 1.25rem; }
.hero-verse p { font-style: italic; font-size: 1.1875rem; color: var(--pine); }
.hero-verse cite { display: block; margin-top: .5rem; font-style: normal; font-family: var(--sans); font-size: .875rem; color: var(--stone); }

.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.btn {
  display: inline-block; padding: .8rem 1.4rem; border-radius: 999px;
  font-family: var(--sans); font-weight: 600; font-size: 1rem; text-decoration: none;
  transition: background-color .2s, color .2s;
}
.btn-primary { background: var(--pine); color: var(--white); }
.btn-primary:hover { background: var(--pine-deep); color: var(--white); }
.btn-quiet { color: var(--pine); box-shadow: inset 0 0 0 1.5px var(--pine); }
.btn-quiet:hover { background: var(--leaf-2); }

/* Secciones */
main > section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
h2 { font-weight: 500; font-size: clamp(1.75rem, 3.4vw, 2.5rem); line-height: 1.2; letter-spacing: -.015em; }
h3 { font-weight: 600; font-size: 1.25rem; line-height: 1.3; }

/* Pasar la Palabra */
.pass { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-top: 2rem; }
.pass p { font-size: 1.0625rem; }
.pass .btn { font-size: .9375rem; padding: .6rem 1.1rem; background: none; cursor: pointer; }
.pass-done { flex-basis: 100%; font-family: var(--sans); font-size: .9375rem; color: var(--lamp); font-weight: 600; }
.chain li.you.passed::before { background: var(--lamp); border-style: solid; animation: arrive .5s ease-out both; }

/* Mensaje más reciente */
main > section.latest { padding: 0 0 clamp(3.5rem, 7vw, 5rem); }
.latest-inner {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1.5rem 3rem; align-items: end;
  border-top: 2px solid var(--pine); padding-top: 2rem;
}
.latest-kicker { font-family: var(--sans); font-size: .9375rem; color: var(--stone); }
.latest h2 { margin-top: .4rem; }
.latest-ref { font-family: var(--sans); font-size: .9375rem; color: var(--lamp); font-weight: 600; margin-top: .4rem; }
.latest-action { display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; }
.latest-note { color: var(--stone); font-size: 1rem; }
.all-link { margin-top: 2.5rem; font-family: var(--sans); font-weight: 600; }

/* Propósito: fondo pino, el único bloque oscuro */
.purpose { background: var(--pine); color: var(--leaf); }
.purpose .lead { max-width: var(--measure); margin-top: 1.25rem; font-size: 1.1875rem; color: var(--leaf-2); }
.pillars {
  display: grid; gap: 2.5rem 3rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  margin-top: 3.5rem;
}
.pillars article { border-top: 2px solid var(--lamp-soft); padding-top: 1.25rem; }
.pillars h3 { color: var(--white); }
.pillars p { margin-top: .6rem; color: var(--leaf-2); }
.pillars .ref { font-family: var(--sans); font-size: .875rem; color: var(--lamp-soft); }

/* Prédicas */
.section-head { max-width: var(--measure); }
.section-head p { margin-top: .75rem; color: var(--stone); }
.series { margin-top: 3rem; }
.series h3 { font-size: 1.125rem; }
.series-note { color: var(--stone); font-size: 1rem; margin-top: .25rem; }
.sermon-list { margin-top: 1rem; border-top: 1px solid var(--leaf-2); }
.sermon-list li {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr) minmax(0, 14rem);
  gap: .25rem 1.5rem;
  align-items: baseline;
  padding: 1rem 0;
  border-bottom: 1px solid var(--leaf-2);
}
.sermon-list time { font-family: var(--sans); font-size: .875rem; color: var(--stone); font-variant-numeric: tabular-nums; }
.sermon-list .t { font-size: 1.1875rem; font-weight: 500; }
.sermon-list .p { font-family: var(--sans); font-size: .875rem; color: var(--stone); text-align: right; }

/* Recursos */
.resources { background: var(--leaf-2); }
.resource-list {
  display: grid; gap: 2rem 3rem; margin-top: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.resource-list p { margin-top: .5rem; color: var(--stone); }

/* Acerca de */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 2.5rem 4rem; align-items: center; }
.about-photo img { display: block; width: 100%; height: auto; border-radius: 4px; }
.about-text { max-width: var(--measure); }
.about-text h2 { margin-bottom: 1.25rem; }
.about-text p + p { margin-top: 1rem; }

/* Pie */
.site-footer { background: var(--pine-deep); color: var(--leaf-2); padding: 3.5rem 0; }
.footer-verse { font-style: italic; max-width: var(--measure); font-size: 1.0625rem; }
.footer-verse span { font-style: normal; font-family: var(--sans); font-size: .875rem; color: var(--lamp-soft); margin-left: .25rem; }
.site-footer .small { margin-top: 1.5rem; color: #9A9EA2; }

/* Página de prédica */
.sermon-head { padding-top: clamp(2.5rem, 6vw, 4rem); }
.crumbs { font-family: var(--sans); font-size: .9375rem; color: var(--stone); }
.crumbs a { color: var(--stone); }
.sermon-head h1 { font-weight: 500; font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.12; letter-spacing: -.02em; margin-top: .75rem; max-width: 20ch; }
.sermon-meta { margin-top: 1rem; font-family: var(--sans); font-size: .9375rem; color: var(--stone); }
.sermon-meta .ref { color: var(--lamp); font-weight: 600; }
.video { position: relative; aspect-ratio: 16 / 9; margin: 2rem 0 0; background: var(--pine); border-radius: 4px; overflow: hidden; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sermon-body { display: grid; grid-template-columns: minmax(0, 16rem) minmax(0, 1fr); gap: 3rem 4rem; padding-top: 3rem; padding-bottom: 5rem; }
.sermon-aside { align-self: start; position: sticky; top: 1.5rem; font-size: 1rem; }
.sermon-aside h2 { font-size: 1.125rem; font-weight: 600; }
.sermon-aside h3 { font-size: 1rem; margin-top: 1.5rem; }
.sermon-aside p { margin-top: .5rem; color: var(--stone); }
.sermon-aside ol { list-style: decimal; padding-left: 1.2rem; margin-top: .5rem; }
.sermon-aside li { margin-top: .35rem; }
.share-btn { margin-top: 1.5rem; font-size: .9375rem; padding: .6rem 1.1rem; background: none; cursor: pointer; }
.sermon-text { max-width: var(--measure); }
.sermon-text p { margin-top: 1.1rem; line-height: 1.75; }
.sermon-text h2 { font-size: 1.625rem; margin-top: 3rem; scroll-margin-top: 1.5rem; }
.sermon-text h3 { margin-top: 2.25rem; }
.scripture { margin: 1.5rem 0; padding: .25rem 0 .25rem 1.25rem; border-left: 2px solid var(--lamp); font-style: italic; }
.scripture p { margin-top: .75rem; }
.scripture cite { display: block; margin-top: .75rem; font-style: normal; font-family: var(--sans); font-size: .875rem; color: var(--stone); }
.prayer { font-style: italic; }
.call { margin-top: 3rem; padding-top: 2rem; border-top: 2px solid var(--lamp); }
.call h2 { margin-top: 0; }
.reflect { margin-top: 3rem; padding: 1.75rem; background: var(--leaf-2); border-radius: 4px; }
.reflect h2 { margin-top: 0; font-size: 1.375rem; }
.reflect ol { list-style: decimal; padding-left: 1.2rem; margin-top: 1rem; }
.reflect li + li { margin-top: .75rem; }
.note { font-family: var(--sans); font-size: .875rem; color: var(--stone); margin-top: 2.5rem !important; }
.sermon-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--leaf-2); }
.sermon-nav a { text-decoration: none; font-weight: 500; }
.sermon-nav a span { display: block; font-family: var(--sans); font-size: .8125rem; color: var(--stone); font-weight: 400; }
.sermon-nav a + a { text-align: right; }

.context { font-family: var(--sans); font-size: .9375rem; color: var(--stone); margin-top: 0 !important; padding-bottom: 1rem; border-bottom: 1px solid var(--leaf-2); }
.support-cta { margin-top: 3rem; padding: 2rem; background: var(--pine); color: var(--leaf); border-radius: 4px; }
.support-cta h2 { margin-top: 0; font-size: 1.375rem; color: var(--white); }
.support-cta p { color: var(--leaf-2); }
.support-cta .btn { margin-top: 1.5rem; background: var(--white); color: var(--pine); }
.support-cta .btn:hover { background: var(--leaf-2); color: var(--pine); }

/* Únase a la misión */
.join-head { padding: clamp(3rem, 7vw, 5rem) 0 1rem; }
.join-head h1 { font-weight: 500; font-size: clamp(2.25rem, 5vw, 3.5rem); line-height: 1.1; letter-spacing: -.02em; max-width: 18ch; }
.join-head .lead { margin-top: 1.25rem; max-width: var(--measure); font-size: 1.1875rem; color: var(--stone); }
.steps { counter-reset: step; margin: 3rem 0 5rem; border-top: 1px solid var(--leaf-2); }
.steps > li { counter-increment: step; display: grid; grid-template-columns: 3rem minmax(0, 1fr) auto; gap: .5rem 1.5rem; align-items: start; padding: 2rem 0; border-bottom: 1px solid var(--leaf-2); }
.steps > li::before { content: counter(step); font-family: var(--serif); font-size: 1.75rem; color: var(--lamp); line-height: 1.1; }
.steps h2 { font-size: 1.375rem; }
.steps p { margin-top: .4rem; color: var(--stone); max-width: var(--measure); }
.steps .btn { white-space: nowrap; }
.step-actions { display: flex; flex-direction: column; gap: .5rem; align-items: stretch; }
.step-actions .btn { text-align: center; background: none; cursor: pointer; font-size: .9375rem; }
.soon { font-family: var(--sans); font-size: .875rem; font-weight: 600; color: var(--stone); white-space: nowrap; padding-top: .4rem; }
.partners { background: var(--leaf-2); padding: clamp(3rem, 7vw, 5rem) 0; }
.partners-inner { max-width: var(--measure); }
.partners h2 { margin-bottom: 1rem; }
.partners p + p { margin-top: 1rem; }
.partners ul { list-style: disc; padding-left: 1.2rem; margin-top: 1rem; }
.partners li + li { margin-top: .4rem; }

/* Móvil */
@media (max-width: 720px) {
  body { font-size: 1.0625rem; }
  .header-inner { justify-content: center; padding-top: .5rem; padding-bottom: .75rem; }
  .site-header nav { width: 100%; }
  .site-header nav ul { gap: 1rem; justify-content: center; }
  .sermon-body { grid-template-columns: 1fr; }
  .sermon-aside { position: static; }
  .steps > li { grid-template-columns: 2.25rem minmax(0, 1fr); }
  .steps > li > :last-child { grid-column: 2; }
  .chain {
    grid-template-columns: 1fr;
    gap: .9rem;
    padding-left: 1.75rem;
  }
  .chain::before {
    left: calc(var(--dot) / 2 - 1px); right: auto; top: .4rem; bottom: .9rem;
    width: 2px; height: auto;
    transform-origin: center top;
    animation-name: thread-v;
  }
  .chain li { padding: 0; }
  .chain li::before { left: -1.75rem; top: .3rem; }
  .sermon-list li { grid-template-columns: 1fr; }
  .sermon-list .p { text-align: left; }
  .about-grid { grid-template-columns: 1fr; }
  .hero-top { grid-template-columns: 1fr; }
  .hero-photo { order: -1; max-width: 22rem; }
  .hero-photo img { aspect-ratio: 1 / 1; object-position: 50% 10%; }
  .latest-inner { grid-template-columns: 1fr; }
}
@keyframes thread-v { from { transform: scaleY(0); } to { transform: scaleY(1); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .chain::before, .chain li.you::before { animation: none; }
}
