/* ── Texto concepto obra ─────────────────────────────────────────────────────── */
.nft-concept-text {
    width: 100%;
    max-width: 1106px;
    margin: 28px auto 40px;
    padding: 0 16px;
    box-sizing: border-box;
    font-family: 'ABC Favorit Mono', monospace;
    font-size: 13px;
    font-weight: 300;
    line-height: 1.8;
    color: #444;
    text-align: center;
}

.nft-concept-text p {
    margin: 0 0 16px;
    color: #444;
    font-size: 13px;
}


/* ── Link obra original (bajo zoom) ─────────────────────────────────────────── */
.nft-obra-link {
    width: 100%;
    text-align: center;
    margin-top: 14px;
    font-family: 'ABC Favorit Mono', monospace;
    font-size: 13px;
    font-weight: 300;
}

.nft-obra-link a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.2s;
}

.nft-obra-link a:hover {
    color: #666;
}

/* ── Wallet bar + título sección market ─────────────────────────────────────── */
.nft-wallet-bar {
    width: min(1106px, calc(100vw - 32px));
    margin: 48px auto 0;
    padding: 24px 0 20px;
    border-top: 1px solid #d7d7d7;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.nft-market-title {
    font-family: 'ABC Favorit Mono', monospace;
    font-weight: 400;
    font-size: 20px;
    line-height: 1.25;
    text-align: center;
    color: #111111;
    margin: 35px 0 0;
}

.nft-market-stats {
    display: flex;
    gap: 24px;
    font-family: 'ABC Favorit Mono', monospace;
    font-size: 12px;
    font-weight: 300;
    color: #555555;
}

.nft-wallet-btn {
    font-family: 'ABC Favorit Mono', monospace;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.04em;
    padding: 9px 20px;
    border: 1px solid #111111;
    background: #111111;
    color: #ffffff;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.nft-wallet-btn:hover {
    background: #ffffff;
    color: #111111;
}

.nft-wallet-btn.is-connected {
    background: transparent;
    color: #111111;
    border-color: #d7d7d7;
}

/* ── Separador de sección (misma estructura que wallet bar) ─────────────────── */
.nft-section-divider {
    width: min(1106px, calc(100vw - 32px));
    margin: 64px auto 0;
    padding: 24px 0 0;
    border-top: 1px solid #d7d7d7;
    display: flex;
    justify-content: center;
}

.nft-section-divider .nft-market-title {
    margin: 35px 0 0;
}

/* ── Sección piezas especiales ──────────────────────────────────────────────── */
.nft-market-special {
    width: min(1106px, calc(100vw - 32px));
    margin: 32px auto 0;
}

.nft-market-special h3,
.nft-market-collection h3 {
    font-family: 'ABC Favorit Mono', monospace;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #111111;
    margin-bottom: 20px;
}

.nft-special-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: min(820px, 100%);
    margin: 0 auto;
    width: auto !important;
    max-width: min(820px, 100%) !important;
}

.nft-special-card {
    background: #ffffff;
    display: flex;
    flex-direction: column;
    border: 1px solid #d7d7d7;
}

.nft-special-card.is-sold .nft-special-canvas,
.nft-special-card.is-sold .nft-special-video-placeholder {
    opacity: 0.35;
    filter: grayscale(1);
}

.nft-special-canvas {
    display: block;
    width: 100%;
    height: auto;
}

.nft-special-video-placeholder {
    width: 100%;
    aspect-ratio: 200 / 139;
    background: linear-gradient(140deg, #f5f3f0 0%, #e8e4de 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nft-special-video-icon {
    font-size: 32px;
    opacity: 0.3;
    font-family: monospace;
}

.nft-special-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    border-top: 1px solid #d7d7d7;
    flex: 1;
}

.nft-special-name {
    font-family: 'ABC Favorit Mono', monospace;
    font-size: 12px;
    font-weight: 400;
    color: #111111;
}

.nft-special-edition {
    font-family: 'ABC Favorit Mono', monospace;
    font-size: 11px;
    font-weight: 300;
    color: #999999;
}

.nft-special-price {
    font-family: 'ABC Favorit Mono', monospace;
    font-size: 14px;
    font-weight: 400;
    color: #111111;
    margin-top: 6px;
}

.nft-special-sold-label {
    font-family: 'ABC Favorit Mono', monospace;
    font-size: 11px;
    font-weight: 300;
    color: #bbbbbb;
    margin-top: 6px;
}

/* ── Botones de compra ──────────────────────────────────────────────────────── */
.nft-buy-btn {
    font-family: 'ABC Favorit Mono', monospace;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.04em;
    padding: 9px 0;
    border: 1px solid #111111;
    background: #111111;
    color: #ffffff;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    width: 100%;
    text-align: center;
    margin-top: 8px;
}

.nft-buy-btn:hover {
    background: #ffffff;
    color: #111111;
}

/* ── Sección grid 100 piezas ────────────────────────────────────────────────── */
.nft-market-collection {
    width: min(1106px, calc(100vw - 32px));
    margin: 48px auto 100px;
}

.nft-pieces-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 1px;
    background: #d7d7d7;
    border: 1px solid #d7d7d7;
}

/* ── Celda de pieza ─────────────────────────────────────────────────────────── */
.nft-piece-cell {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: #ffffff;
    aspect-ratio: 200 / 139;
}

.nft-piece-thumb {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nft-piece-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    opacity: 0;
    transition: opacity 0.18s, background 0.18s;
    padding: 4px;
}

.nft-piece-cell:not(.is-sold):hover .nft-piece-overlay {
    opacity: 1;
    background: rgba(255, 255, 255, 0.92);
}

.nft-piece-num {
    font-family: 'ABC Favorit Mono', monospace;
    font-size: 8px;
    font-weight: 400;
    color: #111111;
    display: block;
    line-height: 1;
}

.nft-piece-price {
    font-family: 'ABC Favorit Mono', monospace;
    font-size: 8px;
    font-weight: 300;
    color: #555555;
    display: block;
    line-height: 1;
}

.nft-piece-buy-btn {
    font-family: 'ABC Favorit Mono', monospace;
    font-size: 8px;
    font-weight: 400;
    padding: 3px 6px;
    border: 1px solid #111111;
    background: #111111;
    color: #ffffff;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    margin-top: 3px;
    line-height: 1.2;
    letter-spacing: 0.03em;
}

.nft-piece-buy-btn:hover {
    background: #ffffff;
    color: #111111;
}

/* Próximamente */
.nft-piece-soon-label {
    font-family: 'ABC Favorit Mono', monospace;
    font-size: 8px;
    font-weight: 400;
    color: #888888;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-top: 3px;
    display: block;
}

/* Sold */
.nft-piece-cell.is-sold {
    cursor: default;
}

.nft-piece-cell.is-sold .nft-piece-thumb {
    opacity: 0.45;
    filter: grayscale(1);
}

.nft-piece-cell.is-sold .nft-piece-overlay {
    opacity: 1;
    background: transparent;
    pointer-events: none;
}

.nft-piece-sold-label {
    font-family: 'ABC Favorit Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #666666;
    display: block;
    line-height: 1;
}

/* ── Modal ──────────────────────────────────────────────────────────────────── */
.nft-piece-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s, visibility 0.22s;
    padding: 20px;
}

.nft-piece-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.nft-modal-inner {
    background: #ffffff;
    max-width: 600px;
    width: 100%;
    max-height: 92vh;
    overflow-y: auto;
    position: relative;
}

.nft-modal-preview {
    width: 100%;
    border-bottom: 1px solid #d7d7d7;
    line-height: 0;
}

.nft-modal-preview canvas {
    display: block;
    width: 100%;
    height: auto;
}

.nft-modal-body {
    padding: 20px 20px 24px;
}

.nft-modal-num {
    font-family: 'ABC Favorit Mono', monospace;
    font-size: 20px;
    font-weight: 400;
    color: #111111;
    display: block;
    margin-bottom: 16px;
}

.nft-modal-meta {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e8e8e8;
}

.nft-modal-meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nft-modal-label {
    font-family: 'ABC Favorit Mono', monospace;
    font-size: 9px;
    font-weight: 300;
    color: #999999;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.nft-modal-value {
    font-family: 'ABC Favorit Mono', monospace;
    font-size: 12px;
    font-weight: 400;
    color: #111111;
}

.nft-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    /* círculo blanco con sombra — siempre visible sobre la imagen */
    background: #ffffff;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'ABC Favorit Mono', monospace;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    color: #111111;
    padding: 0;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.22);
    transition: background 0.15s, color 0.15s;
    z-index: 10;
}

.nft-modal-close:hover {
    background: #111111;
    color: #ffffff;
}

.nft-modal-buy {
    width: 100%;
    font-family: 'ABC Favorit Mono', monospace;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.05em;
    padding: 12px;
    border: 1px solid #111111;
    background: #111111;
    color: #ffffff;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.nft-modal-buy:hover {
    background: #ffffff;
    color: #111111;
}

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

@media (max-width: 768px) {

    .nft-pieces-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .nft-modal-meta {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .nft-pieces-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .nft-market-special,
    .nft-market-collection,
    .nft-wallet-bar {
        width: calc(100vw - 24px);
    }
}

/* ── Aviso red Base ────────────────────────────────────────────────────── */
.nft-network-notice {
    width: min(1106px, calc(100vw - 32px));
    margin: 10px auto 0;
    font-family: 'ABC Favorit Mono', monospace;
    font-size: 11px;
    font-weight: 300;
    color: #888888;
    text-align: center;
    line-height: 1.6;
}
.nft-network-notice strong {
    color: #555555;
    font-weight: 400;
}
.nft-network-notice a {
    color: #555555;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.nft-network-notice a:hover {
    color: #111111;
}
