/* Barberos: la pared de retratos. Hereda inicio.css y reservar.css. */
.wrap-page { max-width: 1400px; margin-inline: auto; padding: clamp(28px, 5vw, 64px) var(--gutter) clamp(56px, 9vw, 120px); }
.page-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(24px, 4vw, 48px); }
.page-head h1 { font-family: var(--display); font-weight: 900; font-stretch: 125%; text-transform: uppercase; font-size: clamp(2.2rem, 6vw, 5rem); line-height: 0.95; letter-spacing: 0.02em; color: var(--silver-hi); }
.page-head p { margin-top: 10px; color: var(--silver-mute); }

.sort { display: flex; gap: 8px; }
.sort__opt { min-height: 44px; padding: 0 18px; background: transparent; border: 1px solid var(--line); cursor: pointer; font-weight: 600; color: var(--silver-mute); transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
.sort__opt:hover { color: var(--silver-hi); border-color: var(--silver); }
.sort__opt[aria-pressed="true"] { background-color: var(--silver); background-image: var(--brushed); color: var(--black); border-color: var(--silver-hi); }

.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(16px, 2.4vw, 32px); }
.plate-card {
    --mag: 0; position: relative; display: flex; flex-direction: column; min-width: 0;
    background: var(--plate); border: 1px solid var(--line);
    transform: scale(calc(1 + var(--mag) * 0.04)); transition: transform .16s ease-out, opacity .16s ease-out, border-color .2s var(--ease);
    animation: wall-in .8s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 90ms);
}
@keyframes wall-in { from { opacity: 0; translate: 0 22px; } to { opacity: 1; translate: 0 0; } }
.wall.is-hot .plate-card { opacity: calc(0.8 + var(--mag) * 0.2); }
.plate-card:hover, .plate-card:focus-within { border-color: var(--silver); }
.plate-card__photo { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--black); }
.plate-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; filter: grayscale(1) contrast(1.08); transition: filter .5s ease, scale .7s var(--ease); }
.plate-card:hover .plate-card__photo img { filter: grayscale(0.2) contrast(1.05); scale: 1.04; }
.plate-card__none { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-weight: 900; font-stretch: 125%; font-size: clamp(6rem, 12vw, 9rem); color: var(--silver); }
.plate-card__none small { position: absolute; left: 12px; bottom: 10px; font-family: var(--body); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--silver-mute); }
.plate-card__rating { position: absolute; top: 12px; right: 12px; padding: 6px 10px; background-color: var(--silver); background-image: var(--brushed); color: var(--black); font-family: var(--display); font-weight: 900; font-stretch: 110%; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.plate-card__body { display: flex; flex-direction: column; gap: 6px; padding: clamp(14px, 2vw, 22px); flex: 1; }
.plate-card__name { font-family: var(--display); font-weight: 900; font-stretch: 118%; text-transform: uppercase; font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1; color: var(--silver-hi); overflow-wrap: anywhere; }
.plate-card__name a { text-decoration: none; }
.plate-card__name a::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* toda la tarjeta lleva al perfil */
.plate-card__spec { color: var(--silver-mute); font-size: 0.95rem; }
.plate-card__work:empty { display: none; }
.plate-card__label { margin-top: 6px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--silver-mute); }
.plate-card__thumbs { display: flex; gap: 6px; margin-top: 8px; }
.plate-card__thumbs img { width: 72px; height: 72px; object-fit: cover; filter: grayscale(1) contrast(1.08); background: var(--black); }
.plate-card__actions { display: grid; gap: 8px; margin-top: auto; padding-top: 14px; position: relative; z-index: 2; }
.plate-card__actions .btn { width: 100%; min-height: 46px; padding: 0 12px; font-size: 0.9rem; letter-spacing: 0.04em; white-space: nowrap; }

/* Celular: retrato a un lado y datos al otro, para que tres barberos no sean casi 1800 px de desplazamiento */
@media (max-width: 600px) {
    .plate-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); }
    .plate-card__photo { aspect-ratio: auto; height: 100%; min-height: 220px; }
    .plate-card__none { font-size: 4rem; }
    .plate-card__none small { display: none; }
    .plate-card__rating { top: 8px; right: 8px; padding: 4px 8px; font-size: 0.95rem; }
    .plate-card__body { padding: 14px; }
    .plate-card__thumbs img { width: 56px; height: 56px; }
    .plate-card__actions .btn { white-space: normal; line-height: 1.15; padding-block: 8px; }
}

@media (prefers-reduced-motion: reduce) {
    .plate-card { animation: none; transform: none !important; transition: none; }
    .plate-card__photo img { transition: none; }
    .plate-card:hover .plate-card__photo img { scale: 1; }
}
