/* Marketplace: detalle de evento y compra por variante */
.marketplace-page .marketplace-hero{position:relative;overflow:hidden;background:linear-gradient(130deg,rgba(33,45,124,.78),rgba(80,56,181,.70) 55%,rgba(122,70,214,.66));border:1px solid rgba(255,255,255,.22);box-shadow:0 18px 42px rgba(41,42,108,.13);backdrop-filter:blur(9px)}.marketplace-page .marketplace-hero::after{content:'';position:absolute;inset:0;background:radial-gradient(circle at 90% 15%,rgba(255,255,255,.22),transparent 30%),radial-gradient(circle at 8% 100%,rgba(255,255,255,.13),transparent 35%);pointer-events:none}.marketplace-page .marketplace-hero>*{position:relative;z-index:1}.ticket-anchor{scroll-margin-top:24px}
/* Detalle comercial: jerarquía de portada, información y entradas. */
.market-stage{max-width:1120px;margin:0 auto}.market-layout{overflow:hidden;border:1px solid #e5e8f0;border-radius:28px;background:#fff;box-shadow:0 24px 60px rgba(15,23,42,.10)}.market-cover{position:relative;display:grid;place-items:center;height:310px;overflow:hidden;background:linear-gradient(135deg,var(--market-primary,#4338ca),var(--market-accent,#7c3aed))}.market-cover img{width:100%;height:100%;object-fit:cover;object-position:var(--market-cover-position,center center)}.market-cover:after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,rgba(10,10,35,.05),rgba(10,10,35,.70))}.market-cover-empty{z-index:1;color:#fff;font-size:5rem}.market-cover-title{position:absolute;z-index:2;right:34px;bottom:28px;left:34px;color:#fff}.market-cover-title h1{max-width:780px;margin:10px 0 0;font-size:clamp(2rem,4vw,3.4rem);line-height:1.03}.market-cover-title p{margin:8px 0 0;opacity:.9}.template-badge{border:1px solid rgba(255,255,255,.24);background:rgba(255,255,255,.17);color:#fff;backdrop-filter:blur(10px)}.market-content{padding:30px}.market-intro{max-width:860px;color:#4f5870;font-size:1.04rem;line-height:1.72}.market-highlight{max-width:860px;margin:18px 0;padding:14px 16px;border-left:4px solid var(--market-primary,#4338ca);border-radius:0 12px 12px 0;background:#f5f4ff;color:#4e5971;line-height:1.5}.market-meta{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:24px 0}.market-meta div{padding:14px;border:1px solid #e9ebf2;border-radius:15px;background:#fbfcff}.market-meta strong{display:block;color:#7a8397;font-size:.77rem;letter-spacing:.04em;text-transform:uppercase}.market-meta span{display:block;margin-top:5px;color:#17214d;font-weight:800}.market-tickets{margin-top:22px}.market-tickets .table-card{border-radius:18px;box-shadow:none}.market-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:24px}.ticket-section-heading{padding:20px 20px 0}.ticket-section-heading h2{margin:0;color:#23305a;font-size:1.2rem}.ticket-section-heading p{margin:6px 0 0}.ticket-cart-form{display:flex;align-items:center;justify-content:flex-end;gap:9px}.quantity-stepper{display:inline-flex;align-items:center;overflow:hidden;border:1px solid #dbe0ec;border-radius:10px;background:#fff}.quantity-stepper button{display:grid;place-items:center;width:31px;height:34px;border:0;background:#f4f5fa;color:#4238b8;font:900 1rem/1 system-ui;cursor:pointer}.quantity-stepper button:hover:not(:disabled){background:#ecebff}.quantity-stepper button:disabled{color:#b8bfd0;cursor:not-allowed}.quantity-stepper input{width:36px;height:34px;border:0;border-right:1px solid #e7eaf1;border-left:1px solid #e7eaf1;outline:0;color:#26315b;font:800 .82rem/1 system-ui;text-align:center;appearance:textfield}.quantity-stepper input::-webkit-outer-spin-button,.quantity-stepper input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.ticket-sold-out{display:inline-flex;padding:7px 10px;border-radius:9px;background:#fff2f2;color:#b42318;font-size:.76rem;font-weight:900}.ticket-empty-state{display:grid;gap:5px;margin-top:22px;padding:18px 20px;border:1px dashed #d9deea;border-radius:16px;background:#fafbfe;color:#66738a}.ticket-empty-state strong{color:#2e3963}
.market-layout[data-template='CARD_GRID'] .market-cover{height:190px}.market-layout[data-template='CARD_GRID'] .market-content{display:grid;grid-template-columns:1.1fr .9fr;gap:22px}.market-layout[data-template='CARD_GRID'] .market-meta{grid-template-columns:1fr 1fr}.market-layout[data-template='CARD_GRID'] .market-tickets{margin-top:0}.market-layout[data-template='PROMO_DETAIL'] .market-cover{height:390px}.market-layout[data-template='PROMO_DETAIL'] .market-content{padding:38px}.market-layout[data-template='PROMO_DETAIL'] .market-cover-title h1{font-size:clamp(2.4rem,5vw,4.2rem)}.market-layout[data-template='IMMERSIVE']{border-color:#252052;background:#12102f}.market-layout[data-template='IMMERSIVE'] .market-cover{height:430px}.market-layout[data-template='IMMERSIVE'] .market-content{background:radial-gradient(circle at top right,#332a70,#12102f 60%);color:#fff}.market-layout[data-template='IMMERSIVE'] .market-intro{color:#d7d4f2}.market-layout[data-template='IMMERSIVE'] .market-highlight{background:rgba(255,255,255,.10);color:#fff}.market-layout[data-template='IMMERSIVE'] .market-meta div{border-color:rgba(255,255,255,.15);background:rgba(255,255,255,.08)}.market-layout[data-template='IMMERSIVE'] .market-meta strong{color:#c1bee3}.market-layout[data-template='IMMERSIVE'] .market-meta span{color:#fff}.market-layout[data-template='IMMERSIVE'] .table-card{border-color:rgba(255,255,255,.15);background:rgba(255,255,255,.06)}.market-layout[data-template='IMMERSIVE'] .table-modern th{background:rgba(255,255,255,.08);color:#fff}.market-layout[data-template='IMMERSIVE'] .table-modern td{border-color:rgba(255,255,255,.1);color:#f4f3ff}.market-layout[data-template='IMMERSIVE'] .muted{color:#d6d2f3!important}.market-layout[data-template='IMMERSIVE'] .quantity-stepper{border-color:rgba(255,255,255,.23)}.market-layout[data-template='IMMERSIVE'] .quantity-stepper button{background:rgba(255,255,255,.12);color:#fff}.market-layout[data-template='IMMERSIVE'] .quantity-stepper input{border-color:rgba(255,255,255,.15);background:rgba(255,255,255,.06);color:#fff}
@media(max-width:780px){.marketplace-page .marketplace-hero{border-radius:20px}.market-cover{height:250px}.market-cover-title{right:22px;bottom:20px;left:22px}.market-content{padding:20px}.market-meta{grid-template-columns:1fr 1fr}.market-layout[data-template='CARD_GRID'] .market-content{display:block}.market-layout[data-template='PROMO_DETAIL'] .market-cover,.market-layout[data-template='IMMERSIVE'] .market-cover{height:290px}.market-actions{align-items:stretch;flex-direction:column}.ticket-cart-form{justify-content:flex-start;flex-wrap:wrap}.ticket-section-heading{padding:17px 17px 0}.ticket-cart-form .btn{min-height:36px}}

/* Evita que la marca de agua del fallback invada el titulo del evento. */
.market-cover{
    isolation:isolate;
}

.market-cover:after{
    z-index:1;
}

.market-cover-empty{
    position:absolute;
    z-index:0;
    right:42px;
    top:42px;
    max-width:56%;
    color:rgba(255,255,255,.16);
    font-size:clamp(3.6rem,8vw,7.5rem);
    font-weight:950;
    line-height:.86;
    letter-spacing:0;
    text-align:right;
    pointer-events:none;
    user-select:none;
}

.market-cover-title{
    z-index:2;
    max-width:min(760px,calc(100% - 68px));
}

.market-cover-title h1{
    max-width:720px;
    overflow-wrap:anywhere;
    text-wrap:balance;
}

.market-layout[data-template='CARD_GRID'] .market-cover-title h1{
    font-size:clamp(1.7rem,3vw,2.55rem);
}

@media(max-width:780px){
    .market-cover-empty{
        right:22px;
        top:26px;
        max-width:72%;
        font-size:clamp(3rem,16vw,5.4rem);
    }

    .market-cover-title{
        max-width:calc(100% - 44px);
    }

    .market-cover-title h1{
        font-size:clamp(1.75rem,8vw,2.55rem);
    }
}

/* Detalle público compacto: aproximadamente 80 % del diseño original. */
.market-detail-page{
    width:min(880px,calc(100% - 32px));
    max-width:none;
    padding:26px 0;
}

.market-detail-page .market-layout{
    border-radius:22px;
}

.market-detail-page .market-cover{
    height:240px;
}

.market-detail-page .market-cover-title{
    right:27px;
    bottom:21px;
    left:27px;
}

.market-detail-page .market-cover-title h1{
    max-width:620px;
    margin-top:8px;
    font-size:clamp(1.65rem,3.2vw,2.65rem);
}

.market-detail-page .market-cover-title p{
    margin-top:6px;
    font-size:.82rem;
}

.market-detail-page .market-cover-empty{
    right:32px;
    top:32px;
    font-size:clamp(3rem,6vw,6rem);
}

.market-detail-page .badge{
    padding:6px 11px;
    font-size:.72rem;
}

.market-detail-page .market-content{
    padding:23px;
}

.market-detail-page .market-intro{
    font-size:.86rem;
    line-height:1.55;
}

.market-detail-page .market-highlight{
    margin:14px 0;
    padding:11px 13px;
    font-size:.82rem;
}

.market-detail-page .market-meta{
    gap:9px;
    margin:18px 0;
}

.market-detail-page .market-meta div{
    padding:10px 11px;
    border-radius:12px;
}

.market-detail-page .market-meta strong{
    font-size:.66rem;
}

.market-detail-page .market-meta span{
    margin-top:4px;
    font-size:.82rem;
}

.market-detail-page .market-extra-blocks{
    gap:9px;
    margin:14px 0;
}

.market-detail-page .market-extra-block{
    padding:11px 12px;
    border-radius:12px;
}

.market-detail-page .market-tickets,
.market-detail-page .ticket-empty-state{
    margin-top:16px;
}

.market-detail-page .ticket-empty-state{
    padding:13px 15px;
    border-radius:13px;
    font-size:.82rem;
}

.market-detail-page .ticket-section-heading{
    padding:15px 16px 0;
}

.market-detail-page .ticket-section-heading h2{
    font-size:1rem;
}

.market-detail-page .table-modern{
    font-size:.78rem;
}

.market-detail-page .table-modern th,
.market-detail-page .table-modern td{
    padding:10px;
}

.market-detail-page .btn{
    padding:10px 15px;
    border-radius:11px;
    font-size:.8rem;
}

.market-detail-page .btn.compact{
    padding:7px 11px;
    font-size:.74rem;
}

.market-detail-page .market-actions{
    margin-top:18px;
    padding:0 23px 23px!important;
}

.market-detail-page .market-layout[data-template='CARD_GRID'] .market-cover{height:150px}
.market-detail-page .market-layout[data-template='PROMO_DETAIL'] .market-cover{height:310px}
.market-detail-page .market-layout[data-template='PROMO_DETAIL'] .market-content{padding:30px}
.market-detail-page .market-layout[data-template='PROMO_DETAIL'] .market-cover-title h1{font-size:clamp(2rem,4vw,3.35rem)}
.market-detail-page .market-layout[data-template='IMMERSIVE'] .market-cover{height:340px}
.market-detail-page .market-layout[data-template='POSTER_LANDING'] .market-cover{height:min(510px,62vh)}
.market-detail-page .market-layout[data-template='TICKET_PANEL']{grid-template-columns:minmax(0,1fr) 305px}
.market-detail-page .market-layout[data-template='TICKET_PANEL'] .market-cover{min-height:415px}

@media(max-width:780px){
    .market-detail-page{width:calc(100% - 18px);padding:12px 0}
    .market-detail-page .market-cover{height:205px}
    .market-detail-page .market-cover-title{right:18px;bottom:14px;left:18px}
    .market-detail-page .market-cover-title h1{font-size:clamp(1.45rem,7vw,2rem)}
    .market-detail-page .market-content{padding:16px}
    .market-detail-page .market-layout[data-template='PROMO_DETAIL'] .market-cover,
    .market-detail-page .market-layout[data-template='IMMERSIVE'] .market-cover{height:245px}
    .market-detail-page .market-layout[data-template='TICKET_PANEL']{display:block}
}
