:root {
  --navy: #173b63;
  --sky: #8bc8e8;
  --green: #64866c;
  --sand: #f2e9d8;
  --ink: #344054;
  --white: #fff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  overflow-x: hidden;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.wrap {
  width: min(100% - 48px, 1280px);
  margin-inline: auto;
}

.section-pad {
  padding: 120px 0;
}

.section-label {
  margin: 0 0 18px;
  color: var(--green);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .19em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h2 {
  margin-bottom: 0;
  color: var(--navy);
  font-size: clamp(44px, 5vw, 76px);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: .98;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 380px;
  align-items: end;
  gap: 60px;
  margin-bottom: 50px;
}

.section-heading>p {
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
}

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: 88px;
  display: grid;
  grid-template-columns: 190px 1fr auto;
  align-items: center;
  gap: 30px;
  padding: 0 max(24px, calc((100vw - 1400px)/2));
  background: rgb(255 255 255/.94);
  border-bottom: 1px solid rgb(23 59 99/.12);
  backdrop-filter: blur(14px);
}

.logo-link img {
  width: 150px;
  height: 68px;
  object-fit: contain;
}

.header nav {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 2.2vw, 34px);
  font-size: 12px;
  font-weight: 500;
  color: var(--navy);
}

.header nav a:hover {
  color: var(--green);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 52px;
  padding: 0 22px;
  background: var(--navy);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.nav-cta:hover,
.button:hover {
  background: #0e2c4d;
}

.menu {
  display: none;
  border: 0;
  background: none;
}

.menu i {
  display: block;
  width: 25px;
  height: 1px;
  margin: 6px;
  background: var(--navy);
}

.hero-full {
  position: relative;
  min-height: clamp(720px, 90vh, 920px);
  display: flex;
  align-items: flex-end;
  background-position: center;
  background-size: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(10 35 63/.9) 0%, rgb(10 35 63/.65) 35%, transparent 72%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100% - 48px, 1280px);
  margin: 0 auto;
  padding: 180px 0 90px;
  color: #fff;
}

.hero-content img {
  width: 270px;
  max-height: 128px;
  margin-bottom: 50px;
  object-fit: contain;
  object-position: left;
}

.hero-content .section-label {
  color: var(--sky);
}

.hero-content h1 {
  max-width: 780px;
  margin: 0 0 26px;
  font-size: clamp(64px, 7.5vw, 116px);
  font-weight: 500;
  letter-spacing: -.07em;
  line-height: .87;
}

.hero-content>p:not(.section-label) {
  max-width: 650px;
  margin-bottom: 32px;
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.55;
}

.light-link {
  display: inline-flex;
  gap: 16px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--sky);
  font-size: 13px;
  font-weight: 600;
}

.scroll-note {
  position: absolute;
  right: 36px;
  bottom: 74px;
  z-index: 2;
  color: #fff;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.story {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: clamp(55px, 8vw, 130px);
  padding-block: 140px;
}

.story-image {
  position: relative;
  height: 620px;
}

.story-image::before {
  position: absolute;
  inset: 40px 50% -35px -100vw;
  z-index: -1;
  background: var(--sand);
  content: "";
}

.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.78);
}

.story-image span {
  position: absolute;
  right: -36px;
  bottom: 50px;
  padding: 20px 24px;
  background: var(--navy);
  color: #fff;
  font: italic 20px "Newsreader", serif;
}

.story-copy p:last-child {
  margin: 34px 0 0;
  font-size: 17px;
  line-height: 1.8;
}

.vision {
  padding: 120px 0;
  background: var(--sand);
}

.vision-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.vision-intro .section-label {
  grid-column: 1/-1;
}

.vision-intro>p:last-child {
  max-width: 520px;
  margin: 0;
  align-self: end;
  line-height: 1.7;
}

.objectives {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 80px;
  border-top: 1px solid rgb(23 59 99/.2);
}

.objectives article {
  min-height: 310px;
  padding: 35px 42px;
  border-right: 1px solid rgb(23 59 99/.2);
}

.objectives article:last-child {
  border: 0;
}

.objectives article>span {
  color: var(--green);
  font: italic 22px "Newsreader", serif;
}

.objectives h3 {
  max-width: 270px;
  margin: 60px 0 18px;
  color: var(--navy);
  font: 500 32px/1.05 "Newsreader", serif;
}

.objectives p {
  margin: 0;
  line-height: 1.6;
}

.invitation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding-block: 110px;
}

.invitation>div:last-child>p {
  max-width: 530px;
  margin-bottom: 30px;
  line-height: 1.7;
}

.contact {
  background: var(--navy);
  color: #fff;
}

.contact-grid {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 100px;
}

.contact h2 {
  color: #fff;
}

.contact-title h3 {
  margin: 20px 0 32px;
  color: var(--sky);
  font: italic 30px "Newsreader", serif;
}

.contact-title>p {
  max-width: 430px;
  line-height: 1.7;
  opacity: .78;
}

.socials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgb(255 255 255/.2);
}

.socials article {
  min-height: 230px;
  display: grid;
  grid-template-columns: 45px 1fr;
  padding: 35px;
  border-right: 1px solid rgb(255 255 255/.2);
  border-bottom: 1px solid rgb(255 255 255/.2);
}

.socials article:nth-child(3) {
  grid-column: 1/-1;
  min-height: 180px;
}

.socials article>span {
  color: var(--sky);
  font: italic 18px "Newsreader", serif;
}

.socials h3 {
  margin-bottom: 15px;
  font: 500 34px "Newsreader", serif;
}

.socials p {
  margin-bottom: 28px;
  opacity: .75;
}

.footer {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 45px 0 0;
  font-size: 11px;
}

.footer img {
  width: 145px;
  height: 70px;
  object-fit: contain;
}

.footer a {
  margin-left: auto;
  color: var(--navy);
  font-weight: 600;
}

/* Segunda pasada: dirección de arte editorial */
body {
  background: #fdfcf9;
}

.wrap {
  width: min(100% - 72px, 1360px);
}

.section-pad {
  padding-block: clamp(110px, 11vw, 180px);
}

.section-label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 10px;
  letter-spacing: 0.24em;
}

.section-label::before {
  width: 30px;
  height: 1px;
  flex: 0 0 auto;
  background: currentColor;
  content: "";
}

h2 {
  max-width: 900px;
  font-size: clamp(58px, 6.8vw, 104px);
  line-height: 0.88;
  letter-spacing: -0.07em;
}

.section-heading {
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.5fr);
  align-items: center;
  margin-bottom: 72px;
}

.section-heading>p {
  padding-top: 24px;
  border-top: 1px solid rgb(23 59 99 / 25%);
}

.header {
  height: 82px;
  grid-template-columns: 170px 1fr auto;
  background: rgb(253 252 249 / 90%);
  border-bottom-color: rgb(23 59 99 / 8%);
}

.logo-link img {
  width: 138px;
  height: 62px;
}

.header nav {
  gap: clamp(20px, 2.5vw, 42px);
  font-size: 11px;
  letter-spacing: 0.03em;
}

.nav-cta,
.button {
  position: relative;
  min-height: 56px;
  padding-inline: 26px;
  overflow: hidden;
}

.nav-cta::before,
.button::before {
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: var(--sky);
  content: "";
  transform: translateX(-101%);
  transition: transform 300ms ease;
}

.nav-cta:hover::before,
.button:hover::before {
  transform: none;
}

.hero-full {
  min-height: min(960px, 100svh);
  background-position: center 42%;
}

.hero-full::after {
  position: absolute;
  right: clamp(24px, 5vw, 80px);
  bottom: -1px;
  z-index: 2;
  width: clamp(120px, 16vw, 250px);
  height: 9px;
  background: var(--sky);
  content: "";
}

.hero-shade {
  background:
    linear-gradient(90deg, rgb(8 31 57 / 92%) 0%, rgb(8 31 57 / 66%) 32%, transparent 68%),
    linear-gradient(0deg, rgb(8 31 57 / 35%), transparent 35%);
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 820px) 1fr;
  align-items: end;
  padding: 150px 0 78px;
}

.hero-content img,
.hero-content .section-label,
.hero-content h1 {
  grid-column: 1;
}

.hero-content img {
  width: 235px;
  max-height: 115px;
  margin-bottom: 60px;
}

.hero-content h1 {
  max-width: 850px;
  margin-bottom: 0;
  font-size: clamp(74px, 8.7vw, 140px);
  line-height: 0.82;
  letter-spacing: -0.078em;
}

.hero-content>p:not(.section-label) {
  grid-column: 2;
  max-width: 370px;
  margin: 0 0 48px 55px;
  padding-left: 24px;
  border-left: 1px solid rgb(255 255 255 / 45%);
  font-size: 16px;
}

.hero-content .light-link {
  position: absolute;
  right: 0;
  bottom: 5px;
}

.scroll-note {
  right: 18px;
  bottom: 120px;
  opacity: 0.72;
}

.story {
  position: relative;
  grid-template-columns: minmax(420px, 0.9fr) minmax(420px, 1.1fr);
  gap: clamp(70px, 11vw, 180px);
  padding-block: clamp(150px, 15vw, 230px);
}

.story::after {
  position: absolute;
  right: -9vw;
  top: 48%;
  z-index: -1;
  color: rgb(23 59 99 / 3.5%);
  content: "JUNTOS";
  font: 600 clamp(100px, 18vw, 270px) / 1 "DM Sans", sans-serif;
  letter-spacing: -0.08em;
  transform: rotate(90deg) translateX(45%);
}

.story-image {
  height: clamp(580px, 56vw, 760px);
  margin-left: clamp(0px, 4vw, 65px);
}

.story-image::before {
  inset: 75px 42% -55px -100vw;
}

.story-image img {
  clip-path: polygon(0 0, 91% 0, 100% 11%, 100% 100%, 0 100%);
}

.story-image span {
  right: -70px;
  bottom: 74px;
  width: 220px;
  padding: 26px 28px;
  font-size: 24px;
  line-height: 1.05;
}

.story-copy {
  align-self: end;
  padding-bottom: 50px;
}

.story-copy h2 {
  max-width: 720px;
  font-size: clamp(58px, 6.4vw, 98px);
}

.story-copy h2::first-line {
  color: var(--green);
  font-family: "Newsreader", serif;
  font-style: italic;
}

.story-copy p:last-child {
  max-width: 560px;
  margin-top: 48px;
  padding-left: clamp(0px, 5vw, 85px);
}

.vision {
  position: relative;
  padding-block: clamp(130px, 13vw, 200px);
  overflow: hidden;
}

.vision::before {
  position: absolute;
  top: 0;
  right: 8%;
  width: 1px;
  height: 85px;
  background: var(--green);
  content: "";
}

.vision-intro {
  grid-template-columns: 1.15fr 0.55fr;
  column-gap: 12vw;
}

.vision-intro h2 {
  max-width: 780px;
}

.vision-intro>p:last-child {
  align-self: center;
  padding-top: 30px;
  border-top: 1px solid rgb(23 59 99 / 22%);
}

.objectives {
  grid-template-columns: 0.85fr 1.15fr 0.95fr;
  align-items: start;
  margin-top: 110px;
  border-top: 0;
}

.objectives article {
  position: relative;
  min-height: 380px;
  padding: 42px clamp(30px, 4vw, 65px);
  border-top: 1px solid rgb(23 59 99 / 25%);
  border-right: 0;
}

.objectives article:nth-child(2) {
  margin-top: 80px;
  border-top-color: var(--green);
}

.objectives article:nth-child(3) {
  margin-top: -34px;
  border-top-color: var(--sky);
}

.objectives article>span {
  font-size: 72px;
  line-height: 1;
  opacity: 0.25;
}

.objectives h3 {
  max-width: 330px;
  margin: 42px 0 22px;
  font-size: clamp(32px, 3vw, 46px);
}

.objectives p {
  max-width: 330px;
}

.invitation {
  position: relative;
  grid-template-columns: 1.2fr 0.7fr;
  gap: 13vw;
  padding-block: clamp(120px, 13vw, 190px);
}

.invitation::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 32%;
  height: 7px;
  background: var(--sky);
  content: "";
}

.invitation h2 {
  font-family: "Newsreader", serif;
  font-style: italic;
  font-weight: 500;
}

.contact {
  position: relative;
  background: #fdfcf9;
  color: var(--ink);
}

.contact::before {
  position: absolute;
  top: 0;
  left: 5vw;
  width: 1px;
  height: 110px;
  background: var(--sky);
  content: "";
}

.contact-grid {
  grid-template-columns: 0.7fr 1.3fr;
  gap: clamp(70px, 10vw, 170px);
}

.contact h2 {
  color: var(--navy);
  font-size: clamp(78px, 9vw, 142px);
}

.contact-title h3 {
  color: var(--green);
}

.socials {
  grid-template-columns: 1fr;
  border-top-color: rgb(23 59 99 / 18%);
}

.socials article,
.socials article:nth-child(3) {
  position: relative;
  grid-column: auto;
  min-height: 170px;
  grid-template-columns: 65px 1fr auto;
  align-items: center;
  padding: 30px 10px;
  border-right: 0;
  border-bottom-color: rgb(23 59 99 / 18%);
  transition: padding 300ms ease, color 300ms ease;
}

.socials article::after {
  color: var(--navy);
  content: "↗";
  font-size: 22px;
}

.socials article:hover {
  padding-left: 28px;
  color: var(--navy);
}

.socials h3 {
  margin-bottom: 6px;
  color: var(--navy);
  font-size: 42px;
}

.socials p {
  margin-bottom: 12px;
}

.site-footer {
  padding-bottom: 40px;
  background: var(--sand);
}

.footer {
  padding-top: 70px;
}

@media(max-width:900px) {
  .header {
    grid-template-columns: 1fr auto;
    height: 76px;
    padding-inline: 18px;
  }

  .header nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    padding: 28px;
    background: #fff;
    border-top: 1px solid #eee;
  }

  .header nav.open {
    display: flex;
  }

  .nav-cta {
    display: none;
  }

  .menu {
    display: block;
  }

  .logo-link img {
    width: 125px;
    height: 58px;
  }

  .section-pad {
    padding: 85px 0;
  }

  .section-heading,
  .story,
  .vision-intro,
  .invitation,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-full {
    min-height: 760px;
    background-position: 58% center;
  }

  .hero-shade {
    background: linear-gradient(0deg, rgb(10 35 63/.92), transparent 78%);
  }

  .hero-content {
    padding-bottom: 65px;
  }

  .hero-content img {
    position: absolute;
    top: 100px;
    width: 210px;
  }

  .hero-content h1 {
    max-width: 700px;
  }

  .scroll-note {
    display: none;
  }

  .story {
    padding-block: 90px;
  }

  .story-image {
    height: 520px;
  }

  .vision-intro .section-label {
    grid-column: auto;
  }

  .objectives {
    grid-template-columns: 1fr;
  }

  .objectives article {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgb(23 59 99/.2);
  }

  .objectives h3 {
    margin-top: 25px;
  }

  .contact-grid {
    gap: 60px;
  }
}

@media(max-width:600px) {

  .wrap,
  .hero-content {
    width: min(100% - 32px, 1280px);
  }

  .section-pad {
    padding: 68px 0;
  }

  .section-heading {
    gap: 25px;
    margin-bottom: 35px;
  }

  h2 {
    font-size: 46px;
  }

  .hero-content .section-label {
    margin-top: 170px;
  }

  .hero-content h1 {
    font-size: 58px;
  }

  .hero-content>p:not(.section-label) {
    font-size: 16px;
  }

  .story-image {
    height: 420px;
  }

  .story-image span {
    right: -10px;
    bottom: 20px;
  }

  .socials {
    grid-template-columns: 1fr;
  }

  .socials article,
  .socials article:nth-child(3) {
    grid-column: auto;
    border-right: 0;
  }

  .footer {
    flex-wrap: wrap;
    gap: 15px;
  }

  .footer p {
    flex-basis: 100%;
  }

  .footer a {
    margin-left: 0;
  }
}

@media (max-width: 900px) {
  .wrap {
    width: min(100% - 40px, 1360px);
  }

  .hero-content {
    display: block;
  }

  .hero-content>p:not(.section-label) {
    max-width: 540px;
    margin: 30px 0;
  }

  .hero-content .light-link {
    position: static;
  }

  .story,
  .vision-intro,
  .invitation,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .story-image {
    margin-left: 0;
  }

  .story-copy {
    max-width: 720px;
    margin-left: 8vw;
  }

  .objectives {
    grid-template-columns: 1fr;
  }

  .objectives article,
  .objectives article:nth-child(2),
  .objectives article:nth-child(3) {
    min-height: auto;
    margin-top: 0;
    border-bottom: 0;
  }
}

@media (max-width: 600px) {

  .wrap,
  .hero-content {
    width: min(100% - 32px, 1360px);
  }

  .section-pad {
    padding-block: 90px;
  }

  h2 {
    font-size: 52px;
    line-height: 0.94;
  }

  .section-heading {
    display: block;
  }

  .section-heading>p {
    margin-top: 32px;
  }

  .hero-full {
    min-height: 780px;
    background-position: 58% center;
  }

  .hero-content {
    padding-bottom: 46px;
  }

  .hero-content img {
    top: 105px;
    width: 190px;
  }

  .hero-content .section-label {
    margin-top: 210px;
  }

  .hero-content h1 {
    font-size: clamp(57px, 16vw, 76px);
  }

  .hero-content>p:not(.section-label) {
    padding-left: 16px;
  }

  .story {
    padding-block: 110px;
  }

  .story-image {
    height: 470px;
  }

  .story-copy {
    margin-left: 0;
  }

  .story-copy h2 {
    font-size: 54px;
  }

  .story-copy p:last-child {
    padding-left: 0;
  }

  .objectives {
    margin-top: 65px;
  }

  .objectives article {
    padding-inline: 10px;
  }

  .invitation {
    gap: 45px;
  }

  .contact h2 {
    font-size: 76px;
  }

  .socials article,
  .socials article:nth-child(3) {
    grid-template-columns: 45px 1fr auto;
    min-height: 150px;
  }

  .socials h3 {
    font-size: 34px;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* ------------------------------------------------------------------ */
/* Implementación estática: assets locales y estados de interacción    */
/* ------------------------------------------------------------------ */

.hero-full {
  background-image: url("../assets/img/foto-4.jpg");
}

[hidden] {
  display: none !important;
}

section[id] {
  scroll-margin-top: 90px;
}

.contact-grid>*,
.socials,
.socials article,
.socials article>div {
  min-width: 0;
}

@media (max-width: 600px) {
  section[id] {
    scroll-margin-top: 78px;
  }
}

@media (max-width: 900px) {
  .story-image span {
    right: 0;
  }
}

@media (min-width: 901px) {
  .contact-grid {
    grid-template-columns: 1.2fr 1fr;
    gap: clamp(70px, 9vw, 150px);
  }

  .contact h2 {
    font-size: clamp(72px, 8vw, 120px);
  }
}

@media (max-width: 600px) {
  .story-image span {
    right: 8px;
    width: 200px;
  }

  .contact h2 {
    font-size: clamp(46px, 16vw, 76px);
  }
}

/* ------------------------------------------------------------------ */
/* Próxima Caminata de Oración                                          */
/* ------------------------------------------------------------------ */

.next-walk {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: #dfe9f2;
}

.next-walk::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 32%;
  height: 7px;
  background: var(--sky);
  content: "";
}

.next-walk-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(50px, 7vw, 120px);
  align-items: center;
  padding-block: clamp(110px, 11vw, 170px);
}

.next-walk .section-label {
  color: var(--sky);
}

.next-walk h2 {
  color: #fff;
}

.next-walk h2 em {
  color: var(--sky);
  font-family: "Newsreader", serif;
  font-weight: 500;
}

.next-walk-date {
  display: flex;
  gap: clamp(28px, 3.5vw, 48px);
  align-items: center;
  margin-top: 46px;
}

.next-walk-date time {
  flex-shrink: 0;
}

.next-walk-lead {
  max-width: 340px;
  margin: 0;
  padding-left: clamp(28px, 3.5vw, 48px);
  border-left: 1px solid rgb(255 255 255/.18);
  line-height: 1.7;
}

.next-walk-date time {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.next-walk-date time strong {
  color: #fff;
  margin: calc(.124em - 3px) 0 calc(4px - .12em);
  font: 500 clamp(96px, 11vw, 150px)/.72 "Newsreader", serif;
  letter-spacing: -.05em;
}

.next-walk-date .day-name {
  color: var(--sky);
  font: italic 26px/1 "Newsreader", serif;
}

.next-walk-date .month {
  color: #fff;
  font: italic 26px/1 "Newsreader", serif;
}

.next-walk-lead .lead-extra {
  display: block;
  margin-top: 12px;
}

.next-walk-lead strong {
  color: #fff;
  font-weight: 600;
}

.next-walk-gallery {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(6, minmax(60px, 1fr));
  gap: 14px;
  aspect-ratio: 1 / 1.02;
}

.next-walk-gallery figure {
  margin: 0;
  overflow: hidden;
}

.next-walk-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms ease;
}

.next-walk-gallery figure:hover img {
  transform: scale(1.05);
}

.photo-main {
  grid-column: 1 / 5;
  grid-row: 1 / 7;
}

.photo-main img {
  object-position: 60% center;
}

.photo-top {
  grid-column: 5 / 7;
  grid-row: 2 / 4;
}

.photo-bottom {
  grid-column: 5 / 7;
  grid-row: 4 / 6;
  border-bottom: 7px solid var(--green);
}

@media (max-width: 900px) {
  .next-walk-grid {
    grid-template-columns: 1fr;
    padding-block: 90px 80px;
  }

  .next-walk-gallery {
    max-width: 640px;
  }
}

@media (max-width: 600px) {
  .next-walk-date {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    margin-top: 36px;
  }

  .next-walk-lead {
    padding-left: 0;
    border-left: 0;
  }

  .next-walk-gallery {
    gap: 8px;
  }
}

/* ------------------------------------------------------------------ */
/* Galería                                                              */
/* ------------------------------------------------------------------ */

.gallery {
  position: relative;
  background: #fff;
}

.gallery::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 27%;
  height: 16px;
  background: var(--green);
  content: "";
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 26px;
}

.gallery-item {
  position: relative;
  display: block;
  grid-column: span 4;
  height: 380px;
  overflow: hidden;
  cursor: zoom-in;
}

/* Patrón asimétrico que se repite cada 10 fotos: 7+5 · 4+4+4 · 5+7 · 4+4+4 */
.gallery-item:nth-child(10n + 1),
.gallery-item:nth-child(10n + 7) {
  grid-column: span 7;
  height: 520px;
}

.gallery-item:nth-child(10n + 2),
.gallery-item:nth-child(10n + 6) {
  grid-column: span 5;
  height: 520px;
}

.gallery-grid.collapsed .gallery-item:nth-child(n + 6) {
  display: none;
}

.gallery-more {
  display: flex;
  justify-content: center;
  margin-top: 56px;
}

.gallery-more .button {
  border: 0;
  cursor: pointer;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.gallery-item::after {
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(transparent, rgb(7 28 50 / 70%));
  content: "";
  opacity: 0;
  transition: opacity .4s ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.035);
}

.gallery-item:hover::after,
.gallery-item:focus-visible::after {
  opacity: 1;
}

.gallery-item:focus-visible {
  outline-offset: 3px;
}

.lightbox {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgb(7 28 50 / 96%);
  color: #fff;
}

.lightbox[open] {
  display: grid;
  grid-template-columns: 80px 1fr 80px;
  align-items: center;
}

.lightbox::backdrop {
  background: rgb(7 28 50 / 60%);
}

.lightbox img {
  grid-column: 2;
  width: 100%;
  height: calc(100dvh - 140px);
  object-fit: contain;
}

.lightbox button {
  border: 0;
  background: none;
  color: #fff;
  cursor: pointer;
}

.lightbox-nav {
  justify-self: center;
  width: 56px;
  height: 56px;
  font-size: 24px;
}

.lightbox-nav.prev {
  grid-column: 1;
  grid-row: 1;
}

.lightbox-nav.next {
  grid-column: 3;
  grid-row: 1;
}

.lightbox-nav:hover,
.lightbox-close:hover {
  color: var(--sky);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 48px;
  height: 48px;
  font-size: 36px;
  line-height: 1;
}

.lightbox-count {
  position: absolute;
  bottom: 22px;
  left: 50%;
  margin: 0;
  color: var(--sky);
  font: italic 18px "Newsreader", serif;
  transform: translateX(-50%);
}

@media (max-width: 900px) {
  .gallery-item,
  .gallery-item:nth-child(10n + 1),
  .gallery-item:nth-child(10n + 2),
  .gallery-item:nth-child(10n + 6),
  .gallery-item:nth-child(10n + 7) {
    grid-column: span 6;
    height: 340px;
  }

  .gallery-item:nth-child(5n + 1) {
    grid-column: 1 / -1;
    height: 420px;
  }
}

@media (max-width: 600px) {
  .gallery-grid {
    gap: 10px;
  }

  .gallery-item,
  .gallery-item:nth-child(10n + 1),
  .gallery-item:nth-child(10n + 2),
  .gallery-item:nth-child(10n + 6),
  .gallery-item:nth-child(10n + 7) {
    height: 190px;
  }

  .gallery-item:nth-child(5n + 1) {
    height: 260px;
  }

  .lightbox[open] {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr auto;
  }

  .lightbox img {
    grid-column: 1 / -1;
    grid-row: 1;
    height: calc(100dvh - 160px);
  }

  .lightbox-nav.prev,
  .lightbox-nav.next {
    grid-column: auto;
    grid-row: 2;
    margin-bottom: 50px;
  }
}

/* ------------------------------------------------------------------ */
/* Conectemos: redes sociales en horizontal con iconos                 */
/* ------------------------------------------------------------------ */

.contact-grid {
  grid-template-columns: 1fr;
  gap: 64px;
}

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

.socials article,
.socials article:nth-child(3) {
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: start;
  min-height: 0;
  padding: 36px 30px;
  border-right: 1px solid rgb(23 59 99 / 18%);
  transition: background-color 300ms ease;
}

.socials article:nth-child(3) {
  border-right: 0;
}

.socials article:hover {
  padding-left: 30px;
  background: rgb(139 200 232 / 12%);
}

.socials .social-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid var(--sky);
  border-radius: 50%;
  color: var(--navy);
  font: inherit;
  transition: background-color 300ms ease, color 300ms ease;
}

.socials .social-icon svg {
  width: 24px;
  height: 24px;
}

.socials article:hover .social-icon {
  background: var(--navy);
  color: #fff;
}

.socials h3 {
  font-size: clamp(30px, 2.6vw, 38px);
}

@media (max-width: 900px) {
  .socials {
    grid-template-columns: 1fr;
  }

  .socials article,
  .socials article:nth-child(3) {
    align-items: center;
    padding: 28px 6px;
    border-right: 0;
  }

  .socials article:hover {
    padding-left: 6px;
  }

  .socials .social-icon {
    width: 48px;
    height: 48px;
  }
}

/* Instagram y YouTube conservan sus colores de marca al pasar el mouse */
.socials article:hover .social-icon--instagram,
.socials article:hover .social-icon--youtube {
  border-color: var(--navy);
  background: #fff;
}

/* Cada tarjeta de red social es clicable en toda su superficie */
.socials article {
  cursor: pointer;
}

.socials h3 a::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
}

.socials h3 a:focus-visible {
  outline: 0;
}

.socials article:focus-within {
  outline: 3px solid var(--sky);
  outline-offset: -3px;
}

.socials p {
  margin-bottom: 0;
}

/* Logo del encabezado (logo-2): el PNG trae espacio transparente arriba y
   abajo, así que se recorta a la zona visible para que el dibujo use toda la
   altura de la barra. */
.logo-link img {
  width: auto;
  height: 62px;
  aspect-ratio: 375 / 363;
  object-fit: cover;
  object-position: center 65%;
}

@media (max-width: 900px) {
  .logo-link img {
    height: 56px;
  }
}

/* Hero en tablet/celular: el logo va en el flujo normal, arriba del título,
   para que nunca se encime con "Una ciudad cubierta en oración." */
@media (max-width: 900px) {
  .hero-content img {
    position: static;
    display: block;
    margin-bottom: 36px;
  }
}

/* ------------------------------------------------------------------ */
/* Registra a tu iglesia (#registra-tu-iglesia)                        */
/* ------------------------------------------------------------------ */
.register {
  position: relative;
  overflow: hidden;
  padding: clamp(82px, 8.5vw, 122px) 0;
  background: #f8f4ec;
  color: var(--ink);
}

.register::before,
.register::after {
  position: absolute;
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.register::before {
  top: -280px;
  right: -180px;
  width: 620px;
  height: 620px;
  border: 1px solid rgb(100 134 108 / 20%);
}

.register::after {
  bottom: -340px;
  left: -240px;
  width: 560px;
  height: 560px;
  background: var(--sky);
  opacity: .12;
}

.register-inner {
  position: relative;
  z-index: 1;
  width: min(100% - 72px, 1120px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(350px, .82fr) minmax(500px, 1.08fr);
  gap: clamp(44px, 5.5vw, 70px);
  align-items: center;
}

.register-intro {
  max-width: 420px;
}

.register-eyebrow,
.register-success-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  color: var(--green);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .22em;
}

.register-eyebrow::before {
  width: 30px;
  height: 1px;
  flex: 0 0 auto;
  background: currentColor;
  content: "";
}

.register-intro h2 {
  max-width: 440px;
  margin: 0;
  color: var(--navy);
  font-size: clamp(56px, 5.6vw, 82px);
  font-weight: 500;
  letter-spacing: -.075em;
  line-height: .91;
}

.register-intro h2 em {
  display: block;
  color: var(--green);
  font-family: "Newsreader", serif;
  font-weight: 500;
}

.register-description {
  max-width: 350px;
  margin: 27px 0 0;
  font-size: 16px;
  line-height: 1.65;
}

.register-area {
  min-width: 0;
  width: 100%;
  max-width: 545px;
  justify-self: end;
}

.register-shell {
  position: relative;
  z-index: 1;
  min-height: 510px;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 22px;
  background: linear-gradient(145deg, #1a426d 0%, var(--navy) 48%, #102f50 100%);
  box-shadow:
    11px 13px 0 var(--green),
    0 30px 65px rgb(23 59 99 / 20%);
}

.register-shell::after {
  position: absolute;
  top: 0;
  right: 46px;
  width: 86px;
  height: 5px;
  border-radius: 0 0 6px 6px;
  background: var(--sky);
  content: "";
  pointer-events: none;
}

.register-form,
.register-success {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 510px;
  flex-direction: column;
  justify-content: center;
  color: var(--white);
}

.register-form[hidden],
.register-success[hidden] {
  display: none;
}

.register-form {
  padding: 28px;
}

.register-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}

.register-field {
  position: relative;
  min-width: 0;
}

.register-field--full,
.register-status,
.register-submit {
  grid-column: 1 / -1;
}

.register-field label {
  display: block;
  margin-bottom: 5px;
  color: #e4f2f8;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .025em;
}

.register-field input,
.register-field select,
.register-field textarea {
  width: 100%;
  border: 1px solid rgb(139 200 232 / 30%);
  border-radius: 13px;
  outline: 0;
  background: linear-gradient(180deg, #fff 0%, #f5fafd 100%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 90%),
    inset 0 -1px 0 rgb(23 59 99 / 5%),
    0 7px 16px rgb(4 24 45 / 14%);
  color: var(--navy);
  font: 14px "DM Sans", sans-serif;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.register-field input,
.register-field select {
  height: 42px;
  padding: 0 14px;
}

.register-field textarea {
  display: block;
  min-height: 66px;
  padding: 10px 14px;
  resize: vertical;
}

.register-field input:hover,
.register-field select:hover,
.register-field textarea:hover {
  border-color: rgb(139 200 232 / 68%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 90%),
    0 9px 19px rgb(4 24 45 / 15%);
}

.register-field input:focus,
.register-field select:focus,
.register-field textarea:focus {
  border-color: var(--sky);
  box-shadow:
    0 0 0 4px rgb(139 200 232 / 20%),
    0 10px 22px rgb(4 24 45 / 16%);
  transform: translateY(-1px);
}

.register-field [aria-invalid="true"] {
  border-color: #f2b8ac;
  box-shadow: 0 0 0 2px rgb(242 184 172 / 25%);
}

.register-select {
  position: relative;
}

.register-select::after {
  position: absolute;
  top: 50%;
  right: 16px;
  color: var(--navy);
  content: "↓";
  pointer-events: none;
  transform: translateY(-50%);
}

.register-select select {
  appearance: none;
  padding-right: 34px;
}

.register-error {
  display: block;
  margin-top: 5px;
  color: #ffd8cf;
  font-size: 10px;
  font-weight: 600;
}

.register-error[hidden],
.register-status[hidden] {
  display: none;
}

/* Fuera de pantalla en lugar de display:none: algunos bots ignoran campos ocultos. */
.register-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.register-status {
  margin: 0;
  padding: 10px 14px;
  border: 1px solid rgb(242 184 172 / 45%);
  border-radius: 13px;
  background: rgb(242 184 172 / 12%);
  color: #ffd8cf;
  font-size: 12px;
  line-height: 1.5;
}

.register-submit {
  width: fit-content;
  min-width: 172px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  justify-self: start;
  padding: 0 17px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #9bd3ee, #7fc2e4);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 40%),
    0 9px 20px rgb(4 24 45 / 20%);
  color: var(--navy);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    transform 180ms ease;
}

.register-submit:hover {
  background: #b7dff2;
  transform: translateY(-2px) scale(1.01);
}

.register-submit:disabled {
  cursor: progress;
  opacity: .7;
  transform: none;
}

.register-success {
  align-items: flex-start;
  padding: 44px clamp(34px, 5vw, 58px);
  border-radius: 22px;
  outline: 0;
}

.register-success svg {
  width: 62px;
  height: 62px;
  margin-bottom: 30px;
  fill: none;
  stroke: var(--sky);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.register-success-label {
  margin-bottom: 14px;
  color: var(--sky);
}

.register-success h3 {
  max-width: 560px;
  margin: 0 0 18px;
  color: var(--white);
  font: 500 clamp(38px, 4vw, 58px) / .98 "Newsreader", serif;
  letter-spacing: -.04em;
}

.register-steps {
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgb(255 255 255 / 20%);
}

.register-steps li {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid rgb(255 255 255 / 20%);
}

.register-steps span {
  color: var(--sky);
  font: italic 18px "Newsreader", serif;
}

.register-steps p {
  margin: 0;
  color: rgb(255 255 255 / 76%);
  font-size: 12px;
  line-height: 1.55;
}

.register-steps strong {
  color: var(--white);
  font-weight: 600;
}

.register-back {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 24px;
  margin-top: 24px;
  padding: 0 19px;
  border: 0;
  border-radius: 999px;
  background: var(--sky);
  color: var(--navy);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    transform 180ms ease;
}

.register-back:hover {
  background: #b7dff2;
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .register-inner {
    width: min(100% - 40px, 760px);
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .register-intro {
    max-width: 620px;
  }

  .register-description {
    max-width: 460px;
  }
}

@media (max-width: 600px) {
  .register {
    padding: 75px 0 90px;
  }

  .register-inner {
    width: min(100% - 32px, 760px);
    gap: 45px;
  }

  .register-intro h2 {
    font-size: clamp(52px, 15vw, 70px);
  }

  .register-shell {
    min-height: 0;
    box-shadow: 0 20px 42px rgb(23 59 99 / 16%);
  }

  .register-form {
    min-height: 0;
    padding: 24px 20px 26px;
  }

  .register-fields {
    grid-template-columns: 1fr;
  }

  .register-success {
    min-height: 0;
    padding: 45px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .register-field input,
  .register-field select,
  .register-field textarea,
  .register-submit,
  .register-back {
    transition: none;
  }
}
