/* Studio4 Eventos — Material 3, esquema monocromático claro.
   Primary = negro. El único color de la interfaz vive en el mapa (butacas amarillas/azules). */
:root {
  color-scheme: light;

  /* Roles de color M3 */
  --md-primary: #000000;
  --md-on-primary: #ffffff;
  --md-primary-container: #eeeeee;
  --md-on-primary-container: #000000;
  --md-secondary: #545454;
  --md-on-secondary: #ffffff;
  --md-secondary-container: #eeeeee;
  --md-on-secondary-container: #000000;
  --md-error: #c62828;
  --md-on-error: #ffffff;
  --md-error-container: #fdecea;
  --md-on-error-container: #5f1414;
  --md-success-container: #e6f4ea;
  --md-on-success-container: #0b4d27;
  --md-surface: #ffffff;
  --md-surface-container-lowest: #ffffff;
  --md-surface-container-low: #f6f6f6;
  --md-surface-container: #f3f3f3;
  --md-surface-container-high: #eeeeee;
  --md-surface-container-highest: #e2e2e2;
  --md-on-surface: #000000;
  --md-on-surface-variant: #5e5e5e;
  --md-outline: #757575;
  --md-outline-variant: #e2e2e2;
  --md-inverse-surface: #000000;
  --md-inverse-on-surface: #ffffff;
  --md-scrim: rgb(0 0 0 / .32);

  /* Mapa */
  --seat-taken: #e2e2e2;
  --seat-mine: #000000;
  --seat-held: #f2994a;
  --seat-sold: #c62828;
  --seat-blocked: #545454;
  --presale: #b8860b;
  --stage: #000000;
  --on-stage: #ffffff;

  /* Forma (escala M3) */
  --shape-xs: 4px;
  --shape-s: 8px;
  --shape-m: 12px;
  --shape-l: 16px;
  --shape-xl: 28px;
  --shape-full: 999px;

  /* Elevación: se usa diferencia tonal; sombra solo en flotantes */
  --elev-2: 0 1px 2px rgb(0 0 0 / .12), 0 2px 6px 2px rgb(0 0 0 / .08);
  --elev-3: 0 4px 8px 3px rgb(0 0 0 / .1), 0 1px 3px rgb(0 0 0 / .14);

  /* Tipografía: marca para display/headline, plana para body/label */
  --font-brand: "Outfit", "Inter", system-ui, sans-serif;
  --font-plain: "Inter", system-ui, sans-serif;

  --header-h: 64px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1280px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font: 400 1rem/1.5rem var(--font-plain);
  background: var(--md-surface);
  color: var(--md-on-surface);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
[x-cloak] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Escala tipográfica (subconjunto) ---------- */
.display-l { font: 600 clamp(2.5rem, 6vw, 4.5rem)/1.04 var(--font-brand); letter-spacing: -.02em; margin: 0; }
.display-s { font: 600 clamp(2rem, 4vw, 2.75rem)/1.1 var(--font-brand); letter-spacing: -.015em; margin: 0; }
.headline-m { font: 600 1.75rem/2.25rem var(--font-brand); letter-spacing: -.01em; margin: 0; }
.headline-s { font: 600 1.5rem/2rem var(--font-brand); margin: 0; }
.title-l { font: 500 1.375rem/1.75rem var(--font-brand); margin: 0; }
.title-m { font: 600 1rem/1.5rem var(--font-plain); margin: 0; }
.title-s { font: 600 .875rem/1.25rem var(--font-plain); margin: 0; }
.body-l { font: 400 1rem/1.5rem var(--font-plain); }
.body-m { font: 400 .875rem/1.25rem var(--font-plain); }
.body-s { font: 400 .75rem/1rem var(--font-plain); letter-spacing: .1px; }
.label-l { font: 600 .875rem/1.25rem var(--font-plain); }
.overline { font: 600 .75rem/1rem var(--font-plain); letter-spacing: .12em; text-transform: uppercase; }
.muted { color: var(--md-on-surface-variant); }
.num { font-variant-numeric: tabular-nums; }

.material-symbols-rounded {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  font-size: 24px; line-height: 1; user-select: none;
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
main { flex: 1; }
.section { padding: clamp(40px, 7vw, 96px) 0; }
.stack > * + * { margin-top: 16px; }
.stack-l > * + * { margin-top: 32px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.between { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.spacer { flex: 1; }
.grid-cards { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.divider { border: 0; border-top: 1px solid var(--md-outline-variant); margin: 0; }

/* ---------- Top app bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30; height: var(--header-h);
  background: var(--md-surface); border-bottom: 1px solid var(--md-outline-variant);
}
.topbar .wrap { height: 100%; display: flex; align-items: center; gap: 8px; }
.topbar .logo { display: flex; align-items: center; gap: 12px; margin-right: auto; text-decoration: none; }
.topbar .logo img { height: 20px; width: auto; }
.topbar .logo .venue { padding-left: 12px; border-left: 1px solid var(--md-outline-variant); }
.topbar nav { display: flex; align-items: center; gap: 4px; }
@media (max-width: 599px) {
  .topbar .logo .venue, .hide-compact { display: none; }
}

/* ---------- Botones (M3 remapeado a forma small, estilo Uber/Tesla) ---------- */
.btn {
  --h: 48px;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--h); padding: 0 24px; border-radius: var(--shape-s);
  border: 0; cursor: pointer; text-decoration: none; white-space: nowrap;
  font: 600 1rem/1 var(--font-plain);
  background: var(--md-primary); color: var(--md-on-primary);
}
.btn .material-symbols-rounded { font-size: 20px; }
/* state layer: color del contenido, 8% hover · 10% focus/pressed */
.btn::before { content: ""; position: absolute; inset: 0; background: currentColor; opacity: 0; transition: opacity .15s; z-index: -1; }
.btn:hover::before { opacity: .08; }
.btn:focus-visible::before, .btn:active::before { opacity: .1; }
.btn:focus-visible { outline: 2px solid var(--md-primary); outline-offset: 2px; }
.btn:disabled, .btn[aria-disabled="true"] { background: rgb(0 0 0 / .12); color: rgb(0 0 0 / .38); cursor: default; }
.btn:disabled::before { display: none; }
.btn.sm { --h: 40px; padding: 0 16px; font-size: .875rem; }
.btn.tonal { background: var(--md-secondary-container); color: var(--md-on-secondary-container); }
.btn.outlined { background: transparent; color: var(--md-on-surface); box-shadow: inset 0 0 0 1px var(--md-outline); }
.btn.text { background: transparent; color: var(--md-on-surface); padding: 0 12px; }
.btn.inverse { background: var(--md-on-primary); color: var(--md-primary); }
.btn.outlined-inverse { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .7); }
.btn.danger { background: var(--md-error); color: var(--md-on-error); }
.btn.block { width: 100%; }
.icon-btn {
  position: relative; isolation: isolate; width: 48px; height: 48px; border-radius: var(--shape-full);
  display: inline-grid; place-items: center; border: 0; cursor: pointer;
  background: transparent; color: var(--md-on-surface);
}
.icon-btn::before { content: ""; position: absolute; inset: 4px; border-radius: inherit; background: currentColor; opacity: 0; z-index: -1; transition: opacity .15s; }
.icon-btn:hover::before { opacity: .08; }
.icon-btn:active::before { opacity: .1; }

/* ---------- Cards y superficies ---------- */
.card { background: var(--md-surface-container-lowest); border: 1px solid var(--md-outline-variant); border-radius: var(--shape-l); padding: 24px; }
.card.filled { background: var(--md-surface-container-low); border-color: transparent; }
.card.flush { padding: 0; overflow: hidden; overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- Formularios (outlined text field) ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.field label { font: 600 .875rem/1.25rem var(--font-plain); }
.field .hint { font-size: .75rem; color: var(--md-on-surface-variant); }
.field input, .field select, .field textarea {
  font: 400 1rem/1.5rem var(--font-plain); color: var(--md-on-surface);
  min-height: 52px; padding: 13px 16px; border-radius: var(--shape-s);
  border: 1px solid var(--md-outline); background: var(--md-surface);
  transition: border-color .15s, box-shadow .15s;
}
.field input[type="file"] { padding: 8px; font-size: .875rem; }
.field input[type="file"]::file-selector-button { font: 600 .875rem/1 var(--font-plain); height: 36px; padding: 0 16px; margin-right: 12px; border: 0; border-radius: var(--shape-s); background: var(--md-secondary-container); color: var(--md-on-secondary-container); cursor: pointer; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--md-on-surface); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--md-primary); box-shadow: inset 0 0 0 1px var(--md-primary); }
.fields { display: grid; gap: 0 16px; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }

.banner { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--shape-m); margin-bottom: 20px; font-size: .875rem; line-height: 1.25rem; }
.banner .material-symbols-rounded { font-size: 20px; }
.banner.error { background: var(--md-error-container); color: var(--md-on-error-container); }
.banner.info { background: var(--md-surface-container-high); color: var(--md-on-surface); }
.banner a { font-weight: 600; }

/* ---------- Chips y badges ---------- */
.chip { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: var(--shape-s); border: 1px solid var(--md-outline-variant); font: 500 .875rem/1 var(--font-plain); background: var(--md-surface); }
.dot { width: 12px; height: 12px; border-radius: 3px; background: var(--c); flex: none; }
.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: var(--shape-full); font: 600 .75rem/1 var(--font-plain); background: var(--md-surface-container-high); color: var(--md-on-surface); }
.badge.published, .badge.scheduled, .badge.paid { background: var(--md-success-container); color: var(--md-on-success-container); }
.orders-bar { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.order-search { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 4px 0 12px; border: 1px solid var(--md-outline); border-radius: var(--shape-full); background: var(--md-surface); min-width: min(320px, 100%); }
.order-search input { flex: 1; min-width: 0; border: 0; outline: 0; font: 400 .875rem/1 var(--font-plain); background: transparent; }
.order-search:focus-within { border-color: var(--md-primary); box-shadow: inset 0 0 0 1px var(--md-primary); }
.order-search .icon-btn { width: 32px; height: 32px; }
.order-actions { display: flex; gap: 0; justify-content: flex-end; }
.order-actions form { margin: 0; }
.btn.text.danger { background: transparent; color: var(--md-error, #b3261e); }
.btn.text.danger:hover { background: color-mix(in srgb, var(--md-error, #b3261e) 8%, transparent); }
.badge.review { background: #fff3cd; color: #5c4400; }
.badge.cancelled, .badge.refunded, .badge.voided { background: var(--md-error-container); color: var(--md-on-error-container); }
.badge.draft { background: var(--md-surface-container-high); }

/* ---------- Listas (estilo Uber) ---------- */
.list-row {
  position: relative; isolation: isolate; display: flex; align-items: center; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid var(--md-outline-variant); text-decoration: none;
}
a.list-row::before { content: ""; position: absolute; inset: 0 -12px; border-radius: var(--shape-m); background: var(--md-on-surface); opacity: 0; z-index: -1; transition: opacity .15s; }
a.list-row:hover::before { opacity: .04; }
.list-row .chev { color: var(--md-on-surface-variant); }
.date-tile { width: 64px; height: 64px; flex: none; border-radius: var(--shape-m); background: var(--md-surface-container-high); display: grid; place-content: center; text-align: center; }
.date-tile .d { font: 600 1.5rem/1 var(--font-brand); }
.date-tile .m { font: 600 .6875rem/1rem var(--font-plain); letter-spacing: .1em; text-transform: uppercase; color: var(--md-on-surface-variant); }

table.table { width: 100%; border-collapse: collapse; font-size: .875rem; }
table.table th, table.table td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--md-outline-variant); vertical-align: middle; }
table.table th { font: 600 .75rem/1rem var(--font-plain); color: var(--md-on-surface-variant); letter-spacing: .04em; text-transform: uppercase; }
table.table tr:last-child td { border-bottom: 0; }
table.table a { font-weight: 600; text-decoration: none; }
table.table a:hover { text-decoration: underline; }

/* ---------- Hero (estilo Tesla) ---------- */
.hero { position: relative; min-height: min(86vh, 820px); display: flex; align-items: flex-end; color: #fff; background: #000; overflow: hidden; }
.hero .bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(0 0 0 / 0) 35%, rgb(0 0 0 / .78) 100%); }
.hero .watermark { position: absolute; right: -8vw; top: 50%; transform: translateY(-50%); width: min(70vw, 760px); opacity: .1; }
.hero .content { position: relative; padding-bottom: clamp(40px, 8vh, 88px); width: 100%; }
.hero .meta { display: flex; gap: 8px 24px; flex-wrap: wrap; margin: 16px 0 32px; font-size: 1.0625rem; color: rgb(255 255 255 / .85); }
.hero .meta span { display: inline-flex; align-items: center; gap: 8px; }

.poster { aspect-ratio: 4 / 5; border-radius: var(--shape-l); overflow: hidden; background: #000; position: relative; }
.poster img { width: 100%; height: 100%; object-fit: cover; }
.poster.placeholder { display: grid; place-items: center; color: #fff; }
.poster.placeholder img { width: 38%; height: auto; opacity: .9; }

.steps { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.step .n { font: 600 .875rem/1 var(--font-brand); width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--md-primary); color: var(--md-on-primary); margin-bottom: 16px; }

/* ---------- Evento ---------- */
.event-layout { display: grid; gap: clamp(24px, 5vw, 64px); grid-template-columns: minmax(260px, 420px) 1fr; align-items: start; }
@media (max-width: 839px) { .event-layout { grid-template-columns: 1fr; } .event-layout .poster { max-width: 420px; } }
.price-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--md-outline-variant); }
.price-row:last-child { border-bottom: 0; }

/* ---------- Selección de butacas (app a pantalla completa) ---------- */
.booking { display: grid; grid-template-columns: minmax(0, 1fr) 400px; height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); }
.booking .map-pane { position: relative; background: var(--md-surface-container-low); min-height: 0; }
.booking .side { border-left: 1px solid var(--md-outline-variant); display: flex; flex-direction: column; min-height: 0; background: var(--md-surface); }
.booking .side-scroll { flex: 1; overflow: auto; padding: 24px; }
.booking .side-foot { padding: 16px 24px 24px; border-top: 1px solid var(--md-outline-variant); }
@media (max-width: 899px) {
  .booking { grid-template-columns: minmax(0, 1fr); height: auto; }
  .booking .map-pane { height: 62vh; height: 62dvh; }
  .booking .side { border-left: 0; }
  .booking .side-foot { position: sticky; bottom: 0; background: var(--md-surface); box-shadow: 0 -4px 12px rgb(0 0 0 / .06); }
}
.map-pane svg { width: 100%; height: 100%; display: block; touch-action: none; user-select: none; cursor: grab; }
.map-pane svg.dragging { cursor: grabbing; }
.map-tools { position: absolute; right: 16px; top: 16px; display: flex; flex-direction: column; background: var(--md-surface); border-radius: var(--shape-m); box-shadow: var(--elev-2); overflow: hidden; }
.map-tools button { width: 48px; height: 48px; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; color: var(--md-on-surface); }
.map-tools button + button { border-top: 1px solid var(--md-outline-variant); }
.map-tools button:hover { background: rgb(0 0 0 / .08); }
.map-tools .area-btn.on { background: var(--md-primary); color: var(--md-on-primary); }
.marquee { fill: rgb(30 111 217 / .12); stroke: #1e6fd9; stroke-width: 1; stroke-dasharray: 4 3; vector-effect: non-scaling-stroke; pointer-events: none; }
svg.area-mode { cursor: crosshair; }
.map-legend { position: absolute; left: 16px; top: 16px; right: 80px; display: flex; gap: 8px; flex-wrap: wrap; pointer-events: none; }
.map-legend .chip { box-shadow: var(--elev-2); border-color: transparent; pointer-events: auto; }
@media (max-width: 599px) {
  .map-legend { gap: 6px; left: 0; right: 64px; top: 12px; padding: 0 12px 8px; flex-wrap: nowrap; overflow-x: auto; pointer-events: auto; scrollbar-width: none; }
  .map-legend .chip { flex: none; }
  .map-tools { right: 12px; top: 12px; }
  .map-hint { font-size: .75rem; padding: 6px 12px; bottom: 12px; }
  .map-legend .chip { height: 28px; padding: 0 10px; font-size: .75rem; gap: 6px; }
  .map-legend .chip .dot { width: 10px; height: 10px; }
}
body.app .topbar .wrap { max-width: none; }
.map-hint { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); background: var(--md-surface); border-radius: var(--shape-full); padding: 8px 16px; font-size: .8125rem; box-shadow: var(--elev-2); white-space: nowrap; }
.map-loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--md-on-surface-variant); }

.seat { fill: var(--c); stroke: rgb(0 0 0 / .18); stroke-width: .4; cursor: pointer; transition: fill .12s; }
.seat:hover { stroke: #000; stroke-width: 1.2; }
.seat.taken { fill: var(--seat-taken); stroke: none; cursor: not-allowed; }
.seat.disabled { fill: none; stroke: var(--md-outline-variant); stroke-dasharray: 1 1; cursor: not-allowed; }
.seat.mine { fill: var(--seat-mine); stroke: #000; }
.seat.pending { opacity: .45; }
.seat.held { fill: var(--seat-held); }
.seat.sold { fill: var(--seat-sold); }
.seat.blocked { fill: var(--seat-blocked); }
.seat.cupo { fill: var(--cupo); stroke: rgb(0 0 0 / .65); stroke-width: .9; }
.seat.presale { stroke: var(--presale); stroke-width: 1.8; }
.seat.selected { stroke: #000; stroke-width: 2.4; }
.seat-num { font: 600 3.4px var(--font-plain); fill: rgb(0 0 0 / .72); pointer-events: none; display: none; text-anchor: middle; dominant-baseline: central; }
svg.show-nums .seat-num { display: block; }
.seat-num.on-dark { fill: #fff; }
.row-label { font: 700 6.5px var(--font-plain); fill: var(--md-on-surface-variant); text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.stage { fill: var(--stage); }
.stage-label { font: 600 13px var(--font-brand); letter-spacing: 5px; fill: var(--on-stage); text-anchor: middle; dominant-baseline: central; }

.tooltip { position: absolute; pointer-events: none; z-index: 5; background: var(--md-inverse-surface); color: var(--md-inverse-on-surface); padding: 8px 12px; border-radius: var(--shape-s); font: 500 .8125rem/1.1rem var(--font-plain); white-space: nowrap; box-shadow: var(--elev-2); }
.tooltip .price { color: rgb(255 255 255 / .7); }

.ticket { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--md-outline-variant); }
.ticket .seat-ico { width: 40px; height: 40px; flex: none; border-radius: var(--shape-s); display: grid; place-items: center; background: var(--c); color: var(--on-c, #000); font: 700 .875rem/1 var(--font-plain); }
.ticket .info { flex: 1; min-width: 0; }
.total-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.timer-pill { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: var(--shape-full); background: var(--md-surface-container-high); font: 600 .875rem/1 var(--font-plain); font-variant-numeric: tabular-nums; }
.timer-pill.low { background: var(--md-error-container); color: var(--md-on-error-container); }
.empty { text-align: center; padding: 32px 8px; color: var(--md-on-surface-variant); }
.empty .material-symbols-rounded { font-size: 40px; color: var(--md-outline); margin-bottom: 8px; }

.snackbar { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; background: var(--md-inverse-surface); color: var(--md-inverse-on-surface); padding: 14px 20px; border-radius: var(--shape-s); box-shadow: var(--elev-3); max-width: calc(100vw - 32px); font-size: .875rem; }

/* ---------- Autenticación: escenario fotográfico + formulario ---------- */
.auth { display: grid; grid-template-columns: 1.15fr 1fr; min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); }
.stage-pane { position: relative; overflow: hidden; background: #000; color: #fff; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(28px, 4vw, 56px); isolation: isolate; }
.stage-pane .slides, .stage-pane .slide { position: absolute; inset: 0; }
.stage-pane .slide img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.stage-pane .slide + .slide { opacity: 0; }
.stage-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgb(0 0 0 / .55) 0%, rgb(0 0 0 / .05) 30%, rgb(0 0 0 / .15) 55%, rgb(0 0 0 / .85) 100%); }
.ribbon { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ribbon path { fill: none; stroke: rgb(255 255 255 / .55); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.ribbon path.thin { stroke: rgb(255 255 255 / .25); stroke-width: 1; }
.stage-top, .stage-bottom { position: relative; z-index: 1; }
.stage-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.stage-logo { height: 22px; width: auto; }
.slide-dots { display: flex; gap: 6px; }
.slide-dots span { width: 36px; height: 2px; background: rgb(255 255 255 / .3); overflow: hidden; border-radius: 2px; }
.slide-dots i { display: block; height: 100%; background: #fff; transform-origin: left; transform: scaleX(0); }
.stage-bottom .overline { color: rgb(255 255 255 / .7); margin-bottom: 12px; }
.stage-quote { font: 500 clamp(2.25rem, 4.2vw, 3.75rem)/1.05 var(--font-brand); letter-spacing: -.02em; margin: 0 0 32px; max-width: 13ch; }
.stage-quote em, .display-serif em { font-family: "Cormorant Garamond", serif; font-style: italic; font-weight: 500; font-size: 1.12em; letter-spacing: 0; }
.show-card { display: flex; align-items: center; gap: 14px; max-width: 440px; padding: 10px 16px 10px 10px; border-radius: var(--shape-l); text-decoration: none; color: #fff; background: rgb(255 255 255 / .1); border: 1px solid rgb(255 255 255 / .2); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); transition: background .2s; }
.show-card:hover { background: rgb(255 255 255 / .18); }
.show-card img { width: 88px; height: 56px; object-fit: cover; border-radius: var(--shape-s); flex: none; }
.show-info { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.show-info .overline { margin: 0; font-size: .6875rem; }
.show-title { font: 600 1rem/1.3 var(--font-brand); }
.show-info .body-s { color: rgb(255 255 255 / .75); }
.form-pane { display: grid; place-items: center; padding: 48px var(--gutter); }
.form-box { width: 100%; max-width: 400px; }
.auth-title { font: 600 2.25rem/1.15 var(--font-brand); letter-spacing: -.02em; margin: 6px 0 0; }
.perks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.perks li { display: flex; align-items: center; gap: 12px; font-size: .875rem; color: var(--md-on-surface-variant); }
.perks .material-symbols-rounded { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--md-surface-container-high); color: var(--md-on-surface); font-size: 20px; }
@media (max-width: 839px) {
  .auth { grid-template-columns: 1fr; }
  .stage-pane { min-height: 340px; }
  .stage-logo { visibility: hidden; }
  .stage-quote { font-size: 2rem; margin-bottom: 20px; }
  .show-card { display: none; }
}

/* ---------- Animación: estados iniciales (solo si GSAP va a correr) ---------- */
.js-motion [data-reveal], .js-motion [data-intro] [data-intro-item], .js-motion [data-split] { visibility: hidden; }
.split-line { padding-bottom: .08em; }

/* ---------- Portada: editorial, galería y cierre ---------- */
.display-serif { font: 500 clamp(2.25rem, 4.5vw, 3.75rem)/1.05 var(--font-brand); letter-spacing: -.02em; margin: 12px 0 20px; }
.display-serif.light { color: #fff; }
.editorial { padding: clamp(24px, 3vw, 40px) 0 clamp(56px, 9vw, 128px); }
.editorial-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.editorial-photo { margin: 0; border-radius: var(--shape-l); overflow: hidden; background: var(--md-surface-container-high); }
.editorial-photo img { width: 100%; height: 100%; object-fit: cover; }
.editorial-photo.tall { aspect-ratio: 4 / 5; }
.parallax-frame { width: 100%; height: 100%; overflow: hidden; }
.parallax-frame img { height: 118%; margin-top: -9%; }
.editorial-text .body-l { max-width: 46ch; }
.editorial-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 32px 0; }
.editorial-pair .editorial-photo { aspect-ratio: 4 / 3; }
@media (max-width: 839px) { .editorial-grid { grid-template-columns: 1fr; } .editorial-photo.tall { aspect-ratio: 4 / 4.4; } }

.gallery { padding: clamp(48px, 7vw, 96px) 0; background: #000; color: #fff; overflow: hidden; }
.gallery-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.gallery-head .muted { color: rgb(255 255 255 / .65); }
.marquee { overflow: hidden; }
.marquee-track { display: flex; gap: 16px; width: max-content; padding-left: 16px; }
.tile { margin: 0; height: clamp(240px, 32vw, 400px); border-radius: var(--shape-l); overflow: hidden; flex: none; }
.tile.v { aspect-ratio: 3 / 4; }
.tile.h { aspect-ratio: 4 / 3; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.tile:hover img { transform: scale(1.05); }


.feature-link { overflow: hidden; }

/* ---------- Footer (claro, en columnas) ---------- */
.footer { background: var(--md-surface-container-low); color: var(--md-on-surface-variant); padding: clamp(48px, 6vw, 80px) 0 32px; font-size: .875rem; border-top: 1px solid var(--md-outline-variant); }
.footer a { color: var(--md-on-surface); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px 32px; padding-bottom: 40px; border-bottom: 1px solid var(--md-outline-variant); }
.footer-brand img { height: 22px; width: auto; }
.footer-quote { font: italic 400 1.25rem/1.3 "Cormorant Garamond", serif; color: var(--md-on-surface); margin: 16px 0 20px; }
.footer-social { display: flex; gap: 8px; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--md-outline-variant); display: grid; place-items: center; transition: background .2s, color .2s, border-color .2s; }
.footer-social a:hover { background: #000; color: #fff; border-color: #000; text-decoration: none; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h2 { font: 500 1.25rem/1.2 "Cormorant Garamond", serif; font-style: italic; color: var(--md-on-surface); margin: 0 0 6px; }
.footer-base { padding-top: 24px; display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; }
.footer-base a { text-decoration: underline; }
@media (max-width: 839px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Telón: pantalla de carga y transición entre páginas ---------- */
.curtain { position: fixed; inset: 0; z-index: 100; background: #fff; display: none; place-items: center; overflow: hidden; pointer-events: none; }
.curtain-on .curtain { display: grid; }
.curtain-loader { position: relative; width: 132px; height: 132px; display: grid; place-items: center; }
.curtain-mark { position: relative; width: 64px; height: auto; }
/* Anillo de carga: se llena en la primera visita de la sesión */
.curtain-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); visibility: hidden; }
.curtain-first .curtain-ring { visibility: visible; }
.curtain-ring circle { fill: none; stroke-width: 1.5; }
.curtain-ring .track { stroke: #ececec; }
.curtain-ring .fill { stroke: #000; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; }

/* ---------- Títulos de sección con serif ---------- */
.serif-title { font: 500 clamp(2rem, 3.4vw, 2.75rem)/1.1 "Cormorant Garamond", serif; letter-spacing: -.005em; margin: 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: clamp(24px, 3vw, 40px); }

/* ---------- Tarjetas de función (fecha montada sobre la foto) ---------- */
.perf-grid { display: grid; gap: clamp(24px, 3vw, 40px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 540px), 1fr)); }
.perf-card { display: grid; grid-template-columns: minmax(0, 1.15fr) 1fr; gap: clamp(20px, 2.5vw, 36px); align-items: center; text-decoration: none; color: inherit; }
.perf-photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #000; }
.perf-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2, .7, .2, 1); }
.perf-card:hover .perf-photo img { transform: scale(1.06); }
.perf-date { position: absolute; left: 0; top: 0; z-index: 1; background: #fff; color: #000; min-width: 68px; padding: 8px 10px 10px; text-align: center; display: grid; gap: 2px; }
.perf-date .wd { font-size: .6875rem; color: var(--md-on-surface-variant); }
.perf-date .d { font: 500 2rem/1 "Cormorant Garamond", serif; }
.perf-date .m { font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--md-on-surface-variant); }
.perf-body h3 { font: 500 1.75rem/1.1 "Cormorant Garamond", serif; margin: 0 0 16px; }
.perf-meta { display: grid; gap: 8px; font-size: .875rem; color: var(--md-on-surface-variant); }
.perf-meta span { display: flex; gap: 8px; align-items: flex-start; }
.perf-meta .material-symbols-rounded { font-size: 18px; }
.perf-cta { margin-top: 20px; display: inline-flex; align-items: center; gap: 10px; font: 600 .875rem/1 var(--font-plain); }
.perf-cta .material-symbols-rounded { font-size: 20px; transition: transform .25s; }
.perf-card:hover .perf-cta .material-symbols-rounded { transform: translateX(6px); }
@media (max-width: 599px) { .perf-card { grid-template-columns: 1fr; } }

/* ---------- Cierre: foto en blanco y negro, marca grande y barra de contacto ---------- */
.closing { position: relative; overflow: hidden; color: #fff; background: #000; min-height: min(78vh, 640px); display: flex; align-items: center; isolation: isolate; }
.closing-bg { position: absolute; inset: -10% 0; z-index: -1; }
.closing-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .6; filter: grayscale(1) contrast(1.1); }
.closing-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 32px; padding-top: 64px; padding-bottom: 120px; }
.closing-mark { width: clamp(140px, 22vw, 300px); opacity: .9; }
.closing-copy .overline { color: rgb(255 255 255 / .7); }
.closing-copy .serif-title { font-size: clamp(2.5rem, 4.6vw, 4rem); margin: 12px 0 16px; }
.closing-copy p { color: rgb(255 255 255 / .8); margin: 0 0 28px; max-width: 40ch; }
.contact-bar { position: relative; z-index: 2; margin-top: 48px; margin-bottom: 48px; }
.closing + .contact-bar { margin-top: -48px; }
.contact-bar a { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #000; color: #fff; text-decoration: none; padding: 0 0 0 clamp(20px, 3vw, 40px); height: 96px; max-width: 760px; border-bottom: 1px solid rgb(255 255 255 / .3); }
.contact-bar .lbl { font: italic 400 clamp(1.125rem, 2vw, 1.5rem)/1.2 "Cormorant Garamond", serif; }
.contact-bar .go { width: 64px; height: 64px; flex: none; border-radius: 50%; background: #fff; color: #000; display: grid; place-items: center; margin-right: -32px; transition: transform .3s; }
.contact-bar a:hover .go { transform: translateX(6px); }
@media (max-width: 839px) {
  .closing-inner { grid-template-columns: 1fr; text-align: left; }
  .closing-mark { width: 120px; }
  .contact-bar .go { margin-right: 16px; width: 52px; height: 52px; }
}

/* ---------- Página del evento ---------- */
.ev-hero { position: relative; display: grid; grid-template-columns: 88px minmax(320px, 1fr) 1.5fr; background: #000; color: #fff; overflow: hidden; min-height: min(72vh, 640px); }
.ev-hero > * { grid-row: 1; position: relative; }
.ev-hero .sh-blur { grid-column: 1 / -1; }
.ev-rail { grid-column: 1; border-right: 1px solid rgb(255 255 255 / .14); }
.ev-copy { grid-column: 2; display: flex; flex-direction: column; padding: 28px clamp(24px, 3vw, 48px) 48px; z-index: 1; }
.crumbs { font-size: .75rem; color: rgb(255 255 255 / .6); display: flex; gap: 10px; flex-wrap: wrap; }
.crumbs a { color: rgb(255 255 255 / .6); text-decoration: none; }
.crumbs a:hover { color: #fff; }
.ev-title { font: 500 clamp(3rem, 6vw, 5.5rem)/.95 "Cormorant Garamond", serif; margin: auto 0 14px; }
.ev-copy .sh-subtitle { margin-bottom: 4px; }
.ev-media { grid-column: 3; display: grid; place-items: center; padding: 28px clamp(16px, 3vw, 48px) 28px 0; z-index: 1; }
.ev-media img { max-width: 100%; max-height: min(64vh, 580px); object-fit: contain; box-shadow: 0 30px 80px rgb(0 0 0 / .5); }
.ev-share { position: absolute; right: 20px; top: 28px; display: grid; gap: 8px; z-index: 2; }
.ev-share a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgb(255 255 255 / .35); color: #fff; transition: background .2s, color .2s; }
.ev-share a:hover { background: #fff; color: #000; }

.ev-facts { position: relative; overflow: hidden; background: var(--md-surface-container-high); }
.ev-facts-inner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) 1.4fr; gap: 28px 40px; padding-top: clamp(36px, 4vw, 56px); padding-bottom: clamp(36px, 4vw, 56px); position: relative; }
.ev-fact .overline { font-size: .6875rem; color: var(--md-on-surface-variant); margin-bottom: 6px; }
.ev-fact .v { font: 500 1.375rem/1.2 "Cormorant Garamond", serif; }
.ev-facts-desc { grid-column: 3; grid-row: 1 / span 3; font-size: .9375rem; line-height: 1.65; white-space: pre-line; margin: 0; color: var(--md-on-surface-variant); }
.ev-watermark { position: absolute; right: -40px; bottom: -60px; width: clamp(220px, 28vw, 380px); opacity: .07; pointer-events: none; }

.day-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.day-card { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; padding: 20px; border: 1px solid var(--md-outline-variant); text-decoration: none; color: inherit; min-height: 220px; transition: background .25s, color .25s, border-color .25s; }
.day-card .d { font: 500 2.75rem/1 "Cormorant Garamond", serif; }
.day-card .wd { justify-self: end; font-size: .75rem; color: var(--md-on-surface-variant); }
.day-card .m { grid-column: 1 / -1; font-size: .75rem; color: var(--md-on-surface-variant); margin-top: -2px; }
.day-card .place { grid-column: 1 / -1; font-size: .75rem; color: var(--md-on-surface-variant); margin-top: 20px; }
.day-card .t { grid-column: 1 / -1; align-self: end; font: 300 2.25rem/1 var(--font-brand); }
.day-card:hover { background: #000; color: #fff; border-color: #000; }
.day-card:hover .wd, .day-card:hover .m, .day-card:hover .place { color: rgb(255 255 255 / .7); }

.ev-prices { position: relative; overflow: hidden; }
.outline-word { position: absolute; right: -2vw; top: 50%; transform: translateY(-50%); font: 500 clamp(8rem, 20vw, 18rem)/1 "Cormorant Garamond", serif; color: transparent; -webkit-text-stroke: 1px #d6d6d6; white-space: nowrap; pointer-events: none; user-select: none; }
.ev-prices .wrap { position: relative; }
.ev-prices-list { max-width: 520px; }

@media (max-width: 899px) {
  .ev-hero { grid-template-columns: 1fr; min-height: 0; }
  .ev-rail { display: none; }
  .ev-media { grid-row: 1; grid-column: 1; padding: 64px 16px 8px; }
  .ev-copy { grid-row: 2; grid-column: 1; padding: 24px 20px 36px; }
  .ev-copy .crumbs { display: none; }
  .ev-title { margin-top: 8px; font-size: 3.25rem; }
  .ev-share { top: 16px; right: 16px; grid-auto-flow: column; }
  .ev-hero .sh-blur { grid-row: 1 / span 2; }
  .ev-facts-inner { grid-template-columns: 1fr 1fr; }
  .ev-facts-desc { grid-column: 1 / -1; grid-row: auto; }
}

/* ---------- Admin (navigation drawer + contenido) ---------- */
.admin-shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.drawer { background: var(--md-surface); border-right: 1px solid var(--md-outline-variant); padding: 20px 12px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; }
.drawer .logo { display: flex; align-items: center; gap: 10px; padding: 4px 16px 24px; text-decoration: none; }
.drawer .logo img { height: 18px; width: auto; }
.drawer a.item { position: relative; isolation: isolate; display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 16px; border-radius: var(--shape-full); text-decoration: none; font: 600 .875rem/1 var(--font-plain); color: var(--md-on-surface-variant); }
.drawer a.item::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--md-on-surface); opacity: 0; z-index: -1; }
.drawer a.item:hover::before { opacity: .08; }
.drawer a.item.active { background: var(--md-primary); color: var(--md-on-primary); }
.drawer a.item.active .material-symbols-rounded { font-variation-settings: "FILL" 1; }
.drawer .foot { margin-top: auto; padding: 16px; border-top: 1px solid var(--md-outline-variant); }
.admin-main { background: var(--md-surface-container-low); min-width: 0; }
.admin-main .page { max-width: 1200px; margin: 0 auto; padding: 32px var(--gutter) 64px; }
.admin-topbar { display: none; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.stat { background: var(--md-surface); border: 1px solid var(--md-outline-variant); border-radius: var(--shape-l); padding: 20px 24px; }
.stat .v { font: 600 2.25rem/2.75rem var(--font-brand); }
.stats { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 32px; }
.admin-main .booking { height: calc(100vh - 0px); }
@media (max-width: 899px) {
  .admin-shell { grid-template-columns: 1fr; }
  .drawer { display: none; }
  .drawer.open { display: flex; position: fixed; inset: 0 20% 0 0; z-index: 70; box-shadow: var(--elev-3); }
  .admin-topbar { display: flex; align-items: center; gap: 8px; height: var(--header-h); padding: 0 8px; background: var(--md-surface); border-bottom: 1px solid var(--md-outline-variant); position: sticky; top: 0; z-index: 30; }
  .admin-topbar img { height: 18px; }
  .scrim { position: fixed; inset: 0; background: var(--md-scrim); z-index: 65; }
}
.poster-edit { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 599px) { .poster-edit { grid-template-columns: minmax(0, 1fr); } .poster-edit .poster { max-width: 160px; } }

/* ---------- Evento estelar (banner horizontal) ---------- */
.feature { background: #000; color: #fff; }
.feature > a { display: block; }
.banner-media { position: relative; overflow: hidden; display: flex; justify-content: center; background: #000; }
.banner-blur { position: absolute; inset: -40px; background-size: cover; background-position: center; filter: blur(40px) saturate(1.2); opacity: .55; transform: scale(1.1); }
/* El banner se ve completo (sin recortar texto) y deja espacio a la barra de compra en la primera pantalla. */
.banner-img { position: relative; width: 100%; max-width: 1920px; height: auto; max-height: calc(100vh - var(--header-h) - 132px); max-height: calc(100svh - var(--header-h) - 132px); object-fit: contain; }
.banner-media.compact .banner-img { max-height: min(62vh, 640px); }
.feature-bar { border-top: 1px solid rgb(255 255 255 / .12); }
.feature-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; padding-top: 24px; padding-bottom: 24px; }
.feature-info .overline { color: rgb(255 255 255 / .6); margin-bottom: 4px; }
.feature-meta { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 8px; color: rgb(255 255 255 / .8); font-size: .9375rem; }
.feature-meta span { display: inline-flex; align-items: center; gap: 6px; }
.feature-meta .material-symbols-rounded { font-size: 20px; }
.feature-cta { display: flex; align-items: center; gap: 24px; }
.feature-cta .from { display: flex; flex-direction: column; align-items: flex-end; color: rgb(255 255 255 / .7); }
.feature-cta .from .title-l { color: #fff; }
@media (max-width: 599px) {
  .feature-cta { width: 100%; justify-content: space-between; }
  .feature-cta .from { align-items: flex-start; }
  .feature-cta .btn { flex: 1; max-width: 220px; }
}

.event-cols { display: grid; gap: clamp(24px, 5vw, 64px); grid-template-columns: 1fr 360px; align-items: start; }
.event-prices { position: sticky; top: calc(var(--header-h) + 24px); }
@media (max-width: 839px) { .event-cols { grid-template-columns: 1fr; } .event-prices { position: static; } }
.banner-preview { aspect-ratio: 16 / 9; border-radius: var(--shape-m); overflow: hidden; background: #000; display: grid; place-items: center; color: rgb(255 255 255 / .6); }
.banner-preview img { width: 100%; height: 100%; object-fit: cover; }
.switch-row { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: var(--shape-m); background: var(--md-surface-container-low); margin-bottom: 20px; cursor: pointer; }
.switch-row input { width: 20px; height: 20px; accent-color: #000; }

/* ---------- Flujo de compra (franja + 3 columnas) ---------- */
.event-band { position: relative; height: 260px; background: #000; color: #fff; overflow: hidden; }
.band-bg { position: absolute; inset: 0; background-size: cover; background-position: center 30%; }
.band-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(0 0 0 / .82) 0%, rgb(0 0 0 / .55) 55%, rgb(0 0 0 / .3) 100%); }
.band-inner { position: relative; height: 100%; display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: end; padding-bottom: 32px; }
.band-back { display: inline-flex; align-items: center; gap: 6px; color: rgb(255 255 255 / .8); text-decoration: none; font-size: .875rem; margin-bottom: 8px; }
.band-back:hover { color: #fff; }
.band-back .material-symbols-rounded { font-size: 18px; }
.band-title { font: 600 clamp(1.75rem, 3.6vw, 3rem)/1.08 var(--font-brand); letter-spacing: -.015em; margin: 0; text-transform: uppercase; }

.booking-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr) 150px; gap: 40px; padding-bottom: 72px; }
.poster-float { margin-top: -212px; position: relative; z-index: 2; margin-bottom: 28px; }
.poster-float .poster { box-shadow: 0 12px 32px rgb(0 0 0 / .28); }
.booking-center, .booking-right { padding-top: 24px; min-width: 0; }

.stepper { list-style: none; margin: 0 0 20px; padding: 0; display: flex; border-bottom: 1px solid var(--md-outline-variant); }
.stepper li { flex: 1; display: flex; align-items: center; gap: 10px; padding: 14px 0; margin-bottom: -1px; font: 600 .8125rem/1 var(--font-plain); letter-spacing: .06em; text-transform: uppercase; color: var(--md-on-surface-variant); border-bottom: 2px solid transparent; }
.stepper .n { width: 24px; height: 24px; flex: none; border-radius: 6px; display: grid; place-items: center; background: var(--md-surface-container-high); color: var(--md-on-surface); font-size: .75rem; letter-spacing: 0; }
.stepper .n .material-symbols-rounded { font-size: 16px; }
.stepper li.active { color: var(--md-on-surface); border-bottom-color: var(--md-primary); }
.stepper li.active .n, .stepper li.done .n { background: var(--md-primary); color: var(--md-on-primary); }

.map-pane { position: relative; }
.map-pane.framed { height: clamp(420px, 64vh, 640px); border-radius: var(--shape-l); overflow: hidden; display: flex; flex-direction: column; background: var(--md-surface-container-low); }
.map-pane.framed svg { flex: 1; min-height: 0; height: auto; }
.map-pane.framed .map-legend { position: static; order: -1; padding: 12px 72px 0 12px; pointer-events: auto; }
.map-pane.framed .map-legend .chip { box-shadow: none; border-color: var(--md-outline-variant); }
.map-pane.framed .map-tools { top: 12px; right: 12px; }

.cart-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.seat-card { display: flex; align-items: center; gap: 12px; min-height: 64px; padding-right: 4px; border: 1px solid var(--md-outline-variant); border-radius: var(--shape-m); margin-bottom: 10px; overflow: hidden; background: var(--md-surface); }
.seat-card .bar { width: 6px; align-self: stretch; background: var(--c); flex: none; }
.seat-card-main { flex: 1; min-width: 0; padding: 8px 0; }
.seat-card-nums { display: flex; align-items: baseline; }
.seat-card-nums .big { font: 600 1.75rem/1.1 var(--font-brand); }
.seat-card-nums .lbl { font-size: .8125rem; color: var(--md-on-surface-variant); margin: 0 14px 0 5px; }
.seat-card .price { font: 600 .875rem/1 var(--font-plain); color: var(--md-on-surface-variant); }
.seat-card.empty-card { padding: 16px; gap: 12px; color: var(--md-on-surface-variant); border-style: dashed; }
.cart-total { display: flex; justify-content: flex-end; align-items: baseline; gap: 12px; margin: 20px 0; }
.cart-actions { display: grid; grid-template-columns: 1fr 1.6fr; gap: 12px; }

.info-block { margin-bottom: 24px; }
.info-block > .body-s { margin-bottom: 6px; }
.date-card { width: 80px; height: 80px; border: 1px solid var(--md-outline-variant); border-radius: var(--shape-m); display: grid; place-content: center; text-align: center; }
.date-card .d { font: 600 2rem/1 var(--font-brand); }
.date-card .m { font: 600 .75rem/1.4 var(--font-plain); letter-spacing: .1em; text-transform: uppercase; }


.mobile-checkout { display: none; }

@media (max-width: 1099px) {
  .event-band { height: 180px; }
  .band-inner { grid-template-columns: 1fr; padding-bottom: 20px; }
  .band-gap, .poster-float { display: none; }
  .booking-grid { grid-template-columns: 1fr; gap: 0; padding-bottom: 120px; }
  .booking-center { order: 1; }
  .booking-right { order: 2; display: flex; gap: 32px; flex-wrap: wrap; align-items: flex-end; padding-top: 24px; }
  .booking-right .info-block { margin-bottom: 0; }
  .booking-left { order: 3; padding-top: 28px; }
  .cart-actions { display: none; }
  .mobile-checkout { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; align-items: center; justify-content: space-between; gap: 16px; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: var(--md-surface); box-shadow: 0 -4px 16px rgb(0 0 0 / .1); }
  .mobile-checkout .btn { min-width: 160px; }
}
@media (max-width: 599px) {
  .map-pane.framed { height: auto; margin: 0 calc(var(--gutter) * -1); border-radius: 0; }
  .map-pane.framed svg { flex: none; aspect-ratio: 1 / 1; }
  .stepper li { font-size: .6875rem; gap: 6px; letter-spacing: .03em; }
  .date-card { width: 64px; height: 64px; }
  .date-card .d { font-size: 1.5rem; }
}

/* ---------- Hero teatral (inspiración: Teatro de Ballet Eifman) ---------- */
.stage-hero {
  --line: rgb(255 255 255 / .14);
  --top: 104px;
  position: relative; display: grid; color: #fff; background: #000; overflow: hidden;
  grid-template-columns: 88px minmax(340px, .95fr) 1.6fr 168px;
  height: calc(100vh - var(--header-h)); height: calc(100svh - var(--header-h)); min-height: 620px; max-height: 920px;
}
.stage-hero > * { grid-row: 1; position: relative; }
.sh-blur { grid-column: 1 / 3; z-index: 0; }
.sh-blur, .sh-aside-bg { overflow: hidden; }
.sh-blur-img { position: absolute; inset: -60px; background-size: cover; background-position: center; filter: blur(28px) saturate(1.2) brightness(.42); transform: scale(1.1); opacity: 0; transition: opacity 1.2s; }
.sh-blur-img.is-active { opacity: 1; }
/* Retícula de líneas finas */
.sh-rail, .sh-copy, .sh-media { border-right: 1px solid var(--line); }
.sh-rail::before, .sh-copy::before { content: ""; position: absolute; left: 0; right: 0; top: var(--top); height: 1px; background: var(--line); }
.sh-mark { transition: opacity .6s; }
.stage-hero.on-event .sh-mark { opacity: 0; }

.sh-rail { grid-column: 1; z-index: 1; display: flex; flex-direction: column; align-items: center; padding: calc(var(--top) + 24px) 0 32px; }
.sh-count { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.sh-count button { background: none; border: 0; color: rgb(255 255 255 / .45); font: 500 .8125rem/1 var(--font-plain); letter-spacing: .08em; cursor: pointer; padding: 6px; transition: color .3s; }
.sh-count button:hover, .sh-count button.is-active { color: #fff; }
.sh-progress { width: 1px; height: 88px; background: rgb(255 255 255 / .2); margin-top: 18px; }
.sh-progress i { display: block; width: 100%; height: 100%; background: #fff; transform-origin: top; transform: scaleY(0); }
.sh-scroll { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 12px; color: rgb(255 255 255 / .7); text-decoration: none; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
.sh-scroll span:first-child { writing-mode: vertical-rl; transform: rotate(180deg); }
.sh-scroll .material-symbols-rounded { font-size: 18px; }

.sh-copy { grid-column: 2; z-index: 1; }
.sh-text { position: absolute; inset: 0; padding: calc(var(--top) + 24px) clamp(28px, 3vw, 48px) 120px; display: flex; flex-direction: column; visibility: hidden; }
.sh-text.is-active { visibility: visible; }
.sh-overline { font: 400 1.0625rem/1.4 "Cormorant Garamond", serif; font-style: italic; color: rgb(255 255 255 / .8); }
.sh-title { font: 500 clamp(3rem, 5.6vw, 5.75rem)/.95 "Cormorant Garamond", serif; letter-spacing: -.01em; margin: auto 0 12px; }
.sh-subtitle { font: 500 .8125rem/1.4 var(--font-plain); letter-spacing: .18em; text-transform: uppercase; color: rgb(255 255 255 / .85); }
.sh-desc { font-size: .9375rem; line-height: 1.6; color: rgb(255 255 255 / .72); max-width: 38ch; margin: 20px 0 0; }
.sh-price { margin-top: 16px; font: 500 1.125rem/1 var(--font-plain); }
.sh-price span { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: rgb(255 255 255 / .6); margin-right: 6px; }
.sh-actions { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: stretch; height: 76px; border-top: 1px solid var(--line); }
.sh-buy { display: grid; place-items: center; padding: 0 clamp(28px, 3vw, 44px); background: #fff; color: #000; text-decoration: none; font: 600 .9375rem/1 var(--font-plain); letter-spacing: .02em; transition: background .25s, color .25s; }
.sh-buy:hover { background: #000; color: #fff; box-shadow: inset 0 0 0 1px #fff; }
.sh-more { display: inline-flex; align-items: center; gap: 8px; padding: 0 24px; color: #fff; text-decoration: none; font: 500 .875rem/1 var(--font-plain); }
.sh-more .material-symbols-rounded { font-size: 18px; transition: transform .25s; }
.sh-more:hover .material-symbols-rounded { transform: translateX(4px); }

.sh-media { grid-column: 3; z-index: 1; overflow: hidden; background: #111; }
.sh-img { position: absolute; inset: 0; margin: 0; visibility: hidden; }
.sh-img.is-active { visibility: visible; }
.sh-img img { width: 100%; height: 100%; object-fit: cover; }
.sh-mark { position: absolute; right: 36px; bottom: 36px; width: clamp(72px, 8vw, 120px); opacity: .92; z-index: 2; mix-blend-mode: screen; pointer-events: none; }
.sh-arrows { position: absolute; left: 32px; bottom: 32px; display: flex; gap: 12px; z-index: 2; }
.sh-arrows button { width: 56px; height: 56px; border-radius: 50%; border: 1px solid rgb(255 255 255 / .55); background: rgb(0 0 0 / .25); color: #fff; cursor: pointer; display: grid; place-items: center; backdrop-filter: blur(6px); transition: background .25s, border-color .25s; }
.sh-arrows button:hover { background: #fff; color: #000; border-color: #fff; }

.sh-aside { grid-column: 4; z-index: 1; display: flex; flex-direction: column; justify-content: space-between; padding: calc(var(--top) + 24px) 0 32px; }
.sh-aside-bg { position: absolute; inset: 0; z-index: -1; }
.sh-aside-bg .sh-blur-img { filter: blur(30px) saturate(1.5) brightness(.75); }
.sh-social { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.sh-social a { writing-mode: vertical-rl; color: #fff; text-decoration: none; font: 500 .8125rem/1 var(--font-plain); letter-spacing: .1em; opacity: .85; transition: opacity .2s; }
.sh-social a:hover { opacity: 1; text-decoration: underline; }
.sh-contact { display: grid; gap: 8px; padding: 0 20px; font-size: .8125rem; }
.sh-contact a { color: #fff; text-decoration: none; opacity: .9; }

@media (max-width: 1199px) {
  .stage-hero { grid-template-columns: 72px minmax(320px, 1fr) 1.3fr; }
  .sh-aside { display: none; }
}
@media (max-width: 899px) {
  .stage-hero { grid-template-columns: 1fr; grid-template-rows: auto auto; height: auto; max-height: none; min-height: 0; }
  .sh-rail::before, .sh-copy::before, .sh-rail .sh-progress, .sh-scroll { display: none; }
  .sh-media { grid-row: 1; grid-column: 1; aspect-ratio: 4 / 3.4; border: 0; }
  .sh-blur { grid-row: 2; grid-column: 1; }
  .sh-copy { grid-row: 2; grid-column: 1; min-height: 440px; border: 0; }
  .sh-text { padding: 28px 20px 96px; }
  .sh-title { margin-top: 12px; font-size: 3.25rem; }
  .sh-rail { grid-row: 1; grid-column: 1; align-self: start; justify-self: start; padding: 16px; border: 0; z-index: 3; }
  .sh-count { grid-auto-flow: column; gap: 4px; }
  .sh-arrows { left: auto; right: 16px; bottom: 16px; }
  .sh-arrows button { width: 48px; height: 48px; }
  .sh-mark { left: 20px; right: auto; bottom: 20px; width: 64px; }
  .sh-actions { height: 64px; }
}

/* Cormorant usa números de estilo antiguo; en fechas y precios se alinean */
.serif-title, .ev-fact .v, .day-card .d, .perf-date .d, .perf-body h3, .ev-title { font-variant-numeric: lining-nums; }
@media (max-width: 839px) { .outline-word { display: none; } }

/* Comprador con cuenta en el paso de pago */
.buyer-card { display: flex; align-items: center; gap: 12px; padding: 16px; margin-top: 12px; border-radius: var(--shape-m); background: var(--md-surface-container-low); }
.buyer-card .material-symbols-rounded { font-size: 36px; color: var(--md-on-surface-variant); }

/* ---------- Pago y boletos ---------- */
.pay-methods { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border: 1px solid var(--md-outline-variant); border-radius: var(--shape-m); }
.pay-methods .material-symbols-rounded { color: var(--md-on-surface-variant); }
.pay-box { max-width: 520px; margin: clamp(32px, 8vh, 96px) auto; text-align: center; display: grid; gap: 12px; justify-items: center; }
.pay-box .amount { font: 500 3rem/1 "Cormorant Garamond", serif; font-variant-numeric: lining-nums; }
.pay-box .row { justify-content: center; margin-top: 12px; }
.sim-tag { display: inline-flex; gap: 6px; align-items: center; padding: 4px 12px; border-radius: var(--shape-full); background: var(--md-surface-container-high); font: 600 .75rem/1.5 var(--font-plain); letter-spacing: .08em; text-transform: uppercase; }

.order-status { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: var(--shape-m); background: var(--md-surface-container-low); margin-bottom: 24px; }
.order-status .material-symbols-rounded { font-size: 32px; }
.order-status.ok { background: var(--md-success-container); color: var(--md-on-success-container); }
.order-status.bad { background: var(--md-error-container); color: var(--md-on-error-container); }
.tickets { display: grid; gap: 16px; }
.ticket { display: grid; grid-template-columns: 1fr auto; border: 1px solid var(--md-outline-variant); border-radius: var(--shape-m); overflow: hidden; background: #fff; break-inside: avoid; }
.ticket-main { padding: 20px; border-left: 6px solid var(--c); display: grid; gap: 4px; align-content: start; }
.ticket-main .ev { font: 500 1.375rem/1.15 "Cormorant Garamond", serif; font-variant-numeric: lining-nums; }
.ticket-qr { width: 148px; padding: 14px; border-left: 1px dashed var(--md-outline); display: grid; gap: 6px; justify-items: center; align-content: center; }
.ticket-qr svg { width: 120px; height: 120px; }
.ticket-qr code { font-size: .625rem; color: var(--md-on-surface-variant); word-break: break-all; text-align: center; }
@media (max-width: 479px) { .ticket { grid-template-columns: 1fr; } .ticket-qr { width: auto; border-left: 0; border-top: 1px dashed var(--md-outline); } .ticket-qr svg { width: 160px; height: 160px; } }
/* Boletos impresos: medidas físicas para que no dependan del ancho de la ventana.
   @page fija tamaño carta y sin márgenes del navegador (así no salen fecha ni URL). */
.print-only { display: none; }
@page { size: letter; margin: 0; }
@media print {
  .topbar, .footer, .event-band, .stepper, .no-print, .curtain, .snackbar { display: none !important; }
  html, body { background: #fff !important; }
  .booking-grid, .booking-center, .wrap { display: block !important; padding: 0 !important; margin: 0 !important; max-width: none !important; width: auto !important; }
  .print-only { display: block; }
  .print-page { width: 215.9mm; height: 279.4mm; padding: 14mm 16mm; box-sizing: border-box; display: flex; flex-direction: column; gap: 6mm; break-after: page; overflow: hidden; }
  .print-page:last-child { break-after: auto; }
  .print-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 3mm; border-bottom: .3mm solid #000; font: 10pt/1.2 var(--font-plain); }
  .print-head img { height: 7mm; }
  .print-foot { margin-top: auto; font: 8pt/1 var(--font-plain); color: #555; text-align: center; }
  .pticket { display: grid; grid-template-columns: 1fr 58mm; height: 70mm; border: .3mm solid #bbb; border-radius: 3mm; overflow: hidden; break-inside: avoid; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .pticket-main { border-left: 4mm solid var(--c); padding: 5mm 6mm; display: flex; flex-direction: column; gap: 1mm; min-width: 0; }
  .pt-ev { font: 500 17pt/1.1 "Cormorant Garamond", serif; font-variant-numeric: lining-nums; }
  .pt-when { font: 600 10pt/1.3 var(--font-plain); }
  .pt-venue { font: 400 9pt/1.3 var(--font-plain); color: #444; }
  .pt-seat { display: flex; gap: 8mm; margin-top: auto; }
  .pt-seat div { display: flex; flex-direction: column; }
  .pt-seat span { font: 600 7pt/1.2 var(--font-plain); letter-spacing: .08em; text-transform: uppercase; color: #666; }
  .pt-seat b { font: 700 20pt/1.1 var(--font-brand); }
  .pt-seat div:first-child b { font-size: 12pt; line-height: 2.1; }
  .pt-foot { font: 400 7.5pt/1.3 var(--font-plain); color: #555; margin-top: 2mm; }
  .pticket-qr { border-left: .4mm dashed #999; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2mm; padding: 4mm; }
  .pticket-qr svg { width: 44mm; height: 44mm; }
  .pticket-qr code { font-size: 6pt; color: #666; word-break: break-all; text-align: center; }
}

/* ---------- Check-in en puerta ---------- */
.checkin { max-width: 560px; }
.checkin-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.checkin-count { text-align: right; font: 600 1.75rem/1 var(--font-brand); }
.checkin-bar { height: 4px; background: var(--md-surface-container-high); border-radius: 2px; margin: 12px 0 16px; overflow: hidden; }
.checkin-bar i { display: block; height: 100%; background: #000; transition: width .4s; }
.scanner { position: relative; aspect-ratio: 1; background: #000; border-radius: var(--shape-l); overflow: hidden; color: #fff; }
.scanner video { width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.scanner video.on { opacity: 1; }
.scanner-frame { position: absolute; inset: 18%; border: 3px solid rgb(255 255 255 / .9); border-radius: 18px; box-shadow: 0 0 0 999px rgb(0 0 0 / .35); }
.scanner-idle { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 16px; text-align: center; padding: 24px; }
.scanner-idle .material-symbols-rounded { font-size: 64px; opacity: .7; }
.scan-result { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; gap: 6px; padding: 24px; color: #fff; background: #555; }
.scan-result .material-symbols-rounded { font-size: 72px; }
.scan-result .t { font: 600 2rem/1.1 var(--font-brand); }
.scan-result .s { font: 600 1.125rem/1.4 var(--font-plain); }
.scan-result .d, .scan-result .b { font-size: .9375rem; opacity: .9; }
.scan-result.ok { background: #0b7a3b; }
.scan-result.used { background: #b26a00; }
.scan-result.wrong, .scan-result.invalid { background: #b3261e; }
.manual { display: flex; gap: 8px; margin: 16px 0 24px; }
.history { display: grid; gap: 4px; }
.history .title-m { margin-bottom: 4px; }
.history-row { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--md-outline-variant); font-size: .875rem; }
.history-row .dot { --c: #b3261e; }
.history-row.ok .dot { --c: #0b7a3b; }
.history-row.used .dot { --c: #b26a00; }

/* ---------- Editor de mapas ---------- */
.editor { display: grid; grid-template-columns: 56px 1fr 340px; grid-template-rows: auto 1fr; height: 100vh; height: 100dvh; background: var(--md-surface); }
.ed-bar { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; padding: 8px 16px; border-bottom: 1px solid var(--md-outline-variant); }
.ed-bar form { margin: 0; }
.ed-title { display: grid; gap: 2px; }
.ed-name { border: 0; padding: 2px 0; font: 600 1rem/1.4 var(--font-brand); background: none; min-width: 220px; border-bottom: 1px dashed transparent; }
.ed-name:hover, .ed-name:focus { outline: none; border-bottom-color: var(--md-outline); }
.ed-stats { margin-left: 8px; }
.ed-warn { color: var(--md-error); font-weight: 600; }
.ed-tools { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 0; border-right: 1px solid var(--md-outline-variant); }
.ed-tools button { width: 40px; height: 40px; border-radius: var(--shape-m); border: 0; background: none; cursor: pointer; display: grid; place-items: center; color: var(--md-on-surface); }
.ed-tools button:hover { background: var(--md-surface-container-high); }
.ed-tools button.on { background: #000; color: #fff; }
.ed-tools hr { width: 28px; border: 0; border-top: 1px solid var(--md-outline-variant); margin: 6px 0; }
.ed-stage { position: relative; overflow: hidden; min-width: 0; }
.ed-stage.picking .upper-canvas { cursor: crosshair !important; }
.ed-status { position: absolute; left: 12px; bottom: 12px; right: 12px; pointer-events: none; padding: 6px 10px; border-radius: var(--shape-s); background: rgb(255 255 255 / .9); color: var(--md-on-surface-variant); width: fit-content; max-width: calc(100% - 24px); }
.ed-panel { border-left: 1px solid var(--md-outline-variant); overflow-y: auto; padding: 16px; display: grid; gap: 16px; align-content: start; }
.ed-sec { display: grid; gap: 10px; padding-bottom: 16px; border-bottom: 1px solid var(--md-outline-variant); }
.ed-sec:last-child { border-bottom: 0; }
.ed-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; }
.ed-grid label, .ed-label { display: grid; gap: 4px; font: 600 .75rem/1.2 var(--font-plain); color: var(--md-on-surface-variant); }
.ed-full { grid-column: 1 / -1; }
.ed-panel input:not([type="color"]), .ed-panel select { height: 36px; padding: 0 10px; border: 1px solid var(--md-outline); border-radius: var(--shape-s); font: 400 .875rem/1 var(--font-plain); color: var(--md-on-surface); background: #fff; min-width: 0; width: 100%; }
.ed-inline { display: flex; gap: 8px; align-items: flex-end; }
.ed-inline select { width: auto; }
.ed-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.ed-section { display: grid; grid-template-columns: 32px 64px 1fr 36px 32px; gap: 6px; align-items: center; }
.ed-section input[type="color"] { width: 32px; height: 32px; border: 0; padding: 0; background: none; cursor: pointer; }
.ed-section .icon-btn { width: 32px; height: 32px; }
.ed-panel .banner { margin: 0; }
@media (max-width: 899px) { .editor { grid-template-columns: 48px 1fr; } .ed-panel { grid-column: 1 / -1; max-height: 40vh; } .ed-stats { display: none; } }

/* ---------- Cupos (admin) ---------- */
.cupo-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.cupo { border: 1px solid var(--md-outline-variant); border-radius: var(--shape-m); padding: 12px 12px 8px 16px; position: relative; }
.cupo::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: var(--c); }
.cupo-head { display: flex; align-items: center; gap: 8px; }
.cupo-head .title-m { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cupo-nums { display: flex; gap: 12px; font-size: .8125rem; color: var(--md-on-surface-variant); margin: 2px 0 6px; }
.cupo-nums b { color: var(--md-on-surface); font-weight: 600; }
.cupo-link { display: flex; align-items: center; gap: 4px; background: #fbf3df; border-radius: var(--shape-s); padding: 4px 4px 4px 10px; font-size: .75rem; color: #5c4400; margin-bottom: 6px; }
.cupo-link span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cupo-actions { display: flex; flex-wrap: wrap; gap: 0 4px; margin-left: -8px; }
.cupo-new { display: flex; gap: 8px; align-items: center; margin-top: 12px; }
.cupo-new input[type="text"] { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border: 1px solid var(--md-outline); border-radius: var(--shape-s); font: 400 .875rem/1 var(--font-plain); }
.cupo-new input[type="color"] { width: 40px; height: 40px; padding: 2px; border: 1px solid var(--md-outline); border-radius: var(--shape-s); background: #fff; cursor: pointer; }
.assign-row { display: flex; gap: 8px; margin-bottom: 8px; }
.sold-note { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; padding: 10px 12px; border-radius: var(--shape-s); background: var(--md-surface-container-high); font-size: .8125rem; line-height: 1.35; }
.sold-note a { font-weight: 600; margin-left: 6px; }
.foot-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.foot-actions .btn { padding: 0 12px; min-width: 0; gap: 6px; }
.foot-actions .btn .material-symbols-rounded { font-size: 18px; }
.sel-count { display: flex; align-items: center; gap: 4px; }
.assign-row select { flex: 1; min-width: 0; height: 40px; padding: 0 10px; border: 1px solid var(--md-outline); border-radius: var(--shape-s); font: 400 .875rem/1 var(--font-plain); background: #fff; }

dialog.sheet { border: 0; padding: 0; border-radius: var(--shape-xl, 28px); width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); box-shadow: var(--elev-3); background: var(--md-surface); color: var(--md-on-surface); }
dialog.sheet::backdrop { background: rgb(0 0 0 / .32); }
dialog.sheet form { padding: 24px; }
dialog.sheet h2 { margin: 0 0 4px; }
dialog.sheet .sheet-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.method-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.method-chips label { cursor: pointer; }
.method-chips input { position: absolute; opacity: 0; pointer-events: none; }
.method-chips input:checked + .chip { background: var(--md-primary); color: var(--md-on-primary); border-color: transparent; }
.method-chips input:focus-visible + .chip { outline: 2px solid var(--md-primary); outline-offset: 2px; }
.banner.presale { background: #fbf3df; color: #5c4400; }
.link-btn { border: 0; background: none; padding: 0; font: inherit; font-weight: 600; color: inherit; text-decoration: underline; cursor: pointer; }

/* Diálogos propios (dialogs.js) */
dialog.dlg { width: min(440px, calc(100vw - 32px)); }
dialog.dlg [hidden] { display: none !important; }
dialog.dlg h2 { margin: 0 0 12px; }
.dlg-icon { display: flex; justify-content: center; margin-bottom: 12px; color: var(--md-primary); }
.dlg-icon .material-symbols-rounded { font-size: 28px; }
.dlg-msg p { margin: 0 0 8px; color: var(--md-on-surface-variant); }
.dlg-warn { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0; padding: 12px; border-radius: var(--shape-s, 8px); background: var(--md-error-container); color: var(--md-on-error-container); }
.dlg-warn .material-symbols-rounded { font-size: 20px; }
.dlg-field { margin-top: 16px; }
.dlg-field textarea { width: 100%; resize: vertical; font: inherit; }
.dlg-field .dlg-error { color: var(--md-error); font-weight: 600; }
.dlg-copy { display: flex; gap: 8px; align-items: center; margin-top: 16px; }
.dlg-copy input { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border: 1px solid var(--md-outline); border-radius: var(--shape-s, 8px); font: 400 .875rem/1 var(--font-plain); background: var(--md-surface-container-low, transparent); color: var(--md-on-surface); }
dialog.dlg .sheet-actions { margin-top: 24px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 16px 8px 24px; }
.card-head h2 { margin: 0; }
.option-list { display: flex; flex-direction: column; gap: 8px; max-height: 280px; overflow: auto; }
.option { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--md-outline-variant); border-radius: var(--shape-m, 12px); cursor: pointer; font-weight: 400; }
.option:has(input:checked) { border-color: var(--md-primary); box-shadow: inset 0 0 0 1px var(--md-primary); background: var(--md-surface-container-low); }
.option input { margin-top: 3px; accent-color: var(--md-primary); }
.option > span { display: flex; flex-direction: column; gap: 2px; }
