/* ═══════════════════════════════════════════════════════════════
   CATEDRAL DE SANTO DOMINGO DE LA CALZADA
   shared.css — Estilos compartidos por TODAS las páginas
   Incluye: tokens, reset, cursor, navbar, side-menu, footer,
            lang-selector, reveal, info-bar, status-lamp,
            horarios-tarifas, CTA band
═══════════════════════════════════════════════════════════════ */

/* ── TOKENS ──────────────────────────────────────────────────── */
:root {
  --cream: #F5F0E8;
  --cream-d: #EDE6D6;
  --stone: #8C8070;
  --stone-lt: #BEB5A8;
  --stone-d: #5C5249;      /* AA on cream: 7:1 (a11y) */
  --carbon: #141210;
  --gold: #C9A84C;
  --gold-lt: #DFC070;
  --gold-dk: #A8852E;
  --gold-text: #7A6025;    /* AA on cream: 6.6:1 (a11y) */
  --white: #FDFAF4;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── RESET ───────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--sans);
  background: var(--carbon);
  color: var(--white);
  overflow-x: hidden;
  cursor: none;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

button {
  cursor: none;
  border: none;
  background: none;
  font-family: var(--sans);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── CUSTOM CURSOR ───────────────────────────────────────────── */
.cursor {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
}

.cursor__dot {
  width: 6px;
  height: 6px;
  background: var(--white);
  border-radius: 50%;
  position: absolute;
  transform: translate(-50%, -50%);
}

.cursor__ring {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 50%;
  position: absolute;
  transform: translate(-50%, -50%);
  transition: width .3s var(--ease), height .3s var(--ease), border-color .3s;
}

.cursor.hovering .cursor__ring {
  width: 56px;
  height: 56px;
  border-color: var(--gold);
}

/* ── NAVBAR ──────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background .4s, padding .4s, border-color .4s;
}

/* Estado transparente (solo en páginas con hero fullscreen) */
.navbar--transparent {
  background: transparent;
  border-bottom: 1px solid transparent;
}

/* Estado con scroll / páginas sin hero */
.navbar--solid,
.navbar.scrolled {
  background: rgba(20, 18, 16, .95);
  backdrop-filter: blur(12px);
  padding: 14px 40px;
  border-bottom: 1px solid rgba(201, 168, 76, .15);
}

/* Por defecto todas las páginas interiores arrancan con fondo sólido */
.navbar--always-solid {
  background: rgba(20, 18, 16, .95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 168, 76, .15);
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar__logo-favicon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.navbar__logo-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.navbar__logo-name {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--white);
  line-height: 1;
}

.navbar__logo-sub {
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar__btn-tickets {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--carbon);
  background: var(--gold);
  padding: 11px 22px;
  min-height: 44px;
  border-radius: 2px;
  transition: background .25s, transform .25s;
  display: flex;
  align-items: center;
}

.navbar__btn-tickets:hover {
  background: var(--gold-lt);
  transform: translateY(-1px);
}

/* ── Navbar mobile · botón a11y + tickets icon ───────────── */
.navbar__btn-ticket-icon { display: none; }
.navbar__a11y-btn {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: rgba(20, 18, 16, .5);
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  color: var(--white);
  padding: 0;
  cursor: pointer;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
body.light-mode .navbar__a11y-btn {
  background: rgba(255, 255, 255, .5);
  border-color: rgba(255, 255, 255, .55);
  color: var(--carbon);
}
.navbar__a11y-btn:hover,
.navbar__a11y-btn:focus-visible {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--carbon);
  outline: none;
}

@media (max-width: 640px) {
  .navbar__actions { gap: 14px; }
  .navbar__a11y-btn { display: inline-flex; }
  .lang-selector__btn {
    background: rgba(20, 18, 16, .5);
    border-color: rgba(255, 255, 255, .35);
    color: var(--white);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }
  body.light-mode .lang-selector__btn {
    background: rgba(255, 255, 255, .5);
    border-color: rgba(255, 255, 255, .55);
    color: var(--carbon) !important;
  }
  body.light-mode .navbar.scrolled .lang-selector__btn,
  body.light-mode .navbar--always-solid .lang-selector__btn {
    color: var(--carbon) !important;
  }
  body.light-mode .navbar.scrolled .navbar__a11y-btn,
  body.light-mode .navbar--always-solid .navbar__a11y-btn,
  body.light-mode .navbar.scrolled .lang-selector__btn,
  body.light-mode .navbar--always-solid .lang-selector__btn {
    border-color: rgba(20, 18, 16, .45);
  }
  .navbar__btn-tickets {
    padding: 0;
    width: 40px;
    height: 40px;
    min-height: 40px;
    justify-content: center;
    border-radius: 50%;
  }
  .navbar__btn-tickets-text { display: none; }
  .navbar__btn-ticket-icon { display: block; }
}

.navbar__hamburger {
  width: 38px;
  height: 38px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px;
}

.hamburger-line {
  width: 22px;
  height: 1px;
  background: var(--white);
  transition: transform .35s var(--ease), opacity .25s, width .3s;
}

.hamburger-line:last-child {
  width: 14px;
}

.nav-open .hamburger-line:first-child {
  transform: translateY(6px) rotate(45deg);
  width: 22px;
}

.nav-open .hamburger-line:nth-child(2) {
  opacity: 0;
}

.nav-open .hamburger-line:last-child {
  transform: translateY(-6px) rotate(-45deg);
  width: 22px;
}

/* ── LANG SELECTOR ───────────────────────────────────────────── */
.lang-selector {
  position: relative;
  z-index: 9001;
}

.lang-selector__btn {
  position: relative;
  z-index: 9001;
  height: 34px;
  padding: 0 .65rem;
  background: rgba(20, 18, 16, .35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(201, 168, 76, .35);
  border-radius: 4px;
  font-family: var(--sans);
  font-size: .6rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(201, 168, 76, .82);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color .2s, border-color .2s;
  -webkit-tap-highlight-color: transparent;
}

.lang-selector__btn:hover {
  color: #C9A84C;
  border-color: rgba(201, 168, 76, .5);
}

.lang-selector__btn:focus-visible {
  outline: 2px solid #C9A84C;
  outline-offset: 2px;
}

.lang-selector__btn #lang-current-flag,
.lang-selector__btn svg {
  display: none;
}

body.light-mode .lang-selector__btn {
  background: rgba(253, 250, 244, .55) !important;
  border-color: rgba(122, 96, 37, .5) !important;
  color: var(--gold-text) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

body.light-mode .lang-selector__btn:hover {
  background: rgba(253, 250, 244, .8) !important;
  color: #5C4A1A !important;
  border-color: var(--gold-text) !important;
}

body.light-mode .navbar.scrolled .lang-selector__btn,
body.light-mode .navbar--always-solid .lang-selector__btn {
  background: rgba(253, 250, 244, .7) !important;
  border-color: rgba(122, 96, 37, .55) !important;
  color: var(--gold-text) !important;
}

body.light-mode .lang-selector__btn #lang-current-code {
  color: inherit !important;
}

/* Lang overlay (backdrop) */
.lang-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  z-index: 8997;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s;
}

.lang-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* Lang panel — desktop: lateral derecho; mobile: hoja inferior */
.lang-selector__dropdown {
  position: fixed;
  top: calc(3.4rem + 12px);
  right: 0;
  bottom: auto;
  left: auto;
  background: #1e1c19;
  color: var(--white);
  border-radius: 0 0 0 10px;
  box-shadow: -4px 4px 30px rgba(0, 0, 0, .5);
  z-index: 8998;
  min-width: 215px;
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transform: translateX(110%);
  transition: transform .42s cubic-bezier(0.22, 1, 0.36, 1), opacity .32s ease;
  font-family: var(--sans);
  display: block;
}

.lang-selector.open .lang-selector__dropdown,
.lang-selector__dropdown.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

body.light-mode .lang-selector__dropdown {
  background: #EDE6D6;
  color: #141210;
}

/* Header del panel (inyectado por shared.js) */
.lang-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px 11px;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(253, 250, 244, .4);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.lang-panel__close {
  background: none;
  border: none;
  color: rgba(201, 168, 76, .55);
  cursor: pointer;
  padding: 2px;
  display: flex;
  align-items: center;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1;
  transition: color .15s;
}

.lang-panel__close:hover {
  color: #C9A84C;
}

body.light-mode .lang-panel__header {
  color: rgba(20, 18, 16, .4);
  border-bottom-color: rgba(0, 0, 0, .08);
}

body.light-mode .lang-panel__close {
  color: rgba(20, 18, 16, .35);
}

body.light-mode .lang-panel__close:hover {
  color: #141210;
}

/* Grid de opciones (estilo audioguía) */
.lang-selector__dropdown {
  display: block;
}

.lang-selector__dropdown::after {
  content: '';
  display: block;
  height: 4px;
}

.lang-selector__dropdown .lang-selector__option-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .35rem;
  padding: .75rem;
}

.lang-selector__option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .28rem;
  padding: .6rem .25rem;
  font-size: .63rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(253, 250, 244, .72);
  background: none;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 4px;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  -webkit-tap-highlight-color: transparent;
  font-family: var(--sans);
  width: auto;
  text-align: center;
}

.lang-selector__option:hover {
  background: rgba(201, 168, 76, .12);
  border-color: rgba(201, 168, 76, .38);
  color: #DFC070;
}

.lang-selector__option.active {
  border-color: rgba(201, 168, 76, .58);
  color: #C9A84C;
  background: rgba(201, 168, 76, .07);
}

.lang-selector__option .lang-flag {
  display: none;
}

.lang-selector__option .lang-code {
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .14em;
}

.lang-selector__option .lang-name {
  font-style: italic;
  font-size: .59rem;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 300;
  opacity: .75;
}

body.light-mode .lang-selector__option {
  color: rgba(20, 18, 16, .72);
  border-color: rgba(20, 18, 16, .12);
}

body.light-mode .lang-selector__option:hover {
  background: rgba(201, 168, 76, .1);
  border-color: rgba(168, 133, 46, .42);
  color: #7B5E1A;
}

body.light-mode .lang-selector__option.active {
  border-color: rgba(168, 133, 46, .58);
  color: #A8852E;
  background: rgba(201, 168, 76, .08);
}

/* Mobile: hoja inferior */
@media (max-width: 767px) {
  .lang-selector__dropdown {
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    width: auto;
    min-width: 0;
    max-height: 72vh;
    border-radius: 14px 14px 0 0;
    transform: translateY(110%);
    box-shadow: 0 -8px 30px rgba(0, 0, 0, .45);
  }

  .lang-selector.open .lang-selector__dropdown,
  .lang-selector__dropdown.is-open {
    transform: translateY(0);
  }
}

/* ── SIDE MENU ───────────────────────────────────────────────── */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  z-index: 540;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s;
}

.menu-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.side-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: min(460px, 100vw);
  height: 100vh;
  background: var(--carbon);
  border-left: 1px solid rgba(201, 168, 76, .12);
  z-index: 550;
  display: flex;
  flex-direction: column;
  padding: 100px 52px 60px;
  transform: translateX(100%);
  transition: transform .6s var(--ease);
  overflow-y: auto;
}

.side-menu.open {
  transform: translateX(0);
}

.side-menu__a11y-btn {
  position: absolute;
  top: 32px;
  left: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: var(--sans);
  user-select: none;
}

.side-menu__a11y-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  transition: transform .1s ease;
}

.side-menu__a11y-circle {
  fill: transparent;
  transition: fill .2s ease;
}

.side-menu__a11y-figure {
  fill: var(--stone);
  transition: fill .2s ease;
}

.side-menu__a11y-label {
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--stone);
  transition: color .2s;
}

.side-menu__a11y-btn:hover .side-menu__a11y-figure {
  fill: var(--gold-lt);
}

.side-menu__a11y-btn:hover .side-menu__a11y-label {
  color: var(--gold-lt);
}

.side-menu__a11y-btn:active .side-menu__a11y-icon {
  transform: scale(.95);
}

.side-menu__a11y-btn:active .side-menu__a11y-figure {
  fill: var(--gold-lt);
}

.side-menu__a11y-btn:active .side-menu__a11y-label {
  color: var(--gold-lt);
}

body.light-mode .side-menu__a11y-figure {
  fill: #141210;
}

body.light-mode .side-menu__a11y-label {
  color: #141210;
}

body.light-mode .side-menu__a11y-btn:hover .side-menu__a11y-figure {
  fill: var(--gold-lt);
}

body.light-mode .side-menu__a11y-btn:hover .side-menu__a11y-label {
  color: var(--gold-lt);
}

.side-menu__close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--stone);
  font-size: 1.8rem;
  line-height: 1;
  transition: color .2s;
  background: none;
  border: none;
  cursor: pointer;
}

.side-menu__close:hover {
  color: var(--white);
}

.side-menu__nav {
  flex: 1;
}

.side-menu__nav-list {
  list-style: none;
}

.side-menu__nav-item {
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  overflow: hidden;
}

.side-menu__nav-link {
  display: block;
  font-family: var(--serif);
  font-size: 2.4rem;
  line-height: 1.2;
  font-weight: 300;
  color: var(--white);
  padding: 14px 0;
  letter-spacing: .02em;
  transition: color .25s, transform .25s var(--ease);
}

.side-menu__nav-link:hover {
  color: var(--gold);
  transform: translateX(8px);
}

.side-menu__nav-link span.nav-num {
  font-family: var(--sans);
  font-size: .6rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--stone);
  margin-right: 12px;
  vertical-align: middle;
}

.side-menu__social {
  display: flex;
  gap: 18px;
  margin-top: 36px;
  margin-bottom: 28px;
}

.side-menu__social a {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .78rem;
  color: var(--stone);
  transition: border-color .2s, color .2s;
}

.side-menu__social a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.side-menu__social svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.side-menu__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}

.side-menu__legal a {
  font-size: .65rem;
  color: var(--stone);
  letter-spacing: .04em;
  transition: color .2s;
}

.side-menu__legal a:hover {
  color: var(--stone-lt);
}

@media (max-width: 640px) {
  .side-menu__legal {
    display: block;
  }

  .side-menu__legal a {
    display: inline;
    font-size: .65rem;
  }

  .side-menu__legal a::after {
    content: ' \2027 ';
    color: var(--stone);
  }

  .side-menu__legal a:last-child::after {
    content: '';
  }
}

/* ── INFO BAR ────────────────────────────────────────────────── */
.info-bar {
  background: #0f0d0b;
  border-bottom: 1px solid rgba(201, 168, 76, .12);
  padding: 0 8vw;
}

.info-bar__inner {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  align-items: stretch;
}

.info-bar__inner::-webkit-scrollbar {
  display: none;
}

.info-bar__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 28px;
  border-right: 1px solid rgba(255, 255, 255, .06);
  white-space: nowrap;
  flex-shrink: 0;
}

.info-bar__item:first-child {
  padding-left: 0;
}

.info-bar__icon {
  color: var(--gold);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.info-bar__icon svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.info-bar__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.info-bar__label {
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--stone);
}

.info-bar__val {
  font-size: .88rem;
  color: var(--white);
  font-weight: 500;
}

/* STATUS LAMP */
.status-lamp {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 20px 28px;
  border-right: 1px solid rgba(255, 255, 255, .06);
  flex-shrink: 0;
}

.lamp-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: background .4s, box-shadow .4s;
}

.lamp-dot--open {
  background: #4caf50;
  box-shadow: 0 0 8px 2px rgba(76, 175, 80, .5);
}

.lamp-dot--closed {
  background: #6B6B6B;
  box-shadow: none;
}

.lamp-label {
  font-size: .75rem;
  color: var(--stone);
  letter-spacing: .05em;
}

.lamp-label strong {
  color: var(--white);
  font-weight: 500;
}

/* ── HORARIOS & TARIFAS ──────────────────────────────────────── */
.section--white {
  background: #FDFAF4;
  color: var(--carbon);
  --stone: #5C5048;
  --gold-dk: #7A5E14;
}

.section--cream,
.section-reviews {
  --stone: #5C5048;
  --gold-dk: #7A5E14;
}

.ht-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.ht-block__title {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--carbon);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(140, 128, 112, .2);
}

.ht-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(140, 128, 112, .1);
  gap: 12px;
}

.ht-row:last-child {
  border-bottom: none;
}

.ht-row__label {
  font-size: .85rem;
  color: var(--stone);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ht-row__val {
  font-size: .88rem;
  color: var(--carbon);
  font-weight: 500;
  text-align: right;
  white-space: nowrap;
  flex-shrink: 0;
}

.ht-row__val--highlight {
  color: var(--gold-dk);
  font-family: var(--serif);
  font-size: 1rem;
}

.ht-row__val--free {
  color: #2E7D32;
  font-weight: 600;
}

.ht-today-badge {
  display: inline-flex;
  align-items: center;
  font-size: .6rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: rgba(201, 168, 76, .12);
  color: var(--gold-dk);
  border: 1px solid rgba(201, 168, 76, .25);
  padding: 2px 7px;
  border-radius: 20px;
  vertical-align: middle;
  white-space: nowrap;
}

/* Info icon tooltip */
.info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--stone-lt);
  color: var(--carbon);
  font-size: .58rem;
  font-weight: 700;
  line-height: 1;
  cursor: default;
  position: relative;
  flex-shrink: 0;
  font-family: var(--sans);
}

.info-icon:hover .info-tooltip,
.info-icon.focused .info-tooltip {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.info-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--carbon);
  color: rgba(255, 255, 255, .85);
  font-size: .72rem;
  line-height: 1.55;
  padding: 10px 14px;
  border-radius: 4px;
  border: 1px solid rgba(201, 168, 76, .2);
  min-width: 220px;
  max-width: 280px;
  white-space: normal;
  text-align: left;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s var(--ease);
  z-index: 100;
  font-family: var(--sans);
  font-weight: 400;
}

.info-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--carbon);
}

/* ── FOOTER ──────────────────────────────────────────────────── */
.site-footer {
  background: #0c0a08;
  border-top: 1px solid rgba(201, 168, 76, .1);
  padding: 120px 8vw 40px;
}

.footer-cta {
  background: linear-gradient(135deg, #1a1510, #221c12);
  border: 1px solid rgba(201, 168, 76, .2);
  border-radius: 4px;
  padding: 52px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.footer-cta__eyebrow {
  font-size: .62rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.footer-cta__title {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 8px;
}

.footer-cta__title em {
  font-style: italic;
  color: var(--gold-lt);
}

.footer-cta__sub {
  font-size: .82rem;
  color: var(--stone);
}

.newsletter-form-wrap {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  min-width: 480px;
}

.newsletter-form {
  display: flex;
}

.newsletter-msg {
  font-size: .8rem;
  color: var(--gold);
  margin-top: 8px;
  min-height: 1em;
  padding-left: 2px;
}

.newsletter-input {
  flex: 1;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(201, 168, 76, .25);
  border-right: none;
  border-radius: 2px 0 0 2px;
  padding: 13px 18px;
  font-family: var(--sans);
  font-size: .85rem;
  color: var(--white);
  outline: none;
  transition: border-color .25s;
}

.newsletter-input::placeholder {
  color: var(--stone);
}

.newsletter-input:focus {
  border-color: var(--gold);
}

.newsletter-submit {
  background: var(--gold);
  color: var(--carbon);
  font-family: var(--sans);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 13px 22px;
  border-radius: 0 2px 2px 0;
  transition: background .25s;
  white-space: nowrap;
  cursor: pointer;
}

.newsletter-submit:hover {
  background: var(--gold-lt);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr .9fr .9fr .9fr .9fr;
  gap: 32px;
  padding: 40px 0;
  margin-bottom: 52px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.footer-brand__logo {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--white);
  letter-spacing: .04em;
  margin-bottom: 6px;
  line-height: 1.3;
}

.footer-brand__sub {
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.footer-brand__desc {
  font-size: .8rem;
  line-height: 1.7;
  color: var(--stone);
  max-width: 260px;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social__link {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--stone);
  transition: border-color .2s, color .2s;
}

.footer-social__link:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.footer-social__link svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.footer-col__title {
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  font-weight: 500;
}

.footer-col__list {
  list-style: none;
}

.footer-col__list li {
  margin-bottom: 10px;
}

.footer-col__list a {
  font-size: .82rem;
  color: var(--stone);
  transition: color .2s;
}

.footer-col__list a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom__copy {
  font-size: .75rem;
  color: rgba(255, 255, 255, .45);
  letter-spacing: .04em;
}

.footer-bottom__links {
  display: flex;
  gap: 20px;
}

.footer-bottom__links a {
  font-size: .72rem;
  color: rgba(255, 255, 255, .45);
  letter-spacing: .04em;
  transition: color .2s;
}

.footer-bottom__links a:hover {
  color: var(--stone);
}

/* ── SCROLL REVEAL ───────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: .1s;
}

.reveal-delay-2 {
  transition-delay: .2s;
}

.reveal-delay-3 {
  transition-delay: .32s;
}

/* ── CTA BAND ────────────────────────────────────────────────── */
.cta-band {
  background: linear-gradient(135deg, #1a1510, #221c12);
  border-top: 1px solid rgba(201, 168, 76, .15);
  border-bottom: 1px solid rgba(201, 168, 76, .15);
  padding: 72px 8vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.cta-band__title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 300;
  color: var(--white);
}

.cta-band__title em {
  font-style: italic;
  color: var(--gold-lt);
}

.cta-band__sub {
  margin-top: 10px;
  font-size: .85rem;
  color: var(--stone);
  max-width: 460px;
  line-height: 1.65;
}

.cta-band__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: var(--carbon);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 2px;
  transition: background .25s, transform .25s;
  flex-shrink: 0;
}

.cta-band__btn:hover {
  background: var(--gold-lt);
  transform: translateY(-2px);
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media(max-width:900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .footer-brand { grid-column: 1 / -1; }

  .footer-cta {
    padding: 36px 28px;
  }

  .newsletter-form-wrap {
    min-width: unset;
    width: 100%;
  }

  .newsletter-form {
    min-width: unset;
    width: 100%;
  }

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

@media(max-width:640px) {
  .navbar {
    padding: 16px 20px;
  }

  .navbar--solid,
  .navbar.scrolled,
  .navbar--always-solid {
    padding: 12px 20px;
  }

  .navbar__logo-text {
    display: none;
  }

  .side-menu {
    padding: 80px 28px 40px;
  }

  .side-menu__nav-link {
    font-size: 1.8rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    margin-bottom: 18px;
    padding: 0 0 24px;
  }
  .footer-brand { grid-column: 1 / -1; }
  .site-footer { padding: 100px 30px 40px; }

  .footer-cta {
    flex-direction: column;
  }

  .newsletter-form-wrap {
    min-width: unset;
    width: 100%;
  }

  .newsletter-form {
    flex-direction: column;
    min-width: unset;
    width: 100%;
  }

  .newsletter-input {
    border-right: 1px solid rgba(201, 168, 76, .25);
    border-bottom: none;
    border-radius: 2px 2px 0 0;
  }

  .newsletter-submit {
    border-radius: 0 0 2px 2px;
  }

  .cta-band {
    flex-direction: column;
    text-align: center;
  }

  .info-bar {
    padding: 0 5vw;
  }

  .info-bar__item,
  .status-lamp {
    padding: 16px;
  }

  .ht-row__label {
    font-size: .78rem;
    max-width: 55%;
  }

  .ht-row__val {
    font-size: .82rem;
  }
}

/* ── ACCESSIBILITY WIDGET ────────────────────────────────────── */

/* Botón fijo esquina inferior izquierda */
.a11y-toggle {
  position: fixed;
  left: 0;
  bottom: 56px;
  width: 46px;
  height: 46px;
  background: #7B1C1C;
  color: #fff;
  border: none;
  border-radius: 0 6px 6px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  box-shadow: 2px 2px 16px rgba(0, 0, 0, .35);
  transition: background .2s var(--ease), opacity .25s var(--ease);
}

.a11y-toggle:hover {
  background: #9B2C2C;
}

/* Ocultar cuando el hamburger está abierto */
.nav-open .a11y-toggle {
  opacity: 0;
  pointer-events: none;
}

/* En mobile se usa el botón del menú; en desktop el botón fijo */
@media (max-width: 640px) {
  .a11y-toggle {
    display: none !important;
  }
}

.side-menu__a11y-btn {
  display: none !important;
}

/* Panel desktop — se despliega hacia arriba desde el botón */
.a11y-panel {
  position: fixed;
  left: 0;
  bottom: 106px;
  transform: translateY(10px);
  background: #1e1c19;
  color: var(--white);
  border-radius: 0 6px 6px 6px;
  box-shadow: 4px 4px 30px rgba(0, 0, 0, .4);
  z-index: 8999;
  min-width: 240px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: transform .28s var(--ease), opacity .22s var(--ease);
}

.a11y-panel.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.a11y-panel__header {
  padding: 14px 18px 12px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: rgba(253, 250, 244, .45);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  font-family: var(--sans);
}

.a11y-panel__close {
  display: none;
}

.a11y-panel__list {
  list-style: none;
  padding: 6px 0;
}

.a11y-panel__divider {
  height: 1px;
  background: rgba(255, 255, 255, .08);
  margin: 6px 0;
}

.a11y-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 18px;
  font-size: .875rem;
  color: var(--white);
  background: none;
  border: none;
  text-align: left;
  transition: background .15s, color .15s;
  font-family: var(--sans);
}

.a11y-option:hover {
  background: rgba(201, 168, 76, .12);
  color: var(--gold-lt);
}

.a11y-option.is-active {
  color: var(--gold);
  font-weight: 500;
}

/* El toggle de modo claro/oscuro: en modo oscuro no usa gold — la etiqueta
   ya transmite el estado. En modo claro sigue el estilo común is-active. */
.a11y-option#a11y-light-mode.is-active {
  color: var(--white);
  font-weight: 400;
}
.a11y-option#a11y-light-mode.is-active svg { opacity: .55; }
body.light-mode .a11y-option#a11y-light-mode.is-active {
  color: #141210;
  font-weight: 400;
  background: none;
}
body.light-mode .a11y-option#a11y-light-mode.is-active svg { opacity: .55; }

.a11y-option svg {
  flex-shrink: 0;
  opacity: .55;
}

.a11y-option:hover svg,
.a11y-option.is-active svg {
  opacity: 1;
}

/* Estados activos del body — pseudo-elemento para no romper position:fixed */
body.a11y-grayscale::before {
  content: '';
  position: fixed;
  inset: 0;
  backdrop-filter: grayscale(1);
  -webkit-backdrop-filter: grayscale(1);
  pointer-events: none;
  z-index: 8996;
}

body.a11y-underline-links a {
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

@keyframes a11y-pulse {

  0%,
  100% {
    box-shadow: 2px 2px 16px rgba(0, 0, 0, .35), 0 0 0 0 rgba(123, 28, 28, .6);
  }

  50% {
    box-shadow: 2px 2px 16px rgba(0, 0, 0, .35), 0 0 0 8px rgba(123, 28, 28, 0);
  }
}

body.a11y-reading .a11y-toggle {
  animation: a11y-pulse 1.4s ease infinite;
}

body.a11y-reading ::selection {
  background: #FFD700 !important;
  color: #000 !important;
}

body.a11y-readable-font,
body.a11y-readable-font * {
  font-family: Arial, Verdana, 'Helvetica Neue', sans-serif !important;
  letter-spacing: 0.02em;
  word-spacing: 0.05em;
  line-height: 1.6;
}

#a11y-invert-layer {
  position: fixed;
  inset: 0;
  backdrop-filter: invert(1);
  -webkit-backdrop-filter: invert(1);
  pointer-events: none;
  z-index: 8994;
}

body.a11y-high-contrast {
  --carbon: #000000;
  --white: #ffffff;
  --cream: #ffffff;
  --cream-d: #e8e8e8;
  --stone: #ffffff;
  --stone-lt: #cccccc;
  --gold: #ffff00;
  --gold-lt: #ffff00;
  --gold-dk: #e6e600;
  background: #000 !important;
  color: #fff !important;
}

body.a11y-high-contrast a,
body.a11y-high-contrast button:not(.a11y-toggle):not(#a11y-panel-close):not(.a11y-option) {
  color: #ffff00 !important;
}

body.a11y-high-contrast img {
  filter: contrast(1.2);
}

/* Overlay oscuro — solo visible en mobile */
.a11y-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  z-index: 8997;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s;
}

/* Mobile: panel como hoja inferior (estilo audioguía) */
@media (max-width: 767px) {
  .a11y-overlay {
    display: block;
    background: rgba(0, 0, 0, .45);
  }

  .a11y-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .a11y-panel {
    inset: auto;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    width: auto;
    min-width: 0;
    height: auto;
    max-height: 75vh;
    overflow-y: auto;
    border-radius: 14px 14px 0 0;
    background: #1e1c19;
    display: block;
    padding-top: 0;
    transform: translateY(110%);
    transform-origin: center bottom;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, .45);
    transition: transform .42s cubic-bezier(0.22, 1, 0.36, 1), opacity .32s ease;
  }

  .a11y-panel.is-open {
    transform: translateY(0);
    opacity: 1;
  }

  .a11y-panel__header {
    color: rgba(253, 250, 244, .4);
    border-bottom-color: rgba(255, 255, 255, .08);
    width: 100%;
    max-width: none;
    text-align: left;
    padding: 13px 16px 11px;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
  }

  .a11y-panel__close {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 8px;
    right: 12px;
    color: rgba(201, 168, 76, .55);
    background: none;
    border: none;
    font-size: 1.4rem;
    line-height: 1;
    padding: 4px 8px;
    transition: color .15s;
    font-family: var(--sans);
    cursor: pointer;
  }

  .a11y-panel__close:hover {
    color: var(--gold);
  }

  .a11y-panel__list {
    width: 100%;
    max-width: none;
    padding: 5px 0;
  }

  .a11y-option {
    color: var(--white);
    padding: 10px 16px;
    font-size: .92rem;
    gap: 10px;
    border-radius: 0;
  }

  .a11y-option:hover {
    background: rgba(201, 168, 76, .12);
    color: var(--gold-lt);
  }

  .a11y-option.is-active {
    color: var(--gold);
    font-weight: 500;
  }

  .a11y-panel__divider {
    background: rgba(255, 255, 255, .08);
    margin: 4px 0;
  }

}

/* ── LIGHT MODE — side menu & a11y panel ─────────────────────── */
body.light-mode .side-menu {
  background: #F9F8F6;
  border-left-color: rgba(20, 18, 16, .12);
}

body.light-mode .side-menu__nav-link,
body.light-mode .side-menu__close {
  color: #141210;
}

body.light-mode .side-menu__nav-item {
  border-bottom-color: rgba(20, 18, 16, .1);
}

body.light-mode .side-menu__nav-link:hover {
  color: var(--gold);
}

body.light-mode .a11y-panel {
  background: #EDE6D6;
  color: #141210;
}

body.light-mode .a11y-panel__header {
  color: rgba(20, 18, 16, .4);
  border-bottom-color: rgba(0, 0, 0, .08);
}

body.light-mode .a11y-panel__divider {
  background: rgba(0, 0, 0, .08);
}

body.light-mode .a11y-option {
  color: #141210;
}

body.light-mode .a11y-option:hover {
  background: rgba(201, 168, 76, .14);
  color: #141210;
}

body.light-mode .a11y-option.is-active {
  color: #141210;
  font-weight: 600;
  background: rgba(201, 168, 76, .14);
}

body.light-mode .a11y-option.is-active svg {
  opacity: 1;
}

body.light-mode .a11y-panel__close {
  color: rgba(20, 18, 16, .45);
}

body.light-mode .a11y-panel__close:hover {
  color: #141210;
}

/* Light mode override (mobile only) — coincide con la audioguía */
@media (max-width: 767px) {
  body.light-mode .a11y-panel {
    background: #EDE6D6;
    color: #141210;
  }

  body.light-mode .a11y-panel__header {
    color: rgba(20, 18, 16, .4);
    border-bottom-color: rgba(0, 0, 0, .08);
  }

  body.light-mode .a11y-panel__close {
    color: rgba(20, 18, 16, .35);
  }

  body.light-mode .a11y-panel__close:hover {
    color: #141210;
  }

  body.light-mode .a11y-option {
    color: #141210;
  }

  body.light-mode .a11y-option:hover {
    background: rgba(201, 168, 76, .14);
    color: #7B5E1A;
  }

  body.light-mode .a11y-panel__divider {
    background: rgba(0, 0, 0, .08);
  }
}

/* ── FOOTER — LIGHT MODE ─────────────────────────────────── */
body.light-mode .site-footer {
  background: #F5F0E8;
  border-top-color: rgba(201, 168, 76, .25);
}

body.light-mode .footer-cta {
  background: #F5F0E8;
  border-color: rgba(201, 168, 76, .35);
}

body.light-mode .footer-cta__title {
  color: #141210;
}

body.light-mode .newsletter-input {
  background: rgba(255, 255, 255, .7);
  border-color: rgba(201, 168, 76, .4);
  color: #141210;
}

body.light-mode .newsletter-input::placeholder {
  color: #8C8070;
}

body.light-mode .footer-grid {
  border-bottom-color: rgba(20, 18, 16, .1);
}

body.light-mode .footer-brand__logo {
  color: #141210;
}

body.light-mode .footer-social__link {
  border-color: rgba(20, 18, 16, .2);
  color: #8C8070;
}

body.light-mode .footer-col__list a {
  color: #8C8070;
}

body.light-mode .footer-col__list a:hover {
  color: #141210;
}

body.light-mode .footer-bottom__copy {
  color: rgba(20, 18, 16, .5);
}

body.light-mode .footer-bottom__links a {
  color: rgba(20, 18, 16, .5);
}

body.light-mode .footer-bottom__links a:hover {
  color: #141210;
}

/* ── SKIP LINK ───────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--gold);
  color: var(--carbon);
  padding: 10px 20px;
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 0 0 4px 4px;
  z-index: 99999;
  transition: top .2s;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
  outline: 2px solid var(--carbon);
  outline-offset: 2px;
}

/* ── GHOST CTA BUTTON ────────────────────────────────────── */
.cta-band__btn--ghost {
  background: transparent;
  color: rgba(255, 255, 255, .85);
  border: 1px solid rgba(255, 255, 255, .3);
}

.cta-band__btn--ghost:hover {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
  transform: translateY(-2px);
}

/* ── TOUCH DEVICE — deshabilitar cursor personalizado ────── */
@media (pointer: coarse) {
  body {
    cursor: auto;
  }

  button {
    cursor: pointer;
  }

  .cursor {
    display: none !important;
  }
}

/* ── PREFERS-REDUCED-MOTION ──────────────────────────────── */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  /* Revelar contenido inmediatamente sin animación */
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  /* Paralaje de fondos desactivado */
  .slide__bg,
  .page-hero__bg {
    transition: none !important;
    transform: scale(1) !important;
  }

  /* Animaciones del hero desactivadas */
  .hero__scroll-line {
    animation: none;
    opacity: 0;
  }

  .hero__progress {
    transition: none;
  }

  /* Cursor sin transición */
  .cursor__ring {
    transition: none;
  }
}

/* ── SCROLL TO TOP ──────────────────────────────────────── */
.scroll-top-btn {
  position: fixed;
  bottom: 36px;
  right: 36px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--carbon);
  border: 1px solid rgba(201, 168, 76, 0.35);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 490;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 280ms var(--ease), transform 280ms var(--ease),
              background 200ms var(--ease), border-color 200ms var(--ease), color 200ms var(--ease);
  pointer-events: none;
}

.scroll-top-btn.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-top-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--carbon);
}

.scroll-top-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

@media (max-width: 768px) {
  .scroll-top-btn { display: none; }
}

body.light-mode .scroll-top-btn {
  background: var(--cream);
  border-color: rgba(20, 18, 16, 0.18);
  color: var(--carbon);
}

body.light-mode .scroll-top-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--carbon);
}

/* ── BREADCRUMB ─────────────────────────────────────────── */
.breadcrumb-bar {
  position: absolute;
  top: 104px;
  left: 0;
  right: 0;
  padding: 0 8vw;
  height: 40px;
  display: flex;
  align-items: center;
  z-index: 3;
}

.breadcrumb-bar::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 8vw;
  width: 48px;
  height: 1px;
  background: var(--gold);
  opacity: 0.55;
}

@media (max-width: 768px) {
  .breadcrumb-bar { top: 92px; }
}

.breadcrumb__list {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumb__link {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color 220ms var(--ease), text-shadow 220ms var(--ease);
}

.breadcrumb__link:hover,
.breadcrumb__link:focus-visible {
  color: var(--gold);
  text-shadow: 0 0 16px rgba(201, 168, 76, 0.55);
}

.breadcrumb__link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.breadcrumb__sep {
  color: var(--gold);
  opacity: 0.45;
  user-select: none;
  display: flex;
  align-items: center;
  margin-top: 4px;
}

.breadcrumb__current {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

.breadcrumb__back { display: none; }

@media (max-width: 640px) {
  .breadcrumb__list { display: none; }

  .breadcrumb__back {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    font-family: var(--sans);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 220ms var(--ease), text-shadow 220ms var(--ease);
  }

  .breadcrumb__back:hover,
  .breadcrumb__back:focus-visible {
    color: var(--gold);
    text-shadow: 0 0 16px rgba(201, 168, 76, 0.55);
  }

  .breadcrumb__back:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
    border-radius: 2px;
  }
}

/* ── HERO NAV ───────────────────────────────────────────── */
.hero-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.hero-nav__link {
  font-family: var(--sans);
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 9px 20px;
  border: 1px solid rgba(255, 255, 255, .25);
  color: rgba(255, 255, 255, .75);
  text-decoration: none;
  transition: all .25s ease;
  cursor: pointer;
}

.hero-nav__link:hover,
.hero-nav__link:focus-visible {
  background: var(--gold);
  color: var(--carbon);
  border-color: var(--gold);
  outline: none;
}

body.light-mode .hero-nav__link {
  border-color: rgba(255, 255, 255, .55);
  color: rgba(255, 255, 255, .92);
}

body.light-mode .hero-nav__link:hover,
body.light-mode .hero-nav__link:focus-visible {
  background: var(--gold);
  color: var(--carbon);
  border-color: var(--gold);
}

@media (max-width: 640px) {
  .page-hero .page-hero__meta { display: none; }

  .page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
      rgba(14,12,10,.70) 0%,
      rgba(14,12,10,.40) 40%,
      rgba(14,12,10,.12) 70%,
      transparent 100%);
    z-index: 1;
    pointer-events: none;
  }

  .page-hero__title {
    text-shadow: 0 2px 18px rgba(0,0,0,.55), 0 1px 4px rgba(0,0,0,.4);
  }

  .page-hero__eyebrow,
  .page-hero__desc {
    text-shadow: 0 1px 10px rgba(0,0,0,.55);
  }
}

/* ══════════════════════════════════════════════════════════════
   COOKIE CONSENT — Banner + Modal
   z-index: banner 8000, modal 8100 (por debajo del cursor 9999)
══════════════════════════════════════════════════════════════ */

/* ── Banner ─────────────────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 8000;
  padding: 1.25rem 1.5rem;
  background: rgba(20, 18, 16, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(201, 168, 76, 0.25);
  transform: translateY(100%);
  transition: transform 0.45s var(--ease);
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

.cookie-banner__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 0.5rem 2rem;
  align-items: center;
}

.cookie-banner__text {
  grid-column: 1;
  grid-row: 1 / 3;
}

.cookie-banner__title {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 0.3rem;
  letter-spacing: 0.01em;
}

.cookie-banner__desc {
  font-size: 0.82rem;
  color: var(--stone-lt);
  line-height: 1.55;
  max-width: 680px;
}

.cookie-banner__actions {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}

.cookie-banner__link {
  grid-column: 2;
  grid-row: 2;
  font-size: 0.75rem;
  color: var(--stone);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-align: right;
  transition: color 0.2s;
}

.cookie-banner__link:hover { color: var(--gold-lt); }

/* ── Buttons ────────────────────────────────────────────────── */
.cookie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.1rem;
  border-radius: 3px;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  cursor: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s;
  white-space: nowrap;
  border: 1px solid transparent;
}

.cookie-btn--primary {
  background: var(--gold);
  color: var(--carbon);
  border-color: var(--gold);
}

.cookie-btn--primary:hover { background: var(--gold-lt); border-color: var(--gold-lt); }

.cookie-btn--outline {
  background: transparent;
  color: var(--stone-lt);
  border-color: rgba(201, 168, 76, 0.3);
}

.cookie-btn--outline:hover {
  color: var(--gold-lt);
  border-color: var(--gold-lt);
}

.cookie-btn--ghost {
  background: transparent;
  color: var(--stone);
  border-color: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0.5rem 0.6rem;
}

.cookie-btn--ghost:hover { color: var(--stone-lt); }

/* ── Modal overlay ──────────────────────────────────────────── */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 8100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.cookie-modal.is-visible {
  pointer-events: auto;
  opacity: 1;
}

.cookie-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.cookie-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  margin: 0 auto;
  background: #1c1a17;
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(40px);
  transition: transform 0.35s var(--ease);
}

.cookie-modal.is-visible .cookie-modal__dialog {
  transform: translateY(0);
}

.cookie-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem 1rem;
  border-bottom: 1px solid rgba(201, 168, 76, 0.12);
  flex-shrink: 0;
}

.cookie-modal__title {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.01em;
}

.cookie-modal__close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--stone);
  border-radius: 50%;
  transition: color 0.2s, background 0.2s;
  cursor: none;
  flex-shrink: 0;
}

.cookie-modal__close:hover { color: var(--white); background: rgba(255,255,255,0.06); }

.cookie-modal__body {
  overflow-y: auto;
  padding: 0.5rem 1.5rem;
  flex: 1;
}

/* Scrollbar sutil */
.cookie-modal__body::-webkit-scrollbar { width: 4px; }
.cookie-modal__body::-webkit-scrollbar-track { background: transparent; }
.cookie-modal__body::-webkit-scrollbar-thumb { background: rgba(201,168,76,0.2); border-radius: 2px; }

.cookie-modal__footer {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1.5rem 1.25rem;
  border-top: 1px solid rgba(201, 168, 76, 0.12);
  flex-shrink: 0;
  justify-content: flex-end;
}

/* ── Category rows ──────────────────────────────────────────── */
.cookie-cat {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.cookie-cat:last-child { border-bottom: none; }

.cookie-cat__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.4rem;
}

.cookie-cat__name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: 0.02em;
}

.cookie-cat__badge {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--gold);
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 20px;
  padding: 0.15em 0.6em;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.cookie-cat__desc {
  font-size: 0.78rem;
  color: var(--stone);
  line-height: 1.55;
}

/* ── Toggle switch ──────────────────────────────────────────── */
.cookie-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  cursor: none;
}

.cookie-toggle input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-toggle__track {
  display: block;
  width: 40px;
  height: 22px;
  border-radius: 11px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.12);
  position: relative;
  transition: background 0.25s, border-color 0.25s;
}

.cookie-toggle__track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--stone);
  transition: transform 0.25s var(--ease), background 0.25s;
}

.cookie-toggle input:checked + .cookie-toggle__track {
  background: var(--gold);
  border-color: var(--gold);
}

.cookie-toggle input:checked + .cookie-toggle__track::after {
  transform: translateX(18px);
  background: var(--carbon);
}

.cookie-toggle--locked .cookie-toggle__track {
  background: rgba(201,168,76,0.35);
  border-color: rgba(201,168,76,0.4);
  cursor: not-allowed;
}

.cookie-toggle--locked .cookie-toggle__track::after {
  transform: translateX(18px);
  background: var(--gold-dk);
}

/* Focus ring on toggle */
.cookie-toggle input:focus-visible + .cookie-toggle__track {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ── Light mode overrides ───────────────────────────────────── */
body.light-mode .cookie-banner {
  background: rgba(245, 240, 232, 0.97);
  border-top-color: rgba(168, 133, 46, 0.3);
}

body.light-mode .cookie-banner__title { color: var(--gold-dk); }
body.light-mode .cookie-banner__desc { color: #5a5348; }
body.light-mode .cookie-banner__link { color: #8c8070; }
body.light-mode .cookie-banner__link:hover { color: var(--gold-dk); }

body.light-mode .cookie-btn--outline {
  color: #5a5348;
  border-color: rgba(168,133,46,0.35);
}
body.light-mode .cookie-btn--outline:hover {
  color: var(--gold-dk);
  border-color: var(--gold-dk);
}
body.light-mode .cookie-btn--ghost { color: #8c8070; }
body.light-mode .cookie-btn--ghost:hover { color: #5a5348; }

body.light-mode .cookie-modal__dialog {
  background: #fdf9f3;
  border-color: rgba(168,133,46,0.25);
}
body.light-mode .cookie-modal__backdrop { background: rgba(0,0,0,0.4); }
body.light-mode .cookie-modal__header,
body.light-mode .cookie-modal__footer { border-color: rgba(168,133,46,0.15); }
body.light-mode .cookie-modal__title { color: var(--gold-dk); }
body.light-mode .cookie-modal__close { color: #8c8070; }
body.light-mode .cookie-modal__close:hover { color: #141210; background: rgba(0,0,0,0.06); }

body.light-mode .cookie-cat { border-bottom-color: rgba(0,0,0,0.06); }
body.light-mode .cookie-cat__name { color: #2a2520; }
body.light-mode .cookie-cat__desc { color: #6b6259; }

body.light-mode .cookie-toggle__track {
  background: rgba(0,0,0,0.1);
  border-color: rgba(0,0,0,0.15);
}
body.light-mode .cookie-toggle__track::after { background: #8c8070; }
body.light-mode .cookie-toggle--locked .cookie-toggle__track { background: rgba(168,133,46,0.3); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 700px) {
  .cookie-banner__inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 0.75rem;
  }

  .cookie-banner__text { grid-column: 1; grid-row: 1; }

  .cookie-banner__actions {
    grid-column: 1;
    grid-row: 2;
    justify-content: stretch;
    flex-direction: column;
  }

  .cookie-btn { width: 100%; }

  .cookie-banner__link {
    grid-column: 1;
    grid-row: 3;
    text-align: center;
  }

  .cookie-modal__dialog { max-height: 85vh; }
  .cookie-modal__footer { flex-direction: column; }
  .cookie-modal__footer .cookie-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-banner,
  .cookie-modal,
  .cookie-modal__dialog { transition: none; }
}

/* ═══════════════════════════════════════════════════════════════
   WCAG AA CONTRAST OVERRIDES — light mode fixes
   Token policy:
   - On cream/white backgrounds, body text MUST use --carbon, --stone-d,
     or --gold-text (NOT --gold, --gold-lt, --stone, --gold-dk for normal text).
   - --gold-dk is acceptable ONLY for large text (≥18pt / ≥14pt bold).
═══════════════════════════════════════════════════════════════ */

/* ── EM accent inside titles on light backgrounds ─────────────── */
body.light-mode .page-hero__title em,
body.light-mode .section-title em,
body.light-mode .vis-title em,
body.light-mode .act-title em,
body.light-mode .form-info__title em,
body.light-mode .cta-band__title em,
body.light-mode .footer-cta__title em,
body.light-mode .intro-strip__title em,
body.light-mode .mod-card__title em,
body.light-mode .tour-card__title em,
body.light-mode .stage-card__title em,
body.light-mode .info-item__value em,
body.light-mode .monument-card__name em,
body.light-mode .info-col__subtitle em,
body.light-mode .vip-info__title em {
  color: var(--gold-text);
}

/* ── Section eyebrows / small accents on light bg ─────────────── */
body.light-mode .section-eyebrow,
body.light-mode .vis-eyebrow,
body.light-mode .act-eyebrow,
body.light-mode .stage-card__eyebrow,
body.light-mode .form-info__tag,
body.light-mode .resource-card__tag,
body.light-mode .cta-band__eyebrow,
body.light-mode .price-eyebrow,
body.light-mode .events-eyebrow,
body.light-mode .news-eyebrow,
body.light-mode .gallery-eyebrow,
body.light-mode .press-eyebrow,
body.light-mode .compare-section__label {
  color: var(--gold-text);
}

/* ── Stone-coloured body text on light bg ─────────────────────── */
body.light-mode .section-scroll-hint,
body.light-mode .review-author-origin,
body.light-mode .reviews-platform,
body.light-mode .reviews-counter,
body.light-mode .review-nav-btn,
body.light-mode .hub-intro__meta,
body.light-mode .info-bar__label,
body.light-mode .lamp-label,
body.light-mode .ht-row__label,
body.light-mode .hist-stat__label,
body.light-mode .page-hero__meta-label,
body.light-mode .stage-spec__label,
body.light-mode .stage-card__sub,
body.light-mode .resource-card__desc,
body.light-mode .form-note,
body.light-mode .info-item__sub,
body.light-mode .prensa-card__date,
body.light-mode .prensa-row__pub,
body.light-mode .audio-card__dur,
body.light-mode .audio-time,
body.light-mode .pdf-size {
  color: var(--stone-d);
}

/* ── Side menu / footer in light mode (stone-d for legibility) ── */
body.light-mode .side-menu__a11y-label,
body.light-mode .side-menu__social-label,
body.light-mode .side-menu__social a,
body.light-mode .side-menu__legal a,
body.light-mode .footer-brand__desc,
body.light-mode .footer-col__list a,
body.light-mode .footer-cta__sub,
body.light-mode .cta-band__sub {
  color: var(--stone-d);
}
body.light-mode .side-menu__legal a:hover,
body.light-mode .side-menu__social a:hover,
body.light-mode .footer-col__list a:hover {
  color: var(--gold-text);
}

/* ── Footer / navbar eyebrows and headings in light ───────────── */
body.light-mode .footer-col__title,
body.light-mode .footer-cta__eyebrow,
body.light-mode .footer-brand__name,
body.light-mode .newsletter-msg {
  color: var(--gold-text);
}

/* ── Card accents that fail on white/cream backgrounds ────────── */
body.light-mode .space-card__cta,
body.light-mode .space-card--remote .space-card__badge,
body.light-mode .combined-card__tag,
body.light-mode .combined-card__saving,
body.light-mode .tour-card__num,
body.light-mode .tour-card--vip .tour-card__num,
body.light-mode .monument-card__num,
body.light-mode .stage-card__num,
body.light-mode .stage-card__cta,
body.light-mode .stage-card__age,
body.light-mode .price-card__include,
body.light-mode .price-card__accent,
body.light-mode .compare-check,
body.light-mode .audio-card__num,
body.light-mode .audio-info-icon,
body.light-mode .pdf-info-icon,
body.light-mode .pdf-dl,
body.light-mode .pdf-icon,
body.light-mode .gallery-info-btn,
body.light-mode .gallery-slide__cap-cta,
body.light-mode .mod-card__cta,
body.light-mode .canas-location-badge,
body.light-mode .sdlc-tag,
body.light-mode .intro-strip__title em,
body.light-mode .tl-h__era-period,
body.light-mode .ht-tab.is-active {
  color: var(--gold-text);
}

/* ── Buttons: text on gold-dk must be carbon, not white ───────── */
body.light-mode .hist-more-btn:hover,
body.light-mode .form-submit:hover,
body.light-mode .btn--gold:hover {
  color: var(--carbon);
}

/* ── Form labels / placeholders in light mode (visibility) ────── */
body.light-mode .form-label,
body.light-mode .esc-form__title {
  color: rgba(20, 18, 16, 0.78);
}
body.light-mode .form-input::placeholder,
body.light-mode .form-textarea::placeholder,
body.light-mode .form-select option:disabled {
  color: rgba(20, 18, 16, 0.55);
}

/* ── Legal-section anchor (gold) needs darker tone in light ───── */
body.light-mode .legal-section a,
body.light-mode .legal-section a:visited {
  color: var(--gold-text);
  text-decoration: underline;
}
body.light-mode .a11y-feature-card__title,
body.light-mode .cookie-badge--third {
  color: var(--gold-text);
}

/* ── Breadcrumb hover in light ────────────────────────────────── */
body.light-mode .breadcrumb__link:hover,
body.light-mode .breadcrumb__sep,
body.light-mode .breadcrumb__back:hover {
  color: var(--gold-text);
}

/* ── a11y panel in light: active/hover states need contrast ───── */
body.light-mode .a11y-option:hover,
body.light-mode .a11y-option.is-active,
body.light-mode .a11y-panel__close:hover {
  color: var(--gold-text);
}

/* ── Cookie banner light: switch gold accents to gold-text ────── */
body.light-mode .cookie-banner__title,
body.light-mode .cookie-modal__title,
body.light-mode .cookie-btn--outline,
body.light-mode .cookie-btn--outline:hover,
body.light-mode .cookie-btn--ghost,
body.light-mode .cookie-btn--ghost:hover,
body.light-mode .cookie-banner__link,
body.light-mode .cookie-banner__link:hover {
  color: var(--gold-text);
}

/* ── Dark-mode fixes: stone text on carbon (3.5:1 → fail) ─────── */
body:not(.light-mode) .inst-card__text,
body:not(.light-mode) .sdlc-body,
body:not(.light-mode) .sdlc-split__text,
body:not(.light-mode) .canas-body,
body:not(.light-mode) .text-grid__body,
body:not(.light-mode) .text-grid__meta,
body:not(.light-mode) .highlight-list li,
body:not(.light-mode) .hist-stat__label,
body:not(.light-mode) .page-hero__meta-label,
body:not(.light-mode) .audio-card__dur,
body:not(.light-mode) .audio-time,
body:not(.light-mode) .prensa-row__pub,
body:not(.light-mode) .prensa-card__date {
  color: rgba(253, 250, 244, 0.78);
}

/* Excepción: .section--cream mantiene fondo crema también en modo oscuro,
   por lo que los textos secundarios deben seguir siendo oscuros (legibilidad). */
body:not(.light-mode) .section--cream .text-grid__body,
body:not(.light-mode) .section--cream .text-grid__meta,
body:not(.light-mode) .section--cream .text-grid__lead,
body:not(.light-mode) .section--cream .text-grid__quote p,
body:not(.light-mode) .section--cream .text-grid__quote cite,
body:not(.light-mode) .section--cream .highlight-list li,
body:not(.light-mode) .section--cream .hist-stat__label {
  color: var(--stone) !important;
}
body:not(.light-mode) .section--cream .text-grid__lead,
body:not(.light-mode) .section--cream .text-grid__quote p {
  color: var(--carbon) !important;
}

/* ── Dark-mode form label / placeholder visibility ────────────── */
body:not(.light-mode) .form-label {
  color: rgba(253, 250, 244, 0.72);
}
body:not(.light-mode) .form-input::placeholder,
body:not(.light-mode) .form-textarea::placeholder {
  color: rgba(253, 250, 244, 0.55);
}

/* ── inst-nav__label was carbon-on-carbon (invisible) ─────────── */
body:not(.light-mode) .inst-nav__label {
  color: var(--white);
}

/* ── HERO GOLD TEXT — unificado en todas las páginas ──────────── */
/* Dark mode (default): mismo gold para eyebrow + título-em en todos los hero. */
/* Light mode: gold más claro y luminoso para mejor lectura sobre el overlay del hero. */
.page-hero__eyebrow,
.page-hero__title em {
  color: var(--gold-lt) !important;
}
.page-hero__eyebrow::before {
  background: var(--gold-lt) !important;
}
body.light-mode .page-hero__eyebrow,
body.light-mode .page-hero__title em {
  color: #F0D78E !important;
}
body.light-mode .page-hero__eyebrow::before {
  background: #F0D78E !important;
}

/* Hero — título, descripción y meta-labels deben quedar legibles sobre el overlay oscuro,
   también en modo claro. Una sola regla unificada en todos los hero. */
body.light-mode .page-hero__title { color: var(--white) !important; }
body.light-mode .page-hero__desc { color: rgba(255, 255, 255, .88) !important; }
body.light-mode .page-hero__meta-label { color: rgba(255, 255, 255, .72) !important; }
body.light-mode .page-hero__meta-val { color: #F0D78E !important; }

/* Hero — chips de navegación interna (Horarios, Tesoros, …): legibilidad uniforme. */
body.light-mode .hero-nav__link {
  color: rgba(255, 255, 255, .95) !important;
  border-color: rgba(255, 255, 255, .65) !important;
}
body.light-mode .hero-nav__link:hover,
body.light-mode .hero-nav__link:focus-visible {
  background: var(--gold) !important;
  color: var(--carbon) !important;
  border-color: var(--gold) !important;
}

/* ── GALLERY SLIDE — leyendas legibles, unificadas en todas las páginas ─────── */
/* Gradiente común (dark + light): suficientemente oscuro para que el texto
   se lea sobre cualquier zona de la imagen. */
.gallery-slide__cap {
  background: linear-gradient(to top,
    rgba(14, 12, 10, .92) 0%,
    rgba(14, 12, 10, .55) 55%,
    rgba(14, 12, 10, 0) 100%) !important;
}
body.light-mode .gallery-slide__cap {
  background: linear-gradient(to top,
    rgba(14, 12, 10, .88) 0%,
    rgba(14, 12, 10, .45) 55%,
    rgba(14, 12, 10, 0) 100%) !important;
}

/* Dark mode — gold-lt unificado para eyebrow, CTA y contador */
.gallery-slide__cap-eyebrow,
.gallery-slide__cap-cta,
.gallery-slide__cap-num {
  color: var(--gold-lt) !important;
}
.gallery-slide__cap-eyebrow::before {
  background: var(--gold-lt) !important;
}
.gallery-slide__cap-title { color: var(--white) !important; }
.gallery-slide__cap-cta:hover { color: #F0D78E !important; }

/* Light mode — cream-gold (#F0D78E) unificado con el hero */
body.light-mode .gallery-slide__cap-eyebrow,
body.light-mode .gallery-slide__cap-cta,
body.light-mode .gallery-slide__cap-num {
  color: #F0D78E !important;
}
body.light-mode .gallery-slide__cap-eyebrow::before {
  background: #F0D78E !important;
}
body.light-mode .gallery-slide__cap-title { color: var(--white) !important; }
body.light-mode .gallery-slide__cap-cta:hover { color: var(--gold-lt) !important; }

/* Gallery info button (i + Saber más) — unificado en todas las páginas */
.gallery-info-btn {
  background: rgba(14, 12, 10, .72) !important;
  border-color: rgba(223, 192, 112, .55) !important;
  color: var(--white) !important;
}
.gallery-info-btn:hover {
  background: rgba(223, 192, 112, .22) !important;
  border-color: var(--gold-lt) !important;
}
.gallery-info-btn__icon {
  color: var(--gold-lt) !important;
  border-color: var(--gold-lt) !important;
}
body.light-mode .gallery-info-btn {
  background: rgba(14, 12, 10, .72) !important;
  border-color: rgba(240, 215, 142, .65) !important;
  color: var(--white) !important;
}
body.light-mode .gallery-info-btn:hover {
  background: rgba(240, 215, 142, .22) !important;
  border-color: #F0D78E !important;
}
body.light-mode .gallery-info-btn__icon {
  color: #F0D78E !important;
  border-color: #F0D78E !important;
}

/* ── AUDIO / PDF cards: mostrar el tooltip al hover sobre la card,
   no solo sobre el botón i. Aplica a las 5 páginas de monumentos. */
@media (hover: hover) {
  .audio-pdf-col:has(.audio-card:hover) .audio-info-tooltip,
  .audio-pdf-col:has(.pdf-card:hover) .pdf-info-tooltip {
    opacity: 1 !important;
    transform: translateX(-50%) translateY(0) !important;
  }
}

/* ── GALLERY WRAP — ancho máximo unificado en las 5 páginas de monumentos ─ */
.gallery-wrap,
#galeria > .eyebrow,
#galeria > .section-title {
  max-width: 1400px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* ── ESPACIOS · img-scroll captions — unificados en todas las páginas ───── */
/* Mismo gradiente oscuro y mismo gold para los textos uppercase sobre cada imagen */
.img-scroll-item__caption {
  background: linear-gradient(to top,
    rgba(14, 12, 10, .92) 0%,
    rgba(14, 12, 10, .55) 55%,
    rgba(14, 12, 10, 0) 100%) !important;
  color: var(--gold-lt) !important;
}
body.light-mode .img-scroll-item__caption {
  background: linear-gradient(to top,
    rgba(14, 12, 10, .88) 0%,
    rgba(14, 12, 10, .45) 55%,
    rgba(14, 12, 10, 0) 100%) !important;
  color: #F0D78E !important;
}

/* ── SPACES SCROLL NAV ────────────────────────────────────── */
.spaces-scroll-nav {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}
.spaces-scroll-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(201, 168, 76, .35);
  background: rgba(201, 168, 76, .08);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease, opacity .2s ease;
  flex-shrink: 0;
}
.spaces-scroll-btn:hover {
  background: rgba(201, 168, 76, .22);
  border-color: var(--gold);
}
.spaces-scroll-btn:disabled {
  opacity: .28;
  cursor: default;
}
body.light-mode .spaces-scroll-btn {
  border-color: rgba(168, 133, 46, .4);
  background: rgba(168, 133, 46, .08);
  color: var(--gold-dk);
}
body.light-mode .spaces-scroll-btn:hover {
  background: rgba(168, 133, 46, .18);
  border-color: var(--gold-dk);
}
@media (max-width: 768px) {
  .spaces-scroll-nav { display: none }
}

/* ═══════════════════════════════════════════════════════════════
   WCAG AA SAFETY NET — overrides para garantizar contraste mínimo
   en componentes compartidos (navbar, footer, a11y panel, lang panel,
   cookie banner). Aplica los tokens accesibles por encima de cualquier
   regla anterior. NO TOCAR sin re-auditar contraste.
═══════════════════════════════════════════════════════════════ */

/* ── LIGHT MODE — gold-text en componentes con gold pálido ────── */
/* Sin scroll: navbar transparente sobre hero oscuro → texto BLANCO puro.
   Scrolled / always-solid: navbar con fondo crema y texto carbon (estilo unificado catedral) */
body.light-mode .navbar:not(.scrolled):not(.navbar--always-solid) .navbar__logo-name { color: #fff; }
body.light-mode .navbar.scrolled,
body.light-mode .navbar--always-solid { background: rgba(245, 240, 232, .97); }
body.light-mode .navbar.scrolled .navbar__logo-name,
body.light-mode .navbar--always-solid .navbar__logo-name,
body.light-mode .navbar.scrolled .navbar__logo-sub,
body.light-mode .navbar--always-solid .navbar__logo-sub,
body.light-mode .navbar.scrolled .lang-selector__option,
body.light-mode .navbar--always-solid .lang-selector__option { color: #141210; }
/* Hamburger lines en negro cuando navbar tiene fondo claro */
body.light-mode .navbar.scrolled .hamburger-line,
body.light-mode .navbar--always-solid .hamburger-line { background: var(--carbon); }

/* Breadcrumb en páginas SIN hero (legal pages: dentro de .legal-hero)
   Las páginas CON hero (.page-hero) mantienen el blanco por defecto sobre imagen. */
body.light-mode .legal-hero .breadcrumb__link { color: rgba(20,18,16,.55); }
body.light-mode .legal-hero .breadcrumb__link:hover,
body.light-mode .legal-hero .breadcrumb__link:focus-visible { color: var(--gold-text); text-shadow: none; }
body.light-mode .legal-hero .breadcrumb__current { color: var(--carbon); }
body.light-mode .legal-hero .breadcrumb__sep { color: var(--gold-text); }
body.light-mode .side-menu__nav-link { color: var(--carbon); }
body.light-mode .side-menu__nav-link .nav-num,
body.light-mode .nav-num { color: var(--gold-text); }
/* Footer en light mode → fondo crema con textos oscuros (estilo unificado) */
body.light-mode .site-footer { background: #F9F8F6; }
body.light-mode .footer-cta { background: #F5F0E8; border-color: rgba(20,18,16,.1); }
body.light-mode .footer-cta__eyebrow,
body.light-mode .footer-cta__title,
body.light-mode .footer-cta__sub { color: #141210; }
body.light-mode .newsletter-input { background: #FDFAF4; border-color: rgba(20,18,16,.25); color: #141210; }
body.light-mode .newsletter-input::placeholder { color: rgba(20,18,16,.55); }
body.light-mode .footer-brand__logo { color: #141210; }
body.light-mode .footer-brand__desc { color: #5C5048; }
body.light-mode .footer-brand__sub { color: var(--gold-text); }
body.light-mode .footer-col__title { color: #141210; }
body.light-mode .footer-col__list a { color: #5C5048; }
body.light-mode .footer-col__list a:hover { color: var(--gold-text); }
body.light-mode .footer-bottom__copy,
body.light-mode .footer-bottom__links a { color: rgba(20,18,16,.65); }
body.light-mode .footer-bottom__links a:hover { color: var(--gold-text); }
body.light-mode .footer-social__link { color: #5C5048; border-color: rgba(20,18,16,.18); }
body.light-mode .footer-social__link:hover { color: var(--gold-text); border-color: var(--gold-text); }

/* a11y panel labels */
body.light-mode .a11y-panel__header { color: rgba(20,18,16,.7); }
@media (max-width: 767px) {
  body.light-mode .a11y-panel__header { color: rgba(20,18,16,.7); }
}

/* lang panel + selector */
body.light-mode .lang-panel__header { color: rgba(20,18,16,.72); }
body.light-mode .lang-name,
body.light-mode .lang-code { color: var(--gold-text); }
body.light-mode .lang-selector__option.active .lang-name,
body.light-mode .lang-selector__option.active .lang-code { color: var(--carbon); }
body.light-mode .lang-selector__btn,
body.light-mode #lang-current-flag,
body.light-mode #lang-current-code { color: var(--gold-text); }

/* cookie banner */
body.light-mode .cookie-cat__badge { color: var(--gold-text); background: rgba(122,96,37,.12); }
body.light-mode .cookie-banner__link { color: var(--gold-text); }
body.light-mode .cookie-banner__link:hover { color: var(--carbon); }
body.light-mode .cookie-btn--outline { color: var(--gold-text); border-color: var(--gold-text); }
body.light-mode .cookie-btn--outline:hover { background: var(--gold-text); color: #fff; }
body.light-mode .cookie-btn--ghost { color: var(--carbon); }
body.light-mode .cookie-btn--ghost:hover { color: var(--gold-text); }
body.light-mode .cookie-cat__desc { color: rgba(20,18,16,.75); }

/* ── DARK MODE — bumps de alpha en textos secundarios ─────────── */
body:not(.light-mode) .a11y-panel__header { color: rgba(253,250,244,.62); }
body:not(.light-mode) .lang-panel__header { color: rgba(253,250,244,.62); }
body:not(.light-mode) .footer-bottom__copy { color: rgba(255,255,255,.62); }
body:not(.light-mode) .cookie-cat__desc { color: rgba(253,250,244,.72); }
body:not(.light-mode) .cookie-banner__link { color: var(--gold); }
body:not(.light-mode) .cookie-banner__link:hover { color: var(--gold-lt); }
body:not(.light-mode) .cookie-btn--outline { color: var(--gold); border-color: var(--gold); }
body:not(.light-mode) .cookie-btn--outline:hover { background: var(--gold); color: var(--carbon); }
body:not(.light-mode) .cookie-btn--ghost { color: rgba(253,250,244,.72); }
body:not(.light-mode) .cookie-btn--ghost:hover { color: var(--gold); }
body:not(.light-mode) .footer-col__list a { color: rgba(253,250,244,.72); }
body:not(.light-mode) .footer-col__list a:hover { color: var(--gold); }
