/* ════════════════════════════════════════════════════════════════
   © 2026 Mizziu Fuentes · mizziu.com
   Hecho a la medida por Norrium · norrium.com
   Todos los derechos reservados.
   ════════════════════════════════════════════════════════════════

   MIZZIU FUENTES · css/05_visor.css · v30
   El visor

   La ventana que abre cada foto, emote o panel en grande, con su
   tarjeta de texto.

   — ✦ — · Marcos 11:24
   ════════════════════════════════════════════════════════════════ */

/* ── El visor ──────────────────────────────────────────────────── */

.visor {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: #0a0806;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  flex-direction: column;
  gap: 14px;
}

.visor.on {
  display: flex;
}

.visor img {
  max-width: min(100%,1100px);
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
}

.visor button {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: 1px solid #3a3229;
  color: var(--hero-ink);
  border-radius: 999px;
  width: 44px;
  height: 44px;
  font-size: 1.2rem;
  cursor: pointer;
}

.visor .nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
}

.visor .ant {
  left: 12px;
  right: auto;
}

.visor .sig {
  right: 12px;
  left: auto;
}

.visor-in {
  display: grid;
  grid-template-columns: auto 320px;
  justify-content: center;
  gap: 26px;
  align-items: center;
  width: 100%;
}

.visor-in img {
  max-height: 84vh;
  max-width: calc(100vw - 460px);
  width: auto;
  object-fit: contain;
}

@media (max-width: 820px) {
  .visor-in {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .visor-in img {
    max-height: 56vh;
    max-width: 100%;
  }
}

.visor-in img.chico {
  height: auto;
  max-height: none;
  image-rendering: auto;
  width: min(70vw,400px);
}

.visor-in img.pix {
  width: min(60vw,224px);
}

.visor-emoji {
  width: min(60vw,260px);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  filter: none;
  font-family: "Fraunces",serif;
  font-weight: 900;
  font-size: 5.5rem;
  color: var(--cobre);
  border: 2px solid #3a3229;
  background: radial-gradient(circle at 40% 35%,#2e2518,#1a1510);
}

.visor-emoji[hidden] {
  display: none;
}

/* ── La tarjeta de texto ───────────────────────────────────────── */

.cuadro {
  background: #1a1611;
  border: 1px solid rgba(217,164,65,.45);
  border-radius: 16px;
  padding: 22px;
  display: grid;
  gap: 8px;
  color: var(--hero-ink);
  border-color: #3a3229;
}

.cuadro .mono {
  color: var(--cobre);
}

.cuadro b {
  font-family: "Fraunces",serif;
  font-weight: 900;
  font-size: 1.7rem;
  line-height: 1.1;
}

.cuadro p {
  margin: 0;
  color: #d8ccb9;
  font-size: 1.08rem;
  line-height: 1.55;
}

@media (max-width: 820px) {
  .cuadro {
    padding: 16px;
  }

  .cuadro b {
    font-size: 1.35rem;
  }
}

.cuadro .como {
  margin-top: 8px;
  border-top: 1px dashed #4a3f33;
  padding-top: 10px;
  display: grid;
  gap: 4px;
}

.cuadro .como .mono {
  color: var(--cobre);
  font-size: .7rem;
}

.cuadro .como p {
  color: var(--hero-ink);
}

.cuadro .md {
  color: #d8ccb9;
  font-size: 1rem;
  line-height: 1.55;
  max-height: 46vh;
  overflow: auto;
}

.cuadro .md a {
  color: var(--cobre);
}

.cuadro .md b {
  font-family: inherit;
  font-size: inherit;
  color: var(--hero-ink);
}
