:root{--paper:#f8f8f8;--ink:#26292e;--wine:#111315;--line:#c7cad1;--brass:#0fb37f;--muted:#636a78}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:13px/1.5 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}button,input,select{font:inherit}button{cursor:pointer;border:1px solid var(--line);background:#fbfbfb;color:var(--ink);padding:9px 13px;border-radius:4px;transition:background .15s}button:hover{background:#dcdee2}button:disabled{opacity:.35;cursor:default}button.active{background:var(--ink);color:var(--paper);border-color:var(--ink)}button.primary{background:var(--wine);color:var(--paper);border-color:var(--wine)}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--brass);outline-offset:2px}input,select{width:100%;padding:9px;border:1px solid var(--line);border-radius:3px;background:#ffffff;color:var(--ink)}label{display:block;color:#565c69;font-size:11px;letter-spacing:.3px;margin:9px 0}label input,label select{margin-top:5px}input[type=color]{height:38px;padding:4px}.sidebar{position:fixed;inset:0 auto 0 0;width:215px;background:#eaebee;border-right:1px solid var(--line);padding:36px 20px}.brand{font:42px -apple-system,BlinkMacSystemFont,'SF Pro Display','Inter','Segoe UI',sans-serif;letter-spacing:-3px;color:var(--ink);text-decoration:none;display:block;padding:0 10px 35px}.brand span{font:12px -apple-system,BlinkMacSystemFont,'SF Pro Display','Inter','Segoe UI',sans-serif;color:var(--brass);vertical-align:super;margin-left:4px}.eyebrow{font-size:9px;letter-spacing:2.3px;color:var(--muted);text-transform:uppercase}.sidebar>.eyebrow{padding:15px 10px;border-top:1px solid var(--line)}.nav{width:100%;text-align:left;margin:5px 0;border:0;background:none;padding:13px 10px}.nav.active{background:#d2d5da;color:var(--wine);border-left:2px solid var(--wine);border-radius:0}.side-bottom{position:absolute;bottom:30px;font-size:10px;line-height:2;color:var(--muted)}.dot{display:inline-block;width:6px;height:6px;background:#0c9a6e;border-radius:50%;margin-right:5px}main{margin-left:215px;padding:30px 36px 0;max-width:1800px}header{display:flex;justify-content:space-between;align-items:center;gap:20px}h1{font:42px/1.15 -apple-system,BlinkMacSystemFont,'SF Pro Display','Inter','Segoe UI',sans-serif;letter-spacing:-1.5px;margin:14px 0 25px;font-weight:400}h1 em,h2 em{color:var(--wine)}h2{font:28px/1.2 -apple-system,BlinkMacSystemFont,'SF Pro Display','Inter','Segoe UI',sans-serif;font-weight:400;letter-spacing:-.6px}h3{font:17px -apple-system,BlinkMacSystemFont,'SF Pro Display','Inter','Segoe UI',sans-serif;font-weight:400}.header-actions{display:flex;gap:8px}.context{display:flex;gap:20px;align-items:center;padding:12px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin-bottom:24px}.context label{display:flex;align-items:center;gap:10px;margin:0}.context select{width:300px;margin:0}.context span{color:var(--muted);font-size:10px;margin-right:auto}.stats{display:grid;grid-template-columns:repeat(4,1fr);margin:0 0 24px}.stats>div{padding:0 24px;border-right:1px solid var(--line)}.stats>div:first-child{padding-left:0}.stats span{display:block;color:var(--muted);font-size:10px;letter-spacing:1px;text-transform:uppercase}.stats strong{font:32px -apple-system,BlinkMacSystemFont,'SF Pro Display','Inter','Segoe UI',sans-serif;display:block;margin-top:7px}.editor-layout{display:grid;grid-template-columns:minmax(400px,1fr) 260px;gap:22px;align-items:start}.studio{border:1px solid var(--line);border-radius:5px;overflow:hidden;background:#eff0f2}.toolbar{display:flex;align-items:center;gap:6px;padding:12px;border-bottom:1px solid var(--line);background:#fbfbfb}.toolbar button{padding:7px 10px}.spacer{flex:1}.floorbar{display:flex;gap:8px;justify-content:space-between;padding:12px;background:#eaebee;border-bottom:1px solid var(--line)}.floorbar button{padding:7px 12px;margin-right:5px;font-size:11px}.canvas-wrap{height:min(58vw,620px);min-height:400px;overflow:hidden}svg{width:100%;height:100%;display:block;touch-action:none;user-select:none}svg .seat{cursor:pointer}svg .seat:hover rect{stroke:#26292e;stroke-width:3}svg text{font:9px sans-serif;pointer-events:none}.stage{font-size:11px;letter-spacing:4px;fill:#636a78}.mapnote{font-size:11px;fill:#636a78}.general-label{font:17px -apple-system,BlinkMacSystemFont,'SF Pro Display','Inter','Segoe UI',sans-serif;fill:#26292e}.map-footer{padding:14px;border-top:1px solid var(--line);background:#fbfbfb;color:var(--muted);font-size:10px}.map-footer #legend{display:flex;flex-wrap:wrap;gap:12px;margin-top:12px}#legend i{width:8px;height:8px;display:inline-block;border-radius:50%;margin-right:5px}.properties{padding:20px;background:#fbfbfb;border:1px solid var(--line);border-radius:5px}.properties h2{font-size:24px;margin:12px 0 24px}.form-section{border-top:1px solid var(--line);padding:9px 0 15px}.two{display:grid;grid-template-columns:1fr 1fr;gap:8px;align-items:end}.two button{margin-bottom:9px}.wide{width:100%;margin:5px 0}.note{font-size:10px;color:var(--muted);line-height:1.7}.check{display:flex;align-items:center;gap:7px}.check input{width:auto;margin:0}.general-card{border-top:1px dashed var(--line);margin-top:15px;padding-top:15px;font-size:11px}.buyer-head{max-width:600px;margin:30px auto;text-align:center}.buyer-head h2{font:58px -apple-system,BlinkMacSystemFont,'SF Pro Display','Inter','Segoe UI',sans-serif;margin:10px}.buyer-layout{display:grid;grid-template-columns:minmax(400px,1fr) 300px;gap:24px}.buyer-layout svg{height:550px}.checkout{background:#e2e4e8;padding:24px;border-radius:5px}.checkout h2{font-size:30px}.checkout #cart{font-size:12px;line-height:1.8}#total p{display:flex;justify-content:space-between;font-size:11px}.total-line{border-top:1px solid var(--line);padding:15px 0;display:flex;justify-content:space-between;align-items:center}.total-line strong{font:28px -apple-system,BlinkMacSystemFont,'SF Pro Display','Inter','Segoe UI',sans-serif}#receipt{font-size:11px}.order{display:flex;align-items:center;gap:30px;padding:20px 0;border-bottom:1px solid var(--line)}.order>div{flex:1}.order h3{font-size:24px;margin:8px 0}.order>strong{font:28px -apple-system,BlinkMacSystemFont,'SF Pro Display','Inter','Segoe UI',sans-serif}.roadmap{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}.roadmap article{border:1px solid var(--line);padding:24px;line-height:1.8}.roadmap h3{font-size:25px}footer{margin-top:32px;padding:20px 0;border-top:1px solid var(--line);font-size:9px;letter-spacing:1.5px;color:var(--muted);display:flex;justify-content:space-between}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:var(--ink);color:var(--paper);padding:14px 22px;box-shadow:0 6px 30px #30282433;border-radius:5px;opacity:0;pointer-events:none;max-width:80vw;z-index:20}#toast.show{opacity:1}[hidden]{display:none!important}@media(max-width:1100px){main{padding:25px 20px 0;margin-left:170px}.sidebar{width:170px;padding:30px 12px}.brand{font-size:36px}.editor-layout{grid-template-columns:minmax(350px,1fr) 230px}.context{flex-wrap:wrap}.buyer-layout{grid-template-columns:1fr 260px}h1{font-size:34px}}@media(max-width:800px){.sidebar{position:static;width:auto;display:flex;flex-wrap:wrap;padding:12px;gap:6px}.brand{font-size:30px;padding:0 20px 0 0}.sidebar>.eyebrow,.side-bottom{display:none}.nav{width:auto;font-size:11px;margin:0;padding:10px}main{margin:0;padding:20px 14px}.editor-layout,.buyer-layout{grid-template-columns:1fr}.properties{display:grid;grid-template-columns:1fr 1fr;gap:15px}.properties>h2,.properties>.eyebrow{grid-column:1/-1;margin:0}.canvas-wrap{height:450px;min-height:0}header{flex-wrap:wrap}.context select{width:240px}.stats>div{padding:0 10px}.stats span{font-size:8px}.roadmap{grid-template-columns:1fr}.buyer-layout svg{height:430px}.order{flex-wrap:wrap}.context span{width:100%}}
/* El plano conserva su proporción en pantallas compactas. */
.canvas-wrap{height:auto;min-height:0;aspect-ratio:900/650}.buyer-layout svg{height:auto;aspect-ratio:900/650}svg .seat:focus rect{stroke:#26292e;stroke-width:3}
svg .seat.chosen rect{fill:#0066ff;stroke:white;stroke-width:1.5}svg .seat.chosen text{fill:white;font-weight:bold}svg .seat.chosen:hover rect{fill:#0050cf;stroke:white}

#legend button{padding:3px 7px;font-size:11px;background:transparent}.locality-menu{position:fixed;z-index:10000;width:240px;background:#ffffff;border:1px solid #c7cad1;border-radius:6px;box-shadow:0 8px 30px #30282433;padding:10px}.locality-menu[hidden]{display:none}.locality-menu strong{display:block;padding:5px}.locality-menu button{width:100%;text-align:left;color:#a32030}

.buyer-legend{display:flex;flex-wrap:wrap;gap:12px 20px;padding:14px 18px;background:#ffffff;border-bottom:1px solid #c7cad1;font-size:13px}.buyer-legend span{display:inline-flex;align-items:center;gap:7px}.buyer-legend i{display:inline-block;width:16px;height:16px;border-radius:4px;border:1px solid #30282433}

#zoneQuantityDialog{position:fixed;inset:0;margin:auto;width:min(92vw,480px);padding:42px 36px 36px;border:0;border-radius:24px;text-align:center;box-shadow:0 16px 60px #0003;background:#ffffff;color:#26292e}#zoneQuantityDialog::backdrop{background:#17223b33}#closeZoneQuantity{position:absolute;right:16px;top:10px;border:0;background:none;font-size:30px;padding:0 8px}#zoneQuantityTitle{font:600 28px/1.3 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;margin:10px 0}#zoneQuantityPrice{color:#565c69}.quantity-stepper{display:flex;align-items:center;justify-content:center;gap:32px;margin:30px 0}.quantity-stepper button{width:64px;height:64px;border:0;border-radius:50%;background:#f4f5f6;font-size:40px;line-height:1;padding:0}.quantity-stepper output{min-width:40px;font-size:40px;font-weight:600}#confirmZoneQuantity{font-size:17px;padding:12px 28px;background:#008b88;border-color:#008b88;color:white}#zoneQuantityMessage{min-height:20px;font-size:12px}

.buyer-layout{grid-template-columns:minmax(0,1fr)}.shopping-cart-toggle{position:fixed;right:24px;bottom:24px;z-index:25;display:flex;align-items:center;gap:12px;padding:14px 20px;border-radius:40px;background:#008b88;color:white;border:0;box-shadow:0 5px 25px #0003;font-weight:600}.shopping-cart-toggle:hover{background:#006e6b}.shopping-cart-toggle svg{width:26px;height:26px}.shopping-cart-toggle strong{background:white;color:#006e6b;min-width:26px;height:26px;line-height:26px;border-radius:50%;text-align:center}.shopping-cart-backdrop{position:fixed;inset:0;z-index:39;background:#17223b55}.shopping-cart-drawer{position:fixed;right:0;top:0;bottom:0;z-index:40;width:min(430px,100vw);overflow:auto;border-radius:20px 0 0 20px;padding:30px;background:#ffffff;box-shadow:-10px 0 35px #0002}#closeShoppingCart{position:absolute;right:18px;top:15px;font-size:27px;border:0;background:none}#shoppingCartTitle{margin:18px 0 8px}#shoppingCartSummary{color:#565c69}#emptyShoppingCart{padding:6px 10px;font-size:12px}.shopping-cart-drawer #cart{padding:16px 0;border-bottom:1px solid #dadce0}

#canvas [data-general-zone]{cursor:grab}#canvas [data-general-zone]:active{cursor:grabbing}#canvas [data-general-vertex]{cursor:grab}#canvas .seat.chosen{cursor:grab}#canvas [data-general-vertex]{stroke-width:3px}#editorGuide{white-space:nowrap}

#stats{grid-template-columns:repeat(5,minmax(0,1fr))}#stats span{letter-spacing:.3px}@media(max-width:800px){#stats{grid-template-columns:repeat(3,1fr);gap:14px}}
/* productos extra del evento */
.prod-list{display:flex;flex-direction:column;gap:12px;margin:10px 0}
.prod-card{display:grid;grid-template-columns:120px minmax(0,1fr);gap:16px;background:#f6f7f9;border:1px solid #e1e3e8;border-radius:16px;padding:14px}
.prod-photo{display:flex;flex-direction:column;gap:8px;align-items:stretch}
.prod-photo img,.prod-photo span{width:120px;height:120px;border-radius:12px;object-fit:cover;background:#e7e9ee;display:grid;place-items:center;font-size:12px;color:#6b7280}
.prod-fields{display:flex;flex-direction:column;gap:8px;min-width:0}.prod-fields label{margin:0}
.three{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.prod-vars{display:flex;flex-direction:column;gap:6px;background:#fff;border-radius:12px;padding:10px 12px}.prod-vars small{color:#6b7280;font-size:11.5px}
.prod-var{display:grid;grid-template-columns:1fr 1fr auto auto;gap:6px;align-items:center}.prod-var input{margin:0}.prod-var button{padding:4px 8px;font-size:12px}
.prod-vars>button,.prod-del{align-self:flex-start;font-size:12px;padding:6px 10px}.prod-del{color:#a32030}
.pe-file{display:inline-flex;align-items:center;justify-content:center;gap:6px;cursor:pointer;font-size:12px;font-weight:600;padding:6px 10px;border-radius:999px;border:1px solid #c7cad1;background:#fff;margin:0}.pe-file input{display:none}
.mini-table{width:100%;border-collapse:collapse;font-size:13.5px;margin:6px 0 14px}.mini-table th{text-align:left;font-size:12px;color:#6b7280;font-weight:600;padding:6px 8px;border-bottom:1px solid #e1e3e8}.mini-table td{padding:7px 8px;border-bottom:1px solid #eef0f3}
@media(max-width:700px){.prod-card{grid-template-columns:1fr}.three{grid-template-columns:1fr 1fr}}
/* marketing: píxeles y resultados */
.px-list{display:flex;flex-direction:column;gap:10px;margin:10px 0}
.px-card{background:#f6f7f9;border:1px solid #e1e3e8;border-radius:14px;padding:10px 14px}.px-card label{margin:4px 0}
.px-foot{display:flex;gap:10px;align-items:center;margin-top:6px}.px-foot input[data-f=label]{flex:1;margin:0}.px-foot .check{margin:0;white-space:nowrap}.px-foot button{color:#a32030}
.funnel{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:8px 0}
.funnel>div{background:#f6f7f9;border-radius:12px;padding:12px}.funnel small{display:block;color:#6b7280;font-size:11.5px}.funnel b{display:block;font-size:26px;font-weight:600;margin:4px 0}.funnel em{font-style:normal;font-size:11px;color:#0344dc}
.utm-out{display:flex;gap:8px}.utm-out input{flex:1;margin:0;font-family:Menlo,monospace;font-size:11px}
@media(max-width:700px){.funnel{grid-template-columns:1fr 1fr}}
.producer-card .danger-text{display:block;margin:14px auto 0;color:#b3261e;font-size:10px;text-decoration:underline}.producer-card .danger-text:hover{color:#7f1d17}
/* ───── Diseño de escenario / Localidades y precios ───── */
body.ed-design .venue-task-bar [data-task="3"],body.ed-design #editor #stats{display:none!important}
body.ed-design #editor .canvas-wrap{height:max(540px,calc(100vh - 230px));max-height:none}
body.ed-zones .venue-task-bar,body.ed-zones #editor .guidebar,body.ed-zones #editor .trace-editor,body.ed-zones #createAiMap,body.ed-zones #blankMap,body.ed-zones #importPdfMap,body.ed-zones #importTemplate,body.ed-zones #deleteTemplate,body.ed-zones #addFloor,
body.ed-zones #venueSignsShortcut,body.ed-zones #drawTool,body.ed-zones #horizontalTool,body.ed-zones #curveTool,body.ed-zones #blockTool,body.ed-zones #stageDrawTool,body.ed-zones #pathTool,body.ed-zones #fillTool,body.ed-zones #finishPath{display:none!important}
body.ed-zones #editor .canvas-wrap{height:max(480px,calc(100vh - 300px));max-height:none}
/* encabezado y barras más compactos para dejarle la pantalla al plano */
body.ed-design #editorHeader,body.ed-zones #editorHeader{margin-bottom:12px}
body.ed-design #editorHeader .eyebrow,body.ed-zones #editorHeader .eyebrow{display:none}
body.ed-design #editorHeader h1,body.ed-zones #editorHeader h1{font-size:30px;margin:0;letter-spacing:-.8px}
body.ed-design #editorContext,body.ed-zones #editorContext{padding:8px 12px;gap:8px;margin-bottom:10px;flex-wrap:wrap}
body.ed-design #editorContext button,body.ed-zones #editorContext button{padding:7px 12px;font-size:11px}
body.ed-design #versionTypeNote,body.ed-zones #versionTypeNote{font-size:11px;margin:0 0 10px;color:#6f7787}
body.ed-design .venue-task-bar{padding:10px 14px;margin-bottom:12px}
body.ed-design .venue-task-bar h3{display:none}
body.ed-design .venue-task-bar button{padding:8px 12px;font-size:12px}
body.ed-design .venue-task-bar #venueStep{font-size:11.5px;padding:7px 12px;margin-top:8px}
body.ed-design #editor .trace-editor{margin-bottom:10px}
body.ed-design #editor .guidebar{padding-top:6px;padding-bottom:6px;row-gap:4px}
body.ed-zones #editor #stats .stat,body.ed-zones #editor #stats>div{padding-top:10px;padding-bottom:10px}
body.ed-zones #editor #stats strong{font-size:26px}
body.ed-zones .design-only,body.ed-zones #tramoLauncher,body.ed-zones #tramoPanel{display:none!important}
/* Cartel grande del conteo al dibujar una sección (no depende del zoom) */
#sectionCount{position:absolute;top:16px;left:50%;transform:translateX(-50%);background:#021f3f;color:#fff;padding:12px 22px;border-radius:999px;font:600 22px/1.1 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;letter-spacing:.2px;box-shadow:0 10px 30px rgba(2,31,63,.35);pointer-events:none;z-index:30;white-space:nowrap}
#sectionCount b{color:#c2f154;font-size:26px;font-weight:800;margin:0 2px}
#sectionCount span{opacity:.8;font-size:15px;font-weight:500;margin-left:6px}
#editor .canvas-wrap{position:relative}
#sectionCount.straight{background:#0c7a4a}#sectionCount.straight b{color:#c2f154}
/* Barrita "Abrir en abanico" sobre el plano, cuando hay una sección seleccionada */
#shapeTools{position:absolute;left:16px;bottom:16px;display:flex;align-items:center;gap:10px;background:#021f3f;color:#fff;padding:10px 14px;border-radius:999px;box-shadow:0 10px 30px rgba(2,31,63,.35);z-index:30;font:600 13px/1 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
#shapeTools[hidden]{display:none}
#shapeTools input[type=range]{width:140px;accent-color:#c2f154;margin:0}
#shapeTools button{background:rgba(255,255,255,.14);color:#fff;border:0;border-radius:999px;padding:6px 12px;font:600 12px/1 sans-serif;cursor:pointer}
#shapeTools button:hover{background:rgba(255,255,255,.26)}

/* Diálogo de importación de asientos (Excel/CSV) */
.import-table-wrap{max-height:40vh;overflow:auto;border:1px solid #e0d8c8;border-radius:10px;margin:.6rem 0}
.import-table{width:100%;border-collapse:collapse;font-size:.95rem}
.import-table th,.import-table td{text-align:left;padding:.45rem .7rem;border-bottom:1px solid #efe8da}
.import-table th{position:sticky;top:0;background:#f3ecdd;font-weight:700}
.import-table td:nth-child(2),.import-table td:nth-child(3),.import-table th:nth-child(2),.import-table th:nth-child(3){text-align:right}
.import-warnings{margin:.4rem 0;padding-left:1.1rem;color:#8a5a12;font-size:.92rem}
.import-warnings li{margin:.2rem 0}
.dialog-actions{display:flex;gap:.6rem;justify-content:flex-end;margin-top:.9rem}

/* Biblioteca de recintos */
.vl-actions{margin:.2rem 0 .9rem}
.vl-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:1rem;max-height:62vh;overflow:auto;padding:.2rem}
.vl-card{border:1px solid #e0d8c8;border-radius:14px;overflow:hidden;background:#fff;display:flex;flex-direction:column}
.vl-thumb{height:140px;background:#faf6ec;display:flex;align-items:center;justify-content:center;border-bottom:1px solid #efe8da}
.vl-thumb svg{width:100%;height:100%}
.vl-loading{color:#b3a789;font-size:1.4rem}
.vl-body{padding:.6rem .7rem .2rem}
.vl-body strong{display:block;font-size:1.02rem;line-height:1.2}
.vl-meta{margin:.25rem 0 0;color:#7c7465;font-size:.86rem}
.vl-card-actions{display:flex;flex-wrap:wrap;gap:.35rem;padding:.6rem .7rem .7rem;margin-top:auto}
.vl-card-actions button{font-size:.85rem;padding:.4rem .6rem}
.vl-card-actions button.primary{flex:1 1 100%}

/* Al abrir una ventana modal, el fondo no se desplaza (evita el doble scroll) */
html.dialog-open,html.dialog-open body{overflow:hidden}
.vl-grid,.import-table-wrap{overscroll-behavior:contain}
