/* Fondo decorativo tenue, contenido y controles por encima del video. */
.hero { position: relative; isolation: isolate; overflow: hidden; border-radius: 20px; }
.hero .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .22; pointer-events: none; z-index: -2; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #050505b8, #05050545 65%), linear-gradient(0deg, #050505, transparent 22%, transparent 80%, #05050570); z-index: -1; pointer-events: none; }
.hero-video-toggle { position: absolute; bottom: 8px; right: 12px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 6px; background: #101010c9; color: var(--muted); font-size: 10px; cursor: pointer; }
/* Solo se muestra la orientación de la banda seleccionada. */
.band-selector-panel { display: flex; align-items: center; gap: 24px; padding: 16px 20px; margin: 16px 0; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; }
.band-selector-panel > div:first-child { flex: 0 0 auto; }
#band-note { margin: 7px 0 0; font-size: 12px; color: var(--muted); }
@media (max-width: 640px) {
  .band-selector-panel { flex-direction: column; align-items: stretch; gap: 12px; }
  #band-select { width: 100%; }
}
/* Guía compacta: estimaciones separadas de las mediciones solares. */
.band-table-wrap { margin: 18px 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--panel); }
.band-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; }
.band-table caption { padding: 13px 16px; text-align: left; color: var(--muted); background: #ffffff04; font-size: 12px; }
.band-table th, .band-table td { padding: 9px 16px; border-top: 1px solid var(--line); }
.band-table thead th { color: var(--muted); font-size: 10px; font-weight: 500; letter-spacing: .6px; }
.band-table tbody th { white-space: nowrap; font: 500 15px Outfit, sans-serif; }
.band-table small { display: inline-block; margin-left: 10px; color: var(--muted); font: 10px Inter, sans-serif; }
.band-table .band-note { color: var(--muted); font-size: 11px; }
.band-table .badge { display: inline-block; white-space: nowrap; }
@media (max-width: 640px) {
  .band-table th, .band-table td { padding: 8px 10px; }
  .band-table small { display: block; margin: 3px 0 0; }
  .band-table thead th:last-child, .band-table .band-note { display: none; }
  .band-table caption { padding: 12px; font-size: 11px; }
}
/* Identidad compartida con el módulo ISS y el Radio Club Talagante. */
:root {
  --bg: #050505;
  --panel: #101011;
  --line: #ffffff14;
  --text: #f5f5f7;
  --muted: #a6a6ad;
  --orange: #ff8179;
  --green: #7cd4a6;
  --accent: #ff3b30;
  font-family: Inter, sans-serif;
}

body {
  background-image: linear-gradient(#ffffff05 1px, transparent 1px), linear-gradient(90deg, #ffffff05 1px, transparent 1px);
  background-size: 50px 50px;
  background-position: center;
}

h1, h2, h3, .brand, .button { font-family: Outfit, sans-serif; }
h1 em { color: var(--accent); }

.topbar {
  max-width: 1200px;
  margin: 20px auto 0;
  padding: 16px 26px;
  gap: 24px;
  background: #101010ed;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 12px 40px #00000030;
}

.brand {
  flex-wrap: nowrap;
  gap: 12px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.5px;
  line-height: 1.6;
}
.brand img { width: 46px; height: 46px; object-fit: contain; }
.brand > span:not(.brand-icon) { color: var(--text); }
.brand small {
  margin: 3px 0 0;
  font: 9px Inter, sans-serif;
  letter-spacing: 1.5px;
  color: var(--muted);
}
.topbar nav { gap: 23px; font-size: 12px; }
.topbar nav a { white-space: nowrap; }
.header-tag { font-size: 12px; color: var(--orange); white-space: nowrap; text-decoration: none; }
.topbar a:hover { color: var(--orange); }

.hero { background: radial-gradient(ellipse at 30% 0%, #ff3b3014, transparent 68%); }
.button { background: #232326; border-color: #ffffff20; border-radius: 10px; }
.button:hover { background: #303034; }
.button.primary { background: var(--accent); border-color: var(--accent); color: white; box-shadow: 0 5px 18px #ff3b301a; }
.button.primary:hover { background: #df3027; }
.metric, .station, .band, .chart-panel, .sources { border-radius: 20px; box-shadow: 0 12px 35px #00000020; }
select { background: #19191b; border-color: #ffffff1f; }
.interpretation { background: #211b19; border-color: #ff3b3038; border-left-color: var(--accent); }
::selection { background: #ff3b3055; color: white; }

@media (max-width: 1250px) {
  .topbar { margin: 20px; }
  .brand { font-size: 20px; }
  .topbar nav { gap: 15px; }
}
@media (max-width: 960px) {
  .topbar { flex-wrap: wrap; gap: 15px; }
  .brand { font-size: 18px; margin-right: auto; }
  .header-tag { order: 2; }
  .topbar nav { order: 3; width: 100%; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 10px; font-size: 11px; }
}
@media (max-width: 640px) {
  .topbar { margin: 12px; padding: 14px 16px; gap: 14px; border-radius: 16px; }
  .brand { font-size: 20px; }
  .brand img { width: 38px; height: 38px; }
  .brand small { font-size: 8px; letter-spacing: 1px; }
  .topbar nav a:not(:last-child) { display: inline; }
  .header-tag { font-size: 11px; }
  .metric, .station, .band, .chart-panel, .sources { border-radius: 18px; }
}
