:root {
  --navy: #12293A;
  --navy-deep: #0d1f2d;
  --navy-soft: #17354a;
  --gold: #d1ab48;
  --gold-light: #f0d57a;
  --white: #ffffff;
  --muted: rgba(255,255,255,.58);
  --sidebar: 350px;
  --ease: cubic-bezier(.2,.8,.2,1);
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; }
body {
  overflow: hidden;
  background: #09141d;
  color: var(--white);
  font-family: "Segoe UI", Inter, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; }

.app { width: 100%; height: 100%; position: relative; background: #09141d; }
.sidebar {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 40;
  width: var(--sidebar);
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 30% 0%, rgba(255,255,255,.045), transparent 30%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  box-shadow: 16px 0 42px rgba(0,0,0,.22);
}
.sidebar::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, transparent, rgba(209,171,72,.38), transparent);
}
.sidebar__top { padding: 30px 30px 24px; }
.brand { text-align: center; }
.brand img {
  display: block;
  width: 205px;
  max-width: 100%;
  margin: 0 auto 17px;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,.18));
}
.brand__divider {
  width: 62px;
  height: 1px;
  margin: 0 auto 18px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
}
.brand p {
  margin: 0;
  color: var(--gold-light);
  font-size: 25px;
  font-weight: 300;
  letter-spacing: .08em;
}
.brand span {
  display: block;
  margin-top: 3px;
  color: rgba(255,255,255,.54);
  font-size: 10px;
  letter-spacing: .25em;
}

.tour-nav { flex: 1; overflow-y: auto; padding: 8px 18px 24px; }
.tour-nav::-webkit-scrollbar { width: 0; }
.section-label {
  margin: 6px 12px 12px;
  color: rgba(255,255,255,.36);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .20em;
}
.section-label--spaced {
  margin-top: 24px;
}
.tour-card {
  position: relative;
  width: 100%;
  min-height: 78px;
  margin: 0 0 10px;
  padding: 10px 28px 10px 10px;
  display: grid;
  grid-template-columns: 55px 1fr;
  gap: 13px;
  align-items: center;
  text-align: left;
  color: white;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 2px;
  background: rgba(255,255,255,.025);
  cursor: pointer;
  transition: transform .28s var(--ease), background .28s, border-color .28s;
}
.tour-card:hover { transform: translateX(3px); background: rgba(255,255,255,.06); border-color: rgba(209,171,72,.25); }
.tour-card.is-active { background: linear-gradient(90deg, rgba(209,171,72,.12), rgba(255,255,255,.025)); border-color: rgba(209,171,72,.36); }
.tour-card.is-active::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 14px;
  bottom: 14px;
  width: 2px;
  background: var(--gold);
  box-shadow: 0 0 16px rgba(209,171,72,.45);
}
.tour-card__thumb { width: 55px; height: 55px; overflow: hidden; border-radius: 1px; background: #0b1822; }
.tour-card__thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .78; transform: scale(1.03); transition: opacity .25s, transform .35s var(--ease); }
.tour-card:hover .tour-card__thumb img, .tour-card.is-active .tour-card__thumb img { opacity: 1; transform: scale(1.08); }
.tour-card__body strong { display: block; font-size: 18px; line-height: 1.2; letter-spacing: .055em; white-space: nowrap; }
.tour-card__body small { display: block; margin-top: 7px; color: rgba(255,255,255,.60); font-size: 13px; letter-spacing: .045em; }
.tour-card__arrow { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,.33); font-size: 24px; font-weight: 200; transition: color .25s, transform .25s; }
.tour-card:hover .tour-card__arrow, .tour-card.is-active .tour-card__arrow { color: var(--gold-light); transform: translate(2px,-50%); }



/* Submenú de puntos del recorrido */
.tour-group { margin-bottom: 10px; }
.tour-group .tour-card { margin-bottom: 0; }
.tour-group.is-open .tour-card__arrow { transform: translateY(-50%) rotate(90deg); color: var(--gold-light); }
.tour-group.is-open .tour-card:hover .tour-card__arrow,
.tour-group.is-open .tour-card.is-active .tour-card__arrow { transform: translate(2px,-50%) rotate(90deg); }
.point-submenu {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin: 0 7px;
  border-left: 1px solid rgba(209,171,72,.32);
  background: rgba(0,0,0,.10);
  transition: max-height .38s var(--ease), opacity .24s, padding .32s, margin .32s;
}
.tour-group.is-open .point-submenu {
  max-height: 520px;
  opacity: 1;
  padding: 9px 0 10px;
  margin-top: 5px;
}
.point-submenu__label {
  margin: 4px 14px 7px;
  color: rgba(255,255,255,.29);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .20em;
}
.point-link {
  position: relative;
  width: 100%;
  min-height: 38px;
  padding: 8px 12px 8px 45px;
  border: 0;
  border-top: 1px solid rgba(255,255,255,.045);
  background: transparent;
  color: rgba(255,255,255,.62);
  text-align: left;
  font-size: 16px;
  letter-spacing: .02em;
  cursor: pointer;
  transition: color .2s, background .2s, padding-left .22s var(--ease);
}
.point-link:first-of-type { border-top: 0; }
.point-link span {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(209,171,72,.52);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .08em;
}
.point-link::after {
  content: "";
  position: absolute;
  right: 11px;
  top: 50%;
  width: 4px;
  height: 4px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
  opacity: .35;
}
.point-link:hover {
  color: #fff;
  background: rgba(255,255,255,.035);
  padding-left: 48px;
}
.point-link.is-active {
  color: var(--gold-light);
  background: linear-gradient(90deg, rgba(209,171,72,.10), transparent 86%);
}
.point-link.is-active::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 7px;
  bottom: 7px;
  width: 2px;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(209,171,72,.38);
}
.point-link.is-active span { color: var(--gold-light); }

.sidebar__bottom {
  min-height: 69px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgba(255,255,255,.07);
}
.utility {
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.48);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  font-size: 9px;
  letter-spacing: .12em;
  transition: color .25s, background .25s;
}
.utility + .utility { border-left: 1px solid rgba(255,255,255,.07); }
.utility:hover { color: var(--gold-light); background: rgba(255,255,255,.025); }
.utility__icon {
  width: 18px;
  height: 18px;
  border: 1px solid currentColor;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: Georgia, serif;
  font-size: 11px;
}
.utility__icon--screen { border-radius: 2px; font-family: inherit; font-size: 11px; }

.viewer-shell { position: absolute; inset: 0 0 0 var(--sidebar); background: #060a0d; overflow: hidden; }
.viewer { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #05090c; }
.viewer-gradient { display: none; }
.topbar {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  height: 84px;
  padding: 22px 24px 22px 30px;
  display: flex;
  align-items: center;
  gap: 16px;
  pointer-events: none;
}
.current-tour { margin-left: auto; text-align: right; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.current-tour__eyebrow { display: block; margin-bottom: 6px; color: rgba(255,255,255,.82); font-size: 18px; font-weight: 600; letter-spacing: .12em; }
.current-tour strong { font-size: 16px; font-weight: 500; letter-spacing: .055em; }
.menu-toggle { display: none; pointer-events: auto; }

.arqin-credit {
  position: absolute;
  z-index: 18;
  right: 24px;
  bottom: 18px;
  width: 114px;
  text-align: center;
  font-family: Arial, sans-serif;
  color: #fff;
  text-shadow: 0 1px 5px rgba(0,0,0,.38);
  pointer-events: auto;
}
.arqin-credit p { margin: 0; }
.arqin-credit__created {
  margin: 0 0 2px !important;
  padding-left: 4px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.1;
}
.arqin-credit a { display: block; line-height: 0; }
.arqin-credit__logo {
  display: block;
  width: 108px;
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 1px 5px rgba(0,0,0,.24));
}
.arqin-credit__name {
  margin-top: 2px !important;
  font-size: 7px;
  font-weight: 600;
  line-height: 1.15;
  white-space: nowrap;
}
.close-menu { display: none; }

.hint {
  position: absolute;
  z-index: 11;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  padding: 9px 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(7,14,20,.48);
  backdrop-filter: blur(7px);
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(255,255,255,.72);
  font-size: 9px;
  letter-spacing: .04em;
  white-space: nowrap;
  transition: opacity .5s, transform .5s;
}
.hint.is-hidden { opacity: 0; transform: translate(-50%,10px); pointer-events: none; }
.hint__mouse { width: 13px; height: 18px; border: 1px solid var(--gold-light); border-radius: 8px; position: relative; }
.hint__mouse::after { content: ""; position: absolute; width: 2px; height: 4px; background: var(--gold-light); left: 50%; top: 3px; transform: translateX(-50%); border-radius: 2px; animation: wheel 1.5s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translate(-50%,0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%,5px); } }

.loading {
  position: absolute;
  z-index: 30;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 40%, #173247, #08121a 68%);
  transition: opacity .55s var(--ease), visibility .55s;
}
.loading.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loading img { width: min(280px, 58vw); filter: drop-shadow(0 10px 24px rgba(0,0,0,.22)); }
.loading__line { width: 170px; height: 1px; background: rgba(255,255,255,.1); overflow: hidden; margin: 20px 0 12px; }
.loading__line span { display: block; width: 45%; height: 100%; background: linear-gradient(90deg, transparent, var(--gold-light), transparent); animation: load 1.25s infinite var(--ease); }
.loading p { color: rgba(255,255,255,.48); font-size: 9px; letter-spacing: .18em; text-transform: uppercase; }
@keyframes load { from { transform: translateX(-120%); } to { transform: translateX(260%); } }

.scrim { position: fixed; z-index: 35; inset: 0; background: rgba(0,0,0,.5); opacity: 0; pointer-events: none; transition: opacity .3s; }
.modal {
  position: fixed;
  z-index: 60;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-45%) scale(.98);
  width: min(520px, calc(100vw - var(--sidebar) - 70px));
  padding: 42px 44px 38px;
  border: 1px solid rgba(209,171,72,.25);
  background: linear-gradient(145deg, #132c3e, #0d1e2b);
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s, transform .28s var(--ease);
}
.modal.is-open { opacity: 1; pointer-events: auto; transform: translate(-50%,-50%) scale(1); }
.scrim.is-open { opacity: 1; pointer-events: auto; }
.modal__close { position: absolute; right: 14px; top: 10px; width: 34px; height: 34px; border: 0; background: transparent; color: rgba(255,255,255,.6); font-size: 26px; font-weight: 200; cursor: pointer; }
.modal__logo { display: block; width: 165px; margin: 0 0 30px; }
.modal__kicker { color: var(--gold-light); font-size: 8px; font-weight: 700; letter-spacing: .22em; }
.modal h2 { margin: 8px 0 17px; font-size: 27px; font-weight: 300; letter-spacing: .02em; }
.modal p { color: rgba(255,255,255,.68); font-size: 13px; line-height: 1.7; }
.modal__note { padding-top: 15px; margin-top: 19px; border-top: 1px solid rgba(255,255,255,.08); font-size: 11px !important; color: rgba(255,255,255,.42) !important; }

@media (max-width: 840px) {
  :root { --sidebar: 330px; }
  .viewer-shell { inset: 0; }
  .sidebar { position: fixed; transform: translateX(-100%); transition: transform .35s var(--ease); }
  .app.menu-open .sidebar { transform: translateX(0); }
  .app.menu-open .scrim { opacity: 1; pointer-events: auto; }
  .close-menu { display: block; position: absolute; right: 13px; top: 13px; width: 34px; height: 34px; border: 0; background: transparent; cursor: pointer; }
  .close-menu span { position: absolute; left: 7px; width: 20px; height: 1px; background: rgba(255,255,255,.55); }
  .close-menu span:first-child { transform: rotate(45deg); }
  .close-menu span:last-child { transform: rotate(-45deg); }
  .menu-toggle { display: flex; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.16); background: rgba(8,18,26,.52); backdrop-filter: blur(5px); flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; }
  .menu-toggle span { width: 16px; height: 1px; background: white; }
  .topbar { height: 76px; padding: 18px 20px 18px 18px; }
  .arqin-credit { right: 20px; bottom: 10px; width: 82px; }
  .arqin-credit__created { font-size: 9px; }
  .arqin-credit__logo { width: 76px; }
  .arqin-credit__name { font-size: 6px; }
  .current-tour strong { font-size: 14px; }
  .current-tour__eyebrow { font-size: 16px; }
  .modal { left: 50%; width: min(520px, calc(100vw - 32px)); padding: 34px 28px; }
  .hint { bottom: 15px; max-width: calc(100vw - 30px); white-space: normal; text-align: center; font-size: 8px; }
}

@media (max-width: 430px) {
  .sidebar { width: min(92vw, 340px); }
  .sidebar__top { padding-top: 23px; }
  .brand img { width: 180px; }
  .current-tour__eyebrow { display: none; }
  .arqin-credit { right: 16px; bottom: 8px; width: 74px; }
  .arqin-credit__created { font-size: 8px; }
  .arqin-credit__logo { width: 68px; }
  .arqin-credit__name { font-size: 5.5px; }
  .current-tour strong { display: block; max-width: 220px; }
}


/* V7: menú simplificado sin submenús */
.point-submenu { display: none !important; }
.tour-group.is-open .tour-card__arrow { transform: translate(2px,-50%); }
.tour-group { margin-bottom: 10px; }
