:root {
  --blue: #12395c;
  --blue2: #071f36;
  --sky: #eaf5fb;
  --gold: #c89a43;
  --gold2: #f1d899;
  --cream: #fffaf0;
  --ink: #263746;
  --muted: #607383;
  --white: #fff;
  --shadow: 0 18px 45px rgba(7,31,54,.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg,#f8fcff,#eef5f8 52%,#f9f5eb);
  color: var(--ink);
  font: 18px/1.78 Georgia,'Times New Roman',serif;
}

a {
  color: inherit;
}

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

.site-header {
  height: 78px;
  padding: 10px max(24px,calc((100% - 1180px)/2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid #dbe7ed;
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--blue);
}

.brand img {
  border-radius: 50%;
  box-shadow: 0 4px 12px #9fb6c7;
}

.brand span {
  display: grid;
}

.brand strong {
  font-size: 1.05rem;
}

.brand small {
  font: 12px Arial,sans-serif;
  color: var(--muted);
}

.channels {
  display: flex;
  gap: 10px;
}

.channels a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 5px 12px #9baab3;
}

.channels svg {
  width: 25px;
  fill: currentColor;
}

.channels .wa {
  background: #25d366;
}

.channels .tg {
  background: #229ed9;
}

.breadcrumbs {
  max-width: 1180px;
  margin: 18px auto;
  padding: 0 20px;
  font: 14px/1.5 Arial,sans-serif;
  color: #637685;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.breadcrumbs a {
  color: var(--blue);
}

main {
  max-width: 1180px;
  margin: auto;
  padding: 0 20px 55px;
}

.hero {
  min-height: 520px;
  display: grid;
  grid-template-columns: 1fr 1.06fr;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(135deg,var(--blue2),var(--blue));
  box-shadow: var(--shadow);
  color: #fff;
}

.hero-copy {
  padding: clamp(40px,6vw,76px);
  align-self: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .16em;
  font: 700 12px/1.5 Arial,sans-serif;
  color: var(--gold2);
}

h1,h2 {
  line-height: 1.15;
  color: var(--blue);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.3rem,5vw,4.6rem);
  color: #fff;
  margin: .25em 0;
}

.hero-copy>p:not(.eyebrow) {
  font-size: 1.15rem;
  color: #dcebf4;
}

.primary {
  display: inline-block;
  margin-top: 18px;
  padding: 13px 22px;
  border-radius: 999px;
  background: linear-gradient(#f3d998,#c7973e);
  color: #112f49;
  text-decoration: none;
  font: bold 15px Arial,sans-serif;
  box-shadow: 0 5px 0 #8b6427;
}

.hero picture,.hero picture img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.paper,.chapters,.share {
  margin-top: 34px;
  border-radius: 24px;
}

.paper {
  position: relative;
  padding: clamp(30px,6vw,76px);
  background: var(--white);
  box-shadow: var(--shadow);
  border: 1px solid #dde9ef;
}

.medal {
  position: absolute;
  top: -22px;
  left: 50%;
  translate: -50%;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--blue);
  border: 3px solid var(--gold2);
  color: var(--gold2);
  font-weight: bold;
}

.legacy-content {
  max-width: 850px;
  margin: auto;
}

.legacy-content p {
  text-align: left!important;
}

.legacy-content img {
  display: block;
  max-height: 600px;
  width: auto;
  margin: 28px auto;
  border: 7px solid #fff;
  outline: 2px solid var(--gold);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.legacy-content a {
  color: #075ea8;
}

.chapters {
  padding: clamp(28px,5vw,54px);
  background: linear-gradient(145deg,var(--blue2),var(--blue));
}

.chapters h2 {
  color: #fff;
}

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

.chapter-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #496b87;
  border-radius: 12px;
  color: #eef8ff;
  text-decoration: none;
  background: #ffffff0b;
}

.chapter-card span {
  display: grid;
  place-items: center;
  min-width: 33px;
  height: 33px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--blue2);
  font: bold 14px Arial;
}

.chapter-card:hover,.chapter-card.active {
  background: #fff;
  color: var(--blue);
  transform: translateY(-2px);
}


.share h2 {
  margin: 0 0 8px;
  font-size: 1.65rem;
}


.share {
  padding: 28px;
  background: #fff;
  box-shadow: var(--shadow);
}

.share>div {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.share a {
  padding: 11px 17px;
  border-radius: 9px;
  text-decoration: none;
  font: bold 14px Arial;
}

.share a {
  color: #fff;
}

.s-wa {
  background: #25d366;
}

.s-fb {
  background: #1877f2;
}

.s-x {
  background: #111;
}

.s-tg {
  background: #229ed9;
}

footer {
  text-align: center;
  padding: 38px 20px;
  background: var(--blue2);
  color: #d7e6ef;
}

footer p {
  margin: 4px;
}


@media(max-width:800px){body {
  font-size: 17px;
}

.site-header {
  position: static;
}

.brand small {
  display: none;
}

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

.hero picture {
  order: -1;
}

.hero picture,.hero picture img {
  min-height: 280px;
  max-height: 380px;
}

.hero-copy {
  padding: 36px 28px;
}

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


}@media(max-width:520px){.brand strong {
  font-size: .88rem;
}

.brand img {
  width: 44px;
}

.breadcrumbs {
  font-size: 12px;
}

.paper {
  padding: 38px 22px;
}


.share a {
  width: 100%;
  text-align: center;
}

}/* v2: show every hero image in full on desktop, tablet and mobile. */
.hero picture {
  display: grid;
  place-items: center;
  background: #0b2942;
  overflow: hidden;
}

.hero picture img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain!important;
}

.medal {
  top: -31px;
  width: 58px;
  height: 66px;
  border: 2px solid var(--gold);
  background: #fff;
  overflow: hidden;
  box-shadow: 0 5px 14px rgba(7,31,54,.25);
}

.medal img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}


/* Ajustes de la portada y los apartados de la Medalla Milagrosa. */
html {
  scroll-padding-top: 104px;
}

:focus-visible {
  outline: 3px solid #a47121;
  outline-offset: 4px;
}

.skip {
  position: fixed;
  z-index: 20;
  top: 10px;
  left: 10px;
  transform: translateY(-150%);
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--blue2);
  color: #fff;
}

.skip:focus {
  transform: none;
}

.hero {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  min-height: 0;
}

.hero-copy {
  padding: clamp(30px, 5vw, 68px);
}

.hero h1 {
  font-size: clamp(2.2rem, 4.1vw, 3.85rem);
  overflow-wrap: break-word;
}

.hero .rosario-titulo {
  font-size: clamp(1.9rem, 3.3vw, 3.15rem);
}

.hero picture {
  min-height: 0;
  padding: clamp(18px, 3vw, 36px);
  background: radial-gradient(ellipse at center, #244e70, #0b2942 72%);
}

.hero picture img {
  min-height: 0;
  width: auto;
  height: auto;
  max-height: 420px;
  border: 1px solid var(--gold2);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.paper {
  margin-top: 48px;
}

.legacy-content {
  display: flow-root;
}

.legacy-content h2 {
  margin-top: 1.75em;
  padding-top: .9em;
  border-top: 1px solid #dbe7ed;
}

.legacy-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border: 0;
}

.legacy-content h3 {
  color: var(--blue);
  line-height: 1.3;
}

.legacy-content .negrita {
  font-weight: bold;
}

.toc {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 32px;
  max-width: 850px;
}

.toc a {
  padding: 7px 13px;
  border: 1px solid #c3d6e2;
  border-radius: 999px;
  background: #eef5f8;
  color: var(--blue);
  font: 600 .88rem/1.45 Arial, sans-serif;
  text-decoration: none;
}

.toc a:hover {
  background: var(--blue);
  color: #fff;
}

.legacy-content :target {
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: .25em;
}

.chapter-card[aria-current="page"] {
  border-color: var(--gold2);
  font-weight: bold;
}


.share .s-wa, .share .s-fb, .share .s-tg {
  color: #071f36;
}


.enlaces-legales-globales {
  margin: 20px auto 0;
  padding-top: 14px;
  border-top: 1px solid #42617a;
  font: .875rem/1.6 Arial, sans-serif;
}

@media (max-width: 800px) {
  html {
    scroll-padding-top: 16px;
  }

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

  .hero picture {
    max-height: none;
  }

  .hero picture img {
    max-height: 290px;
  }

}

@media (max-width: 520px) {
  .hero-copy {
    padding: 24px;
  }

  .hero picture img {
    max-height: 235px;
  }

}

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

/* Suscripción a los canales y enlaces relacionados. */
.subscribe,
.also-interest {
  margin-top: 34px;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.subscribe {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  padding: clamp(24px, 4vw, 38px);
  background: linear-gradient(115deg, #08294a, #115b89);
  color: #fff;
}

.subscribe > img {
  width: 88px;
  height: 88px;
  border: 3px solid #fff;
  border-radius: 50%;
}

.subscribe h2 {
  margin: 0 0 12px;
  color: inherit;
  font-size: clamp(1.5rem, 2.8vw, 1.9rem);
}

.subscribe p {
  margin: 0;
}

.channel-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.channel-buttons a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid #ffffff59;
  border-radius: 10px;
  background: #ffffff1c;
  color: #fff;
  font: bold .875rem/1.4 Arial, sans-serif;
  text-decoration: none;
}

.channel-buttons svg {
  flex: none;
  width: 18px;
  fill: currentColor;
}

.channel-buttons a:hover,
.channel-buttons a:focus-visible {
  background: #fff;
  color: #08294a;
}

.also-interest {
  padding: clamp(24px, 4vw, 36px) clamp(18px, 3vw, 32px);
  border: 1px solid #d6e5f0;
  background: linear-gradient(120deg, #fff, #edf5fa);
  text-align: center;
}

.also-interest h2 {
  margin: 0 0 24px;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.interest-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.interest-links a {
  display: grid;
  place-items: center;
  min-height: 62px;
  padding: 12px;
  border: 1px solid #c4d9e9;
  border-radius: 14px;
  background: #fff;
  color: var(--blue2);
  box-shadow: 0 6px 16px #08294a12;
  font: bold .875rem/1.45 Arial, sans-serif;
  text-decoration: none;
}

.interest-links a:hover,
.interest-links a:focus-visible {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

@media (max-width: 640px) {
  .interest-links {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .interest-links a {
    min-height: 48px;
  }
}

@media (max-width: 520px) {
  .subscribe {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    text-align: center;
  }

  .channel-buttons {
    justify-content: center;
  }
}
