/* ======================================================
       TIENDA (plantilla HTML + CSS)
       Paleta: usa variables globales ya cargadas
       ====================================================== */

/* ✅ Hardening anti-scroll horizontal / anti “zoom raro” */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden; /* evita scroll horizontal por desbordes */
}

img, svg, video, canvas {
    max-width: 100%;
    height: auto;
}

/* Evita que grids/flex hijos se salgan */
.shop,
.shop__layout,
.products,
.filters,
.products__bar,
.pager,
.qv__dialog,
.qv__content {
    min-width: 0;
    max-width: 100%;
}

.shop {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: clamp(1.25rem, 2.8vw, 2rem);
}

.shop__head {
    display: grid;
    gap: 0.65rem;
    margin-bottom: 1.2rem;
}

.shop__title {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 500;
    letter-spacing: 0.01em;
    font-size: clamp(2rem, 3.4vw, 3.2rem);
    line-height: 1.05;
    color: var(--color-black);
}

.shop__subtitle {
    margin: 0;
    color: rgba(0, 0, 0, 0.62);
    font-size: clamp(1rem, 1.35vw, 1.15rem);
    max-width: 64ch;
}

/* Nuevo contenedor para meta información al final */
.shop__footer-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.shop__meta-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-left: auto;
}

.shop__count {
    font-size: 0.95rem;
    color: rgba(0, 0, 0, 0.65);
    white-space: nowrap;
}

.shop__sort {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.9rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
    border-radius: 4px;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.shop__sort:hover {
    border-color: rgba(0, 0, 0, 0.22);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.shop__sort label {
    font-size: 0.88rem;
    color: rgba(0, 0, 0, 0.65);
    font-weight: 500;
}

.shop__sort select {
    appearance: none;
    border: 0;
    background: transparent;
    font-size: 0.9rem;
    color: rgba(0, 0, 0, 0.82);
    outline: none;
    padding-right: 1.4rem;
    cursor: pointer;
    font-weight: 500;
}

.shop__sort .chev {
    width: 10px;
    height: 10px;
    border-right: 2px solid rgba(0, 0, 0, 0.55);
    border-bottom: 2px solid rgba(0, 0, 0, 0.55);
    transform: rotate(45deg);
    margin-left: -0.6rem;
    pointer-events: none;
}

.shop__layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: clamp(1rem, 2.2vw, 1.6rem);
    align-items: start;
    margin-top: 1.25rem;
}

/* ---- aside filtros ---- */
.filters {
    position: sticky;
    top: 6.8rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.05);
    padding: 1rem;
}

.filters__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
    min-width: 0;
}

.filters__title {
    font-size: 0.9rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.65);
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

/* ✅ Toggle (solo móvil) */
.filters__toggle {
    display: none; /* desktop hidden */
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.65rem;
    border: 1px solid rgba(0, 0, 0, 0.14);
    background: rgba(255, 255, 255, 0.96);
    color: rgba(0, 0, 0, 0.72);
    font-size: 0.85rem;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
    white-space: nowrap;
    flex: 0 0 auto;
    max-width: 100%;
}

.filters__toggle:hover {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.22);
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, .05);
}

.filters__toggle:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.12);
    border-color: rgba(231, 76, 60, 0.55);
}

/* ✅ Flecha: ABIERTO = arriba / OCULTO = abajo */
.filters__chev {
    width: 10px;
    height: 10px;
    border-right: 2px solid rgba(0, 0, 0, .55);
    border-bottom: 2px solid rgba(0, 0, 0, .55);
    transform: rotate(-135deg); /* ✅ arriba por defecto (abierto) */
    transition: transform 160ms ease;
}

/* ✅ Si está colapsado (oculto) => flecha abajo */
.filters.filters--collapsed .filters__chev {
    transform: rotate(45deg); /* ✅ abajo */
}

/* Body colapsable */
.filters__body {
    display: block;
}

.filters__clear {
    padding: 0.35rem 0.55rem;
    border: 1px solid rgba(0, 0, 0, 0.14);
    background: transparent;
    color: rgba(0, 0, 0, 0.65);
    font-size: 0.85rem;
    transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.filters__clear:hover {
    color: var(--color-black);
    border-color: rgba(0, 0, 0, 0.22);
    background: rgba(0, 0, 0, 0.02);
}

.filters__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 0 0 auto;
}

.filters__apply {
    padding: 0.35rem 0.7rem;
    border: 1px solid rgba(231, 76, 60, 0.65);
    background: rgba(231, 76, 60, 1);
    color: #fff;
    font-size: 0.85rem;
    transition: transform 160ms ease, opacity 160ms ease, box-shadow 160ms ease;
}

.filters__apply:hover {
    transform: translateY(-1px);
    opacity: 0.96;
    box-shadow: 0 8px 18px rgba(231, 76, 60, 0.18);
}

.filters__apply:active {
    transform: translateY(0);
}

.filters__group {
    padding: 0.95rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.filters__group:first-of-type {
    border-top: 0;
    padding-top: 0.3rem;
}

.filters__label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.6rem;
    min-width: 0;
}

.filters__label strong {
    font-size: 0.95rem;
    color: rgba(0, 0, 0, 0.85);
    font-weight: 600;
    letter-spacing: 0.01em;
}

.filters__hint {
    font-size: 0.82rem;
    color: rgba(0, 0, 0, 0.50);
    white-space: nowrap;
}

.filters select,
.filters input[type="text"] {
    width: 100%;
    max-width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.12);
    padding: 0.7rem 0.75rem;
    outline: none;
    background: #fff;
    color: rgba(0, 0, 0, 0.80);
    font-size: 0.95rem;
    transition: border-color 170ms ease, box-shadow 170ms ease;
}

.filters select:focus,
.filters input[type="text"]:focus {
    border-color: rgba(231, 76, 60, 0.55);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.12);
}

.filters__checks {
    display: grid;
    gap: 0.55rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
}

.check {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.92rem;
    color: rgba(0, 0, 0, 0.75);
    cursor: pointer;
    user-select: none;
    min-width: 0;
}

.check input {
    width: 16px;
    height: 16px;
    accent-color: var(--color-primary);
    flex: 0 0 auto;
}

.range {
    display: grid;
    gap: 0.5rem;
}

.range__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    font-size: 0.92rem;
    color: rgba(0, 0, 0, 0.70);
    min-width: 0;
}

.range input[type="range"] {
    width: 100%;
    accent-color: var(--color-primary);
}

/* ---- productos ---- */
.products {
    min-width: 0;
}

.products__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 0.85rem 0.95rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.04);
    margin-bottom: 1rem;
    min-width: 0;
}

.chips {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
    min-height: 28px;
    min-width: 0;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.38rem 0.6rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: rgba(0, 0, 0, 0.02);
    font-size: 0.86rem;
    color: rgba(0, 0, 0, 0.72);
    max-width: 100%;
    word-break: break-word; /* ✅ evita que un texto largo genere overflow */
}

.products__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(0.9rem, 2vw, 1.35rem);
    min-width: 0;
}

/* ---- card ---- */
.pcard {
    background: #fff;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.pcard__media {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.07);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
    background: #fff;
}

.pcard__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 220ms ease;
}

.pcard__badges {
    position: absolute;
    left: 12px;
    top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 2;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.28rem 0.5rem;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: 1px solid rgba(0, 0, 0, 0.14);
    background: rgba(255, 255, 255, 0.94);
    color: rgba(0, 0, 0, 0.78);
}

.badge--primary {
    border-color: rgba(231, 76, 60, 0.35);
    background: rgba(231, 76, 60, 0.10);
    color: rgba(0, 0, 0, 0.82);
}

/* acciones hover (solo desktop) */
.pcard__actions {
    position: absolute;
    left: 50%;
    bottom: 12%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    opacity: 0;
    transition: opacity 220ms ease, transform 220ms ease;
    pointer-events: none;
    z-index: 2;
}

.pcard__icon {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.14);
    background: rgba(255, 255, 255, 0.96);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(0, 0, 0, 0.70);
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.pcard__icon:hover {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.22);
    transform: translateY(-1px);
}

.pcard__media:hover img {
    transform: scale(1.03);
}

.pcard__media:hover .pcard__actions {
    opacity: 1;
    transform: translateX(-50%) translateY(-2px);
    pointer-events: auto;
}

.pcard__body {
    padding: 0.85rem 0.15rem 0;
    text-align: left;
}

.pcard__brand {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.45);
    margin-bottom: 0.35rem;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
    min-width: 0;
    word-break: break-word;
}

.pcard__name {
    font-size: 1rem;
    color: rgba(0, 0, 0, 0.88);
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
    font-weight: 650;
    line-height: 1.25;
    margin: 0 0 0.55rem;
    min-width: 0;
    word-break: break-word;
}

.pcard__name a {
    color: inherit;
}

.pcard__name a:hover {
    text-decoration: underline;
}

.pcard__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.8rem;
    flex-wrap: wrap;
    min-width: 0;
}

.price {
    display: inline-flex;
    align-items: baseline;
    gap: 0.55rem;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
    min-width: 0;
}

.price__now {
    font-weight: 750;
    color: var(--color-primary);
    font-size: 1rem;
}

.price__was {
    font-size: 0.9rem;
    color: rgba(0, 0, 0, 0.45);
    text-decoration: line-through;
}

.pcard__sizes {
    margin-top: 0.55rem;
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.sizepill {
    border: 1px solid rgba(0, 0, 0, 0.10);
    background: rgba(0, 0, 0, 0.02);
    font-size: 0.82rem;
    padding: 0.25rem 0.45rem;
    color: rgba(0, 0, 0, 0.65);
    max-width: 100%;
    word-break: break-word;
}

.pcard__cta {
    margin-top: 0.85rem;
    width: 100%;
    padding: 0.85rem 0.95rem;
    background: var(--color-black);
    color: var(--color-white);
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition: transform 160ms ease, opacity 160ms ease;
}

.pcard__cta:hover {
    transform: translateY(-1px);
    opacity: 0.96;
}

/* ---- paginación ---- */
.pager {
    margin-top: clamp(1.25rem, 2.4vw, 2rem);
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.pager__meta {
    font-size: 0.92rem;
    color: rgba(0, 0, 0, 0.62);
}

.pager__nav {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    max-width: 100%;
}

.pager__btn,
.pager__page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.7rem;
    border: 1px solid rgba(0, 0, 0, 0.14);
    background: rgba(255, 255, 255, 0.96);
    color: rgba(0, 0, 0, 0.72);
    font-size: 0.92rem;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.pager__btn:hover,
.pager__page:hover {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.22);
    transform: translateY(-1px);
    color: rgba(0, 0, 0, 0.82);
}

.pager__page.is-active {
    background: rgba(231, 76, 60, 0.10);
    border-color: rgba(231, 76, 60, 0.35);
    color: rgba(0, 0, 0, 0.88);
    font-weight: 650;
    transform: none;
    pointer-events: none;
}

.pager__btn.is-disabled {
    opacity: 0.5;
    pointer-events: none;
    transform: none;
}

.pager__dots {
    min-width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(0, 0, 0, 0.45);
    border: 1px solid transparent;
}

/* ---- responsive ---- */
@media (max-width: 1100px) {
    .shop__layout {
        grid-template-columns: 260px 1fr;
    }

    .products__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .shop__layout {
        grid-template-columns: 1fr;
    }

    .filters {
        position: relative;
        top: auto;
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.04);
    }

    /* ✅ Mostrar toggle en móvil */
    .filters__toggle {
        display: inline-flex;
    }

    /* ✅ Animación de colapsar/expandir */
    .filters__body {
        overflow: hidden;
        max-height: 2000px; /* suficiente para todo el contenido */
        transition: max-height 220ms ease, opacity 180ms ease;
        opacity: 1;
    }

    /* Estado colapsado */
    .filters.filters--collapsed .filters__body {
        max-height: 0;
        opacity: 0;
        pointer-events: none;
    }

    .shop__footer-meta {
        justify-content: center;
        text-align: center;
    }

    .shop__meta-wrapper {
        justify-content: center;
        margin-left: 0;
        width: 100%;
    }
}

@media (max-width: 520px) {
    .products__grid {
        grid-template-columns: 1fr;
    }

    .pcard__actions {
        display: none;
    }

    .filters__checks {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .shop__footer-meta {
        flex-direction: column;
        gap: 1rem;
    }

    .shop__meta-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .pager {
        justify-content: center;
    }

    .pager__meta {
        text-align: center;
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {

    .pcard__media img,
    .pcard__actions,
    .pcard__cta,
    .filters__clear,
    .pcard__icon,
    .pager__btn,
    .pager__page,
    .filters__body {
        transition: none !important;
    }
}

/* ======================================================
   MODAL QUICK VIEW (esquinas rectas + header simple/elegante)
   - Sin bordes redondeados
   - Header minimal con línea fina (sin “bloque” separado)
   - Centrado real + scroll interno
   ====================================================== */

/* Overlay */
.qv {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;

    align-items: center;
    justify-content: center;

    padding: clamp(.85rem, 2vw, 1.4rem);
}

.qv.is-open {
    display: flex;
}

/* Fondo */
.qv__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .52);
    backdrop-filter: blur(5px);
}

/* Card modal */
.qv__dialog {
    position: relative;
    width: min(1040px, 100%);
    max-height: 92vh;
    overflow: hidden;

    background: rgba(255, 255, 255, .985);
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 0;
    box-shadow: 0 34px 110px rgba(0, 0, 0, .26);

    transform: translateY(10px);
    opacity: 0;
    animation: qvIn 180ms ease forwards;
}

@keyframes qvIn {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Header simple */
.qv__topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;

    padding: .95rem 1.1rem .75rem;
    background: transparent;

    border-bottom: 1px solid rgba(0, 0, 0, .08);
}

/* Título */
.qv__titlebar {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    min-width: 0;
}

.qv__kicker {
    font-size: .74rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, .55);
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.qv__h {
    margin: 0;
    font-size: 1.06rem;
    color: rgba(0, 0, 0, .90);
    font-weight: 800;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Botón cerrar (más minimal) */
.qv__close {
    width: 40px;
    height: 40px;
    border-radius: 0;
    border: 1px solid rgba(0, 0, 0, .14);
    background: rgba(255, 255, 255, .96);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(0, 0, 0, .72);
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
    cursor: pointer;
}

.qv__close:hover {
    background: #fff;
    border-color: rgba(0, 0, 0, .24);
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, .08);
}

.qv__close:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, .12);
    border-color: rgba(231, 76, 60, .55);
}

/* Layout interno */
.qv__content {
    display: grid;
    grid-template-columns: 1.12fr .88fr;
    gap: 0;

    max-height: calc(92vh - 68px);
    overflow: auto;
}

/* Columna imagen */
.qv__media {
    background: rgba(0, 0, 0, .02);
    border-right: 1px solid rgba(0, 0, 0, .08);
    padding: 1.05rem;
}

.qv__imgwrap {
    width: 100%;
    aspect-ratio: 3/4;

    border-radius: 0;
    border: 1px solid rgba(0, 0, 0, .12);
    background: #fff;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .10);
    overflow: hidden;
}

.qv__imgwrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 220ms ease;
}

.qv__imgwrap:hover img {
    transform: scale(1.03);
}

/* Columna info */
.qv__info {
    padding: 1.05rem 1.1rem 1.15rem;
    display: grid;
    gap: .9rem;
}

/* Precios */
.qv__priceRow {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.qv__price {
    display: flex;
    align-items: baseline;
    gap: .6rem;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

.qv__now {
    font-size: 1.22rem;
    font-weight: 850;
    color: var(--color-primary);
}

.qv__was {
    font-size: .96rem;
    color: rgba(0, 0, 0, .45);
    text-decoration: line-through;
}

.qv__pill {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .38rem .6rem;

    border-radius: 0;
    border: 1px solid rgba(0, 0, 0, .12);
    background: rgba(0, 0, 0, .02);
    font-size: .86rem;
    color: rgba(0, 0, 0, .72);
}

/* Grid de atributos */
.qv__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem .7rem;
    padding-top: .15rem;
}

.qv__kv {
    border-radius: 0;
    border: 1px solid rgba(0, 0, 0, .10);
    background: rgba(255, 255, 255, .98);
    padding: .72rem .78rem;

    box-shadow: 0 10px 22px rgba(0, 0, 0, .05);
}

.qv__k {
    font-size: .72rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, .55);
    margin-bottom: .25rem;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

.qv__v {
    font-size: .95rem;
    color: rgba(0, 0, 0, .84);
    font-weight: 700;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Acciones */
.qv__actions {
    display: flex;
    gap: .65rem;
    flex-wrap: wrap;
    margin-top: .2rem;
}

.qv__btn {
    flex: 1 1 220px;
    padding: .95rem 1rem;

    border-radius: 0;
    border: 1px solid rgba(0, 0, 0, .14);
    background: rgba(255, 255, 255, .96);
    color: rgba(0, 0, 0, .78);
    font-size: .95rem;
    letter-spacing: .02em;
    transition: transform 160ms ease, opacity 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
    cursor: pointer;
}

.qv__btn:hover {
    transform: translateY(-1px);
    border-color: rgba(0, 0, 0, .22);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .10);
}

.qv__btn--primary {
    background: var(--color-black);
    color: var(--color-white);
    border-color: rgba(0, 0, 0, .22);
}

.qv__btn--primary:hover {
    opacity: .96;
}

.qv__btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, .12);
    border-color: rgba(231, 76, 60, .55);
}

/* Foco iconos card */
.pcard__icon:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, .12);
    border-color: rgba(231, 76, 60, .55);
}

/* Responsive */
@media (max-width: 900px) {
    .qv__content {
        grid-template-columns: 1fr;
    }

    .qv__media {
        border-right: 0;
        border-bottom: 1px solid rgba(0, 0, 0, .08);
    }
}

@media (max-width: 520px) {
    .qv__topbar {
        padding: .9rem .9rem .7rem;
    }

    .qv__info {
        padding: .95rem .9rem 1rem;
    }

    .qv__media {
        padding: .9rem;
    }

    .qv__grid {
        grid-template-columns: 1fr;
    }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    .qv__dialog {
        animation: none !important;
        transform: none !important;
        opacity: 1 !important;
    }

    .qv__imgwrap img,
    .qv__close,
    .qv__btn {
        transition: none !important;
    }
}