/* Muestrario de arreglos. Usa las variables del tema e1to1 (con valores de respaldo si no estuvieran). */

.mz { --mz-linea: var(--linea, #ded6cb); --mz-fondo: var(--marfil, #f9f7f4); --mz-azul: var(--azul-profundo, #415768); --mz-texto: var(--carbon, #232323); --mz-suave: var(--carbon-suave, #5d5a55); --mz-arena: var(--arena, #e9e0d5); }
.mz-cabecera { padding-bottom: clamp(20px, 3vw, 32px); }
.mz-cabecera .section-intro { margin-bottom: 18px; }

/* Barra de colecciones: solo con JavaScript; pegajosa bajo la cabecera del tema. */
.mz-barra { display: none; position: sticky; top: 0; z-index: 40; background: var(--mz-fondo); border-bottom: 1px solid var(--mz-linea); padding: 10px var(--margen, 20px); }
.mz-js .mz-barra { display: block; }
.mz-barra-in { width: min(var(--ancho, 1280px), 100%); margin: 0 auto; min-width: 0; }

.mz-chips { display: flex; gap: 8px; margin: 0; padding: 2px 0; list-style: none; overflow-x: auto; max-width: 100%; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.mz-chips::-webkit-scrollbar { display: none; }
.mz-chips li { flex: 0 0 auto; scroll-snap-align: start; margin: 0; }
.mz-chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border: 1px solid var(--mz-linea); border-radius: 999px; background: transparent; color: var(--mz-texto); font: 600 12px/1 var(--font-texto, system-ui, sans-serif); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; white-space: nowrap; -webkit-tap-highlight-color: transparent; transition: border-color .2s ease, background .2s ease, color .2s ease; }
.mz-chip:hover { border-color: var(--mz-texto); }
.mz-chip.is-activo { border-color: var(--mz-azul); background: var(--mz-azul); color: #fff; }
.mz-chip:focus-visible, .mz-foto:focus-visible { outline: 2px solid var(--mz-azul); outline-offset: 3px; }
.mz-chip--chico { min-height: 38px; padding: 0 16px; font-size: 11px; letter-spacing: .08em; }

.mz-cuerpo { padding-top: clamp(20px, 3vw, 32px); }
.mz-fila { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 20px; min-width: 0; }
.mz-contador { margin: 0; color: var(--mz-suave); font: 400 15px/1.4 var(--font-texto, system-ui, sans-serif); }
.mz-contador span:first-child { color: var(--mz-texto); font-weight: 600; }
.mz-tipos { display: flex; align-items: center; gap: 12px; min-width: 0; max-width: 100%; }
.mz-tipos[hidden] { display: none; }
.mz-tipos-etq { flex: 0 0 auto; color: var(--azul-humo, #738391); font: 600 11px/1 var(--font-texto, system-ui, sans-serif); letter-spacing: .14em; text-transform: uppercase; }
.mz-chip[hidden], .mz-chips li[hidden] { display: none; }

.mz-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; margin: 0; padding: 0; list-style: none; }
.mz-item { margin: 0; min-width: 0; }
.mz-item[hidden] { display: none; }
.mz-foto { display: block; position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--mz-arena); }
.mz-foto img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.mz-foto:hover img { transform: scale(1.04); }
.mz-tit { display: block; margin-top: 8px; color: var(--mz-suave); font: 400 14px/1.35 var(--font-texto, system-ui, sans-serif); }
.mz-vacio { padding: 32px 0; color: var(--mz-suave); }
@media (min-width: 700px) { .mz-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 16px; } }
@media (min-width: 1100px) { .mz-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 20px; } }
@media (max-width: 699px) {
    .mz-fila { flex-direction: column; align-items: stretch; }
    .mz-tipos { width: 100%; }
    .mz-tipos .mz-chips { flex: 1 1 auto; min-width: 0; }
}

/* Visor */
html.mz-bloqueado, html.mz-bloqueado body { overflow: hidden; }
.mzv { position: fixed; inset: 0; z-index: 2147483000; display: none; flex-direction: column; background: #161616; color: #fff; font-family: var(--font-texto, system-ui, sans-serif); }
.mzv.is-abierto { display: flex; }
.mzv-top { display: flex; align-items: center; gap: 16px; padding: 12px 16px 8px; }
.mzv-info { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; }
.mzv-n { font-size: 13px; letter-spacing: .12em; color: rgba(255, 255, 255, .7); font-variant-numeric: tabular-nums; }
.mzv-t { font-family: var(--font-titulos, Georgia, serif); font-size: 22px; line-height: 1.2; }
.mzv-cerrar, .mzv-nav { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%; background: rgba(22, 22, 22, .55); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background .2s ease; }
.mzv-cerrar:hover, .mzv-nav:hover { background: rgba(255, 255, 255, .18); }
.mzv-cerrar:focus-visible, .mzv-nav:focus-visible, .mzv a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.mzv-escena { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 4px 16px; }
.mzv-fig { margin: 0; width: 100%; height: 100%; min-height: 0; display: flex; align-items: center; justify-content: center; }
.mzv-fig img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; transition: opacity .25s ease; }
.mzv-fig img.is-cargando { opacity: .25; }
.mzv-nav { position: absolute; top: 50%; margin-top: -24px; }
.mzv-prev { left: 12px; }
.mzv-next { right: 12px; }
.mzv-pie { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 28px; padding: 10px 16px 16px; }
.mzv-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border: 1px solid #fff; border-radius: 2px; background: #fff; color: var(--carbon, #232323); font: 600 12px/1 var(--font-texto, system-ui, sans-serif); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; transition: background .2s ease, color .2s ease; }
.mzv-cta:hover { background: transparent; color: #fff; }
.mzv-enlace { color: #fff; font: 600 12px/1 var(--font-texto, system-ui, sans-serif); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 4px; }
@media (max-width: 699px) {
    .mzv-t { font-size: 19px; }
    .mzv-escena { padding: 4px 8px; }
    .mzv-nav { width: 44px; height: 44px; margin-top: -22px; }
    .mzv-prev { left: 6px; }
    .mzv-next { right: 6px; }
    .mzv-pie { padding-bottom: 20px; }
}
@media (prefers-reduced-motion: reduce) {
    .mz-foto img, .mz-chip, .mzv-fig img, .mzv-cta, .mzv-cerrar, .mzv-nav { transition: none; }
    .mz-foto:hover img { transform: none; }
}
