/* Página de renders 360° (Kuula) + catálogo de acabados LUSSO */
.renders-page { background: var(--ink); }

.views a {
  padding: 8px 12px;
  font-size: 12.5px;
  color: var(--text);
  text-decoration: none;
  border-radius: 9px;
  white-space: nowrap;
}
.views a:hover { background: rgba(255, 255, 255, 0.08); }
.views a.active { color: #0d0d0d; background: var(--brand); }

.viewer {
  position: fixed;
  inset: 0;
  padding: 68px 12px 12px;
}
.viewer iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #151515;
}
.catalog-open .viewer { padding-right: 384px; }

.catalog {
  position: fixed;
  top: 68px;
  right: 12px;
  bottom: 12px;
  z-index: 15;
  width: 360px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  backdrop-filter: blur(12px);
  transform: translateX(calc(100% + 24px));
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  pointer-events: none;
}
.catalog-open .catalog { transform: none; opacity: 1; pointer-events: auto; }
.catalog h2 { margin: 0; font-size: 19px; font-weight: 600; }
.note {
  margin: 0;
  padding: 10px 12px;
  font-size: 12.5px;
  line-height: 1.45;
  color: #d6d4cf;
  background: var(--brand-soft);
  border-radius: 12px;
}
.note b { color: var(--text); }
.note a, .api-status a { color: var(--brand); }

.preview {
  display: flex;
  gap: 12px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
}
.preview img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; flex: none; background: #222; }
.preview > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.preview .muted { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; }
.preview strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; }
.btn-primary.small {
  margin-top: auto;
  width: auto;
  padding: 8px 12px;
  font-size: 12.5px;
  text-align: center;
  text-decoration: none;
}

@media (max-width: 900px) {
  .views { display: flex; }
  .catalog-open .viewer { padding-right: 12px; }
}

@media (max-width: 680px) {
  .viewer { padding: 60px 0 0; }
  .viewer iframe { border-radius: 0; border-width: 1px 0 0; }
  .views a { padding: 8px 9px; font-size: 12px; }
  .catalog {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    height: min(60vh, 520px);
    padding: 10px 14px calc(12px + var(--safe-b));
    border-radius: 18px 18px 0 0;
    transform: translateY(100%);
  }
  .catalog .swatches { grid-template-columns: repeat(4, 1fr); gap: 6px; }
}

@media (max-width: 680px) {
  .hide-sm { display: none; }
  .renders-page .topbar { gap: 6px; }
}
