:root {
  --green-950: #0d3328;
  --green-800: #184e3d;
  --green-700: #24644f;
  --green-100: #e8f1ed;
  --cream: #fbf8f0;
  --cream-deep: #f1eadb;
  --gold: #bd8b35;
  --gold-dark: #8f6724;
  --ink: #25332e;
  --muted: #68736e;
  --white: #fff;
  --shadow: 0 18px 50px rgba(13, 51, 40, .12);
  --radius: 22px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.65;
}

a { color: var(--green-800); }
a:hover { color: var(--gold-dark); }
a:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 1rem;
  left: 1rem;
  padding: .7rem 1rem;
  transform: translateY(-180%);
  border-radius: 8px;
  color: var(--white);
  background: var(--green-950);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  border-bottom: 1px solid rgba(189, 139, 53, .28);
  background: rgba(255, 255, 255, .96);
}

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

.header-inner { padding: 12px 0; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--green-950);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 700;
  text-decoration: none;
}

.brand img {
  width: 92px;
  height: auto;
  border-radius: 10px;
}

.breadcrumbs {
  margin: 18px 0 0;
  padding: .55rem .8rem;
  border: 1px solid rgba(24, 78, 61, .12);
  border-radius: 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, .55);
  font-family: Arial, Helvetica, sans-serif;
  font-size: .82rem;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem;
  margin: 0;
  padding: 0;
  list-style: none !important;
}

.breadcrumbs li { display: inline-flex; align-items: center; margin: 0; padding: 0; }
.breadcrumbs li::marker { content: ""; }

.breadcrumbs li:not(:last-child)::after {
  margin-left: .35rem;
  color: var(--gold-dark);
  content: "›";
}

.breadcrumbs a { font-weight: 700; }

.hero {
  position: relative;
  overflow: hidden;
  margin: 24px 0;
  padding: clamp(44px, 8vw, 88px) clamp(24px, 7vw, 80px);
  border-radius: var(--radius);
  color: var(--white);
  background:
    radial-gradient(circle at 85% 10%, rgba(231, 196, 119, .32), transparent 30%),
    linear-gradient(135deg, var(--green-950), var(--green-700));
  box-shadow: var(--shadow);
  text-align: center;
}

.hero::before,
.hero::after {
  position: absolute;
  content: "";
  width: 190px;
  height: 190px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 50%;
}

.hero::before { top: -85px; left: -60px; }
.hero::after { right: -55px; bottom: -110px; }
.hero-content { position: relative; z-index: 1; max-width: 800px; margin: auto; }

.eyebrow {
  margin: 0 0 .55rem;
  color: var(--gold-dark);
  font-family: Arial, Helvetica, sans-serif;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.hero .eyebrow { color: #f4d796; }

h1, h2 {
  margin-top: 0;
  color: var(--green-950);
  line-height: 1.15;
  text-wrap: balance;
}

h1 {
  margin-bottom: .8rem;
  color: var(--white);
  font-size: clamp(2.15rem, 6vw, 4.4rem);
}

h2 { margin-bottom: .55rem; font-size: clamp(1.55rem, 4vw, 2.15rem); }
p { margin-top: 0; }
.hero-intro { max-width: 630px; margin: auto; font-size: clamp(1.05rem, 2.2vw, 1.28rem); }

.gospel-section,
.subscription,
.share,
.related {
  margin: 24px 0;
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid rgba(24, 78, 61, .12);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.widget-frame {
  overflow: hidden;
  padding: clamp(14px, 3vw, 28px);
  border: 1px solid #d8dfdc;
  border-radius: 14px;
  background: var(--cream);
}

.widget-frame.is-loaded { min-height: 760px; padding: 0; background: var(--white); }

.widget-frame iframe {
  display: block;
  width: 100%;
  min-height: 760px;
  border: 0;
}

.external-content-notice {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(1.35rem, 4vw, 2.25rem);
  border: 1px solid rgba(24, 78, 61, .24);
  border-radius: 18px;
  color: var(--ink);
  background: var(--cream-deep);
  text-align: center;
  box-shadow: 0 10px 28px rgba(24, 78, 61, .10);
}

.external-content-notice p { max-width: 640px; margin: .6rem auto; line-height: 1.65; }
.external-content-notice a { color: #145c46; }
.external-content-small { font-size: .9rem; }

.external-content-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  margin: 0 0 .65rem;
  padding: .78rem 1.45rem;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(180deg, var(--green-700), var(--green-800));
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 5px 0 var(--green-950);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.external-content-button:hover { background: linear-gradient(180deg, #2e785f, var(--green-700)); }
.external-content-button:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.external-content-button:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--green-950); }

.widget-note { margin: 12px 0 0; color: var(--muted); font-size: .86rem; text-align: center; }

.subscription {
  display: grid;
  grid-template-columns: minmax(220px, 300px) 1fr;
  align-items: center;
  gap: clamp(22px, 5vw, 52px);
  background: linear-gradient(120deg, var(--green-100), var(--white));
}

.subscription-image img { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: 0 10px 30px rgba(13, 51, 40, .14); }

.button,
.share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: .7rem 1.15rem;
  border-radius: 10px;
  color: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 5px 0 rgba(0, 0, 0, .18);
  transition: transform .15s ease, box-shadow .15s ease;
}

.button:hover, .share-button:hover { color: var(--white); transform: translateY(2px); box-shadow: 0 3px 0 rgba(0, 0, 0, .2); }
.button-primary { background: var(--green-800); }

.share { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.share > div:first-child { max-width: 550px; }
.share-buttons { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; }
.share-button span { font-family: Arial, Helvetica, sans-serif; font-weight: 900; }
.whatsapp { background: #128c4a; }
.facebook { background: #1877f2; }
.x-network { background: #151515; }
.telegram { background: #168acb; }

.related { text-align: center; }
.link-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 26px; text-align: left; }

.link-grid a {
  display: flex;
  min-height: 132px;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
  border: 1px solid rgba(24, 78, 61, .16);
  border-radius: 14px;
  color: var(--green-950);
  background: var(--cream);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.link-grid a:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: 0 12px 24px rgba(13, 51, 40, .09); }
.link-grid span { margin-bottom: .35rem; color: var(--gold-dark); font-family: Arial, Helvetica, sans-serif; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.link-grid strong { line-height: 1.35; }

footer { padding: 30px 0 44px; color: var(--muted); font-size: .88rem; text-align: center; }
footer a { font-weight: 700; }

.enlaces-legales-globales {
  display: block;
  clear: both;
  width: 100%;
  max-width: 100%;
  flex: 0 0 100%;
  grid-column: 1 / -1;
  margin: 18px 0 0;
  padding: 12px 8px 0;
  border-top: 1px solid currentColor;
  color: inherit;
  background: transparent;
  font: 14px/1.5 Arial, Helvetica, sans-serif;
  text-align: center;
}

.enlaces-legales-globales a { color: inherit; text-decoration: underline; }

@media (max-width: 820px) {
  .subscription { grid-template-columns: 1fr; text-align: center; }
  .subscription-image { width: min(100%, 300px); margin: auto; }
  .share { align-items: stretch; flex-direction: column; text-align: center; }
  .share-buttons { justify-content: center; }
  .link-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .header-inner, main, footer { width: min(100% - 20px, 1180px); }
  .header-inner { padding-block: 7px; }
  .brand { gap: 9px; font-size: .94rem; }
  .brand img { width: 58px; }
  .hero { margin: 10px 0 14px; padding: 27px 18px 30px; }
  .hero .eyebrow { margin-bottom: .35rem; font-size: .68rem; }
  .hero h1 { margin-bottom: .5rem; font-size: clamp(2rem, 11vw, 2.75rem); }
  .hero-intro { font-size: 1rem; line-height: 1.5; }
  .gospel-section, .subscription, .share, .related { padding: 20px 14px; border-radius: 16px; }
  .widget-frame.is-loaded, .widget-frame iframe { min-height: 820px; }
  .link-grid { grid-template-columns: 1fr; }
  .link-grid a { min-height: 105px; }
  .share-button { flex: 1 1 135px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
