.guide-page,
.guide-index-page { background: var(--white); }

.breadcrumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 22px;
  font-size: 13px; font-weight: 750; color: var(--muted);
}
.breadcrumbs a { color: var(--thermal-dark); }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs-light { color: rgba(255,255,255,.72); }
.breadcrumbs-light a { color: rgba(255,255,255,.94); }

.guide-hero {
  position: relative; min-height: 610px; padding-top: 82px; color: var(--white); overflow: hidden; display: grid; align-items: end;
}
.guide-hero-media { position: absolute; inset: 0; }
.guide-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.guide-hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3,24,53,.22), rgba(3,24,53,.92) 88%); }
.guide-hero-inner { position: relative; z-index: 2; padding-bottom: 70px; max-width: 930px; margin-left: max(20px, calc((100vw - min(calc(100% - 40px), var(--container))) / 2)); }
.guide-hero h1 {
  margin: 0; max-width: 900px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(46px, 6.5vw, 78px);
  line-height: 1.01; letter-spacing: -.045em; font-weight: 600;
}
.guide-hero-lead { max-width: 760px; margin: 24px 0 0; font-size: clamp(18px, 2vw, 21px); color: rgba(255,255,255,.88); line-height: 1.55; }
.guide-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; color: rgba(255,255,255,.68); font-size: 13px; font-weight: 700; }

.guide-body-section { padding: 76px 0 100px; }
.guide-layout { display: grid; grid-template-columns: 250px minmax(0, 780px); justify-content: center; gap: 70px; align-items: start; }
.guide-toc {
  position: sticky; top: 112px; padding: 22px 0 22px 22px; border-left: 2px solid #d9e4f1; color: var(--muted);
}
.toc-title { margin: 0 0 12px; color: var(--forest); font-size: 12px; text-transform: uppercase; letter-spacing: .13em; font-weight: 850; }
.guide-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.guide-toc li { counter-increment: toc; margin: 8px 0; }
.guide-toc li a { display: grid; grid-template-columns: 22px 1fr; gap: 4px; font-size: 13px; line-height: 1.4; }
.guide-toc li a::before { content: counter(toc, decimal-leading-zero); color: var(--copper); font-size: 10px; font-weight: 900; margin-top: 3px; }
.guide-toc a:hover { color: var(--forest); }
.toc-back { display: inline-block; margin-top: 18px; color: var(--thermal-dark); font-weight: 800; font-size: 12px; }

.guide-article { min-width: 0; }
.guide-intro { margin: 0 0 34px; color: var(--ink); font-size: 21px; line-height: 1.72; }
.guide-highlights { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 0 0 56px; }
.guide-highlights > div { display: flex; gap: 12px; align-items: flex-start; padding: 16px 17px; border-radius: 14px; background: var(--cream-2); border: 1px solid #e6e3dc; }
.guide-highlights span { width: 25px; height: 25px; flex: 0 0 25px; display: grid; place-items: center; border-radius: 50%; background: #e6f0fb; color: var(--thermal-dark); font-size: 13px; font-weight: 900; }
.guide-highlights p { margin: 1px 0 0; color: #43534e; font-size: 14px; font-weight: 700; line-height: 1.45; }
.guide-section { scroll-margin-top: 110px; margin: 0 0 58px; }
.guide-section h2 {
  margin: 0 0 20px; color: var(--forest); font-family: Georgia, "Times New Roman", serif; font-size: clamp(32px, 4vw, 46px); line-height: 1.08; letter-spacing: -.03em; font-weight: 600;
}
.guide-section > p { color: #52615d; font-size: 17px; line-height: 1.78; margin: 0 0 18px; }
.guide-list { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.guide-list li { position: relative; padding: 12px 16px 12px 42px; background: #f7faf9; border: 1px solid #e2ebe7; border-radius: 12px; color: #42514d; }
.guide-list li::before { content: "✓"; position: absolute; left: 16px; color: var(--thermal-dark); font-weight: 900; }
.guide-callout { margin-top: 26px; padding: 23px 25px; border-radius: 17px; background: var(--cream); border-left: 4px solid var(--copper); }
.guide-callout strong { color: var(--forest); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.guide-callout p { margin: 7px 0 0; color: #59645f; }

.guide-action-card { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; margin: 8px 0 62px; padding: 34px; border-radius: 22px; background: var(--cream); border: 1px solid #e4ddd1; }
.guide-action-card h2 { margin: 7px 0 8px; color: var(--forest); font-family: Georgia, serif; font-size: 31px; line-height: 1.1; }
.guide-action-card p { margin: 0; color: var(--muted); }
.guide-action-card.dark-card { background: var(--forest); border-color: var(--forest); color: var(--white); }
.guide-action-card.dark-card h2 { color: var(--white); }
.guide-action-card.dark-card p { color: rgba(255,255,255,.72); }
.guide-action-card.dark-card .route-kicker { color: #9bd3c8; }

.guide-faq { padding-top: 12px; }
.guide-faq .eyebrow { margin-bottom: 10px; }
.guide-update-note { margin-top: 38px; padding: 20px 22px; border: 1px solid #dfe7e3; border-radius: 16px; background: #f9fbfa; }
.guide-update-note strong { color: var(--forest); }
.guide-update-note p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }

.guide-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.guide-card-grid-wide { grid-template-columns: repeat(3, 1fr); }
.guide-card { overflow: hidden; border-radius: 20px; background: var(--white); border: 1px solid #e0e7e3; box-shadow: 0 14px 34px rgba(16,50,43,.05); }
.guide-card-image { display: block; aspect-ratio: 16/10; overflow: hidden; background: #dfe7e4; }
.guide-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.guide-card:hover .guide-card-image img { transform: scale(1.035); }
.guide-card-body { padding: 24px; }
.guide-card-body > span { color: var(--thermal-dark); font-size: 11px; font-weight: 850; text-transform: uppercase; letter-spacing: .09em; }
.guide-card h2, .guide-card h3 { margin: 8px 0 10px; color: var(--forest); font-family: Georgia, serif; line-height: 1.16; font-weight: 600; }
.guide-card h2 { font-size: 27px; }
.guide-card h3 { font-size: 24px; }
.guide-card p { margin: 0 0 18px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.guide-card-link { color: var(--thermal-dark); font-size: 13px; font-weight: 850; }

.guides-index-hero { padding: 160px 0 74px; background: linear-gradient(135deg, var(--ivory-2), #edf4fb); }
.guides-index-hero .container { max-width: 990px; }
.guides-index-hero h1 { margin: 0; max-width: 900px; color: var(--forest); font-family: Georgia, serif; font-size: clamp(48px, 6vw, 76px); line-height: 1.02; letter-spacing: -.045em; font-weight: 600; }
.guides-index-hero > .container > p:last-child { max-width: 760px; margin: 24px 0 0; color: var(--muted); font-size: 19px; line-height: 1.65; }
.guides-filter { border-bottom: 1px solid #e4eae7; background: var(--white); }
.guide-category-pills { display: flex; flex-wrap: wrap; gap: 10px; padding-block: 18px; }
.guide-category-pills a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; color: #53625e; background: #f3f6f5; font-size: 13px; font-weight: 800; }
.guide-category-pills a span { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: rgba(22,61,54,.08); font-size: 11px; }
.guide-category-pills a.active { background: var(--forest); color: var(--white); }
.guide-category-pills a.active span { background: rgba(255,255,255,.15); }
.guides-listing { padding-top: 72px; }
.guides-system-note { background: var(--forest); color: var(--white); padding: 58px 0; }
.guides-system-note .container { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.guides-system-note h2 { margin: 0 0 10px; font-family: Georgia, serif; font-size: 38px; font-weight: 600; }
.guides-system-note p:not(.eyebrow) { max-width: 720px; margin: 0; color: rgba(255,255,255,.72); }

/* Tarjetas de guías en la portada */
.home-guides { background: #f5f8fc; }
.home-guides .guide-card h3 { font-size: 23px; }

@media (max-width: 1050px) {
  .guide-layout { grid-template-columns: 215px minmax(0, 1fr); gap: 44px; }
  .guide-card-grid, .guide-card-grid-wide { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .guide-hero { min-height: 560px; padding-top: 72px; }
  .guide-hero-inner { margin-left: auto; padding-bottom: 52px; }
  .guide-layout { grid-template-columns: 1fr; }
  .guide-toc { position: static; padding: 20px; border: 1px solid #e0e7e3; border-radius: 15px; background: #fbfcfb; }
  .guide-toc ol { columns: 2; column-gap: 25px; }
  .guide-body-section { padding-top: 46px; }
  .guide-highlights { grid-template-columns: 1fr; }
  .guide-action-card { grid-template-columns: 1fr; }
  .guides-index-hero { padding-top: 130px; }
  .guides-system-note .container { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 560px) {
  .guide-hero { min-height: 590px; }
  .guide-hero h1 { font-size: 45px; }
  .guide-hero-lead { font-size: 17px; }
  .guide-meta { font-size: 12px; }
  .guide-toc ol { columns: 1; }
  .guide-intro { font-size: 19px; }
  .guide-section h2 { font-size: 34px; }
  .guide-card-grid, .guide-card-grid-wide { grid-template-columns: 1fr; }
  .guide-card h2 { font-size: 25px; }
  .guides-index-hero h1 { font-size: 44px; }
  .guide-category-pills { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; }
  .guide-category-pills a { flex: 0 0 auto; }
}
