:root{
  --bg:#0b0f14;
  --text:#f2f5f8;
  --muted:rgba(242,245,248,.72);
  --line:rgba(255,255,255,.10);

  /* Paleta extraída del arte Eurojazz (slide) */
  --fj-blue:#557F8F;
  --fj-blue2:#809C9F;
  --fj-cream:#F0E7D3;
  --fj-sand:#E8D3AC;
  --fj-orange:#F2C27A;
  --fj-salmon:#EB9065;
  --fj-red:#EF4D4D;
  --fj-wine:#834446;

  --accent: var(--fj-red);
  --accent2: var(--fj-orange);

  /* Ayuda a que controles nativos usen tema oscuro */
  color-scheme: dark;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background: var(--bg);
}
/* Fondo fijo (sin “reinicio” al hacer scroll) */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1200px 800px at 18% 0%, rgba(85,127,143,.28), transparent 60%),
    radial-gradient(900px 700px at 80% 10%, rgba(131,68,70,.14), transparent 62%),
    linear-gradient(180deg, #070b10 0%, #0b1018 45%, #0a0f16 100%);
}

.topbar{
  position:sticky; top:0; z-index:10;
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 14px;
  border-bottom:1px solid var(--line);
  background: rgba(11,15,20,.84);
  backdrop-filter: blur(10px);
}
.topbar__brand{display:flex; gap:12px; align-items:center}
.brandMark{
  width:38px; height:38px; border-radius:12px;
  object-fit:cover;
  border:1px solid rgba(255,255,255,.14);
  box-shadow: 0 10px 22px rgba(0,0,0,.35);
}
.title{font-size:16px; font-weight:820; line-height:1.1}
.subtitle{font-size:12px; color:var(--muted); margin-top:2px}

.app{padding:14px 14px 92px; max-width:1020px; margin:0 auto;}

.card{
  background: linear-gradient(180deg, rgba(18,26,38,.82), rgba(18,26,38,.62));
  border:1px solid var(--line);
  border-radius:18px;
  padding:14px;
  box-shadow: 0 14px 42px rgba(0,0,0,.34);
}

.h1{font-size:22px; font-weight:860; margin:0 0 10px}
.h2{font-size:12px; letter-spacing:.10em; text-transform:uppercase; color:var(--muted); margin:0 0 10px}
.p{color:var(--muted); line-height:1.55; margin:0}

.row{display:flex; align-items:center; justify-content:space-between; gap:10px}
.kpiBox{ text-align:right; }
.kpi{font-size:26px; font-weight:920}

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:10px 12px; border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background: linear-gradient(135deg, rgba(239,77,77,.95), rgba(239,77,77,.58));
  color: var(--text);
  font-weight:800;
  cursor:pointer;
  text-decoration:none;
}
.btn.secondary{
  background: rgba(255,255,255,.06);
}
.btn:disabled{
  opacity:.55;
  cursor:not-allowed;
}

.ghost{
  background: transparent;
  border:1px solid var(--line);
  color: var(--text);
  padding:8px 10px;
  border-radius:12px;
  cursor:pointer;
}

hr.sep{border:0; border-top:1px solid var(--line); margin:12px 0}

.field{display:flex; flex-direction:column; gap:6px}
.label{font-size:12px; color:var(--muted)}
select,input{
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  color: var(--text);
  padding:10px 10px;
  border-radius:12px;
  outline:none;
}

/* En desktop, el menú desplegable puede verse con tema claro: fuerza contraste */
select option{
  background:#0b0f14;
  color:#fff;
}

/* Accesos rápidos (Info) */
.quickGrid{
  display:grid;
  gap:12px;
  grid-template-columns: 1fr;
  margin:10px 0 2px;
}
@media(min-width:820px){
  .quickGrid{ grid-template-columns: 1fr 1fr; }
}

.quickCard{
  display:grid;
  grid-template-columns: 84px 1fr auto;
  gap:12px;
  align-items:center;
  padding:12px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  border-radius:16px;
  text-decoration:none;
  color: var(--text);
}
.quickCard:hover{ background: rgba(255,255,255,.06); }

.quickCard__media{
  width:84px;
  height:56px;
  border-radius:12px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
}
.quickCard__media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.quickCard__icon{
  width:84px;
  height:56px;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  font-size:22px;
}

.quickCard__title{ font-weight:850; line-height:1.2; }
.quickCard__cta{
  font-weight:850;
  padding:8px 10px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
}

.filters{
  display:grid;
  gap:10px;
}
@media(min-width:820px){
  .filters{ grid-template-columns: 1.1fr 1.2fr 1fr; align-items:end; }
}

.chips{ display:flex; gap:8px; flex-wrap:wrap; }
.chip{
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--text);
  padding:9px 10px;
  border-radius:999px;
  cursor:pointer;
  font-weight:780;
}
.chip.active{ outline:2px solid rgba(242,194,122,.45); }
.chip.swing{ }
.chip.contra{ }
.chip.otras{ }

.list{display:flex; flex-direction:column; gap:10px}

.event{
  display:grid;
  grid-template-columns: 84px 1fr;
  gap:12px;
  padding:10px;
  border-radius:16px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  cursor:pointer;
}
.event:hover{background: rgba(255,255,255,.06)}
.thumb{
  width:84px; height:84px;
  border-radius:14px;
  background: rgba(0,0,0,.20);
  border:0;
  overflow:hidden;
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.event__title{font-weight:880; margin:0 0 4px; font-size:15px; line-height:1.2}
.event__sub{font-size:12px; color:var(--muted); margin-bottom:8px; line-height:1.35}
.event__meta{display:flex; flex-wrap:wrap; gap:8px; color:var(--muted); font-size:12px}
.meta{
  padding:6px 8px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.14);
}
.badgechip{
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.16);
  font-weight:880;
  letter-spacing:.02em;
}

.badgechip.loc{
  background: rgba(255,255,255,.06);
}
.badgechip.swing{
  background: rgba(242,194,122,.18);
  border-color: rgba(242,194,122,.35);
}
.badgechip.contra{
  background: rgba(239,77,77,.16);
  border-color: rgba(239,77,77,.35);
}

 .badgechip.otras{
  background: rgba(85,127,143,.18);
  border-color: rgba(85,127,143,.35);
}

.hero{
  border-radius:18px;
  border:1px solid rgba(255,255,255,.10);
  padding:12px;
  margin-bottom:12px;
  background:
    linear-gradient(135deg, rgba(11,15,20,.92), rgba(18,26,38,.82));
  box-shadow: 0 16px 48px rgba(0,0,0,.35);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.hero__left{display:flex; gap:12px; align-items:center}
.hero__logo{
  width: 138px;
  max-width: 42vw;
  height:auto;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,.55));
}
.hero__dates{font-weight:900}
.hero__hint{font-size:12px; color:rgba(242,245,248,.78); margin-top:4px}
.hero__actions{display:flex; gap:10px; align-items:center; flex-wrap:wrap; justify-content:flex-end}

@media(max-width:520px){
  .hero{flex-direction:column; align-items:flex-start;}
  .hero__actions{width:100%; justify-content:flex-start}
  .event{grid-template-columns: 74px 1fr}
  .thumb{width:74px; height:74px}
}

.tabbar{
  position:fixed; left:0; right:0; bottom:0; z-index:12;
  display:flex;
  border-top:1px solid var(--line);
  background: rgba(11,15,20,.88);
  backdrop-filter: blur(10px);
}
.tab{
  flex:1;
  padding:10px 6px;
  background:transparent;
  border:0;
  color:var(--muted);
  cursor:pointer;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:4px;
  font-size:12px;
}
.tab.active{color:var(--text)}
.tab__icon{font-size:16px}

.modal{position:fixed; inset:0; display:none; z-index:20}
.modal.open{display:block}
.modal__backdrop{position:absolute; inset:0; background: rgba(0,0,0,.58)}
.modal__card{
  position:absolute; left:50%; top:50%; transform: translate(-50%,-50%);
  width: min(820px, calc(100% - 24px));
  max-height: min(88vh, 820px);
  overflow:auto;
  border-radius:18px;
  border:1px solid var(--line);
  background: linear-gradient(180deg, rgba(18,26,38,.96), rgba(18,26,38,.86));
  box-shadow: 0 24px 90px rgba(0,0,0,.58);
}
.modal__header,.modal__footer{padding:12px 14px; border-bottom:1px solid var(--line)}
.modal__footer{border-bottom:0; border-top:1px solid var(--line)}
.modal__title{font-weight:900}
.modal__body{padding:14px}
.modalHero{
  height: 220px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.10);
  background-size: cover;
  background-position: center;
}

.small{font-size:12px; color:var(--muted)}

.techNote{ opacity:.72; }

.pre{white-space:pre-wrap; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; font-size:12.5px; line-height:1.45; color: var(--text); padding:10px 12px; border-radius:14px; border:1px solid var(--line); background: rgba(0,0,0,.18);}
