/* Cards de precios: portadas reales sobre una maqueta de papel en CSS. */
.page-precios .price-list { background: transparent; }
.page-precios .price-results-bar { margin: 6px 0 12px; }
.price-card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.price-card { min-width: 0; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); }
.price-card[hidden] { display: none; }
.price-card-brand { position: absolute; top: 14px; left: 16px; z-index: 2; max-width: 42%; }
.price-editorial-logo { display: block; width: 88px; max-width: 100%; height: 32px; object-fit: contain; object-position: left center; }
.price-editorial-logo[src$="planeta-comic.webp"] { width: 110px; object-fit: cover; object-position: center; }
.price-card-brand span { font-size: 12px; line-height: 1.4; font-weight: 600; }
.price-book-stage { position: relative; height: 306px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 28px; perspective: 900px; background: radial-gradient(ellipse at 50% 35%, #fff 0%, #f7f6f2 60%, #eeede7 100%); overflow: hidden; }
.price-book-stage::after { content: ''; position: absolute; width: 142px; height: 14px; left: calc(50% - 66px); bottom: 20px; border-radius: 50%; background: rgba(23,23,23,.23); filter: blur(9px); }
.price-book-stage::before { content: ''; position: absolute; left: 16px; right: 16px; bottom: 25px; border-top: 1px solid #dedbd2; }
.price-format-size { position: absolute; top: 18px; right: 14px; font-size: 10px; line-height: 1.4; padding: 3px 7px; color: var(--muted); background: rgba(255,255,255,.88); border: 1px solid #e8e6df; }
.price-scale-guide { margin: 0 0 18px; padding: 0; color: var(--muted); font-size: 12px; line-height: 1.6; background: rgba(255,255,255,.96); }
.price-scale-guide strong { color: var(--ink); font-weight: 500; }
.price-book-comparison { position: relative; width: calc(max(var(--book-width), var(--reference-width)) + 44px); height: max(var(--book-height), var(--reference-height)); flex-shrink: 0; }
.price-book { position: relative; width: var(--book-width); height: var(--book-height); flex-shrink: 0; transform-style: preserve-3d; transform: rotateX(4deg) rotateY(-28deg); z-index: 1; }
.price-book-featured { position: absolute; left: 0; bottom: 0; z-index: 1; }
.price-book-reference { --book-width: var(--reference-width); --book-height: var(--reference-height); --book-depth: 16px; position: absolute; right: 0; bottom: 0; z-index: 0; }
.price-book-reference .price-book-front { background: #e4e1d8; }
.price-book-reference .price-book-front img { filter: grayscale(1); opacity: .55; }
.price-book-reference .price-book-back { box-shadow: 3px 8px 10px rgba(0,0,0,.1); }
.price-book-reference .price-book-spine { background: #77756c; border-color: #77756c; }
.price-book-front, .price-book-back { position: absolute; inset: 0; background: var(--ink); border-radius: 1px 2px 2px 1px; }
.price-book-front { transform: translateZ(calc(var(--book-depth) / 2)); overflow: hidden; backface-visibility: hidden; }
.price-book-front img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; background: #fff; }
.price-book-front img.price-cover-padded { object-fit: cover; }
.price-book-front::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(270deg, rgba(0,0,0,.25), rgba(255,255,255,.16) 2%, rgba(0,0,0,.12) 4%, transparent 9%, transparent 95%, rgba(255,255,255,.2)); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.price-book-back { transform: translateZ(calc(var(--book-depth) / -2)); box-shadow: 8px 12px 16px rgba(0,0,0,.16); }
.price-book-pages { position: absolute; width: var(--book-depth); left: calc(var(--book-depth) / -2); top: 2px; bottom: 2px; transform: rotateY(-90deg); background: repeating-linear-gradient(90deg, #f8f6ed 0, #f8f6ed 1px, #d9d6ca 1px, #e8e4d8 2px); border: 1px solid #c5c1b6; }
.price-book-top { position: absolute; height: var(--book-depth); top: calc(var(--book-depth) / -2 + 1px); left: 1px; right: 1px; transform: rotateX(90deg); background: repeating-linear-gradient(0deg, #f6f3e9 0, #f6f3e9 1px, #ddd9ce 1px, #ddd9ce 2px); }
.price-book-spine { position: absolute; width: var(--book-depth); right: calc(var(--book-depth) / -2); top: 0; bottom: 0; transform: rotateY(90deg); background: linear-gradient(90deg, #383832, #191917); color: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1px solid #191917; }
.price-book-spine span { writing-mode: vertical-rl; max-height: calc(100% - 20px); overflow: hidden; font-size: 8px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; letter-spacing: .3px; }
.price-cover-fallback { display: grid; place-content: center; height: 100%; padding: 12px; font-size: 11px; text-align: center; color: #fff; letter-spacing: 1px; }
.price-card-content { display: flex; flex-direction: column; align-items: flex-start; flex: 1; gap: 16px; padding: 19px 18px 22px; }
.price-card-format { min-height: 44px; font-size: 16px; font-weight: 600; line-height: 1.4; letter-spacing: -.3px; overflow-wrap: anywhere; }
.price-card-amount { display: inline-block; margin: auto 0 0; padding: 0 6px; font-size: 30px; font-weight: 700; line-height: 1.3; letter-spacing: -1.3px; font-variant-numeric: tabular-nums; background: var(--primary-color); }
.price-card-amount.price-card-amount--pending { font-size: 20px; letter-spacing: -.3px; background: #f1f0eb; }
.price-reference-note { margin: 24px 0 0; padding: 16px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.7; background: rgba(255,255,255,.96); }
@media (max-width: 1199px) {
    .price-card-grid { gap: 20px; }
}
@media (max-width: 900px) {
    .price-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 580px) {
    .price-card-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .price-card-content { padding-inline: 20px; }
    .price-card-format { min-height: 0; font-size: 18px; }
    .price-card-amount { font-size: 34px; }
}
