/* ============================================================
   EA5YC · Stylesheet · Estilo C — Nav oscura / contenido claro
   ============================================================ */

:root {
  --bg:        #f0f2f7;
  --surf:      #ffffff;
  --card:      #ffffff;
  --card2:     #f8f9fc;
  --border:    #e0e4ef;
  --border2:   #c8cedf;
  --nav:       #1a2238;
  --nav2:      #111827;
  --acc:       #2a6ad0;
  --acc-light: #eef3fc;
  --acc-hover: #1e55b0;
  --text:      #1a2238;
  --muted:     #5a6580;
  --dim:       #8a93a8;
  --green:     #16a34a;
  --amber:     #d97706;
  --red:       #dc2626;
  --radius:    8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 3px rgba(26,34,56,0.08), 0 1px 2px rgba(26,34,56,0.04);
  --shadow:    0 4px 16px rgba(26,34,56,0.1), 0 2px 4px rgba(26,34,56,0.06);
  --trans:     0.18s ease;
}

[data-theme="dark"] {
  --bg:        #111827;
  --surf:      #1f2937;
  --card:      #1f2937;
  --card2:     #263347;
  --border:    #2d3748;
  --border2:   #3d4f6a;
  --nav:       #0d1421;
  --nav2:      #080e18;
  --acc:       #4a8aea;
  --acc-light: #1a2d4a;
  --acc-hover: #6aa0f0;
  --text:      #e8edf8;
  --muted:     #8a96b0;
  --dim:       #5a6580;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow:    0 4px 16px rgba(0,0,0,0.4);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
  min-height: 100vh;
  transition: background var(--trans), color var(--trans);
}
a { color: var(--acc); text-decoration: none; transition: color var(--trans); }
a:hover { color: var(--acc-hover); }
img { max-width: 100%; display: block; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--acc); }

/* ── Navbar ─────────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--nav);
  height: 60px; display: flex; align-items: center;
}
.navbar-inner {
  max-width: 1320px; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; width: 100%; gap: 8px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0; margin-right: 16px;
}
.logo-icon { width: 32px; height: 32px; opacity: 0.95; }
.logo-text {
  font-size: 18px; font-weight: 800; color: #ffffff;
  letter-spacing: 3px;
}
.logo-sub {
  font-size: 9px; color: rgba(255,255,255,0.45);
  letter-spacing: 1.5px; display: block; margin-top: -2px;
}

/* Nav menu */
.nav-menu {
  display: flex; align-items: stretch; gap: 0;
  list-style: none; height: 60px;
}
.nav-item { position: relative; display: flex; align-items: center; }
.nav-link {
  display: flex; align-items: center; gap: 5px; height: 60px;
  padding: 0 14px; font-size: 13px; font-weight: 500;
  color: rgba(255,255,255,0.6); white-space: nowrap; cursor: pointer;
  background: none; border: none; border-bottom: 3px solid transparent;
  border-top: 3px solid transparent;
  transition: color var(--trans), border-color var(--trans);
  font-family: inherit;
}
.nav-link:hover, .nav-link.active {
  color: #ffffff;
  border-bottom-color: var(--acc);
}
.nav-link svg { width: 10px; height: 10px; opacity: 0.5; transition: transform var(--trans); }
.nav-item:hover .nav-link svg { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  position: absolute; top: 100%; left: 0;
  background: var(--surf); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 6px;
  min-width: 240px; opacity: 0; visibility: hidden;
  transform: translateY(-6px); transition: all var(--trans);
  box-shadow: var(--shadow); z-index: 200;
  margin-top: 1px;
}
.nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: var(--radius);
  font-size: 13px; color: var(--muted); transition: all var(--trans);
}
.dropdown a:hover { color: var(--text); background: var(--acc-light); }
.dropdown a:hover .dd-icon { color: var(--acc); }
.dropdown a .dd-icon { font-size: 15px; color: var(--dim); width: 18px; flex-shrink: 0; transition: color var(--trans); }
.dropdown-divider { height: 1px; background: var(--border); margin: 4px 8px; }

/* Nav right */
.nav-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.theme-toggle {
  width: 34px; height: 34px; border-radius: var(--radius);
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.5); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; transition: all var(--trans);
}
.theme-toggle:hover { color: #fff; background: rgba(255,255,255,0.15); }

.live-badge {
  display: flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 700; color: #4ade80;
  background: rgba(74,222,128,0.1); border: 1px solid rgba(74,222,128,0.2);
  border-radius: 5px; padding: 4px 10px; letter-spacing: 1px;
}
.live-dot { width: 5px; height: 5px; background: #4ade80; border-radius: 50%; animation: blink 1.4s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.15} }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.hamburger span { display: block; width: 20px; height: 1.5px; background: rgba(255,255,255,0.6); }

/* ── Layout ─────────────────────────────────────────────────── */
.main { padding-top: 60px; }
.container    { max-width: 1280px; margin: 0 auto; padding: 0 28px; }
.container-sm { max-width: 880px;  margin: 0 auto; padding: 0 28px; }

/* ── Page header ─────────────────────────────────────────────── */
.page-hero {
  background: var(--nav);
  padding: 32px 0 28px;
}
.page-hero-inner { max-width: 1280px; margin: 0 auto; padding: 0 28px; }
.breadcrumb {
  font-size: 12px; color: rgba(255,255,255,0.35); margin-bottom: 8px;
  display: flex; align-items: center; gap: 6px;
}
.breadcrumb a { color: rgba(255,255,255,0.35); }
.breadcrumb a:hover { color: rgba(255,255,255,0.7); }
.breadcrumb-sep { opacity: 0.4; }
.page-title {
  font-size: 22px; font-weight: 700; color: #ffffff;
  display: flex; align-items: center; gap: 10px;
}
.page-title i { color: var(--acc); opacity: 0.9; }
.page-subtitle { font-size: 13px; color: rgba(255,255,255,0.45); margin-top: 5px; }

/* ── Hero ─────────────────────────────────────────────────────── */
.hero {
  background: var(--nav);
  padding: 48px 0 44px;
  display: flex; align-items: center;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 300px;
  gap: 52px; align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 10px; font-weight: 700; letter-spacing: 2px;
  color: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius); padding: 5px 12px; margin-bottom: 20px;
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 800;
  line-height: 1.1; color: #ffffff; margin-bottom: 8px;
}
.hero h1 span { color: var(--acc); }
.hero-call {
  font-size: 15px; color: rgba(255,255,255,0.55);
  margin-bottom: 32px; line-height: 1.8;
}
.hero-call strong { color: rgba(255,255,255,0.85); font-weight: 600; }
.hero-stats { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.stat-chip {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius); padding: 10px 16px; text-align: center;
}
.stat-chip-val { font-size: 14px; font-weight: 700; color: var(--acc); }
.stat-chip-lbl { font-size: 10px; color: rgba(255,255,255,0.35); margin-top: 2px; letter-spacing: 0.5px; }
.hero-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 22px; border-radius: var(--radius);
  font-size: 13px; font-weight: 600; cursor: pointer;
  border: none; text-decoration: none; transition: all var(--trans);
  font-family: inherit;
}
.btn-primary { background: var(--acc); color: #ffffff; }
.btn-primary:hover { background: var(--acc-hover); color: #fff; }
.btn-outline {
  background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.75);
  border: 1px solid rgba(255,255,255,0.15);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* Hero card */
.hero-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg); padding: 28px 22px; text-align: center;
  border-top: 2px solid var(--acc);
}
.signal-anim {
  width: 96px; height: 96px; margin: 0 auto 18px;
  position: relative; display: flex; align-items: center; justify-content: center;
}
.s-ring {
  position: absolute; border-radius: 50%;
  border: 1px solid var(--acc); opacity: 0.2;
  animation: s-pulse 3s ease-out infinite;
}
.s-ring:nth-child(1) { width: 96px; height: 96px; animation-delay: 0s; }
.s-ring:nth-child(2) { width: 64px; height: 64px; animation-delay: 0.8s; }
.s-ring:nth-child(3) { width: 36px; height: 36px; animation-delay: 1.6s; }
@keyframes s-pulse {
  0%  { transform: scale(0.8); opacity: 0.3; }
  100%{ transform: scale(1.15); opacity: 0; }
}
.s-core {
  width: 16px; height: 16px; background: var(--acc);
  border-radius: 50%; position: relative; z-index: 1;
}
.hc-callsign {
  font-size: 24px; font-weight: 900; color: #ffffff;
  letter-spacing: 4px;
}
.hc-name { font-size: 12px; color: rgba(255,255,255,0.4); margin-top: 4px; }
.hc-divider { height: 1px; background: rgba(255,255,255,0.08); margin: 14px 0; }
.hc-info { font-size: 12px; color: rgba(255,255,255,0.55); line-height: 2; }
.hc-info span { color: rgba(255,255,255,0.3); }
.hc-info a { color: var(--acc); }

/* ── Content sections (over white bg) ──────────────────────── */
.section { padding: 48px 0; }
.section-label {
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  color: var(--acc); text-transform: uppercase;
  display: flex; align-items: center; gap: 10px; margin-bottom: 6px;
}
.section-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.section-title { font-size: 22px; font-weight: 700; color: var(--text); margin-bottom: 5px; }
.section-sub { font-size: 14px; color: var(--muted); }

/* ── Cards grid ─────────────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px; margin-top: 24px;
}
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px;
  transition: all var(--trans); text-decoration: none; color: inherit;
  display: block; box-shadow: var(--shadow-sm);
}
.card:hover {
  border-color: var(--acc); box-shadow: var(--shadow);
  transform: translateY(-2px); color: inherit;
}
.card-icon { font-size: 22px; color: var(--acc); margin-bottom: 12px; }
.card-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 5px; }
.card-sub { font-size: 13px; color: var(--muted); line-height: 1.5; }
.card-arrow { font-size: 15px; color: var(--dim); margin-top: 12px; transition: all var(--trans); display: inline-block; }
.card:hover .card-arrow { color: var(--acc); transform: translateX(3px); }

/* ── Data tables ─────────────────────────────────────────────── */
.table-page { padding: 28px 0 56px; }
.table-controls {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap; margin-bottom: 16px;
}
.search-wrap {
  display: flex; align-items: center; gap: 8px;
  background: var(--surf); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 8px 14px;
  flex: 1; min-width: 220px; box-shadow: var(--shadow-sm);
}
.search-wrap input {
  background: none; border: none; outline: none;
  color: var(--text); font-size: 13px; width: 100%; font-family: inherit;
}
.search-wrap input::placeholder { color: var(--dim); }
.search-wrap:focus-within { border-color: var(--acc); }
.search-icon { color: var(--dim); font-size: 16px; }
.filter-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pill {
  padding: 6px 14px; font-size: 12px; font-weight: 600;
  border-radius: 20px; cursor: pointer; border: 1px solid var(--border);
  background: var(--surf); color: var(--muted); transition: all var(--trans);
  box-shadow: var(--shadow-sm);
}
.pill.active { background: var(--acc); color: #fff; border-color: var(--acc); }
.pill:hover:not(.active) { color: var(--acc); border-color: var(--acc); }
.select-filter {
  background: var(--surf); border: 1px solid var(--border);
  color: var(--text); border-radius: var(--radius); padding: 8px 12px;
  font-size: 13px; outline: none; cursor: pointer; font-family: inherit;
  box-shadow: var(--shadow-sm);
}
.select-filter:focus { border-color: var(--acc); }
.row-count {
  font-size: 12px; color: var(--muted); margin-left: auto;
  background: var(--surf); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 7px 14px;
}
.row-count strong { color: var(--acc); }

/* Table */
.table-wrap {
  overflow-x: auto; border-radius: var(--radius-lg);
  border: 1px solid var(--border); background: var(--surf);
  box-shadow: var(--shadow-sm);
}
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead th {
  background: var(--card2); color: var(--muted); font-weight: 700;
  font-size: 11px; letter-spacing: 0.5px; text-transform: uppercase;
  padding: 12px 16px; text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap; cursor: pointer; user-select: none;
}
thead th:hover { color: var(--acc); }
tbody tr { border-bottom: 1px solid var(--border); transition: background var(--trans); }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--acc-light); }
tbody td { padding: 11px 16px; color: var(--text); }
.tc-call { font-weight: 700; color: var(--acc); font-size: 13px; }
.tc-freq { font-weight: 600; color: var(--text); }
.tc-tone { color: var(--amber); font-size: 12px; }
.tc-loc  { color: var(--muted); font-size: 11px; }
.tc-obs  { color: var(--muted); font-size: 12px; }

/* Badges */
.badge {
  display: inline-flex; align-items: center;
  padding: 2px 8px; border-radius: 4px;
  font-size: 10px; font-weight: 700; white-space: nowrap;
}
.badge-fm    { background: #eff6ff; color: #2563eb; }
.badge-dstar { background: #f5f3ff; color: #7c3aed; }
.badge-dmr   { background: #fffbeb; color: #d97706; }
.badge-ok    { background: #f0fdf4; color: #16a34a; }
.badge-off   { background: #fef2f2; color: #dc2626; }

[data-theme="dark"] .badge-fm    { background: rgba(37,99,235,0.15); color: #60a5fa; }
[data-theme="dark"] .badge-dstar { background: rgba(124,58,237,0.15); color: #a78bfa; }
[data-theme="dark"] .badge-dmr   { background: rgba(217,119,6,0.15);  color: #fbbf24; }
[data-theme="dark"] .badge-ok    { background: rgba(22,163,74,0.15);  color: #4ade80; }
[data-theme="dark"] .badge-off   { background: rgba(220,38,38,0.15);  color: #f87171; }

.empty-state { text-align: center; padding: 48px 24px; color: var(--muted); font-size: 14px; }
.empty-state i { font-size: 28px; display: block; margin-bottom: 10px; color: var(--dim); }

/* Band tabs */
.band-tabs { display: flex; gap: 0; margin-bottom: 20px; border-bottom: 1px solid var(--border); }
.band-tab {
  padding: 9px 20px; font-size: 13px; font-weight: 600;
  color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent;
  margin-bottom: -1px; transition: all var(--trans);
}
.band-tab.active { color: var(--acc); border-bottom-color: var(--acc); }
.band-tab:hover:not(.active) { color: var(--text); }

/* ── Prose ───────────────────────────────────────────────────── */
.prose { max-width: 820px; }
.prose h2 { font-size: 18px; font-weight: 700; color: var(--text); margin: 28px 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.prose h3 { font-size: 15px; font-weight: 700; color: var(--acc); margin: 20px 0 8px; }
.prose p  { font-size: 14px; color: var(--muted); line-height: 1.85; margin-bottom: 14px; }
.prose ul { padding-left: 20px; margin-bottom: 14px; }
.prose li { font-size: 14px; color: var(--muted); line-height: 1.85; margin-bottom: 4px; }
.prose strong { color: var(--text); }
.prose table { width: 100%; border-radius: var(--radius); overflow: hidden; margin: 16px 0; font-size: 13px; }

/* ── About section bg ─────────────────────────────────────────── */
.section-alt { background: var(--surf); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ── Diplomas grid ───────────────────────────────────────────── */
.dip-filters { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:20px; }
.dip-filter {
  display:inline-flex; align-items:center; gap:6px;
  padding:6px 14px; border-radius:999px;
  border:1px solid var(--border); background:var(--surf);
  color:var(--text); font-size:12px; font-weight:600;
  cursor:pointer; transition:all .15s;
}
.dip-filter:hover { border-color:var(--acc); color:var(--acc); }
.dip-filter.active { background:var(--acc); border-color:var(--acc); color:#000; }
.dip-count { background:rgba(0,0,0,.12); border-radius:999px; padding:1px 7px; font-size:10px; font-weight:700; }
.dip-filter.active .dip-count { background:rgba(255,255,255,.2); }
.dip-grid {
  display:grid;
  grid-template-columns:repeat(5, 1fr);
  gap:10px;
}
.dip-item {
  position:relative; aspect-ratio:4/3;
  border-radius:var(--radius); overflow:hidden;
  cursor:pointer; background:var(--surf);
  border:0.5px solid var(--border);
  transition:transform .18s, box-shadow .18s;
}
.dip-item:hover { transform:scale(1.03); box-shadow:0 6px 20px rgba(0,0,0,.18); }
.dip-item.hidden { display:none; }
.dip-thumb { width:100%; height:100%; object-fit:cover; display:block; }
.dip-overlay {
  position:absolute; inset:0; background:rgba(0,0,0,0);
  display:flex; align-items:center; justify-content:center; transition:background .18s;
}
.dip-overlay i { color:#fff; font-size:24px; opacity:0; transform:scale(.8); transition:all .18s; }
.dip-item:hover .dip-overlay { background:rgba(0,0,0,.38); }
.dip-item:hover .dip-overlay i { opacity:1; transform:scale(1); }
.dip-label {
  position:absolute; bottom:0; left:0; right:0;
  background:linear-gradient(transparent,rgba(0,0,0,.65));
  color:#fff; font-size:9px; font-weight:700;
  letter-spacing:.5px; padding:14px 6px 5px; text-align:center;
}
.dip-empty { text-align:center; padding:60px 20px; color:var(--muted); }
.dip-empty i { font-size:40px; display:block; margin-bottom:12px; opacity:.3; }
@media(max-width:900px){ .dip-grid { grid-template-columns:repeat(3,1fr); } }
@media(max-width:600px){ .dip-grid { grid-template-columns:repeat(2,1fr); gap:6px; } }

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
  background: var(--nav);
  padding: 24px 0; margin-top: 0;
}
.footer-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.3); }
.footer-links { display: flex; gap: 18px; }
.footer-links a { font-size: 12px; color: rgba(255,255,255,0.3); }
.footer-links a:hover { color: rgba(255,255,255,0.7); }

/* ── Mobile ──────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .nav-menu  { display: none; }
  .hamburger { display: flex; }
  .nav-menu.open {
    display: flex; flex-direction: column; align-items: flex-start;
    position: fixed; top: 60px; left: 0; right: 0;
    background: var(--nav); padding: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    gap: 0; z-index: 999; height: auto;
  }
  .nav-menu.open .nav-link {
    height: auto; padding: 10px 12px; width: 100%;
    border-bottom: none; border-left: 2px solid transparent;
  }
  .nav-menu.open .nav-link:hover { border-left-color: var(--acc); border-bottom: none; }
  .nav-menu.open .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; background: rgba(255,255,255,0.04);
    margin: 4px 0 4px 12px; border: none; border-radius: 0; padding: 0;
  }
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .container, .container-sm { padding: 0 16px; }
}
@media (max-width: 540px) {
  .cards-grid { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 36px; }
  .hero h1 { font-size: 1.8rem; }
  .table-controls { flex-direction: column; align-items: stretch; }
  .row-count { margin-left: 0; }
}

/* ══════════════════════════════════════════════════
   Frecuencias — 27 MHz / Digitales / España
══════════════════════════════════════════════════ */
.freq27-toolbar {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap; margin-bottom: 20px;
}
.cb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 10px;
}
.cb-card {
  background: var(--surf);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .15s;
}
.cb-card:hover { border-color: var(--acc); }
.cb-card.cb-emergency { border-color: rgba(239,68,68,.4); }
.cb-card.cb-emergency .cb-card-header { background: rgba(239,68,68,.04); }
.cb-card.cb-trucker { border-color: rgba(234,179,8,.4); }
.cb-card.cb-trucker .cb-card-header { background: rgba(234,179,8,.04); }
.cb-card-header {
  width: 100%; display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; background: none; border: none; cursor: pointer;
  text-align: left;
}
.cb-ch { display: flex; align-items: center; gap: 8px; min-width: 0; }
.cb-ch-num {
  font-size: 16px; font-weight: 800;
  color: var(--text); white-space: nowrap;
}
.cb-badge {
  font-size: 9px; font-weight: 700; letter-spacing: .5px;
  padding: 2px 6px; border-radius: 4px; white-space: nowrap;
}
.cb-badge-em { background: rgba(239,68,68,.15); color: #ef4444; }
.cb-badge-tr { background: rgba(234,179,8,.15); color: #ca8a04; }
.cb-freq-legal {
  flex: 1; display: flex; flex-direction: column; align-items: flex-end;
}
.cb-freq-val {
  font-size: 15px; font-weight: 700; color: var(--acc);
}
.cb-freq-lbl {
  font-size: 10px; color: var(--muted); margin-top: 1px;
}
.cb-mode-badge {
  font-size: 10px; font-weight: 700;
  background: var(--bg); color: var(--muted);
  border: 0.5px solid var(--border);
  padding: 3px 8px; border-radius: 20px; white-space: nowrap;
}
.cb-hint {
  font-size: 11px; color: var(--acc); font-weight: 600;
  white-space: nowrap; opacity: .7;
}
.cb-card.open .cb-hint { display: none; }
.cb-chevron {
  font-size: 14px; color: var(--muted);
  transition: transform .2s; flex-shrink: 0;
}
.cb-card.open .cb-chevron { transform: rotate(180deg); }
.cb-card-body {
  display: none;
  border-top: 0.5px solid var(--border);
  padding: 14px 16px;
}
.cb-card.open .cb-card-body { display: block; }
.cb-bloques {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}
.cb-bloque {
  display: flex; flex-direction: column; align-items: center;
  background: var(--bg); border: 0.5px solid var(--border);
  border-radius: 8px; padding: 8px 4px; text-align: center;
  position: relative;
}
.cb-bloque-legal {
  background: rgba(42,106,208,.08);
  border-color: var(--acc);
}
.cb-bloque-letra {
  font-size: 11px; font-weight: 800;
  color: var(--muted); margin-bottom: 4px;
}
.cb-bloque-legal .cb-bloque-letra { color: var(--acc); }
.cb-bloque-freq { font-size: 11px; font-weight: 600; color: var(--text); line-height: 1.3; }
.cb-bloque-tag {
  font-size: 8px; font-weight: 700; color: var(--acc);
  margin-top: 3px; letter-spacing: .3px;
}
.dig-list { display: flex; flex-direction: column; gap: 6px; }
.dig-item {
  background: var(--surf);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.dig-header {
  width: 100%; display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; background: none; border: none; cursor: pointer;
  text-align: left;
}
.dig-banda-tag {
  font-size: 11px; font-weight: 800; letter-spacing: .5px;
  background: rgba(42,106,208,.1); color: var(--acc);
  padding: 3px 10px; border-radius: 20px; white-space: nowrap;
  min-width: 60px; text-align: center;
}
.dig-title {
  flex: 1; font-size: 14px; font-weight: 600; color: var(--text);
}
.dig-chevron { font-size: 14px; color: var(--muted); transition: transform .2s; flex-shrink:0; }
.dig-item.open .dig-chevron { transform: rotate(180deg); }
.dig-body {
  display: none;
  border-top: 0.5px solid var(--border);
  padding: 14px 18px; background: var(--bg);
}
.dig-item.open .dig-body { display: block; }
.dig-row { display: flex; gap: 12px; margin-bottom: 8px; }
.dig-row:last-child { margin-bottom: 0; }
.dig-lbl { font-size: 11px; font-weight: 700; color: var(--muted); min-width: 90px; padding-top: 2px; }
.dig-val { font-size: 13px; color: var(--text); }
.esp-group { margin-bottom: 20px; }
.esp-group-header {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; color: var(--text);
  padding: 10px 0; margin-bottom: 8px;
  border-bottom: 2px solid var(--acc);
}
.esp-group-header i { color: var(--acc); }
.esp-group-count {
  font-size: 11px; font-weight: 400; color: var(--muted);
  margin-left: auto;
}
.esp-group.hidden { display: none; }
