/* ── TIENDA SINGLE ── */
.m26-tienda-banner { min-height: 240px; background-size: cover; background-position: center; position: relative; }
.m26-tienda-banner::after { content:''; position:absolute; inset:0; background:linear-gradient(to bottom, rgba(10,14,26,.3), rgba(10,14,26,.8)); }
.m26-tienda-hero { position: relative; z-index: 1; display: flex; align-items: flex-end; gap: 24px; padding: 40px 0 32px; }
.m26-tienda-logo-wrap { flex-shrink: 0; }
.m26-tienda-logo { width: 96px; height: 96px; border-radius: 16px; object-fit: cover; border: 3px solid var(--gold); }
.m26-tienda-logo-initials { width: 96px; height: 96px; border-radius: 16px; background: var(--gold); color: #0A0E1A; display: flex; align-items: center; justify-content: center; font-size: 40px; font-weight: 800; border: 3px solid var(--gold); }
.m26-tienda-desc { font-size: 14px; color: var(--text-muted); margin: 8px 0 12px; max-width: 500px; }
.m26-tienda-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Products grid */
.m26-products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; min-height: 200px; }
.m26-product-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: all .2s; }
.m26-product-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.m26-product-img { height: 160px; overflow: hidden; }
.m26-product-img img { width: 100%; height: 100%; object-fit: cover; }
.m26-product-body { padding: 12px; }
.m26-product-name { font-size: 13px; font-weight: 600; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.m26-product-price { font-size: 15px; font-weight: 700; color: var(--gold-light); }

/* ── CHAT ── */
.m26-chat-modal { position: fixed; inset: 0; z-index: 999; background: rgba(0,0,0,.6); display: flex; align-items: flex-end; justify-content: flex-end; padding: 20px; }
.m26-chat-box { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; width: 380px; max-height: 500px; display: flex; flex-direction: column; }
.m26-chat-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border); font-weight: 600; font-size: 14px; }
.m26-chat-close { background: none; border: none; color: var(--text-muted); font-size: 18px; cursor: pointer; }
.m26-chat-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; min-height: 200px; }
.m26-msg { display: flex; flex-direction: column; gap: 2px; }
.m26-msg-mine { align-items: flex-end; }
.m26-msg-other { align-items: flex-start; }
.m26-msg-bubble { background: var(--surface2); padding: 8px 12px; border-radius: 12px; font-size: 13px; max-width: 260px; word-break: break-word; }
.m26-msg-mine .m26-msg-bubble { background: rgba(201,168,76,.15); color: var(--text); }
.m26-msg-time { font-size: 11px; color: var(--text-muted); }
.m26-chat-input-wrap { padding: 12px; border-top: 1px solid var(--border); display: flex; gap: 8px; align-items: flex-end; }
.m26-chat-input-wrap textarea { flex: 1; }
.m26-chat-input-wrap .m26-btn { padding: 10px 16px; flex-shrink: 0; }

/* ── SUBASTAS ── */
.m26-subastas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; min-height: 200px; }
.m26-subasta-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: all .2s; }
.m26-subasta-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.m26-subasta-img { height: 180px; overflow: hidden; }
.m26-subasta-img img { width: 100%; height: 100%; object-fit: cover; }
.m26-subasta-body { padding: 16px; }
.m26-live-badge { display: inline-flex; align-items: center; gap: 4px; background: rgba(239,68,68,.15); color: var(--red); border: 1px solid rgba(239,68,68,.3); padding: 2px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%,100%{opacity:1}50%{opacity:.6} }
.m26-subasta-title { font-size: 14px; font-weight: 700; margin: 8px 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.m26-subasta-price { font-size: 20px; font-weight: 800; color: var(--gold-light); margin-bottom: 4px; }
.m26-subasta-timer { font-size: 22px; font-weight: 800; color: var(--amber); font-variant-numeric: tabular-nums; margin-top: 8px; }
.m26-subasta-status { font-size: 13px; color: var(--text-muted); margin-top: 8px; }

/* Subasta detail */
.m26-subasta-detail { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }
.m26-bid-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-top: 20px; }
.m26-bid-current { margin-bottom: 16px; }
.m26-bid-amount { display: block; font-size: 40px; font-weight: 800; color: var(--gold-light); line-height: 1.1; }
.m26-bid-timer { margin-bottom: 12px; }
.m26-countdown { display: block; font-size: 36px; font-weight: 800; color: var(--amber); font-variant-numeric: tabular-nums; }
.m26-bid-pujas-count { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.m26-bid-form { border-top: 1px solid var(--border); padding-top: 16px; }
.m26-subasta-status-msg { text-align: center; font-size: 16px; padding: 24px; color: var(--text-muted); }
.m26-pujas-list { display: flex; flex-direction: column; gap: 8px; }
.m26-puja-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; background: var(--surface2); border-radius: 8px; font-size: 13px; }
.m26-puja-top { background: rgba(201,168,76,.1); border: 1px solid rgba(201,168,76,.3); }
.m26-puja-name { color: var(--text-muted); }
.m26-puja-amount { font-weight: 700; color: var(--gold-light); }
.m26-back-link { color: var(--text-muted); font-size: 13px; display: inline-block; margin-bottom: 20px; }
.m26-back-link:hover { color: var(--gold); }

/* ── SE BUSCA ── */
.m26-sb-list { display: flex; flex-direction: column; gap: 12px; }
.m26-sb-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; display: flex; justify-content: space-between; align-items: center; gap: 16px; transition: border-color .2s; }
.m26-sb-card:hover { border-color: var(--gold); }
.m26-sb-card-body { flex: 1; }
.m26-sb-title { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.m26-sb-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.m26-sb-desc { font-size: 13px; color: var(--text-muted); }
.m26-sb-card-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }

/* ── LICITACIONES ── */
.m26-lic-list { display: flex; flex-direction: column; gap: 12px; }
.m26-lic-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; display: flex; justify-content: space-between; align-items: center; gap: 16px; transition: border-color .2s; }
.m26-lic-card:hover { border-color: var(--gold); }
.m26-lic-card-body { flex: 1; }
.m26-lic-title { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.m26-lic-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.m26-lic-desc { font-size: 13px; color: var(--text-muted); }
.m26-lic-card-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }

/* ── MODAL GENÉRICO ── */
.m26-modal-overlay { position: fixed; inset: 0; z-index: 999; background: rgba(0,0,0,.7); display: flex; align-items: center; justify-content: center; padding: 20px; }
.m26-modal-box { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto; }
.m26-modal-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border); font-weight: 700; }
.m26-modal-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.m26-module-page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; flex-wrap: wrap; gap: 12px; }
.m26-module-page-header h1 { font-size: 26px; font-weight: 700; }
.m26-module-tabs { display: flex; gap: 6px; }

@media(max-width:768px){
    .m26-subasta-detail { grid-template-columns: 1fr; }
    .m26-tienda-hero { flex-direction: column; align-items: flex-start; }
    .m26-sb-card,.m26-lic-card { flex-direction: column; align-items: flex-start; }
    .m26-chat-box { width: 100%; }
    .m26-module-page-header { flex-direction: column; align-items: flex-start; }
}
