/* Trade · ficha del anuncio y lista horizontal de anuncios (estilos nuevos y aislados: no modifican los de siempre). */
.tad, .tpl-list, .pp2-charts, .tad-details, .pp2-sheet { --tc-line: var(--line, #E3E6EC); --tc-surface: var(--surface, #fff); --tc-act: var(--action, #2B59FF); --tc-soft: color-mix(in srgb, var(--tc-act) 8%, var(--tc-surface)); --tc-muted: var(--muted, #5B6080); }
/* ---- lista horizontal de anuncios ---- */
.tpl-list { display: grid; gap: 10px; margin: 6px 0 18px; }
.tpl-row { display: grid; grid-template-columns: 78px minmax(150px, 1fr) minmax(0, 2.1fr) auto; align-items: center; gap: 12px 18px; padding: 12px 16px; border: 1px solid var(--tc-line); border-radius: 18px; background: var(--tc-surface); transition: transform .25s ease, box-shadow .25s ease, border-color .25s; }
.tpl-row:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--tc-act) 45%, var(--tc-line)); box-shadow: 0 16px 34px -22px rgba(20, 24, 60, .45); }
.tpl-photo { display: grid; place-items: center; width: 78px; height: 96px; border-radius: 12px; background: var(--tc-soft); overflow: hidden; position: relative; text-decoration: none; }
.tpl-photo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.tpl-photo .ft { position: absolute; left: 4px; bottom: 4px; padding: 1px 7px; border-radius: 99px; background: rgba(15, 18, 40, .78); color: #fff; font-size: .68rem; font-weight: 700; }
.tpl-seller { min-width: 0; display: grid; gap: 3px; }
.tpl-user { display: flex; align-items: center; gap: 7px; font-weight: 800; text-decoration: none; color: inherit; min-width: 0; } .tpl-user:hover { color: var(--tc-act); }
.tpl-user span.u { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tpl-flag { font-size: 1.15rem; line-height: 1; flex: none; } .tpl-rate { font-size: .82rem; color: var(--tc-muted); }
.tpl-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-width: 0; }
.tpl-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 99px; background: var(--tc-soft); font-size: .8rem; font-weight: 650; white-space: nowrap; }
.tpl-chip.ok { background: #E7FAF1; color: #0A7A4B; } .tpl-chip.no { background: #F3F4F8; color: #8A90A8; font-weight: 600; } .tpl-chip.op { background: color-mix(in srgb, var(--tc-act) 14%, var(--tc-surface)); color: var(--tc-act); } .tpl-chip.star { background: #FFF4D6; color: #8A5A00; }
.tpl-buy { display: grid; justify-items: end; gap: 4px; text-align: right; }
.tpl-price { font-size: 1.35rem; font-weight: 850; letter-spacing: -.02em; line-height: 1.1; } .tpl-buy small { color: var(--tc-muted); font-size: .78rem; }
@media (max-width: 860px) {
    .tpl-row { grid-template-columns: 64px minmax(0, 1fr) auto; grid-template-areas: "ph se bu" "me me me"; padding: 12px; }
    .tpl-photo { grid-area: ph; width: 64px; height: 80px; } .tpl-seller { grid-area: se; } .tpl-buy { grid-area: bu; } .tpl-meta { grid-area: me; }
    .tpl-price { font-size: 1.15rem; }
}
/* ---- gráficas integradas bajo los indicadores ---- */
.pp2-charts { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; margin: 18px 0; align-items: stretch; }
.pp2-charts.single { grid-template-columns: 1fr; } .pp2-charts .pp-card { margin: 0; min-width: 0; } .pp2-charts svg { max-width: 100%; height: auto; }
@media (max-width: 980px) { .pp2-charts { grid-template-columns: 1fr; } }
/* ---- ficha del anuncio ---- */
.tad { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: clamp(20px, 3.4vw, 44px); align-items: start; margin: 8px 0 26px; }
@media (max-width: 920px) { .tad { grid-template-columns: 1fr; } }
.tad-media { position: sticky; top: 14px; } @media (max-width: 920px) { .tad-media { position: static; } }
.tad-main { position: relative; display: grid; place-items: center; min-height: 360px; padding: clamp(14px, 3vw, 30px); border-radius: 26px; background: radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--tc-act) 12%, var(--tc-surface)), var(--tc-soft) 72%); border: 1px solid var(--tc-line); overflow: hidden; }
.tad-main img { max-width: 100%; max-height: 520px; object-fit: contain; filter: drop-shadow(0 22px 24px rgba(20, 24, 60, .28)); transition: transform .5s cubic-bezier(.2, .8, .2, 1); } .tad-main:hover img { transform: scale(1.04); }
.tad-badges { position: absolute; left: 14px; top: 14px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 2; }
.tad-badges span { padding: 5px 12px; border-radius: 99px; font-size: .78rem; font-weight: 800; background: rgba(255, 255, 255, .92); border: 1px solid var(--tc-line); } .tad-badges .hot { background: linear-gradient(135deg, #FDE68A, #F59E0B); border-color: transparent; color: #3B2300; }
.tad-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; } .tad-thumbs img { flex: none; width: 70px; height: 70px; object-fit: cover; border-radius: 12px; border: 2px solid transparent; cursor: pointer; background: var(--tc-soft); } .tad-thumbs img.on { border-color: var(--tc-act); }
.tad-buy { display: grid; gap: 14px; min-width: 0; }
.tad-tags { display: flex; gap: 6px; flex-wrap: wrap; } .tad-buy h1 { margin: 0; font-size: clamp(1.5rem, 3.2vw, 2.15rem); line-height: 1.12; letter-spacing: -.03em; }
.tad-prod { color: var(--tc-muted); text-decoration: none; font-weight: 600; } .tad-prod:hover { color: var(--tc-act); }
.tad-pricebox { display: grid; gap: 6px; padding: 18px 20px; border-radius: 22px; background: linear-gradient(140deg, color-mix(in srgb, var(--tc-act) 14%, var(--tc-surface)), var(--tc-surface)); border: 1px solid color-mix(in srgb, var(--tc-act) 28%, var(--tc-line)); }
.tad-price { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 900; letter-spacing: -.04em; line-height: 1; } .tad-sub { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--tc-muted); font-size: .9rem; font-weight: 600; }
.tad-act { display: flex; flex-wrap: wrap; gap: 8px; } .tad-act .btn { flex: 1 1 auto; justify-content: center; text-align: center; min-height: 48px; }
.tad-safe { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; background: #E7FAF1; color: #0A5C3A; font-size: .88rem; } .tad-safe b { font-size: 1.2rem; line-height: 1; }
.tad-seller { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; align-items: center; padding: 16px 18px; border: 1px solid var(--tc-line); border-radius: 22px; background: var(--tc-surface); }
.tad-av { grid-row: span 3; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--tc-act), color-mix(in srgb, var(--tc-act) 55%, #7C3AED)); color: #fff; font-weight: 850; font-size: 1.2rem; overflow: hidden; } .tad-av img { width: 100%; height: 100%; object-fit: cover; }
.tad-seller .nm { display: flex; align-items: center; gap: 7px; font-weight: 850; font-size: 1.05rem; text-decoration: none; color: inherit; } .tad-seller .nm:hover { color: var(--tc-act); } .tad-seller .st { color: var(--tc-muted); font-size: .86rem; } .tad-seller .go { grid-column: 1 / -1; margin-top: 8px; }
.tad-details { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; margin: 6px 0 26px; align-items: start; } @media (max-width: 920px) { .tad-details { grid-template-columns: 1fr; } }
.tad-card { padding: 20px 22px; border: 1px solid var(--tc-line); border-radius: 22px; background: var(--tc-surface); } .tad-card h2 { margin: 0 0 12px; font-size: 1.1rem; }
.tad-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 10px; } .tad-facts div { padding: 10px 12px; border-radius: 14px; background: var(--tc-soft); } .tad-facts small { display: block; color: var(--tc-muted); font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; } .tad-facts strong { display: block; font-size: .95rem; margin-top: 2px; overflow-wrap: anywhere; }
@media (prefers-reduced-motion: reduce) { .tpl-row, .tad-main img { transition: none; } }

/* ---- ficha del producto integrada junto al nombre ---- */
.pp2-sheet { margin: 16px 0 6px; } .pp2-sheet h2 { margin: 0 0 10px; font-size: 1.05rem; }
.pp2-tech { margin-top: 10px; } .pp2-tech summary { cursor: pointer; font-weight: 750; color: var(--tc-act); font-size: .9rem; } .pp2-tech .tad-facts { margin-top: 10px; }
.pp2-sheet .tad-facts { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; }
