/* =========================================================
   MATEMBEZI — GUIDE DETAIL EDITORIAL SYSTEM
   Shared by English and Spanish long-form guide pages.
========================================================= */

body[data-template="guide-detail"] {
  --guide-midnight: #051f20;
  --guide-deep: #0b2b26;
  --guide-forest: #163832;
  --guide-jade: #235347;
  --guide-sage: #8eb69b;
  --guide-mint: #daf1de;
  --guide-paper: #f8fbf7;
  --guide-mist: #edf5ed;
  --guide-ink: #17352f;
  --guide-muted: #60736a;
  --guide-line: rgba(22, 56, 50, .16);
  overflow-x: hidden;
  background: var(--guide-paper);
  color: var(--guide-ink);
}

body[data-template="guide-detail"] :where(h1, h2, h3, p, figure) {
  margin-top: 0;
}

body[data-template="guide-detail"] main {
  overflow: clip;
}

body[data-template="guide-detail"] .article-progress {
  position: fixed;
  z-index: 1400;
  inset: 0 0 auto;
  height: 3px;
  pointer-events: none;
  background: rgba(218, 241, 222, .12);
}

body[data-template="guide-detail"] .article-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--guide-sage), var(--guide-mint));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 90ms linear;
}

/* Hero */

body[data-template="guide-detail"] .guide-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: max(800px, 94svh);
  align-items: flex-end;
  overflow: hidden;
  padding: calc(var(--header) + 72px) 0 clamp(76px, 9vh, 108px);
  color: #fff;
  background:
    linear-gradient(
      90deg,
      rgba(5, 31, 32, .96) 0%,
      rgba(5, 31, 32, .83) 46%,
      rgba(5, 31, 32, .4) 74%,
      rgba(5, 31, 32, .12) 100%
    ),
    linear-gradient(180deg, rgba(5, 31, 32, .05), rgba(5, 31, 32, .54)),
    var(--guide-hero-image) var(--guide-hero-position, center 48%) / cover no-repeat;
}

body[data-template="guide-detail"] .guide-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(218, 241, 222, .08) 1px, transparent 1px),
    linear-gradient(rgba(218, 241, 222, .055) 1px, transparent 1px);
  background-size: 72px 72px;
  content: "";
  mask-image: linear-gradient(90deg, #000, transparent 64%);
  opacity: .38;
}

body[data-template="guide-detail"] .guide-hero::after {
  position: absolute;
  z-index: -1;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(transparent, rgba(5, 31, 32, .72));
  content: "";
}

body[data-template="guide-detail"] .guide-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(1280px, calc(100% - 48px));
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .48fr);
  gap: clamp(58px, 8vw, 126px);
  align-items: end;
}

body[data-template="guide-detail"] .guide-hero-copy {
  max-width: 900px;
}

body[data-template="guide-detail"] .guide-hero .breadcrumbs {
  margin-bottom: 30px;
  color: rgba(218, 241, 222, .68);
}

body[data-template="guide-detail"] .guide-hero .breadcrumbs a {
  color: rgba(218, 241, 222, .86);
}

body[data-template="guide-detail"] .guide-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--guide-sage);
}

body[data-template="guide-detail"] .guide-hero .eyebrow::after {
  width: 44px;
  height: 1px;
  margin-left: 4px;
  background: currentColor;
  content: "";
  opacity: .7;
}

body[data-template="guide-detail"] .guide-hero h1 {
  max-width: 890px;
  margin: 22px 0 26px;
  color: #fff;
  font-size: clamp(4.25rem, 7.2vw, 7.6rem);
  font-weight: 700;
  line-height: .88;
  letter-spacing: -.065em;
  text-wrap: balance;
}

body[data-template="guide-detail"] .guide-hero-copy > p {
  max-width: 680px;
  margin-bottom: 0;
  padding-left: 20px;
  border-left: 2px solid var(--guide-sage);
  color: rgba(255, 255, 255, .8);
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  line-height: 1.68;
}

body[data-template="guide-detail"] .guide-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 30px;
}

body[data-template="guide-detail"] .guide-hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, .7);
  font-size: .78rem;
  font-weight: 760;
  letter-spacing: .05em;
  text-transform: uppercase;
}

body[data-template="guide-detail"] .guide-hero-meta i {
  color: var(--guide-sage);
}

body[data-template="guide-detail"] .guide-hero-note {
  max-width: 370px;
  align-self: end;
  justify-self: end;
  padding: 8px 0 12px 30px;
  border-left: 1px solid rgba(218, 241, 222, .44);
}

body[data-template="guide-detail"] .guide-hero-note > span {
  display: block;
  margin-bottom: 20px;
  color: var(--guide-sage);
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

body[data-template="guide-detail"] .guide-hero-note strong {
  display: block;
  color: var(--guide-mint);
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(1.8rem, 2.6vw, 2.65rem);
  font-weight: 520;
  line-height: 1.08;
  letter-spacing: -.035em;
}

body[data-template="guide-detail"] .guide-hero-note a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 26px;
  color: #fff;
  font-size: .78rem;
  font-weight: 850;
  text-decoration: none;
}

body[data-template="guide-detail"] .guide-hero-note a i {
  color: var(--guide-sage);
}

/* Byline strip */

body[data-template="guide-detail"] .guide-byline {
  position: relative;
  z-index: 5;
  border-bottom: 1px solid var(--guide-line);
  background: rgba(248, 251, 247, .96);
}

body[data-template="guide-detail"] .guide-byline-inner {
  display: flex;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

body[data-template="guide-detail"] .guide-byline-copy {
  display: flex;
  align-items: center;
  gap: 15px;
}

body[data-template="guide-detail"] .guide-byline-mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(35, 83, 71, .2);
  border-radius: 50%;
  background: var(--guide-mist);
  color: var(--guide-jade);
}

body[data-template="guide-detail"] .guide-byline-copy strong,
body[data-template="guide-detail"] .guide-byline-copy span {
  display: block;
}

body[data-template="guide-detail"] .guide-byline-copy strong {
  color: var(--guide-deep);
  font-size: .86rem;
}

body[data-template="guide-detail"] .guide-byline-copy span {
  margin-top: 3px;
  color: var(--guide-muted);
  font-size: .75rem;
}

body[data-template="guide-detail"] .guide-byline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

body[data-template="guide-detail"] .guide-byline-tags span {
  padding: .52rem .72rem;
  border: 1px solid var(--guide-line);
  border-radius: 999px;
  color: var(--guide-muted);
  font-size: .67rem;
  font-weight: 820;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Article */

body[data-template="guide-detail"] .guide-article-shell {
  padding: clamp(82px, 9vw, 132px) 0 clamp(86px, 10vw, 144px);
  background: var(--guide-paper);
}

body[data-template="guide-detail"] .guide-article-layout {
  display: grid;
  grid-template-columns: minmax(190px, .34fr) minmax(0, 760px) minmax(80px, .12fr);
  gap: clamp(42px, 6vw, 92px);
  align-items: start;
  justify-content: center;
}

body[data-template="guide-detail"] .guide-contents {
  position: sticky;
  top: calc(var(--header) + 34px);
  padding-top: 8px;
}

body[data-template="guide-detail"] .guide-contents-kicker {
  display: block;
  margin-bottom: 18px;
  color: var(--guide-jade);
  font-size: .65rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

body[data-template="guide-detail"] .guide-contents ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: guide-sections;
}

body[data-template="guide-detail"] .guide-contents li {
  counter-increment: guide-sections;
  border-top: 1px solid var(--guide-line);
}

body[data-template="guide-detail"] .guide-contents li:last-child {
  border-bottom: 1px solid var(--guide-line);
}

body[data-template="guide-detail"] .guide-contents a {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: start;
  padding: 14px 0;
  color: var(--guide-muted);
  font-size: .78rem;
  font-weight: 720;
  line-height: 1.4;
  text-decoration: none;
  transition: color var(--ease), padding-left var(--ease);
}

body[data-template="guide-detail"] .guide-contents a::before {
  color: var(--guide-sage);
  content: "0" counter(guide-sections);
  font-family: var(--font-display, Georgia, serif);
  font-size: .8rem;
}

body[data-template="guide-detail"] .guide-contents a:hover,
body[data-template="guide-detail"] .guide-contents a.is-active {
  padding-left: 5px;
  color: var(--guide-deep);
}

body[data-template="guide-detail"] .guide-contents a.is-active::before {
  color: var(--guide-jade);
}

body[data-template="guide-detail"] .guide-share-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--guide-jade);
  cursor: pointer;
  font: inherit;
  font-size: .74rem;
  font-weight: 820;
}

body[data-template="guide-detail"] .guide-share-button.is-copied {
  color: #267a51;
}

body[data-template="guide-detail"] .guide-prose {
  min-width: 0;
}

body[data-template="guide-detail"] .guide-prose :where(p, li) {
  color: var(--guide-muted);
  font-size: clamp(1rem, 1.12vw, 1.08rem);
  line-height: 1.82;
}

body[data-template="guide-detail"] .guide-introduction {
  scroll-margin-top: calc(var(--header) + 42px);
}

body[data-template="guide-detail"] .guide-introduction .eyebrow {
  color: var(--guide-jade);
}

body[data-template="guide-detail"] .guide-lead {
  margin: 23px 0 30px;
  color: var(--guide-deep) !important;
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(1.65rem, 2.5vw, 2.45rem) !important;
  line-height: 1.3 !important;
  letter-spacing: -.025em;
}

body[data-template="guide-detail"] .guide-lead::first-letter {
  float: left;
  margin: .05em .12em 0 0;
  color: var(--guide-jade);
  font-size: 3.1em;
  font-weight: 700;
  line-height: .77;
}

body[data-template="guide-detail"] .guide-figure {
  width: min(112%, 860px);
  margin: clamp(44px, 6vw, 70px) 0 clamp(56px, 7vw, 82px);
  transform: translateX(-6%);
}

body[data-template="guide-detail"] .guide-figure img {
  display: block;
  width: 100%;
  min-height: 460px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 22px 22px 0 var(--guide-mist);
}

body[data-template="guide-detail"] .guide-figure figcaption {
  display: flex;
  max-width: 720px;
  gap: 10px;
  margin-top: 18px;
  color: var(--guide-muted);
  font-size: .73rem;
  line-height: 1.55;
}

body[data-template="guide-detail"] .guide-figure figcaption i {
  color: var(--guide-jade);
}

body[data-template="guide-detail"] .guide-section {
  scroll-margin-top: calc(var(--header) + 34px);
  padding-top: clamp(60px, 7vw, 92px);
  border-top: 1px solid var(--guide-line);
}

body[data-template="guide-detail"] .guide-section + .guide-section {
  margin-top: clamp(76px, 9vw, 118px);
}

body[data-template="guide-detail"] .guide-section-number {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  color: var(--guide-jade);
  font-family: var(--font-display, Georgia, serif);
  font-size: 2rem;
  line-height: 1;
}

body[data-template="guide-detail"] .guide-section-number::after {
  width: 44px;
  height: 1px;
  background: currentColor;
  content: "";
  opacity: .42;
}

body[data-template="guide-detail"] .guide-section h2,
body[data-template="guide-detail"] .guide-ending h2 {
  max-width: 13ch;
  margin-bottom: 26px;
  color: var(--guide-deep);
  font-size: clamp(2.65rem, 5vw, 4.8rem);
  line-height: .98;
  letter-spacing: -.045em;
}

body[data-template="guide-detail"] .guide-section h3 {
  margin-bottom: 10px;
  color: var(--guide-deep);
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  line-height: 1.15;
}

body[data-template="guide-detail"] .guide-pullquote {
  margin: clamp(44px, 6vw, 66px) 0;
  padding: 8px 0 8px clamp(24px, 4vw, 42px);
  border-left: 3px solid var(--guide-sage);
}

body[data-template="guide-detail"] .guide-pullquote blockquote {
  margin: 0;
  color: var(--guide-deep);
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(2rem, 3.6vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -.035em;
}

body[data-template="guide-detail"] .guide-pullquote p {
  margin: 16px 0 0;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Suggested route */

body[data-template="guide-detail"] .guide-route {
  margin: 44px 0 12px;
  padding: 0;
  list-style: none;
  counter-reset: local-route;
}

body[data-template="guide-detail"] .guide-route li {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 22px;
  padding: 27px 0;
  border-top: 1px solid var(--guide-line);
  counter-increment: local-route;
}

body[data-template="guide-detail"] .guide-route li:last-child {
  border-bottom: 1px solid var(--guide-line);
}

body[data-template="guide-detail"] .guide-route li::before {
  color: var(--guide-sage);
  content: "0" counter(local-route);
  font-family: var(--font-display, Georgia, serif);
  font-size: 1.55rem;
}

body[data-template="guide-detail"] .guide-route p {
  margin: 0;
  font-size: .96rem;
}

body[data-template="guide-detail"] .guide-route-label {
  display: block;
  margin-bottom: 6px;
  color: var(--guide-jade);
  font-size: .64rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

/* Rhythm selector */

body[data-template="guide-detail"] .guide-rhythm {
  margin-top: 44px;
  border-block: 1px solid var(--guide-line);
}

body[data-template="guide-detail"] .guide-rhythm-row {
  display: grid;
  grid-template-columns: 120px minmax(170px, .72fr) minmax(0, 1.35fr);
  gap: 22px;
  align-items: start;
  padding: 25px 0;
}

body[data-template="guide-detail"] .guide-rhythm-row + .guide-rhythm-row {
  border-top: 1px solid var(--guide-line);
}

body[data-template="guide-detail"] .guide-rhythm-time {
  color: var(--guide-jade);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

body[data-template="guide-detail"] .guide-rhythm-row strong {
  color: var(--guide-deep);
  font-family: var(--font-display, Georgia, serif);
  font-size: 1.35rem;
  line-height: 1.12;
}

body[data-template="guide-detail"] .guide-rhythm-row p {
  margin: 0;
  font-size: .9rem;
  line-height: 1.65;
}

body[data-template="guide-detail"] .guide-inline-action {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 26px;
  color: var(--guide-jade);
  font-size: .82rem;
  font-weight: 850;
  text-decoration: none;
}

body[data-template="guide-detail"] .guide-inline-action i {
  transition: transform var(--ease);
}

body[data-template="guide-detail"] .guide-inline-action:hover i {
  transform: translateX(4px);
}

/* Respectful visit feature */

body[data-template="guide-detail"] .guide-respect {
  position: relative;
  width: min(124%, 950px);
  margin: clamp(76px, 9vw, 112px) 0;
  padding: clamp(40px, 6vw, 68px);
  scroll-margin-top: calc(var(--header) + 34px);
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 2%, rgba(142, 182, 155, .2), transparent 32%),
    var(--guide-deep);
  color: #fff;
  transform: translateX(-12%);
}

body[data-template="guide-detail"] .guide-respect::after {
  position: absolute;
  right: -80px;
  bottom: -96px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(218, 241, 222, .1);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(218, 241, 222, .025);
  content: "";
}

body[data-template="guide-detail"] .guide-respect .eyebrow {
  color: var(--guide-sage);
}

body[data-template="guide-detail"] .guide-respect h2 {
  max-width: 12ch;
  margin: 22px 0 24px;
  color: var(--guide-mint);
  font-size: clamp(2.5rem, 5vw, 4.6rem);
  line-height: 1;
}

body[data-template="guide-detail"] .guide-respect > p {
  max-width: 640px;
  color: rgba(255, 255, 255, .72);
}

body[data-template="guide-detail"] .guide-respect-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 34px;
  margin-top: 34px;
  border-top: 1px solid rgba(218, 241, 222, .16);
}

body[data-template="guide-detail"] .guide-respect-list div {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(218, 241, 222, .16);
}

body[data-template="guide-detail"] .guide-respect-list i {
  color: var(--guide-sage);
}

body[data-template="guide-detail"] .guide-respect-list span {
  color: rgba(255, 255, 255, .78);
  font-size: .88rem;
  line-height: 1.55;
}

/* Practical notes */

body[data-template="guide-detail"] .guide-practical-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 38px;
  margin-top: 40px;
  border-top: 1px solid var(--guide-line);
}

body[data-template="guide-detail"] .guide-practical-list div {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 14px;
  padding: 24px 0;
  border-bottom: 1px solid var(--guide-line);
}

body[data-template="guide-detail"] .guide-practical-list i {
  color: var(--guide-jade);
  font-size: 1.08rem;
}

body[data-template="guide-detail"] .guide-practical-list strong,
body[data-template="guide-detail"] .guide-practical-list span {
  display: block;
}

body[data-template="guide-detail"] .guide-practical-list strong {
  margin-bottom: 5px;
  color: var(--guide-deep);
  font-size: .9rem;
}

body[data-template="guide-detail"] .guide-practical-list span {
  color: var(--guide-muted);
  font-size: .83rem;
  line-height: 1.55;
}

body[data-template="guide-detail"] .guide-ending {
  margin-top: clamp(78px, 9vw, 112px);
  padding-top: clamp(58px, 7vw, 82px);
  border-top: 1px solid var(--guide-line);
}

body[data-template="guide-detail"] .guide-ending p {
  max-width: 650px;
}

body[data-template="guide-detail"] .guide-ending-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

body[data-template="guide-detail"] .guide-ending-actions .btn {
  min-height: 50px;
}

body[data-template="guide-detail"] .guide-ending-actions .btn-primary {
  border-color: var(--guide-deep);
  background: var(--guide-deep);
  color: var(--guide-mint);
}

body[data-template="guide-detail"] .guide-ending-actions .btn-outline {
  border: 1px solid var(--guide-line);
  background: transparent;
  color: var(--guide-jade);
}

/* Related experiences */

body[data-template="guide-detail"] .guide-related {
  padding: clamp(82px, 9vw, 126px) 0;
  background: var(--guide-mist);
}

body[data-template="guide-detail"] .guide-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .62fr);
  gap: 50px;
  align-items: end;
  margin-bottom: clamp(42px, 6vw, 70px);
}

body[data-template="guide-detail"] .guide-section-head .eyebrow {
  color: var(--guide-jade);
}

body[data-template="guide-detail"] .guide-section-head h2 {
  max-width: 12ch;
  margin: 16px 0 0;
  color: var(--guide-deep);
  font-size: clamp(2.75rem, 5vw, 4.8rem);
  line-height: 1;
  letter-spacing: -.045em;
}

body[data-template="guide-detail"] .guide-section-head > p {
  margin: 0;
  color: var(--guide-muted);
  line-height: 1.75;
}

body[data-template="guide-detail"] .guide-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 34px);
}

body[data-template="guide-detail"] .guide-experience {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border-top: 1px solid var(--guide-line);
}

body[data-template="guide-detail"] .guide-experience-media {
  position: relative;
  display: block;
  aspect-ratio: 1.2 / 1;
  margin: 16px 0 24px;
  overflow: hidden;
  background: var(--guide-deep);
}

body[data-template="guide-detail"] .guide-experience-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 550ms cubic-bezier(.2, .7, .2, 1);
}

body[data-template="guide-detail"] .guide-experience:hover .guide-experience-media img {
  transform: scale(1.035);
}

body[data-template="guide-detail"] .guide-experience-tag {
  display: block;
  margin-bottom: 9px;
  color: var(--guide-jade);
  font-size: .64rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

body[data-template="guide-detail"] .guide-experience h3 {
  margin-bottom: 12px;
  color: var(--guide-deep);
  font-size: clamp(1.65rem, 2.8vw, 2.25rem);
  line-height: 1.03;
}

body[data-template="guide-detail"] .guide-experience p {
  margin-bottom: 18px;
  color: var(--guide-muted);
  font-size: .88rem;
  line-height: 1.65;
}

body[data-template="guide-detail"] .guide-experience .guide-inline-action {
  margin-top: auto;
}

/* Continue reading */

body[data-template="guide-detail"] .guide-more {
  padding: clamp(78px, 8vw, 112px) 0;
  background: var(--guide-paper);
}

body[data-template="guide-detail"] .guide-more-grid {
  display: grid;
  grid-template-columns: minmax(260px, .62fr) minmax(0, 1.25fr);
  gap: clamp(60px, 9vw, 130px);
  align-items: start;
}

body[data-template="guide-detail"] .guide-more-intro {
  position: sticky;
  top: calc(var(--header) + 34px);
}

body[data-template="guide-detail"] .guide-more-intro .eyebrow {
  color: var(--guide-jade);
}

body[data-template="guide-detail"] .guide-more-intro h2 {
  max-width: 8ch;
  margin: 18px 0 20px;
  color: var(--guide-deep);
  font-size: clamp(2.6rem, 4.7vw, 4.5rem);
  line-height: 1;
}

body[data-template="guide-detail"] .guide-more-intro p {
  color: var(--guide-muted);
  line-height: 1.7;
}

body[data-template="guide-detail"] .guide-more-list {
  border-top: 1px solid var(--guide-line);
}

body[data-template="guide-detail"] .guide-more-link {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 34px;
  gap: 18px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--guide-line);
  color: inherit;
  text-decoration: none;
}

body[data-template="guide-detail"] .guide-more-link small {
  color: var(--guide-jade);
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

body[data-template="guide-detail"] .guide-more-link strong {
  color: var(--guide-deep);
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.15;
}

body[data-template="guide-detail"] .guide-more-link i {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--guide-line);
  border-radius: 50%;
  color: var(--guide-jade);
  transition: transform var(--ease), background var(--ease), color var(--ease);
}

body[data-template="guide-detail"] .guide-more-link:hover i {
  transform: translate(3px, -3px);
  background: var(--guide-deep);
  color: var(--guide-mint);
}

/* Final CTA */

body[data-template="guide-detail"] .guide-cta {
  padding: clamp(66px, 7vw, 92px) 0;
  background:
    radial-gradient(circle at 88% 0%, rgba(218, 241, 222, .42), transparent 32%),
    var(--guide-sage);
}

body[data-template="guide-detail"] .guide-cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 42px;
  align-items: center;
}

body[data-template="guide-detail"] .guide-cta-kicker {
  display: block;
  margin-bottom: 12px;
  color: var(--guide-deep);
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

body[data-template="guide-detail"] .guide-cta h2 {
  max-width: 13ch;
  margin-bottom: 12px;
  color: var(--guide-midnight);
  font-size: clamp(2.5rem, 4.6vw, 4.4rem);
  line-height: 1;
}

body[data-template="guide-detail"] .guide-cta p {
  max-width: 720px;
  margin: 0;
  color: rgba(5, 31, 32, .78);
  line-height: 1.7;
}

body[data-template="guide-detail"] .guide-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  justify-content: flex-end;
}

body[data-template="guide-detail"] .guide-cta .btn-primary {
  border-color: var(--guide-deep);
  background: var(--guide-deep);
  color: var(--guide-mint);
}

body[data-template="guide-detail"] .guide-cta .guide-cta-whatsapp {
  border: 1px solid rgba(5, 31, 32, .22);
  background: rgba(218, 241, 222, .42);
  color: var(--guide-deep);
}

@media screen and (max-width: 1080px) {
  body[data-template="guide-detail"] .guide-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(260px, .42fr);
    gap: 54px;
  }

  body[data-template="guide-detail"] .guide-hero h1 {
    font-size: clamp(4rem, 8vw, 6.3rem);
  }

  body[data-template="guide-detail"] .guide-article-layout {
    grid-template-columns: 180px minmax(0, 720px);
  }

  body[data-template="guide-detail"] .guide-article-layout::after {
    display: none;
  }
}

@media screen and (max-width: 900px) {
  body[data-template="guide-detail"] .guide-hero {
    min-height: max(760px, 92svh);
    padding: calc(var(--header) + 52px) 0 66px;
  }

  body[data-template="guide-detail"] .guide-hero-grid {
    grid-template-columns: 1fr;
  }

  body[data-template="guide-detail"] .guide-hero-note {
    display: none;
  }

  body[data-template="guide-detail"] .guide-article-layout {
    grid-template-columns: minmax(0, 1fr);
    max-width: 780px;
  }

  body[data-template="guide-detail"] .guide-contents {
    position: static;
    display: block;
    width: 100%;
    min-width: 0;
    padding: 14px 0;
    border-block: 1px solid var(--guide-line);
  }

  body[data-template="guide-detail"] .guide-contents-kicker {
    margin: 0 0 10px;
  }

  body[data-template="guide-detail"] .guide-contents ol {
    display: flex;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  body[data-template="guide-detail"] .guide-contents ol::-webkit-scrollbar {
    display: none;
  }

  body[data-template="guide-detail"] .guide-contents li,
  body[data-template="guide-detail"] .guide-contents li:last-child {
    flex: 0 0 auto;
    border: 0;
  }

  body[data-template="guide-detail"] .guide-contents a {
    display: block;
    padding: .6rem .72rem;
    border-radius: 999px;
    background: var(--guide-mist);
    font-size: .7rem;
    white-space: nowrap;
  }

  body[data-template="guide-detail"] .guide-contents a::before {
    display: none;
  }

  body[data-template="guide-detail"] .guide-contents a:hover,
  body[data-template="guide-detail"] .guide-contents a.is-active {
    padding-left: .72rem;
    background: var(--guide-deep);
    color: var(--guide-mint);
  }

  body[data-template="guide-detail"] .guide-ending-actions .guide-share-button {
    max-width: 100%;
    min-width: 0;
    padding-inline: 20px;
    font-size: .74rem;
    white-space: nowrap;
  }

  body[data-template="guide-detail"] .guide-prose {
    width: 100%;
    min-width: 0;
  }

  body[data-template="guide-detail"] .guide-figure {
    width: 100%;
    transform: none;
  }

  body[data-template="guide-detail"] .guide-respect {
    width: calc(100% + 48px);
    transform: translateX(-24px);
  }

  body[data-template="guide-detail"] .guide-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-template="guide-detail"] .guide-experience:last-child {
    grid-column: 1 / -1;
    max-width: calc(50% - 12px);
  }

  body[data-template="guide-detail"] .guide-more-grid,
  body[data-template="guide-detail"] .guide-cta-inner {
    grid-template-columns: 1fr;
  }

  body[data-template="guide-detail"] .guide-more-intro {
    position: static;
  }

  body[data-template="guide-detail"] .guide-cta-actions {
    justify-content: flex-start;
  }
}

@media screen and (max-width: 680px) {
  body[data-template="guide-detail"] .guide-hero {
    min-height: max(720px, 90svh);
    padding: calc(var(--header) + 40px) 0 54px;
    background:
      linear-gradient(180deg, rgba(5, 31, 32, .46), rgba(5, 31, 32, .94) 74%, var(--guide-midnight)),
      var(--guide-hero-image) 61% center / cover no-repeat;
  }

  body[data-template="guide-detail"] .guide-hero-grid {
    width: min(100% - 34px, 1280px);
  }

  body[data-template="guide-detail"] .guide-hero .breadcrumbs {
    margin-bottom: 22px;
  }

  body[data-template="guide-detail"] .guide-hero h1 {
    max-width: 10ch;
    margin: 18px 0 22px;
    font-size: clamp(3.25rem, 14.8vw, 4.55rem);
    line-height: .91;
  }

  html[lang="es"] body[data-template="guide-detail"] .guide-hero h1 {
    font-size: clamp(3rem, 13.3vw, 4.1rem);
  }

  body[data-template="guide-detail"] .guide-hero-copy > p {
    padding-left: 15px;
    font-size: .97rem;
  }

  body[data-template="guide-detail"] .guide-hero-meta {
    gap: 9px 16px;
    margin-top: 24px;
  }

  body[data-template="guide-detail"] .guide-hero-meta span {
    font-size: .67rem;
  }

  body[data-template="guide-detail"] .guide-byline-inner {
    min-height: 76px;
  }

  body[data-template="guide-detail"] .guide-byline-tags {
    display: none;
  }

  body[data-template="guide-detail"] .guide-article-shell {
    padding-block: 62px 84px;
  }

  body[data-template="guide-detail"] .guide-article-layout {
    gap: 46px;
  }

  body[data-template="guide-detail"] .guide-ending-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

  body[data-template="guide-detail"] .guide-ending-actions .btn,
  body[data-template="guide-detail"] .guide-ending-actions .guide-share-button {
    width: 100%;
    max-width: 100%;
    justify-content: center;
  }

  body[data-template="guide-detail"] .guide-lead {
    font-size: clamp(1.5rem, 7vw, 2rem) !important;
  }

  body[data-template="guide-detail"] .guide-figure img {
    min-height: 380px;
  }

  body[data-template="guide-detail"] .guide-section {
    padding-top: 54px;
  }

  body[data-template="guide-detail"] .guide-section + .guide-section {
    margin-top: 70px;
  }

  body[data-template="guide-detail"] .guide-section h2,
  body[data-template="guide-detail"] .guide-ending h2 {
    font-size: clamp(2.35rem, 11vw, 3.35rem);
  }

  body[data-template="guide-detail"] .guide-pullquote blockquote {
    font-size: clamp(1.8rem, 8.5vw, 2.65rem);
  }

  body[data-template="guide-detail"] .guide-route li {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 14px;
  }

  body[data-template="guide-detail"] .guide-rhythm-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  body[data-template="guide-detail"] .guide-rhythm-row strong {
    font-size: 1.5rem;
  }

  body[data-template="guide-detail"] .guide-respect {
    width: calc(100% + 34px);
    margin-block: 70px;
    padding: 38px 18px;
    transform: translateX(-17px);
  }

  body[data-template="guide-detail"] .guide-respect h2 {
    font-size: clamp(2.3rem, 11vw, 3.25rem);
  }

  body[data-template="guide-detail"] .guide-respect-list,
  body[data-template="guide-detail"] .guide-practical-list {
    grid-template-columns: 1fr;
  }

  body[data-template="guide-detail"] .guide-section-head {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  body[data-template="guide-detail"] .guide-section-head h2 {
    font-size: clamp(2.4rem, 11vw, 3.4rem);
  }

  body[data-template="guide-detail"] .guide-related-grid {
    grid-template-columns: 1fr;
  }

  body[data-template="guide-detail"] .guide-experience:last-child {
    grid-column: auto;
    max-width: none;
  }

  body[data-template="guide-detail"] .guide-experience-media {
    aspect-ratio: 1.3 / 1;
  }

  body[data-template="guide-detail"] .guide-more-grid {
    gap: 44px;
  }

  body[data-template="guide-detail"] .guide-more-link {
    grid-template-columns: 1fr 32px;
    gap: 12px;
  }

  body[data-template="guide-detail"] .guide-more-link small {
    grid-column: 1 / -1;
  }

  body[data-template="guide-detail"] .guide-cta-actions {
    flex-direction: column;
  }

  body[data-template="guide-detail"] .guide-cta-actions .btn {
    width: 100%;
  }

  body[data-template="guide-detail"] .floating-whatsapp {
    width: 54px;
    height: 54px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-template="guide-detail"] *,
  body[data-template="guide-detail"] *::before,
  body[data-template="guide-detail"] *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  body[data-template="guide-detail"] .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media print {
  body[data-template="guide-detail"] .site-header,
  body[data-template="guide-detail"] .article-progress,
  body[data-template="guide-detail"] .guide-contents,
  body[data-template="guide-detail"] .guide-related,
  body[data-template="guide-detail"] .guide-more,
  body[data-template="guide-detail"] .guide-cta,
  body[data-template="guide-detail"] .site-footer,
  body[data-template="guide-detail"] .floating-whatsapp {
    display: none !important;
  }

  body[data-template="guide-detail"] .guide-hero {
    min-height: 0;
    padding: 50px 0;
    background: var(--guide-deep);
  }

  body[data-template="guide-detail"] .guide-article-layout {
    display: block;
  }

  body[data-template="guide-detail"] .guide-respect {
    width: 100%;
    transform: none;
  }
}
