/* ============================================================
   MME — MTY MUSIC EXPO
   Diseño: identidad de marca, mobile-first, iOS/Android
   ============================================================ */

/* ── Variables de marca ── */
:root {
  /* Colores oficiales del evento */
  --blue:   #1A47FF;
  --pink:   #FF2A8B;
  --green:  #AAFF00;
  --purple: #7030FF;
  --cyan:   #00D4FF;

  /* Sistema de fondo oscuro */
  --bg:        #000000;
  --surface:   #111111;
  --surface-2: #1A1A1A;
  --surface-3: #242424;
  --border:    #1C1C1C;
  --border-2:  #2A2A2A;

  /* Texto */
  --text:   #FFFFFF;
  --text-2: #AAAAAA;
  --text-3: #555555;

  /* Colores y texto por zona */
  --za-bg:   #1A47FF;  --za-fg: #FFFFFF;
  --zb-bg:   #FF2A8B;  --zb-fg: #FFFFFF;
  --zc-bg:   #AAFF00;  --zc-fg: #000000;

  /* Layout */
  --header-h: 80px;   /* fila logo (52px) + ticker (28px) */
  --nav-h:    72px;

  /* Tipografía */
  --display: 'Bebas Neue', Impact, sans-serif;
  --body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius:    14px;
  --radius-sm: 8px;
  --tap:       44px;
}

/* ── Reset base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html { font-size: 16px; }

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.hidden { display: none !important; }

/* ============================================================
   HEADER
   ============================================================ */
.app-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--bg);
}

/* Fila superior: logo + fecha */
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  padding: 0 16px;
}

.header-brand {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.header-mme {
  font-family: var(--display);
  font-size: 1.7rem;
  line-height: 1;
  letter-spacing: 1px;
  color: var(--text);
}

.header-full {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--text-3);
}

.header-date {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-2);
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  padding: 4px 10px;
  border-radius: 20px;
}

/* Ticker animado — muestra plática actual/siguiente */
.ticker-strip {
  display: flex;
  align-items: center;
  height: 28px;
  background: var(--blue);
  padding: 0 12px;
  gap: 8px;
  overflow: hidden;
}

.ticker-label {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.85);
  background: rgba(0,0,0,0.25);
  padding: 2px 7px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.ticker-overflow {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.ticker-text {
  display: inline-block;
  white-space: nowrap;
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
  animation: tickerScroll 28s linear infinite;
}

@keyframes tickerScroll {
  0%   { transform: translateX(100vw); }
  100% { transform: translateX(-100%); }
}

/* ============================================================
   MAIN
   ============================================================ */
.app-main {
  padding-top: var(--header-h);
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
  min-height: 100dvh;
}

.tab-panel { animation: fadeUp 0.2s ease; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   HERO BANNER
   ============================================================ */
.hero-banner {
  position: relative;
  overflow: hidden;
}

.hero-img {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
  object-position: center;
}

/* Pill de estado "En vivo" sobre el hero */
.hero-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 5px 12px 5px 8px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #fff;
}

.hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #FF3B30;
  animation: blink 1.4s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.45; transform: scale(0.75); }
}

/* ============================================================
   PRÓXIMA PLÁTICA (card bajo el hero)
   ============================================================ */
#nextTalkCard {
  margin: 0 16px;
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;
}

.next-talk-inner {
  background: linear-gradient(125deg, #1A47FF 0%, #7030FF 100%);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: opacity 0.15s;
}

.next-talk-inner:active { opacity: 0.85; }

.next-talk-left { flex: 1; min-width: 0; }

.next-talk-eyebrow {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 1.8px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 2px;
}

.next-talk-time {
  font-family: var(--display);
  font-size: 2.2rem;
  color: #fff;
  line-height: 1;
}

.next-talk-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.next-talk-speaker {
  font-size: 0.74rem;
  color: rgba(255,255,255,0.6);
  margin-top: 1px;
}

.next-talk-arrow {
  color: rgba(255,255,255,0.4);
  flex-shrink: 0;
}

/* ============================================================
   SEARCH STICKY + ZONE CHIPS
   ============================================================ */
.search-sticky {
  position: sticky;
  top: var(--header-h);
  z-index: 90;
  background: var(--bg);
  padding: 12px 16px 0;
  border-bottom: 1px solid var(--border);
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: 12px;
  padding: 0 12px;
  height: 44px;
  transition: border-color 0.2s;
}

.search-bar:focus-within { border-color: var(--blue); }

.search-bar svg {
  width: 16px; height: 16px;
  color: var(--text-3);
  flex-shrink: 0;
}

#searchInput {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--body);
  font-size: 0.9rem;
  color: var(--text);
  caret-color: var(--blue);
}

#searchInput::placeholder { color: var(--text-3); }

.search-clear {
  background: none;
  border: none;
  color: var(--text-3);
  cursor: pointer;
  font-size: 0.82rem;
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s;
}
.search-clear.visible { opacity: 1; }

/* Chips de zona — scroll horizontal */
.zone-chips {
  display: flex;
  gap: 6px;
  padding: 10px 0 12px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.zone-chips::-webkit-scrollbar { display: none; }

.zone-chip {
  flex-shrink: 0;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  color: var(--text-2);
  font-family: var(--body);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0 16px;
  height: var(--tap);
  border-radius: 22px;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
}

/* Estado activo según zona */
.zone-chip[data-zone=""].active  { background: var(--surface-3); border-color: var(--text-3); color: var(--text); }
.zone-chip[data-zone="A"].active { background: var(--za-bg); border-color: var(--za-bg); color: var(--za-fg); }
.zone-chip[data-zone="B"].active { background: var(--zb-bg); border-color: var(--zb-bg); color: var(--zb-fg); }
.zone-chip[data-zone="C"].active { background: var(--zc-bg); border-color: var(--zc-bg); color: var(--zc-fg); }
.zone-chip[data-zone="talk"].active { background: var(--purple); border-color: var(--purple); color: #fff; }

/* ============================================================
   STAND CARDS
   ============================================================ */
#standsContainer { padding: 12px 16px 4px; }

/* Separador de grupo/zona */
.stands-group-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-size: 1.1rem;
  letter-spacing: 2px;
  color: var(--text-3);
  margin: 16px 0 8px;
}

.stands-group-label:first-child { margin-top: 4px; }

.group-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.stands-group-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Colores del dot por zona */
.stands-group-label[data-zone="A"] .group-dot { background: var(--za-bg); }
.stands-group-label[data-zone="B"] .group-dot { background: var(--zb-bg); }
.stands-group-label[data-zone="C"] .group-dot { background: var(--zc-bg); }

/* Tarjeta de stand — stripe izquierdo via CSS vars del data-zone */
.stand-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  box-shadow: inset 4px 0 0 var(--zone-color, var(--border-2));
  min-height: 72px;
  -webkit-user-select: none;
  user-select: none;
}

.stand-card:active { background: var(--surface-2); transform: scale(0.985); }

/* Hereda color y texto de la zona */
.stand-card[data-zone="A"] { --zone-color: var(--za-bg); --zone-fg: var(--za-fg); }
.stand-card[data-zone="B"] { --zone-color: var(--zb-bg); --zone-fg: var(--zb-fg); }
.stand-card[data-zone="C"] { --zone-color: var(--zc-bg); --zone-fg: var(--zc-fg); }

/* Número de stand (grande, en color de zona) */
.stand-num {
  font-family: var(--display);
  font-size: 2.4rem;
  color: var(--zone-color, var(--text-3));
  line-height: 1;
  min-width: 50px;
  text-align: center;
}

.stand-info { flex: 1; min-width: 0; }

.stand-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stand-cat {
  font-size: 0.78rem;
  color: var(--text-2);
  margin-top: 2px;
}

.stand-tags {
  display: flex;
  gap: 5px;
  margin-top: 7px;
  flex-wrap: wrap;
}

.tag {
  font-size: 0.63rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tag-zone {
  background: var(--zone-color, var(--surface-3));
  color: var(--zone-fg, var(--text-2));
}

.tag-talk {
  background: rgba(112, 48, 255, 0.2);
  color: #B388FF;
  border: 1px solid rgba(112, 48, 255, 0.3);
}

.stand-arrow { color: var(--text-3); flex-shrink: 0; }

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 64px 24px;
  color: var(--text-3);
}

.empty-state svg {
  width: 44px; height: 44px;
  display: block;
  margin: 0 auto 12px;
  opacity: 0.3;
}

.empty-state p { font-size: 0.9rem; line-height: 1.65; }
.empty-state strong { color: var(--text-2); }

/* ============================================================
   SECCIÓN HEROES (Pláticas y Mapa)
   ============================================================ */
.section-hero {
  padding: 28px 16px 20px;
  border-bottom: 1px solid var(--border);
}

.section-hero-title {
  font-family: var(--display);
  font-size: 4rem;
  line-height: 0.9;
  letter-spacing: 2px;
}

.section-hero-sub {
  font-size: 0.8rem;
  color: var(--text-3);
  margin-top: 6px;
}

.platicas-hero .section-hero-title { color: var(--pink); }
.mapa-hero    .section-hero-title { color: var(--green); }

/* ============================================================
   FILTROS (Pláticas)
   ============================================================ */
.filter-bar {
  display: flex;
  gap: 6px;
  padding: 12px 16px;
  overflow-x: auto;
  scrollbar-width: none;
}
.filter-bar::-webkit-scrollbar { display: none; }

.filter-btn {
  flex-shrink: 0;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  color: var(--text-2);
  font-family: var(--body);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0 18px;
  height: var(--tap);
  border-radius: 22px;
  cursor: pointer;
  transition: all 0.15s;
}

.filter-btn.active {
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
}

/* ============================================================
   TALK CARDS (Pláticas)
   ============================================================ */
#platicasContainer { padding: 4px 16px 16px; }

.talk-card {
  display: flex;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 8px;
  transition: border-color 0.3s, background 0.3s;
}

.talk-card.highlighted {
  border-color: var(--blue);
  background: rgba(26, 71, 255, 0.07);
}

/* Columna de hora con línea vertical */
.talk-time-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 52px;
  flex-shrink: 0;
}

.talk-time {
  font-family: var(--display);
  font-size: 1.35rem;
  color: var(--pink);
  line-height: 1;
  text-align: center;
}

.talk-vline {
  width: 1px;
  flex: 1;
  min-height: 16px;
  background: var(--border-2);
}

/* Info de la plática */
.talk-info { flex: 1; min-width: 0; }

.talk-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.talk-speaker {
  font-size: 0.78rem;
  color: var(--text-2);
  margin-top: 3px;
}

.talk-where {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  color: var(--text-3);
  background: var(--surface-3);
  padding: 3px 8px;
  border-radius: 5px;
  margin-top: 7px;
}

.talk-where svg { width: 10px; height: 10px; flex-shrink: 0; }

/* ============================================================
   MAPA TAB
   ============================================================ */
.map-placeholder-card {
  position: relative;
  margin: 16px;
  border-radius: var(--radius);
  overflow: hidden;
  height: 200px;
}

.map-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: blur(3px) brightness(0.3);
  transform: scale(1.06);
  display: block;
}

.map-placeholder-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(255,255,255,0.55);
  text-align: center;
}

.map-placeholder-overlay p {
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.55;
}

.list-section-label {
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: 2.5px;
  color: var(--text-3);
  padding: 0 16px 8px;
}

/* ============================================================
   ZONE CARDS (Mapa)
   ============================================================ */
#zonesContainer { padding: 0 16px 16px; }

.zone-card {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 8px;
  cursor: pointer;
  min-height: 68px;
  transition: background 0.15s;
}
.zone-card:active { background: var(--surface-2); }

/* Bloque de color izquierdo con la letra de la zona */
.zone-color-block {
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 2rem;
  letter-spacing: 1px;
  flex-shrink: 0;
}

.zone-card[data-zone="A"] .zone-color-block { background: var(--za-bg); color: var(--za-fg); }
.zone-card[data-zone="B"] .zone-color-block { background: var(--zb-bg); color: var(--zb-fg); }
.zone-card[data-zone="C"] .zone-color-block { background: var(--zc-bg); color: var(--zc-fg); }

.zone-card-info {
  flex: 1;
  padding: 0 14px;
}

.zone-card-name {
  font-size: 0.95rem;
  font-weight: 700;
}

.zone-card-count {
  font-size: 0.78rem;
  color: var(--text-3);
  margin-top: 2px;
}

.zone-card-arrow { color: var(--text-3); padding-right: 14px; }

/* ============================================================
   BOTTOM NAV
   ============================================================ */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  height: var(--nav-h);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--text-3);
  font-family: var(--body);
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  padding-top: 4px;
  position: relative;
  transition: color 0.15s;
}

.nav-btn svg { width: 22px; height: 22px; }

/* Indicador activo: línea arriba + color azul */
.nav-btn.active {
  color: var(--text);
}

.nav-btn.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 3px;
  background: var(--blue);
  border-radius: 0 0 3px 3px;
}

/* ============================================================
   OVERLAY + BOTTOM SHEET
   ============================================================ */
.sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  z-index: 200;
  animation: overlayIn 0.22s ease;
}

@keyframes overlayIn { from { opacity: 0; } to { opacity: 1; } }

.bottom-sheet {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 201;
  background: var(--surface);
  border-radius: 22px 22px 0 0;
  max-height: 88dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  animation: sheetUp 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}

@keyframes sheetUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

.sheet-handle-wrap {
  padding: 10px 0 0;
  display: flex;
  justify-content: center;
}

.sheet-handle {
  width: 36px; height: 4px;
  background: var(--border-2);
  border-radius: 2px;
}

.sheet-close {
  position: absolute;
  top: 12px; right: 14px;
  background: var(--surface-3);
  border: none;
  border-radius: 50%;
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-2);
  transition: background 0.15s;
}
.sheet-close svg { width: 14px; height: 14px; }
.sheet-close:active { background: var(--border-2); }

/* Header del sheet: bloque de color pleno según zona */
.sheet-zone-header {
  padding: 24px 20px 20px;
}

.sheet-eyebrow {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 2px;
  opacity: 0.65;
  margin-bottom: 8px;
}

.sheet-big-num {
  font-family: var(--display);
  font-size: 5.5rem;
  line-height: 0.85;
  margin-bottom: 8px;
}

.sheet-brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
}

.sheet-brand-cat {
  font-size: 0.82rem;
  opacity: 0.72;
  margin-top: 3px;
}

/* Cuerpo del sheet */
.sheet-body { padding: 16px 20px; }

.sheet-divider {
  height: 1px;
  background: var(--border);
  margin: 12px 0;
}

.sheet-desc {
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.7;
}

/* Bloque de plática dentro del detalle del stand */
.sheet-talk-block {
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  margin-bottom: 10px;
}

.sheet-talk-eyebrow {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--purple);
  margin-bottom: 5px;
}

.sheet-talk-time {
  font-family: var(--display);
  font-size: 1.5rem;
  color: var(--text);
  line-height: 1;
}

.sheet-talk-title-text {
  font-size: 0.83rem;
  color: var(--text-2);
  margin-top: 3px;
}

/* Botón principal */
.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 15px;
  background: var(--blue);
  color: #fff;
  font-family: var(--body);
  font-size: 0.92rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
  min-height: var(--tap);
  margin-bottom: 8px;
}
.btn-primary:active { opacity: 0.85; transform: scale(0.99); }

/* Padding extra inferior para safe area en iPhone */
.sheet-safe { height: calc(12px + env(safe-area-inset-bottom, 0px)); }

/* ============================================================
   RESPONSIVE
   ------------------------------------------------------------
   · Hasta 767px  → diseño móvil original (celular)
   · 768–1099px   → iPad: columna de 760px y tarjetas a 2 columnas
   · 1100px+      → laptop: columna de 980px, fondo de marca,
                    stands a 3 columnas y efectos hover
   ============================================================ */

/* ── Teléfonos grandes / landscape: centra la columna ── */
@media (min-width: 480px) {
  .app-header,
  .bottom-nav {
    left: 50%;
    transform: translateX(-50%);
    width: 480px;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
  }

  .app-main {
    max-width: 480px;
    margin: 0 auto;
  }

  .bottom-sheet {
    left: 50%;
    transform: translateX(-50%);
    width: 480px;
  }

  .sheet-overlay {
    background: rgba(0,0,0,0.8);
  }
}

/* ── iPad y tablets (768px+) ── */
@media (min-width: 768px) {
  .app-header,
  .bottom-nav {
    width: 760px;
  }

  .app-main {
    max-width: 760px;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
  }

  .hero-img { height: 260px; }

  /* El detalle de stand no necesita ser tan ancho */
  .bottom-sheet {
    width: 540px;
    border-radius: 22px 22px 0 0;
  }

  /* Stands a 2 columnas; el título de zona cruza todo el ancho */
  #standsContainer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 14px 20px 8px;
  }
  .stands-group-label { grid-column: 1 / -1; margin: 12px 0 0; }
  .stand-card { margin-bottom: 0; }

  /* Pláticas a 2 columnas */
  #platicasContainer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 8px 20px 20px;
  }
  .talk-card { margin-bottom: 0; }

  /* Zonas del mapa a 2 columnas */
  #zonesContainer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0 20px 20px;
  }
  .zone-card { margin-bottom: 0; }

  .map-placeholder-card { height: 260px; margin: 20px; }

  /* Vistas del staff centradas en una columna cómoda de leer */
  .staff-wrap {
    max-width: 620px;
    margin: 0 auto;
    padding: 20px;
  }

}

/* ── Laptop / desktop (1100px+) ── */
@media (min-width: 1100px) {
  /* Fondo de marca alrededor de la app */
  body {
    background:
      radial-gradient(640px 420px at 6% 8%,  rgba(26, 71, 255, 0.18), transparent 70%),
      radial-gradient(540px 400px at 94% 16%, rgba(255, 42, 139, 0.11), transparent 70%),
      radial-gradient(620px 440px at 88% 92%, rgba(112, 48, 255, 0.14), transparent 70%),
      radial-gradient(500px 380px at 10% 88%, rgba(170, 255, 0, 0.07), transparent 70%),
      #000;
    background-attachment: fixed;
  }

  .app-header,
  .bottom-nav {
    width: 980px;
  }

  .app-main {
    max-width: 980px;
    background: var(--bg);
  }

  .hero-img { height: 300px; }

  .section-hero-title { font-size: 5rem; }

  /* Stands a 3 columnas */
  #standsContainer { grid-template-columns: 1fr 1fr 1fr; }
}

/* ── Hover solo donde hay mouse (laptop), sin afectar táctil ── */
@media (hover: hover) and (pointer: fine) {
  .stand-card:hover,
  .zone-card:hover,
  .talk-card:hover,
  .staff-big-btn:hover { background: var(--surface-2); }

  .stand-card:hover,
  .zone-card:hover,
  .staff-big-btn:hover { border-color: var(--text-3); }

  .nav-btn:hover { color: var(--text-2); }
  .nav-btn.active:hover { color: var(--text); }

  .zone-chip:hover:not(.active),
  .filter-btn:hover:not(.active) { border-color: var(--text-3); color: var(--text); }

  .btn-primary:hover,
  .aviso-publicar:hover { filter: brightness(1.12); }

  .next-talk-inner:hover { opacity: 0.92; }
}

/* ============================================================
   TAB STAFF — login, menú y vistas
   ============================================================ */
.staff-hero .section-hero-title { color: var(--purple); }

/* Contenedor con padding de cada vista del tab Staff */
.staff-wrap { padding: 16px; }

/* ── Login usuario/contraseña ── */
.staff-login-card {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 24px 20px;
  max-width: 360px;
  margin: 8px auto 0;
}

.staff-login-title {
  font-family: var(--display);
  font-size: 1.5rem;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
}

.staff-field-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 12px 0 6px;
}

#staffUserInput,
#staffPassInput {
  width: 100%;
  padding: 13px 14px;
  background: var(--surface-3);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.95rem;
  font-family: var(--body);
}
#staffUserInput:focus,
#staffPassInput:focus { outline: 2px solid var(--blue); }

.staff-login-error {
  color: var(--pink);
  font-size: 0.78rem;
  font-weight: 600;
  margin: 10px 0 0;
}

.staff-login-card .btn-primary { margin-top: 18px; margin-bottom: 0; }

.staff-link {
  background: none;
  border: none;
  color: var(--text-2);
  font-family: var(--body);
  font-size: 0.82rem;
  cursor: pointer;
  padding: 8px;
}

/* ── Menú del staff (hub) ── */
.staff-session-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-2);
  margin-bottom: 14px;
}

.staff-session-row .staff-link { color: var(--pink); padding: 8px 0; }

.staff-big-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 18px 16px;
  margin-bottom: 10px;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, transform 0.1s;
}
.staff-big-btn:active { background: var(--surface-2); transform: scale(0.985); }

.staff-big-btn[data-accent="purple"] { --acc: var(--purple); }
.staff-big-btn[data-accent="blue"]   { --acc: var(--blue); }

.staff-big-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--acc, var(--surface-3));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.staff-big-icon svg { width: 22px; height: 22px; color: #fff; }

.staff-big-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.staff-big-text b {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
}

.staff-big-text span {
  font-size: 0.76rem;
  color: var(--text-2);
}

.staff-big-arrow { color: var(--text-3); flex-shrink: 0; }

/* ── Botón volver dentro de las vistas ── */
.staff-back {
  background: none;
  border: none;
  color: var(--text-2);
  font-family: var(--body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0 14px;
  display: block;
}
.staff-back:active { color: var(--text); }

/* ── Stats ── */
.staff-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.staff-stat {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 12px 6px 10px;
  text-align: center;
}

.staff-stat b {
  display: block;
  font-family: var(--display);
  font-size: 1.9rem;
  line-height: 1;
  color: var(--text);
}
.staff-stat.used b { color: var(--pink); }
.staff-stat.free b { color: var(--green); }

.staff-stat span {
  display: block;
  margin-top: 4px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-2);
}

/* ── Cámara ── */
.staff-video-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0a0a0a;
  border: 1px solid var(--border-2);
  margin-bottom: 10px;
}

#staffVideo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.staff-frame {
  position: absolute;
  inset: 14%;
  border: 2px solid var(--green);
  border-radius: 14px;
  opacity: 0.85;
  pointer-events: none;
  box-shadow: 0 0 0 100vmax rgba(0,0,0,0.25);
}

.staff-cam-error {
  color: var(--pink);
  font-size: 0.78rem;
  line-height: 1.45;
  margin: -2px 2px 10px;
}

/* ── Resultado del escaneo ── */
.staff-result {
  border-radius: var(--radius);
  padding: 16px 14px;
  margin-bottom: 12px;
  text-align: center;
  animation: staffPop 0.18s ease;
}

@keyframes staffPop {
  from { transform: scale(0.96); opacity: 0.4; }
  to   { transform: scale(1);    opacity: 1; }
}

.staff-result.ok      { background: var(--green); color: #000; }
.staff-result.dup     { background: #FFB020;      color: #000; }
.staff-result.invalid { background: #FF3355;      color: #fff; }

.staff-result-title {
  font-family: var(--display);
  font-size: 1.55rem;
  letter-spacing: 1.5px;
  line-height: 1;
}

.staff-result-detail {
  font-size: 0.82rem;
  font-weight: 700;
  margin-top: 5px;
  opacity: 0.85;
}

/* ── Entrada manual ── */
.staff-manual {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.staff-manual input {
  flex: 1;
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 0.8rem;
}
.staff-manual input:focus { outline: 2px solid var(--blue); }
.staff-manual input::placeholder { font-family: var(--body); color: var(--text-3); }

.staff-manual button {
  padding: 0 18px;
  background: var(--surface-3);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--body);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  min-height: var(--tap);
}

/* ── Registro de escaneos ── */
.staff-log { margin-bottom: 18px; }

.staff-log-empty {
  text-align: center;
  color: var(--text-3);
  font-size: 0.82rem;
  padding: 22px 0;
}

.staff-log-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 6px;
}

.staff-log-folio {
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  flex: 1;
}

.staff-log-time {
  font-size: 0.72rem;
  color: var(--text-2);
}

.staff-log-badge {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--green);
  border: 1px solid var(--green);
  border-radius: 20px;
  padding: 3px 9px;
}

/* ── Acciones ── */
.staff-actions {
  display: flex;
  gap: 8px;
}

.staff-actions button {
  flex: 1;
  padding: 13px;
  border-radius: var(--radius-sm);
  font-family: var(--body);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  color: var(--text);
  min-height: var(--tap);
}

.staff-actions button.danger {
  background: none;
  border-color: rgba(255, 51, 85, 0.45);
  color: #FF3355;
}

/* ============================================================
   MODO STAFF — Anuncios
   ============================================================ */
.aviso-form {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 10px;
  margin-bottom: 8px;
}

#avisoInput {
  width: 100%;
  background: var(--surface-3);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--body);
  font-size: 0.85rem;
  line-height: 1.45;
  padding: 10px 12px;
  resize: none;
}
#avisoInput:focus { outline: 2px solid var(--blue); }
#avisoInput::placeholder { color: var(--text-3); }

.aviso-form-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.aviso-urgente-toggle {
  padding: 0 14px;
  background: none;
  border: 1px solid rgba(255, 176, 32, 0.5);
  border-radius: var(--radius-sm);
  color: #FFB020;
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  min-height: var(--tap);
}

.aviso-urgente-toggle.active {
  background: #FFB020;
  border-color: #FFB020;
  color: #000;
}

.aviso-publicar {
  flex: 1;
  background: var(--blue);
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: var(--body);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  min-height: var(--tap);
}
.aviso-publicar:active { opacity: 0.85; }

.staff-note {
  font-size: 0.68rem;
  color: var(--text-3);
  line-height: 1.45;
  margin: 0 2px 16px;
}

.aviso-card {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 8px;
}

.aviso-card.urgente {
  border-color: rgba(255, 176, 32, 0.55);
  background: rgba(255, 176, 32, 0.07);
}

.aviso-card.fijo { border-style: dashed; }

.aviso-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.aviso-badge {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--cyan);
  border: 1px solid var(--cyan);
  border-radius: 20px;
  padding: 2.5px 9px;
}

.aviso-card.urgente .aviso-badge {
  color: #FFB020;
  border-color: #FFB020;
}

.aviso-card.fijo .aviso-badge {
  color: var(--text-2);
  border-color: var(--border-2);
}

.aviso-hora {
  flex: 1;
  font-size: 0.68rem;
  color: var(--text-3);
}

.aviso-del {
  background: none;
  border: none;
  color: var(--text-3);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 4px 6px;
  line-height: 1;
}
.aviso-del:active { color: var(--pink); }

.aviso-texto {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}
