@import url("./palette-v2.6.css");
@import url("./typography-v3.0.css");

.sound-page {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
}

.sound-panorama {
  position: relative;
  width: 100%;
  height: min(72vh, 760px);
  min-height: 460px;
  overflow: hidden;
  background: #000000;
  color: #FAF9F6;
}

.sound-panorama canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.sound-help {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 3;
  margin: 0;
  padding: 7px 10px;
  border: 1px solid rgba(250, 249, 246, .35);
  background: rgba(0, 0, 0, .55);
  color: #FAF9F6;
  font-size: 12px;
  letter-spacing: .04em;
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.sound-hotspot {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: min(240px, 42vw);
  transform: translate(-50%, -50%);
  padding: 9px 12px;
  border: 1px solid rgba(250, 249, 246, .72);
  border-radius: 999px;
  background: rgba(8,0,0,.72);
  color: #FAF9F6;
  font: inherit;
  font-size: 13px;
  line-height: 1.15;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
  backdrop-filter: blur(8px);
}

.sound-hotspot:hover,
.sound-hotspot:focus-visible {
  background: #FAF9F6;
  color: #000000000;
  outline: none;
}

.sound-hotspot__icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.sound-hotspot__icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sound-archive {
  padding: clamp(52px, 8vw, 100px) var(--page-gutter, 5vw);
  background: var(--paper, #FAF9F6);
}

.sound-archive__inner {
  width: min(1100px, 100%);
  margin: 0 auto;
}

.sound-archive__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, .7fr);
  gap: 36px;
  align-items: end;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule, #F5E8D7);
}

.sound-archive__header h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 70px);
  font-weight: 400;
  line-height: .95;
}

.sound-archive__header p {
  margin: 0;
  color: var(--muted, #B8B5C3);
}

.sound-list {
  display: grid;
}

.sound-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--rule, #F5E8D7);
}

.sound-item h3 {
  margin: 0 0 7px;
  font-size: clamp(20px, 2.5vw, 31px);
  font-weight: 400;
}

.sound-item p {
  max-width: 720px;
  margin: 0;
  color: var(--muted, #B8B5C3);
}

.sound-item button,
.sound-item a {
  white-space: nowrap;
}

.sound-empty {
  padding: 30px 0;
  color: var(--muted, #B8B5C3);
}

.sound-dialog {
  width: min(920px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  padding: 0;
  border: 0;
  background: #000000000;
  color: #FAF9F6;
  box-shadow: 0 24px 90px rgba(0, 0, 0, .55);
}

.sound-dialog::backdrop {
  background: rgba(0, 0, 0, .76);
  backdrop-filter: blur(5px);
}

.sound-dialog__header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(250, 249, 246, .16);
}

.sound-dialog__header h2 {
  margin: 0;
  font-size: 21px;
  font-weight: 400;
}

.sound-dialog__close {
  border: 0;
  background: transparent;
  color: #FAF9F6;
  font-size: 26px;
  cursor: pointer;
}

.sound-dialog__body {
  padding: 18px;
}

.sound-dialog__description {
  margin: 0 0 16px;
  color: rgba(250, 249, 246, .72);
}

.sound-embed {
  min-height: 160px;
  background: #000000;
}

.sound-embed iframe {
  display: block;
  width: 100%;
  min-height: 166px;
  border: 0;
  background: #000000;
}

.sound-source-link {
  display: inline-block;
  margin-top: 15px;
  color: #FAF9F6;
}

@media (max-width: 760px) {
  .sound-panorama {
    height: 62vh;
    min-height: 420px;
  }

  .sound-archive__header,
  .sound-item {
    grid-template-columns: 1fr;
  }

  .sound-item {
    gap: 15px;
  }

  .sound-hotspot {
    max-width: 54vw;
    padding: 8px 10px;
  }
}

.sound-embed > iframe,
.sound-embed > object,
.sound-embed > embed,
.sound-embed > video,
.sound-embed > audio,
.sound-embed > div > iframe,
.sound-embed > div > object,
.sound-embed > div > embed,
.sound-embed > div > video,
.sound-embed > div > audio {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 0;
}

.sound-embed audio { min-height: 54px; }
.sound-embed video { height: auto; }


/* v2.5 — visibilidad determinista de hotspots sobre el panorama */
.sound-panorama__canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.sound-help {
  z-index: 5;
}

.sound-hotspot {
  z-index: 10;
  display: none;
  opacity: 0;
  pointer-events: none;
}

.sound-hotspot.is-visible {
  display: inline-flex;
  opacity: 1;
  pointer-events: auto;
}

.sound-hotspot[aria-hidden="true"] {
  display: none !important;
}

.sound-panorama--without-hotspots::after {
  content: "No hay hotspots publicados";
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 6;
  padding: 6px 9px;
  border: 1px solid rgba(250, 249, 246, .3);
  background: rgba(0, 0, 0, .5);
  color: rgba(250, 249, 246, .75);
  font-size: 11px;
  letter-spacing: .04em;
}


/* v2.6 — aplicación estricta de la paleta */
body,
.page,
.home-main,
.site-header,
.site-footer,
.panel,
.tool-card,
.menu-tree-panel,
.menu-inspector,
.sound-stage-panel,
.sound-inspector,
.hotspot-stage-panel,
.hotspot-inspector,
.embed-dialog {
  background-color: var(--paper);
  color: var(--ink);
}

:is(
  .panel,
  .tool-card,
  .blog-card,
  .testimonial,
  .sound-item,
  .menu-select,
  .hotspot-list-item,
  .sound-hotspot-list-item,
  input,
  textarea,
  select
) {
  border-color: var(--rule);
}

:is(
  .panel,
  .tool-card,
  .blog-card,
  .testimonial,
  .sound-item
):where(:hover, :focus-within) {
  border-color: var(--accent);
}

:is(
  .eyebrow,
  .page-kicker,
  .field-help,
  .status,
  time,
  figcaption,
  small,
  .muted
) {
  color: var(--rule);
}

:is(
  .hotspot-marker,
  .sound-hotspot,
  .menu-select[aria-current="true"],
  .hotspot-list-item.is-selected,
  .sound-hotspot-list-item.is-selected
) {
  background-color: var(--ink);
  color: var(--paper);
  border-color: var(--accent);
}

:is(
  .hotspot-marker,
  .sound-hotspot
):where(:hover, :focus-visible) {
  background-color: var(--accent);
  color: var(--ink);
}

.site-footer,
.site-header,
.blog-editorial,
.blog-latest,
.blog-archive-list,
.home-latest-blog,
.practice-statement,
.testimonials {
  border-color: var(--rule);
}
