:root {
  --cream: #faf7f2;
  --cream-deep: #f3ede3;
  --prado: #f4f7f1;
  --green: #7a9b6d;
  --green-deep: #3e5640;
  --water: #5b8c8a;
  --water-deep: #2c5554;
  --ink: #2e2a24;
  --ink-soft: #5a534a;
  --card: #fffdfb;
  --line: rgba(46, 42, 36, 0.1);
  --shadow: 0 16px 40px rgba(46, 42, 36, 0.08);
  --serif: "Cormorant Garamond", "Palatino Linotype", Palatino, serif;
  --sans: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --header: 4.4rem;
  --radius: 1.25rem;
}

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

html {
  scroll-behavior: auto;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.65;
}

body.nav-open {
  overflow: hidden;
}

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

h1, h2, h3, p, figure, blockquote, dl, dd, address {
  margin: 0;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
}

h2 {
  font-size: clamp(2.1rem, 4vw, 3.25rem);
  margin-bottom: 0.85rem;
}

h3 {
  font-size: 1.7rem;
}

p {
  max-width: 65ch;
}

a {
  color: var(--water-deep);
}

address {
  font-style: normal;
  line-height: 1.55;
}

::selection {
  background: #d5e4dc;
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--water-deep);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 50;
  background: var(--card);
  color: var(--ink);
  padding: 0.6rem 0.9rem;
  border-radius: 0.6rem;
}

.skip:focus {
  top: 0.75rem;
}

.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;
}

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

.section {
  --padt: 6.5rem;
  --padb: 2.75rem;
  box-sizing: border-box;
  height: auto;
  padding: var(--padt) 0 var(--padb);
  overflow: visible;
  scroll-margin-top: 0;
}

.section-suave {
  background: var(--cream-deep);
}

.section-prado {
  background: var(--prado);
}

.kicker {
  margin: 0 0 0.55rem;
  color: var(--water-deep);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.intro {
  margin-bottom: 1.5rem;
  color: var(--ink-soft);
}

.verso-seccion {
  margin-bottom: 1.75rem;
}

.cita {
  margin: 0.95rem 0 0;
}

.cita blockquote {
  margin: 0;
}

.cita p {
  color: var(--ink);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.35;
}

.cita figcaption {
  margin-top: 0.35rem;
  color: var(--water-deep);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font: 600 0.98rem/1.2 var(--sans);
  text-decoration: none;
  text-align: center;
  border: 2px solid transparent;
}

.btn-solido {
  background: var(--green-deep);
  color: var(--cream);
}

.btn-solido:hover {
  background: #314733;
}

.btn-solido:active,
.btn-linea:active {
  transform: translateY(1px);
}

.btn-linea {
  background: transparent;
  color: var(--green-deep);
  border-color: var(--green-deep);
}

.btn-linea:hover {
  background: rgba(62, 86, 64, 0.08);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  background: rgba(250, 247, 242, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(46, 42, 36, 0.05);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.brand img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(122, 155, 109, 0.85);
  flex: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}

.brand-kicker {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--water-deep);
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle .x {
  display: none;
}

.nav-toggle[aria-expanded="true"] .bars {
  display: none;
}

.nav-toggle[aria-expanded="true"] .x {
  display: block;
}

.nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.15rem 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.35rem 0;
  white-space: nowrap;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
}

.nav a:hover,
.nav a[aria-current="true"] {
  color: var(--water-deep);
  background-size: 100% 1px;
}

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  box-sizing: border-box;
  height: 100svh;
  padding: var(--header) 0 1.5rem;
  overflow: hidden;
  scroll-margin-top: 0;
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  filter: brightness(1.16) saturate(1.06);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(250, 247, 242, 0.06) 0%, rgba(46, 42, 36, 0.12) 100%);
  pointer-events: none;
}

.hero-align {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.hero-panel {
  width: min(38rem, 100%);
  padding: 1.4rem 1.25rem 1.35rem;
  background: rgba(250, 247, 242, 0.94);
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
}

.h1-kicker {
  display: block;
  margin-bottom: 0.2rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--water-deep);
}

.h1-name {
  display: block;
  font-size: clamp(2.45rem, 7vw, 4.4rem);
  font-weight: 600;
}

.verso {
  margin: 1rem 0 0.85rem;
}

.verso blockquote {
  margin: 0;
  padding-left: 0.9rem;
  border-left: 3px solid var(--green);
}

.verso blockquote p {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.35;
  max-width: 36ch;
}

.verso figcaption {
  margin-top: 0.45rem;
  padding-left: 0.9rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.hero-sub {
  margin-bottom: 1.1rem;
  font-size: 1.08rem;
}

.hero .btn,
.jesus .btn {
  width: 100%;
}

.jesus {
  max-width: 40rem;
}

.jesus .btn {
  margin-top: 0.4rem;
}

.pendiente {
  color: var(--ink-soft);
}

.dos,
.pastor,
.lugar {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

.retrato img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  border-radius: 1.4rem;
  box-shadow: var(--shadow);
  background: #e6e0d6;
}

.datos {
  display: grid;
  gap: 0.75rem;
  margin: 1.35rem 0 0;
  padding: 0;
  list-style: none;
}

.datos li {
  padding: 0.9rem 1rem;
  background: var(--card);
  border-radius: 1rem;
  box-shadow: var(--shadow);
}

.datos span {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--water-deep);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tarjeta {
  padding: 1.35rem 1.2rem 1.4rem;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.tarjeta-sub {
  margin-top: 1.4rem;
}

.horario {
  margin: 0.4rem 0 1rem;
}

.horario div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

.horario dt {
  color: var(--ink-soft);
}

.horario dd {
  margin: 0;
  font-weight: 600;
}

.tarjeta address {
  margin: 0.35rem 0 1.15rem;
}

.mapa {
  min-height: 320px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #e6e0d6;
  box-shadow: var(--shadow);
}

.mapa iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: 0;
}

.vida-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.vida-card {
  min-width: 0;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(46, 42, 36, 0.05);
  overflow: hidden;
}

.vida-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  object-position: center;
  background: #efeae3;
}

.vida-card div {
  padding: 1.15rem 1.15rem 1.3rem;
}

.vida-card h3 {
  margin-bottom: 0.35rem;
}

.vida-card div > p {
  color: var(--ink-soft);
}

.galeria-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  align-items: start;
}

.galeria-grid button {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 1rem;
  overflow: hidden;
  background: #e6e0d6;
  cursor: pointer;
}

.galeria-grid img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.galeria-grid .ancho,
.galeria-grid .panorama {
  grid-column: 1 / -1;
}

@media (prefers-reduced-motion: no-preference) {
  .galeria-grid img {
    transition: transform 0.45s ease;
  }

  .galeria-grid button:hover img {
    transform: scale(1.03);
  }
}

.predicas {
  display: grid;
  gap: 1rem;
}

.predica {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
  padding: 1.2rem 1.15rem 1.3rem;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
}

.predica h3 {
  margin-bottom: 0;
}

.predica p {
  color: var(--ink-soft);
}

.predica span {
  margin-top: 0.35rem;
  color: var(--water-deep);
  font-size: 0.92rem;
  font-weight: 600;
}

.contacto-oficial {
  margin: 0.2rem 0 0.8rem;
}

.contacto-oficial .btn {
  max-width: 100%;
  white-space: normal;
}

.contacto {
  max-width: 40rem;
}

.site-footer {
  --padt: 6.5rem;
  --padb: 2.75rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 100svh;
  padding: var(--padt) 0 var(--padb);
  overflow: visible;
  background: var(--green-deep);
  color: var(--cream);
  scroll-margin-top: 0;
}

.site-footer .kicker,
.site-footer h2 {
  color: #e7f0e2;
}

.site-footer .btn-solido {
  margin: 0.2rem 0 1rem;
  background: var(--cream);
  color: var(--green-deep);
}

.site-footer .btn-solido:hover {
  background: #fff;
}

.site-footer .btn-linea {
  color: var(--cream);
  border-color: rgba(250, 247, 242, 0.8);
}

.site-footer .btn-linea:hover {
  background: rgba(250, 247, 242, 0.12);
}

.site-footer .pendiente {
  color: rgba(250, 247, 242, 0.9);
}

.footer-nota {
  max-width: 42ch;
  color: rgba(250, 247, 242, 0.9);
}

.footer-nota a {
  color: var(--cream);
  font-weight: 600;
}

.footer-nombre {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.15;
  max-width: 20ch;
}

.site-footer p + p {
  margin-top: 0.7rem;
  color: rgba(250, 247, 242, 0.88);
}

.verso-pie {
  margin-top: 1.2rem;
}

.verso-pie blockquote {
  border-left-color: #c5d7b8;
}

.verso-pie blockquote p,
.verso-pie figcaption {
  color: var(--cream);
}

.verso-pie figcaption {
  color: rgba(250, 247, 242, 0.82);
}

.footer-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.firma {
  margin-top: auto;
  padding-top: 2.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.01em;
  color: rgba(250, 247, 242, 0.78);
}

.firma a {
  color: inherit;
  font-weight: 500;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

.visor {
  width: min(960px, calc(100vw - 1.5rem));
  max-height: calc(100dvh - 1.5rem);
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
}

.visor::backdrop {
  background: rgba(46, 42, 36, 0.86);
}

.visor-panel {
  padding: 0.75rem;
  background: var(--cream);
  border-radius: 1rem;
  max-height: calc(100dvh - 1.5rem);
  overflow: auto;
}

.visor-panel form {
  display: flex;
  justify-content: flex-end;
  position: sticky;
  top: 0;
  z-index: 2;
  margin-bottom: 0.45rem;
  background: var(--cream);
}

.visor-panel img {
  width: auto;
  max-width: 100%;
  max-height: 62vh;
  margin-inline: auto;
  object-fit: contain;
  border-radius: 0.7rem;
}

.visor-panel p {
  margin-top: 0.7rem;
  max-width: none;
}

.visor-cerrar {
  min-height: 44px;
  padding: 0.4rem 0.85rem;
  border: 2px solid var(--green-deep);
  border-radius: 999px;
  background: var(--cream);
  color: var(--green-deep);
  font: 600 0.92rem/1 var(--sans);
  cursor: pointer;
}

.visor-controles {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.visor-controles button {
  min-height: 44px;
  padding: 0.4rem 0.9rem;
  border: 2px solid var(--green-deep);
  border-radius: 999px;
  background: transparent;
  color: var(--green-deep);
  font: 600 0.92rem/1 var(--sans);
  cursor: pointer;
}

@media (min-width: 640px) {
  .hero .btn,
  .jesus .btn {
    width: auto;
  }

  .datos {
    grid-template-columns: repeat(3, 1fr);
  }
}

.section > .dos,
.section > .pastor {
  display: grid;
}

.mapa {
  height: 22rem;
}

.mapa iframe {
  height: 100%;
  min-height: 0;
}

@media (min-width: 800px) {
  .dos {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3.25rem;
    align-items: start;
  }

  .pastor {
    grid-template-columns: 0.78fr 1.22fr;
    gap: 3rem;
    align-items: start;
  }

  .lugar {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 1.25rem;
    align-items: start;
  }

  .galeria-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.85rem;
    align-items: start;
  }

  .galeria-grid .ancho,
  .galeria-grid .panorama {
    grid-column: 1 / -1;
  }
}

@media (min-width: 760px) and (max-width: 1099px) {
  .vida-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vida-card:nth-child(3) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - 0.5rem);
  }

  .predicas {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .vida-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }

  .vida-card:nth-child(3) {
    grid-column: auto;
    width: auto;
  }

  .predicas {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1080px) {
  .js .nav-toggle {
    display: inline-flex;
  }

  .js .nav {
    display: none;
    position: absolute;
    z-index: 5;
    top: 100%;
    left: 0;
    right: 0;
    padding: 0.35rem 1rem 0.6rem;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .js .nav.is-open {
    display: block;
  }

  .js .nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .js .nav a {
    display: block;
    padding: 0.8rem 0.2rem;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }

  html:not(.js) .header-inner {
    flex-wrap: wrap;
    padding-bottom: 0.6rem;
  }

  html:not(.js) .nav {
    width: 100%;
  }

  html:not(.js) .nav ul {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .nav a,
  .btn {
    transition: background-size 0.25s ease, color 0.2s ease, background-color 0.2s ease, transform 0.15s ease;
  }

  .hero-panel[data-enter] {
    animation: entrar 0.7s ease both;
  }

  .retrato img,
  .vida-card img,
  .galeria-grid img {
    transition: transform 0.45s ease;
  }

  .retrato:hover img,
  .vida-card:hover img,
  .galeria-grid button:hover img {
    transform: scale(1.03);
  }
}

@keyframes entrar {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

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

@media print {
  .site-header,
  .nav-toggle,
  .visor,
  .btn {
    display: none !important;
  }

  .hero {
    min-height: 0;
  }

  .hero-media {
    position: static;
    height: 280px;
    object-fit: cover;
  }

  body {
    background: #fff;
    color: #000;
  }
}
