/* --- Mapa SVG de asientos tipo sedán --- */
.seat-svg-map-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.seat-svg-map {
  position: relative;
  /* SVG es 1284x581 px (horizontal). Escalamos a 400px de ancho → alto = 400*(581/1284) ≈ 181px */
  width: 400px;
  max-width: 100%;
  /* SIN aspect-ratio: la imagen define el alto automáticamente */
}
.car-svg-bg {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
  user-select: none;
}
/* ──────────────────────────────────────────────────────────
   Botones de asiento — forma de silla vista desde arriba
   El auto tiene el frente mirando a la IZQUIERDA.
   Por eso el reposacabezas (::before) apunta a la IZQUIERDA.
   ────────────────────────────────────────────────────────── */
.svg-seat-btn {
  position: absolute;
  /* Asiento: ancho un poco más que alto (vista superior) */
  width: 38px;
  height: 42px;
  /* Respaldo ligeramente cuadrado, cojín más redondeado abajo */
  border-radius: 5px 5px 10px 10px;
  border: 2px solid #1a6e30;
  /* Gradiente que simula profundidad del tapiz */
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0px,
      transparent 11px,
      rgba(0,0,0,0.07) 11px,
      rgba(0,0,0,0.07) 12px
    ),
    linear-gradient(175deg, #6ee895 0%, #239b4a 100%);
  color: #fff;
  font-weight: 900;
  font-size: 0.82rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
  box-shadow:
    inset 0 -3px 0 rgba(0,0,0,0.18),   /* sombra inferior = grosor del cojín */
    0 3px 8px rgba(0,0,0,0.22);
  cursor: pointer;
  transition: filter 0.15s, transform 0.12s;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
}
/* Reposacabezas — protuberancia a la IZQUIERDA (frente del auto) */
.svg-seat-btn::before {
  content: '';
  position: absolute;
  left: -9px;
  top: 18%;
  bottom: 18%;
  width: 8px;
  border-radius: 4px 0 0 4px;
  background: linear-gradient(175deg, #6ee895 0%, #239b4a 100%);
  border: 2px solid #1a6e30;
  border-right: none;
}
.svg-seat-btn:hover:not(:disabled) {
  filter: brightness(1.12);
  transform: translate(-50%, -50%) scale(1.08) !important;
}

/* ── Estado: SELECCIONADO (amarillo) ── */
.svg-seat-btn.is-selected {
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0px,
      transparent 11px,
      rgba(0,0,0,0.06) 11px,
      rgba(0,0,0,0.06) 12px
    ),
    linear-gradient(175deg, #ffe97a 0%, #e8a800 100%);
  color: #5d3d00;
  border-color: #b88000;
  text-shadow: none;
  box-shadow:
    inset 0 -3px 0 rgba(0,0,0,0.15),
    0 0 0 3px rgba(232,168,0,0.28),
    0 3px 8px rgba(0,0,0,0.2);
}
.svg-seat-btn.is-selected::before {
  background: linear-gradient(175deg, #ffe97a 0%, #e8a800 100%);
  border-color: #b88000;
}

/* ── Estado: OCUPADO / RESERVADO (rojo) ── */
.svg-seat-btn.is-reserved,
.svg-seat-btn:disabled {
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0px,
      transparent 11px,
      rgba(0,0,0,0.07) 11px,
      rgba(0,0,0,0.07) 12px
    ),
    linear-gradient(175deg, #f57878 0%, #c01f1f 100%);
  color: #fff;
  border-color: #8e1515;
  cursor: not-allowed;
  opacity: 0.9;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,0.2), 0 3px 8px rgba(0,0,0,0.2);
}
.svg-seat-btn.is-reserved::before,
.svg-seat-btn:disabled::before {
  background: linear-gradient(175deg, #f57878 0%, #c01f1f 100%);
  border-color: #8e1515;
}
.seat-legend-inline {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.9rem;
  color: var(--muted);
}
.seat-legend-inline span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
/* Indicador móvil de asiento seleccionado */
.seat-mobile-indicator {
  display: none; /* sólo visible en móvil */
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 18px;
  border-radius: 24px;
  background: rgba(35, 155, 74, 0.10);
  border: 1.5px dashed rgba(35, 155, 74, 0.35);
  font-size: 0.95rem;
  color: var(--muted);
  transition: background 0.25s, border-color 0.25s;
  width: 100%;
  max-width: 340px;
  text-align: center;
}
.seat-mobile-indicator.has-selection {
  background: rgba(35, 155, 74, 0.14);
  border-color: #239b4a;
  border-style: solid;
  color: #1a5e2f;
  font-weight: 700;
}

@media (max-width: 700px) {
  /* El auto llena casi toda la pantalla */
  .seat-svg-map {
    width: calc(100vw - 32px);
    max-width: 440px;
  }

  /* Botones más grandes para dedos (mínimo 44px Apple HIG) */
  .svg-seat-btn {
    width: 46px;
    height: 50px;
    font-size: 0.88rem;
    border-width: 2px;
    border-radius: 5px 5px 12px 12px;
  }
  .svg-seat-btn::before {
    left: -10px;
    width: 9px;
  }
  .svg-seat-btn.is-selected::before,
  .svg-seat-btn.is-reserved::before,
  .svg-seat-btn:disabled::before {
    left: -10px;
    width: 9px;
  }

  /* Mostrar el indicador de asiento seleccionado */
  .seat-mobile-indicator {
    display: flex;
  }

  /* Leyenda más compacta */
  .seat-legend-inline {
    font-size: 0.85rem;
    gap: 10px;
  }

  /* Footer de bultos/kg en columna */
  .seat-footer {
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
  }
}
:root {
  --bg: #f4efe7;
  --panel: #fffdf8;
  --ink: #14213d;
  --muted: #6c757d;
  --accent: #ef476f;
  --accent-2: #118ab2;
  --line: rgba(20, 33, 61, 0.12);
  --shadow: 0 18px 40px rgba(20, 33, 61, 0.12);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(239, 71, 111, 0.14), transparent 30%),
    radial-gradient(circle at bottom right, rgba(17, 138, 178, 0.16), transparent 28%),
    var(--bg);
}
a { color: inherit; text-decoration: none; }
input, select, textarea, button {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 12px 14px;
  font: inherit;
  background: white;
}
textarea { min-height: 96px; resize: vertical; }
button {
  background: linear-gradient(135deg, var(--ink), #1d3557);
  color: white;
  cursor: pointer;
  border: none;
}
button.small { padding: 10px 12px; }
button.ghost {
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
}
button.danger {
  color: #a11236;
  border-color: rgba(161, 18, 54, 0.18);
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 11px 20px;
  background: linear-gradient(135deg, var(--ink), #1d3557);
  color: white;
  border-radius: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font: inherit;
  white-space: nowrap;
}
.btn-primary:hover { filter: brightness(1.12); }
.badge-active {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(17, 138, 178, 0.12);
  color: #0f6783;
  font-size: 0.78rem;
  font-weight: 700;
}
.badge-inactive {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(161, 18, 54, 0.08);
  color: #8b1334;
  font-size: 0.78rem;
  font-weight: 700;
}
.inline-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  cursor: pointer;
}
.inline-check input { width: auto; }
.photo-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  transition: transform 0.18s, box-shadow 0.18s;
}
.photo-thumb:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}
.photo-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* ── Modal de foto a pantalla completa ── */
.photo-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 14, 26, 0.82);
  backdrop-filter: blur(6px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeInOverlay 0.18s ease;
}
@keyframes fadeInOverlay {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.photo-modal-box {
  position: relative;
  max-width: min(780px, 100%);
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: scaleInBox 0.2s cubic-bezier(0.34, 1.36, 0.64, 1);
}
@keyframes scaleInBox {
  from { transform: scale(0.88); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}
.photo-modal-img {
  max-width: 100%;
  max-height: calc(100vh - 100px);
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
  display: block;
}
.photo-modal-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  color: var(--ink);
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.28);
  padding: 0;
  transition: background 0.15s;
  z-index: 1;
}
.photo-modal-close:hover { background: white; }
.photo-modal-caption {
  color: rgba(255,255,255,0.78);
  font-size: 0.9rem;
  margin: 0;
  text-align: center;
}
label { display: grid; gap: 8px; font-size: 0.95rem; }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.muted { color: var(--muted); }

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
}
.hero-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  width: min(1080px, 100%);
  background: linear-gradient(160deg, rgba(255,255,255,0.94), rgba(255,248,240,0.96));
  border: 1px solid rgba(20, 33, 61, 0.08);
  box-shadow: var(--shadow);
  border-radius: 28px;
  overflow: hidden;
}
.hero-copy {
  padding: 56px;
  background:
    linear-gradient(140deg, rgba(20,33,61,0.98), rgba(29,53,87,0.92)),
    var(--ink);
  color: white;
}
.hero-copy h1 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 0.98; margin: 0 0 20px; }
.lede { max-width: 44ch; color: rgba(255,255,255,0.78); }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--accent);
}
.login-panel {
  padding: 42px;
  display: grid;
  gap: 16px;
  align-content: center;
}
.error { color: #b00020; margin: 0; }
.hint { color: var(--muted); font-size: 0.9rem; }

.app-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}
.sidebar {
  padding: 28px;
  background: linear-gradient(180deg, #13213a, #0d1b2a);
  color: white;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.sidebar nav {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}
.sidebar nav a, .logout {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
}
.sidebar nav a.is-active {
  background: rgba(255,255,255,0.14);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}
.sidebar nav a:hover,
.logout:hover {
  background: rgba(255,255,255,0.12);
}
.logout {
  margin-top: auto;
}
.sidebar-user { color: rgba(255,255,255,0.72); }
.content {
  min-width: 0;
  padding: 20px 24px;
  display: grid;
  gap: 16px;
}
.content section {
  scroll-margin-top: 20px;
}
.page-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 4px 0 8px;
  border-bottom: 1px solid var(--line);
}
.page-hero .eyebrow {
  margin: 0;
  white-space: nowrap;
}
.page-hero h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 700;
  color: var(--ink);
}
.flash {
  padding: 16px 18px;
  border-radius: 18px;
  font-weight: 600;
  box-shadow: var(--shadow);
}
.flash-error {
  background: rgba(161, 18, 54, 0.1);
  color: #8b1334;
  border: 1px solid rgba(161, 18, 54, 0.18);
}
.flash-success {
  background: rgba(17, 138, 178, 0.1);
  color: #0f6783;
  border: 1px solid rgba(17, 138, 178, 0.18);
}
.hero-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.metric-card, .panel, .form-card, .table-card {
  background: rgba(255,255,255,0.84);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(20,33,61,0.08);
  box-shadow: var(--shadow);
  border-radius: 24px;
}
.metric-card { padding: 24px; display: grid; gap: 10px; }
.metric-card span { color: var(--muted); }
.metric-card strong { font-size: 2rem; }
.panel { padding: 24px; display: grid; gap: 18px; }
.panel-tight { gap: 14px; }
.panel-head h2, .table-card h3, .form-card h3 { margin: 0; }
.panel-head p { margin: 6px 0 0; color: var(--muted); }
.split-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.live-pill,
.seat-summary {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(17, 138, 178, 0.12);
  color: var(--accent-2);
  font-size: 0.85rem;
  font-weight: 700;
}
.two-col { display: grid; grid-template-columns: 360px 1fr; gap: 18px; }
.grid-2x2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.booking-layout { display: grid; grid-template-columns: 360px 1fr; gap: 18px; }
.stack-panel { display: grid; gap: 18px; }
.form-card, .table-card { padding: 20px; }
.form-card { display: grid; gap: 14px; align-content: start; }
.compact-form { gap: 12px; }
.checkbox { display: flex; align-items: center; gap: 10px; }
.checkbox input { width: auto; }
.actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.actions form { width: auto; }
.row-muted { opacity: 0.55; }
.link-button,
.table-link {
  color: var(--accent-2);
  font-weight: 600;
}
.link-button {
  text-align: center;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.7);
}

.seat-panel { display: grid; gap: 16px; min-height: 220px; }
.seat-map-shell {
  display: grid;
  grid-template-columns: minmax(190px, 220px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.seat-vehicle-wrap {
  display: grid;
  gap: 10px;
  justify-items: center;
}
.seat-map-vehicle {
  position: relative;
  width: min(100%, 162px);
  margin-inline: auto;
}
.vehicle-body {
  position: relative;
  border: 2px solid #7f9ea7;
  border-radius: 88px 88px 74px 74px;
  padding: 7px 9px 9px;
  background:
    linear-gradient(150deg, rgba(66, 99, 107, 0.14) 10%, transparent 32%),
    linear-gradient(22deg, rgba(66, 99, 107, 0.14) 10%, transparent 35%),
    #f2f7f9;
}
.vehicle-body::before,
.vehicle-body::after {
  content: "";
  position: absolute;
  top: 8px;
  width: 24px;
  height: 42px;
  border: 2px solid rgba(126, 158, 168, 0.48);
  border-top: none;
  border-right: none;
  border-radius: 18px 0 0 0;
}
.vehicle-body::before {
  left: 7px;
  transform: skewY(-20deg);
}
.vehicle-body::after {
  right: 7px;
  transform: scaleX(-1) skewY(-20deg);
}
.vehicle-mirror {
  position: absolute;
  top: 36%;
  width: 7px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid #7e9ea8;
  background: #d6e6eb;
}
.vehicle-mirror.left {
  left: -5px;
  transform: rotate(24deg);
}
.vehicle-mirror.right {
  right: -5px;
  transform: rotate(-24deg);
}
.vehicle-window {
  height: 25px;
  border-radius: 20px;
  border: 1px solid rgba(55, 83, 90, 0.38);
  background: linear-gradient(180deg, #4f6f79 0%, #35535d 100%);
}
.vehicle-window.top {
  margin-bottom: 6px;
}
.vehicle-window.bottom {
  margin-top: 8px;
}
.vehicle-cabin {
  position: relative;
  height: 12px;
  margin-bottom: 6px;
}
.vehicle-side {
  position: absolute;
  top: 0;
  width: 6px;
  height: 12px;
  border-radius: 6px;
  background: #3e5c65;
}
.vehicle-side.left {
  left: 2px;
}
.vehicle-side.right {
  right: 2px;
}
.seat-grid {
  display: grid;
  gap: 5px;
}
.seat-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 11px minmax(0, 1fr);
  gap: 5px;
  align-items: center;
}
.seat-aisle {
  height: 5px;
  border-radius: 6px;
  background: rgba(91, 119, 129, 0.18);
}
.seat-btn {
  min-height: 30px;
  border-radius: 7px;
  background: linear-gradient(180deg, #58b87d 0%, #349f67 100%);
  color: #113a25;
  border: 1px solid rgba(35, 115, 70, 0.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.28);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px;
}
.seat-row .seat-btn:first-child {
  transform: rotate(-2deg);
}
.seat-row .seat-btn:last-child {
  transform: rotate(2deg);
}
.seat-btn.is-selected {
  background: linear-gradient(180deg, #ecd968 0%, #d8b43f 100%);
  color: #5e4a05;
  border-color: rgba(128, 95, 11, 0.6);
}
.seat-btn.is-reserved,
.seat-btn:disabled {
  background: linear-gradient(180deg, #e35858 0%, #c92d2d 100%);
  color: #fff;
  border-color: rgba(127, 25, 25, 0.6);
  cursor: not-allowed;
}
.seat-btn-ghost {
  visibility: hidden;
  pointer-events: none;
  min-height: 30px;
}
.seat-legend-inline {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
}
.seat-legend-inline span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.seat-legend {
  background: rgba(224, 234, 236, 0.36);
  border: 1px solid rgba(8, 62, 74, 0.12);
  border-radius: 14px;
  padding: 12px 14px;
}
.seat-legend h4 {
  margin: 0;
  font-size: 1.03rem;
}
.seat-legend p {
  margin: 6px 0 10px;
  color: var(--muted);
  font-size: 0.92rem;
}
.seat-legend-items {
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
}
.seat-legend-items span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}
.legend-dot.is-free { background: #35ad6b; }
.legend-dot.is-selected { background: #d9b03a; }
.legend-dot.is-reserved { background: #d63f3f; }
.seat-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 18, 32, 0.55);
  z-index: 40;
}
.modal-panel {
  position: fixed;
  z-index: 41;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(720px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 22px;
  border-radius: 26px;
  background: rgba(255,255,255,0.97);
  box-shadow: 0 28px 60px rgba(10, 18, 32, 0.26);
}

/* ═══════════════════════════════════════════════════════════
   MOBILE — Topbar fija + Drawer deslizante
   ═══════════════════════════════════════════════════════════ */

/* Topbar — solo visible en móvil */
.mobile-topbar {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 56px;
  background: linear-gradient(90deg, #13213a 0%, #0d1b2a 100%);
  color: white;
  align-items: center;
  padding: 0 14px;
  gap: 12px;
  z-index: 300;
  box-shadow: 0 2px 14px rgba(0,0,0,0.32);
}
.mobile-topbar-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.mobile-topbar-brand {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1;
}
.mobile-topbar-title {
  font-size: 1rem;
  font-weight: 700;
  color: white;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Botón hamburguesa */
.mobile-menu-toggle {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  border-radius: 12px;
  flex-shrink: 0;
  transition: background 0.2s;
}
.mobile-menu-toggle:hover {
  background: rgba(255,255,255,0.15);
}
.mobile-menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: transform 0.26s ease, opacity 0.2s ease;
}
.mobile-menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-toggle.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mobile-menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Overlay oscuro detrás del drawer */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  top: 56px;
  background: rgba(5, 12, 24, 0.62);
  backdrop-filter: blur(3px);
  z-index: 199;
  cursor: pointer;
}
.mobile-overlay.is-visible { display: block; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — 960px: layout móvil completo
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 960px) {
  /* Grids que colapsan a 1 columna */
  .hero-card,
  .two-col,
  .grid-2x2,
  .hero-grid,
  .booking-layout {
    grid-template-columns: 1fr;
  }

  /* App shell: 1 columna, espacio para topbar fija */
  .app-shell {
    grid-template-columns: 1fr;
    padding-top: 56px;
  }

  /* Topbar visible en móvil */
  .mobile-topbar {
    display: flex;
  }

  /* Sidebar → drawer deslizante desde la izquierda */
  .sidebar {
    position: fixed;
    top: 56px;
    left: 0;
    bottom: 0;
    width: 280px;
    height: calc(100vh - 56px);
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.28s ease;
    z-index: 200;
    border-radius: 0 20px 20px 0;
  }
  .sidebar.is-open {
    transform: translateX(0);
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.35);
  }

  /* Ocultar h1 largo en sidebar móvil (ya está en topbar) */
  .sidebar h1 { font-size: 1.3rem; }

  /* Contenido: padding ajustado */
  .content {
    padding: 16px;
    gap: 16px;
  }
  .page-hero { display: none; } /* ya lo muestra la topbar */

  /* Flexbox en columna para acciones */
  .actions,
  .split-head {
    flex-direction: column;
    align-items: stretch;
  }

  /* Tablas: scroll horizontal en lugar de desbordarse */
  .table-card {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  table {
    min-width: 480px;
  }

  /* Métricas: 2 columnas en móvil */
  .hero-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Formularios: padding reducido */
  .form-card, .table-card { padding: 14px; }
  .panel { padding: 16px; }
}

@media (max-width: 700px) {
  .seat-map-shell {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .seat-map-vehicle {
    width: min(100%, 158px);
    margin-inline: auto;
  }
  .seat-legend-inline {
    font-size: 0.8rem;
    gap: 8px;
  }
  .seat-legend {
    order: 2;
    text-align: center;
  }
  .seat-footer {
    background: rgba(15, 118, 110, 0.06);
    border: 1px solid rgba(15, 118, 110, 0.14);
    padding: 12px;
    border-radius: 14px;
  }
}
