@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:ital,wght@0,400;0,600;1,400;1,600&display=swap');

:root {
  --white: rgba(255,255,255,0.92);
  --soft-white: rgba(255,255,255,0.68);
  --dim-white: rgba(255,255,255,0.38);
  --black-glass: rgba(0,0,0,0.72);
  --line: rgba(255,255,255,0.35);
  --active: #c69a3a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Courier New", Courier, monospace;
  background: black;
  color: var(--white);
  overflow: hidden;
}

button {
  font: inherit;
}

.hidden {
  display: none !important;
}

/* INTRO */
#intro {
  position: fixed;
  inset: 0;
  background: url('../images/fondo.jpg') center / cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 100;
}

#intro::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.22);
  pointer-events: none;
}

#intro h1,
#intro p,
#intro button {
  position: relative;
  z-index: 1;
}

#intro h1 {
  margin: 0 0 44px;

  font-family: "Crimson Text", serif;
  font-size: clamp(58px, 7vw, 118px);
  color:rgba(255,255,255,0.6);
  font-style: italic;
  font-weight: 400;

  letter-spacing: 0.01em;

  opacity: 0.48;

  text-shadow:
    0 0 4px rgba(255,255,255,0.25),
    0 0 12px rgba(255,255,255,0.25);
}

#intro p {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  text-align: center;
  letter-spacing: 0.06em;
}

#intro button {
  margin-top: 28px;

  background: transparent;
  border: 0;

  padding: 0;

  cursor: pointer;

  transition:
    transform 300ms ease,
    opacity 300ms ease;
}

#intro button img {
  

  width: 52px;
  height: auto;

  opacity: 0.72;
  display: block;
  transition:
    transform 300ms ease,
    opacity 300ms ease;
}

#intro button:hover {
  transform: translateY(4px);
}

#intro button:hover img {
  opacity: 1;
  transform: translateY(4px);
}

/* HEADER */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 30px 74px 0;
  z-index: 20;
  pointer-events: none;
}

.logo {
  font-size: 18px;
  line-height: 1;
  letter-spacing: 0.02em;

  color: var(--white);
  text-decoration: none;

  pointer-events: auto;

  transition: color 240ms ease;
}

.logo:hover {
  color: var(--active);
}

.main-nav {
  display: flex;
  align-items: flex-start;
  gap: 70px;
  pointer-events: auto;
}

.nav-group {
  position: relative;
  min-width: 108px;
  text-align: center;
}

.nav-item {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--white);
  padding: 0;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  letter-spacing: 0.12em;
}

.nav-item:hover,
.nav-item.is-active {
  color: var(--active);
}

.archive-dropdown {
  position: absolute;
  top: 46px;
  left: 50%;
  transform: translateX(-50%);
  min-width: 120px;
  text-align: center;
  color: var(--white);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.1em;
}

.archive-item,
.archive-empty {
  display: block;
  color: var(--soft-white);
  text-decoration: none;
  white-space: nowrap;
}

.archive-item {
  appearance: none;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--white);
  cursor: pointer;
  letter-spacing: 0.1em;
}

.archive-item:hover,
.archive-item.is-chorus {
  color: var(--active);
}

.archive-empty {
  color: var(--dim-white);
  font-size: 13px;
}

/* MAPA */
#map {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: black;
}

#territory {
  position: absolute;
  width: 280vw;
  height: 280vh;
  left: 0;
  top: 0;

  background-image: url('../images/fondo.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;

  will-change: transform;
  transform: translate3d(0, 0, 0);
}

#map::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.1) 46%, rgba(0,0,0,0.35) 100%);
  pointer-events: none;
  z-index: 8;
}

/* NODOS */
.node {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  box-shadow:
    0 0 10px rgba(255,255,255,0.95),
    0 0 24px rgba(255,255,255,0.7),
    0 0 46px rgba(255,255,255,0.35);
  transform: translate(-50%, -50%);
  opacity: 0.75;
  cursor: pointer;
  transition: transform 260ms ease, opacity 260ms ease, box-shadow 260ms ease;
  z-index: 5;
}
/* NODOS FANTASMA */
.ghost-node {
  width: 7px;
  height: 7px;
  opacity: 0.52;
  background: rgba(255,255,255,0.72);
  box-shadow:
    0 0 8px rgba(255,255,255,0.55),
    0 0 18px rgba(255,255,255,0.28);
  pointer-events: none;
}

.ghost-node::before {
  display: none;
}

.ghost-node.small {
  width: 5px;
  height: 5px;
  opacity: 0.38;
}

.ghost-node.medium {
  width: 7px;
  height: 7px;
  opacity: 0.48;
}

.ghost-node.large {
  width: 9px;
  height: 9px;
  opacity: 0.58;
}
.node::before {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  opacity: 0;
  transition: opacity 260ms ease, transform 260ms ease;
}

.node:hover,
.node.is-active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.25);
  box-shadow:
    0 0 13px rgba(255,255,255,1),
    0 0 32px rgba(255,255,255,0.86),
    0 0 64px rgba(255,255,255,0.44);
}

.node:hover::before,
.node.is-active::before {
  opacity: 1;
  transform: scale(1.2);
}

/* TARJETA */
#card {
  position: absolute;
  top: 30%;
  left: 38%;

  width: 245px;
  min-height: 128px;

  background: rgba(0,0,0,0.58);
  backdrop-filter: blur(2px);

  padding: 18px 20px 20px;
  color: var(--white);

  z-index: 12;

  opacity: 1;
  transform: translateY(0);

  animation: cardAppear 420ms ease forwards;
}

@keyframes cardAppear {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#card::before {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  top: 48px;
  height: 1px;
  background: rgba(255,255,255,0.38);
}

#card::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 28px;
  height: 1px;
  background: rgba(255,255,255,0.24);
}

#cardClose {
  position: absolute;
  top: 12px;
  right: 14px;

  appearance: none;
  border: 0;
  background: transparent;

  color: var(--soft-white);

  font-size: 12px;
  line-height: 1;

  cursor: pointer;

  z-index: 2;
}

#cardClose:hover {
  color: var(--active);
}

#cardTitle {
  margin: 0 24px 10px 0;

  font-size: 14px;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;

  color: var(--white);
}

#cardMeta {
  margin-top: 20px;

  font-size: 15px;
  line-height: 1.35;
  letter-spacing: 0.08em;

  color: var(--white);
}

#cardText {
  margin-top: 14px;

  font-family: "Crimson Text", serif;
  font-size: 15px;
  line-height: 1.35;
  letter-spacing: 0.01em;

  color: var(--soft-white);
}
/* PANEL GENERAL */
#panel {
  position: fixed;
  top: 17%;
  left: 50%;
  transform: translateX(-50%);
  width: min(620px, 72vw);
  min-height: 220px;
  background: rgba(0,0,0,0.68);
  padding: 32px 38px;
  color: var(--white);
  z-index: 30;
}

#panelClose {
  position: absolute;
  top: 18px;
  right: 22px;
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--soft-white);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}

#panelClose:hover {
  color: var(--active);
}

#panelContent {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: 0.04em;
}
#card.is-loading #cardText::after {
  content: "cargando escucha...";
  display: block;
  margin-top: 14px;
  color: var(--active);
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  animation: loadingPulse 1.2s ease-in-out infinite;
}

@keyframes loadingPulse {
  0% {
    opacity: 0.35;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.35;
  }
}
.chorus-node {
  opacity: 0;
  pointer-events: none;
}
.infox{
  display: block;
  width: 100%;
  height: auto;
}