/* ==========================================================================
   SalazarCode.net — Portada isométrica (Canvas 2D)
   ========================================================================== */

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.hero--compact { padding: 40px 10px 16px; }
.hero--compact .hero-title { font-size: 2.7rem; }
.hero--compact .hero-subtitle { margin-bottom: 0; }

/* ------------------------------------------------------------- escenario */
.iso-wrap { margin-top: 4px; }

.iso-stage {
  position: relative;
  width: 100%;
  height: clamp(400px, 60vh, 600px);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #06070d;
  box-shadow: 0 26px 60px -34px rgba(0, 0, 0, 0.9);
}
.iso-stage canvas { display: block; }

.iso-hint {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 12px;
}
.iso-hint b { color: var(--accent-cyan); font-weight: 700; }

/* ---------------------------------------------------------------- fichas */
.iso-card {
  position: absolute;
  z-index: 6;
  top: 0; left: 0;
  width: 282px;
  max-width: calc(100% - 20px);
  padding: 14px 15px 15px;
  border-radius: 16px;
  background: rgba(11, 14, 25, 0.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 26px 50px -22px rgba(0, 0, 0, 0.9);
  visibility: hidden;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  pointer-events: none;
}
.iso-card.is-on {
  visibility: visible;
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.iso-card__tag {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.7rem;
  color: var(--accent-cyan);
  background: rgba(0, 210, 255, 0.08);
  border: 1px solid rgba(0, 210, 255, 0.25);
  padding: 2px 8px;
  border-radius: 6px;
  margin-bottom: 10px;
}

.iso-card__title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 6px;
}

.iso-card__desc {
  font-size: 0.85rem;
  color: #cbd5e1;
  line-height: 1.55;
  margin-bottom: 12px;
}

.iso-card__pills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.iso-card__pills li {
  font-size: 0.68rem;
  font-weight: 600;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 3px 7px;
  border-radius: 5px;
}

.iso-card__status {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-green);
}

.iso-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.iso-btn {
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  padding: 7px 12px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.05);
  transition: background 0.18s, border-color 0.18s, color 0.18s, filter 0.18s;
  white-space: nowrap;
}
.iso-btn:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}
.iso-btn--primary {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 6px 18px -6px rgba(124, 58, 237, 0.7);
}
.iso-btn--primary:hover { filter: brightness(1.12); }

/* ------------------------------------------------- lista accesible / móvil */
.iso-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 16px;
}

.iso-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #cbd5e1;
  font-family: inherit;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 9px 15px;
  border-radius: 9999px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.iso-chip:hover,
.iso-chip:focus-visible,
.iso-chip.is-on {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.iso-chip__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c, #00d2ff);
  box-shadow: 0 0 8px var(--c, #00d2ff);
}

@media (max-width: 768px) {
  .hero--compact .hero-title { font-size: 2rem; }
  .iso-stage { height: clamp(350px, 54vh, 470px); }
  .iso-card { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .iso-card { transition: none; }
}
