/* ==========================================================================
   VISITA ORBANEJA — Componentes del sitio (guías, navegación, SEO)
   Se carga después de style.css y reutiliza sus variables.
   ========================================================================== */

:root {
  --ink: #2b2822;
  --ink-soft: #4a4540;
  --muted: #6f6a5e;
  --line: rgba(58, 53, 45, 0.12);
  --radius: 16px;
  --container-prose: 46rem;
}

body { color: var(--ink); }
::selection { background: rgba(196, 0, 45, 0.2); }
:focus-visible { outline: 3px solid var(--color-sky); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 2000;
  background: var(--color-forest); color: #fff; padding: .6rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: 1rem; color: #fff; }

/* ---------- NAVEGACIÓN ---------- */
.site-nav { padding: 1rem 0; }
.site-brand { display: inline-flex; align-items: center; gap: .6rem; color: #fff !important; text-shadow: 0 1px 4px rgba(0,0,0,.35); }
.site-brand__mark {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.45); font-size: 1rem;
  backdrop-filter: blur(6px);
}
.site-brand__text { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 600; letter-spacing: .01em; line-height: 1; }
.site-brand__text em { font-weight: 400; }
.navbar.scrolled .site-brand { color: var(--color-dark) !important; text-shadow: none; }
.navbar.scrolled .site-brand__mark { background: var(--color-forest); color: #fff; border-color: var(--color-forest); }
.navbar .nav-link.active { color: #fff !important; }
.navbar .nav-link.active::after { width: 60%; }
.navbar.scrolled .nav-link.active { color: var(--color-forest) !important; }
.navbar.scrolled .navbar-toggler { filter: invert(1) brightness(.4); }
.navbar .navbar-toggler { border-color: rgba(255,255,255,.5); }

.dropdown-menu {
  border: 0; border-radius: 12px; padding: .5rem; min-width: 15rem;
  box-shadow: 0 18px 50px rgba(42, 16, 20, .18);
}
.dropdown-item { border-radius: 8px; font-size: .88rem; padding: .5rem .8rem; color: var(--ink); }
.dropdown-item:hover, .dropdown-item:focus { background: rgba(196, 0, 45,.08); color: var(--color-forest); }
.dropdown-item.active, .dropdown-item:active { background: var(--color-forest); color: #fff; }
.navbar .navbar-nav .nav-link.dropdown-toggle::after {
  position: static; width: 0 !important; height: 0; background: none !important; transform: none; vertical-align: .15em;
}

@media (max-width: 991.98px) {
  .site-nav .navbar-collapse {
    background: rgba(46, 10, 15, .97); border-radius: 14px; margin-top: .75rem; padding: 1rem;
    backdrop-filter: blur(10px); max-height: 80vh; overflow-y: auto;
  }
  .navbar.scrolled .navbar-collapse .nav-link { color: rgba(255,255,255,.92) !important; }
  .site-nav .dropdown-menu { background: transparent; box-shadow: none; padding: 0 0 .5rem 1rem; }
  .site-nav .dropdown-item { color: rgba(255,255,255,.8); }
  .site-nav .dropdown-divider { border-color: rgba(255,255,255,.15); }
  .site-nav .btn-map { margin-top: .75rem; }
}
@media (max-width: 576px) { .navbar-nav { background: transparent; padding: 0; margin-top: 0; } }

/* ---------- HERO DE PÁGINA INTERIOR ---------- */
.page-hero {
  position: relative; color: #fff; overflow: hidden; isolation: isolate;
  min-height: min(62vh, 620px); display: flex; align-items: flex-end;
  padding: 8.5rem 0 3.5rem;
  background: var(--color-forest-dark);
}
.page-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(30,12,14,.55) 0%, rgba(30,12,14,.2) 35%, rgba(30,12,14,.75) 100%);
}
.page-hero--plain { min-height: 0; padding: 8rem 0 3rem; background: linear-gradient(135deg, var(--color-forest-dark), var(--color-moss)); }
.page-hero--plain::before { display: none; }
.page-hero__inner { max-width: 60rem; }
.page-hero__kicker {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35); padding: .35rem .8rem; border-radius: 99px;
  margin: 1rem 0 .9rem; backdrop-filter: blur(6px);
}
.page-hero__title {
  font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 600; line-height: 1.08; margin: 0 0 1rem;
  text-shadow: 0 2px 24px rgba(0,0,0,.35); text-wrap: balance;
}
.page-hero__lead { font-size: clamp(1rem, 1.6vw, 1.2rem); max-width: 44rem; opacity: .95; margin-bottom: 1.25rem; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.page-hero__meta { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .8rem; opacity: .9; margin: 0; }
.page-hero__meta i { margin-right: .3rem; }

.crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem; padding: 0; margin: 0; font-size: .8rem; }
.crumbs li { opacity: .85; }
.crumbs li + li::before { content: "›"; margin: 0 .4rem 0 .15rem; opacity: .7; }
.crumbs a { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.4); }
.crumbs a:hover { text-decoration-color: #fff; }

/* ---------- ARTÍCULO ---------- */
.article-wrap { padding-top: 3.5rem; padding-bottom: 4rem; }
.prose { font-size: 1.05rem; line-height: 1.8; color: var(--ink-soft); max-width: var(--container-prose); }
.prose > p:first-of-type { font-size: 1.15rem; color: var(--ink); }
.prose h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem); color: var(--color-forest-dark); font-weight: 600;
  margin: 3.25rem 0 1rem; scroll-margin-top: 90px; text-wrap: balance;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.3rem; color: var(--ink); font-weight: 600; margin: 2.2rem 0 .75rem; scroll-margin-top: 90px; }
.prose p { margin-bottom: 1.15rem; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a:not(.btn):not(.rel-card) { color: var(--color-forest); font-weight: 500; text-decoration: underline; text-decoration-color: rgba(196, 0, 45,.35); text-underline-offset: 3px; }
.prose a:not(.btn):not(.rel-card):hover { text-decoration-color: var(--color-forest); }
.prose ul, .prose ol { padding-left: 1.25rem; margin-bottom: 1.25rem; }
.prose li { margin-bottom: .45rem; }
.prose li::marker { color: var(--color-forest); }
.prose img { border-radius: var(--radius); box-shadow: var(--shadow-soft); width: 100%; height: auto; }
.prose-figure { margin: 2rem 0; }
.prose-figure figcaption { font-size: .82rem; color: var(--muted); margin-top: .6rem; text-align: center; font-style: italic; }

.summary-box {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--color-forest);
  border-radius: var(--radius); padding: 1.4rem 1.6rem; margin-bottom: 2.25rem; box-shadow: var(--shadow-soft);
}
.summary-box__title { font-weight: 700; color: var(--color-forest-dark); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: .6rem !important; }
.summary-box ul { margin: 0; padding-left: 1.1rem; }
.summary-box li { margin-bottom: .3rem; font-size: .98rem; }

.callout {
  display: flex; gap: .9rem; align-items: flex-start; padding: 1.1rem 1.25rem; border-radius: 12px; margin: 1.75rem 0;
  font-size: .97rem; line-height: 1.65; background: #fbf0ec; color: #4a2328;
}
.callout > i { font-size: 1.25rem; line-height: 1.3; color: var(--color-forest); }
.callout--warn { background: #fbf1e6; color: #5a3e22; }
.callout--warn > i { color: var(--color-terracotta); }
.callout--info { background: #eaf2f8; color: #22394a; }
.callout--info > i { color: var(--color-sky); }
.callout--eco { background: #eef2e8; color: #2f3a2a; }
.callout--eco > i { color: #4f7a43; }

.table-wrap { overflow-x: auto; margin: 1.75rem 0; border-radius: 12px; box-shadow: 0 0 0 1px var(--line); background: #fff; }
.data-table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 32rem; }
.data-table caption { caption-side: top; padding: .9rem 1rem .25rem; font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.data-table th, .data-table td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table thead th { background: var(--color-forest); color: #fff; font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; border: 0; }
.data-table tbody th { color: var(--ink); font-weight: 600; }
.data-table tbody tr:nth-child(even) { background: #faf8f3; }
.data-table tbody tr:last-child > * { border-bottom: 0; }

.facts { margin: 0; }
.facts__row { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px dashed var(--line); font-size: .88rem; }
.facts__row:last-child { border-bottom: 0; }
.facts dt { font-weight: 500; color: var(--muted); }
.facts dt i { color: var(--color-forest); margin-right: .45rem; }
.facts dd { margin: 0; font-weight: 600; color: var(--ink); text-align: right; }

/* ---------- SIDEBAR ---------- */
.sidebar { position: sticky; top: 92px; display: grid; gap: 1.25rem; }
.side-box, .toc, .side-cta { background: #fff; border-radius: var(--radius); padding: 1.35rem 1.5rem; box-shadow: var(--shadow-soft); }
.side-box__title, .toc__title, .side-cta__title {
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--color-forest); margin-bottom: .75rem;
}
.toc ol { list-style: none; counter-reset: toc; padding: 0; margin: 0; max-height: 45vh; overflow-y: auto; }
.toc li { counter-increment: toc; }
.toc a {
  display: flex; gap: .6rem; padding: .38rem .5rem; border-radius: 8px; color: var(--ink-soft); font-size: .87rem; line-height: 1.4;
}
.toc a::before { content: counter(toc, decimal-leading-zero); font-size: .72rem; font-weight: 700; color: var(--color-sand); padding-top: .1rem; }
.toc a:hover, .toc a.is-active { background: rgba(196, 0, 45,.08); color: var(--color-forest-dark); }
.toc a.is-active::before { color: var(--color-forest); }
.side-cta { background: linear-gradient(150deg, var(--color-forest) 0%, var(--color-forest-dark) 100%); color: #fff; }
.side-cta__title { color: rgba(255,255,255,.75); }
.side-cta ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .25rem; }
.side-cta a { color: #fff; display: flex; gap: .6rem; align-items: center; padding: .45rem .5rem; border-radius: 8px; font-size: .92rem; font-weight: 500; }
.side-cta a:hover { background: rgba(255,255,255,.12); }
@media (max-width: 991.98px) { .sidebar { position: static; } .toc ol { max-height: none; } }

/* ---------- FAQ ---------- */
.faq { margin-top: 3.5rem; max-width: var(--container-prose); scroll-margin-top: 90px; }
.faq__title { font-size: clamp(1.6rem, 3vw, 2.1rem); color: var(--color-forest-dark); font-weight: 600; margin-bottom: 1.25rem; }
.faq__item { background: #fff; border-radius: 12px; margin-bottom: .75rem; box-shadow: 0 0 0 1px var(--line); transition: box-shadow var(--transition); }
.faq__item[open] { box-shadow: var(--shadow-soft); }
.faq__item summary {
  cursor: pointer; list-style: none; padding: 1.05rem 3rem 1.05rem 1.3rem; font-weight: 600; color: var(--ink); position: relative; font-size: 1rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(196, 0, 45,.1); color: var(--color-forest); font-weight: 600;
}
.faq__item[open] summary::after { content: "–"; background: var(--color-forest); color: #fff; }
.faq__answer { padding: 0 1.3rem 1.1rem; color: var(--ink-soft); line-height: 1.75; }
.faq__answer p { margin: 0; }

/* ---------- TARJETAS RELACIONADAS ---------- */
.section-related { padding: 4.5rem 0; background: var(--color-cream); border-top: 1px solid var(--line); }
.rel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.rel-card {
  display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; color: var(--ink);
  box-shadow: var(--shadow-soft); transition: transform var(--transition), box-shadow var(--transition); height: 100%;
}
.rel-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); color: var(--ink); }
.rel-card__img { aspect-ratio: 16 / 10; overflow: hidden; display: block; }
.rel-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.rel-card:hover .rel-card__img img { transform: scale(1.06); }
.rel-card__body { padding: 1.2rem 1.35rem 1.4rem; display: flex; flex-direction: column; gap: .35rem; }
.rel-card__kicker { font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--color-forest); }
.rel-card__title { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 600; line-height: 1.3; }
.rel-card__text { font-size: .86rem; color: var(--muted); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- BANDA CTA ---------- */
.cta-band { background: linear-gradient(120deg, var(--color-forest-dark) 0%, var(--color-forest) 60%, var(--color-moss) 100%); color: #fff; padding: 3rem 0; }
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta-band__kicker { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; opacity: .8; margin: 0 0 .25rem; font-weight: 600; }
.cta-band__title { font-family: var(--font-serif); font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 0; font-weight: 500; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn-light-solid, .btn-outline-light-soft {
  border-radius: 8px; padding: .8rem 1.4rem; font-weight: 600; font-size: .88rem; display: inline-flex; gap: .5rem; align-items: center; transition: all var(--transition);
}
.btn-light-solid { background: #fff; color: var(--color-forest-dark); }
.btn-light-solid:hover { background: var(--color-cream); color: var(--color-forest-dark); transform: translateY(-2px); }
.btn-outline-light-soft { border: 1.5px solid rgba(255,255,255,.6); color: #fff; }
.btn-outline-light-soft:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }

/* ---------- LISTAS DE LUGARES / FICHAS ---------- */
.spot { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1.25rem; padding: 1.25rem; background: #fff; border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line); margin: 1.25rem 0; }
.spot img { aspect-ratio: 1; object-fit: cover; border-radius: 12px; box-shadow: none; height: 100%; }
.spot__title { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 600; color: var(--ink); margin: 0 0 .3rem !important; }
.spot__meta { display: flex; flex-wrap: wrap; gap: .35rem .9rem; font-size: .8rem; color: var(--muted); margin-bottom: .5rem !important; }
.spot__meta i { color: var(--color-forest); margin-right: .25rem; }
.spot p { font-size: .95rem; margin-bottom: .5rem; }
.spot p:last-child { margin-bottom: 0; }
@media (max-width: 575.98px) { .spot { grid-template-columns: 1fr; } .spot img { aspect-ratio: 16/9; } }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 1.5rem; padding: 0 !important; list-style: none; }
.chips li { margin: 0 !important; }
.chips a, .chips span {
  display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .85rem; border-radius: 99px; font-size: .84rem; font-weight: 500;
  background: #fff; box-shadow: 0 0 0 1px var(--line); color: var(--ink) !important; text-decoration: none !important;
}
.chips a:hover { box-shadow: 0 0 0 1px var(--color-forest); color: var(--color-forest) !important; }

.steps { counter-reset: step; list-style: none; padding: 0 !important; }
.steps > li { counter-increment: step; position: relative; padding: 0 0 1.25rem 3.2rem; margin: 0 !important; border-left: 2px solid var(--line); margin-left: 1rem !important; }
.steps > li:last-child { border-left-color: transparent; }
.steps > li::before {
  content: counter(step); position: absolute; left: -1rem; top: -.1rem; width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--color-forest); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .85rem;
}
.steps > li strong:first-child { display: block; color: var(--ink); }

.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); margin: 1.75rem 0; aspect-ratio: 16/10; background: var(--color-beige); }
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* ---------- HOME ---------- */
.is-home .hero { background: none; isolation: isolate; min-height: min(100vh, 940px); }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.hero::before, .hero::after { z-index: 0; }
.hero-content, .scroll-indicator { z-index: 5; }
.hero-text { max-width: 760px; }
.hero-title { text-transform: none; font-size: clamp(2.6rem, 7vw, 5rem); letter-spacing: .01em; }
.hero-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: -1.25rem 0 2.25rem; opacity: 0; animation: fadeInUp 1s ease-out .7s forwards; }
.hero-badges span { font-size: .75rem; font-weight: 600; letter-spacing: .04em; padding: .4rem .8rem; border-radius: 99px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(6px); }
.hero-ctas { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
.btn-hero--solid { background: #fff; color: var(--color-forest-dark); border-color: #fff; }
.btn-hero--solid:hover { color: var(--color-forest-dark); background: var(--color-cream); }

.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.quick-card { position: relative; border-radius: 18px; overflow: hidden; min-height: 240px; display: flex; align-items: flex-end; color: #fff; box-shadow: var(--shadow-soft); isolation: isolate; }
.quick-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s ease; }
.quick-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(30,10,13,0) 30%, rgba(30,10,13,.82) 100%); }
.quick-card:hover img { transform: scale(1.06); }
.quick-card:hover { color: #fff; }
.quick-card__body { padding: 1.4rem 1.5rem; width: 100%; }
.quick-card__icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.2); backdrop-filter: blur(6px); margin-bottom: .7rem; font-size: 1.1rem; }
.quick-card__title { font-family: var(--font-serif); font-size: 1.35rem; font-weight: 600; margin: 0 0 .2rem; display: block; }
.quick-card__text { font-size: .84rem; opacity: .9; display: block; }
.quick-card__arrow { position: absolute; top: 1.1rem; right: 1.1rem; width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--color-forest-dark); display: grid; place-items: center; opacity: 0; transform: translateY(6px); transition: all var(--transition); }
.quick-card:hover .quick-card__arrow { opacity: 1; transform: none; }
@media (max-width: 991.98px) { .quick-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .quick-grid { grid-template-columns: 1fr; } .quick-card { min-height: 200px; } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); margin-top: 3rem; }
.stats__item { background: #fff; padding: 1.4rem 1rem; text-align: center; }
.stats__value { font-family: var(--font-serif); font-size: 1.7rem; font-weight: 600; color: var(--color-forest-dark); display: block; line-height: 1.1; }
.stats__label { font-size: .78rem; color: var(--muted); display: block; margin-top: .3rem; }
@media (max-width: 767.98px) { .stats { grid-template-columns: repeat(2, 1fr); } }

.section-guide { padding: 5rem 0 3rem; background: var(--color-bg); }
.section-faq-home { padding: 1rem 0 5rem; background: var(--color-bg); }
.section-faq-home .faq { margin: 0 auto; }
.section-gallery .gallery-item img { box-shadow: none; }

.section-header .kicker { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--color-terracotta); margin-bottom: .5rem; }

.trust { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: center; margin-top: 2.5rem; color: var(--muted); font-size: .85rem; }
.trust i { color: var(--color-forest); margin-right: .35rem; }

/* footer heading semantic */
.footer-h { font-family: var(--font-sans); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 1rem; color: var(--color-dark); }
.footer-bottom a { color: #888; }
.footer-bottom a:hover { color: var(--color-forest); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .animate-fade-up, .hero-kicker, .hero-title, .hero-subtitle, .btn-hero, .hero-badges { opacity: 1 !important; }
}
