/* 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 .demo-event-ribbon{
    display:inline-flex;
    align-items:center;
    min-height:29px;
    margin-bottom:9px;
    padding:6px 22px 6px 12px;
    clip-path:polygon(0 0,100% 0,calc(100% - 9px) 50%,100% 100%,0 100%);
    background:linear-gradient(105deg,#991b1b,#dc2626 72%,#ef4444);
    color:#fff;
    font-size:11px;
    font-weight:750;
    letter-spacing:.045em;
    line-height:1.2;
    text-transform:uppercase;
    text-shadow:0 1px 1px rgba(60,0,0,.35);
}

.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;
}

.organizer-market-preview{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    width:min(1120px,calc(100% - 32px));
    margin:16px auto 0;
    padding:12px 14px;
    border:1px solid #d8dde6;
    border-radius:9px;
    background:#f7f8fa;
    box-shadow:0 9px 24px rgba(15,23,42,.06);
}

.organizer-market-preview>div{
    display:grid;
    gap:2px;
}

.organizer-preview-label{
    color:#5c6678;
    font-size:.64rem;
    font-weight:700;
    letter-spacing:.055em;
    text-transform:uppercase;
}

.organizer-market-preview strong{
    color:#172033;
    font-size:.82rem;
}

.organizer-market-preview small{
    color:#70798a;
    font-size:.7rem;
}

.organizer-market-preview nav{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    flex-wrap:wrap;
    gap:7px;
}

.organizer-market-preview nav a{
    display:inline-flex;
    align-items:center;
    min-height:30px;
    padding:6px 10px;
    border:1px solid #cfd5df;
    border-radius:6px;
    background:#fff;
    color:#28344b;
    font-size:.71rem;
    font-weight:700;
    text-decoration:none;
}

.organizer-market-preview nav a:hover{
    border-color:#929dad;
    background:#eef1f5;
}

.organizer-preview-ticket{
    display:inline-flex;
    align-items:center;
    min-height:28px;
    padding:5px 9px;
    border:1px solid #cfd5df;
    border-radius:6px;
    background:#f3f5f7;
    color:#5d6675;
    font-size:.69rem;
    font-weight:700;
}

.stage-plan-access{
    margin:2px 0 16px;
}

.stage-plan-button{
    display:grid;
    grid-template-columns:36px minmax(0,1fr) auto;
    align-items:center;
    gap:11px;
    width:100%;
    min-height:60px;
    padding:9px 12px;
    border:1px solid #d7dce5;
    border-radius:8px;
    background:#f2f4f7;
    color:#172033;
    font:inherit;
    text-align:left;
    cursor:pointer;
    transition:border-color .18s ease,background .18s ease,box-shadow .18s ease,transform .18s ease;
}

.stage-plan-button:hover{
    border-color:#aeb7c5;
    background:#fff;
    box-shadow:0 8px 22px rgba(15,23,42,.08);
    transform:translateY(-1px);
}

.stage-plan-button:focus-visible{
    outline:3px solid rgba(57,72,103,.22);
    outline-offset:2px;
}

.stage-plan-icon{
    display:grid;
    place-items:center;
    width:36px;
    height:36px;
    border-radius:6px;
    background:#182133;
    color:#fff;
}

.stage-plan-icon svg{
    width:21px;
    height:21px;
    stroke:currentColor;
    stroke-width:1.7;
    stroke-linecap:round;
    stroke-linejoin:round;
}

.stage-plan-copy{
    display:grid;
    gap:2px;
    min-width:0;
}

.stage-plan-copy small{
    color:#6b7485;
    font-size:.66rem;
    font-weight:600;
    letter-spacing:.035em;
    text-transform:uppercase;
}

.stage-plan-copy strong{
    color:#172033;
    font-size:.82rem;
    font-weight:750;
}

.stage-plan-action{
    display:inline-flex;
    align-items:center;
    min-height:30px;
    padding:6px 11px;
    border:1px solid #cdd3de;
    border-radius:6px;
    background:#fff;
    color:#27334a;
    font-size:.72rem;
    font-weight:750;
}

.stage-map-dialog{
    width:min(920px,calc(100vw - 34px));
    max-width:none;
    max-height:calc(100vh - 34px);
    padding:0;
    overflow:hidden;
    border:0;
    border-radius:10px;
    background:#fff;
    color:#172033;
    box-shadow:0 30px 90px rgba(4,10,22,.38);
}

.stage-map-dialog::backdrop{
    background:rgba(8,14,27,.74);
    backdrop-filter:blur(5px);
}

.stage-map-dialog-card{
    display:grid;
    max-height:calc(100vh - 34px);
}

.stage-map-dialog-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    padding:15px 17px;
    border-bottom:1px solid #e1e5eb;
    background:#f6f7f9;
}

.stage-map-dialog-header span{
    display:block;
    margin-bottom:2px;
    color:#6f7888;
    font-size:.67rem;
    font-weight:650;
    letter-spacing:.055em;
    text-transform:uppercase;
}

.stage-map-dialog-header h2{
    margin:0;
    color:#172033;
    font-size:1.05rem;
    line-height:1.25;
}

.stage-map-dialog-close{
    display:grid;
    place-items:center;
    flex:0 0 auto;
    width:34px;
    height:34px;
    padding:0;
    border:1px solid #cfd5df;
    border-radius:6px;
    background:#fff;
    color:#27334a;
    font:400 1.45rem/1 Arial,sans-serif;
    cursor:pointer;
}

.stage-map-dialog-close:hover{
    border-color:#8e99aa;
    background:#eef1f5;
}

.stage-map-dialog-figure{
    display:grid;
    place-items:center;
    min-height:280px;
    margin:0;
    padding:18px;
    overflow:auto;
    background:#e9edf2;
}

.stage-map-dialog-figure img{
    display:block;
    max-width:100%;
    max-height:calc(100vh - 210px);
    object-fit:contain;
    border:1px solid #d7dce4;
    border-radius:6px;
    background:#fff;
    box-shadow:0 12px 28px rgba(15,23,42,.13);
}

.stage-map-dialog-description{
    margin:0;
    padding:13px 18px 15px;
    border-top:1px solid #e1e5eb;
    color:#515d70;
    font-size:.79rem;
    line-height:1.55;
    white-space:pre-line;
}

html.stage-modal-open{
    overflow:hidden;
}

.market-layout[data-template='IMMERSIVE'] .stage-plan-button{
    border-color:rgba(255,255,255,.22);
    background:rgba(255,255,255,.09);
}

.market-layout[data-template='IMMERSIVE'] .stage-plan-copy small,
.market-layout[data-template='IMMERSIVE'] .stage-plan-copy strong{
    color:#fff;
}

.market-layout[data-template='IMMERSIVE'] .stage-plan-action{
    border-color:rgba(255,255,255,.3);
}

.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}
    .stage-plan-button{grid-template-columns:34px minmax(0,1fr);padding:9px 10px}
    .stage-plan-icon{width:34px;height:34px}
    .stage-plan-action{display:none}
    .stage-map-dialog{width:calc(100vw - 18px);max-height:calc(100vh - 18px)}
    .stage-map-dialog-card{max-height:calc(100vh - 18px)}
    .stage-map-dialog-header{padding:12px 13px}
    .stage-map-dialog-figure{min-height:220px;padding:10px}
    .stage-map-dialog-figure img{max-height:calc(100vh - 180px)}
    .organizer-market-preview{align-items:stretch;flex-direction:column;width:calc(100% - 18px);margin-top:9px}
    .organizer-market-preview nav{justify-content:flex-start}
}
