/* ══════════════════════════════════════════
   BASE.CSS — Reset · Variables · Layout
   ══════════════════════════════════════════ */

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

/* DESIGN TOKENS */
:root {
  --bg:    #000;
  --s1:    #0c0c0c;
  --s2:    #161616;
  --s3:    #1e1e1e;
  --line:  #242424;
  --line2: #2e2e2e;

  /* NUEVA PALETA DE TEXTOS (Alto contraste para exteriores) */
  --t0:    #ffffff;  /* Antes: #f2f2f2 -> Blanco puro para títulos y lecturas críticas */
  --t1:    #cccccc;  /* Antes: #999 -> Gris claro muy nítido para textos principales */
  --t2:    #8a8a8a;  /* Antes: #555 -> Gris medio (legible bajo el sol) para etiquetas secundarias */

  /* Accent palette */
  --cy: #00e5ff;
  --ye: #ffe600;
  --mg: #ff00cc;
  --gr: #39ff14;
  --or: #ff6200;
  --re: #ff1744;

  /* Tipografia global de la aplicacion */
  --font-app: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', sans-serif;
}

/* BASE */
html, body {
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--t0);
  font-family: var(--font-app);

  font-size: 14px;
  line-height: 1.4;
}

/* APP SHELL */
#app {
  display: flex;
  flex-direction: column;
  height: 100%;
}

#screen {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 56px;
}

/* Cuando la vista Mapa está activa, #screen se convierte en contenedor de posicionamiento sin scroll */
#screen.screen-map {
  position: relative;
  overflow: hidden;
  padding-bottom: 0;
}

#screen::-webkit-scrollbar { display: none; }

/* ── TOPBAR ── */
#top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 10;
}

.logotype {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .5px;
}
.logotype b    { color: var(--cy); }
.logotype sub  {
  font-size: 9px;
  color: var(--t2);
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: block;
  line-height: 1;
}

.top-pills { display: flex; gap: 6px; }

.pill {
  font-size: 10px;
  color: var(--t1);
  border: 1px solid var(--line2);
  border-radius: 3px;
  padding: 2px 6px;
  letter-spacing: .5px;
}
.pill.on { color: var(--gr); border-color: #1a3a1a; }

/* ── BOTTOM NAV ── */
#nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: var(--bg);
  border-top: 1px solid var(--line);
  display: flex;
  z-index: 20;
}

.nb {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  border: none;
  background: none;
  color: var(--t1);
  font-size: 9px;
  letter-spacing: .8px;
  text-transform: uppercase;
  transition: color .15s;
  padding: 0;
}
.nb.on  { color: var(--ye); }
.nb svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

/* ANIMATIONS */
@keyframes pulse {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}

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

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

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  40%       { transform: translateY(-12px); }
  60%       { transform: translateY(-6px); }
}
