:root {
  --bg-dark: #0a0a0f;
  --bg-card: #14141f;
  --bg-card-hover: #1a1a2e;
  --accent: #e50914;
  --accent-hover: #f40612;
  --text: #ffffff;
  --text-muted: #a0a0a0;
  --green: #22c55e;
  --red: #ef4444;
  --gray: #6b7280;
  --blue: #3b82f6;
}

* { box-sizing: border-box; }

body {
  background: var(--bg-dark);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
}

.site-logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  flex-shrink: 0;
}

.site-logo {
  display: block;
  width: auto;
  height: 2.25rem;
  max-width: min(11rem, 46vw);
  object-fit: contain;
  object-position: left center;
}

@media (min-width: 640px) {
  .site-logo {
    height: 2.75rem;
    max-width: 12.5rem;
  }
}

.site-logo--sidebar {
  height: 2.5rem;
  max-width: 100%;
  object-position: left center;
}

.site-logo--login {
  height: 3.25rem;
  max-width: 14rem;
  margin: 0 auto;
  object-position: center;
}

.site-footer-brand {
  max-width: min(420px, 92vw);
  margin: 0 auto;
}

.site-footer-center {
  display: block;
  width: 100%;
  height: auto;
  max-height: 4.5rem;
  object-fit: contain;
}

.app-spinner-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 10, 15, 0.88);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
}

.app-spinner-overlay.hidden {
  display: none;
}

.app-spinner {
  width: 3rem;
  height: 3rem;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: app-spin 0.75s linear infinite;
}

.app-spinner-text {
  color: #d1d5db;
  font-size: 0.9rem;
  text-align: center;
  max-width: 16rem;
}

@keyframes app-spin {
  to { transform: rotate(360deg); }
}

.cinematic-overlay {
  background: linear-gradient(to top, rgba(10,10,15,1) 0%, rgba(10,10,15,0.4) 50%, rgba(10,10,15,0.7) 100%);
}

.btn-primary {
  background: var(--accent);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary:hover { background: var(--accent-hover); transform: scale(1.02); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-secondary {
  background: transparent;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.3);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover { border-color: white; background: rgba(255,255,255,0.05); }

.card-event {
  background: var(--bg-card);
  border-radius: 1rem;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s, border-color 0.35s;
  border: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-event:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0,0,0,0.5), 0 0 0 1px rgba(229,9,20,0.15);
  border-color: rgba(229,9,20,0.25);
}

.card-event-media {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #0a0a0f;
}

.card-event-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-event:hover .card-event-media img {
  transform: scale(1.08);
}

.card-event-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,15,0.95) 0%, rgba(10,10,15,0.2) 45%, transparent 100%);
  pointer-events: none;
}

.card-event-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.card-event-featured {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 158, 11, 0.9);
  color: #fff;
  border-radius: 50%;
  font-size: 0.75rem;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.card-event-body {
  padding: 1rem 1.125rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.5rem;
}

.card-event-title {
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-event-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.card-event-meta span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.card-event-meta i {
  width: 0.875rem;
  text-align: center;
  color: var(--accent);
  font-size: 0.75rem;
}

.card-event-cta {
  margin-top: auto;
  padding-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
  transition: gap 0.2s;
}

.card-event:hover .card-event-cta {
  gap: 0.75rem;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 640px) {
  .events-grid { gap: 1.25rem; }
}

@media (min-width: 768px) {
  .events-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1280px) {
  .events-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
}

.section-title {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .section-title { font-size: 1.5rem; margin-bottom: 1.5rem; }
}

.section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.625rem;
  font-size: 0.9rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.destacados-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (min-width: 768px) {
  .destacados-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .events-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .card-event-media {
    aspect-ratio: 3 / 4;
  }

  .card-event-body {
    padding: 0.875rem 1rem 1.125rem;
  }

  .card-event-title {
    font-size: 0.9375rem;
  }
}

@media (min-width: 1024px) {
  .destacados-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.35rem;
  }

  .events-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.35rem;
  }
}

/* Seat map & zones */
.seat-map-container {
  padding: 0.5rem 0.4rem;
  background: var(--bg-card);
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,0.05);
  width: 100%;
  overflow: hidden;
}

.seat-section {
  display: grid;
  gap: 2px;
  min-width: 0;
  width: 100%;
}

.section-16 { grid-template-columns: repeat(16, minmax(0, 1fr)); }
.section-18 { grid-template-columns: repeat(18, minmax(0, 1fr)); }

/* Zone picker — 6 zonas */
.zones-overview { width: 100%; }

.zone-group {
  margin-bottom: 0.5rem;
}

.zone-group-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-bottom: 0.75rem;
}

.zone-group-badge {
  background: rgba(229,9,20,0.15);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.zone-group-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.zones-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .zones-grid { grid-template-columns: repeat(3, 1fr); }
}

.zone-card {
  background: #0a0a0f;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0.75rem;
  padding: 1rem;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  width: 100%;
}

.zone-card:hover {
  border-color: rgba(229,9,20,0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.zone-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.zone-card-id {
  font-size: 0.65rem;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.zone-card-cols {
  font-size: 0.65rem;
  color: var(--text-muted);
  background: rgba(255,255,255,0.05);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.zone-card-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.zone-card-filas {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.zone-card-stats {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}

.zone-disponibles {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
}

.zone-stats-label {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.zone-card-bar {
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.zone-card-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green), #4ade80);
  border-radius: 2px;
  transition: width 0.3s;
}

.zone-card-action {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
}

.zone-aisle {
  margin: 1.25rem 0;
}

.zone-aisle::after { content: none; }

.zone-aisle span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg-dark);
  padding: 0 0.75rem;
  font-size: 0.6rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.zone-aisle {
  position: relative;
  height: 1.5rem;
  border-top: 2px dashed rgba(255,255,255,0.1);
}

/* Diagrama general del teatro */
.zones-diagram {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 0.75rem;
  padding: 1rem;
}

.diagram-screen {
  background: linear-gradient(to bottom, #333, #111);
  color: var(--text-muted);
  text-align: center;
  padding: 0.3rem;
  margin: 0 auto 0.75rem;
  max-width: 50%;
  border-radius: 0 0 40% 40%;
  font-size: 0.55rem;
  letter-spacing: 0.2em;
}

.diagram-row {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 3px;
  max-width: 320px;
  margin: 0 auto;
}

.diagram-cell {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  min-height: 4.5rem;
  padding: 0.4rem 0.25rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  font-size: 0.65rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.diagram-cell:hover {
  border-color: var(--accent);
  color: #fff;
  background: rgba(229,9,20,0.12);
  transform: scale(1.02);
}

.diagram-zone-id {
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.diagram-cols {
  font-size: 0.6rem;
  opacity: 0.7;
}

.diagram-cols::after {
  content: ' cols';
  font-size: 0.5rem;
}

.diagram-disp {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1;
  color: #fff;
}

.diagram-disp-label {
  font-size: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.diagram-cell-ok {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.08);
}

.diagram-cell-ok .diagram-disp { color: var(--green); }

.diagram-cell-low {
  border-color: rgba(234, 179, 8, 0.4);
  background: rgba(234, 179, 8, 0.06);
}

.diagram-cell-low .diagram-disp { color: #eab308; }

.diagram-cell-empty {
  opacity: 0.45;
  cursor: not-allowed;
}

.diagram-cell-empty .diagram-disp { color: var(--gray); }

.diagram-cell-selected {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 2px rgba(229, 9, 20, 0.35);
  background: rgba(229, 9, 20, 0.15) !important;
}

.zones-diagram-live {
  max-width: 100%;
}

.zones-diagram-live .diagram-row {
  max-width: min(100%, 420px);
}

.zones-diagram-live .diagram-aisle-h {
  max-width: min(100%, 420px);
}

.diagram-aisle-v {
  width: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 1px;
  flex-shrink: 0;
}

.diagram-aisle-h {
  height: 4px;
  background: rgba(255,255,255,0.08);
  margin: 6px auto;
  max-width: 320px;
}

/* Mapa ampliado de una zona */
.btn-back-zones {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: #ccc;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-back-zones:hover {
  border-color: var(--accent);
  color: #fff;
}

.zone-seat-map {
  width: 100%;
}

.zone-cols-header,
.zone-seat-row {
  display: grid;
  grid-template-columns: 1.25rem minmax(0, 1fr) 1.25rem;
  gap: 4px;
  align-items: center;
  margin-bottom: 3px;
  width: 100%;
}

.zone-cols-hint {
  text-align: center;
  font-size: 0.65rem;
  color: var(--text-muted);
  padding: 0.25rem 0;
}

.zone-cols-header { margin-bottom: 6px; }

.screen {
  background: linear-gradient(to bottom, #333, #111);
  color: var(--text-muted);
  text-align: center;
  padding: 0.35rem 1rem;
  margin: 0 auto 0.75rem;
  max-width: 70%;
  border-radius: 0 0 50% 50%;
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.row-label {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.55rem;
  color: var(--text-muted);
  min-width: 0;
}

.seat {
  width: 100%;
  aspect-ratio: 1;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: none;
  border-radius: 2px 2px 1px 1px;
  cursor: pointer;
  font-size: 0;
  font-weight: 600;
  line-height: 1;
  transition: transform 0.12s, box-shadow 0.12s, filter 0.12s;
  color: rgba(255,255,255,0.95);
}

.seat:hover:not(:disabled) {
  transform: scale(1.2);
  z-index: 2;
  filter: brightness(1.15);
}

.seat-disponible { background: var(--green); }
.seat-ocupada { background: var(--red); cursor: not-allowed; opacity: 0.8; }
.seat-fisica { background: var(--gray); cursor: not-allowed; opacity: 0.65; }
.seat-seleccionado {
  background: var(--blue);
  box-shadow: 0 0 0 1px #fff, 0 0 8px rgba(59,130,246,0.7);
  transform: scale(1.15);
  z-index: 3;
}

.aisle-horizontal {
  height: 1.25rem;
  margin: 0.75rem 0;
  border-top: 2px dashed rgba(255,255,255,0.12);
  position: relative;
}

.aisle-horizontal::after {
  content: 'PASILLO';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg-card);
  padding: 0 0.5rem;
  font-size: 0.55rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
}

.seat-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.legend-dot {
  width: 1rem;
  height: 1rem;
  border-radius: 0.25rem;
}

/* Swiper hero */
.hero-swiper { width: 100%; height: 85vh; }

.hero-slide {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.event-hero .hero-video,
.event-hero .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.event-hero .hero-bg {
  background-size: cover;
  background-position: center;
}

/* Admin */
.admin-layout {
  display: flex;
  min-height: 100vh;
  position: relative;
}

.admin-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 60;
  width: 2.75rem;
  height: 2.75rem;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.625rem;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}

.admin-menu-toggle:hover { background: var(--bg-card-hover); }

@media (min-width: 1024px) {
  .admin-menu-toggle { display: none; }
}

.admin-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 45;
  backdrop-filter: blur(2px);
}

.admin-overlay.is-visible { display: block; }

@media (min-width: 1024px) {
  .admin-overlay { display: none !important; }
}

.admin-sidebar {
  background: var(--bg-card);
  min-height: 100vh;
  width: 260px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.admin-sidebar.is-open {
  transform: translateX(0);
}

@media (min-width: 1024px) {
  .admin-sidebar {
    transform: translateX(0);
    position: sticky;
    top: 0;
    flex-shrink: 0;
  }
}

.admin-menu-close { display: block; }

@media (min-width: 1024px) {
  .admin-menu-close { display: none; }
}

.admin-content {
  flex: 1;
  padding: 1.25rem;
  padding-top: 4.5rem;
  min-width: 0;
}

@media (min-width: 1024px) {
  .admin-content { padding: 2rem; padding-top: 2rem; }
}

body.admin-menu-open { overflow: hidden; }

/* Control de ingreso — lector QR */
.qr-page .admin-content {
  padding-bottom: 2rem;
}

.qr-scanner-wrap {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1rem;
  padding: 1rem;
  overflow: hidden;
}

.qr-reader {
  width: 100%;
  min-height: 280px;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #000;
}

.qr-reader video {
  border-radius: 0.75rem;
  object-fit: cover;
}

.qr-scanner-hint {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

.qr-manual summary {
  list-style: none;
}

.qr-manual summary::-webkit-details-marker {
  display: none;
}

.qr-result {
  border-radius: 1rem;
  padding: 1.25rem;
  border: 2px solid transparent;
  animation: qrFadeIn 0.35s ease;
}

@keyframes qrFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.qr-result--ok {
  background: linear-gradient(180deg, rgba(34,197,94,0.12) 0%, var(--bg-card) 40%);
  border-color: rgba(34,197,94,0.45);
}

.qr-result--warn {
  background: linear-gradient(180deg, rgba(234,179,8,0.12) 0%, var(--bg-card) 40%);
  border-color: rgba(234,179,8,0.45);
}

.qr-result--error {
  background: linear-gradient(180deg, rgba(239,68,68,0.12) 0%, var(--bg-card) 40%);
  border-color: rgba(239,68,68,0.45);
}

.qr-result-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.qr-result-header > i {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.qr-result--ok .qr-result-header > i { color: var(--green); }
.qr-result--warn .qr-result-header > i { color: #eab308; }
.qr-result--error .qr-result-header > i { color: var(--red); }

.qr-result-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.qr-result-sub {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.qr-seat-hero {
  text-align: center;
  background: rgba(0,0,0,0.35);
  border-radius: 0.875rem;
  padding: 1.25rem 1rem;
  margin-bottom: 1rem;
}

.qr-seat-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.qr-seat-fila,
.qr-seat-num {
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
}

.qr-seat-fila {
  font-size: clamp(2rem, 10vw, 3rem);
}

.qr-seat-num {
  font-size: clamp(2.5rem, 12vw, 3.75rem);
  margin-top: 0.15rem;
}

.qr-seat-fila span,
.qr-seat-num span {
  color: var(--accent);
}

.qr-ubicacion-box {
  background: rgba(229,9,20,0.08);
  border: 1px solid rgba(229,9,20,0.25);
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 1rem;
  text-align: center;
}

.qr-ubicacion-zona {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.35rem;
}

.qr-ubicacion-bloque {
  font-size: 0.9375rem;
  color: #ddd;
}

.qr-ubicacion-sector {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.qr-ubicacion-hint {
  font-size: 0.8125rem;
  color: var(--accent);
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.qr-person-box {
  padding: 0.75rem 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 0.75rem;
}

.qr-person-name {
  font-size: 1.125rem;
  font-weight: 600;
}

.qr-person-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.qr-person-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.qr-event-box {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.qr-event-title {
  font-weight: 600;
  color: #ccc;
  font-size: 0.9375rem;
}

.qr-event-meta {
  margin-top: 0.25rem;
  text-transform: capitalize;
}

.qr-btn-ingreso {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  background: var(--green);
  color: #fff;
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: transform 0.15s, filter 0.15s;
}

.qr-btn-ingreso:hover:not(:disabled) {
  filter: brightness(1.08);
  transform: scale(1.01);
}

.qr-btn-ingreso:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.qr-btn-hint {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .qr-reader {
    min-height: 240px;
  }

  .qr-result-title {
    font-size: 1.0625rem;
  }
}

.stat-card {
  background: var(--bg-card);
  border-radius: 0.75rem;
  padding: 1.5rem;
  border: 1px solid rgba(255,255,255,0.05);
}

.input-field {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  color: white;
  outline: none;
  transition: border-color 0.2s;
}

.input-field:focus { border-color: var(--accent); }

select.input-field option {
  background: #14141f;
  color: #fff;
}

/* Localidad searchable picker */
.localidad-picker {
  position: relative;
  width: 100%;
  z-index: 1;
}

.localidad-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 9998;
  backdrop-filter: blur(2px);
}

.localidad-backdrop:not(.hidden) {
  display: block;
}

.localidad-sheet-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1rem 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.localidad-sheet-title {
  font-weight: 700;
  font-size: 1rem;
}

.localidad-sheet-close {
  background: rgba(255,255,255,0.08);
  border: none;
  color: #ccc;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.localidad-sheet-close:hover {
  background: rgba(255,255,255,0.14);
  color: #fff;
}

body.localidad-open {
  overflow: hidden;
  overscroll-behavior: none;
}

.input-numeric {
  font-variant-numeric: tabular-nums;
}

.localidad-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: #0a0a0f;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 0.625rem;
  padding: 0.75rem 1rem;
  color: #888;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  text-align: left;
}

.localidad-trigger:hover {
  border-color: rgba(255,255,255,0.25);
}

.localidad-trigger.is-open,
.localidad-trigger:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(229,9,20,0.15);
  outline: none;
}

.localidad-trigger.has-value {
  background: #0a0a0f;
  border-color: rgba(229,9,20,0.4);
}

.localidad-trigger.has-value .localidad-trigger-text {
  color: #fff;
  font-weight: 600;
}

.localidad-trigger.is-open .localidad-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

.localidad-chevron {
  flex-shrink: 0;
  color: #666;
  transition: transform 0.2s, color 0.2s;
  font-size: 0.875rem;
}

.localidad-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 100;
  background: #0a0a0f;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.75rem;
  box-shadow: 0 16px 48px rgba(0,0,0,0.6);
  overflow: hidden;
}

.localidad-search-wrap {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: #666;
}

.localidad-search {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1rem;
  outline: none;
}

.localidad-search::placeholder { color: #555; }

.localidad-list {
  list-style: none;
  margin: 0;
  padding: 0.375rem;
  max-height: min(240px, 45vh);
  overflow-y: auto;
}

.localidad-list::-webkit-scrollbar { width: 5px; }
.localidad-list::-webkit-scrollbar-thumb { background: rgba(229,9,20,0.4); border-radius: 3px; }

.localidad-option {
  width: 100%;
  text-align: left;
  padding: 0.75rem 0.875rem;
  border: none;
  border-radius: 0.5rem;
  background: transparent;
  color: #ccc;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.localidad-option:hover {
  background: rgba(255,255,255,0.06);
  color: #fff;
}

.localidad-option.is-selected {
  background: rgba(229,9,20,0.15);
  color: var(--accent);
  font-weight: 600;
}

.localidad-option.is-selected:hover {
  background: rgba(229,9,20,0.22);
  color: #ff4d4d;
}

.localidad-empty {
  padding: 1rem;
  text-align: center;
  color: #666;
  font-size: 0.875rem;
  margin: 0;
}

.table-admin {
  width: 100%;
  border-collapse: collapse;
}

.table-admin th,
.table-admin td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.table-admin th {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.estado-valida { background: rgba(34,197,94,0.15); color: #4ade80; }
.estado-utilizada { background: rgba(59,130,246,0.15); color: #60a5fa; }
.estado-cancelada { background: rgba(239,68,68,0.15); color: #f87171; }

.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  z-index: 9999;
  animation: slideIn 0.3s ease;
}

.toast-success { background: #166534; }
.toast-error { background: #991b1b; }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@media (min-width: 768px) {
  .seat { font-size: 7px; }
  .row-label { font-size: 0.65rem; }
  .zone-seat-row { grid-template-columns: 1.5rem minmax(0, 1fr) 1.5rem; }
}

@media (min-width: 1024px) {
  .seat { font-size: 8px; }
  .seat-map-container { padding: 0.75rem; }
}

@media (max-width: 768px) {
  .hero-swiper { height: 65vh; min-height: 420px; }
  .event-hero { height: 50vh !important; }
  .screen { max-width: 90%; margin-bottom: 0.5rem; }
  .seat-legend { gap: 0.5rem; }
  .legend-item { font-size: 0.7rem; }
  .zone-cols-header,
  .zone-seat-row { grid-template-columns: 1rem minmax(0, 1fr) 1rem; gap: 2px; }
  nav.fixed { padding-left: 1rem; padding-right: 1rem; }
  nav.fixed .text-xl { font-size: 0.875rem; }
  nav.fixed .flex.gap-6 { gap: 0.75rem; }

  /* Localidad — bottom sheet en móvil */
  .localidad-sheet-header { display: flex; }
  .localidad-dropdown {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    max-height: 78vh;
    border-radius: 1.125rem 1.125rem 0 0;
    z-index: 9999;
    box-shadow: 0 -12px 40px rgba(0,0,0,0.55);
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .localidad-list {
    max-height: calc(78vh - 130px);
    -webkit-overflow-scrolling: touch;
  }
  .localidad-option {
    min-height: 2.75rem;
    display: flex;
    align-items: center;
  }
  .localidad-trigger {
    min-height: 2.75rem;
    font-size: 1rem;
  }

  /* Cards inicio — layout horizontal más cuadrado */
  .destacados-grid,
  .events-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .card-event {
    flex-direction: row;
    align-items: stretch;
    max-height: 9.5rem;
  }

  .card-event-media {
    width: 9.5rem;
    min-width: 9.5rem;
    max-width: 9.5rem;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
  }

  .card-event-badge {
    top: 0.5rem;
    left: 0.5rem;
    font-size: 0.55rem;
    padding: 0.2rem 0.45rem;
  }

  .card-event-featured {
    top: 0.5rem;
    right: 0.5rem;
    width: 1.5rem;
    height: 1.5rem;
    font-size: 0.6rem;
  }

  .card-event-body {
    padding: 0.75rem 0.875rem;
    justify-content: center;
    min-width: 0;
  }

  .card-event-title {
    font-size: 0.875rem;
    -webkit-line-clamp: 2;
    margin-bottom: 0.15rem;
  }

  .card-event-meta {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    font-size: 0.7rem;
  }

  .card-event-meta span {
    white-space: nowrap;
  }

  .card-event-cta {
    font-size: 0.75rem;
    padding-top: 0.35rem;
    margin-top: 0.25rem;
  }

  .card-event:hover {
    transform: none;
  }
}

/* Reserva — pasos y layout unificado */
.reserva-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 1280px) {
  .reserva-layout {
    grid-template-columns: 1fr minmax(280px, 360px);
    align-items: start;
  }
}

.reserva-step-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.reserva-step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.35rem 0.5rem;
  min-width: 4.5rem;
}

.reserva-step-item:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.reserva-step-num {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.reserva-step-item.is-active .reserva-step-num,
.reserva-step-item.is-done .reserva-step-num {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.reserva-step-item.is-done:not(.is-active) .reserva-step-num {
  background: rgba(34, 197, 94, 0.2);
  border-color: var(--green);
  color: var(--green);
}

.reserva-step-label {
  font-size: 0.65rem;
  font-weight: 600;
}

.reserva-step-item.is-active .reserva-step-label { color: #fff; }

.reserva-step-line {
  width: 1.5rem;
  height: 2px;
  background: rgba(255,255,255,0.1);
}

@media (min-width: 480px) {
  .reserva-step-line { width: 2.5rem; }
}

.theater-overview {
  width: 100%;
}

/* Móvil: solo mapa + pasos; tarjetas detalle en desktop */
@media (max-width: 1279px) {
  .zone-group-desktop { display: none; }
  .reserva-form-panel:not(.hidden) {
    margin-top: 0.5rem;
    position: relative;
    z-index: 2;
  }
}

.reserva-form-inactive {
  opacity: 0.55;
  pointer-events: none;
}

.reserva-form-inactive::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 0.75rem;
}

@media (min-width: 1280px) {
  .reserva-form-panel {
    position: relative;
  }
}
