/* =========================================
   SMARTTRIP · ADMIN (admin.html)
   Estilos EXCLUSIVOS del panel de administración.
   Se carga DESPUÉS de styles.css (base compartida: variables,
   modales, inputs, botones, tickets). Aquí no debe entrar nada
   del cliente (index.html) para mantener ambos lados aislados.
========================================= */

/* Logo de la barra lateral en escritorio (override del .logo-img base) */
.sidebar .logo-img { height: 68px; }

/* =========================================
   ESTILOS BASE DEL ADMIN (ESCRITORIO) — PREMIUM / GLASSMORPHISM
========================================= */
body { display: flex; height: 100vh; overflow: hidden; background: linear-gradient(160deg, #F6F8FC 0%, #EAEEF6 100%); }

/* Barra lateral con vidrio esmerilado y sombra suave */
.sidebar { width: 256px; background: rgba(255,255,255,0.85); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); border-right: 1px solid rgba(255,255,255,0.6); box-shadow: 4px 0 30px rgba(17,24,39,0.05); display: flex; flex-direction: column; padding: 22px 0; flex-shrink: 0; z-index: 100; }
.sidebar .logo { padding: 0 22px; margin-bottom: 28px; }
.sidebar nav { display: flex; flex-direction: column; gap: 5px; padding: 0 14px; }
/* Items como píldoras (misma estética del dropdown del index) */
.menu-item { padding: 12px 16px; color: var(--text-muted); text-decoration: none; display: flex; align-items: center; gap: 12px; font-weight: 500; border-radius: 12px; transition: background 0.2s, color 0.2s, box-shadow 0.2s; cursor: pointer; }
.menu-item i { width: 20px; text-align: center; color: var(--primary-text); transition: color 0.2s; }
.menu-item:hover { background: var(--secondary); color: var(--text-dark); }
.menu-item.active { background: var(--primary); color: #fff; box-shadow: 0 10px 22px -10px rgba(var(--primary-rgb), 0.7); }
.menu-item.active i { color: #fff; }

.main-content { flex-grow: 1; display: flex; flex-direction: column; overflow-y: auto; }

/* Header glassmorphism (igual que el navbar del index al scrollear) */
.admin-header { background: rgba(255,255,255,0.72); backdrop-filter: blur(16px) saturate(180%); -webkit-backdrop-filter: blur(16px) saturate(180%); padding: 15px 30px; border-bottom: 1px solid rgba(255,255,255,0.6); box-shadow: 0 4px 20px rgba(17,24,39,0.04); display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 50; }
.admin-content { padding: 30px; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; margin-bottom: 30px; }
.stat-card { position: relative; overflow: hidden; background: var(--white); padding: 22px; border-radius: 16px; box-shadow: 0 10px 30px -14px rgba(17,24,39,0.14); border: 1px solid #EEF0F3; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.stat-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--primary), var(--primary-soft)); }
.stat-card:hover { transform: translateY(-4px); box-shadow: 0 20px 44px -18px rgba(17,24,39,0.24); }
.stat-title { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 6px; }
.stat-value { font-size: 1.9rem; font-weight: 800; color: var(--text-dark); }

.stat-title i { color: var(--primary-text); margin-right: 4px; }

/* Dashboard */
.dash-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }
.occ-row { margin-bottom: 16px; }
.occ-row:last-child { margin-bottom: 0; }
.occ-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; gap: 10px; }
.occ-title { font-weight: 600; color: var(--text-dark); font-size: 0.9rem; }
.occ-nums { font-size: 0.82rem; color: var(--text-muted); font-family: 'Poppins', sans-serif; white-space: nowrap; }
.occ-nums small { font-weight: 700; }
.occ-bar { height: 9px; background: var(--secondary); border-radius: 20px; overflow: hidden; }
.occ-fill { height: 100%; border-radius: 20px; transition: width 0.6s ease; }
.db-metric { display: flex; justify-content: space-between; padding: 8px 0; font-size: 0.9rem; color: var(--text-muted); }
.db-metric strong { color: var(--text-dark); font-family: 'Poppins', sans-serif; font-size: 1.05rem; }
.db-sep { border: none; border-top: 1px solid #F1F3F6; margin: 10px 0; }
.db-estado-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; }
.db-estado-row strong { font-family: 'Poppins', sans-serif; color: var(--text-dark); }

#admin-login-modal { background: rgba(17, 24, 39, 0.92); z-index: 9999; }
.admin-modal { max-width: 820px !important; text-align: left; }
.panel { background: var(--white); padding: 24px; border-radius: 16px; box-shadow: 0 10px 30px -16px rgba(17,24,39,0.12); border: 1px solid #EEF0F3; margin-bottom: 26px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.panel-head h3 { font-size: 1.15rem; color: var(--text-dark); }

/* Folio & Badges */
.folio-chip { font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace; font-weight: 700; background: var(--secondary); color: var(--text-dark); padding: 3px 9px; border-radius: 6px; font-size: 0.85rem; letter-spacing: 0.5px; }
.estado-badge { font-size: 0.72rem; font-weight: 700; padding: 4px 10px; border-radius: 20px; display: inline-flex; align-items: center; gap: 5px; }
.estado-revision { background: #FEF3C7; color: #B45309; }
.estado-aprobada { background: #D1FAE5; color: #047857; }
.estado-rechazada { background: #FEE2E2; color: #B91C1C; }
.estado-cancelada { background: #E5E7EB; color: #4B5563; }

/* Tour Box & Reservas */
.tour-box { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid #EEF0F3; border-radius: 14px; cursor: pointer; transition: box-shadow 0.22s, border-color 0.22s, transform 0.22s; background: #fff; }
.tour-box:hover { border-color: var(--primary); box-shadow: 0 14px 30px -14px rgba(17,24,39,0.2); transform: translateY(-2px); }
.tour-box-icon { width: 46px; height: 46px; border-radius: 10px; background: var(--primary-lighter); color: var(--primary-text); display: flex; align-items: center; justify-content: center; font-size: 1.15rem; flex-shrink: 0; }
.tour-box-info { flex: 1; display: flex; flex-direction: column; }
.tour-box-info strong { font-size: 1rem; color: var(--text-dark); }
.tour-box-info span { font-size: 0.82rem; color: var(--text-muted); }
.tour-box-badge { background: #FEF3C7; color: #B45309; font-size: 0.72rem; font-weight: 700; padding: 4px 10px; border-radius: 20px; }
.tour-box-arrow { color: var(--text-muted); }

.reserva-card { border: 1px solid #EEF0F3; border-radius: 14px; padding: 16px 18px; background: #fff; box-shadow: 0 6px 18px -12px rgba(17,24,39,0.12); transition: box-shadow 0.22s, transform 0.22s; }
.reserva-card:hover { box-shadow: 0 14px 32px -16px rgba(17,24,39,0.2); transform: translateY(-2px); }
.reserva-top { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.reserva-pasajeros { font-weight: 600; color: var(--text-dark); font-size: 0.95rem; margin: 7px 0 3px; }
.reserva-sub { color: var(--text-muted); font-size: 0.8rem; }
.reserva-montos { text-align: right; font-size: 0.78rem; color: var(--text-muted); white-space: nowrap; }
.reserva-montos strong { font-family: 'Poppins', sans-serif; font-size: 1rem; color: var(--text-dark); }
.reserva-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #F3F4F6; }
.btn-sm { padding: 9px 14px; border-radius: 10px; border: none; cursor: pointer; font-weight: 600; font-size: 0.82rem; font-family: inherit; display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: opacity 0.2s, transform 0.12s, box-shadow 0.2s; }
.btn-sm:hover { opacity: 0.92; transform: translateY(-1px); }
.btn-sm:active { transform: translateY(0); }
.btn-sm:disabled { opacity: 0.4; cursor: default; transform: none; }
.btn-ver { background: var(--secondary); color: var(--text-dark); }
.btn-ticket { background: var(--primary); color: #fff; }
.btn-aprobar { background: var(--success); color: #fff; }
.btn-rechazar { background: #EF4444; color: #fff; }
.btn-cancelar { background: #F59E0B; color: #fff; }
.btn-eliminar { background: #fff; color: #EF4444; border: 1px solid #FECACA; }

/* Galería de tours premium (estilo cliente) */
/* Columnas más angostas a propósito: como el marco de la imagen va por
   aspect-ratio, achicar el ancho achica el alto en proporción. Así la card baja
   de tamaño SIN recortar la foto — entran más por fila en vez de crecer. */
.admin-trips-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); gap: 16px; }
.admin-trips-grid .empty-state { grid-column: 1 / -1; }
.admin-tour-card { background: var(--white); border-radius: 16px; overflow: hidden; border: 1px solid #EEF0F3; box-shadow: 0 10px 30px -16px rgba(17,24,39,0.12); display: flex; flex-direction: column; transition: transform 0.22s, box-shadow 0.22s; }
.admin-tour-card:hover { transform: translateY(-4px); box-shadow: 0 20px 44px -18px rgba(17,24,39,0.22); }
/* Igual que la card del cliente: el marco toma la proporción real de la portada
   (--atc-ar, lo calcula ajustarAltoMediaTours() en admin.js) en vez de una altura
   fija, así el flyer se ve completo y no recortado con efecto zoom. */
.atc-media { position: relative; aspect-ratio: var(--atc-ar, 3 / 2); background: #E5E7EB; }
.atc-media img { width: 100%; height: 100%; object-fit: cover; object-position: center center; display: block; }
.atc-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(17,24,39,0.35), transparent 55%); }
.atc-badge { position: absolute; top: 10px; left: 10px; z-index: 2; font-size: 0.7rem; font-weight: 700; padding: 5px 10px; border-radius: 20px; color: #fff; display: inline-flex; align-items: center; gap: 5px; box-shadow: 0 2px 6px rgba(0,0,0,0.18); }
.atc-badge.ok { background: var(--success); }
.atc-badge.low { background: #F59E0B; }
.atc-badge.sold { background: #EF4444; }
.atc-body { padding: 12px 13px 13px; display: flex; flex-direction: column; flex-grow: 1; }
.atc-title { font-size: 0.97rem; font-weight: 700; color: var(--text-dark); margin-bottom: 7px; line-height: 1.3; }
.atc-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
/* nowrap para que el chip nunca se parta a media fecha; si aun asi no cabe
   (pantalla muy angosta) se recorta con puntos suspensivos en vez de
   desbordarse fuera de la card. */
.atc-meta span { display: inline-flex; align-items: center; gap: 5px; font-size: 0.72rem; font-weight: 500; color: var(--text-muted); background: var(--secondary); padding: 4px 8px; border-radius: 8px; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.atc-meta i { color: var(--primary-text); }
.atc-route { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 0.76rem; font-weight: 600; color: var(--text-dark); background: var(--secondary); border-radius: 8px; padding: 6px 9px; margin-bottom: 10px; }
.atc-route .sep { color: var(--primary-text); }
.atc-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; padding-top: 10px; border-top: 1px solid #EEF0F3; }
.atc-price { font-family: 'Poppins', sans-serif; font-size: 1.02rem; font-weight: 800; color: var(--text-dark); white-space: nowrap; }
.atc-price small { font-size: 0.62rem; font-weight: 500; color: var(--text-muted); }
.atc-actions { display: flex; gap: 6px; align-items: center; }

/* Switch de visibilidad del tour (mostrar/ocultar del cliente) */
.atc-switch { position: relative; width: 40px; height: 23px; border-radius: 20px; border: none; cursor: pointer; background: #D1D5DB; padding: 0; margin-right: 2px; transition: background 0.22s; flex-shrink: 0; }
.atc-switch.on { background: var(--success); }
.atc-switch-dot { position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.25); transition: transform 0.22s; }
.atc-switch.on .atc-switch-dot { transform: translateX(17px); }

/* Etiqueta "Oculto" y card atenuada */
.atc-hidden-tag { position: absolute; top: 10px; right: 10px; z-index: 2; font-size: 0.68rem; font-weight: 700; padding: 5px 10px; border-radius: 20px; background: rgba(17,24,39,0.82); color: #fff; display: inline-flex; align-items: center; gap: 5px; }
.admin-tour-card.is-hidden-tour .atc-media img { filter: grayscale(0.55) brightness(0.9); opacity: 0.85; }
.admin-trip-card .info strong { font-size: 1rem; }
.admin-trip-card .info small { color: var(--text-muted); }
.admin-trip-right { display: flex; align-items: center; gap: 8px; }
.btn-icon { background: none; border: none; cursor: pointer; font-size: 1rem; padding: 8px; border-radius: 8px; transition: background 0.2s; }
.btn-edit-tour { color: var(--primary-text); }
.btn-edit-tour:hover { background: var(--primary-lighter); }
.btn-reset-pass { color: #B45309; }
.btn-reset-pass:hover { background: #FEF3C7; }

/* ---------- KPIs CLICKEABLES + BADGE + URGENCIA ---------- */
.stat-clickable { cursor: pointer; transition: transform 0.15s, box-shadow 0.2s; }
.stat-clickable:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -14px rgba(var(--primary-rgb), 0.35); }
.stat-go { font-size: 0.6rem; color: var(--text-muted); margin-left: 3px; opacity: 0.55; }
.nav-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 20px; background: #EF4444; color: #fff; font-size: 0.68rem; font-weight: 700; margin-left: 4px; vertical-align: middle; }
.pc-urg { font-size: 0.68rem; font-weight: 700; padding: 3px 9px; border-radius: 20px; white-space: nowrap; }
.pc-urg.vencido { background: #FEE2E2; color: #B91C1C; }
.pc-urg.alerta { background: #FEF3C7; color: #B45309; }
.pc-urg.ok { background: #ECFDF5; color: #047857; }
.pc-actions { display: flex; gap: 6px; }
.pc-recordar { background: #047857; color: #fff; }
.pc-recordar:hover { background: #065F46; }

/* ---------- AVISO DE VENTANA OPERATIVA ---------- */
/* Discreto pero visible: su trabajo es que nunca parezca que se perdió una
   reserva por no estar en la ventana que se lee en vivo. */
.aviso-ventana { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--secondary); border: 1px solid #E5E7EB; border-radius: 10px; padding: 9px 13px; margin-bottom: 14px; font-size: 0.8rem; color: var(--text-muted); }
.aviso-ventana:empty { display: none; }
.aviso-ventana i { color: var(--primary-text); }
.aviso-ventana strong { color: var(--text-dark); font-weight: 700; }
.aviso-ventana .btn-sm { margin-left: auto; }

/* ---------- EDITAR PASAJEROS ---------- */
.pax-edit-lista { display: flex; flex-direction: column; gap: 9px; }
.pax-edit-row { display: flex; align-items: center; gap: 9px; }
.pax-edit-num { flex-shrink: 0; width: 24px; height: 24px; border-radius: 999px; background: var(--primary); color: #fff; font-size: 0.75rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.pax-edit-input { flex: 1; min-width: 0; margin: 0; }
.pax-edit-seat { flex-shrink: 0; display: inline-flex; align-items: center; gap: 5px; font-size: 0.75rem; font-weight: 600; color: var(--text-muted); background: var(--secondary); padding: 6px 9px; border-radius: 8px; }
.pax-edit-seat i { color: var(--primary-text); }
.pax-aviso { display: flex; align-items: flex-start; gap: 9px; background: #FEF3C7; border: 1px solid #FDE68A; color: #92400E; border-radius: 10px; padding: 10px 12px; font-size: 0.78rem; line-height: 1.45; margin-bottom: 12px; }
.pax-aviso.hidden { display: none; }
.pax-hist-title { font-size: 0.85rem; color: var(--text-dark); margin: 18px 0 8px; display: flex; align-items: center; gap: 7px; }
.pax-hist-title i { color: var(--primary-text); }
.pax-hist-item { display: flex; flex-direction: column; gap: 2px; background: var(--secondary); border-radius: 9px; padding: 8px 11px; margin-bottom: 6px; }
.pax-hist-fecha { font-size: 0.7rem; color: var(--text-muted); font-weight: 600; }
.pax-hist-cambio { font-size: 0.8rem; color: var(--text-dark); line-height: 1.4; }
.pax-hist-cambio i { color: var(--primary-text); margin: 0 3px; }

/* ---------- HISTORIAL DE PAGOS ---------- */
.pagos-lista { display: flex; flex-direction: column; gap: 8px; }
.pago-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--secondary); border-radius: 10px; padding: 10px 12px; }
.pago-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pago-info strong { color: var(--text-dark); font-weight: 600; font-size: 0.9rem; }
.pago-info small { color: var(--text-muted); font-size: 0.74rem; }
.pago-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.pago-monto { font-family: 'Poppins', sans-serif; font-weight: 700; color: var(--text-dark); }
.pago-actions { display: flex; gap: 6px; }
.pago-mini { display: inline-flex; align-items: center; gap: 5px; font-family: inherit; font-size: 0.74rem; font-weight: 600; cursor: pointer; padding: 5px 10px; border-radius: 8px; border: 1px solid #E5E7EB; background: #fff; color: var(--primary-text); transition: background 0.15s; }
.pago-mini:hover { background: var(--primary-lighter); }
.pago-mini.ok { border-color: #A7F3D0; color: #047857; background: #ECFDF5; }
.pago-mini.ok:hover { background: #D1FAE5; }
.pago-nocomp { font-size: 0.72rem; color: var(--text-muted); font-style: italic; }
.pagos-manual { border-top: 1px solid #EEF0F3; margin-top: 16px; padding-top: 6px; }

/* ---------- CLIENTES (CRM) ---------- */
.scan-search { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #E5E7EB; border-radius: 12px; padding: 11px 14px; }
.scan-search i { color: var(--text-muted); }
.scan-search input { flex: 1; border: none; outline: none; font-size: 0.95rem; color: var(--text-dark); background: none; font-family: inherit; }

.cliente-card { padding: 14px 2px; border-bottom: 1px solid #EEF0F3; cursor: pointer; transition: background 0.15s; }
.cliente-card:last-child { border-bottom: none; }
.cliente-card:hover { background: #F9FAFB; }
.cliente-top { display: flex; align-items: center; gap: 12px; }
.cliente-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--primary); color: #fff; font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 0.9rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cliente-avatar.lg { width: 56px; height: 56px; font-size: 1.2rem; }
.cliente-id { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cliente-id strong { color: var(--text-dark); font-weight: 700; }
.cliente-id small { color: var(--text-muted); font-size: 0.8rem; }
.cliente-id small i { color: #25D366; }
.cliente-viajes { flex-shrink: 0; font-size: 0.74rem; font-weight: 700; color: var(--primary-text); background: var(--primary-lighter); padding: 4px 10px; border-radius: 20px; }
.cliente-metrics { display: flex; flex-wrap: wrap; gap: 7px 16px; margin-top: 9px; padding-left: 54px; font-size: 0.8rem; color: var(--text-muted); }
.cliente-metrics span { display: inline-flex; align-items: center; gap: 6px; }
.cliente-metrics i { color: var(--primary-text); }
.cliente-metrics .ok, .cliente-metrics .ok i { color: #047857; }

.cli-detalle-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.cli-detalle-id h3 { color: var(--text-dark); margin-bottom: 7px; }
.cli-wa { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 600; color: #047857; text-decoration: none; background: #ECFDF5; padding: 7px 13px; border-radius: 10px; border: 1px solid #A7F3D0; transition: background 0.2s; }
.cli-wa:hover { background: #D1FAE5; }
.cli-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 9px; margin-bottom: 18px; }
.cli-stats > div { background: var(--secondary); border-radius: 10px; padding: 9px 8px; text-align: center; display: flex; flex-direction: column; gap: 3px; }
.cli-stats small { font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.4px; color: var(--text-muted); font-weight: 600; }
.cli-stats strong { font-family: 'Poppins', sans-serif; font-size: 1rem; color: var(--text-dark); }
.cli-stats .ok { color: #047857; }
.cli-hist-title { font-size: 0.9rem; color: var(--text-dark); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.cli-hist-title i { color: var(--primary-text); }
.cli-historial { display: flex; flex-direction: column; gap: 10px; max-height: 320px; overflow-y: auto; }
.cli-hist-row { border: 1px solid #EEF0F3; border-radius: 12px; padding: 12px 14px; }
.cli-hist-main { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.cli-hist-tour { font-weight: 700; color: var(--text-dark); font-size: 0.92rem; margin-bottom: 6px; }
.cli-hist-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.78rem; color: var(--text-muted); }
.cli-hist-meta span { display: inline-flex; align-items: center; gap: 5px; }
.cli-hist-meta i { color: var(--primary-text); }
.cli-hist-meta .ok, .cli-hist-meta .ok i { color: #047857; }

/* ---------- NAVEGADOR DE MES (Reportes/Finanzas) ---------- */
.month-nav { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.mn-btn { width: 36px; height: 36px; border-radius: 10px; border: 1px solid #E5E7EB; background: var(--white); color: var(--text-dark); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background 0.2s, border-color 0.2s, color 0.2s; }
.mn-btn:hover { border-color: var(--primary); color: var(--primary-text); }
.mn-label { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.02rem; color: var(--text-dark); min-width: 140px; text-align: center; }
.mn-todo { margin-left: auto; font-family: inherit; font-size: 0.82rem; font-weight: 600; color: var(--text-muted); background: var(--white); border: 1px solid #E5E7EB; border-radius: 20px; padding: 8px 16px; cursor: pointer; transition: all 0.2s; }
.mn-todo:hover { border-color: var(--primary); color: var(--primary-text); }
.mn-todo.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------- GASTOS OPERATIVOS ---------- */
.gasto-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 2px; border-bottom: 1px solid #EEF0F3; }
.gasto-info { display: flex; flex-direction: column; gap: 2px; }
.gasto-info strong { color: var(--text-dark); font-weight: 600; font-size: 0.92rem; }
.gasto-info small { color: var(--text-muted); font-size: 0.76rem; }
.gasto-right { display: flex; align-items: center; gap: 10px; }
.gasto-monto { font-family: 'Poppins', sans-serif; font-weight: 700; color: #EF4444; white-space: nowrap; }
.gasto-del { padding: 6px; }
.gasto-total-row { display: flex; justify-content: space-between; align-items: center; padding: 13px 2px 2px; }
.gasto-total-row span { font-size: 0.78rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; }
.gasto-total-row strong { font-family: 'Poppins', sans-serif; font-size: 1.1rem; color: var(--text-dark); }

/* ---------- REPORTES ---------- */
.rep-row { padding: 14px 2px; border-bottom: 1px solid #EEF0F3; }
.rep-row:last-child { border-bottom: none; }
.rep-row-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 9px; }
.rep-tour { font-weight: 700; color: var(--text-dark); }
.rep-fecha { font-size: 0.78rem; color: var(--text-muted); white-space: nowrap; }
.rep-head-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.rep-manifiesto { background: var(--primary-lighter); color: var(--primary-text); border: 1px solid var(--primary-light); white-space: nowrap; }
.rep-manifiesto:hover { background: var(--primary-light); }
.rep-metrics { display: flex; flex-wrap: wrap; gap: 7px 16px; margin-top: 9px; font-size: 0.8rem; color: var(--text-muted); }
.rep-metrics span { display: inline-flex; align-items: center; gap: 6px; }
.rep-metrics i { color: var(--primary-text); }
.rep-metrics .ok, .rep-metrics .ok i { color: #047857; }

/* ---------- FINANZAS ---------- */
.fin-row { padding: 14px 2px; border-bottom: 1px solid #EEF0F3; }
.fin-row:last-child { border-bottom: none; }
.fin-row-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.fin-costos-btn { background: var(--primary-lighter); color: var(--primary-text); border: 1px solid var(--primary-light); }
.fin-costos-btn:hover { background: var(--primary-light); }
.fin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 9px; }
.fin-grid > div { background: var(--secondary); border-radius: 10px; padding: 8px 11px; display: flex; flex-direction: column; gap: 2px; }
.fin-grid small { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.4px; color: var(--text-muted); font-weight: 600; }
.fin-grid strong { font-family: 'Poppins', sans-serif; font-size: 0.95rem; color: var(--text-dark); }
.fin-grid .ok { color: #047857; }
.fin-grid .bad { color: #EF4444; }
.btn-delete-tour { color: #EF4444; }
.btn-delete-tour:hover { background: #FEE2E2; }

/* Formulario PRO */
.form-section { border: 1px solid #EEF0F3; border-radius: 14px; padding: 18px; margin-bottom: 16px; background: #FCFDFF; }
.form-section-title { font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--primary-text); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.opcional-tag { font-size: 0.68rem; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--text-muted); background: var(--secondary); padding: 2px 8px; border-radius: 20px; }

/* Selector del color de marca */
.cfg-color-row { display: flex; align-items: center; gap: 10px; }
.cfg-color-picker { width: 52px; height: 44px; padding: 3px; border: 1px solid #E5E7EB; border-radius: 10px; background: #fff; cursor: pointer; flex-shrink: 0; }
.cfg-color-hex { flex: 1; min-width: 0; font-family: 'SFMono-Regular', Consolas, monospace; text-transform: uppercase; }
.cfg-color-hex.invalido { border-color: #EF4444; }
.btn-secundario { background: var(--secondary); color: var(--text-muted); }
/* Vista previa: se pinta con las variables ya derivadas, así el admin ve el
   resultado real antes de guardar (no una aproximación). */
.cfg-color-preview { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ccp-chip { font-size: 0.72rem; font-weight: 700; padding: 6px 14px; border-radius: 20px; }
.ccp-primary { background: var(--primary); color: #fff; }
.ccp-light { background: var(--primary-light); color: var(--primary-text); }
.ccp-lighter { background: var(--primary-lighter); color: var(--primary-text); }
.ccp-text { color: var(--primary-text); background: #fff; border: 1px solid #E5E7EB; }
.ccp-footer { background: var(--footer-bg); color: rgba(255,255,255,0.85); }
.section-hint { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 12px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.dyn-row { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.dyn-remove { background: none; border: none; color: #EF4444; cursor: pointer; font-size: 0.95rem; padding: 6px; flex-shrink: 0; }
.btn-add-row { background: var(--primary-lighter); color: var(--primary-text); border: 1px dashed var(--primary); padding: 9px; border-radius: 8px; cursor: pointer; font-weight: 600; width: 100%; font-family: inherit; font-size: 0.85rem; margin-top: 4px; }
.itinerary-day-tag { background: var(--primary); color: #fff; font-weight: 700; font-size: 0.8rem; padding: 8px 12px; border-radius: 8px; white-space: nowrap; min-width: 62px; text-align: center; flex-shrink: 0; }

/* =========================================
   ABORDAPP: gestión de staff
========================================= */
.staff-tours-check { display: flex; flex-direction: column; gap: 6px; max-height: 220px; overflow-y: auto; border: 1px solid #EEF0F3; border-radius: 10px; padding: 10px; background: #FCFDFF; }
.staff-tour-opt { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 0.9rem; color: var(--text-dark); transition: background 0.15s; }
.staff-tour-opt:hover { background: var(--secondary); }
.staff-tour-opt input { width: 17px; height: 17px; accent-color: var(--primary); flex-shrink: 0; }
#staff-list { display: flex; flex-direction: column; gap: 12px; }
.staff-card { border: 1px solid #EEF0F3; border-radius: 14px; padding: 15px 17px; background: #fff; box-shadow: 0 6px 18px -12px rgba(17,24,39,0.12); }
.staff-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.staff-name { font-size: 1rem; color: var(--text-dark); font-family: 'Poppins', sans-serif; }
.staff-email { font-size: 0.82rem; color: var(--text-muted); margin-top: 3px; }
.staff-email i { color: var(--primary-text); margin-right: 4px; }
.staff-actions { display: flex; gap: 6px; flex-shrink: 0; }
.staff-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.staff-chip { font-size: 0.75rem; font-weight: 600; color: var(--primary-text); background: var(--primary-lighter); padding: 4px 10px; border-radius: 20px; }
.staff-chip.muted { color: var(--text-muted); background: var(--secondary); }

/* Ajustes: vista previa del logo */
.cfg-logo-row { display: flex; align-items: center; gap: 14px; }
.cfg-logo-preview { height: 60px; width: 120px; object-fit: contain; background: var(--secondary); border: 1px solid #E5E7EB; border-radius: 10px; padding: 6px; flex-shrink: 0; }
.cfg-logo-row .premium-input { flex: 1; }

/* =========================================
   MODAL DE TOUR: 2 columnas + preview de imágenes
========================================= */
/* 2 columnas reales con CSS Grid (predecible, no se rompe) */
.tour-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; align-items: start; }
.tour-form-grid .form-section { margin-bottom: 0; }
/* La primera sección (Datos generales) ocupa todo el ancho */
.tour-form-grid > .form-section:first-child { grid-column: 1 / -1; }
/* Miniaturas ordenables: se arrastran para decidir el orden (la #1 es la portada).
   touch-action:none deja que el arrastre funcione en tablet/celular sin que la
   pantalla haga scroll; pointer-events:none en la que se arrastra permite que
   elementFromPoint detecte la miniatura de abajo. */
.tour-img-preview { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.tour-img-preview:empty { display: none; }
.tour-img-preview .thumb { position: relative; width: 92px; height: 92px; border-radius: 10px; overflow: hidden; border: 1px solid #E5E7EB; background: #F3F4F6; cursor: grab; touch-action: none; user-select: none; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.tour-img-preview .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.tour-img-preview .thumb.dragging { opacity: 0.55; cursor: grabbing; transform: scale(1.06); box-shadow: 0 8px 18px rgba(0,0,0,0.22); pointer-events: none; }
.thumb-num { position: absolute; top: 4px; left: 4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--primary); color: #fff; font-size: 0.72rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 1px 4px rgba(0,0,0,0.25); }
.thumb-del { position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; padding: 0; border: none; border-radius: 999px; background: rgba(17,24,39,0.72); color: #fff; font-size: 0.95rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.thumb-del:hover { background: #EF4444; }
.thumb-cover { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(17,24,39,0.75); color: #fff; font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; text-align: center; padding: 3px 0; }

/* =========================================
   MAPA DE ASIENTOS (selector premium)
========================================= */
.seatmap-legend { display: flex; justify-content: center; gap: 16px; font-size: 0.72rem; color: var(--text-muted); margin-bottom: 14px; }
.seatmap-legend .dot { width: 13px; height: 13px; border-radius: 4px; display: inline-block; vertical-align: -2px; margin-right: 5px; border: 1px solid #D1D5DB; }
.seatmap-legend .dot.av { background: #fff; }
.seatmap-legend .dot.se { background: var(--primary); border-color: var(--primary); }
.seatmap-legend .dot.oc { background: #FEE2E2; border-color: #FECACA; }

/* Selector de unidad/piso (tabs sobre el mapa) */
.seatmap-secciones { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 14px; }
.seatmap-sec-tab { display: inline-flex; align-items: center; gap: 7px; font-family: inherit; font-size: 0.8rem; font-weight: 600; color: var(--text-muted); background: var(--white); border: 1.5px solid #E5E7EB; border-radius: 20px; padding: 7px 14px; cursor: pointer; transition: all 0.18s; }
.seatmap-sec-tab:hover { border-color: var(--primary); color: var(--primary-text); }
.seatmap-sec-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.25); }
.seatmap-sec-tab .sec-badge { font-size: 0.68rem; font-weight: 700; background: rgba(255,255,255,0.25); padding: 1px 7px; border-radius: 20px; }
.seatmap-sec-tab:not(.active) .sec-badge { background: var(--primary-lighter); color: var(--primary-text); }

.bus { max-width: 300px; margin: 0 auto; background: linear-gradient(180deg, #F3F4F6, #E9ECF2); border-radius: 34px 34px 18px 18px; padding: 16px 18px 22px; border: 1px solid #E5E7EB; box-shadow: inset 0 2px 6px rgba(17,24,39,0.05); }
.bus-front { display: flex; justify-content: flex-end; align-items: center; gap: 7px; color: var(--text-muted); font-size: 0.72rem; font-weight: 600; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 2px dashed #D1D5DB; }
.bus-front i { color: var(--primary-text); }
.bus-row { display: flex; align-items: center; justify-content: center; gap: 9px; margin-bottom: 10px; }
.bus-aisle { width: 20px; flex-shrink: 0; }
.seat-empty { width: 42px; height: 42px; flex-shrink: 0; }

.seat { position: relative; width: 42px; height: 42px; border-radius: 8px 8px 11px 11px; border: 1.5px solid #D1D5DB; background: #fff; color: var(--text-muted); font-size: 0.8rem; font-weight: 700; font-family: 'Poppins', sans-serif; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: transform 0.12s, background 0.15s, border-color 0.15s, color 0.15s; }
.seat::before { content: ''; position: absolute; top: -4px; left: 7px; right: 7px; height: 5px; border-radius: 3px; background: #D1D5DB; transition: background 0.15s; }
.seat:hover:not(.occupied):not(.selected) { border-color: var(--primary); transform: translateY(-1px); }
.seat.selected { background: var(--primary); color: #fff; border-color: var(--primary); }
.seat.selected::before { background: var(--primary); }
.seat.occupied { background: #FEE2E2; color: #FCA5A5; border-color: #FECACA; cursor: not-allowed; }
.seat.occupied::before { background: #FECACA; }

.seatmap-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; gap: 12px; }
.seatmap-foot strong { color: var(--primary-text); font-family: 'Poppins', sans-serif; }
.seatmap-foot .btn-login:disabled { opacity: 0.45; cursor: default; }

/* =========================================
   VISTA DE RESERVAS: tarjetas por tour (imagen + gradiente)
========================================= */
.reserva-tour-card { border-radius: 16px; overflow: hidden; border: 1px solid #EEF0F3; box-shadow: 0 10px 30px -16px rgba(17,24,39,0.12); cursor: pointer; background: #fff; transition: transform 0.22s, box-shadow 0.22s; }
.reserva-tour-card:hover { transform: translateY(-4px); box-shadow: 0 20px 44px -18px rgba(17,24,39,0.22); }
.rtc-media { position: relative; height: 128px; background-size: cover; background-position: center; display: flex; flex-direction: column; justify-content: flex-end; padding: 14px 16px; }
.rtc-title { color: #fff; font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.05rem; line-height: 1.25; text-shadow: 0 1px 5px rgba(0,0,0,0.45); }
.rtc-pend { position: absolute; top: 10px; right: 10px; background: #F59E0B; color: #fff; font-size: 0.7rem; font-weight: 700; padding: 5px 10px; border-radius: 20px; display: inline-flex; align-items: center; gap: 5px; box-shadow: 0 2px 6px rgba(0,0,0,0.22); }
.rtc-foot { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; }
.rtc-count { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; display: inline-flex; align-items: center; gap: 7px; }
.rtc-count i { color: var(--primary-text); }
.rtc-go { font-size: 0.85rem; color: var(--primary-text); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }

/* =========================================
   TARJETA DE RESERVA PRO (estilo cliente)
========================================= */
.reserva-card-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.reserva-meta { font-size: 0.85rem; color: var(--text-muted); }
.reserva-meta p { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 5px; line-height: 1.4; }
.reserva-meta p:last-child { margin-bottom: 0; }
.reserva-meta i { color: var(--primary-text); width: 16px; text-align: center; flex-shrink: 0; margin-top: 2px; }
.reserva-pax-block { margin-top: 12px; background: var(--secondary); border-radius: 10px; padding: 11px 14px; }
.reserva-pax-title { font-size: 0.8rem; font-weight: 700; color: var(--text-dark); display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.reserva-pax-title i { color: var(--primary-text); }
.reserva-pax-list { margin: 0; padding-left: 20px; }
.reserva-pax-list li { font-size: 0.85rem; color: var(--text-muted); padding: 2px 0; line-height: 1.35; }
.reserva-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px solid #F1F3F6; }
.reserva-montos-2 { display: flex; gap: 18px; font-size: 0.78rem; color: var(--text-muted); }
.reserva-montos-2 strong { font-family: 'Poppins', sans-serif; font-size: 1rem; color: var(--text-dark); display: block; margin-top: 1px; }
.reserva-montos-2 strong.ok { color: var(--success); }
.reserva-gear { background: var(--primary); color: #fff; }
.reserva-gear:hover { background: var(--primary-hover); }

/* Modal de acciones (engrane) */
.acc-buttons { display: flex; flex-direction: column; gap: 9px; }
.acc-btn { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid #EEF0F3; background: #fff; color: var(--text-dark); font-weight: 600; font-size: 0.9rem; font-family: inherit; cursor: pointer; display: flex; align-items: center; gap: 11px; transition: background 0.18s, border-color 0.18s, transform 0.1s; }
.acc-btn i { width: 20px; text-align: center; color: var(--primary-text); }
.acc-btn:hover:not(:disabled) { background: var(--secondary); transform: translateY(-1px); }
.acc-btn:disabled { opacity: 0.42; cursor: default; }
.acc-btn.danger { color: #B91C1C; } .acc-btn.danger i { color: #EF4444; }
.acc-btn.success i { color: var(--success); }
.acc-btn.warn i { color: #F59E0B; }

/* Ticket PRO (modal de gestión de reserva) — premium */
.ticket-pro { border: 1px solid #EEF0F3; border-radius: 16px; overflow: hidden; box-shadow: 0 12px 34px -18px rgba(17,24,39,0.22); }
.ticket-pro-head { background: linear-gradient(150deg, #262B33 0%, #14171F 50%, #0A0C11 100%); color: #fff; padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; }
.ticket-pro-folio { font-family: 'SFMono-Regular', Consolas, monospace; font-weight: 700; font-size: 0.95rem; letter-spacing: 0.5px; }
.ticket-pro-head .estado-badge { margin-left: 8px; }
.ticket-pro-logo { height: 42px; width: auto; filter: brightness(0) invert(1); opacity: 0.95; }
.ticket-pro-body { padding: 20px; }
.ticket-pro-tour { font-family: 'Poppins', sans-serif; font-size: 1.2rem; font-weight: 700; color: var(--text-dark); }
.ticket-pro-sub { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 16px; }
.tk-row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid #F1F3F6; font-size: 0.9rem; gap: 14px; }
.tk-row span { color: var(--text-muted); }
.tk-row strong { color: var(--text-dark); font-weight: 600; }
/* Pasajeros: apilados, label arriba y nombres alineados a la izquierda */
.tk-row-pax { flex-direction: column; align-items: stretch; gap: 6px; }
.tk-pax-list { text-align: left; }
.tk-pax-list div { color: var(--text-dark); font-weight: 600; font-size: 0.88rem; padding: 1px 0; }
.tk-row-big { border-bottom: none; font-size: 1.05rem; padding-top: 12px; margin-top: 4px; border-top: 2px dashed #E5E7EB; }
.tk-row-big strong { font-family: 'Poppins', sans-serif; color: #EF4444; font-weight: 800; }
.tk-abono-box { background: var(--secondary); border-radius: 12px; padding: 16px; margin-top: 16px; }

.empty-state { color: var(--text-muted); text-align: center; padding: 20px; }

/* =========================================
   🚀 RESPONSIVO MÓVIL (GLASSMORPHISM PILL NAV) 🚀
========================================= */
@media (max-width: 768px) {
    /* Dejamos espacio abajo para que la píldora no tape contenido */
    body { flex-direction: column; height: auto; min-height: 100vh; overflow-y: auto; padding-bottom: 90px; }
    .main-content { overflow: visible; height: auto; }

    /* BARRA SUPERIOR (Solo Logo y Botón de Salir) */
    /* Nota: la barra superior NO puede llevar backdrop-filter/transform,
       porque volvería el contenedor del pill fijo y lo pegaría arriba. */
    .sidebar {
        width: 100%;
        padding: 12px 20px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        border-right: none;
        border-bottom: 1px solid #E5E7EB;
        position: sticky;
        top: 0;
        background: var(--white);
        /* Anulamos el vidrio del desktop: en móvil rompe el pill fijo */
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        box-shadow: 0 4px 20px rgba(17,24,39,0.05);
    }

    .sidebar .logo { padding: 0; margin-bottom: 0; order: 1; }
    .sidebar .logo-img { height: 35px; }

    .logout-container { order: 2; margin-top: 0 !important; padding: 0 !important; width: auto; }
    .logout-container button { padding: 6px 14px; font-size: 0.8rem; border-radius: 20px; }

    /* LA MAGIA: NAVEGACIÓN FLOTANTE (BOTTOM PILL) */
    .sidebar nav {
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: max-content;
        max-width: 95vw;
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        margin: 0;
        padding: 6px;
        gap: 5px;

        /* Fondo SÓLIDO (no glass): el backdrop-filter sobre un elemento fixed
           provoca en iOS Safari que el pill se pinte blanco opaco al scrollear
           y tape los botones. Un blanco casi sólido mantiene el look premium
           sin ese bug de compositing. */
        background: rgba(255, 255, 255, 0.97);
        border: 1px solid rgba(226, 232, 240, 0.9);
        border-radius: 50px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255,255,255,0.6);
        z-index: 9999;

        /* Ocultar barra de scroll nativa */
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    .sidebar nav::-webkit-scrollbar { display: none; }

    /* Estilo de los botones dentro de la píldora */
    .menu-item {
        padding: 10px 18px;
        font-size: 0.85rem;
        border-left: none;
        background: transparent;
        border-radius: 30px;
        white-space: nowrap;
        color: var(--text-muted);
        transition: all 0.3s ease;
    }
    .menu-item.active {
        background: var(--primary);
        color: #fff;
        box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
    }
    .menu-item.active i { color: #fff; }

    /* Ajustes del contenido para móvil */
    .admin-header { display: none; } /* Ocultamos porque ya tenemos la barra blanca de arriba */
    .admin-content { padding: 15px; }
    .panel-head { flex-direction: column; align-items: flex-start; gap: 10px; }
    .panel-head button { width: 100%; }
    .grid-2 { grid-template-columns: 1fr; gap: 10px; }
    .reserva-top { flex-direction: column; align-items: flex-start; }
    .reserva-montos { text-align: left; margin-top: 8px; }
    .tk-row { flex-direction: column; gap: 5px; }
    .ticket-pro-head { flex-direction: column; text-align: center; gap: 10px; }

    .dash-grid { grid-template-columns: 1fr; }
    /* Modal de tour: una sola columna y inputs que no se desbordan */
    .tour-form-grid { grid-template-columns: 1fr; }
    .modal-content { padding: 22px 18px; }
    .premium-input { min-width: 0; max-width: 100%; }
    input[type="date"].premium-input, input[type="number"].premium-input { -webkit-appearance: none; appearance: none; }
}
