/* ====================================================================
   iss.css · Estilos del Tracker de la ISS (usa las variables de Orbis)
   ==================================================================== */

/* ---- Cabecera ---- */
.thead {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 24px;
  background: rgba(10, 15, 26, .85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.thead__back {
  width: 38px; height: 38px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 50%;
  color: var(--text); text-decoration: none; font-size: 1.2rem;
  transition: border-color .15s ease, background .15s ease;
}
.thead__back:hover { border-color: var(--primary); background: var(--panel); }
.thead__logo { width: 38px; height: 38px; object-fit: contain; flex-shrink: 0; }
.thead__titles { flex: 1; min-width: 0; }
.thead__titles h1 { font-family: var(--font-display); font-size: 1.25rem; margin: 0; letter-spacing: -.2px; }
.thead__titles p { margin: 2px 0 0; font-size: .8rem; color: var(--muted); }
.thead__live { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.live { display: inline-flex; align-items: center; gap: 7px; font-size: .74rem; font-weight: 600; letter-spacing: 1px; color: #7ee7a6; }
.live__dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74,222,128,.6); animation: livePulse 1.6s infinite; }
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(74,222,128,.5); }
  70% { box-shadow: 0 0 0 8px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}
.thead__clock { font-family: var(--font-display); font-size: .92rem; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---- Barra de cuenta en la cabecera ---- */
.thead { flex-wrap: wrap; }
.thead__acc { display: flex; align-items: center; gap: 12px; }
.acc-loc { display: flex; align-items: center; gap: 8px; }
.acc-loc > span { font-size: .74rem; color: var(--muted); white-space: nowrap; }
.acc-loc select { max-width: 170px; padding: 7px 10px; }

/* ---- Sección de pases del satélite ---- */
.satpass-controls { display: flex; gap: 18px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 16px; }
.satpass-empty {
  color: var(--muted); background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px 20px; text-align: center;
}
.satpass-empty p { margin: 0 0 14px; }
.satpass-more { margin-top: 14px; }

/* ---- Frecuencias de radio (ISS) ---- */
.freq-note { font-size: .82rem; color: var(--muted); margin: 0 0 16px; line-height: 1.5; }
.freq-note--small { font-size: .74rem; margin: 12px 2px 0; }
.freq-legend { display: inline-flex; align-items: center; gap: 5px; margin-left: 12px; font-size: .78rem; color: var(--muted); }
.freq-legend:first-child { margin-left: 0; }

.freq-table-wrap { overflow-x: auto; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); }
.freq-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.freq-table th {
  text-align: left; font-size: .66rem; text-transform: uppercase; letter-spacing: .6px;
  color: var(--muted); font-weight: 600; padding: 12px 16px; border-bottom: 1px solid var(--border);
}
.freq-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.freq-table tbody tr:last-child td { border-bottom: none; }
.freq-table tbody tr:hover { background: rgba(226,164,75,.06); }
.freq-table .freq { white-space: nowrap; }
.freq-table .freq b { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.freq-table .freq small { color: var(--muted); font-weight: 500; font-size: .74rem; margin-left: 4px; }
.freq-mode { color: var(--muted); }

.freq-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%; font-weight: 700; font-size: 1rem; line-height: 1;
}
.freq-arrow--down { color: #f87171; background: rgba(248,113,113,.14); }
.freq-arrow--up { color: #4ade80; background: rgba(74,222,128,.14); }

.band { display: inline-block; font-size: .74rem; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.band--vhf { color: #7ab8ff; background: rgba(122,184,255,.12); }
.band--uhf { color: #4ade80; background: rgba(74,222,128,.12); }
.band--space { color: #c8a2ff; background: rgba(200,162,255,.12); }
#satPasses .pcard { cursor: default; }
#satPasses .pcard:hover { transform: none; border-color: var(--border); border-left-color: inherit; }

@media (max-width: 700px) {
  .thead__titles { order: 0; }
  .thead__acc { order: 3; width: 100%; }
  .thead__live { order: 2; width: 100%; flex-direction: row; align-items: center; justify-content: space-between; }
}
@media (max-width: 480px) {
  .thead__titles h1 {
    font-size: .95rem;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  }
  .thead__titles p { display: none; }
}

/* ---- Contenedor ---- */
.twrap { max-width: 1140px; margin: 0 auto; padding: 28px 24px 60px; }
.tsection { margin-bottom: 40px; }
.tsection__head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.tsection__title { font-family: var(--font-display); font-size: 1.3rem; margin: 0 0 16px; }
.tsection__head .tsection__title { margin: 0; }
.tsection__meta { font-size: .8rem; color: var(--muted); }

/* ---- Mapa + posición ---- */
.map-section { display: grid; grid-template-columns: 1fr 320px; gap: 18px; }
.map-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.map-col__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
#trkMap {
  height: 440px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); background: #0a1024;
  /* Crea un contexto de apilamiento propio para que Leaflet no tape la cabecera */
  position: relative; z-index: 0;
  transition: opacity .32s ease;
}
.body-marker { font-size: 24px; filter: drop-shadow(0 0 5px rgba(0,0,0,.7)); }

/* ---- Selector de satélite ---- */
.sat-select {
  background: var(--bg-2); border: 1px solid var(--border); color: var(--text);
  font: inherit; font-size: .82rem; font-weight: 600; padding: 8px 12px;
  border-radius: 999px; cursor: pointer; max-width: 220px;
}
.sat-select:hover { border-color: var(--primary); }

/* ---- Alternador de vista 2D / 3D ---- */
.view-toggle { display: inline-flex; gap: 6px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 999px; padding: 4px; align-self: flex-start; }
.view-toggle button {
  background: none; border: none; color: var(--muted); font: inherit; font-weight: 600;
  font-size: .82rem; padding: 6px 14px; border-radius: 999px; cursor: pointer; transition: background .15s ease, color .15s ease;
}
.view-toggle button.is-active { background: var(--primary); color: #1a1206; }

.trk-globe {
  height: 440px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border);
  background: radial-gradient(circle at 40% 35%, #0d1730, #04070f 72%);
  position: relative; z-index: 0;
  transition: opacity .32s ease;
}
.trk-globe canvas { display: block; touch-action: none; }
.trk-globe__loading {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  transition: opacity .4s ease; pointer-events: none;
}
.trk-globe__loading.is-hidden { opacity: 0; }
.trk-globe__loading .spinner__img { width: 46px; height: 46px; animation: spin 1s linear infinite; }

/* ---- Escenario del mapa: envuelve las dos vistas + overlays flotantes ---- */
.map-stage { position: relative; }

.map-float {
  position: absolute; top: 12px; right: 12px; z-index: 10;
  background: rgba(10, 15, 26, .74); backdrop-filter: blur(10px);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px 14px; min-width: 148px;
  display: flex; flex-direction: column; gap: 6px;
  pointer-events: none;
}
.map-float__row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: .76rem; }
.map-float__row span { color: var(--muted); }
.map-float__row b { font-family: var(--font-display); font-size: .92rem; font-variant-numeric: tabular-nums; white-space: nowrap; }

.map-actions {
  position: absolute; bottom: 12px; right: 12px; z-index: 10;
  display: flex; flex-direction: column; gap: 8px;
}
.map-action-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(10, 15, 26, .78); backdrop-filter: blur(10px);
  border: 1px solid var(--border); color: var(--text); font-size: 1.05rem;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: border-color .12s ease, background .12s ease, color .12s ease;
}
.map-action-btn:hover { border-color: var(--primary); }
.map-action-btn.is-active { background: var(--primary); border-color: transparent; color: #1a1206; }

.cam-presets {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); z-index: 10;
  display: flex; gap: 6px;
  background: rgba(10, 15, 26, .74); backdrop-filter: blur(10px);
  border: 1px solid var(--border); border-radius: 999px; padding: 6px;
}
.cam-preset-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg-2); border: 1px solid transparent; color: var(--text); font-size: .95rem;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: border-color .12s ease, background .12s ease;
}
.cam-preset-btn:hover:not(:disabled) { border-color: var(--primary); }
.cam-preset-btn:disabled { opacity: .35; cursor: not-allowed; }

/* ---- Controles de zoom de Leaflet, en tema oscuro ---- */
.leaflet-control-zoom { border: 1px solid var(--border) !important; border-radius: var(--radius-sm) !important; box-shadow: none !important; overflow: hidden; }
.leaflet-control-zoom a {
  background: rgba(10, 15, 26, .85) !important; color: var(--text) !important;
  border-bottom: 1px solid var(--border) !important; width: 30px !important; height: 30px !important; line-height: 30px !important;
}
.leaflet-control-zoom a:last-child { border-bottom: none !important; }
.leaflet-control-zoom a:hover { background: var(--panel) !important; color: var(--accent) !important; }

/* ---- Controles del mapa ---- */
.map-controls {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 16px;
  display: flex; flex-direction: column; gap: 14px;
}
.time-travel { }
.time-travel__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.tt-label { font-family: var(--font-display); font-size: .9rem; }
.tt-label.is-travel { color: var(--accent); }
.tt-buttons { display: flex; gap: 6px; }
.tt-btn {
  flex: 1; min-width: 0; background: var(--bg-2); border: 1px solid var(--border);
  color: var(--text); font: inherit; font-size: .78rem; font-weight: 600;
  padding: 9px 4px; border-radius: 9px; cursor: pointer; text-align: center;
  transition: border-color .12s ease, background .12s ease, color .12s ease;
}
.tt-btn:hover { border-color: var(--primary); }
.tt-btn--live { flex: 1.6; font-size: .68rem; letter-spacing: .4px; }
.tt-btn--live.is-active { background: var(--primary); color: #1a1206; border-color: transparent; }
.leaflet-container { background: #070b16; font-family: var(--font); }
.iss-marker {
  font-size: 26px; filter: drop-shadow(0 0 6px rgba(242,197,109,.9));
  transform: translate(-2px, -2px);
}
/* Marcador con icono propio del satélite (base clara para verse sobre el mapa oscuro) */
.sat-marker {
  width: 38px; height: 38px; border-radius: 50%; padding: 6px;
  background: radial-gradient(circle at 50% 40%, #ffffff, #e7edf6);
  border: 1px solid rgba(0,0,0,.2);
  box-shadow: 0 0 10px rgba(242,197,109,.7);
  display: flex; align-items: center; justify-content: center;
}
.sat-marker img { width: 100%; height: 100%; object-fit: contain; display: block; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--panel); color: var(--text); border: 1px solid var(--border); }

.pos-panel {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; align-self: start;
}
.pos-panel__title { font-family: var(--font-display); font-size: 1.05rem; margin: 0 0 16px; }
.pos-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px; }
.pstat label { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); margin-bottom: 3px; }
.pstat b { font-family: var(--font-display); font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.pos-sun {
  margin-top: 18px; padding: 10px 14px; border-radius: var(--radius-sm);
  background: var(--bg-2); border: 1px solid var(--border);
  font-size: .9rem; text-align: center;
}
.pos-sun__cd { display: block; margin-top: 6px; font-family: var(--font-display); font-weight: 600; color: var(--accent); font-size: .92rem; }
.pos-updated { font-size: .72rem; color: var(--muted); margin: 14px 0 0; text-align: center; }

/* ---- Directo (YouTube) ---- */
.live-tabs { display: inline-flex; gap: 6px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 999px; padding: 4px; }
.live-tab { background: none; border: none; color: var(--muted); font: inherit; font-weight: 600; font-size: .82rem; padding: 6px 14px; border-radius: 999px; cursor: pointer; }
.live-tab.is-active { background: var(--primary); color: #1a1206; }
.live-embed {
  position: relative; width: 100%; padding-bottom: 56.25%; height: 0;
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
  background: #000;
}
.live-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; transition: opacity .35s ease; }
.live-embed.is-switching iframe { opacity: 0; }
.live-embed__spin {
  position: absolute; inset: 0; display: none; align-items: center; justify-content: center;
  background: #000;
}
.live-embed.is-switching .live-embed__spin { display: flex; }
.live-embed__spin .spinner__img { width: 54px; height: 54px; }
.live-note { font-size: .78rem; color: var(--muted); margin: 10px 0 0; }
.live-tab { transition: background .15s ease, color .15s ease; }

/* ---- Telemetría ---- */
.telem { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 16px; }
.telem__block {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px;
}
.telem__block h3 { font-family: var(--font-display); font-size: 1rem; margin: 0 0 16px; font-weight: 600; }
.telem__block--wide { grid-column: 1 / -1; }

.bar-list { display: flex; flex-direction: column; gap: 16px; }
.bar { }
.bar__top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.bar__label { font-size: .85rem; }
.bar__val { font-family: var(--font-display); font-weight: 600; font-size: 1rem; }
.bar__track { height: 8px; border-radius: 999px; background: var(--bg-2); overflow: hidden; border: 1px solid var(--border); }
.bar__fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--primary), var(--primary-2)); transition: width .5s ease; }
.bar__fill--warn { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.bar__fill--danger { background: linear-gradient(90deg, #dc2626, #f87171); }

.mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mstat { }
.mstat label { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin-bottom: 3px; }
.mstat b { font-family: var(--font-display); font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.mstat small { font-size: .72rem; color: var(--muted); margin-left: 3px; }

.power-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.pchan {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 14px;
}
.pchan__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.pchan__name { font-family: var(--font-display); font-weight: 700; font-size: 1rem; }
.pchan__side { font-size: .62rem; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 1px 7px; }
.pchan__volts { font-family: var(--font-display); font-size: 1.2rem; }
.pchan__volts small { font-size: .72rem; color: var(--muted); }
.pchan__bga { font-size: .72rem; color: var(--muted); margin-top: 4px; }

/* ---- Tripulación ---- */
.crew-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.crew-card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; cursor: pointer;
  transition: transform .1s ease, border-color .15s ease; text-align: left;
  padding: 0; color: var(--text); font: inherit;
}
.crew-card:hover { transform: translateY(-3px); border-color: var(--primary); }
.crew-card__photo { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--bg-2); display: block; }
.crew-card__ph {
  width: 100%; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, var(--panel-2), var(--bg-2)); font-size: 2.4rem;
}
.crew-card__body { padding: 12px 14px 14px; }
.crew-card__name { font-weight: 700; font-size: 1rem; margin-bottom: 2px; }
.crew-card__role { font-size: .8rem; color: var(--muted); margin-bottom: 8px; }
.crew-card__meta { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { font-size: .68rem; padding: 2px 8px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--border); color: var(--muted); }
.badge--cmd { background: rgba(242,197,109,.16); border-color: transparent; color: var(--accent); }
.badge--nasa { color: #7ab8ff; }
.badge--esa { color: #8fd6ff; }
.badge--rfsa { color: #ff9a9a; }
.badge--jaxa { color: #ff9ad2; }

/* ---- Naves ---- */
.veh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.veh-card {
  display: flex; gap: 14px; align-items: center;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px;
}
.veh-card__img { width: 64px; height: 64px; border-radius: var(--radius-sm); object-fit: cover; background: var(--bg-2); flex-shrink: 0; }
.veh-card__info { min-width: 0; }
.veh-card__name { font-weight: 700; font-size: .98rem; margin-bottom: 3px; }
.veh-card__sub { font-size: .78rem; color: var(--muted); }
.veh-card__port { font-size: .72rem; color: var(--primary-2); margin-top: 5px; }

/* ---- EVA ---- */
.eva-list { display: flex; flex-direction: column; gap: 10px; }
.eva-row {
  display: grid; grid-template-columns: 120px 1fr auto; gap: 16px; align-items: center;
  background: var(--panel); border: 1px solid var(--border);
  border-left: 3px solid var(--primary); border-radius: var(--radius); padding: 14px 18px;
}
.eva-row__date b { font-family: var(--font-display); display: block; }
.eva-row__date small { font-size: .72rem; color: var(--muted); }
.eva-row__name { font-weight: 600; }
.eva-row__crew { font-size: .8rem; color: var(--muted); margin-top: 2px; }
.eva-row__dur { font-family: var(--font-display); font-weight: 600; color: var(--accent); font-size: 1.1rem; white-space: nowrap; }

/* ---- Modal tripulante ---- */
.crew-modal__head { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.crew-modal__photo { width: 84px; height: 84px; border-radius: var(--radius-sm); object-fit: cover; background: var(--bg-2); }
.crew-modal__name { font-family: var(--font-display); font-size: 1.4rem; margin: 0; }
.crew-modal__role { color: var(--muted); margin: 2px 0 0; }
.crew-modal__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0; }
.crew-modal__stats > div { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; text-align: center; }
.crew-modal__stats b { display: block; font-family: var(--font-display); font-size: 1.3rem; }
.crew-modal__stats label { font-size: .66rem; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.crew-modal__bio { font-size: .88rem; color: #c6d0e6; line-height: 1.6; max-height: 200px; overflow-y: auto; }
.crew-modal__wiki { margin-top: 12px; }
.crew-modal__close { position: absolute; top: 14px; right: 16px; background: none; border: none; color: var(--muted); font-size: 1.1rem; cursor: pointer; }
#crewModal .modal__inner { position: relative; }

/* ---- Satélite no encontrado (NORAD ID inválido o sin datos en Celestrak) ---- */
.not-found { max-width: 520px; margin: 0 auto; }
.not-found .orbit-scene { position: relative; width: 140px; height: 140px; margin: 0 auto 10px; }
.not-found .orbit-ring {
  position: absolute; inset: 0; border: 1.5px dashed rgba(147, 160, 187, .35); border-radius: 50%;
  animation: notfound-spin 30s linear infinite;
}
.not-found .orbit-code {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 2.6rem; color: var(--danger); opacity: .85;
}
.not-found .orbit-sat {
  position: absolute; top: 50%; left: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px;
  font-size: 30px; display: flex; align-items: center; justify-content: center;
  filter: drop-shadow(0 0 10px rgba(226, 164, 75, .55));
  animation: notfound-orbit 6s ease-in-out infinite;
}
@keyframes notfound-spin { to { transform: rotate(360deg); } }
@keyframes notfound-orbit {
  0%, 100% { transform: translate(58px, 0) rotate(-8deg); }
  50% { transform: translate(-58px, 20px) rotate(10deg); }
}
.not-found__id { color: var(--muted); font-size: .85rem; margin: 4px 0 0; }
.not-found__id code { font-family: var(--font-display); color: var(--accent); }
.not-found__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 22px; }

/* ---- Selector de objetos de un mismo lanzamiento ---- */
.launch-picker { max-width: 560px; margin: 0 auto; }
.launch-picker p code { font-family: var(--font-display); color: var(--accent); }
.launch-picker__list { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; text-align: left; }
.launch-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  text-decoration: none; color: var(--text);
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 16px; transition: border-color .12s ease, transform .1s ease;
}
.launch-item:hover { border-color: var(--primary); transform: translateY(-2px); }
.launch-item__name { display: block; font-weight: 600; font-size: .92rem; }
.launch-item__meta { display: block; font-size: .78rem; color: var(--muted); margin-top: 2px; }
.launch-item__go { color: var(--primary-2); font-size: .82rem; font-weight: 600; flex: none; }

/* ---- Responsive ---- */
@media (max-width: 480px) {
  /* La columna "Modo" es la menos esencial: se oculta para que la tabla
     entre completa sin necesitar scroll horizontal en el celular. */
  .freq-mode-col, .freq-mode { display: none; }
}
@media (max-width: 820px) {
  .map-section { grid-template-columns: 1fr; }
  #trkMap, .trk-globe { height: 320px; }
  .telem { grid-template-columns: 1fr; }
  .thead__titles h1 { font-size: 1.05rem; }
  .eva-row { grid-template-columns: 90px 1fr; }
  .eva-row__dur { grid-column: 2; justify-self: start; }
  .tt-buttons { flex-wrap: wrap; }
  .tt-btn { flex: 1 1 calc(33.33% - 5px); }
  .tt-btn--live { flex: 1 1 100%; order: -1; margin-bottom: 4px; }

  /* Overlays flotantes más compactos, y controles pensados para el pulgar */
  .map-float { min-width: 0; padding: 8px 11px; gap: 4px; }
  .map-float__row { font-size: .7rem; gap: 6px; }
  .map-float__row b { font-size: .84rem; }
  .map-action-btn { width: 36px; height: 36px; font-size: .95rem; }
  .cam-preset-btn { width: 34px; height: 34px; }
  .sat-select { max-width: none; flex: 1 1 100%; order: 1; }
  .view-toggle { order: 0; }
}
